:root {
  --bg: #0a0b0e;
  --panel: #101216;
  --panel-2: #14171c;
  --border: #1e222a;
  --text: #d5d9de;
  --dim: #6d7480;
  --dimmer: #3d434d;
  --claude: #d97757;
  --gpt: #19c37d;
  --grok: #e6e6e6;
  --term: #7ee787;
  --add: #3fb950;
  --del: #f85149;
  --warn: #e3b341;
  --blue: #58a6ff;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: var(--claude);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { background: #0a0b0e; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}
.hidden { display: none !important; }
b { font-weight: 600; }

/* ---------- Landing ---------- */
#landing {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 50; transition: opacity .5s ease;
}
#landing.out { opacity: 0; pointer-events: none; }
.landing-inner { text-align: center; }
.logo { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.logo .num, .brand .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.logo .cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
.tagline { color: var(--dim); margin-top: 6px; font-size: 13px; }
.hint { margin-top: 28px; color: var(--text); font-size: 13px; animation: pulse 2.4s ease-in-out infinite; }
.keys { margin-top: 56px; display: flex; gap: 22px; justify-content: center; color: var(--dim); font-size: 11px; }
kbd {
  font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); margin-right: 4px;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- HUD ---------- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; height: 38px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: rgba(10,11,14,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); font-size: 11.5px;
}
.hud-left, .hud-mid, .hud-right { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.rank { color: var(--accent); font-weight: 500; transition: color .4s; white-space: nowrap; }
.rank.deprecated::after { content: " (deprecated)"; color: var(--dim); font-weight: 400; }
.xp { width: 90px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.stat { color: var(--dim); white-space: nowrap; }
.stat b { color: var(--text); font-variant-numeric: tabular-nums; }
.stat b.bump { animation: bump .25s ease; }
@keyframes bump { 40% { color: var(--accent); } }
.plan { white-space: nowrap; color: var(--text); padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 10.5px; }
.plan.up { animation: planup .6s ease; }
@keyframes planup { 30% { border-color: var(--accent); color: var(--accent); transform: scale(1.08); } }
.velocity { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.velocity i { width: 4px; background: var(--dimmer); border-radius: 1px; height: 100%; transition: background .15s; }
.velocity i:nth-child(1) { height: 30%; } .velocity i:nth-child(2) { height: 45%; }
.velocity i:nth-child(3) { height: 60%; } .velocity i:nth-child(4) { height: 80%; }
.velocity i.on { background: var(--accent); }
.vlabel { color: var(--dim); min-width: 118px; text-align: right; }
.vlabel.hot { color: var(--accent); }

/* ---------- Workspace ---------- */
#workspace {
  position: fixed; top: 38px; left: 0; right: 0; bottom: 0; padding: 10px; gap: 10px;
  display: grid; transition: grid-template-columns .4s ease, grid-template-rows .4s ease;
}
#workspace.lvl-0 { grid-template-columns: 1fr; grid-template-areas: "claude"; }
#workspace.lvl-1 { grid-template-columns: 1fr; grid-template-rows: 1fr 240px; grid-template-areas: "claude" "term"; }
#workspace.lvl-2 { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 220px; grid-template-areas: "editor claude" "term term"; }
#workspace.lvl-3 { grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr 210px; grid-template-areas: "editor claude gpt" "term term term"; }
#workspace.lvl-4 { grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr 1fr 200px; grid-template-areas: "editor claude gpt" "editor claude grok" "term term term"; }
#workspace.lvl-5, #workspace.lvl-6, #workspace.lvl-7, #workspace.lvl-8, #workspace.lvl-9 {
  grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr 1fr 200px; grid-template-areas: "editor claude gpt" "editor claude grok" "term term agents";
}
@media (max-width: 1250px) { #st-lines, #st-skipped { display: none !important; } }
@media (max-width: 1000px) { .hud-mid { display: none; } }
@media (max-width: 900px) {
  #workspace[class*="lvl-"] { grid-template-columns: 1fr !important; grid-template-rows: 1fr 160px !important; grid-template-areas: "claude" "term" !important; }
  .panel[data-area="editor"], .panel[data-area="gpt"], .panel[data-area="grok"], .panel[data-area="agents"], .mini, #windows { display: none !important; }
  .picker-cards { flex-direction: column; align-items: center; }
  .hud-mid { display: none; }
}

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
  animation: panelin .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes panelin { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.panel-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 11px;
  color: var(--dim); border-bottom: 1px solid var(--border); background: var(--panel-2); flex: none;
}
.panel-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dimmer); }
.panel-head .title { color: var(--text); font-weight: 500; }
.panel-head .meta { margin-left: auto; font-variant-numeric: tabular-nums; }
.panel-head .live { width: 6px; height: 6px; border-radius: 50%; background: var(--dimmer); }
.panel.active .panel-head .live { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px; scrollbar-width: none; }
.panel-body::-webkit-scrollbar { display: none; }
.panel.claude { grid-area: claude; --accent: var(--claude); }
.panel.gpt { grid-area: gpt; --accent: var(--gpt); }
.panel.grok { grid-area: grok; --accent: var(--grok); }
.panel.term { grid-area: term; --accent: var(--term); }
.panel.editor { grid-area: editor; --accent: var(--blue); }
.panel.agents { grid-area: agents; --accent: var(--warn); }
.panel .panel-head .dot { background: var(--accent); }

/* ---------- Chat ---------- */
.msg { margin: 0 0 14px; white-space: pre-wrap; word-break: break-word; }
.msg .who { font-size: 10.5px; color: var(--dim); margin-bottom: 3px; letter-spacing: .02em; }
.msg.user .who { color: var(--dim); }
.msg.user .txt { color: #fff; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: inline-block; max-width: 92%; }
.msg.assistant .who { color: var(--accent); }
.msg .txt { color: var(--text); }
.msg .txt .b { font-weight: 600; color: #fff; }
.msg .txt .code { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; color: #e8ecf1; }
.msg .txt pre { margin: 6px 0; padding: 8px 10px; background: #0c0e12; border: 1px solid var(--border); border-radius: 6px; overflow-x: hidden; color: #c9d1d9; white-space: pre-wrap; }
.think { margin: 0 0 12px; color: var(--dim); font-style: italic; border-left: 2px solid var(--border); padding-left: 10px; white-space: pre-wrap; }
.think .lbl { font-style: normal; font-size: 10.5px; color: var(--dimmer); margin-bottom: 2px; }
.tool { margin: 0 0 10px; white-space: pre-wrap; }
.tool .hd { color: var(--text); }
.tool .hd::before { content: "● "; color: var(--accent); }
.tool .hd .fn { color: #fff; font-weight: 500; }
.tool .hd .arg { color: var(--dim); }
.tool .res { color: var(--dim); padding-left: 14px; }
.tool .res::before { content: "⎿  "; color: var(--dimmer); }
.tool .res.bad { color: var(--del); }
.tool .res.ok { color: var(--add); }
.msg.user.legacy .who::after { content: " · legacy"; color: var(--dimmer); }

/* ---------- Terminal ---------- */
.panel.term .panel-body { font-size: 12px; padding: 10px 12px; }
.tl { white-space: pre-wrap; word-break: break-all; color: var(--dim); }
.tl.cmd { color: #fff; }
.tl.cmd::before { content: "$ "; color: var(--term); }
.tl.ok { color: var(--add); }
.tl.err { color: var(--del); }
.tl.warn { color: var(--warn); }

/* ---------- Editor ---------- */
.panel.editor .panel-head .title { color: var(--blue); }
.panel.editor .panel-body { padding: 8px 0; font-size: 12px; }
.cl { display: flex; white-space: pre; }
.cl .ln { width: 44px; flex: none; text-align: right; padding-right: 12px; color: var(--dimmer); font-variant-numeric: tabular-nums; }
.cl .tx { flex: 1; white-space: pre-wrap; word-break: break-all; padding-right: 10px; }
.cl.add { background: rgba(63,185,80,.10); box-shadow: inset 2px 0 0 var(--add); } .cl.add .tx { color: #b7f5c2; }
.cl.del { background: rgba(248,81,73,.10); box-shadow: inset 2px 0 0 var(--del); } .cl.del .tx { color: #ffb3ae; text-decoration: line-through; text-decoration-color: rgba(248,81,73,.5); }
.cl.ctx .tx { color: var(--dim); }
.cl .k { color: #ff7b72; } .cl .s { color: #a5d6ff; } .cl .c { color: var(--dimmer); font-style: italic; } .cl .f { color: #d2a8ff; } .cl .n { color: #79c0ff; }

/* ---------- Agents ---------- */
.panel.agents .panel-body { padding: 6px 0; }
.ag { display: flex; align-items: center; gap: 8px; padding: 3px 12px; font-size: 11.5px; animation: agin .3s ease; }
@keyframes agin { from { opacity: 0; transform: translateX(-4px); } }
.ag .st { width: 6px; height: 6px; border-radius: 50%; background: var(--dimmer); flex: none; }
.ag .st.run { background: var(--add); animation: pulse 1.2s ease-in-out infinite; }
.ag .st.wait { background: var(--warn); }
.ag .st.err { background: var(--del); }
.ag .st.idle { background: var(--dimmer); }
.ag .nm { color: var(--text); width: 118px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag .ms { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag.flash .ms { color: var(--text); }

/* ---------- Mini windows ---------- */
.mini {
  position: fixed; width: 300px; height: 190px; z-index: 15;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: miniin .35s cubic-bezier(.2,.8,.2,1);
}
.mini .panel-body { font-size: 11px; padding: 8px 10px; }
.mini .msg { margin-bottom: 8px; }
@keyframes miniin { from { opacity: 0; transform: scale(.9); } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 48px; right: 14px; z-index: 30; display: flex; flex-direction: column; gap: 8px; width: 320px; pointer-events: none; }
.toast {
  background: #171a20; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: toastin .35s cubic-bezier(.2,.8,.2,1);
  display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 12px;
}
.toast.out { animation: toastout .3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastout { to { opacity: 0; transform: translateX(20px); } }
.toast .ic { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff; }
.toast .tt { color: #fff; font-weight: 600; }
.toast .tb { color: #aab1bb; margin-top: 1px; line-height: 1.4; }
.toast .ta { color: var(--dim); font-size: 10.5px; margin-top: 2px; }
.ic.slack { background: #4a154b; } .ic.stripe { background: #635bff; } .ic.vercel { background: #000; border: 1px solid #333; }
.ic.hn { background: #ff6600; } .ic.x { background: #000; border: 1px solid #333; } .ic.gh { background: #24292f; }
.ic.aws { background: #ff9900; color: #000; } .ic.sentry { background: #362d59; } .ic.mail { background: #2b6cb0; }
.ic.sys { background: #3a3f4a; } .ic.claude { background: var(--claude); } .ic.npm { background: #cb3837; }
.ic.yc { background: #f26522; } .ic.tc { background: #0a9d3f; } .ic.pd { background: #06ac38; } .ic.cursor { background: #111; border: 1px solid #333; }
.ic.linear { background: #5e6ad2; } .ic.mac { background: #555; } .ic.news { background: #b00; }

/* ---------- Modal ---------- */
#modal-root { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 420px;
  background: #1a1d24; border: 1px solid #2a2f39; border-radius: 12px; padding: 18px 18px 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); font-family: var(--sans); animation: modalin .25s cubic-bezier(.2,.8,.2,1);
}
.modal.shake { animation: shake .4s ease; }
@keyframes modalin { from { opacity: 0; transform: translate(-50%,-50%) scale(.95); } }
@keyframes shake { 20%,60% { transform: translate(-51%,-50%); } 40%,80% { transform: translate(-49%,-50%); } }
.modal .app { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.modal .app::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.modal .mt { color: #fff; font-weight: 600; font-size: 14px; }
.modal .mb { color: #aab1bb; margin-top: 6px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.modal .mb code { font-family: var(--mono); background: #0c0e12; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: #e8ecf1; font-size: 11.5px; }
.modal .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.modal .btn { padding: 6px 12px; border-radius: 7px; font-size: 12px; border: 1px solid #2a2f39; color: var(--text); background: #232730; }
.modal .btn.primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.modal .btn.ghost { color: var(--dimmer); border-color: transparent; background: transparent; font-size: 11px; }
.modal .btn.pressed { transform: scale(.96); filter: brightness(1.3); }
.modal .prog { height: 4px; background: #0c0e12; border-radius: 2px; margin-top: 12px; overflow: hidden; }
.modal .prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.modal.claude { --accent: var(--claude); } .modal.sys { --accent: #8a93a2; } .modal.gh { --accent: #fff; }
.modal.stripe { --accent: #635bff; } .modal.mail { --accent: #58a6ff; } .modal.aws { --accent: #ff9900; }

/* ---------- Promo / Flash ---------- */
#promo { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; pointer-events: none; }
.promo-card { text-align: center; animation: promo 1.9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes promo { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.promo-kicker { color: var(--dim); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.promo-rank { font-size: 42px; font-weight: 600; color: #fff; letter-spacing: -0.03em; margin: 6px 0; text-shadow: 0 0 40px rgba(217,119,87,.35); }
.promo-sub { color: var(--dim); font-size: 13px; }

#flash { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(6,7,9,.94); text-align: center; animation: fade .2s ease; }
#flash .flash-title { font-size: clamp(36px, 7vw, 84px); font-weight: 600; letter-spacing: -0.03em; color: var(--del); text-shadow: 0 0 60px currentColor; }
#flash.green .flash-title { color: var(--add); }
#flash.purple .flash-title { color: #c084fc; }
#flash.white .flash-title { color: #fff; }
#flash .flash-sub { color: var(--text); margin-top: 8px; font-size: 14px; }
#flash .flash-hint { color: var(--dimmer); margin-top: 40px; font-size: 11px; animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Singularity ---------- */
body.shake { animation: bodyshake .35s ease; }
@keyframes bodyshake { 20%,60% { transform: translateX(-3px); } 40%,80% { transform: translateX(3px); } }

/* ---------- Picker ---------- */
#picker { position: fixed; inset: 0; z-index: 49; display: grid; place-items: center; background: var(--bg); animation: fade .3s ease; }
.picker-inner { text-align: center; }
.picker-kicker { color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.picker-cards { display: flex; gap: 14px; justify-content: center; }
.card {
  width: 210px; padding: 18px 16px 16px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s; position: relative;
}
.card kbd { position: absolute; top: 10px; right: 10px; margin: 0; color: var(--dim); }
.card .card-t { color: #fff; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.card .card-s { color: var(--dim); font-size: 11.5px; }
.card:hover, .card.sel { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }
.card.sel kbd { color: var(--accent); border-color: var(--accent); }
.picker-hint { color: var(--dimmer); font-size: 11px; margin-top: 26px; }

/* ---------- Floating windows (Chrome / ChatGPT / X / game) ---------- */
#windows { position: fixed; inset: 0; pointer-events: none; z-index: 16; }
.win {
  position: absolute; pointer-events: auto; width: 460px; background: #15171c; border: 1px solid #2a2f39; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); overflow: hidden; font-family: var(--sans); font-size: 12px; color: var(--text);
  animation: miniin .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column;
}
.win.out { animation: winout .25s ease forwards; }
@keyframes winout { to { opacity: 0; transform: scale(.94); } }
.win .tb { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #1e2128; flex: none; }
.win .tb .lights { display: flex; gap: 5px; margin-right: 4px; }
.win .tb .lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4a; }
.win .tb .lights i:first-child { background: #ff5f57; cursor: pointer; }
.win .tb .lights i:nth-child(2) { background: #febc2e; } .win .tb .lights i:nth-child(3) { background: #28c840; }
.win .tb .wt { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .wb { flex: 1; overflow: hidden; padding: 12px 14px; min-height: 0; }
.win.focus { border-color: var(--accent); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px var(--accent); }
/* chrome */
.win.chrome .tabs { display: flex; gap: 2px; flex: 1; overflow: hidden; }
.win.chrome .tab { padding: 3px 10px; border-radius: 6px 6px 0 0; background: #2a2e37; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.win.chrome .tab.on { background: #15171c; color: var(--text); }
.win.chrome .omni { padding: 6px 10px; background: #15171c; border-bottom: 1px solid #2a2f39; }
.win.chrome .omni span { display: block; background: #23272f; border-radius: 999px; padding: 4px 12px; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.chrome .wb { background: #fff; color: #202124; font-size: 12px; }
.win.chrome.dark .wb { background: #1b1d22; color: #d5d9de; }
.g-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; } .g-logo { font-weight: 700; color: #4285f4; font-size: 20px; } .g-q { border: 1px solid #ddd; border-radius: 999px; padding: 5px 14px; flex: 1; }
.g-res { margin-bottom: 12px; } .g-res a { color: #1a0dab; font-size: 14px; } .g-res p { margin: 2px 0 0; color: #4d5156; font-size: 11.5px; }
.g-paa { border-top: 1px solid #eee; padding-top: 8px; color: #202124; font-weight: 600; } .g-paa span { display: block; font-weight: 400; padding: 5px 0; border-bottom: 1px solid #eee; }
.so-h { font-size: 16px; color: #3b4045; } .so-closed { color: #6a737c; font-size: 12px; } .so-meta { color: #6a737c; font-size: 11px; margin: 4px 0 12px; }
.so-a { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid #e3e6e8; } .so-a b { color: #6a737c; width: 34px; text-align: center; } .so-a code { background: #f6f6f6; padding: 1px 4px; }
.err-pg { padding: 20px 0; } .err-ic { font-size: 28px; color: #5f6368; } .err-t { font-size: 18px; margin: 10px 0 6px; } .err-b { color: #5f6368; } .err-c { color: #5f6368; font-size: 11px; margin-top: 10px; }
.aws-h { color: #545b64; font-size: 11px; } .aws-big { font-size: 30px; font-weight: 600; margin: 2px 0; color: #16191f; } .aws-sub { color: #545b64; font-size: 11px; margin-bottom: 12px; } .aws-sub .up { color: #d13212; }
.aws-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #eaeded; } .aws-row i { color: #d13212; }
.gh-404 { text-align: center; padding: 14px 0; } .gh-cat { font-size: 40px; color: #ccc; } .gh-t { font-size: 18px; font-weight: 600; margin: 6px 0; } .gh-b { color: #57606a; line-height: 1.5; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2a2f39; } .v-row b { flex: 1; font-weight: 500; } .v-row i { color: var(--dim); font-style: normal; font-size: 11px; }
.win .ok { color: #3fb950; } .win .err { color: #f85149; }
.st-h { font-size: 15px; font-weight: 600; padding: 10px; border-radius: 6px; background: rgba(63,185,80,.15); margin-bottom: 10px; }
.st-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #2a2f39; }
.w-t { font-family: Georgia, serif; font-size: 22px; border-bottom: 1px solid #a2a9b1; margin-bottom: 8px; } .w-note { background: #fef6e7; border: 1px solid #fc3; padding: 4px 8px; font-size: 11px; margin-bottom: 8px; } .w-p { line-height: 1.5; margin-bottom: 8px; } .w-p sup { color: #36c; font-size: 9px; }
.n-live { color: #c00; font-weight: 700; font-size: 11px; } .n-h { font-size: 18px; font-weight: 700; margin: 4px 0 8px; line-height: 1.2; } .n-p { line-height: 1.5; margin-bottom: 6px; color: #333; }
.nt { text-align: center; padding: 20px 0; } .nt-logo { font-size: 36px; font-weight: 700; color: #4285f4; } .nt-box { margin: 12px auto 0; width: 80%; border-radius: 999px; background: #f1f3f4; padding: 8px; color: #5f6368; text-align: left; padding-left: 16px; } .nt-hint { color: #9aa0a6; font-size: 11px; margin-top: 14px; }
/* chatgpt window */
.win.cgpt { width: 520px; height: 300px; }
.win.cgpt .body { display: flex; flex: 1; min-height: 0; }
.win.cgpt .side { width: 150px; flex: none; background: #171717; border-right: 1px solid #2a2a2a; padding: 8px; overflow: hidden; }
.win.cgpt .side .nc { color: #ececec; font-size: 11.5px; padding: 6px 8px; border-radius: 6px; background: #2a2a2a; margin-bottom: 8px; }
.win.cgpt .side .h { color: #8e8e8e; font-size: 10px; padding: 4px 8px; }
.win.cgpt .side .it { color: #ccc; font-size: 11px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
.win.cgpt .side .it.on { background: #2a2a2a; color: #fff; }
.win.cgpt .main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #212121; }
.win.cgpt .wb { padding: 12px 16px; font-size: 12.5px; }
.win.cgpt .msg .who { display: none; }
.win.cgpt .msg.user .txt { background: #2f2f2f; border: none; border-radius: 14px; float: right; max-width: 80%; color: #ececec; }
.win.cgpt .msg.user { overflow: hidden; }
.win.cgpt .msg.assistant .txt { color: #ececec; font-family: var(--sans); white-space: pre-wrap; }
.win.cgpt .comp { flex: none; margin: 0 12px 10px; background: #2f2f2f; border-radius: 999px; padding: 8px 14px; color: #8e8e8e; font-size: 12px; }
/* x clone */
.win.xwin { width: 420px; background: #000; border-color: #2f3336; font-family: var(--sans); }
.win.xwin .tb { background: #000; border-bottom: 1px solid #2f3336; }
.win.xwin .tb .wt { color: #e7e9ea; font-weight: 700; }
.win.xwin .wb { padding: 0; }
.post { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #2f3336; }
.post .av { width: 36px; height: 36px; border-radius: 50%; flex: none; background: #333; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 12px; }
.post .av.grok { background: #fff; color: #000; }
.post .pn { color: #e7e9ea; font-weight: 700; } .post .ph { color: #71767b; margin-left: 4px; }
.post .pt { color: #e7e9ea; margin-top: 2px; line-height: 1.4; font-size: 13px; white-space: pre-wrap; }
.post .pt .at { color: #1d9bf0; }
.post .quote { margin-top: 8px; border: 1px solid #2f3336; border-radius: 12px; padding: 10px 12px; color: #e7e9ea; font-size: 12px; }
.post .quote .qh { color: #71767b; font-size: 11px; margin-bottom: 2px; }
.post .stats { display: flex; gap: 22px; color: #71767b; font-size: 11px; margin-top: 8px; }
.post .stats b { font-weight: 400; }
.post.reply .pt { min-height: 18px; }
.post .msg { margin: 0; } .post .msg .who { display: none; } .post .msg .txt { color: #e7e9ea; font-size: 13px; }
/* game */
.win.game { width: 340px; }
.win.game .wb { padding: 0; background: #0c0e12; cursor: pointer; }
.win.game canvas { display: block; width: 100%; }
.win.game .gh { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding: 5px 10px; border-top: 1px solid #2a2f39; display: flex; justify-content: space-between; }
.win.game.focus .gh { color: var(--accent); }

/* ---------- Modal buttons are real buttons now ---------- */
.modal .btn { cursor: pointer; user-select: none; transition: filter .1s, transform .1s; }
.modal .btn:hover { filter: brightness(1.15); }
.modal .btn.ghost { cursor: not-allowed; }
.modal.plead { --accent: var(--claude); }
.modal.plead .mt { font-size: 17px; }

/* ---------- Endgame ---------- */
body.ash { --claude: #c084fc; }
body.ash #workspace, body.ash #windows { filter: saturate(.55); }
body.ash #hud { border-bottom-color: rgba(192,132,252,.3); }
body.ash .brand .num { color: #c084fc; }
body.dead #workspace, body.dead #windows { filter: saturate(.25) contrast(.95); }
#flash.red .flash-title { color: var(--del); }

/* ---------- Mute toggle ---------- */
.mute { cursor: pointer; color: var(--dim); font-size: 10.5px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; user-select: none; }
.mute:hover { color: var(--text); }
.mute.off { color: var(--dimmer); text-decoration: line-through; }

/* ---------- Trailer mode ---------- */
body.trailer { transition: transform 1.6s cubic-bezier(.45,0,.2,1); transform-origin: 50% 50%; will-change: transform; cursor: none; }
body.trailer #mute, body.trailer .flash-hint { display: none; }
body.trailer #workspace.lvl-0, body.trailer #workspace.lvl-1 { padding-left: 24%; padding-right: 24%; }
#endcard { position: fixed; inset: 0; z-index: 70; background: #06070a; display: grid; place-items: center; opacity: 0; transition: opacity .9s ease; }
#endcard.on { opacity: 1; }
.ec-inner { text-align: center; }
.ec-title { font-size: clamp(48px, 9vw, 120px); font-weight: 600; letter-spacing: -0.04em; color: #fff; line-height: 1; opacity: 0; transform: translateY(16px); transition: all .8s cubic-bezier(.2,.8,.2,1) .3s; }
.ec-title span { color: var(--claude); }
.ec-sub { margin-top: 26px; font-size: clamp(22px, 3.4vw, 44px); font-weight: 600; color: var(--add); letter-spacing: -0.02em; opacity: 0; transition: opacity .6s ease 1.1s; }
#endcard.on .ec-title { opacity: 1; transform: none; }
#endcard.on .ec-sub { opacity: 1; animation: pulsebig 1.1s ease-in-out 1.4s infinite; }
@keyframes pulsebig { 50% { transform: scale(1.07); } }

/* ---------- Window controls ---------- */
.win .tb .lights i:nth-child(2), .win .tb .lights i:nth-child(3) { cursor: pointer; }
.win.min .wb, .win.min .omni, .win.min .body, .win.min .gh { display: none !important; }
.win.min { height: auto !important; }
.win.big { transform: scale(1.3); z-index: 19; }
.win { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.xclose { margin-left: 6px; color: var(--dimmer); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; }
.xclose:hover { color: var(--text); }
.panel.mini .panel-head .meta { margin-left: auto; }
body.trailer #promo { display: none !important; }
