/* LockState site. Same palette as the Windows app (src/LockState.Desktop/Platform/Theme.cs) and the
   same charter (CLAUDE.md): 2px corners, no pill, no dot, no card, 1px hairlines, no explanatory subtitle. */

:root {
  --paper: #F7F7F5;
  --hover: #EFEFEB;
  --line: #E6E6E1;
  --ink: #18181B;
  --muted: #71717A;
  --primary-bg: #18181B;
  --primary-fg: #FFFFFF;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-figure: Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SF Mono", monospace;
  --radius: 2px;
}

:root[data-theme="dark"] {
  --paper: #111113;
  --hover: #242429;
  --line: #2E2E35;
  --ink: #F4F4F5;
  --muted: #9CA3AF;
  --primary-bg: #F4F4F5;
  --primary-fg: #111113;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }

code { font-family: var(--font-mono); font-size: 0.86em; }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.025em; line-height: 1; }
.brand-logo { width: 26px; height: 26px; max-width: 26px; max-height: 26px; flex-shrink: 0; display: block; }
.logo-dark { display: none !important; }
.logo-light { display: block !important; }

:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}



.nav { display: flex; align-items: center; gap: 20px; }

.nav-link { color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--ink); }

/* Theme switch: flat track and thumb, 2px corners, like the app. */
.switch {
  width: 34px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hover);
  position: relative;
  cursor: pointer;
  flex: none;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius);
  background: var(--muted);
  transition: transform 0.15s ease;
}

.switch[aria-checked="true"] .switch-thumb { transform: translateX(16px); background: var(--ink); }

/* Hero */
.hero { padding: 104px 0 80px; }

.hero h1 { font-size: clamp(48px, 11vw, 84px); line-height: 1.04; margin-bottom: 24px; }

.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 32px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons: solid primary, quiet text button. No frame on the quiet one. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.88; }
.btn-quiet { color: var(--muted); font-weight: 400; }
.btn-quiet:hover { color: var(--ink); background: var(--hover); }
.btn:disabled { cursor: default; opacity: 0.55; }

.text-btn {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 0;
}
.text-btn:hover { color: var(--ink); }

/* Sections: separated by a hairline, a title alone, no subtitle. */
.section { border-top: 1px solid var(--line); padding: 64px 0; }

.section h2 { font-size: clamp(28px, 5vw, 36px); margin-bottom: 32px; }

.note { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* Session demo */
.demo { text-align: center; margin-bottom: 48px; }




.row { padding: 9px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }



/* Rows of facts (definition lists) */
.facts .fact,
.faq .faq-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts .fact:last-child,
.faq .faq-item:last-child { border-bottom: 1px solid var(--line); }

.facts dt, .faq dt { font-weight: 600; }
.facts dd, .faq dd { color: var(--muted); }

.faq .faq-item { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }

/* Friends: ranking and feed, rows separated by hairlines. */
.ranking { margin: 20px 0 0; }
.ls-head { display: flex; align-items: flex-start; justify-content: space-between; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: -4px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 2px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--ink); }
.friends-drawer { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.friends-drawer[hidden] { display: none; }
.ia-quick { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ia-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ia-quick .kv-k[hidden] { display: none; }
#ia-msg { margin-top: 8px; }
.ia-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ia-row:last-child { border-bottom: 1px solid var(--line); }
.ia-row b { display: block; font-weight: 600; }
.ia-row span { color: var(--muted); font-size: 13px; }

.rank-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: 1px solid var(--line); }

.rank-pos { color: var(--muted); font-family: var(--font-figure); }
.rank-pts { font-family: var(--font-figure); font-weight: 600; font-variant-numeric: tabular-nums; }

.feed-row { padding: 12px 0; border-top: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 1px solid var(--line); }
.feed-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.feed-meta { color: var(--muted); font-weight: 400; font-size: 13px; }
.feed-text { color: var(--muted); }

/* Code: on the page background, between two hairlines. */
.code { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }

.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }

.code-name { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

pre { overflow-x: auto; padding: 16px 0; font-size: 13.5px; line-height: 1.5; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Inputs: underlined, never framed. */
.field {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  height: 40px;
  padding: 0 2px;
  min-width: 0;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: 0; border-bottom-color: var(--ink); }

.get { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; max-width: 620px; }
.get .field { flex: 1 1 220px; }
.form-msg { color: var(--muted); font-size: 14px; margin-top: 12px; min-height: 22px; }

/* Simulator: tab row on a hairline, panels straight on the page. */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0;
  border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 10px 0; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.panel { min-height: 380px; margin-bottom: 40px; }

.seg { display: inline-flex; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.seg-btn {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0;
  border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 6px 16px; cursor: pointer;
}
.seg-btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.note-form { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 24px; }
.note-form .field { flex: 1; }
.note-row { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; overflow-wrap: anywhere; }
.note-row:last-child { border-bottom: 1px solid var(--line); }
.note-time { color: var(--muted); font-size: 13px; flex: none; }

.kv { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kv:last-child { border-bottom: 1px solid var(--line); }
.kv-k { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 13.5px; }

.auth { max-width: 380px; padding: 88px 0 96px; }
.auth h1 { font-size: clamp(40px, 9vw, 60px); margin-bottom: 36px; }
.auth form { display: flex; flex-direction: column; gap: 20px; }
.auth .btn { align-self: flex-start; }
.code-field { font-family: var(--font-figure); font-size: 28px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; height: 52px; }

@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr auto; }
  .kv-k { grid-column: 1 / -1; }
  .tabs { gap: 18px; }
  .nav { gap: 14px; }
  .hero { padding: 64px 0 48px; }
  .facts .fact { grid-template-columns: 1fr; gap: 2px; }
  .facts dt code { word-break: break-word; }
}

/* ---- Homepage: centered download, theme icons ---- */
.container-wide { max-width: 1200px; }

.theme { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.theme-ico { display: inline-flex; background: none; border: 0; padding: 2px; color: inherit; cursor: pointer; }
.theme-ico:hover { color: var(--ink); }
:root[data-theme="light"] #theme-light, :root[data-theme="dark"] #theme-dark { color: var(--ink); }

.hero { padding: 0; min-height: calc(100vh - 57px); display: flex; align-items: center; }
.hero-center { text-align: center; padding-top: 24px; padding-bottom: 80px; }
.hero-center h1 { font-size: clamp(44px, 9vw, 76px); margin-bottom: 40px; }
.btn-big { height: 56px; padding: 0 34px; font-size: 17px; }
.hero-meta { color: var(--muted); font-size: 13px; margin-top: 14px; }
.get-center { justify-content: center; margin: 24px auto 0; }
.hero-center .form-msg { min-height: 22px; }

/* ---- Desktop simulation: a 960x600 screen scaled to the page width ---- */
.stage { width: 100%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.desk {
  position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; overflow: hidden;
  background: #EBECEF;
  font-size: 13px; line-height: 1.4; user-select: none;
}
:root[data-theme="dark"] .desk { background: #0E1015; }

.win {
  position: absolute; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22); overflow: hidden;
}
.win[hidden] { display: none !important; }
.win-bar { display: flex; justify-content: space-between; align-items: center; height: 32px; padding-left: 10px; background: var(--hover); border-bottom: 1px solid var(--line); cursor: move; flex: none; }
.win-title { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.win-logo { width: 14px; height: 14px; }
.win-ctl { display: flex; height: 100%; }
.win-ctl button { width: 40px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.win-ctl button:hover { background: var(--line); color: var(--ink); }
.win-ctl button[data-act="close"]:hover { background: #c42b1c; color: #fff; }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; overflow: hidden; }

.shield { position: absolute; left: 0; right: 0; top: 32px; bottom: 0; background: #0A0A0A; color: #F4F4F5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 5; }
.shield[hidden] { display: none !important; }
.shield-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; color: #9CA3AF; }
.shield-time { font-family: Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 54px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }

/* Fake apps: neutral placeholders, no brand imitation. */
.app-browser { flex-direction: column; background: #fff; color: #1f2430; }
.b-address { margin: 8px 12px; padding: 5px 10px; background: #eef0f3; border-radius: 2px; font-size: 12px; color: #5b6270; }
.b-page { padding: 8px 24px; }
.b-h { height: 14px; width: 55%; background: #1f2430; margin: 10px 0 8px; }
.b-h.second { margin-top: 22px; width: 45%; }
.b-l { height: 8px; background: #d5d9e0; margin: 7px 0; }
.w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; }
.app-chat { background: #2b2d33; color: #e5e7eb; }
.c-side { width: 130px; background: #232529; padding: 10px; flex: none; }
.c-ch { padding: 5px 6px; color: #9aa0ab; }
.c-ch:first-child { background: #33363d; color: #e5e7eb; }
.c-main { padding: 14px; flex: 1; }
.c-msg { margin-bottom: 12px; }
.c-msg b { margin-right: 8px; }
.app-mail { background: #fff; color: #1f2430; flex-direction: column; }
.m-row { display: flex; flex-direction: column; padding: 12px 18px; border-bottom: 1px solid #e3e6eb; }
.m-row span { color: #5b6270; }

/* LockState window: the real layout (sidebar + one screen per tab) in the site theme. */
.ls { background: var(--paper); }
.ls-nav[hidden], .ls-main[hidden], .ls-view[hidden] { display: none !important; }
.ls-nav { width: 150px; flex: none; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.ls-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 0 8px 18px; }
.ls-tab { font: inherit; text-align: left; background: none; border: 0; color: var(--muted); padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.ls-tab:hover { background: var(--hover); color: var(--ink); }
.ls-tab[aria-selected="true"] { background: var(--hover); color: var(--ink); font-weight: 600; }
.ls-main { flex: 1; min-width: 0; padding: 22px 28px; overflow-y: auto; }
.ls-h { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }

.s-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.s-center[hidden] { display: none !important; }
.s-time { font-family: var(--font-figure); font-size: 64px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.s-input { width: 130px; font: inherit; font-size: 64px; font-weight: 600; line-height: 1.05; text-align: center; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0; }
.s-input:focus { outline: 0; border-bottom-color: var(--ink); }
.s-center .seg { margin-bottom: 14px; }
.s-apps { width: 300px; margin: 4px 0 18px; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-apps-head { width: 100%; display: flex; justify-content: space-between; padding: 9px 0; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.s-apps-head span:last-child { color: var(--muted); }
.s-list { max-height: 112px; overflow-y: auto; }
.s-list label { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.s-modeline { color: var(--muted); margin-bottom: 20px; max-width: 320px; }
.s-confirm { width: 300px; }
.s-confirm[hidden] { display: none !important; }
.s-left { font-family: var(--font-figure); font-size: 28px; font-weight: 600; }
.s-cost { color: var(--muted); margin: 4px 0 14px; }
.s-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.c-logout { margin-top: 18px; }

.ls-main .ranking { margin-bottom: 20px; }
.ls-main .kv { grid-template-columns: 150px 1fr auto; padding: 11px 0; }

/* Taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(247, 247, 245, 0.82); border-top: 1px solid rgba(0, 0, 0, 0.08); backdrop-filter: blur(14px); z-index: 1000; }
:root[data-theme="dark"] .taskbar { background: rgba(17, 17, 19, 0.82); border-top-color: rgba(255, 255, 255, 0.08); }
.tb-apps { display: flex; gap: 4px; }
.tb-app { position: relative; width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.tb-app:hover { background: var(--hover); }
.tb-app svg { width: 20px; height: 20px; }
.tb-app.open::after { content: ""; position: absolute; bottom: 2px; left: 12px; right: 12px; height: 2px; background: var(--muted); }
.tb-app.focus::after { background: var(--ink); }
.tb-clock { position: absolute; right: 14px; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; line-height: 1.25; color: var(--ink); }

@media (max-width: 640px) {
  .btn-big { width: 100%; }
}

/* ---- Homepage v2: text left, demo right ---- */
.home { padding: 40px 0 64px; }
.home-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; }
.home-dl { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.home-dl .btn-big { height: auto; min-height: 56px; padding: 14px 20px; line-height: 1.25; }
.home-demo .note { margin-top: 14px; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Homepage v3: title, Claude window, manifesto, mobile pitch ---- */
.hero-title { font-size: clamp(36px, 5vw, 48px); margin-bottom: 20px; }
.pitch { list-style: none; text-align: left; margin: 0 0 24px; width: 100%; }
.pitch li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.pitch li:last-child { border-bottom: 1px solid var(--line); }

.ai { flex-direction: column; background: var(--paper); }
.ai-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 92%; overflow-wrap: anywhere; }
.ai-user { align-self: flex-end; background: var(--hover); padding: 8px 12px; border-radius: var(--radius); }
.ai-bot { align-self: flex-start; }
.ai-tool { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.ai-prompts { flex: none; border-top: 1px solid var(--line); }
.ai-prompt { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 16px; cursor: pointer; }
.ai-prompt:first-child { border-top: 0; }
.ai-prompt:hover { background: var(--hover); }
.ai-prompt:disabled { color: var(--muted); cursor: default; background: none; }

@media (max-width: 768px) {
  .home-demo { display: none; }
}

.pitch li strong { display: block; color: var(--ink); font-weight: 600; }
.hero-meta { text-align: left; }

/* Footer link */
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); }


/* Account side panel (signed in) */
.acct { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 100%); background: var(--paper); border-left: 1px solid var(--line); z-index: 50; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.acct-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; }
.acct-title { font-size: 20px; }
.acct-actions { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 4px; }
.acct-out { margin-top: auto; align-self: flex-start; padding-top: 24px; }

/* Legal page */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink); margin-bottom: 8px; }
.legal ul { padding-left: 20px; margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Steam mini-game */
.app-games { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); height: 100%; position: relative; }
.g-lib { padding: 12px; width: 100%; }
.g-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.g-row.selected { background: var(--hover); }
.g-play-btn { background: var(--ink); color: var(--paper); border: none; padding: 4px 12px; font-weight: 600; font-size: 12px; cursor: pointer; border-radius: 2px; }
.g-play-btn:hover { opacity: 0.85; }
.g-status { color: var(--muted); font-size: 12px; }
.g-screen { display: flex; flex-direction: column; height: 100%; width: 100%; background: #0A0A0A; position: relative; }
.g-screen[hidden], .g-lib[hidden], .game-over[hidden] { display: none !important; }
.game-hud { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; color: #fff; background: #111; border-bottom: 1px solid #222; }
.g-quit-btn { background: transparent; border: none; color: #888; cursor: pointer; font-size: 11px; }
.g-quit-btn:hover { color: #fff; }
#game-canvas { width: 100%; height: 260px; display: block; touch-action: none; }
.game-over { position: absolute; inset: 0; background: rgba(0,0,0,0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 4; }
.go-text { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
