/* ============================================================
   FINGERS OS — single-screen terminal UI
   Neon: lime green / hot pink / orange on black · monospace
   ============================================================ */

:root {
  --green: #b6ff2e;
  --pink: #ff1f7d;
  --orange: #ff9126;
  --bg: #050607;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-brd: rgba(182, 255, 46, 0.18);
  --brd: rgba(255, 255, 255, 0.10);
  --txt: #e9ffe0;
  --dim: #7d8a76;
  --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --display: 'Bangers', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;                 /* single screen on desktop */
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.5;
}

.c-green { color: var(--green); }
.c-pink { color: var(--pink); }
.c-orange { color: var(--orange); }

/* ---------- Ambient FX ---------- */
.scanlines {
  position: fixed; inset: 0; z-index: 9; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px);
  mix-blend-mode: multiply; opacity: .5;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 12% 20%, rgba(182,255,46,.10), transparent 60%),
    radial-gradient(60% 60% at 88% 80%, rgba(255,31,125,.12), transparent 60%),
    var(--bg);
}

/* ---------- OS shell ---------- */
.os {
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px; padding: 12px;
  max-width: 1500px; margin: 0 auto;
}

/* Top bar */
.os__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border: 1px solid var(--brd); border-radius: 10px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(6px);
}
.os__dots { display: flex; gap: 6px; }
.os__dots span { width: 11px; height: 11px; border-radius: 50%; display: block; }
.d-red { background: #ff5f57; } .d-yel { background: #febc2e; } .d-grn { background: #28c840; }
.os__path { color: var(--dim); font-size: .82em; letter-spacing: .3px; }
.os__meta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.os__live { display: inline-flex; align-items: center; gap: 6px; color: var(--pink); font-weight: 700; font-size: .78em; letter-spacing: 1px; }
.os__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: blink 1.4s steps(1) infinite; }
.os__clock { color: var(--green); font-size: .82em; }
.os__ai {
  font-family: var(--mono); font-weight: 700; font-size: .74em; letter-spacing: .5px; cursor: pointer;
  color: #0a0a0a; border: 0; border-radius: 999px; padding: 5px 12px;
  background: linear-gradient(90deg, var(--green), var(--pink)); background-size: 200% 100%;
  animation: swapflow 5s linear infinite; transition: transform .16s, box-shadow .16s;
}
.os__ai:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,31,125,.4); }
.os__ai--casino { background: linear-gradient(90deg, #14e37a, var(--green)); color: #062010; }
.os__ai--casino:hover { box-shadow: 0 6px 18px rgba(20,227,122,.45); }

/* terminal AI reply + thinking */
.term__out .ai-line { color: var(--txt); }
.term__out .ai-line a { color: var(--green); }
.ai-think::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Casino card (rendered inside the terminal) */
.cas {
  border: 1px solid var(--panel-brd); border-radius: 12px; margin: 6px 0 2px;
  background: linear-gradient(180deg, rgba(20,227,122,.08), rgba(0,0,0,.25));
  overflow: hidden;
}
.cas__hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--brd); }
.cas__hd img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 18px rgba(20,227,122,.35); }
.cas__hdtxt { display: flex; flex-direction: column; gap: 2px; }
.cas__hdtxt b { font-size: 1em; }
.cas__hdtxt span { font-size: .78em; color: var(--dim); }
.cas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
.cas__game {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--txt); font-weight: 700; font-family: var(--mono); font-size: .92em;
  background: rgba(255,255,255,.04); border: 1px solid var(--brd); border-radius: 10px; padding: 12px 14px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.cas__game:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 8px 20px rgba(20,227,122,.25); color: var(--green); }
.cas__ico { font-size: 1.3em; }
.cas__ar { margin-left: auto; color: var(--green); }
@media (max-width: 520px) { .cas__grid { grid-template-columns: 1fr; } }
@keyframes blink { 50% { opacity: .25; } }

/* Body */
.os__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; min-height: 0; }

/* ---------- Terminal ---------- */
.term {
  position: relative; min-height: 0; min-width: 0;
  border: 1px solid var(--panel-brd); border-radius: 12px;
  background: linear-gradient(180deg, rgba(10,14,8,.85), rgba(6,8,6,.9));
  box-shadow: inset 0 0 60px rgba(182,255,46,.05);
  padding: 18px 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.term__logo {
  font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: 2px; line-height: 1;
  background: linear-gradient(100deg, var(--green), var(--orange) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(182,255,46,.25)); margin-bottom: 10px; flex: none;
  animation: glitch 6s infinite;
}
@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  91% { transform: translate(-2px, 1px) skewX(-6deg); }
  93% { transform: translate(2px, -1px) skewX(5deg); }
  95% { transform: translate(-1px, 0) skewX(-2deg); }
  97% { transform: none; }
}
.term__out { flex: 1; min-height: 0; overflow-y: auto; font-size: .95em; scrollbar-width: thin; scrollbar-color: var(--panel-brd) transparent; }
.term__out::-webkit-scrollbar { width: 6px; }
.term__out::-webkit-scrollbar-thumb { background: var(--panel-brd); border-radius: 6px; }
.term__out .ln { white-space: pre-wrap; word-break: break-word; }
.term__out .prompt { color: var(--green); }
.term__out .prompt .usr { color: var(--pink); }
.term__out .cmd { color: var(--txt); }
.term__out .res { color: var(--dim); }
.term__out .res b { color: var(--txt); font-weight: 700; }
.term__out .ok { color: var(--green); }
.term__out .warn { color: var(--orange); }
.cursor { display: inline-block; width: .6em; height: 1.05em; background: var(--green); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.term__out .c-dim { color: var(--dim); }

/* interactive input */
.input-line { display: flex; align-items: baseline; flex-wrap: wrap; }
.term__input {
  flex: 1; min-width: 40px;
  background: transparent; border: 0; outline: 0;
  font-family: var(--mono); font-size: 1em; line-height: 1.5;
  color: var(--txt); caret-color: var(--green); padding: 0;
}
.term__input::placeholder { color: var(--dim); }
.cmdlink { color: var(--green); cursor: pointer; border-bottom: 1px dotted rgba(182,255,46,.4); }
.cmdlink:hover { color: var(--pink); border-bottom-color: var(--pink); text-shadow: 0 0 8px rgba(255,31,125,.5); }

/* ---------- Side ---------- */
.side { display: grid; grid-template-rows: 1.5fr auto auto auto; gap: 10px; min-height: 0; min-width: 0; }
.panel {
  border: 1px solid var(--brd); border-radius: 12px;
  background: var(--panel); padding: 10px; min-height: 0; min-width: 0;
  display: flex; flex-direction: column;
}
.panel__hd {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .72em; color: var(--dim); letter-spacing: .5px; margin-bottom: 8px; flex: none;
}
.panel__hd span:first-child { color: var(--green); }
.panel--char .panel__hd span:first-child { color: var(--pink); }

/* Character feed */
.panel--char { overflow: hidden; }
.char { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; perspective: 900px; }
.char__ring {
  position: absolute; inset: 8% 18%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green), var(--pink), var(--orange), var(--green));
  filter: blur(3px); opacity: .4;
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.char__aura {
  position: absolute; inset: 14% 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,255,46,.35), rgba(255,31,125,.22) 55%, transparent 72%);
  filter: blur(30px); animation: aura 4.5s ease-in-out infinite;
}
@keyframes aura { 0%,100% { opacity:.5; transform: scale(.95);} 50% { opacity:.9; transform: scale(1.07);} }
.char img {
  position: relative; z-index: 2; max-height: 100%; max-width: 92%;
  -webkit-mask: radial-gradient(ellipse 70% 82% at 50% 46%, #000 52%, rgba(0,0,0,.3) 70%, transparent 84%);
  mask: radial-gradient(ellipse 70% 82% at 50% 46%, #000 52%, rgba(0,0,0,.3) 70%, transparent 84%);
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.7)) drop-shadow(0 0 24px rgba(182,255,46,.22));
  animation: breathe 5s ease-in-out infinite; transition: transform .18s ease-out;
  transform-style: preserve-3d;
}
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1);} 50% { transform: translateY(-8px) scale(1.02);} }
.char img.char-spin { animation: charspin .9s cubic-bezier(.34,1.2,.4,1) 1; }
@keyframes charspin { 0% { transform: rotateY(0) scale(1);} 50% { transform: rotateY(180deg) scale(1.12);} 100% { transform: rotateY(360deg) scale(1);} }
.char__particles { position: absolute; inset: 0; overflow: hidden; z-index: 3; pointer-events: none; }
.char__particles span {
  position: absolute; left: var(--x); bottom: 2%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 10px 2px var(--orange); opacity: 0;
  animation: rise var(--dr,6s) linear infinite; animation-delay: var(--dl,0s);
}
.char__particles span:nth-child(3n) { background: var(--green); box-shadow: 0 0 10px 2px var(--green); }
.char__particles span:nth-child(3n+1) { background: var(--pink); box-shadow: 0 0 10px 2px var(--pink); }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity:0;} 15%{opacity:1;} 85%{opacity:.8;} 100%{ transform: translateY(-220px) scale(1.1); opacity:0;} }

/* Stats */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cell { text-align: center; border: 1px solid var(--brd); border-radius: 8px; padding: 8px 4px; background: rgba(0,0,0,.25); }
.cell b { display: block; font-size: 1.5em; line-height: 1; }
.cell span { font-size: .68em; color: var(--dim); }
.venue { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74em; color: var(--dim); flex-wrap: wrap; }
.venue img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: #fff1; }
.venue__x { color: var(--pink); font-weight: 700; }

/* sparkline */
.spark { width: 100%; height: 26px; margin-top: 8px; display: block; overflow: visible; }
.spark polyline { filter: drop-shadow(0 0 4px rgba(182,255,46,.5)); }

/* price update flash */
@keyframes flashUp { 0% { background: rgba(182,255,46,.35);} 100% { background: rgba(0,0,0,.25);} }
@keyframes flashDn { 0% { background: rgba(255,31,125,.35);} 100% { background: rgba(0,0,0,.25);} }
.cell.up { animation: flashUp .8s ease-out; }
.cell.dn { animation: flashDn .8s ease-out; }

/* boot splash */
.boot {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg);
  transition: opacity .5s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot__logo {
  font-family: var(--display); font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: 3px;
  background: linear-gradient(100deg, var(--green), var(--orange) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(182,255,46,.3)); animation: glitch 2.2s infinite;
}
.boot__bar { width: min(72vw, 320px); height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--panel-brd); }
.boot__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--pink)); box-shadow: 0 0 12px var(--green); }
.boot__msg { font-family: var(--mono); font-size: .82rem; color: var(--dim); letter-spacing: .5px; }

/* Contract */
.ca { display: flex; align-items: center; gap: 8px; }
.ca code { flex: 1; font-size: .82em; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button {
  font-family: var(--mono); font-weight: 700; font-size: .78em; cursor: pointer;
  background: var(--green); color: #06210a; border: 0; border-radius: 6px; padding: 5px 12px; transition: .18s;
}
.ca button:hover { filter: brightness(1.08); }
.ca button.copied { background: var(--pink); color: #fff; }

/* Actions */
.panel--act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.tbtn {
  text-align: center; text-decoration: none;
  font-family: var(--mono); font-weight: 700; font-size: .84em;
  padding: 10px 10px; border-radius: 8px; transition: transform .16s ease, box-shadow .16s ease, filter .16s;
  border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbtn--wide { grid-column: 1 / -1; }
.tbtn--green { background: var(--green); color: #06210a; }
.tbtn--green:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(182,255,46,.35); }
.tbtn--pink { background: var(--pink); color: #fff; }
.tbtn--pink:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,31,125,.4); }
.tbtn--ghost { background: rgba(182,255,46,.06); border-color: var(--panel-brd); color: var(--txt); }
.tbtn--ghost:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green); }
.tbtn--swap {
  color: #0a0a0a; font-family: var(--mono); cursor: pointer;
  background: linear-gradient(90deg, var(--green), var(--orange), var(--pink), var(--green));
  background-size: 300% 100%; animation: swapflow 4s linear infinite; border: 0;
}
@keyframes swapflow { to { background-position: 300% 0; } }
.tbtn--swap:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,145,38,.45); filter: brightness(1.05); }

/* ---------- Swap modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,4,3,.78); backdrop-filter: blur(6px); }
.modal__win {
  position: relative; z-index: 1; width: min(440px, 96vw); max-height: 92vh; display: flex; flex-direction: column;
  border: 1px solid var(--panel-brd); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12,16,10,.98), rgba(6,8,6,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(182,255,46,.12);
  animation: modalpop .25s cubic-bezier(.34,1.4,.5,1);
}
@keyframes modalpop { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.modal__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--brd); }
.modal__title { font-size: .78em; color: var(--green); letter-spacing: .4px; }
.modal__x { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 1rem; cursor: pointer; font-family: var(--mono); transition: .18s; }
.modal__x:hover { color: var(--pink); }
.modal__body { padding: 12px; overflow-y: auto; }
#lifi { min-height: 300px; border-radius: 12px; overflow: hidden; }
.modal__loading { display: flex; align-items: center; gap: 10px; justify-content: center; min-height: 300px; color: var(--dim); font-size: .9em; }
.spin-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--panel-brd); border-top-color: var(--green); animation: spin 0.8s linear infinite; }
.modal__note { margin-top: 10px; font-size: .74em; color: var(--dim); line-height: 1.5; text-align: center; }
.modal__note b { color: var(--txt); }

/* FINGERS ⇄ INDEX swap form */
.swap { display: flex; flex-direction: column; }
.swap__row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.35); border: 1px solid var(--brd); border-radius: 14px;
  padding: 12px 14px;
}
.swap__side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.swap__lbl { font-size: .7em; color: var(--dim); letter-spacing: .3px; }
.swap__amt {
  background: transparent; border: 0; outline: 0; color: var(--txt);
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700; width: 100%; padding: 0;
  caret-color: var(--green);
}
.swap__amt--out { color: var(--green); overflow: hidden; text-overflow: ellipsis; }
.swap__tok {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-brd); border-radius: 999px;
  padding: 6px 12px 6px 6px; font-weight: 700; font-size: .9em;
}
.swap__tok img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #0006; }
.swap__flip {
  align-self: center; margin: -9px 0; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: var(--bg-2, #0d0d0f); border: 1px solid var(--panel-brd); color: var(--green);
  font-size: 1rem; display: grid; place-items: center; transition: .18s;
}
.swap__flip:hover { transform: rotate(180deg); border-color: var(--green); box-shadow: 0 0 12px rgba(182,255,46,.3); }
.swap__rate { text-align: center; font-size: .78em; color: var(--dim); margin: 12px 0 10px; }
.swap__rate b { color: var(--green); }
.swap__go { display: block; text-align: center; text-decoration: none; padding: 12px; font-size: 1rem; }

/* AI chat */
.modal__win--ai { width: min(480px, 96vw); }
.chat { padding: 12px; display: flex; flex-direction: column; min-height: 0; }
.chat__log {
  flex: 1; min-height: 240px; max-height: 52vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 8px;
  scrollbar-width: thin; scrollbar-color: var(--panel-brd) transparent;
}
.chat__log::-webkit-scrollbar { width: 6px; }
.chat__log::-webkit-scrollbar-thumb { background: var(--panel-brd); border-radius: 6px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .9em; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg--ai { align-self: flex-start; background: rgba(182,255,46,.08); border: 1px solid var(--panel-brd); border-bottom-left-radius: 3px; }
.msg--me { align-self: flex-end; background: rgba(255,31,125,.14); border: 1px solid rgba(255,31,125,.3); border-bottom-right-radius: 3px; }
.msg--typing { color: var(--dim); font-style: italic; }
.msg b { color: var(--green); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.chat__chips button {
  font-family: var(--mono); font-size: .72em; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--brd); color: var(--txt);
  border-radius: 999px; padding: 5px 10px; transition: .16s;
}
.chat__chips button:hover { border-color: var(--green); color: var(--green); }
.chat__form { display: flex; gap: 8px; margin-top: 4px; }
.chat__in {
  flex: 1; background: rgba(0,0,0,.35); border: 1px solid var(--brd); border-radius: 10px;
  padding: 10px 12px; color: var(--txt); font-family: var(--mono); font-size: .9em; outline: 0; caret-color: var(--green);
}
.chat__in:focus { border-color: var(--panel-brd); }
.chat__send {
  font-family: var(--mono); font-weight: 700; cursor: pointer; color: #0a0a0a;
  background: var(--green); border: 0; border-radius: 10px; padding: 0 16px; transition: .16s;
}
.chat__send:hover { filter: brightness(1.06); }
.chat__send:disabled { opacity: .5; cursor: default; }

/* ---------- Extra fun: animated terminal border + panel glow ---------- */
.term::before {
  content: ""; position: absolute; inset: -1px; border-radius: 12px; padding: 1px; z-index: 0;
  background: linear-gradient(120deg, transparent, rgba(182,255,46,.5), rgba(255,31,125,.5), transparent);
  background-size: 300% 100%; animation: swapflow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6;
}
.term__logo, .term__out { position: relative; z-index: 1; }
.panel { transition: border-color .25s, box-shadow .25s, transform .25s; }
.panel:hover { border-color: var(--panel-brd); box-shadow: 0 0 24px rgba(182,255,46,.08); }
.char__particles span { will-change: transform; }
.burst {
  position: absolute; bottom: 40%; z-index: 5; font-size: 1.1rem; pointer-events: none;
  animation: burst .9s ease-out forwards;
}
@keyframes burst {
  0% { transform: translate(0,0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx,0), var(--dy,-100px)) scale(1.2) rotate(30deg); opacity: 0; }
}

/* Status ticker */
.os__status {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border: 1px solid var(--brd); border-radius: 10px;
  background: rgba(255,255,255,.03);
}
.os__tickwrap {
  flex: 1; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.os__ticker { display: inline-flex; gap: 10px; white-space: nowrap; animation: marquee 26s linear infinite; }
.tk, .sep { font-size: .82em; letter-spacing: 1px; }
.tk { color: var(--green); }
.sep { color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.os__brand { flex: none; color: var(--dim); font-size: .78em; }

/* ---------- Mobile: allow scroll, stack ---------- */
@media (max-width: 900px) {
  body { overflow-y: auto; }
  .os { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto; }
  .os__body { grid-template-columns: 1fr; }
  .term { min-height: 46vh; }
  .side { grid-template-rows: none; }
  .panel--char .char { min-height: 40vh; }
  .os__status { position: sticky; bottom: 8px; }
}
@media (max-width: 480px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .tbtn { flex-basis: 100%; }
  .os__path { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
