/* Anything marked hidden is hidden, whatever display it is given elsewhere (a button bar with display: flex once stayed on
   screen after leaving the basketball court this way). */
[hidden] { display: none !important; }
/* Khemetic.Online: lapis and gold. (--red is the accent every button and highlight uses; here it is gold.) */
:root {
  --bg: #060a1c; --panel: rgba(9, 15, 44, 0.84); --line: rgba(242, 193, 78, 0.2);
  --text: #f7f0dc; --dim: #b4ad98; --red: #d9a521; --gold: #ffd166; --green: #3fb984; --navy: #0b1a4a; --ink: #1a1203;
  --radius: 14px; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); }
canvas#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* start screen */
.screen { position: fixed; inset: 0; display: flex; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse at center, rgba(11, 12, 14, 0.35), rgba(11, 12, 14, 0.82)); z-index: 30; }
.start-card { width: min(440px, 100%); margin: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-align: center; }
.start-logo { width: 84px; height: 84px; border-radius: 50%; }
.start-card h1 { margin: 10px 0 6px; font-size: 34px; letter-spacing: -0.02em; }
.start-card h1 span { color: var(--red); }
.tag { color: var(--dim); margin: 0 0 20px; line-height: 1.45; }
.start-card label { display: block; text-align: left; font-size: 12px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.start-card input, .field input, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 16px; outline: none; }
.start-card input:focus, .field input:focus { border-color: var(--red); }
.btn { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 11px 16px; font-size: 15px; font-weight: 600; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.13); }
.btn.primary { background: var(--red); border-color: transparent; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #f04a4d; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { padding: 7px 11px; font-size: 13px; }
#enterBtn, .btn.wide { width: 100%; margin-top: 14px; padding: 14px; font-size: 17px; }
/* start screen: the ways to sign in */
.start-card .sign-head { margin-top: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px; font-size: 14px; font-weight: 600; color: var(--dim); }
.seg button.on { background: rgba(255, 255, 255, 0.13); color: var(--text); }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; min-width: 0; } .code-row .btn { white-space: nowrap; }
.start-card .check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.4; cursor: pointer; }
.start-card .check input { width: auto; margin: 2px 0 0; padding: 0; accent-color: var(--red); }
.alt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; } .alt-row .btn { font-size: 14px; padding: 11px 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or + #enterBtn, #signMethods:not(.hidden) + #enterBtn { margin-top: 12px; }
.linkbtn { display: block; margin: 12px auto 0; border: 0; background: transparent; color: var(--dim); font-size: 13px; text-decoration: underline; }
.linkbtn:hover { color: var(--text); }
.who { margin: 0; } .who b { display: block; font-size: 21px; } .who small { display: block; color: var(--dim); margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
#codeInput { text-align: center; font-size: 24px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.start-msg { margin: 0 0 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.4; text-align: left; }
.start-msg.bad { border-color: var(--red); } .start-msg.good { border-color: var(--green); }
@media (max-width: 440px) { .code-row { flex-direction: column; } .start-card { padding: 22px 18px; } }
.start-keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.start-keys span { font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 5px 8px; }
.start-keys b { color: var(--text); margin-right: 4px; }
.fine { font-size: 12px; color: var(--dim); margin: 16px 0 0; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#toasts { pointer-events: none; }
#topleft { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: calc(100vw - 250px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 12px 6px 6px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.pill { display: flex; align-items: center; gap: 7px; padding: 8px 13px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
.pill small { color: var(--dim); }
.pill.btnlike:hover { border-color: var(--red); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; }
.dot.gold { background: var(--gold); } .dot.red { background: var(--red); } .dot.green { background: var(--green); }
#topright { position: absolute; top: 14px; right: 14px; text-align: right; }
#minimap { width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--line); background: #14171c; display: block; }
#place { margin-top: 8px; font-weight: 600; font-size: 14px; text-shadow: 0 1px 4px #000; text-align: center; }
#clock { font-size: 12px; color: var(--dim); text-align: center; text-shadow: 0 1px 4px #000; }
#eventBar { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--red);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; backdrop-filter: blur(12px); max-width: min(560px, 70vw); text-align: center; }
#prompt { position: absolute; bottom: 168px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; font-size: 15px; backdrop-filter: blur(12px); text-align: center; max-width: 80vw; }
#prompt kbd { background: var(--red); color: #fff; border-radius: 6px; padding: 2px 8px; font-family: inherit; font-weight: 700; margin-right: 8px; }
#prompt small { display: block; color: var(--dim); margin-top: 3px; }
#prompt.tap { cursor: pointer; }   /* on a phone, tapping the prompt does what it says (main.js) */
#speedo { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 18px; text-align: center; }
#speedo b { font-size: 28px; font-variant-numeric: tabular-nums; } #speedo small { color: var(--dim); margin-left: 6px; }
#buffs { position: absolute; left: 14px; top: 64px; display: flex; flex-direction: column; gap: 6px; }
#buffs div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; font-size: 12px; }
#chat { position: absolute; left: 14px; bottom: 14px; width: min(360px, 60vw); }
#chatLog { max-height: 170px; overflow-y: auto; overscroll-behavior: contain; display: block; margin-bottom: 8px; pointer-events: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
  font-size: 13.5px; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
#chatLog div { line-height: 1.35; overflow-wrap: anywhere; margin-top: 3px; transition: opacity 0.6s; width: fit-content; max-width: 100%; background: rgba(10,12,16,0.62); border-radius: 8px; padding: 2px 8px; }   /* each line on its own dark backing, readable over sky, grass or snow */ #chatLog b { color: var(--gold); font-weight: 600; } #chatLog .sys { color: var(--dim); font-style: italic; }
#chatInput { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; outline: none; }
#chatInput:focus { border-color: var(--red); }
.chat-row { display: flex; gap: 6px; } .chat-row #chatInput { flex: 1; min-width: 0; }
.chat-toggle { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 0 11px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.chat-toggle:hover { color: var(--text); } .chat-toggle.new { border-color: var(--gold); color: var(--gold); }
#chat.min { width: auto; } #chat.min #chatLog, #chat.min #chatInput { display: none; } #chat.min .chat-toggle { padding: 9px 13px; font-size: 13.5px; }
#dock { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
#dockToggle { order: 99; }                                          /* always the last button, whatever modules add */
#dock.tucked > .dockbtn:not(#dockToggle) { display: none !important; }
#dock.tucked { left: auto !important; }                              /* folded away on a phone too: just the one button */
#dock.tucked > #dockToggle { flex: 0 0 auto; min-width: 54px; }
.dockbtn { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; font-size: 20px; display: flex;
  flex-direction: column; align-items: center; min-width: 62px; backdrop-filter: blur(12px); }
.dockbtn small { font-size: 10.5px; color: var(--dim); margin-top: 2px; } .dockbtn.on { border-color: var(--green); } .dockbtn.talk { box-shadow: 0 0 0 3px rgba(63, 185, 132, 0.5); }
#toasts { position: fixed; z-index: 45; top: 164px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(520px, 90vw); pointer-events: none; }
.toast { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 14px; backdrop-filter: blur(12px);
  animation: pop 0.25s ease-out; text-align: center; }
.toast.good { border-color: var(--green); } .toast.bad { border-color: var(--red); } .toast.event { border-color: var(--gold); }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* phone */
#phone { position: fixed; right: 14px; bottom: 96px; width: min(400px, calc(100vw - 28px)); height: min(600px, calc(100vh - 130px)); z-index: 20;
  background: rgba(14, 16, 20, 0.94); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.phone-head { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); gap: 6px; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 7px 10px; border-radius: 9px; font-size: 13px; color: var(--dim); white-space: nowrap; font-weight: 600; }
.tabs button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.x { border: 0; background: transparent; font-size: 16px; padding: 6px 9px; border-radius: 8px; } .x:hover { background: rgba(255, 255, 255, 0.1); }
.phone-body { flex: 1; overflow-y: auto; padding: 14px; }
.phone-body h3 { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
/* the phone's drop-down sections (ui.dropdowns) */
.ph-sec { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; margin: 8px 0; background: rgba(255, 255, 255, 0.025); }
.ph-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 12px; font-weight: 700; font-size: 14px; border-radius: 12px; }
.ph-sec > summary::-webkit-details-marker { display: none; }
.ph-sec > summary::after { content: '▾'; margin-left: auto; color: var(--dim); transition: transform .15s; }
.ph-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.ph-sec > summary:hover, .ph-sec > summary:focus-visible { background: rgba(255, 255, 255, 0.05); outline: none; }
.ph-sec[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px 12px 0 0; }
.ph-sec > :not(summary) { margin-left: 10px; margin-right: 10px; }
.ph-sec > :last-child { margin-bottom: 10px; }
.ph-count { font-size: 11px; font-weight: 700; color: var(--dim); background: rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 1px 7px; }
.ph-intro { color: var(--dim); font-size: 13px; margin: 2px 4px 8px; }
.phone-body h3:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; text-align: center; }
button.card:hover { border-color: var(--red); } .card.on { border-color: var(--green); background: rgba(63, 185, 132, 0.12); }
.card .sw { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; border: 2px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 15px; }
.card small { display: block; color: var(--dim); margin-top: 2px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.row .grow { flex: 1; min-width: 0; } .row small { display: block; color: var(--dim); }
.muted { color: var(--dim); font-size: 13px; line-height: 1.5; }
.field { margin-bottom: 12px; text-align: left; } .field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.field input[type="color"] { padding: 4px; height: 42px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* modal */
#modalWrap { position: fixed; inset: 0; background: rgba(5, 6, 8, 0.6); display: grid; place-items: center; z-index: 40; padding: 16px; }
#modal { width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: rgba(16, 18, 23, 0.97); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; }
#modal h2 { margin: 0 0 6px; font-size: 21px; } #modal p { color: var(--dim); line-height: 1.5; margin: 6px 0 14px; }
#modal .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px;
  position: sticky; bottom: -22px; margin: 16px -22px -22px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(16, 18, 23, 0.98); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; z-index: 2; }
#modal .actions:empty { display: none; }
.coinplus { position: fixed; left: 50%; top: 38%; transform: translate(-50%, 0); font-size: 44px; font-weight: 900; color: #ffc145; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7); pointer-events: none; z-index: 60; animation: coinplus 1.25s ease-out forwards; }
@keyframes coinplus { 0% { opacity: 0; transform: translate(-50%, 24px) scale(0.6); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
#coords { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; text-align: center; }
.bm-canvas { position: relative; } #bmCoords { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 9px; background: rgba(10, 12, 16, 0.78); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.xzrow { display: flex; gap: 6px; margin: 6px 0 12px; } .xzrow input { flex: 1; min-width: 0; }
.paymethod { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 8px; padding: 12px 14px; }
.paymethod b { display: block; } .paymethod small { color: var(--dim); font-weight: 400; } .paymethod .ico { font-size: 22px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
#landMap { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #14171c; cursor: crosshair; display: block; }
#modal.wide { width: min(860px, 100%); }
#frameWrap { position: fixed; inset: 0; z-index: 38; background: #0b0c0e; display: flex; flex-direction: column; }
.fw-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: rgba(14, 16, 20, 0.98); }
.fw-head .grow { flex: 1; min-width: 0; } .fw-head b { font-size: 15px; margin-right: 10px; } .fw-head small { color: var(--dim); font-size: 12.5px; }
#fwFrame { flex: 1; width: 100%; border: 0; background: #12151d; }
#bigmap { position: fixed; inset: 14px; z-index: 35; background: rgba(12, 14, 18, 0.97); border: 1px solid var(--line); border-radius: 22px; display: flex;
  flex-direction: column; overflow: hidden; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.bm-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bm-head > b { font-size: 17px; }
.bm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--dim); flex: 1; }
.bm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.bm-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bm-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.bm-canvas { position: relative; min-height: 0; min-width: 0; }
#bmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.bm-side { border-left: 1px solid var(--line); }
.bm-side h2 { margin: 0 0 4px; font-size: 20px; }
.bm-side .tag2 { color: var(--dim); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.bm-side .about { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin: 10px 0;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.bm-side .btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.bm-side a.btn { text-decoration: none; color: var(--text); }
.field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text);
  font: inherit; font-size: 15px; outline: none; resize: vertical; }
@media (max-width: 760px) { .bm-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .bm-side { border-left: 0; border-top: 1px solid var(--line); max-height: 44vh; } .bm-legend { display: none; } }
.studio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-view canvas { width: 100%; aspect-ratio: 640 / 520; display: block; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 35%, #2a3140, #101216 75%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.chips button.on { background: var(--red); border-color: transparent; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; cursor: pointer; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field select { appearance: none; }
@media (max-width: 720px) { .studio { grid-template-columns: 1fr; } }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.22s; z-index: 25; }
#fade.on { opacity: 1; }

@media (max-width: 720px) {
  #minimap { width: 120px; height: 120px; } #topleft { max-width: calc(100vw - 160px); } .brand span { display: none; }
  #chat { width: 56vw; left: 8px; bottom: 76px; }
  #dock { left: 8px; right: 8px; bottom: 8px; gap: 4px; } .dockbtn { flex: 1; min-width: 0; padding: 6px 2px; font-size: 18px; }
  .dockbtn small { font-size: 9px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* tower rooms, crew sheets, light shows */
#flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 12; mix-blend-mode: screen; }
#modal .mh { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); } #modal .mh:first-child { margin-top: 0; }
#modal .btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.floors { display: flex; flex-direction: column; gap: 6px; }
.floor { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; align-items: stretch; }
.floor .fl { display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--dim); background: rgba(255, 255, 255, 0.04); border-radius: 9px; }
.unit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.04); font-size: 13.5px; min-width: 0; }
.unit > div { min-width: 0; } .unit b { display: block; overflow-wrap: anywhere; } .unit small { display: block; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit > span { display: flex; gap: 6px; flex-shrink: 0; }
.unit.free { border-color: rgba(63, 185, 132, 0.35); } .unit.mine { border-color: var(--gold); background: rgba(255, 193, 69, 0.08); } .unit.taken { border-color: rgba(76, 141, 246, 0.4); }
select.mini { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; font-size: 13px; }
.board { margin-bottom: 10px; } .board .row { padding: 7px 10px; margin-bottom: 4px; } .board .rank { width: 22px; color: var(--dim); font-weight: 700; }
@media (max-width: 720px) { .floor { grid-template-columns: 28px 1fr; } .floor .unit:last-child { grid-column: 2; } #modal .two { grid-template-columns: 1fr; } }

/* controllers, trackpads and touch screens */
canvas#view { touch-action: none; }
#prompt { cursor: pointer; }
body[data-input="pad"] .padfocus { outline: 3px solid var(--gold) !important; outline-offset: 2px; box-shadow: 0 0 0 7px rgba(255, 193, 69, 0.2); }
#hud > #touchUI { pointer-events: none; display: none; } body[data-input="touch"] #hud > #touchUI { display: block; }
#tStick { position: fixed; left: 92px; top: calc(100% - 196px); width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05); opacity: 0.55; }
#tStick.live { opacity: 1; background: rgba(255, 255, 255, 0.09); }
#tStick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, 0.42); }
#tBtns { position: absolute; right: 12px; bottom: 86px; display: grid; grid-template-columns: repeat(3, 60px); grid-template-areas: "t b e" ". f u" ". d j"; gap: 8px; justify-items: center; align-items: center; }
.tb[data-t="KeyT"] { grid-area: t; } .tb[data-t="KeyB"] { grid-area: b; } .tb[data-t="emote"] { grid-area: e; } .tb[data-t="KeyF"] { grid-area: f; } .tb[data-t="KeyE"] { grid-area: u; } .tb[data-t="down"] { grid-area: d; } .tb[data-t="jump"] { grid-area: j; }
#tEmotes { position: absolute; right: 12px; bottom: 282px; display: flex; gap: 8px; }
.tb { pointer-events: auto; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 24px; line-height: 1; padding: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); touch-action: none; user-select: none; -webkit-user-select: none; }
.tb.sm { width: 46px; height: 46px; font-size: 20px; } .tb.big { width: 64px; height: 64px; font-size: 28px; }
.tb.held { background: rgba(229, 56, 59, 0.65); } .tb.off { visibility: hidden; pointer-events: none; }
body[data-input="touch"] #prompt { bottom: 296px; }
/* a phone held sideways: everything shrinks to leave the view clear */
@media (orientation: landscape) and (max-height: 520px) {
  #minimap { width: 104px; height: 104px; } #clock { display: none; } #topleft { max-width: calc(100vw - 150px); }
  #dock { gap: 6px; bottom: 8px; right: 8px; } .dockbtn { min-width: 46px; padding: 7px 8px; font-size: 18px; } .dockbtn small { display: none; }
  #chat { bottom: 8px; left: 8px; } #prompt { bottom: 62px; }
  #phone { bottom: 58px; height: calc(100vh - 68px); }
  #tBtns { bottom: 60px; grid-template-columns: repeat(4, 60px); grid-template-areas: "t b e u" ". f d j"; }
  #tEmotes { bottom: 138px; right: 290px; } #tStick { top: calc(100% - 128px); }
  body[data-input="touch"] #prompt { bottom: 62px; max-width: 34vw; font-size: 13.5px; padding: 8px 12px; }
}

/* buttons-and-keys sheet, and the on-screen keyboard for controllers */
.row.tight { padding: 6px 10px; margin-bottom: 4px; font-size: 13.5px; } .row.tight .btn { min-width: 86px; }
#osk { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: min(660px, calc(100vw - 16px)); background: rgba(16, 18, 23, 0.97); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); }
.osk-text { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.osk-text small { display: block; color: var(--dim); font-size: 11.5px; margin-bottom: 2px; } .osk-text div { font-size: 17px; min-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.osk-text i { display: inline-block; width: 2px; height: 18px; background: var(--gold); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.osk-row { display: flex; gap: 5px; margin-bottom: 5px; }
.osk-key { flex: 1; min-width: 0; height: 42px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); font-size: 16px; font-weight: 600; padding: 0; }
.osk-key.wide { font-size: 12.5px; } .osk-key.on { outline: 3px solid var(--gold); background: rgba(255, 193, 69, 0.2); } .osk-key.lit { background: var(--red); }
.osk-hint { color: var(--dim); font-size: 12px; text-align: center; margin-top: 6px; }

/* NowMeta HQ: the Screening Room review (mods/hq.js) */
#modal.theater-modal { width: min(1280px, 100%); }
.theater { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
.th-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; }
.th-item { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; cursor: pointer; }
.th-item b { display: block; } .th-item small { color: var(--dim); font-size: 12.5px; } .th-item.on { border-color: #9b5de5; background: rgba(155, 93, 229, 0.18); }
.th-video { width: 100%; aspect-ratio: 16 / 9; max-height: 44vh; border: 0; border-radius: 14px; background: #000; display: block; }
.th-none { display: grid; place-items: center; color: var(--dim); }
.th-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .th-tabs a.btn { text-decoration: none; color: var(--text); }
.th-note { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; margin-top: 6px; }
.th-btns { display: flex; gap: 12px; margin-top: 12px; }
.th-btns button { flex: 1; padding: 18px; border: 0; border-radius: 16px; font: 800 20px var(--font); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.1s; }
.th-btns button:hover { transform: translateY(-2px); } .th-ok { background: linear-gradient(135deg, #3fb984, #2a8f63); } .th-no { background: linear-gradient(135deg, #e5383b, #a8242a); }
.good-note { border: 1px solid var(--green); border-radius: 12px; padding: 10px 12px; } .bad-note { border: 1px solid var(--red); border-radius: 12px; padding: 10px 12px; }
@media (max-width: 760px) { .theater { grid-template-columns: 1fr; } .th-list { max-height: 24vh; } }

/* the NowMetaCity miner in the corner, and pushes (mods/miner.js) */
#minerHud { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 auto; padding: 6px 12px 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: inherit; cursor: pointer; backdrop-filter: blur(12px); }
#minerHud.hidden { display: none; } #minerHud.boost { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 193, 69, 0.25); }
#minerHud .mh-wheel { font-size: 20px; display: inline-block; } #minerHud.spin .mh-wheel { animation: mhspin 0.9s ease-out; }
#minerHud .mh-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; } #minerHud b { font-size: 14px; font-variant-numeric: tabular-nums; } #minerHud small { font-size: 10.5px; color: var(--dim); }
@keyframes mhspin { from { transform: rotate(0) scale(1.25); } to { transform: rotate(720deg) scale(1); } }
#minerPush { position: fixed; z-index: 46; top: 70px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(620px, calc(100vw - 24px)); padding: 12px 14px;
  background: rgba(16, 18, 23, 0.97); border: 2px solid var(--gold); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: pop 0.3s ease-out; transition: opacity 1.4s; }
#minerPush.fade { opacity: 0; } #minerPush .mp-live { background: var(--red); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 8px; animation: blink 1s steps(2) infinite; }
#minerPush .mp-body { flex: 1; min-width: 0; } #minerPush .mp-body b { display: block; font-size: 15px; } #minerPush .mp-body small { color: var(--gold); }
#minerPush .mp-btns { display: flex; gap: 6px; }

/* the player for an event's videos (mods/planner.js) */
#evPip { position: fixed; z-index: 44; left: 14px; bottom: 120px; width: min(460px, calc(100vw - 28px)); background: rgba(10, 11, 14, 0.97); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
#evPip .pip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13.5px; }
#evPip .pip-head span { display: flex; align-items: center; gap: 6px; color: var(--dim); }
#evPip .pip-head button { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); border-radius: 8px; padding: 2px 8px; cursor: pointer; }
#evPip iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* The menu for the person next to you: one big button per thing you can do. */
.pmenu { display: grid; gap: 8px; }
.pm-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; color: inherit; font: inherit; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pm-opt:hover, .pm-opt:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: var(--gold); outline: none; }
.pm-i { flex: none; width: 34px; font-size: 22px; text-align: center; }
.pm-t b { display: block; font-size: 15px; } .pm-t small { display: block; color: var(--dim); font-size: 12.5px; }

/* Map filters: each name above the map switches that kind of thing on and off. */
.bm-f { cursor: pointer; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); opacity: 0.45; user-select: none; }
.bm-f.on { opacity: 1; background: rgba(255, 255, 255, 0.07); }

/* Ten buttons in the dock: on a narrower window it wraps to two rows instead of running under the chat box. */
@media (min-width: 761px) and (max-width: 1250px) { #dock { flex-wrap: wrap; justify-content: flex-end; max-width: 430px; } }

/* ---- forms, the same everywhere (0.21.0 polish) ---- */
/* Dropdowns: dark, rounded, with a small arrow, in a form field, a row or on their own. */
.field select, select.mini, .row select, #modal select, #phoneBody select {
  appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--text); border: 1px solid var(--line); outline: none;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa3af' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; padding-right: 34px; text-overflow: ellipsis;
}
.field select:focus, select.mini:focus, .row select:focus, #modal select:focus { border-color: var(--red); }
select option { background: #16191f; color: #f2f4f7; } select option:disabled { color: #6b7280; }
/* A dropdown or a small box sitting in a row, next to its button. */
.row select, .row input[type="number"], .row input[type="text"] { padding: 8px 10px; font-size: 14px; border-radius: 10px; border: 1px solid var(--line); background-color: rgba(255, 255, 255, 0.06); color: var(--text); outline: none; min-width: 0; }
.row select { flex: 1 1 170px; padding-right: 34px; max-width: 100%; }
.row input[type="number"]:focus, .row input[type="text"]:focus { border-color: var(--red); }
.row input:disabled, .field input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
/* Tick boxes are small boxes with their words beside them, also inside a form field. */
.check input[type="checkbox"], .check input[type="radio"], .field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; accent-color: var(--red); cursor: pointer; }
.field label.check, label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin: 0 0 10px; cursor: pointer; }
.row label.check { margin: 0; white-space: nowrap; }
/* A button for something that takes away: quiet red until you point at it. */
.btn.danger { border-color: rgba(229, 56, 59, 0.5); color: #ff9a9c; } .btn.danger:hover:not(:disabled) { background: rgba(229, 56, 59, 0.2); color: #fff; }
/* Rows in a sheet wrap their buttons under the words on a narrow screen instead of squeezing them. */
#modal .row { flex-wrap: wrap; } #modal .row .grow { flex: 1 1 170px; } #modal .row > .btn { flex: none; }
/* Round colour swatches to pick from. */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; } .swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); padding: 0; cursor: pointer; flex: none; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); } .swatch:hover { transform: scale(1.12); }
.row .grow .swatches { margin-top: 6px; }
/* A slider is a slim bar, not a text box. */
.field input[type="range"], input[type="range"] { width: 100%; padding: 0; border: 0; background: transparent; height: 28px; accent-color: var(--red); cursor: pointer; }

/* ---- chat: the gold lock, @names, and scrolling */
.chat-lock { display: grid; place-items: center; width: 38px; flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; cursor: pointer; position: relative; }
.chat-lock input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chat-lock span { font-size: 15px; filter: grayscale(1) brightness(1.3); opacity: 0.55; transition: 0.15s; }
.chat-lock:has(input:checked) { border-color: var(--gold); background: rgba(255,193,69,0.16); box-shadow: 0 0 0 2px rgba(255,193,69,0.22); }
.chat-lock:has(input:checked) span { filter: none; opacity: 1; }
#chat.locked #chatLog { max-height: 300px; background: rgba(10,12,16,0.55); border: 1px solid rgba(255,193,69,0.35); border-radius: 12px; padding: 6px 10px; }
#chat.locked #chatLog div { opacity: 1 !important; }
#chatLog .at { color: #8fd3ff; font-weight: 700; }
#chatLog .tome { background: rgba(58,44,12,0.82); border-left: 3px solid var(--gold); padding: 2px 6px; border-radius: 6px; }
#chatLog .care { color: #ffe2a0; background: rgba(255,193,69,0.12); border-radius: 8px; padding: 6px 8px; text-shadow: none; }
#chatSuggest { background: rgba(16,18,23,0.97); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 6px; max-height: 190px; overflow-y: auto; }
#chatSuggest button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
#chatSuggest button.on, #chatSuggest button:hover { background: rgba(255,255,255,0.08); } #chatSuggest small { color: var(--dim); margin-left: auto; }
#chat.min #chatSuggest, #chat.min .chat-lock { display: none; }
#phoneTabs button[hidden] { display: none; }

/* the phone's home screen: apps in groups, a back button inside each app */
.ph-title { font-weight: 800; font-size: 15px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs .ph-back { font-size: 18px; padding: 4px 12px; color: var(--text); background: rgba(255, 255, 255, 0.08); }
.ph-me { display: flex; flex-direction: column; padding: 4px 4px 10px; }
.ph-me b { font-size: 18px; } .ph-me small { color: var(--dim); }
.ph-group { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 12px 4px 8px; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 0; border-radius: 14px; }
.ph-app:hover, .ph-app:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.ph-ico { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.3); }
.ph-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.ph-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #e5383b; color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; padding: 0 5px; box-shadow: 0 0 8px #e5383b; }

/* hoverboard and skate buttons: under the phone when it is open; on touch screens, small and on the left above the stick */
.ridebar { z-index: 15 !important; }
body[data-input="touch"] .ridebar { right: auto !important; left: 10px; bottom: 272px !important; width: 138px !important; gap: 6px !important; }
body[data-input="touch"] .ridebar .btn { padding: 8px 6px; font-size: 12px; }
@media (max-height: 520px) { body[data-input="touch"] .ridebar { bottom: auto !important; top: 64px; flex-direction: row !important; width: auto !important; } }

/* selling a subscription (social.js subWizard): what it is for, the price, a last look */
.sub-sum { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; margin: 6px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255,255,255,0.03)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.sub-sum small { display: block; color: var(--dim); margin-top: 2px; }
.sub-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 35%, #14161b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sub-ico.big { width: 72px; height: 72px; font-size: 38px; border-radius: 20px; margin: 0 auto 8px; }
.sub-steps { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-steps span { flex: 1; min-width: 120px; text-align: center; padding: 7px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--dim); background: rgba(255,255,255,0.05); }
.sub-steps span.on { color: #fff; background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); } .sub-steps span.done { color: #9fe3bf; }
.sub-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sub-kind { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; border-radius: 16px; cursor: pointer; color: var(--text); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #15171c), #111318); border: 1px solid rgba(255,255,255,0.1); }
.sub-kind b { font-size: 15px; } .sub-kind small { color: #c9ced6; font-size: 12.5px; line-height: 1.4; } .sub-kind .sub-note { color: color-mix(in srgb, var(--c) 70%, #fff); }
.sub-kind.on, .sub-kind:focus-visible { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); outline: none; }
.sub-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }
.sub-review { text-align: center; padding: 18px 14px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #15171c), #111318); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.sub-review h2 { margin: 4px 0; font-size: 20px; } .sub-price { font-size: 22px; font-weight: 800; color: color-mix(in srgb, var(--c) 60%, #fff); margin: 6px 0 10px; }

/* the Feedback Room's list: people's notes and the game testers' findings as two sets */
.th-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 10px 4px 6px; }
.th-tested { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 140, 66, 0.08); border: 1px solid rgba(255, 140, 66, 0.3); }


/* ============================================================ Khemetic.Online */
.btn.primary { color: var(--ink); background: linear-gradient(180deg, #ffd978, #d9a521); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffe39a, #e3b02c); }
.btn.danger { border-color: #c0392b; color: #ffb4a8; }
.start-card h1, #modal h2, .phone-body h3, .bm-head > b, .ph-title, .brand span { font-family: var(--serif); letter-spacing: 0.04em; font-weight: 600; }
.screen { background: radial-gradient(ellipse at 50% 30%, rgba(6, 10, 28, 0.15), rgba(6, 10, 28, 0.8)); }
.start-card { border-color: rgba(242, 193, 78, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.start-card h1 { font-size: 30px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 14px; }
.start-card h1 span { color: var(--gold); }
.start-card .city { font-family: var(--serif); letter-spacing: 0.28em; text-transform: uppercase; font-size: 12.5px; color: var(--gold); margin: 0 0 10px; }
.start-logo { width: 96px; height: 96px; box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5); }
.start-card input:focus, .field input:focus, .field textarea:focus { border-color: var(--gold); }
.brand span { text-transform: uppercase; font-size: 13px; }
.dot.gold { background: var(--gold); }
#prompt kbd { background: var(--gold); color: var(--ink); }
#eventBar { font-family: var(--serif); letter-spacing: 0.06em; border-color: rgba(242, 193, 78, 0.5); }
.toast.event { border-color: var(--gold); }
#chatLog .tag { color: var(--gold); font-size: 11.5px; margin: 0 4px 0 0; }
.padfocus { outline: 3px solid var(--gold) !important; outline-offset: 2px; }
.meter { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #d9a521, #ffe39a); border-radius: 8px; }
.big-num { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pillars { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pillars span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--gold); }
.co-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.co-head img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, 0.06); padding: 6px; }
.co-head .tagline { font-family: var(--serif); color: var(--gold); letter-spacing: 0.04em; }
.notice { border-left: 3px solid var(--gold); padding: 8px 12px; background: rgba(242, 193, 78, 0.08); border-radius: 0 10px 10px 0; margin: 10px 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); padding: 0; }
.swatch.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.look-row { margin: 10px 0; } .look-row > label { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.title-card { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px 12px; }
.title-card b { display: block; font-family: var(--serif); color: var(--gold); letter-spacing: 0.04em; } .title-card small { color: var(--dim); display: block; margin-top: 3px; line-height: 1.35; }
.title-card.on { border-color: var(--gold); background: rgba(242, 193, 78, 0.12); } .title-card:disabled { opacity: 0.55; }
.sched { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sched .when { text-align: center; font-family: var(--serif); color: var(--gold); line-height: 1.2; } .sched .when small { display: block; color: var(--dim); font-family: var(--font); }
.sched .live { color: #ffb4a8; font-weight: 700; }
.field textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; min-height: 74px; resize: vertical; outline: none; }
.field { margin: 10px 0; } .field > label { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hq-card { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.hq-card .grow { min-width: 0; } .hq-card b { display: block; } .hq-card small { color: var(--dim); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-card.off { opacity: 0.6; }
.sw { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.1); padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9c2ac; transition: left 0.15s; }
.sw.on { background: var(--red); } .sw.on::after { left: 21px; background: #fff; }
.hq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .hq-tabs button.on { background: var(--red); color: var(--ink); border-color: transparent; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.list td, table.list th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } table.list th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
#start .hero-line { font-family: var(--serif); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin: 14px 0 0; }
