/* Pass 3 — final art direction: a strategy call becomes a physical commitment. */

::selection {
  color: #03101a;
  background: var(--blue-pale);
  text-shadow: none;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #070a0d;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070a0d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), #0e5fb8);
  border: 2px solid #070a0d;
}

body {
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

a,
button,
input { -webkit-tap-highlight-color: transparent; }

.enter-desk,
.back-link,
.footer-links a,
.debrief-copy a,
.guide-rail a {
  transition: color .28s var(--ease-out), background-color .28s var(--ease-out), border-color .28s var(--ease-out), transform .28s var(--ease-out);
}

.enter-desk:hover,
.enter-desk:focus-visible,
.debrief-copy a:hover,
.debrief-copy a:focus-visible { color: var(--blue-pale); }

.back-link:hover,
.back-link:focus-visible { transform: translateX(-4px); color: var(--ink); }

.hero h1 strong,
.sim-head h2,
.radio-head h2,
.debrief h2,
.guide-hero h1 {
  font-kerning: normal;
  text-wrap: balance;
}

.hero-intro,
.sim-head > p,
.guide-deck,
.guide-copy p { text-wrap: pretty; }

.strategy-console::before {
  content: "";
  position: absolute;
  inset: 40px 0 0;
  z-index: 4;
  pointer-events: none;
  opacity: .07;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(151,205,255,.22) 4px);
  mix-blend-mode: screen;
}

.strategy-console::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 40px auto 0 0;
  width: 2px;
  pointer-events: none;
  opacity: 0;
  background: var(--blue-pale);
  box-shadow: 0 0 22px 7px rgba(22,135,255,.54);
}

.strategy-console.call-locked::after {
  animation: transmit-scan .72s var(--ease-out);
}

@keyframes transmit-scan {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100vw - (2 * var(--pad)))); }
}

.commit-call {
  width: 100%;
  min-height: 54px;
  margin: 18px 0 0;
  padding: 0 14px;
  border: 1px solid #40515e;
  background: #0a1117;
  color: #dce7ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font: 700 8px var(--mono);
  letter-spacing: .09em;
  isolation: isolate;
}

.commit-call span,
.commit-call small { position: relative; z-index: 2; }
.commit-call small { color: var(--dim); font: 500 7px var(--mono); }
.commit-call i {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue);
  transition: width .85s linear;
}
.commit-call:hover { border-color: var(--blue-pale); background: #0d1a24; }
.commit-call:focus-visible { outline-color: var(--blue-pale); }
.commit-call.holding { color: #03101a; border-color: var(--blue); }
.commit-call.holding small { color: #092743; }
.commit-call.holding i { width: 100%; }
.commit-call.sent { color: #061105; border-color: var(--green); background: var(--green); }
.commit-call.sent small { color: #263b08; }

.chart-wrap { position: relative; }
.call-receipt {
  position: absolute;
  z-index: 8;
  top: 28px;
  left: 50%;
  width: min(390px, calc(100% - 48px));
  padding: 15px 18px 17px;
  border: 1px solid var(--blue-pale);
  background: rgba(5, 13, 19, .96);
  box-shadow: 12px 12px 0 rgba(22,135,255,.14), 0 22px 70px rgba(0,0,0,.64);
  font-family: var(--mono);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -14px) skewX(-4deg);
  clip-path: inset(0 100% 0 0);
}

.call-receipt::after {
  content: "17";
  position: absolute;
  right: 10px;
  bottom: -9px;
  color: rgba(146,200,255,.1);
  font: 900 70px/.7 var(--mono);
}

.call-receipt span,
.call-receipt small { display: block; color: #8294a3; font-size: 7px; letter-spacing: .1em; }
.call-receipt b { display: block; margin: 8px 0 6px; color: var(--green); font-size: 25px; letter-spacing: -.07em; }
.strategy-console.call-locked .call-receipt {
  animation: receipt-in .68s .2s var(--ease-out) forwards;
}
.strategy-console.call-locked.loss-call .call-receipt { border-color: var(--red); }
.strategy-console.call-locked.loss-call .call-receipt b { color: var(--red); }

@keyframes receipt-in {
  to { opacity: 1; transform: translate(-50%, 0) skewX(-1deg); clip-path: inset(0); }
}

.result-stamp { transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.result-stamp.losing { border-color: var(--red); box-shadow: 12px 12px 0 rgba(255,48,73,.1), inset 0 0 30px rgba(255,48,73,.08); }
.result-stamp.losing b { color: var(--red); }

.radio-card:hover { border-color: #7a8790; }
.radio-hold:hover { border-color: var(--red); background: #1a1115; }
.menu-button:hover,
.menu-button:focus-visible { border-color: var(--blue-pale); color: var(--blue-pale); }

.guide-model {
  background:
    radial-gradient(circle at 76% 52%, rgba(189,255,34,.05), transparent 36%),
    rgba(7,12,16,.94);
}
.guide-model::after {
  content: "DECISION MEMORY / PASS 3";
  position: absolute;
  right: 13px;
  bottom: -26px;
  color: #5f6f7c;
  font: 500 6px var(--mono);
  letter-spacing: .12em;
}
.guide-rail a:hover,
.guide-rail a:focus-visible { padding-left: 9px; border-color: var(--blue); }
.token-grid > div { transition: transform .35s var(--ease-out), filter .35s var(--ease-out); }
.token-grid > div:hover { transform: translateY(-6px); filter: brightness(1.08); }

@media (max-width: 760px) {
  .hero h1 { letter-spacing: -.075em; }
  .hero-intro { line-height: 1.58; }
  .commit-call { min-height: 58px; }
  .call-receipt { top: 14px; width: calc(100% - 28px); }
  .call-receipt b { font-size: 20px; }
  .radio-head h2 { font-size: clamp(43px, 12.7vw, 49px); line-height: 1.02; letter-spacing: -.07em; }
  .radio-head h2 span { letter-spacing: .05em; margin-right: .08em; }
  .radio-card header,
  .radio-card footer { padding-inline: 14px; }
  .radio-card > p { line-height: 1.55; }
  .guide-copy h2 { letter-spacing: -.06em; line-height: .95; }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-console.call-locked::after { animation: none; }
  .strategy-console.call-locked .call-receipt { animation: none; opacity: 1; transform: translate(-50%, 0); clip-path: none; }
  .commit-call i { transition: none; }
  .token-grid > div:hover { transform: none; }
}
