:root {
  --ink: #070b10;
  --panel: #0d131a;
  --line: #27323c;
  --paper: #f4f6ee;
  --acid: #d9ff42;
  --green: #3df28b;
  --red: #ff5b4d;
  --muted: #87939d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; background: var(--ink); }
body { margin: 0; overflow-x: hidden; color: var(--paper); background: var(--ink); font-family: "IBM Plex Mono", monospace; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.snap-shell > section { min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }

.game-floor { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #070b10; }
.topbar { position: absolute; z-index: 10; inset: 0 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7,11,16,.86); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.brand b { color: var(--acid); }
.brand-mark { width: 28px; height: 30px; display: flex; align-items: end; gap: 3px; padding-bottom: 2px; }
.brand-mark i { display: block; width: 6px; background: var(--green); box-shadow: 0 0 12px rgba(61,242,139,.35); }
.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 26px; background: var(--red); }
.brand-mark i:nth-child(3) { height: 19px; }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar nav a { border: 1px solid var(--line); padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: .06em; transition: .2s ease; }
.topbar nav a:hover { color: var(--acid); border-color: var(--acid); }
.topbar nav .buy-link { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.topbar nav .buy-link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 5px 0 #91a91d; }

.game-stage { position: absolute; inset: 76px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
#game-canvas { display: block; width: 100%; height: 100%; outline: none; cursor: crosshair; background: #0a1016; }
.game-stage::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 4px); mix-blend-mode: screen; }

.game-hud { position: absolute; z-index: 4; top: 18px; left: 22px; right: 22px; display: flex; align-items: stretch; gap: 8px; pointer-events: none; }
.hud-block { min-width: 88px; padding: 9px 12px; border: 1px solid rgba(217,255,66,.28); background: rgba(7,11,16,.76); box-shadow: inset 0 0 20px rgba(217,255,66,.025); }
.hud-block small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.hud-block strong { color: var(--acid); font-size: 17px; }
.hud-block.wide { width: min(360px, 28vw); }
.progress { height: 8px; margin-top: 6px; border: 1px solid #44515c; background: #111820; }
.progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--acid), var(--green)); box-shadow: 0 0 12px rgba(217,255,66,.45); transition: width .18s linear; }

.control-card { position: absolute; z-index: 4; left: 22px; bottom: 25px; display: flex; gap: 14px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); background: rgba(7,11,16,.8); pointer-events: none; }
.keys { display: grid; justify-items: center; gap: 2px; }
.keys span { display: flex; gap: 2px; }
kbd { min-width: 21px; height: 20px; display: grid; place-items: center; border: 1px solid #66737f; background: #192129; color: var(--paper); font-size: 9px; box-shadow: inset 0 -2px #05080b; }
.control-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.control-card b { color: var(--acid); }
.sound-button { position: absolute; z-index: 5; right: 22px; bottom: 25px; padding: 11px 13px; color: var(--muted); border: 1px solid var(--line); background: rgba(7,11,16,.8); font-size: 9px; cursor: pointer; }
.sound-button:hover { color: var(--acid); border-color: var(--acid); }

.start-screen, .message-screen { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 48%, rgba(32,54,41,.78), rgba(7,11,16,.9) 55%, rgba(7,11,16,.97)); }
.start-screen[hidden], .message-screen[hidden] { display: none; }
.signal, .message-screen > p:first-child { margin: 0 0 10px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.start-screen h1, .message-screen h2 { margin: 0; font-family: Anton, Impact, sans-serif; font-size: clamp(74px, 12vw, 176px); font-weight: 400; line-height: .75; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 8px 0 rgba(0,0,0,.28); }
.start-screen h1 span { color: var(--acid); }
.lead { margin: 30px 20px 20px; color: #b6c0c7; font-size: clamp(10px, 1.2vw, 14px); letter-spacing: .12em; }
.start-screen button { min-width: 230px; padding: 15px 20px; border: 0; color: var(--ink); background: var(--acid); font-weight: 700; letter-spacing: .08em; cursor: pointer; box-shadow: 0 6px 0 #7f9615; transition: transform .15s ease; }
.start-screen button:hover { transform: translateY(-3px); }
.start-screen button span { margin-left: 12px; padding: 2px 6px; border: 1px solid rgba(0,0,0,.35); }
.start-screen small { margin-top: 15px; color: #707d87; font-size: 8px; letter-spacing: .15em; }
.message-screen { background: rgba(7,11,16,.9); }
.message-screen h2 { color: var(--red); font-size: clamp(64px, 9vw, 128px); }
.message-screen > p:last-child { color: var(--paper); font-size: 11px; letter-spacing: .13em; }
.message-screen.win h2 { color: var(--acid); }

.scroll-hint { position: absolute; z-index: 8; left: 50%; bottom: 5px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; color: #87939d; font-size: 8px; letter-spacing: .18em; }
.scroll-hint b { color: var(--acid); font-size: 17px; animation: bounce 1s infinite; }
@keyframes bounce { 50% { transform: translateY(4px); } }

.token-floor { position: relative; display: grid; grid-template-rows: 1fr auto; overflow: hidden; color: var(--ink); background: var(--paper); }
.ticker-wall { position: absolute; z-index: 0; top: -3vw; left: -2vw; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(7,11,16,.07); font-family: Anton, Impact, sans-serif; font-size: 18vw; line-height: 1; transform: rotate(-7deg); }
.token-inner { position: relative; z-index: 1; width: min(1500px, 100%); margin: auto; padding: 9vh 5vw 5vh; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr); gap: clamp(50px, 8vw, 140px); align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.token-copy h2 { margin: 0; font-family: Anton, Impact, sans-serif; font-size: clamp(62px, 8.5vw, 142px); font-weight: 400; line-height: .8; letter-spacing: -.035em; }
.token-copy h2 span { color: var(--red); }
.story { max-width: 740px; margin: 28px 0; font-size: clamp(11px, 1vw, 14px); line-height: 1.8; }
.contract { max-width: 760px; display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--ink); background: var(--paper); }
.contract span { grid-column: 1/-1; padding: 7px 12px 0; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.contract code { min-width: 0; overflow: hidden; padding: 11px 12px 13px; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.contract button { border: 0; border-left: 2px solid var(--ink); padding: 0 18px; color: var(--paper); background: var(--ink); font-size: 10px; font-weight: 700; cursor: pointer; }
.contract button:hover { color: var(--acid); }

.link-panel { border-top: 2px solid var(--ink); }
.link-panel > p { margin: 0; padding: 12px 0; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.link-panel a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; min-height: 58px; border-top: 1px solid rgba(7,11,16,.22); transition: .18s ease; }
.link-panel a:last-child { border-bottom: 2px solid var(--ink); }
.link-panel a span { font-size: 9px; }
.link-panel a b { font-family: Anton, Impact, sans-serif; font-size: clamp(24px, 2.3vw, 39px); font-weight: 400; letter-spacing: .015em; }
.link-panel a i { font-size: 20px; font-style: normal; }
.link-panel a:hover { padding: 0 12px; color: var(--paper); background: var(--ink); }

footer { position: relative; z-index: 2; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-top: 1px solid rgba(7,11,16,.2); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
footer a:hover { color: var(--red); }

@media (max-width: 760px) {
  html { scroll-snap-type: none; }
  .game-floor { min-height: 680px; }
  .topbar { height: 64px; padding: 0 13px; }
  .brand { font-size: 11px; }
  .topbar nav a:first-child { display: none; }
  .topbar nav a { padding: 10px; font-size: 9px; }
  .game-stage { inset: 64px 0 0; }
  .game-hud { top: 10px; left: 8px; right: 8px; gap: 4px; }
  .hud-block { min-width: 0; flex: 1; padding: 7px; }
  .hud-block.wide { width: auto; flex: 2; }
  .hud-block strong { font-size: 12px; }
  .control-card { left: 8px; bottom: 18px; }
  .sound-button { right: 8px; bottom: 18px; }
  .start-screen h1 { font-size: 68px; }
  .token-inner { padding: 70px 20px 50px; grid-template-columns: 1fr; gap: 45px; }
  .token-copy h2 { font-size: 62px; }
  .contract { grid-template-columns: 1fr; }
  .contract button { min-height: 44px; border-top: 2px solid var(--ink); border-left: 0; }
  footer { gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* LIGHT TRADING TERMINAL — V2 */
:root {
  --ink: #111318;
  --panel: #ffffff;
  --line: #d8dce3;
  --paper: #ffffff;
  --acid: #2962ff;
  --green: #089981;
  --red: #f23645;
  --muted: #6a7080;
}

html, body { background: #fff; color: var(--ink); }
.game-floor { background: #fff; }
.topbar { height: 62px; padding: 0 20px; color: #191c23; border-color: #dfe2e8; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.brand b { color: #2962ff; }
.brand-mark i { background: #089981; box-shadow: none; }
.brand-mark i:nth-child(2) { background: #f23645; }
.topbar nav a { border-color: #d7dbe2; background: #fff; }
.topbar nav a:hover { color: #2962ff; border-color: #2962ff; }
.topbar nav .buy-link { color: #fff; border-color: #2962ff; background: #2962ff; }
.topbar nav .buy-link:hover { color: #fff; box-shadow: 0 4px 0 #163aa5; }

.game-stage { inset: 62px 0 0; background: #fff; border-color: #dfe2e8; }
#game-canvas { background: #fff; cursor: crosshair; }
.game-stage::after { display: none; }

.tv-top-tools { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 18px; padding: 0 64px 0 58px; color: #5f6675; border-bottom: 1px solid #e1e4ea; background: rgba(255,255,255,.94); font-size: 10px; pointer-events: none; }
.tv-top-tools span { white-space: nowrap; }
.tv-top-tools strong { margin-left: auto; color: #232631; font-size: 10px; }
.tv-top-tools em { color: #089981; font-size: 8px; font-style: normal; font-weight: 700; }
.tv-left-tools { position: absolute; z-index: 5; top: 38px; bottom: 50px; left: 0; width: 46px; display: flex; flex-direction: column; align-items: center; padding-top: 7px; border-right: 1px solid #e1e4ea; background: rgba(255,255,255,.95); pointer-events: none; }
.tv-left-tools button { width: 31px; height: 31px; display: grid; place-items: center; color: #454b58; border: 0; border-radius: 5px; background: transparent; font: 15px Arial, sans-serif; }
.tv-left-tools button:nth-child(2) { color: #fff; background: #2962ff; }
.tv-right-scale { position: absolute; z-index: 5; top: 38px; right: 0; bottom: 50px; width: 68px; display: flex; flex-direction: column; justify-content: space-around; align-items: flex-end; padding: 18px 6px 34px 0; color: #777d8b; border-left: 1px solid #e1e4ea; background: rgba(255,255,255,.95); font-size: 8px; pointer-events: none; }
.tv-right-scale .price-live { padding: 4px 5px; color: #fff; background: #2962ff; }
.tv-bottom-axis { position: absolute; z-index: 5; left: 46px; right: 68px; bottom: 26px; height: 24px; display: flex; align-items: center; justify-content: space-around; color: #7b8190; border-top: 1px solid #e1e4ea; background: rgba(255,255,255,.96); font-size: 8px; pointer-events: none; }
.tv-statusbar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 26px; display: flex; align-items: center; gap: 24px; padding: 0 12px; color: #4d5360; border-top: 1px solid #dfe2e8; background: #fff; font-size: 8px; pointer-events: none; }
.tv-statusbar b { margin-left: auto; font-weight: 600; }

.game-hud { top: 50px; left: 59px; right: 82px; }
.hud-block { color: #20242d; border: 1px solid #d5dae2; background: rgba(255,255,255,.93); box-shadow: 0 1px 4px rgba(20,30,50,.08); }
.hud-block small { color: #747b89; }
.hud-block strong { color: #2962ff; }
.progress { border-color: #cbd0d9; background: #eef0f4; }
.progress i { background: linear-gradient(90deg, #f23645, #ff9800, #089981); box-shadow: none; }
.control-card { left: 60px; bottom: 64px; color: #1f232b; border-color: #d2d7df; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(20,30,50,.08); }
kbd { color: #232730; border-color: #aeb4be; background: #f3f4f7; box-shadow: inset 0 -2px #d8dbe1; }
.control-card p { color: #626977; }
.control-card b { color: #2962ff; }
.sound-button { right: 82px; bottom: 64px; color: #555c69; border-color: #d2d7df; background: rgba(255,255,255,.95); }
.sound-button:hover { color: #2962ff; border-color: #2962ff; }

.start-screen, .message-screen { background: radial-gradient(circle at 50% 46%, rgba(230,240,255,.95), rgba(255,255,255,.97) 58%, #fff); }
.signal, .message-screen > p:first-child { color: #089981; }
.start-screen h1, .message-screen h2 { color: #111318; text-shadow: 0 5px 0 #dfe4ec; }
.start-screen h1 span { color: #2962ff; }
.lead { color: #616978; }
.start-screen button { color: #fff; background: #2962ff; box-shadow: 0 6px 0 #163aa5; }
.start-screen small { color: #858b97; }
.message-screen { background: rgba(255,255,255,.94); }
.message-screen h2 { color: #f23645; }
.message-screen > p:last-child { color: #22262f; }
.message-screen.win h2 { color: #089981; }
.scroll-hint { color: #6d7482; }
.scroll-hint b { color: #2962ff; }

@media (max-width: 760px) {
  .game-stage { inset: 64px 0 0; }
  .tv-top-tools { padding-left: 50px; gap: 8px; overflow: hidden; }
  .tv-top-tools span:nth-child(n+4), .tv-top-tools strong, .tv-top-tools em { display: none; }
  .tv-left-tools { width: 38px; }
  .tv-right-scale { width: 55px; }
  .tv-bottom-axis { left: 38px; right: 55px; }
  .game-hud { left: 45px; right: 60px; top: 43px; }
  .control-card { left: 45px; bottom: 60px; }
  .sound-button { right: 60px; bottom: 60px; }
}
