:root {
  color-scheme: dark;
  --bg: #1e2a3a;
  --panel: #1e2a3a;
  --panel-raised: #263448;
  --line: rgba(247, 244, 238, .1);
  --line-bright: rgba(247, 244, 238, .18);
  --text: #f7f4ee;
  --muted: #c6c5c3;
  --subtle: #a4acb7;
  --teal: #d7b985;
  --teal-dark: #b08d57;
  --gold: #b08d57;
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 72% 3%, rgba(176, 141, 87, .13), transparent 34rem),
    linear-gradient(145deg, #1e2a3a 0%, #172232 58%, #0a0a0a 100%);
}
button { font: inherit; }
.shell { max-width: 1440px; margin: 0 auto; padding: 0 6.1%; }
.topbar { height: 91px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 13px; letter-spacing: .1em; }
.brand strong { display: block; font-size: 11px; font-weight: 800; }
.brand small { color: var(--muted); display: block; font: 9px Consolas, monospace; letter-spacing: .2em; margin-top: 5px; }
.brand-mark { width: 28px; height: 28px; position: relative; display: inline-flex; align-items: center; justify-content: center; transform: rotate(30deg); }
.brand-mark i { position: absolute; width: 18px; height: 18px; border: 1px solid var(--teal); transform: rotate(45deg); }
.brand-mark i:nth-child(2) { width: 11px; height: 11px; border-color: var(--gold); }
.brand-mark i:nth-child(3) { width: 4px; height: 4px; border: 0; background: var(--teal); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.join-button { color: var(--teal); background: rgba(176, 141, 87, .07); border: 1px solid rgba(176, 141, 87, .25); padding: 10px 13px; font: 8px Consolas, monospace; letter-spacing: .1em; cursor: pointer; }
.join-button:hover { background: rgba(176, 141, 87, .14); }
.connection { color: #aab9ba; font: 9px Consolas, monospace; letter-spacing: .16em; display: flex; gap: 9px; align-items: center; }
.pulse, .status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 99px; background: var(--teal); box-shadow: 0 0 12px rgba(176, 141, 87, .6); }
.icon-button { color: var(--teal); background: transparent; border: 1px solid var(--line-bright); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; transition: transform .25s, background .25s; }
.icon-button:hover { transform: rotate(35deg); background: rgba(176, 141, 87, .08); }
.hero { min-height: 377px; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 48px 0 52px; position: relative; z-index: 1; }
.eyebrow { margin: 0; color: var(--teal); font: 9px Consolas, monospace; letter-spacing: .19em; }
.eyebrow-line { width: 24px; height: 1px; display: inline-block; vertical-align: middle; background: var(--teal); margin-right: 10px; }
h1 { margin: 23px 0 15px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; }
h1 em { color: var(--teal); font-style: normal; font-weight: 400; }
.hero-intro { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-status { margin-top: 27px; display: flex; gap: 10px; align-items: center; color: #bdc9c7; font-size: 11px; }
.hero-status .status-dot { width: 5px; height: 5px; background: var(--gold); box-shadow: 0 0 11px rgba(176, 141, 87, .55); }
.hero-art { height: 100%; min-height: 345px; position: relative; overflow: hidden; }
.hero-art:before { content: ""; position: absolute; inset: 4% 2% 0 6%; background: linear-gradient(140deg, transparent 14%, rgba(21, 49, 49, .32), transparent 75%); clip-path: polygon(51% 0, 100% 100%, 0 100%); opacity: .9; }
.orbit { position: absolute; border: 1px solid rgba(176, 141, 87, .15); border-radius: 50%; transform: rotate(-33deg); left: 15%; top: 15%; width: 77%; height: 66%; }
.orbit-two { left: 25%; top: 8%; width: 57%; height: 81%; transform: rotate(36deg); border-color: rgba(176, 141, 87, .17); }
.sigil { position: absolute; width: 142px; height: 142px; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(176, 141, 87, .42); display: grid; place-items: center; box-shadow: 0 0 45px rgba(68, 139, 123, .11), inset 0 0 34px rgba(68, 139, 123, .08); }
.sigil:before, .sigil:after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(176, 141, 87, .47); }
.sigil:after { inset: 29px; border-color: rgba(176, 141, 87, .33); }
.sigil span { transform: rotate(-45deg); color: var(--teal); font-size: 53px; font-family: Georgia, serif; opacity: .86; text-shadow: 0 0 30px rgba(176, 141, 87, .35); }
.art-caption { position: absolute; bottom: 26px; right: 7px; color: #8f9ea0; font: 9px Consolas, monospace; letter-spacing: .16em; }
.art-caption span { color: var(--gold); padding: 0 5px; }
.art-glow { position: absolute; width: 170px; height: 100px; left: 50%; top: 70%; transform: translateX(-50%); background: rgba(61, 130, 117, .16); filter: blur(48px); }
.workspace-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; padding: 27px 0 18px; }
.panel { background: linear-gradient(145deg, rgba(30, 42, 58, .85), rgba(23, 34, 50, .8)); border: 1px solid var(--line); position: relative; }
.world-panel { min-height: 262px; padding: 24px 25px 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
h2 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.03em; font-weight: 600; }
.count-pill { border: 1px solid var(--line-bright); color: var(--muted); border-radius: 99px; font: 8px Consolas, monospace; padding: 7px 10px; letter-spacing: .09em; }
.world-list { margin-top: 20px; min-height: 94px; display: flex; flex-direction: column; justify-content: center; }
.world-card { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px 13px; border: 1px solid var(--line); background: rgba(7, 13, 18, .34); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.world-card:hover { border-color: rgba(176, 141, 87, .35); background: rgba(176, 141, 87, .045); }
.world-card-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; color: var(--gold); border: 1px solid rgba(176, 141, 87, .3); border-radius: 50%; }
.world-card-copy { flex: 1; min-width: 0; }
.world-card-copy strong, .world-card-copy small { display: block; }
.world-card-copy strong { font-size: 11px; font-weight: 600; }
.world-card-copy small { margin-top: 5px; color: var(--subtle); font: 8px Consolas, monospace; letter-spacing: .05em; }
.world-card-arrow { color: var(--teal); }
.empty-state { display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px; background: rgba(8, 14, 19, .3); border: 1px solid rgba(247, 244, 238, .065); }
.empty-mark { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 1px solid rgba(176, 141, 87, .38); border-radius: 50%; color: var(--gold); font-size: 16px; }
.empty-state h3 { margin: 0 0 5px; font-size: 12px; font-weight: 600; }
.empty-state p { margin: 0; max-width: 420px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.error-state .empty-mark { border-color: rgba(239, 146, 125, .4); color: #ef927d; }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.spinner { width: 13px; height: 13px; border: 1px solid var(--teal-dark); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-footnote { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 13px; color: var(--subtle); font-size: 9px; }
.lock-icon { color: var(--teal); font-size: 14px; margin-right: 5px; }
.roadmap-panel { padding: 24px 25px 20px; overflow: hidden; }
.roadmap-panel:after { content: ""; position: absolute; width: 170px; height: 170px; right: -55px; top: 26px; border: 1px solid rgba(176, 141, 87, .09); transform: rotate(45deg); }
.world-emblem { margin: 20px 0 12px; width: 37px; height: 37px; border: 1px solid rgba(176, 141, 87, .45); color: var(--gold); display: grid; place-items: center; transform: rotate(45deg); }
.world-emblem span { transform: rotate(-45deg); font-size: 19px; }
.world-kicker { margin: 0; color: var(--subtle); font: 8px Consolas, monospace; letter-spacing: .11em; }
.roadmap-panel h2 { font-size: 17px; line-height: 1.3; margin-top: 7px; }
.world-description { margin: 9px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.7; max-width: 350px; }
.progress-track { height: 2px; background: rgba(247, 244, 238, .12); }
.progress-track span { display: block; width: 8%; height: 100%; background: var(--gold); }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--subtle); font: 8px Consolas, monospace; letter-spacing: .08em; }
.bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 35px; }
.principle-card, .runtime-card { min-height: 78px; display: flex; align-items: center; gap: 15px; padding: 16px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-number { color: var(--gold); font: 11px Consolas, monospace; align-self: flex-start; padding-top: 2px; }
.principle-card .eyebrow, .runtime-card .eyebrow { font-size: 8px; }
.principle-card p:last-child, .runtime-card p:last-child { margin: 6px 0 0; color: #b8c4c2; font-size: 10px; line-height: 1.5; }
.runtime-card { position: relative; }
.runtime-icon { color: var(--teal); font: 19px Consolas, monospace; }
.runtime-check { margin-left: auto; color: var(--gold); font: 15px Consolas, monospace; }
.runtime-check.good { color: var(--teal); }
footer { min-height: 52px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: #607077; font: 8px Consolas, monospace; letter-spacing: .11em; }
.footer-right b { color: var(--gold); padding: 0 5px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 12px); background: #1d2b33; border: 1px solid var(--line-bright); color: var(--text); padding: 10px 15px; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.dialog-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 12, .78); backdrop-filter: blur(8px); }
.dialog-backdrop[hidden], [hidden] { display: none !important; }
.dialog { position: relative; width: min(100%, 430px); padding: 30px; background: linear-gradient(145deg, #263448, #172232); border: 1px solid var(--line-bright); box-shadow: 0 24px 90px rgba(0, 0, 0, .48); }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.dialog h2 { margin: 10px 0 8px; font-size: 25px; }
.dialog-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-form { display: grid; gap: 16px; margin-top: 22px; }
.dialog-form label { display: grid; gap: 8px; color: #aebbb9; font: 9px Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.dialog-form input, .dialog-form select { width: 100%; padding: 12px; border: 1px solid var(--line-bright); background: #121c29; color: var(--text); font: 13px Aptos, "Segoe UI", system-ui, sans-serif; outline: none; }
.dialog-form input:focus, .dialog-form select:focus { border-color: var(--teal-dark); }
.primary-button { width: 100%; padding: 14px; border: 1px solid var(--teal-dark); background: rgba(176, 141, 87, .1); color: var(--teal); font: 9px Consolas, monospace; letter-spacing: .14em; cursor: pointer; }
.primary-button:hover:not(:disabled) { background: rgba(176, 141, 87, .17); }
.primary-button:disabled { color: var(--subtle); cursor: not-allowed; border-color: var(--line); background: transparent; }
.primary-button span { float: right; }
.dialog-error { margin: 14px 0 0; color: #ef927d; font-size: 11px; line-height: 1.5; }
.invite-code { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 23px; padding: 14px 16px; background: rgba(7, 13, 18, .55); border: 1px solid var(--line-bright); }
.invite-code span { color: var(--gold); font: 25px Consolas, monospace; letter-spacing: .2em; }
.invite-code button { color: var(--teal); border: 0; background: transparent; font: 8px Consolas, monospace; letter-spacing: .12em; cursor: pointer; }
.roster-heading { display: flex; justify-content: space-between; color: var(--subtle); font: 8px Consolas, monospace; letter-spacing: .13em; }
.roster { padding: 0; margin: 10px 0 12px; list-style: none; border-top: 1px solid var(--line); }
.roster-seat { min-height: 37px; display: flex; align-items: center; gap: 12px; color: var(--subtle); border-bottom: 1px solid var(--line); font-size: 10px; }
.seat-label { width: 30px; color: var(--gold); font: 9px Consolas, monospace; }
.roster-seat.occupied { color: var(--text); }
.roster-seat > span:nth-child(2) { min-width: 90px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.roster-seat > span:nth-child(2) small { color: var(--muted); font-size: 9px; }
.roster-seat select { width: 145px; min-width: 0; padding: 7px 8px; color: var(--text); background: #172232; border: 1px solid var(--line); font-size: 9px; }
.roster-seat .assign-character { min-height: 31px; padding: 7px 8px; font-size: 7px; }
.seat-ready { margin-left: auto; color: var(--teal); font: 8px Consolas, monospace; letter-spacing: .1em; }
.lobby-dialog > .primary-button { margin-top: 4px; }
.game-backdrop { z-index: 12; }
.game-screen { width: min(100%, 900px); max-height: min(92vh, 980px); display: flex; flex-direction: column; padding: 26px 30px 22px; background: linear-gradient(145deg, #263448, #172232); border: 1px solid var(--line-bright); box-shadow: 0 24px 90px rgba(0, 0, 0, .55); }
.game-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.game-topline h2 { margin-top: 7px; font-size: 22px; }
.game-seat { color: var(--gold); padding: 8px 10px; border: 1px solid rgba(176, 141, 87, .25); font: 8px Consolas, monospace; letter-spacing: .12em; }
.game-scroll { min-height: 120px; overflow: auto; padding: 8px 4px 8px 0; }
.game-node-content { max-width: 760px; margin: 8px auto 22px; }
.story-text { color: #d5dfdc; font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.story-media { margin: 18px auto; text-align: center; }
.story-media img, .story-media video { max-width: 100%; max-height: 48vh; border: 1px solid var(--line-bright); }
.story-media .story-pdf { width: min(100%, 900px); height: 65vh; border: 1px solid var(--line-bright); background: #fff; }
.story-media audio { width: min(100%, 520px); }
.story-media figcaption { color: var(--muted); font-size: 10px; margin-top: 7px; }
.story-media details { text-align: left; margin-top: 12px; }
.story-media summary, .media-open { color: var(--teal); font-size: 12px; cursor: pointer; }
.media-open { display: block; margin-top: 8px; }
.media-open[hidden] { display: none; }
.game-puzzles { display: grid; gap: 13px; }
.active-puzzle, .results-card, .game-director { padding: 18px; background: rgba(7, 13, 18, .45); border: 1px solid var(--line); }
.active-puzzle h3, .results-card h3, .game-director h3 { margin: 0 0 12px; color: var(--teal); font-size: 13px; font-weight: 600; }
.active-puzzle .story-text, .results-card p { font-size: 12px; line-height: 1.75; }
.answer-form { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(130px, .8fr); align-items: end; gap: 10px; padding-top: 13px; margin-top: 10px; border-top: 1px solid var(--line); }
.sequence-answer { grid-template-columns: 1fr; }
.sequence-answer fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; border: 0; padding: 0; min-width: 0; }
.sequence-answer legend { color: var(--teal); font-size: 12px; margin-bottom: 12px; }
.answer-form label, .game-controls label { display: grid; gap: 7px; color: var(--muted); font: 8px Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.answer-form input, .answer-form select, .game-controls select { width: 100%; min-height: 40px; padding: 9px 10px; color: var(--text); background: #121c29; border: 1px solid var(--line-bright); font: 12px Aptos, "Segoe UI", system-ui, sans-serif; }
.secondary-button { min-height: 39px; padding: 10px 13px; border: 1px solid rgba(176, 141, 87, .25); color: var(--teal); background: rgba(176, 141, 87, .06); font: 8px Consolas, monospace; letter-spacing: .1em; cursor: pointer; }
.secondary-button:disabled { color: var(--subtle); cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, .game-scroll:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.answer-status { color: var(--muted); font-size: 10px; align-self: center; }
.hint-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.hint-row p { margin: 0; color: var(--gold); font-size: 11px; line-height: 1.6; }
.hint-button { color: var(--gold); background: transparent; border: 1px solid rgba(176, 141, 87, .25); padding: 8px 10px; font: 8px Consolas, monospace; letter-spacing: .08em; cursor: pointer; }
.hint-button:disabled { color: var(--subtle); cursor: not-allowed; }
.game-message { min-height: 20px; margin: 9px 0; color: var(--muted); font-size: 10px; }
.game-controls { display: flex; align-items: end; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.game-controls .primary-button { margin-left: auto; width: min(280px, 100%); }
.game-controls .secondary-button { min-width: 130px; }
.game-director p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.game-director .director-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.puzzle-badge { font-size: 12px; color: var(--muted); }
.puzzle-badge.solved { color: var(--teal); }
#director-completion { padding: 16px; margin: 12px 0; border: 1px solid var(--line-bright); font-size: 16px; font-weight: 600; }
#director-completion.solved { color: var(--teal); border-color: var(--teal); background: rgba(176, 141, 87, .12); }
.game-celebration { padding: 28px; margin-bottom: 20px; text-align: center; border: 1px solid var(--teal); background: rgba(176, 141, 87, .12); }
.game-celebration h2 { margin: 12px 0; color: var(--teal); font-size: clamp(28px, 5vw, 42px); }
.game-celebration p { line-height: 1.6; }
.shared-diagram { display: grid; gap: 14px; margin: 20px 0; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.diagram-piece { display: grid; place-items: center; min-height: 85px; padding: 18px; border: 2px solid var(--line-bright); background: var(--panel); font-size: 24px; text-align: center; }
.diagram-routes { grid-template-columns: repeat(3, 1fr); }
.diagram-routes .diagram-piece { min-height: 125px; border-radius: 40px; }
.diagram-strip { grid-template-columns: repeat(6, 1fr); }
.diagram-strip .diagram-piece { min-height: 55px; padding: 8px; }
.activation-sockets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.diagram-socket { min-height: 100px; display: grid; place-items: center; border: 2px dashed var(--line-bright); text-align: center; }
.admin-page { max-width: 1000px; margin: 40px auto; padding: 24px; }
.admin-page h1 { font-size: 36px; }
.admin-page p { line-height: 1.6; }
.admin-game { padding: 24px; margin: 20px 0; border: 1px solid var(--line-bright); background: var(--panel); }
.admin-game h2 { font-size: 22px; }
.admin-page .secondary-button { min-height: 40px; }

@media (max-width: 760px) {
  .shell { padding: 0 5%; }
  .topbar { height: 74px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 0 26px; }
  .hero-art { position: absolute; width: 52%; min-height: 260px; right: -8%; top: 30px; opacity: .38; }
  h1 { font-size: clamp(39px, 9vw, 58px); }
  .hero-intro { max-width: 340px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
  .roadmap-panel { min-height: 0; }
  .bottom-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 20px; }
  footer { font-size: 7px; gap: 15px; }
  .footer-right { text-align: right; }
}

@media (max-width: 430px) {
  .connection { font-size: 8px; letter-spacing: .1em; }
  .topbar-right { gap: 12px; }
  .join-button { padding: 8px; font-size: 7px; }
  .dialog { padding: 25px 20px; }
  .game-screen { padding: 20px 16px 15px; max-height: 95vh; }
  .answer-form { grid-template-columns: 1fr auto; }
  .answer-status { grid-column: 1 / -1; }
  .game-controls { align-items: stretch; flex-direction: column; }
  .game-controls .primary-button { margin-left: 0; width: 100%; }
  .world-panel, .roadmap-panel { padding: 20px 17px 16px; }
  .empty-state { padding: 14px 12px; }
  .roster-seat { flex-wrap: wrap; gap: 8px; padding: 7px 0; }
  .roster-seat > span:nth-child(2) { min-width: 110px; }
  .roster-seat select { flex: 1; }
  footer { align-items: flex-start; padding: 14px 0; flex-direction: column; }
}

/* Omega Zeta Studio brand standards v1.0. Artwork is displayed intact. */
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
a { color: var(--teal); }
.brand { flex-shrink: 0; padding: 12px 0; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; letter-spacing: .13em; color: var(--text); }
.brand small { color: var(--gold); letter-spacing: .42em; font-family: Aptos, "Segoe UI", sans-serif; }
.topbar { height: auto; min-height: 100px; gap: 24px; padding: 16px 0; flex-wrap: wrap; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.hero { grid-template-columns: 1.1fr 1fr; gap: 32px; }
.hero h1 { font-size: clamp(34px, 4.3vw, 57px); line-height: 1.16; }
.hero h1 em { color: var(--text); font-weight: 400; }
.studio-art { position: relative; margin: 0; min-height: 0; height: auto; padding: 24px 0; overflow: visible; }
.studio-art::before { display: none; }
.studio-lockup { display: block; width: 100%; height: auto; object-fit: contain; }
.studio-art figcaption { padding: 20px 10px 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.panel, .active-puzzle, .results-card, .game-director, .admin-game { border-color: var(--line-bright); }
.panel { border-top: 2px solid var(--gold); }
.eyebrow { color: var(--teal); }
footer { color: var(--muted); gap: 18px; flex-wrap: wrap; padding: 18px 0; }
.admin-studio { display: block; margin-bottom: 30px; text-decoration: none; font: 19px Georgia, serif; letter-spacing: .12em; color: var(--text); }
@media (max-width: 760px) {
  .topbar { height: auto; align-items: flex-start; }
  .topbar-right { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 16px; }
  .studio-art { position: relative; width: min(100%, 480px); right: auto; top: auto; opacity: 1; justify-self: center; padding: 16px 0 30px; }
  .hero h1 { font-size: clamp(34px, 7.5vw, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep scene controls visible while the video and story scroll. */
.game-topline, .game-controls { flex-shrink: 0; }
.game-controls { flex-wrap: wrap; }

.catalog-world { margin-bottom: 14px; border: 1px solid var(--line-bright); background: rgba(10,10,10,.2); }
.catalog-world summary { display: flex; align-items: center; gap: 20px; padding: 20px; cursor: pointer; }
.catalog-world summary::after { content: "+"; margin-left: auto; color: var(--teal); font-size: 24px; }
.catalog-world[open] summary::after { content: "−"; }
.catalog-world summary strong { display: block; font: 23px Georgia, serif; color: var(--text); }
.catalog-world summary small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.catalog-symbol { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.catalog-body { padding: 0 22px 24px; }
.catalog-description { color: var(--text); font-size: 15px; line-height: 1.85; }
.catalog-body h3 { font: 18px Georgia, serif; color: var(--teal); margin-top: 24px; }
.catalog-game-name { font-size: 16px; }
.catalog-games { display: grid; gap: 10px; }
.catalog-pending { color: var(--muted); font-size: 14px; line-height: 1.6; }
.game-world-symbol { width: 42px; height: 42px; object-fit: contain; }
.featured-world-symbol { display: block; width: 120px; height: 120px; object-fit: contain; margin: 26px 0; }
.game-world-badge { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; margin: 10px 0; }
.game-world-badge img { width: 32px; height: 32px; object-fit: contain; }
@media (max-width: 430px) { .catalog-world summary { padding: 16px; gap: 12px; } .catalog-symbol { width: 52px; height: 52px; } .catalog-world summary strong { font-size: 20px; } }

.scoring-rules { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.scoring-rules summary, .score-panel summary { color: var(--teal); cursor: pointer; }
.score-panel { margin: 12px 0 20px; padding: 18px; border: 1px solid var(--line-bright); background: var(--panel); }
.score-panel h3 { margin: 0 0 10px; font: 22px Georgia,serif; }
.score-panel p { font-size: 13px; line-height: 1.6; }
.score-panel table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.score-panel th, .score-panel td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.score-panel td { text-align: right; font-variant-numeric: tabular-nums; }
.score-rule-note { color: var(--muted); }
.lobby-dialog { max-height: 92vh; overflow-y: auto; }

.round-timer { padding: 18px; margin: 12px 0; border: 1px solid var(--gold); background: rgba(176,141,87,.09); }
.round-timer h3 { margin: 0 0 10px; font: 22px Georgia,serif; }
.round-timer p { font-size: 15px; line-height: 1.7; }
.round-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.round-actions p { flex-basis: 100%; }
