/* Mission 03: Shield Tactics. User asked for a colourful, game-like, slightly 3D look.
   Colour codes a category (lane, threat kind, card family) and always sits beside an icon and words.
   Depth cues (tilted table, standing tokens, isometric office) make the board read as a game table. */
.navy, .tactics { --accent: #173c57; --accent-light: #e6edf3; }
.tx-brand { display: inline-flex; align-items: center; gap: 8px; }
.tx-emblem { width: 26px; height: 28px; flex: 0 0 auto; }
.tx-emblem.big { width: 60px; height: 66px; }
.mission-flag { padding: 4px 8px; border-radius: 4px; background: #fff1d6; color: #7a4a12; font-size: .74rem; font-weight: 700; }
.tactics-card { grid-column: 1 / -1; }
.tactics-card .mission-preview { position: relative; background: linear-gradient(180deg, #d4eaff, #f3f9ff); }
.txp { position: relative; height: 100%; display: grid; align-items: end; justify-items: center; }
.txp-hq { width: min(330px, 100%); }
.txp-token { position: absolute; animation: bob 3s ease-in-out infinite; }
.txp-token.p0 { left: 12%; top: 16%; }.txp-token.p1 { left: 44%; top: 2%; animation-delay: .6s; }.txp-token.p2 { right: 12%; top: 20%; animation-delay: 1.2s; }

/* Kind colours: medal fill and plate border. */
.k-unknown { --k: #475569; }
.k-phishing { --k: #d92d20; }
.k-impersonation { --k: #7c3aed; }
.k-mfa { --k: #c2410c; }
.k-rogue-wifi { --k: #be185d; }
.k-shadow-ai { --k: #a16207; }
.k-incident { --k: #9f1239; }
.k-legit, .k-own-mfa, .k-share-task { --k: #15803d; }
.tx-medal { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--k) 55%, #fff) 0 16%, var(--k) 62%); box-shadow: 0 4px 0 color-mix(in srgb, var(--k) 62%, #000), 0 9px 14px #0f2a402e; }
.tx-medal .icon { width: 24px; height: 24px; stroke-width: 2; }
.tx-medal.small { width: 34px; height: 34px; }.tx-medal.small .icon { width: 18px; height: 18px; }

/* Header, HUD and guidance */
.tx-wavebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin: 22px 0 16px; }
.tx-wavebar > div { min-width: 0; }
.tx-wavebar h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.tx-hud { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tx-hud > div { min-width: 96px; padding: 10px 14px; border: 1px solid var(--line); border-top: 4px solid #2f7fd1; border-radius: 10px; background: #fff; }
.tx-hud > div:nth-child(2) { border-top-color: #f5a623; }.tx-hud > div:nth-child(3) { border-top-color: #7c3aed; }
.tx-hud dt { font-size: .74rem; color: var(--muted); }
.tx-hud dd { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }
.tx-hud > div.flash { animation: shake .45s ease-out; border-color: #d92d20; }
.tx-shields { display: inline-flex; gap: 2px; }
.tx-shields i { display: inline-flex; color: #2f7fd1; }.tx-shields i.off { color: #d92d20; }
.tx-shields .icon { width: 22px; height: 22px; }
.tx-shields i.on .icon path:first-child { fill: #d6ebff; }
.tx-energy { display: inline-flex; gap: 3px; }
.tx-gem-icon { width: 18px; height: 18px; }
.tx-gem-icon polygon { fill: #fff5e0; stroke: #b7791f; stroke-width: 1.4; }
.tx-gem-icon.on polygon { fill: #f5a623; }
.tx-coach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #f0d08a; border-radius: var(--radius); background: #fff8e6; }
.tx-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tx-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid #e8d3a0; border-radius: 8px; background: #fff; color: #52616e; font-size: .78rem; font-weight: 700; }
.tx-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #eef2f5; }
.tx-steps li.current { border-color: var(--navy); background: var(--navy); color: #fff; }
.tx-steps li.current span { background: #f5a623; color: #2b1a00; }
.tx-steps li.done span { background: #15803d; color: #fff; }
.tx-coach p { display: flex; flex: 1 1 280px; gap: 8px; align-items: flex-start; color: #5a3d00; font-size: .88rem; font-weight: 600; }
.tx-coach p .icon { width: 18px; height: 18px; margin-top: 2px; color: #b7791f; }

/* Wave intro banner */
.tx-intro { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; margin-bottom: 18px; padding: 20px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #173c57, #245c8e); animation: reveal .4s ease-out; }
.tx-intro h2 { color: #fff; font-size: 1.6rem; }
.tx-intro p { color: #eef6ff; margin-top: 6px; }
.tx-intro-mark { position: relative; }
.tx-intro-mark > span { position: absolute; right: -6px; bottom: -4px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f5a623; color: #2b1a00; font-weight: 800; }
.tx-intro .tx-intro-sub { margin-top: 12px; color: #ffd166; font-size: .76rem; font-weight: 800; }
.tx-kinds { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.tx-kinds li { display: flex; align-items: center; gap: 8px; max-width: 320px; padding: 6px 10px 6px 6px; border-radius: 10px; background: #ffffff1c; font-size: .76rem; line-height: 1.4; color: #eef6ff; }
.tx-kinds strong { display: block; color: #fff; font-size: .8rem; }
.tx-intro .button.primary, .tx-end.button.primary { background: #f5a623; color: #2b1a00; }
.tx-intro .button.primary:hover, .tx-end.button.primary:hover { background: #ffb83d; }
.tx-intro .button.primary, .tx-end.button.primary, .tx-intro .button.primary:hover, .tx-end.button.primary:hover { box-shadow: 0 4px 0 #b7791f; }

/* Board: a tilted table with standing tokens. */
.tx-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tx-board { padding: 14px 14px 10px; border: 1px solid #c6dcef; border-radius: var(--radius); background: linear-gradient(180deg, #d4e9ff 0%, #ecf6ff 55%, #f8fbff 100%); overflow: hidden; }
.tx-stage { perspective: 1100px; perspective-origin: 50% 0; }
.tx-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); gap: 8px 10px; transform: rotateX(16deg); transform-origin: 50% 100%; }
.lane-mail { --lane: #2563eb; --lane-light: #e3edff; }
.lane-chat { --lane: #7c3aed; --lane-light: #efe8ff; }
.lane-work { --lane: #0f766e; --lane-light: #dcf5f0; }
.tx-lane { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; min-width: 0; }
.tx-lane h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-self: start; max-width: 100%; min-width: 0; overflow-wrap: anywhere; padding: 4px 9px; border-radius: 6px; background: var(--lane); color: #fff; font-size: .78rem; letter-spacing: 0; }
.tx-lane h2 .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.tx-lane ol { display: grid; grid-row: 2 / -1; grid-template-rows: subgrid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tx-cell { display: grid; gap: 8px; align-content: start; min-height: 112px; padding: 8px 6px 6px; border: 1.5px dashed color-mix(in srgb, var(--lane) 45%, #fff); border-radius: 12px; background: var(--lane-light); }
.tx-lane li:last-child { border-style: solid; box-shadow: inset 0 -4px 0 #f5a62366; }
.tx-empty { align-self: center; justify-self: center; font-size: .8rem; font-weight: 800; color: #52616e; }
.tx-item { position: relative; display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; text-align: center; transform: rotateX(-16deg); transform-origin: 50% 100%; }
.tx-body { display: grid; justify-items: center; gap: 5px; transition: transform .18s; }
.tx-item:hover:not(.resolved) .tx-body { transform: translateY(-4px); }
.tx-plate { display: grid; gap: 2px; width: 100%; padding: 6px 7px; border: 2px solid var(--k); border-radius: 9px; background: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--k) 40%, #fff); font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.tx-item.unknown .tx-plate { border-style: dashed; }
.tx-item.unknown .tx-medal { animation: beckon 1.8s ease-in-out infinite; }
.tx-tag { font-size: .66rem; font-weight: 800; color: var(--k); }
.tx-title { font-weight: 600; color: var(--ink); }
.tx-note { font-size: .68rem; font-weight: 700; color: #7a4a12; }
.tx-item.target { cursor: crosshair; }
.tx-item.target .tx-plate { outline: 3px solid #f5a623; outline-offset: 2px; }
.tx-item.target .tx-medal { box-shadow: 0 4px 0 color-mix(in srgb, var(--k) 62%, #000), 0 0 0 5px #ffd166; }
.tx-item.focused .tx-plate { box-shadow: 0 0 0 3px var(--navy); }
.tx-item.resolved { cursor: default; }
.tx-item.resolved .tx-medal { box-shadow: none; transform: scale(.85); }
.tx-item.just-played .tx-body { animation: impact .5s ease-out; }
.tx-item.arrive .tx-body { animation: drop .6s cubic-bezier(.2, .9, .3, 1.25); }
.tx-item.boss .tx-medal { width: 58px; height: 58px; }.tx-item.boss .tx-medal .icon { width: 30px; height: 30px; }
.tx-pips { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.tx-pips i { width: 11px; height: 11px; border: 2px solid var(--k); border-radius: 50%; }
.tx-pips i.on { background: var(--k); }
.tx-stamp { justify-self: center; padding: 2px 7px; border-radius: 4px; font-size: .7rem; font-weight: 800; color: var(--st, var(--ink)); background: var(--st-fill, #eef2f5); animation: stamp .4s ease-out; }
.st-neutralised, .st-completed { --st: #15803d; --st-fill: #e7f7ec; }
.st-blocked, .st-missed { --st: #7a4a12; --st-fill: #fff1d9; }
.st-breached { --st: #b42318; --st-fill: #fdecea; }
.tx-float { position: absolute; top: -4px; left: 0; right: 0; z-index: 3; width: fit-content; max-width: 100%; margin: 0 auto; padding: 3px 8px; border-radius: 6px; background: #15803d; color: #fff; font-size: .78rem; font-weight: 800; pointer-events: none; animation: float-up 1.2s ease-out forwards; }
.tx-float.risk { background: #b42318; }.tx-float.partial { background: #8a5a00; }
.tx-base { position: relative; display: grid; justify-items: center; margin-top: 2px; }
.tx-hq-art { width: min(340px, 92%); height: auto; overflow: visible; }
.dome-fill { fill: #7cc4ff; opacity: .2; }
.dome-seg { fill: none; stroke-width: 7; stroke-linecap: round; }
.dome-seg.on { stroke: #2f9bff; }
.dome-seg.off { stroke: #d92d20; stroke-dasharray: 6 9; }
.ground { fill: #c2d9ee; }.b-front { fill: #2b6ca3; }.b-side { fill: #1d4b75; }.b-roof { fill: #5aa0dd; }
.windows polygon { fill: #ffd166; }
.flag-pole { stroke: #173c57; stroke-width: 2; }.flag { fill: #f5a623; }
.tx-base.hit .tx-hq-art { animation: shake .5s ease-out; }
.tx-base.hit .dome-fill { fill: #d92d20; opacity: .28; }
.tx-base-label { display: inline-flex; align-items: center; gap: 6px; margin-top: -2px; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .84rem; font-weight: 700; }
.tx-base-label .icon { width: 17px; height: 17px; }

/* Side panels */
.tx-side { display: grid; gap: 14px; }
.tx-intel, .tx-log { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tx-intel h2, .tx-log h2 { margin: 6px 0 10px; font-size: 1rem; letter-spacing: 0; }
.tx-intel.threat, .tx-intel.legit { border: 2px solid var(--k); }
.tx-intel .tx-tag { font-size: .74rem; }
.tx-kind-desc { margin-bottom: 10px; font-size: .84rem; color: var(--muted); }
.tx-intel.card-mode { border: 2px solid var(--f); background: color-mix(in srgb, var(--f) 7%, #fff); }
.tx-intel.card-mode .tx-card-icon { background: var(--f); color: #fff; }
.tx-flags, .tx-log ul, .tx-outcomes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tx-flags li, .tx-log li, .tx-outcomes li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; line-height: 1.5; }
.tx-flags .icon, .tx-log .icon, .tx-outcomes .icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.tx-log li.success .icon, .tx-outcomes li.success .icon { color: #15803d; }
.tx-log li.partial .icon, .tx-outcomes li.partial .icon { color: #8a5a00; }
.tx-log li.risk .icon, .tx-outcomes li.risk .icon { color: #b42318; }
.tx-log strong, .tx-outcomes strong { display: block; }
.tx-how { margin: 0; padding-left: 20px; font-size: .84rem; line-height: 1.6; }
.tx-help { margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* Hand of cards: colour band by action family, gold energy gem. */
.fam-defend { --f: #2563eb; }.fam-verify { --f: #0f766e; }.fam-work { --f: #15803d; }.fam-respond { --f: #7c3aed; }.fam-shortcut { --f: #c2410c; }
.tx-hand { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tx-hand-head, .tx-hand-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tx-hand-head h2 { font-size: 1rem; letter-spacing: 0; }
.tx-hand-head span { font-size: .8rem; color: var(--muted); }
.tx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 12px 0 14px; }
.tx-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 150px; padding: 0; overflow: hidden; text-align: left; border: 2px solid var(--f); border-radius: 12px; background: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--f) 60%, #000), 0 10px 18px #0f2a401f; transition: transform .18s, box-shadow .18s; }
.tx-card:hover { transform: perspective(700px) rotateX(8deg) translateY(-6px); }
.tx-card.selected { transform: translateY(-10px); box-shadow: 0 0 0 4px #ffd166, 0 16px 26px #0f2a4038; }
.tx-card.short { filter: grayscale(.9); cursor: not-allowed; }
.tx-card.short:hover { transform: none; }
.tx-card-top { position: relative; display: flex; align-items: center; justify-content: center; height: 58px; background: var(--f); color: #fff; }
.tx-card-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #ffffff2e; }
.tx-card-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.tx-gem { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 26px; height: 28px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #f5a623; color: #2b1a00; font-size: .85rem; font-weight: 800; }
.tx-key { position: absolute; right: 9px; top: 8px; font-size: .72rem; font-weight: 800; color: #fff; }
.tx-card-body { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 12px 12px; font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.tx-card-body strong { font-size: .9rem; color: var(--ink); }
.tx-hint { color: var(--muted); }
.tx-cost { font-size: .72rem; font-weight: 800; color: var(--f); }
.tx-hand-foot .tx-help { margin: 0; }
.tx-ghost { position: fixed; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 12px; background: var(--f); color: #fff; font-size: .85rem; font-weight: 800; text-align: center; pointer-events: none; box-shadow: 0 12px 24px #0f2a4040; }

/* Results */
.tx-result { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tx-outcomes { margin: 14px 0; }
.tx-wave-row { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; padding: 18px 4px; border-top: 1px solid var(--line); }
.badge.navy.on { border-color: var(--navy); background: #e6edf3; }.badge.navy.on .badge-icon { background: var(--navy); }.badge.navy.on .badge-state { color: var(--navy); }

@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes impact { 0% { transform: scale(1); } 30% { transform: scale(1.2) rotate(-5deg); } 100% { transform: none; } }
@keyframes drop { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes beckon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-up { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: translateY(-8px) scale(1.06); } 80% { opacity: 1; transform: translateY(-26px); } 100% { opacity: 0; transform: translateY(-36px); } }

@media (min-width: 900px) {
  .tactics-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .tactics-card .mission-topline { grid-column: 1 / -1; }
  .tactics-card .mission-preview { grid-row: 2 / 4; height: auto; min-height: 250px; margin-bottom: 24px; padding: 24px; }
  .tactics-card .mission-card-bottom { border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) { .tx-layout { grid-template-columns: minmax(0, 1fr); } .tx-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); } }
@media (max-width: 620px) {
  .tx-board { padding: 8px 6px 6px; }.tx-lanes { gap: 6px 5px; transform: rotateX(10deg); }.tx-item { transform: rotateX(-10deg); }
  .tx-cell { min-height: 96px; padding: 6px 3px 4px; }.tx-plate { padding: 5px 4px; font-size: .7rem; }.tx-medal { width: 38px; height: 38px; }.tx-medal .icon { width: 20px; height: 20px; }
  .tx-lane h2 { padding: 3px 6px; font-size: .7rem; }.tx-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }.tx-hud > div { min-width: 0; padding: 8px 10px; }
  .tx-hud dd { flex-wrap: wrap; gap: 5px; }.tx-shields .icon { width: 19px; height: 19px; }.tx-gem-icon { width: 14px; height: 14px; }
  .tx-intro { grid-template-columns: minmax(0, 1fr); padding: 18px; }.tx-intro-mark { display: none; }
  .tx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }.tx-card { min-height: 140px; }.tx-result { padding: 18px; }
}

/* Judge-the-evidence state: inspected but unconfirmed items stay neutral until resolved. */
.tx-item.assess { --k: #5b6f86; }
.tx-item.assess .tx-plate { border-style: solid; border-color: #6f879d; }
.tx-item.assess .tx-tag { background: #eef2f6; color: #3d4f63; }
.tx-intel.assess { border: 2px dashed #6f879d; }
.tx-intel.assess .tx-tag { background: #eef2f6; color: #3d4f63; }
.tx-artifact { display: grid; gap: 0; margin: 0 0 12px; border: 1px solid #c9d4de; border-radius: 8px; overflow: hidden; background: #fbfcfd; }
.tx-artifact div { display: grid; grid-template-columns: minmax(0, 88px) minmax(0, 1fr); gap: 10px; padding: 7px 10px; border-top: 1px solid #e3e9ef; font-size: .8rem; line-height: 1.45; }
.tx-artifact div:first-child { border-top: 0; }
.tx-artifact dt { color: #56687a; font-weight: 600; }
.tx-artifact dd { margin: 0; color: #1d2d3c; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; }
.tx-clues { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #56687a; }
@media (forced-colors: active) { .tx-intel.assess, .tx-artifact { border: 1px solid CanvasText; } }

/* Arcade skin (v2). A night-sky command stage with glowing lanes, flowing data, particle bursts,
   a turn banner, dealt cards and confetti. Text on the dark stage is white or light blue (contrast
   above 7:1); panels and cards keep dark text on white. All motion stops under reduced motion. */
.tx-arcade { position: relative; isolation: isolate; margin-top: 12px; padding: 18px 22px 26px; border-radius: 18px; color: #eaf3ff; background: radial-gradient(2px 2px at 12% 18%, #ffffffb0 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 9%, #bfe0ffa0 50%, transparent 51%), radial-gradient(2px 2px at 88% 30%, #ffffff90 50%, transparent 51%), radial-gradient(1.5px 1.5px at 34% 6%, #ffd16690 50%, transparent 51%), radial-gradient(120% 70% at 50% -10%, #2a5ea3 0%, #173a6b 40%, #0d2140 100%); box-shadow: 0 18px 40px #0b1a3340; overflow: hidden; }
.tx-arcade::before { content: ''; position: absolute; inset: -44px 0 0; z-index: -1; pointer-events: none; will-change: transform; background: linear-gradient(transparent 0 calc(100% - 1px), #7fb8ff12 0) 0 0 / 100% 44px, linear-gradient(90deg, transparent 0 calc(100% - 1px), #7fb8ff12 0) 0 0 / 44px 100%; animation: tx-drift 6s linear infinite; }
.tx-arcade.quake { animation: shake .45s ease-out; }
.tx-arcade.quake::after { content: ''; position: absolute; inset: 0; z-index: 20; pointer-events: none; box-shadow: inset 0 0 140px #ff2d2dcc; animation: tx-alarm .9s ease-out forwards; }
.tx-arcade .game-top .text-button, .tx-arcade .game-name, .tx-arcade .score-label { color: #eaf3ff; }
.tx-arcade .score-label strong { color: #ffd166; }
.tx-arcade .score-label strong span { color: #b9d4f2; }
.tx-arcade .tx-wavebar h1 { color: #fff; text-shadow: 0 2px 0 #0b1a33, 0 0 26px #5ad1ff66; }
.tx-arcade .tx-wavebar .section-label { color: #9fd3ff; }
.tx-arcade .tx-hud > div { border: 1px solid #ffffff2e; border-top: 3px solid #5ad1ff; background: #ffffff14; box-shadow: inset 0 1px 0 #ffffff24, 0 8px 18px #0005; }
.tx-arcade .tx-hud > div:nth-child(2) { border-top-color: #ffc94d; }.tx-arcade .tx-hud > div:nth-child(3) { border-top-color: #b58cff; }
.tx-arcade .tx-hud dt { color: #b9d4f2; }.tx-arcade .tx-hud dd { color: #fff; }
.tx-arcade .tx-shields i { color: #7cd3ff; filter: drop-shadow(0 0 4px #5ad1ff99); }.tx-arcade .tx-shields i.off { color: #ff6b5a; filter: none; }
.tx-arcade .tx-shields i.on .icon path:first-child { fill: #1f5fa0; }
.tx-arcade .tx-gem-icon polygon { fill: #1b3358; stroke: #ffc94d; }.tx-arcade .tx-gem-icon.on polygon { fill: #ffc94d; }
.tx-arcade .tx-gem-icon.on { filter: drop-shadow(0 0 5px #ffc94dcc); animation: tx-gem 2.4s ease-in-out infinite; }
.tx-arcade .tx-coach { border: 1px solid #ffc94d55; background: #0b1a33b8; box-shadow: inset 0 1px 0 #ffffff12; }
.tx-arcade .tx-coach p { color: #ffe3a3; }.tx-arcade .tx-coach p .icon { color: #ffc94d; }
.tx-arcade .tx-steps li { border-color: #ffffff2e; background: #ffffff14; color: #d6e6f7; }
.tx-arcade .tx-steps li span { background: #ffffff24; color: #fff; }
.tx-arcade .tx-steps li.current { border-color: #ffc94d; background: #ffc94d; color: #2b1a00; box-shadow: 0 0 18px #ffc94d66; }
.tx-arcade .tx-steps li.current span { background: #2b1a00; color: #ffc94d; }
.tx-arcade .tx-steps li.done span { background: #22a55b; }
/* Wave intro: radar rings behind the emblem and a sweep of light across the banner. */
.tx-arcade .tx-intro { position: relative; overflow: hidden; border: 1px solid #5ad1ff55; background: linear-gradient(120deg, #0b1a33, #1f4f8c 60%, #2a6fb8); box-shadow: 0 20px 40px #0007; }
.tx-arcade .tx-intro::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, #ffffff26 48%, transparent 60%); transform: translateX(-100%); animation: tx-sweep 3.2s ease-in-out infinite; }
.tx-arcade .tx-intro-mark::before, .tx-arcade .tx-intro-mark::after { content: ''; position: absolute; inset: -10px; border: 2px solid #5ad1ff88; border-radius: 50%; animation: tx-radar 2.4s ease-out infinite; }
.tx-arcade .tx-intro-mark::after { animation-delay: 1.2s; }
.tx-arcade .tx-intro h2 { font-size: 1.9rem; text-shadow: 0 0 20px #5ad1ff66; }
/* Board: a dark arena with glowing lanes and data flowing towards the office. */
.tx-arcade .tx-board { position: relative; border: 1px solid #5ad1ff40; background: linear-gradient(180deg, #0f2a52 0%, #143566 62%, #1a4178 100%); box-shadow: inset 0 0 70px #0009, 0 12px 30px #0006; }
.tx-arcade .tx-lane h2 { box-shadow: 0 0 16px color-mix(in srgb, var(--lane) 70%, transparent); }
.tx-arcade .tx-cell { position: relative; overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--lane) 75%, #fff); background: color-mix(in srgb, var(--lane) 24%, #0b1a33); box-shadow: inset 0 0 20px color-mix(in srgb, var(--lane) 40%, transparent); }
.tx-arcade .tx-cell::before { content: ''; position: absolute; inset: -18px 0 0; pointer-events: none; will-change: transform; opacity: .5; background: repeating-linear-gradient(180deg, transparent 0 16px, color-mix(in srgb, var(--lane) 55%, #fff) 16px 18px); -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); animation: tx-flow 1.4s linear infinite; }
.tx-arcade .tx-lane li:last-child { border-color: #ff8a65; box-shadow: inset 0 0 26px #ff6b4a66, inset 0 -4px 0 #ff6b4a; }
.tx-arcade .tx-empty { position: relative; color: #9fb8d8; font-size: 1.15rem; }
.tx-arcade .tx-item { z-index: 1; }
.tx-arcade .tx-plate { background: #fffffff5; box-shadow: 0 3px 0 color-mix(in srgb, var(--k) 45%, #000), 0 0 18px color-mix(in srgb, var(--k) 45%, transparent); }
.tx-arcade .tx-item:not(.resolved) .tx-medal { animation: tx-hover 2.8s ease-in-out infinite; }
.tx-arcade .tx-cell .tx-item:nth-child(2) .tx-medal { animation-delay: -1.2s; }
.tx-arcade .tx-lane:nth-child(2) .tx-medal { animation-delay: -.7s; }.tx-arcade .tx-lane:nth-child(3) .tx-medal { animation-delay: -1.9s; }
.tx-arcade .tx-item.unknown .tx-medal { box-shadow: 0 4px 0 #1f2d3d, 0 0 0 0 #5ad1ffaa; animation: tx-hover 2.8s ease-in-out infinite, tx-ping 1.8s ease-out infinite; }
.tx-arcade .tx-item.assess .tx-medal { box-shadow: 0 4px 0 #34495e, 0 0 16px #ffc94d88; }
.tx-arcade .tx-item.target .tx-plate { outline-color: #ffd166; box-shadow: 0 0 0 2px #ffd166, 0 0 26px #ffd166aa; }
.tx-arcade .tx-item.focused .tx-plate { box-shadow: 0 0 0 3px #5ad1ff, 0 0 22px #5ad1ff88; }
.tx-arcade .tx-item.resolved .tx-plate { opacity: .92; }
.tx-arcade .st-neutralised .tx-medal, .tx-arcade .st-completed .tx-medal { box-shadow: 0 0 0 4px #5ee39a55, 0 0 20px #5ee39a; }
.tx-arcade .st-breached .tx-medal { box-shadow: 0 0 0 4px #ff6b5a55, 0 0 22px #ff6b5a; }
.tx-arcade .tx-item.just-played .tx-body { animation: impact .5s ease-out, tx-flashglow .7s ease-out; }
/* The office: a glowing, breathing shield dome. */
.tx-arcade .tx-base::before { content: ''; position: absolute; left: 50%; bottom: 18px; width: 70%; height: 70%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #5ad1ff40, transparent); pointer-events: none; animation: tx-breathe 3.4s ease-in-out infinite; }
.tx-arcade .dome-fill { fill: #5ad1ff; opacity: .16; }
.tx-arcade .dome-seg.on { stroke: #7cd3ff; filter: drop-shadow(0 0 6px #5ad1ff); stroke-dasharray: 14 6; animation: tx-dome 6s linear infinite; }
.tx-arcade .dome-seg.off { stroke: #ff6b5a; }
.tx-arcade .ground { fill: #28507f; }.tx-arcade .b-front { fill: #3a82c4; }.tx-arcade .b-side { fill: #25598f; }.tx-arcade .b-roof { fill: #74b6ef; }
.tx-arcade .windows polygon { fill: #ffd166; filter: drop-shadow(0 0 3px #ffd166); animation: tx-windows 4s steps(2) infinite; }
.tx-arcade .windows polygon:nth-child(3n) { animation-delay: -1.3s; }.tx-arcade .windows polygon:nth-child(4n) { animation-delay: -2.6s; }
.tx-arcade .tx-base.hit .dome-fill { fill: #ff4d4d; opacity: .5; }
.tx-arcade .tx-base-label { border: 1px solid #5ad1ff66; background: #0b1a33; box-shadow: 0 0 18px #5ad1ff40; }
/* Turn banner sweeps across the board at the start of each turn. */
.tx-turn-banner { position: absolute; left: 0; right: 0; top: 38%; z-index: 6; padding: 12px 0; pointer-events: none; text-align: center; color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 18px #5ad1ff, 0 3px 0 #0b1a33; background: linear-gradient(90deg, transparent, #0b1a33d9 25%, #0b1a33d9 75%, transparent); animation: tx-banner 1.4s ease-out forwards; }
/* Side panels float as bright glass cards on the stage. */
.tx-arcade .tx-intel, .tx-arcade .tx-log { border: 1px solid #ffffff; border-top: 4px solid #5ad1ff; background: #f7fbfffa; color: var(--ink); box-shadow: 0 12px 30px #0007; }
.tx-arcade .tx-intel.threat, .tx-arcade .tx-intel.legit { border: 2px solid var(--k); border-top-width: 5px; }
.tx-arcade .tx-intel.assess { border: 2px dashed #6f879d; border-top: 5px solid #ffc94d; }
/* Hand: a dark tray of glossy cards that are dealt in at the start of each turn. */
.tx-arcade .tx-hand { border: 1px solid #5ad1ff40; background: linear-gradient(180deg, #0b1a33cc, #0b1a33); box-shadow: inset 0 1px 0 #ffffff14, 0 12px 30px #0006; }
.tx-arcade .tx-hand-head h2 { color: #fff; }.tx-arcade .tx-hand-head span, .tx-arcade .tx-hand-foot .tx-help { color: #b9d4f2; }
.tx-arcade .tx-card { position: relative; box-shadow: 0 5px 0 color-mix(in srgb, var(--f) 55%, #000), 0 12px 24px #0008; }
.tx-arcade .tx-card-top { background: linear-gradient(135deg, color-mix(in srgb, var(--f) 75%, #fff), var(--f) 55%, color-mix(in srgb, var(--f) 70%, #000)); }
.tx-arcade .tx-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, #ffffff66 45%, transparent 60%); transform: translateX(-130%); transition: transform .7s; }
.tx-arcade .tx-card:hover::after, .tx-arcade .tx-card:focus-visible::after { transform: translateX(130%); }
.tx-arcade .tx-card:hover { transform: perspective(700px) rotateX(10deg) translateY(-8px); }
.tx-arcade .tx-card.selected { transform: translateY(-12px); box-shadow: 0 0 0 3px #ffd166, 0 0 30px #ffd166aa, 0 16px 26px #0008; }
.tx-arcade .tx-card-icon { background: #ffffff38; box-shadow: 0 0 14px #ffffff55; }
.tx-arcade .tx-gem { box-shadow: 0 0 10px #ffc94d; }
.tx-hand.deal .tx-card { animation: tx-deal .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.tx-hand.deal .tx-card:nth-child(2) { animation-delay: .06s; }.tx-hand.deal .tx-card:nth-child(3) { animation-delay: .12s; }.tx-hand.deal .tx-card:nth-child(4) { animation-delay: .18s; }.tx-hand.deal .tx-card:nth-child(5) { animation-delay: .24s; }.tx-hand.deal .tx-card:nth-child(6) { animation-delay: .3s; }
/* Wave result: a bright card; a clean wave rains confetti. */
.tx-arcade .tx-result { position: relative; overflow: hidden; background: #f7fbff; color: var(--ink); box-shadow: 0 16px 40px #0008; }
.tx-arcade .tx-result .earned { display: inline-block; animation: tx-pop .7s cubic-bezier(.2, .9, .3, 1.4) both; }
.tx-confetti { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tx-confetti i { position: absolute; top: -16px; width: 8px; height: 14px; border-radius: 2px; animation: tx-confetti 2.2s ease-in forwards; }
.tx-result > :not(.tx-confetti) { position: relative; z-index: 1; }
/* Sparks where a card lands. */
.tx-burst { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; color: #5ee39a; }
.tx-burst.risk { color: #ff5a4a; }.tx-burst.partial { color: #ffc94d; }
.tx-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tx-burst::before { content: ''; position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border: 3px solid currentColor; border-radius: 50%; animation: tx-ring .6s ease-out forwards; }
/* Home card preview in the same arcade look. */
.tactics-card .mission-preview { background: radial-gradient(120% 80% at 50% 0%, #2a5ea3, #0d2140); }
.tactics-card .mission-preview .ground { fill: #28507f; }.tactics-card .mission-preview .dome-seg.on { stroke: #7cd3ff; filter: drop-shadow(0 0 6px #5ad1ff); }
@keyframes tx-drift { to { transform: translateY(44px); } }
@keyframes tx-flow { to { transform: translateY(18px); } }
@keyframes tx-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tx-ping { 0% { box-shadow: 0 4px 0 #1f2d3d, 0 0 0 0 #5ad1ffaa; } 100% { box-shadow: 0 4px 0 #1f2d3d, 0 0 0 14px #5ad1ff00; } }
@keyframes tx-gem { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes tx-sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes tx-radar { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tx-breathe { 0%, 100% { opacity: .6; transform: translateX(-50%) scale(.96); } 50% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
@keyframes tx-dome { to { stroke-dashoffset: -200; } }
@keyframes tx-windows { 50% { opacity: .55; } }
@keyframes tx-banner { 0% { opacity: 0; transform: scaleX(.2); } 20% { opacity: 1; transform: none; } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scaleY(.2); visibility: hidden; } }
@keyframes tx-deal { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes tx-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tx-confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(520px) rotate(var(--r, 360deg)); opacity: 0; } }
@keyframes tx-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes tx-alarm { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tx-flashglow { 0% { filter: drop-shadow(0 0 0 #fff); } 30% { filter: drop-shadow(0 0 14px #fff); } 100% { filter: none; } }
@media (max-width: 620px) { .tx-arcade { padding: 12px 10px 18px; border-radius: 12px; } .tx-turn-banner { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .tx-arcade *, .tx-arcade::before, .tx-arcade::after, .tx-burst, .tx-turn-banner { animation: none !important; transition: none !important; } .tx-turn-banner, .tx-confetti { display: none; } }
@media (forced-colors: active) { .tx-arcade, .tx-arcade .tx-board, .tx-arcade .tx-hand { background: Canvas; color: CanvasText; border: 1px solid CanvasText; } .tx-arcade::before, .tx-arcade .tx-cell::before { display: none; } }
.tx-confetti i:nth-child(1) { left: 38%; background: #5ad1ff; animation-delay: 0.27s; animation-duration: 2.5s; --r: 47deg; }
.tx-confetti i:nth-child(2) { left: 75%; background: #ff6b8a; animation-delay: 0.54s; animation-duration: 2.3s; --r: 94deg; }
.tx-confetti i:nth-child(3) { left: 15%; background: #5ee39a; animation-delay: 0.81s; animation-duration: 2.1s; --r: 141deg; }
.tx-confetti i:nth-child(4) { left: 52%; background: #b58cff; animation-delay: 0.18s; animation-duration: 1.9s; --r: 188deg; }
.tx-confetti i:nth-child(5) { left: 89%; background: #ffd166; animation-delay: 0.45s; animation-duration: 2.6s; --r: 235deg; }
.tx-confetti i:nth-child(6) { left: 29%; background: #f5a623; animation-delay: 0.72s; animation-duration: 2.4s; --r: 282deg; }
.tx-confetti i:nth-child(7) { left: 66%; background: #5ad1ff; animation-delay: 0.09s; animation-duration: 2.2s; --r: 329deg; }
.tx-confetti i:nth-child(8) { left: 6%; background: #ff6b8a; animation-delay: 0.36s; animation-duration: 2s; --r: 16deg; }
.tx-confetti i:nth-child(9) { left: 43%; background: #5ee39a; animation-delay: 0.63s; animation-duration: 1.8s; --r: 63deg; }
.tx-confetti i:nth-child(10) { left: 80%; background: #b58cff; animation-delay: 0s; animation-duration: 2.5s; --r: 110deg; }
.tx-confetti i:nth-child(11) { left: 20%; background: #ffd166; animation-delay: 0.27s; animation-duration: 2.3s; --r: 157deg; }
.tx-confetti i:nth-child(12) { left: 57%; background: #f5a623; animation-delay: 0.54s; animation-duration: 2.1s; --r: 204deg; }
.tx-confetti i:nth-child(13) { left: 94%; background: #5ad1ff; animation-delay: 0.81s; animation-duration: 1.9s; --r: 251deg; }
.tx-confetti i:nth-child(14) { left: 34%; background: #ff6b8a; animation-delay: 0.18s; animation-duration: 2.6s; --r: 298deg; }
.tx-confetti i:nth-child(15) { left: 71%; background: #5ee39a; animation-delay: 0.45s; animation-duration: 2.4s; --r: 345deg; }
.tx-confetti i:nth-child(16) { left: 11%; background: #b58cff; animation-delay: 0.72s; animation-duration: 2.2s; --r: 32deg; }
.tx-confetti i:nth-child(17) { left: 48%; background: #ffd166; animation-delay: 0.09s; animation-duration: 2s; --r: 79deg; }
.tx-confetti i:nth-child(18) { left: 85%; background: #f5a623; animation-delay: 0.36s; animation-duration: 1.8s; --r: 126deg; }
.tx-confetti i:nth-child(19) { left: 25%; background: #5ad1ff; animation-delay: 0.63s; animation-duration: 2.5s; --r: 173deg; }
.tx-confetti i:nth-child(20) { left: 62%; background: #ff6b8a; animation-delay: 0s; animation-duration: 2.3s; --r: 220deg; }
.tx-confetti i:nth-child(21) { left: 2%; background: #5ee39a; animation-delay: 0.27s; animation-duration: 2.1s; --r: 267deg; }
.tx-confetti i:nth-child(22) { left: 39%; background: #b58cff; animation-delay: 0.54s; animation-duration: 1.9s; --r: 314deg; }
.tx-confetti i:nth-child(23) { left: 76%; background: #ffd166; animation-delay: 0.81s; animation-duration: 2.6s; --r: 1deg; }
.tx-confetti i:nth-child(24) { left: 16%; background: #f5a623; animation-delay: 0.18s; animation-duration: 2.4s; --r: 48deg; }
