/* Dark, quiet surfaces with a small optional interface. */
[hidden] {display:none!important;}
.console-launcher {position:static;display:inline-flex;gap:7px;padding:5px 8px;min-height:34px;font:14px/1.5 Consolas,monospace;background:transparent;border:1px solid var(--border);border-radius:4px;box-shadow:none;color:var(--muted);z-index:auto;}
.console-launcher>span {font-size:14px;color:var(--accent);}
.console-launcher kbd {font-size:12px;border:0;padding:0;color:var(--muted);}
.console-launcher:hover {background:var(--surface);color:var(--text);border-color:var(--accent);}
html[data-chaos-active="true"]:not([data-chaos-mode="ripple"]) .console-launcher {position:fixed;right:20px;bottom:20px;z-index:103;background:var(--surface);}
.console-panel {top:50%;bottom:auto;right:28px;transform:translateY(-50%);width:min(370px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:20px;background:color-mix(in srgb,var(--bg) 95%,var(--accent));border-color:var(--border);border-radius:10px;box-shadow:0 24px 90px #0008;animation:interface-in .2s ease-out;}
.console-heading h2 {font-size:23px;color:var(--text);}
.console-label,.console-footer>span,.console-motion {color:var(--muted);font-size:14px;}
.lab-close {width:34px;height:34px;font-size:22px!important;background:var(--surface);border-color:var(--border);color:var(--text);}
.interface-section {margin:20px 0 7px;font:14px Consolas,monospace;color:var(--muted);}
.lab-modes {gap:2px;}
.lab-mode {background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:9px 0;min-height:54px;gap:10px;color:var(--text);}
.lab-mode>svg {width:18px;height:18px;color:var(--accent);}
.lab-mode strong {font-size:15px;font-weight:500;}
.lab-mode small {font-size:14px;color:var(--muted);}
.lab-mode:hover,.lab-mode[aria-pressed="true"] {background:color-mix(in srgb,var(--accent) 7%,transparent);}
.lab-mode .mode-state {flex:0 0 auto;font:12px Consolas,monospace;padding:2px 7px;border:1px solid var(--border);border-radius:12px;color:var(--muted);}
.lab-mode[aria-pressed="true"] .mode-state {color:var(--bg);background:var(--accent);border-color:var(--accent);}
.console-utilities {margin:0;padding:0;border:0;gap:0;}
.console-utilities>label {min-height:40px;font-size:15px;padding:5px 0;color:var(--text);}
.console-utilities input[type="checkbox"] {appearance:none;width:29px;height:17px;border-radius:20px;border:1px solid var(--border);background:var(--surface);position:relative;cursor:pointer;}
.console-utilities input[type="checkbox"]::after {content:"";position:absolute;width:9px;height:9px;top:3px;left:3px;background:var(--muted);border-radius:50%;transition:transform .18s;}
.console-utilities input[type="checkbox"]:checked {border-color:var(--accent);}
.console-utilities input[type="checkbox"]:checked::after {transform:translateX(12px);background:var(--accent);}
.console-footer {gap:8px;border-color:var(--border);}
.console-footer button,.lab-hud button,.interface-game,.interface-unload {background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:14px;min-height:36px;border-radius:4px;padding:7px 10px;}
.interface-game {display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:16px;}
.interface-game span:last-child {color:var(--accent);}
.interface-unload {border:0;background:none;color:var(--muted);padding:8px 0;margin-top:8px;text-decoration:underline;text-underline-offset:4px;}
.lab-hud {position:static;display:flex;max-width:none;width:auto;padding:12px 0 0;margin:12px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;box-shadow:none;gap:7px;}
.lab-hud-copy {min-width:0;flex-basis:100%;}
.lab-hud-hint {color:var(--muted);font-size:14px;}
.lab-hud-title {font-size:15px;color:var(--text);}
.lab-hud .lab-config,.lab-hud .lab-hud-repair {display:none;}
.lab-hud .lab-score {color:var(--muted);font-size:14px;flex-basis:100%;}
.lab-custom {border-color:var(--border);}.lab-custom h3 {font-size:17px;}.lab-custom label {color:var(--text);}
.lab-custom select,.lab-custom input[type="color"] {background:var(--surface);color:var(--text);border-color:var(--border);}
.lab-status {font-size:14px;bottom:22px;padding:9px 13px;background:var(--surface);color:var(--text);border-color:var(--border);}
.effect-backdrop {z-index:-1;border:1px solid #ffffff04;}
html[data-fracture-stage] body {background:#050608;}
html[data-fracture-stage] body::before,html[data-fracture-stage] body::after {opacity:0;}
html[data-fracture-stage] .site-header,html[data-fracture-stage] .site-footer {border-color:transparent;}
html[data-fracture-stage="detonating"] .console-panel {visibility:hidden;}
.gravity-placeholder {pointer-events:none;}
html[data-chaos-mode="ripple"] body {cursor:auto;}
html[data-chaos-mode="gravity"] .nav-card,html[data-chaos-mode="gravity"] h1 {animation:none!important;}
.game-card {font:inherit;text-align:left;color:var(--text);cursor:pointer;}
.entry-dialog,.session-dialog,.orbit-dialog {background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:12px;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:28px;}
dialog::backdrop {background:#05070bed;backdrop-filter:blur(9px);}
.entry-dialog {width:590px;text-align:center;padding:58px 35px 32px;overflow:hidden;}
.entry-content {position:relative;z-index:1;}
.entry-kicker {font-size:15px;color:var(--muted);}
.entry-content h2 {font:800 clamp(68px,14vw,112px)/1.15 "Segoe UI",sans-serif;letter-spacing:-.08em;margin:12px 0;animation:entry-word .8s ease both;}
.entry-content h2 span {color:var(--accent);}
.entry-motto {color:var(--muted);font-size:17px;margin-bottom:36px;}
.entry-opt {display:flex;align-items:flex-start;text-align:left;gap:12px;padding:15px;border:1px solid var(--border);border-radius:6px;max-width:410px;margin:0 auto 15px;font-size:15px;background:var(--surface);}
.entry-opt input {margin-top:4px;width:17px;height:17px;accent-color:var(--accent);}
.entry-opt small {display:block;color:var(--muted);font-size:14px;margin-top:4px;line-height:1.5;}
.entry-enter {display:flex;justify-content:space-between;align-items:center;width:100%;max-width:410px;margin:auto;padding:11px 16px;font-size:16px;border-radius:6px;border:1px solid var(--accent);background:var(--accent);color:var(--bg);cursor:pointer;}
.entry-note {color:var(--muted);font-size:14px;margin-top:18px;}
.entry-orbit {position:absolute;inset:-100px -100px auto;pointer-events:none;height:330px;z-index:-1;opacity:.18;}
.entry-orbit i {position:absolute;inset:30px;border:1px solid var(--accent);border-radius:50%;transform:rotate(-24deg) scaleY(.4);animation:orbit-entry 9s ease-in-out infinite alternate;}
.entry-orbit i:nth-child(2){inset:52px;animation-delay:-3s;}.entry-orbit i:nth-child(3){inset:74px;animation-delay:-6s;}
.session-dialog {width:520px;}
.session-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;}
.session-heading h2 {font-size:24px;letter-spacing:-.03em;}
.session-heading button {font-size:24px;width:36px;height:36px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer;}
.session-details dt {color:var(--muted);}.session-details dd {color:var(--text);}.session-details div {border-color:var(--border);}
.ip-details {margin-top:24px;padding-top:17px;border-top:1px solid var(--border);}
.ip-value {font:15px Consolas,monospace;display:inline-block;margin:0 8px;overflow-wrap:anywhere;max-width:100%;}.ip-value.is-blurred {filter:blur(6px);user-select:none;}
.ip-details button {background:var(--surface);border:1px solid var(--border);color:var(--text);padding:8px 12px;font-size:14px;border-radius:4px;cursor:pointer;margin-top:12px;}
.session-note,[data-ip-status] {font-size:14px;color:var(--muted);line-height:1.6;margin-top:12px;}
html[data-rainbow="true"] :is(h1,h2):not(.entry-content h2) {background:linear-gradient(100deg,#e6b5e9,#a4c9fa,#b4ddbd,#ead5a0,#e6b5e9);background-size:250% 100%;background-clip:text;color:transparent;animation:rainbow-shift 12s linear infinite;}
html[data-rainbow="true"] h1>span {color:inherit;background:none;}
body::after {content:"";position:fixed;inset:0;z-index:60;pointer-events:none;opacity:0;}
html[data-scanlines="true"] body::after {opacity:.12;background:repeating-linear-gradient(transparent 0 3px,#000 3px 4px);}
html[data-aurora="true"] body::before {background:radial-gradient(ellipse at 20% 40%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 60%),radial-gradient(ellipse at 80% 80%,#725c8220,transparent 65%);background-size:160% 160%;animation:aurora-drift 24s ease-in-out infinite alternate;}
.site-header nav a {position:relative;}.site-header nav a::after {content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s;}.site-header nav a:hover::after {transform:scaleX(1);}
.copy-button svg {transition:transform .25s;}.copy-button:hover svg {transform:rotate(-8deg);}
.footer-links a {transition:color .2s;}.page-heading h1 {width:fit-content;transition:text-shadow .3s;}.page-heading h1:hover {text-shadow:0 2px 0 color-mix(in srgb,var(--accent) 30%,transparent);}
@keyframes interface-in {from{opacity:0;translate:8px 0;}to{opacity:1;translate:0 0;}}
@keyframes entry-word {from{opacity:0;transform:translateY(14px);filter:blur(6px);}to{opacity:1;transform:none;filter:none;}}
@keyframes orbit-entry {to{transform:rotate(14deg) scaleY(.5);}}
@keyframes rainbow-shift {to{background-position:250% 0;}}
@keyframes aurora-drift {to{background-position:100% 60%;}}
.orbit-dialog {width:800px;padding:24px;}
.orbit-eyebrow {font:14px Consolas,monospace;color:var(--muted);margin-bottom:5px;}
.orbit-score {display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:15px;font:14px Consolas,monospace;color:var(--muted);}
.orbit-score strong {color:var(--text);margin-left:6px;font-weight:500;}
.orbit-stage {position:relative;overflow:hidden;border:1px solid var(--border);border-radius:6px;}
.orbit-stage canvas {display:block;width:100%;height:auto;touch-action:none;outline-offset:-3px;}
.orbit-message {position:absolute;left:12px;right:12px;top:52%;transform:translateY(-50%);pointer-events:none;text-align:center;padding:18px;background:#0a1017e8;}
.orbit-message strong {display:block;font-size:clamp(18px,3.5vw,28px);color:#eef3f8;letter-spacing:-.03em;}
.orbit-message span {display:block;font-size:14px;color:#bcc9d4;margin-top:7px;}
.orbit-controls {display:flex;gap:9px;margin:16px 0 12px;}
.orbit-controls button {padding:8px 16px;min-height:42px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:4px;font-size:15px;cursor:pointer;}
.orbit-controls button:first-child {color:var(--bg);background:var(--accent);border-color:var(--accent);}
.orbit-controls button:disabled {opacity:.45;cursor:default;}
.orbit-help,.orbit-access {color:var(--muted);font-size:14px;line-height:1.6;}.orbit-access {margin-top:5px;}
@media(max-width:600px){.orbit-dialog{padding:16px;}.orbit-score{font-size:13px;}.orbit-help{display:none;}.orbit-controls button{padding:9px 12px;min-height:44px;}}
@media(pointer:coarse){.console-launcher,.lab-close{min-height:44px;}.lab-close{min-width:44px;}}
@media(max-width:600px){.console-panel{right:14px;max-height:calc(100dvh - 28px);padding:18px;}.console-launcher kbd{display:none;}.console-utilities>label{min-height:44px;}.entry-dialog{padding:40px 20px 25px;}.session-dialog{padding:22px;}.session-details{gap:13px;}.system-strip{gap:9px;}.entry-motto{font-size:16px;}}
@media(prefers-reduced-motion:reduce){.entry-orbit i,.entry-content h2,.console-panel,html[data-rainbow="true"] :is(h1,h2),html[data-aurora="true"] body::before {animation:none!important;}}
