/* The mission: a world canvas with panels laid over it. */
.play { position: fixed; inset: 0; overflow: hidden; background: #0b0a1c; font-family: "Chakra Petch", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; user-select: none;
    --glass: rgba(14, 11, 34, 0.86); --edge: rgba(143, 242, 255, 0.22); --edge2: rgba(197, 230, 46, 0.55); --txt: #f1edff; --mut: #a39dc8; --feedw: min(440px, 36vw); --sans: "Chakra Petch", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; --serif: "Crimson Pro", Georgia, "Times New Roman", serif; }
.play .world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.play h2, .play h3, .play h4 { margin: 0; color: var(--txt); letter-spacing: 0.4px; text-transform: none; }
/* The settings panel is laid over the whole page, outside the mission, and looks the same wherever it was opened from. */
body > .veil { font-family: "Chakra Petch", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; user-select: none; color: #f1edff;
    --glass: rgba(14, 11, 34, 0.86); --edge: rgba(143, 242, 255, 0.22); --edge2: rgba(197, 230, 46, 0.55); --txt: #f1edff; --mut: #a39dc8; }
body > .veil h3 { margin: 0; letter-spacing: 0.4px; text-transform: none; }
.play h4 { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mut); margin: 14px 0 6px; }
.play .dim { color: var(--mut); }
.play .good { color: var(--green); }
.play .warn { color: #ffb37a; }
.play kbd { font: 700 10px inherit; border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; margin-left: 6px; opacity: 0.65; }
.play .x { background: none; border: 0; color: var(--mut); font-size: 20px; line-height: 1; padding: 0 4px; margin-left: auto; }
.play .x:hover { color: #fff; }
.play .btn { background: rgba(30, 24, 62, 0.92); border: 1.5px solid var(--edge); border-radius: 7px; padding: 8px 14px; color: var(--txt); font-weight: 700; }
.play .btn:hover:not(:disabled) { border-color: var(--cyan); }
.play .btn.primary { background: var(--lime); border-color: var(--lime); color: #17210a; }
.play .btn.primary:hover:not(:disabled) { background: #dcf56a; border-color: #fff; }
.play .btn.ghost { background: rgba(14, 11, 34, 0.6); color: var(--mut); }
.play .btn.beat { animation: beat 0.9s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px rgba(197, 230, 46, 0.25); } }

.top { position: absolute; left: 14px; right: 14px; top: 10px; display: flex; align-items: center; gap: 12px; pointer-events: none; z-index: 3; }
.top > * { pointer-events: auto; }
.place { background: var(--glass); border: 1.5px solid var(--edge); border-radius: 10px; padding: 6px 14px 8px; backdrop-filter: blur(6px); }
.place h2 { font-size: 19px; color: var(--lime); }
.meter { background: var(--glass); border: 1.5px solid var(--edge); border-radius: 10px; padding: 7px 12px; display: flex; align-items: center; gap: 9px; font-size: 13px; backdrop-filter: blur(6px); }
.meter .lbl { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mut); }
.meter .pips { display: flex; gap: 3px; }
.meter .pips i { width: 9px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.meter.clock .pips i.on { background: linear-gradient(#fff3c4, #ffb35a); box-shadow: 0 0 6px rgba(255, 179, 90, 0.6); }
.meter.clock .pips i.on.low { background: linear-gradient(#ffb0a0, #ff5a4d); box-shadow: 0 0 6px rgba(255, 90, 77, 0.7); }
.meter.contam .pips i.on { background: var(--fallout); box-shadow: 0 0 6px rgba(178, 107, 255, 0.7); }
.meter.contam.b3 .pips i.on, .meter.contam.b4 .pips i.on { background: var(--magenta); }
.meter b { min-width: 30px; }
.meter.pulse, .tool.pulse { animation: pulse 0.9s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 217, 102, 0.9); border-color: var(--uplift); } 100% { box-shadow: 0 0 0 16px rgba(255, 217, 102, 0); } }
.tools { margin-left: auto; display: flex; gap: 6px; }
.tool { background: var(--glass); border: 1.5px solid var(--edge); border-radius: 8px; padding: 6px 11px; color: var(--txt); font-weight: 700; font-size: 13px; backdrop-filter: blur(6px); }
.tool:hover:not(:disabled) { border-color: var(--cyan); }
.tool.on { border-color: var(--lime); color: var(--lime); }
.tool:disabled { opacity: 0.45; cursor: default; }
.minimap { position: absolute; right: 14px; top: 60px; width: 230px; height: 128px; background: rgba(10, 8, 26, 0.72); border: 1.5px solid var(--edge); border-radius: 10px; pointer-events: none; }

.banner { position: absolute; left: 50%; top: 17%; transform: translateX(-50%); text-align: center; pointer-events: none; animation: banner 1.7s ease-out forwards; text-shadow: 0 3px 0 rgba(12, 8, 30, 0.9), 0 0 26px currentColor; }
.banner span { display: block; font-size: 54px; font-weight: 800; letter-spacing: 6px; }
/* The way home, lit once there is nothing left the crew was sent to do. */
.play .btn.beam-ready { animation: beamready 1.6s ease-in-out infinite; }
@keyframes beamready { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 230, 46, 0.55); } 50% { box-shadow: 0 0 0 9px rgba(197, 230, 46, 0); } }
.banner small { display: block; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--txt); text-shadow: 0 2px 0 rgba(12, 8, 30, 0.9); }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) scale(1.5); } 12% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }

.toasts { position: absolute; right: 14px; top: 200px; width: 300px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: var(--glass); border: 1.5px solid var(--edge); border-left: 4px solid var(--cyan); border-radius: 8px; padding: 7px 11px; font-size: 13px; animation: slidein 0.25s ease-out; backdrop-filter: blur(6px); }
.toast b { display: block; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); }
.toast.good { border-left-color: var(--green); } .toast.good b { color: var(--green); }
.toast.bad { border-left-color: var(--fallout); } .toast.bad b { color: var(--fallout); }
.toast.time { border-left-color: var(--uplift); } .toast.time b { color: var(--uplift); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }

.party { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; width: 318px; }
.member { display: flex; gap: 10px; background: var(--glass); border: 1.5px solid var(--edge); border-radius: 12px; padding: 8px; cursor: pointer; backdrop-filter: blur(6px); transition: transform 0.12s, border-color 0.12s; }
.member:hover { border-color: var(--cyan); }
.member.on { border-color: var(--edge2); box-shadow: 0 0 0 1px rgba(197, 230, 46, 0.25), 0 0 22px rgba(197, 230, 46, 0.12); transform: translateX(6px); }
.member.down { filter: saturate(0.4); border-color: rgba(255, 90, 77, 0.6); }
.member.out { opacity: 0.4; cursor: default; }
.face { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; object-position: 50% 0; background: linear-gradient(#2b6f73, #17333d); border: 1.5px solid rgba(255, 255, 255, 0.18); flex: none; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nm { display: flex; align-items: baseline; gap: 8px; }
.nm b { font-size: 16px; } .nm > span { font-size: 12px; color: var(--mut); }
.play .hp { display: flex; gap: 2px; flex-wrap: wrap; }
.play .hp i { width: 13px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.play .hp i.on { background: linear-gradient(#ff8f7a, #e2463c); }
.play .hp i.cover { background: var(--cyan); }
.play .ap { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--mut); }
.play .ap i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cyan); }
.play .ap i.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.play .ap em { margin-left: auto; font-style: normal; color: var(--txt); }
.play .dice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 6px; font-size: 11.5px; font-weight: 700; color: var(--mut); }
.sk i { font-style: normal; font-weight: 700; margin-right: 4px; opacity: 0.55; font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; }
.sk.own { color: var(--txt); } .sk.own i { opacity: 1; }
.sk.up { color: var(--uplift); }
.sk.pulse { animation: skpulse 1.1s ease-out; }
@keyframes skpulse { 0% { transform: scale(1.7); color: #fff; text-shadow: 0 0 12px var(--uplift); } 100% { transform: scale(1); } }
.modes { display: flex; gap: 6px; }

.bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; max-width: calc(100vw - 720px); min-width: 420px; justify-content: center; }
.hint { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--glass); border: 1.5px solid var(--edge); border-radius: 20px; padding: 4px 14px; font-size: 12.5px; color: var(--txt); }
.slots2 { display: flex; gap: 6px; background: var(--glass); border: 1.5px solid var(--edge); border-radius: 14px; padding: 7px; backdrop-filter: blur(6px); flex-wrap: wrap; justify-content: center; }
.ab { position: relative; width: 84px; height: 76px; border-radius: 10px; background: linear-gradient(#2a2258, #1a1540); border: 1.5px solid rgba(255, 255, 255, 0.14); color: var(--txt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; }
.ab:hover { border-color: var(--cyan); transform: translateY(-2px); }
.ab.sel { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(197, 230, 46, 0.35), 0 0 18px rgba(197, 230, 46, 0.35); transform: translateY(-4px); }
.ab.off { opacity: 0.42; }
.ab.item { background: linear-gradient(#3b3020, #241c14); }
.ab.carry { background: linear-gradient(#20324a, #131f33); }
.ab .key { position: absolute; left: 5px; top: 3px; font-size: 10px; color: var(--mut); }
.ab .gl { font-size: 22px; line-height: 1; color: var(--lime); }
.ab.item .gl { color: var(--uplift); }
.ab .an { font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.ab .uses { display: flex; gap: 3px; }
.ab .uses i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--lime); }
.ab .uses i.on { background: var(--lime); }
.ab .count { font-size: 11px; color: var(--uplift); font-weight: 700; }
.ab .pop { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 250px; background: rgba(10, 8, 26, 0.97); border: 1.5px solid var(--edge); border-radius: 9px; padding: 9px 11px; text-align: left; font-size: 12.5px; font-weight: 400; z-index: 5; pointer-events: none; }
.ab:hover .pop { display: block; }
.ab .pop b { font-size: 14px; } .ab .pop i { font-style: normal; font-weight: 700; font-size: 11px; }
.ab .pop span { display: block; margin-top: 3px; color: #d6d0f0; }
.ab .pop em { display: block; margin-top: 4px; font-style: normal; color: #ffb37a; }
.play .turn { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; }

.ask { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); background: rgba(24, 16, 10, 0.95); border: 2px solid var(--uplift); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: 0 0 34px rgba(255, 217, 64, 0.3); animation: slideup 0.2s ease-out; z-index: 4; }
.row2 { display: flex; gap: 8px; }
@keyframes slideup { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes fadein { from { opacity: 0; transform: translateY(5px); } }


.mini { display: flex; align-items: center; gap: 6px; background: rgba(30, 24, 62, 0.9); border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 2px 10px 2px 2px; color: var(--mut); font-weight: 700; font-size: 12px; }
.mini .face { width: 30px; height: 30px; border-radius: 50%; }
.mini.on { border-color: var(--lime); color: var(--lime); }
.play .tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--teal); color: #d9fff4; border-radius: 4px; padding: 1px 6px; margin-right: 7px; }
.risk { font-size: 12px; color: #ffb37a; }
.cost { font-size: 12px; color: var(--uplift); }
.lock { font-size: 12px; color: var(--mut); font-style: italic; }

.menu { position: fixed; width: 370px; background: rgba(12, 9, 30, 0.97); border: 1.5px solid var(--edge2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 6; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); animation: fadein 0.14s ease-out; }
.menu header, .journal header { display: flex; align-items: baseline; gap: 9px; }
.menu header b { font-size: 16px; color: var(--lime); }
.menu header .dim { font-size: 11.5px; }
.menu p { margin: 0; font-size: 12.5px; }
.verb { display: flex; flex-direction: column; gap: 2px; text-align: left; background: rgba(30, 24, 62, 0.75); border: 1.5px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 7px 10px; color: var(--txt); font-size: 14px; }
.verb:hover:not(:disabled) { border-color: var(--lime); background: rgba(45, 38, 88, 0.95); }
.verb:disabled { opacity: 0.55; cursor: default; }
.verb .vt { font-weight: 700; } .verb .vt em { font-style: normal; color: var(--mut); font-weight: 400; font-size: 12px; }
/* Where the current objective is: a lime arrow over it, or at the edge of the screen pointing the way. */
.goal { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; }
.goal i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(197, 230, 46, 0.8)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7)); }
.goal i::before { content: ''; position: absolute; inset: 3px; background: var(--lime); clip-path: polygon(0 12%, 100% 50%, 0 88%, 26% 50%); }
.goal.edge i { transform: rotate(var(--a)); }
.goal.here i { transform: rotate(90deg); animation: goalbob 1.1s ease-in-out infinite; }
@keyframes goalbob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 4px; } }
.place { cursor: pointer; }
.goal-line { font-size: 12px; color: var(--txt); margin-top: 2px; max-width: 34vw; line-height: 1.25; }
.goal-line::before { content: '▸ '; color: var(--lime); }
/* What a piece of the screen is, shown on a held finger (or a tapped meter). */
.explain { position: fixed; z-index: 30; transform: translate(-50%, -100%); width: max-content; max-width: min(270px, 80vw); background: rgba(10, 8, 26, 0.96); border: 1.5px solid var(--edge2); border-radius: 9px; padding: 8px 11px; font-size: 13px; line-height: 1.35; color: var(--txt); pointer-events: none; animation: slidein 0.15s ease-out; }
.explain.below { transform: translate(-50%, 0); }
.play .tag.warn { background: #b8322a; color: #fff0ec; }
.play .tag.time { background: #5a4310; color: #ffd966; text-transform: none; }
.verb .vt em.tag { color: #d9fff4; font-weight: 700; font-size: 10.5px; }
.verb .dim, .verb .good { font-size: 12px; }

.tip { position: fixed; max-width: 300px; background: rgba(10, 8, 26, 0.95); border: 1.5px solid var(--edge); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; pointer-events: none; z-index: 7; line-height: 1.4; }
.tip b { font-size: 14px; }
.tip .trait { margin-top: 3px; color: #d6d0f0; } .tip .trait b { font-size: 12.5px; color: var(--cyan); }
.tip .fc { margin-top: 4px; }

.journal { position: absolute; right: 14px; top: 200px; bottom: 120px; width: 340px; background: rgba(12, 9, 30, 0.95); border: 1.5px solid var(--edge); border-radius: 12px; padding: 12px 14px; overflow: auto; font-size: 13.5px; z-index: 3; animation: slidein 0.2s ease-out; user-select: text; }
.journal h3 { font-size: 17px; color: var(--lime); }
.play .obj { display: flex; gap: 8px; margin: 3px 0; font-size: 13.5px; }
.play .obj i { font-style: normal; color: var(--mut); } .play .obj.done { color: var(--green); } .play .obj.done i { color: var(--green); }
.play .clue { border-left: 3px solid var(--cyan); padding: 2px 0 2px 9px; margin: 5px 0; color: #dff9ff; font-size: 13.5px; }
.kit { display: flex; flex-direction: column; margin: 5px 0; } .kit span { color: var(--mut); font-size: 12px; }
.help { font-size: 12.5px; line-height: 1.45; margin: 0; padding-left: 16px; } .help li { margin: 4px 0; }
.journal .verb { width: 100%; margin: 3px 0; font-size: 13px; }

.veil { position: fixed; inset: 0; background: rgba(6, 4, 18, 0.6); display: grid; place-items: center; z-index: 20; }
.confirm { background: rgba(12, 9, 30, 0.98); border: 1.5px solid var(--edge2); border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.confirm h3 { font-size: 21px; color: var(--lime); } .confirm p { margin: 0; }
.confirm.settings { min-width: min(320px, calc(100vw - 32px)); gap: 10px; max-height: calc(100dvh - 20px); overflow-y: auto; padding-top: 16px; padding-bottom: 16px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: none; border: 0; padding: 4px 0; color: var(--txt); font-weight: 700; font-size: 16px; cursor: pointer; }
.switch i { position: relative; width: 46px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); border: 1.5px solid var(--edge2); transition: background 0.15s, border-color 0.15s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--dim); transition: transform 0.15s, background 0.15s; }
.switch.on i { background: rgba(190, 240, 80, 0.18); border-color: var(--lime); }
.switch.on i::after { transform: translateX(20px); background: var(--lime); }
.corner-tools { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 5; display: flex; align-items: center; gap: 8px; }
/* Whose account this is: their Discord picture and name. */
.who-am-i { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who-am-i img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.who-am-i b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.tool.me { padding: 3px 11px 3px 5px; }
.confirm.settings .btn.danger { border-color: var(--red, #ff5a5a); color: var(--red, #ff5a5a); }
.confirm.settings hr { width: 100%; border: 0; border-top: 1.5px solid var(--edge2); margin: 2px 0; }
.confirm.settings .row-actions { justify-content: stretch; flex-wrap: nowrap; } .confirm.settings .row-actions .btn { flex: 1; white-space: nowrap; }

@media (max-width: 1250px) {
    .party { width: 268px; } .play .dice { font-size: 10.5px; } .face { width: 52px; height: 52px; }
    .bar { max-width: calc(100vw - 580px); }
    .minimap { width: 184px; height: 102px; } .toasts { top: 172px; } .journal { top: 62px; }
}

/* The text column. Everything said, thought and decided is written here, newest at the bottom, with the choices under it. */
.feed { position: absolute; right: 0; top: 0; bottom: 0; width: var(--feedw); display: flex; flex-direction: column; padding: 58px 20px 16px 48px; z-index: 2; user-select: text;
    background: linear-gradient(90deg, rgba(7, 5, 18, 0) 0, rgba(7, 5, 18, 0.9) 44px, rgba(7, 5, 18, 0.96) 100%);
    transform: translateX(100%); opacity: 0; pointer-events: none; transition: transform 0.32s ease, opacity 0.32s ease; }
.feed.open { transform: none; opacity: 1; pointer-events: auto; }
.feed-lines { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding-right: 8px; font-family: var(--serif); font-size: 18.5px; line-height: 1.36; color: #e9e4f7;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; -webkit-mask-image: linear-gradient(transparent 0, #000 64px); mask-image: linear-gradient(transparent 0, #000 64px); }
.feed-lines::before { content: ""; flex: 1 1 0; min-height: 0; }
.fl { margin: 0; animation: fadein 0.35s ease-out; transition: opacity 0.4s; }
.fl.old { opacity: 0.5; }
.fl b { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e8c56b; }
.fl .dash { margin: 0 6px 0 1px; color: var(--mut); }
.fl.narrator { color: #cdc7e4; }
.fl.own { color: #fff; } .fl.own b { color: var(--lime); }
.fl.voice .pv { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.5px; color: var(--mut); margin-left: 7px; }
.fl.voice .pv.miss { color: #ff8f7a; }
.fl.voice .pw { font-family: var(--sans); font-size: 11px; color: var(--mut); margin-left: 6px; }
.fl.voice .pw::before { content: "· "; }
.fl.head { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--sans); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--mut); }
.fl.head::before, .fl.head::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); }
.fl.chk { font-family: var(--sans); text-align: center; padding: 5px 8px; border: solid rgba(255, 255, 255, 0.14); border-width: 1px 0; }
.fl.chk b { color: inherit; font-size: 12px; }
.fl.chk small { display: block; font-size: 11.5px; color: var(--mut); }
.fl.chk.good { color: var(--green); border-color: rgba(116, 212, 166, 0.4); background: rgba(116, 212, 166, 0.07); }
.fl.chk.bad { color: #ff8f7a; border-color: rgba(255, 143, 122, 0.4); background: rgba(255, 143, 122, 0.07); }
.fl.sys { font-family: var(--sans); font-size: 12.5px; line-height: 1.4; color: var(--cyan); padding-left: 10px; border-left: 2px solid currentColor; }
.fl.sys.good { color: var(--green); } .fl.sys.bad { color: #ff8f7a; } .fl.sys.uplift, .fl.sys.time { color: var(--uplift); } .fl.sys.fallout { color: var(--fallout); }

.feed-opts { flex: none; display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); max-height: 54vh; overflow-y: auto; user-select: none; scrollbar-width: thin; }
.feed-foot { flex: none; display: flex; justify-content: flex-end; padding-top: 10px; }
.as { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 6px; }
.opt { display: flex; gap: 8px; text-align: left; font-weight: 400; background: none; border: 0; border-left: 2px solid transparent; border-radius: 0; padding: 5px 8px; color: var(--txt); }
.opt .num { flex: none; min-width: 18px; padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--mut); }
.opt .otx { font-family: var(--serif); font-size: 18px; line-height: 1.28; color: #ffe6c4; }
.opt.white { border-left-color: rgba(255, 255, 255, 0.6); }
.opt.red { border-left-color: #e2463c; }
.opt:hover:not(:disabled) { background: rgba(197, 230, 46, 0.09); }
.opt:hover:not(:disabled) .otx { color: #fff; } .opt:hover:not(:disabled) .num { color: var(--lime); }
.opt:disabled { opacity: 0.5; cursor: default; }
.ot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cont { align-self: flex-end; background: #d9532c; border: 0; border-radius: 3px; padding: 8px 16px 8px 20px; color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.cont:hover { background: #f26a3d; }
.cont.small { background: none; border: 1px solid rgba(255, 255, 255, 0.22); color: var(--mut); padding: 5px 10px 5px 12px; font-size: 11px; }
.cont.small:hover { background: none; border-color: var(--cyan); color: var(--txt); }

.check { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-family: var(--sans); font-size: 12px; color: var(--mut); }
.check b { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
/* Who makes the attempt, and how good they are at it. */
.check { align-items: center; }
.check .roller { display: inline-flex; align-items: center; gap: 5px; background: rgba(30, 24, 62, 0.9); border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 1px 9px 1px 2px; font-weight: 700; font-size: 12px; }
.check .roller .face { width: 20px; height: 20px; border-radius: 50%; }
.check .grade { display: inline-flex; gap: 2px; margin-left: 3px; }
.check .grade i { width: 5px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.check .lv { color: var(--txt); }
.check i { font-style: normal; font-weight: 700; }
.check.good i { color: var(--green); } .check.even i { color: var(--uplift); } .check.poor i { color: #ff8f7a; }
.mods { display: flex; flex-direction: column; font-family: var(--sans); }
.mods em { font-style: normal; font-size: 12px; color: var(--green); }

/* whoever spoke last, beside the column */
.feed-face { position: absolute; right: calc(var(--feedw) + 4px); bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 7px; background: rgba(7, 5, 18, 0.92); border: 1.5px solid rgba(232, 197, 107, 0.65); border-radius: 4px; animation: fadein 0.3s ease-out; z-index: 2; pointer-events: none; }
.feed-face .face { border: 0; border-radius: 2px; }
.feed-face b { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #e8c56b; }
.feed-face span { font-size: 11px; color: var(--mut); }
/* someone on the comms, by hologram */
.feed-face.holo-face { border-color: var(--cyan); background: #061820; animation: fadein 0.3s ease-out, flicker 3.2s infinite; }
.feed-face.holo-face .face { background: #061820; filter: grayscale(1) sepia(1) hue-rotate(140deg) saturate(3) brightness(1.15); opacity: 0.92; }
.feed-face.holo-face .scan { position: absolute; inset: 6px 6px 26px; background: repeating-linear-gradient(0deg, rgba(153, 242, 255, 0.16) 0 2px, transparent 2px 5px); animation: scan 1.4s linear infinite; }
.feed-face.holo-face b { color: var(--cyan); }

/* everything else makes room for it */
.bar, .ask, .banner, .toasts, .journal { transition: left 0.3s ease, right 0.3s ease; }
.minimap { transition: right 0.3s ease; }
.play.feed-open .minimap { right: calc(var(--feedw) + 8px); }
.play.feed-open .toasts, .play.feed-open .journal { right: calc(var(--feedw) + 8px); }
.play.feed-open .bar, .play.feed-open .ask, .play.feed-open .banner { left: calc((100vw - var(--feedw)) / 2); }
.play.feed-open .bar { max-width: calc(100vw - var(--feedw) - 700px); min-width: 0; }
.short { font-family: var(--sans); font-size: 13px; color: var(--uplift); padding: 2px 8px 6px; }
.short b { letter-spacing: 1px; text-transform: uppercase; }

/* The action wheel: what can be done about the spot that was tapped, laid out round it, most common first. */
.radial { position: fixed; inset: 0; z-index: 6; pointer-events: none; font-family: var(--sans); }
.radial .rim { position: absolute; border-radius: 50%; border: 1px dashed rgba(197, 230, 46, 0.3); background: radial-gradient(circle, rgba(10, 8, 26, 0) 34%, rgba(10, 8, 26, 0.5) 100%); animation: fadein 0.14s ease-out; }
.radial .hub { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--lime); box-shadow: 0 0 12px rgba(197, 230, 46, 0.55); }
.radial .cap { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); padding: 1px 9px; border-radius: 10px; background: rgba(10, 8, 26, 0.85); font-size: 12px; color: var(--lime); white-space: nowrap; }
.radial .act { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 7px; width: max-content; min-height: 38px; padding: 5px 11px; border-radius: 19px; border: 1.5px solid var(--edge2);
    background: rgba(12, 9, 30, 0.97); color: var(--txt); font-size: 13px; font-weight: 600; line-height: 1.15; text-align: left; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55); animation: petal 0.16s ease-out backwards; }
.radial .act.e { transform: translate(0, -50%); }
.radial .act.w { transform: translate(-100%, -50%); flex-direction: row-reverse; text-align: right; }
.radial .act.n { transform: translate(-50%, -100%); }
.radial .act.s { transform: translate(-50%, 0); }
@keyframes petal { from { opacity: 0; scale: 0.6; } }
.radial .act:hover:not(:disabled) { border-color: var(--lime); background: rgba(45, 38, 88, 0.98); }
.radial .act:disabled { opacity: 0.5; cursor: default; }
.radial .act.red { border-color: #e2463c; } .radial .act.white { border-color: rgba(255, 255, 255, 0.75); }
.radial .act .gl { flex: none; width: 16px; text-align: center; font-size: 15px; }
.radial .act .rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radial .act .rs { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 400; color: var(--mut); white-space: nowrap; }
.radial .act.w .rs { justify-content: flex-end; }
.radial .act .rs.why { white-space: normal; }
.radial .act:disabled .cap { opacity: 1; }
.radial .act .rs .actpips.cost { margin-left: 0; }
.radial .act kbd { flex: none; margin: 0; }
.pips { margin-left: 7px; font-size: 10px; letter-spacing: 1px; color: var(--lime); }
.play .ap em.acts { display: flex; }
/* What is left of the turn: red for an action, the lime chevron for the movement, blue for the reaction. Diffusion is cyan rounds. */
.actpips, .appips { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
/* The action is a red bolt and nothing else uses that shape. Spent, it is a faint one. */
.actpips .pip { width: 10px; height: 13px; box-sizing: border-box; background: #ff4d4d; opacity: 0.25; clip-path: polygon(62% 0, 8% 58%, 44% 58%, 32% 100%, 92% 38%, 56% 38%, 74% 0); }
.actpips .pip.on { opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 77, 77, 0.8)); }
.actpips .pip.re { width: 11px; height: 13px; background: #3b7dff; clip-path: polygon(50% 0, 100% 16%, 94% 58%, 50% 100%, 6% 58%, 0 16%); }   /* the reaction: a blue shield */
.actpips .pip.re.on { filter: drop-shadow(0 0 3px rgba(59, 125, 255, 0.8)); }
.actpips .pip.mv { width: 12px; margin: 0 1px; border: 0; border-radius: 0; box-shadow: none; background: var(--lime); opacity: 0.25; clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }
.actpips .pip.mv.on { opacity: 1; }
.actpips .pip.go { animation: actgo 0.55s ease-in-out infinite alternate; }
.actpips .pip.mv.go { animation-name: mvgo; }
@keyframes actgo { to { background: transparent; box-shadow: none; opacity: 0.55; } }
@keyframes mvgo { to { opacity: 0.2; } }
.actpips.short .pip, .actpips .pip.short { background: #ffb35a; opacity: 0.5; filter: none; animation: none; }
.actpips.cost { gap: 4px; margin-left: 8px; } .actpips.cost .pip { width: 7px; height: 7px; box-shadow: none; } .actpips.cost .pip.bo { width: 8px; height: 8px; } .actpips.cost .pip.mv { width: 9px; } .actpips.cost .pip.re { width: 7px; height: 8px; }
.actpips.big { gap: 9px; padding: 0 3px; } .actpips.big .pip { width: 14px; height: 19px; } .actpips.big .pip.re { width: 16px; height: 19px; } .actpips.big .pip.mv { width: 19px; margin-left: 4px; }
.appips { gap: 4px; }
.appips .pip { width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--cyan); }
.appips .pip.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.appips.big { gap: 5px; } .appips.big .pip { width: 12px; height: 12px; border-width: 2px; }
/* Beside the bar: who is selected, and what they have left. */
.bar .left { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 168px; padding: 8px 14px; background: var(--glass); border: 1.5px solid var(--edge); border-radius: 14px; backdrop-filter: blur(6px); }
.bar .left b { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1; }
.bar .left .row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--txt); white-space: nowrap; }
.bar .left .row.pulse .actpips { animation: skpulse 0.7s ease-out; }
.bar .left.wait .row:first-of-type { opacity: 0.5; }
/* With the column of text open there is less room, so the box keeps its marks and drops its words. */
.play.feed-open .bar .left { min-width: 0; padding: 8px 11px; align-items: center; } .play.feed-open .bar .left .lbl { display: none; }
.play .ap em.acts.pulse { animation: skpulse 0.7s ease-out; }

/* ── Phones and small tablets ──────────────────────────────────────────────
   A finger: no keyboard hints. */
.play.touch kbd, .play.touch .ab .key { display: none; }

/* A small screen, either way up: everything shrinks, the crew cards drop their dice, and the action list becomes a sheet. */
@media (max-width: 899px), (max-height: 599px) {
    .play { --feedw: min(440px, 46vw); --l: calc(8px + env(safe-area-inset-left)); --r: calc(8px + env(safe-area-inset-right)); --b: calc(8px + env(safe-area-inset-bottom)); }
    .top { left: var(--l); right: var(--r); top: 6px; gap: 6px; flex-wrap: wrap; }
    .place { padding: 3px 9px 4px; border-radius: 8px; }
    .place .eyebrow { display: none; }
    .place h2 { font-size: 14px; }
    .meter { padding: 4px 8px; gap: 6px; font-size: 11.5px; border-radius: 8px; }
    .meter .lbl { display: none; }
    .meter .pips { gap: 2px; }
    .meter .pips i { width: 5px; height: 11px; border-radius: 2px; }
    .meter b { min-width: 0; }
    .tools { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .tool { padding: 5px 7px; font-size: 11.5px; border-radius: 7px; }
    .minimap { top: 46px; right: var(--r); width: 140px; height: 78px; border-radius: 8px; }
    /* With the text column out there is too little ground left to give any of it to the map. */
    .play.feed-open .minimap { display: none; }
    .play.feed-open .toasts { top: 46px; }
    .toasts { top: 130px; right: var(--r); width: min(270px, 60vw); }
    .toast { font-size: 12px; padding: 5px 9px; }
    .toasts .toast:not(:nth-last-child(-n+2)) { display: none; }   /* the newest two only */
    .banner span { font-size: 32px; letter-spacing: 3px; }
    .banner small { font-size: 12px; letter-spacing: 2px; }

    .party { left: var(--l); bottom: var(--b); width: 176px; gap: 5px; }
    .member { gap: 7px; padding: 5px 6px; border-radius: 9px; }
    .member.on { transform: translateX(3px); }
    .member .face { width: 38px; height: 38px; border-radius: 6px; }
    .who { gap: 3px; }
    .nm b { font-size: 13px; } .nm > span { display: none; }
    .play .dice { display: none; }
    .play .hp i { width: 8px; height: 7px; }
    .play .ap i { width: 8px; height: 8px; }
    .modes .tool { flex: 1; }

    /* The bar keeps its full width and sits over the foot of the text column, which leaves room for it. */
    .bar, .play.feed-open .bar { left: calc(var(--l) + 186px); right: var(--r); bottom: var(--b); transform: none; max-width: none; min-width: 0; gap: 6px; z-index: 3; }
    .play.feed-open:not(.talking) .feed { padding-bottom: calc(var(--barh, 70px) + var(--b) + 8px); }
    .bar .left { display: none; }
    .slots2 { padding: 5px; gap: 4px; border-radius: 10px; }
    .ab { width: 60px; height: 56px; border-radius: 8px; padding: 3px; }
    .ab .gl { font-size: 17px; }
    .ab .an { font-size: 9.5px; }
    .ab:hover { transform: none; }
    .ab .pop { width: 220px; font-size: 12px; }
    .play .turn .btn { padding: 8px 11px; font-size: 13px; }
    .hint { white-space: normal; width: max-content; max-width: min(88vw, 420px); text-align: center; font-size: 11.5px; }
    .ask { bottom: calc(var(--b) + 72px); max-width: calc(100vw - 16px); padding: 9px 12px; }
    .ask .row2 { flex-wrap: wrap; justify-content: center; }

    .feed { padding: 46px 12px 10px 26px; }
    .feed-lines { font-size: 16px; gap: 8px; }
    .opt { padding: 7px 8px; }
    .opt .otx { font-size: 16px; }
    .feed-opts { max-height: calc(100% - 78px); }   /* the choices take what they need, and the text keeps three lines */
    .feed-face { display: none; }
    .journal { top: 46px; right: var(--r); bottom: var(--b); width: min(380px, calc(100vw - 16px)); z-index: 8; }
    .confirm { max-width: calc(100vw - 32px); padding: 16px 18px; }

    .radial .act { min-height: 42px; font-size: 12.5px; padding: 5px 10px; }   /* big enough for a thumb */
}

/* A phone held upright: the crew across the top, the bar across the bottom, and the text column comes up from the bottom. */
@media (max-width: 600px) {
    .party { top: 80px; bottom: auto; right: calc(var(--r) + 128px); width: auto; flex-direction: row; flex-wrap: wrap; }
    .minimap, .play.feed-open .minimap { display: block; top: 80px; right: var(--r); width: 120px; height: 68px; }
    .member { flex: 1 1 150px; min-width: 0; }
    .member.on { transform: none; }
    .modes { flex: 1 1 100%; }
    .bar, .play.feed-open .bar { left: var(--l); right: var(--r); }
    .ab { width: 54px; }
    .toasts { top: 31%; left: var(--l); right: var(--r); width: auto; z-index: 3; }
    .play.feed-open .toasts, .play.feed-open .journal { right: var(--r); }
    .play.feed-open .ask, .play.feed-open .banner { left: 50%; }
    .ask { bottom: calc(var(--b) + 140px); }
    .journal { left: var(--l); width: auto; }
    .feed { left: 0; right: 0; top: auto; width: auto; height: 62%; padding: 22px 14px var(--b);
        background: linear-gradient(rgba(7, 5, 18, 0) 0, rgba(7, 5, 18, 0.92) 26px, rgba(7, 5, 18, 0.97) 100%); transform: translateY(100%); }
    .feed.open { transform: none; }
}

/* ── reactions ── */
.react-ask { border-color: var(--orange, #f08a3c); box-shadow: 0 0 34px rgba(240, 138, 60, 0.3); max-width: min(760px, calc(100vw - 24px)); }
.react-ask .dim { color: var(--dim); font-weight: 400; }
.react-opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.react-opts .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; max-width: 230px; padding: 7px 11px; }
.react-opts .btn small { font-size: 11px; font-weight: 400; line-height: 1.3; }
.react-opts .btn.primary small.dim { color: #233; }


.hint .linkish { background: none; border: none; color: var(--lime); text-decoration: underline; padding: 0; font: inherit; cursor: pointer; pointer-events: auto; }

/* What a button or a choice spends, in its corner. */
.actpips.mark { position: absolute; right: 6px; top: 5px; gap: 3px; pointer-events: none; }
.react-opts .btn { position: relative; padding-right: 22px; }
.turn .btn .actpips { margin-left: 8px; gap: 5px; background: rgba(10, 8, 26, 0.88); border-radius: 10px; padding: 3px 8px; }
/* Used up: the symbol is still there, empty. */
.actpips .pip.bo:not(.on) { background: transparent; box-shadow: inset 0 0 0 1.5px #4d9bff; opacity: 0.8; }

/* The plain game: a Scout who has acted this turn is dimmed until the next. */
.member.spent { opacity: 0.55; }
.play.touch .ab .pop { display: none; }

/* The picks that are always on, under a Scout's Health. */
.passives { display: flex; gap: 3px; flex-wrap: wrap; }
.passives span { font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(143, 242, 255, 0.4); border-radius: 3px; padding: 0 4px; line-height: 14px; }
/* A painted icon takes the glyph's place on the button, above the name. */
.ab img.ic { flex: none; width: 36px; height: 36px; object-fit: contain; pointer-events: none; }
.ab img.ic + .gl { display: none; }
@media (max-width: 899px), (max-height: 599px) { .ab { height: 64px; } .ab img.ic { width: 27px; height: 27px; } }

/* What a turn is made of, by colour: the action is red, the movement is yellow-green, the bonus action is blue. A pick that
   takes the bonus action or the movement wears that colour in its corner. */
.actpips .pip.bo { width: 10px; height: 10px; border-radius: 50%; background: #4d9bff; clip-path: none; }
.actpips .pip.bo.on { filter: drop-shadow(0 0 3px rgba(77, 155, 255, 0.85)); }
.ab.bonus::after { content: ''; position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #4d9bff; box-shadow: 0 0 6px rgba(77, 155, 255, 0.75); }
.ab.bonus.off::after { background: transparent; border: 1.5px solid #4d9bff; box-shadow: none; }
.ab.moves::after { content: ''; position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; background: var(--lime); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }
.ab.moves.off::after { opacity: 0.35; }

/* What has been picked from the bar: what it does and what it takes. */
.sel-card { position: fixed; left: 50%; top: 58px; transform: translateX(-50%); width: min(430px, calc(100vw - 24px)); background: rgba(10, 8, 26, 0.96); border: 1.5px solid var(--edge2); border-radius: 12px; padding: 9px 12px 10px; display: flex; flex-direction: column; gap: 6px; z-index: 6; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5); pointer-events: auto; }
.sel-card header { display: flex; align-items: center; gap: 8px; }
.sel-card header img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.sel-card header b { font-size: 16px; color: var(--lime); }
.sel-card header .sc-left { margin-left: auto; font-size: 12px; color: #c9c2e8; white-space: nowrap; }
.sel-card header .x { margin-left: 6px; }
.sel-card header .sc-left + .x { margin-left: 6px; } .sel-card header em + .x { margin-left: auto; }
.sel-card p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--txt); }
.sel-card .next { font-size: 12.5px; color: var(--cyan); }
.sel-card .btn { align-self: flex-start; padding: 6px 22px; }
.sel-card em.cost { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.sel-card em.cost.action { background: #ff4d4d; color: #2a0606; }
.sel-card em.cost.bonus { background: #4d9bff; color: #06162e; }
.sel-card em.cost.move { background: var(--lime); color: #1a2204; }
.sel-card em.cost.free { background: #5c567e; color: #f1edff; }
@media (max-width: 899px), (max-height: 599px) { .sel-card { top: 44px; padding: 7px 10px 8px; gap: 4px; } .sel-card p { font-size: 12.5px; } .sel-card header b { font-size: 14.5px; } .sel-card header img { width: 26px; height: 26px; } }

/* A scanned creature. */
.dex { background: rgba(12, 9, 30, 0.98); border: 1.5px solid var(--cyan); border-radius: 14px; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: 0 0 40px rgba(143, 242, 255, 0.18); }
.dex header { display: flex; align-items: center; gap: 12px; }
.dex header h3 { flex: 1; font-size: 21px; color: var(--cyan); }
.dex .dx-pic { width: 54px; height: 54px; flex: none; } .dex .dx-pic canvas { width: 100%; height: 100%; }
.dex p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.dex .dx-look { color: #d6d0f0; }
.dex .dx-trait { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid #ff5a5a; padding-left: 10px; font-size: 13.5px; }
.dex .dx-trait > b { color: #ffc4bd; font-size: 15px; }
.dex .dx-ans { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #d6d0f0; font-size: 13px; }
.dex .dx-have { flex-basis: 100%; color: var(--txt); }
.dex .dx-also { color: var(--lime); }
.dex em.prop { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #06231f; background: var(--cyan); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 899px), (max-height: 599px) { .dex { padding: 10px 14px 12px; gap: 6px; } .dex p, .dex .dx-trait { font-size: 12.5px; } .dex .dx-pic { width: 40px; height: 40px; } }
.passives span.pet { color: var(--txt); border-color: rgba(241, 237, 255, 0.45); }

/* A Scout's name, wherever it is written: the class's mark, then the callsign, in the class's color. */
.scout-name { font-weight: 700; white-space: nowrap; }
.cmark { display: inline-block; margin-right: 0.25em; font-style: normal; font-weight: 400; }
img.cmark { width: 1em; height: 1em; vertical-align: -0.12em; object-fit: contain; }

/* In a fight the crew's stack is the turn order: a card for every Scout and every creature in it, top to bottom. */
.member.foe { align-items: center; gap: 9px; padding: 5px 11px 5px 7px; border-color: rgba(255, 90, 90, 0.4); }
.member.foe .fi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; }
.member.foe .fi canvas { width: 100%; height: 100%; }
.member.foe .who { gap: 4px; }
.member.foe .nm b { font-size: 13.5px; color: #ffc4bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member.foe .ohp { display: block; height: 5px; border-radius: 3px; background: rgba(12, 8, 30, 0.85); }
.member.foe .ohp i { display: block; height: 100%; border-radius: 3px; background: #ff5a5a; }
.member.foe .oa { flex: none; font-size: 15px; line-height: 1; }
.member.foe .oa .cmark { margin: 0; }
.member.foe:hover { border-color: #ff8a80; }
.member.foe.on { border-color: #ff5a5a; box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.4), 0 0 22px rgba(255, 90, 90, 0.3); }
.member.more { justify-content: center; padding: 1px; font-size: 11.5px; font-weight: 700; color: var(--mut); border-style: dashed; cursor: default; }
@media (max-width: 899px), (max-height: 599px) {
    .member.foe { gap: 6px; padding: 2px 8px 2px 5px; }
    .member.foe .fi { width: 24px; height: 24px; }
    .member.foe .who { gap: 2px; }
    .member.foe .nm b { font-size: 11.5px; }
    .member.foe .ohp { height: 4px; }
    .member.foe .oa { font-size: 12px; }
}
