
@font-face { font-family: Fraunces; src: url("assets/4063dec09ee3d7170bd8.ttf") format("truetype"); }
:root { color-scheme: dark; --ink:#f7f7f5; --dim:#c9c8d0; --muted:#a9a7ad; --gold:#f0c44a; --edge:#ffffff2e; }
* { box-sizing:border-box; }
/* Keep the native scrollbar gutter from narrowing the viewport-based frame. Scrolling still works. */
html { scrollbar-width:none; }
html, body { margin:0; background:#101217; color:var(--ink); font:14px "Segoe UI",system-ui,sans-serif; }
button, a { color:inherit; font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
[hidden] { display:none !important; }
svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sprite { position:absolute; width:0; height:0; }
.viewport { margin:0 auto; position:relative; overflow:clip; }
.scene {
    position:relative; width:1280px; height:720px; overflow:hidden; isolation:isolate;
    transform-origin:top left; background:#15151b;
}
.scene::before, .scene::after { content:""; position:absolute; pointer-events:none; z-index:-1; }
.scene::before {
    inset:-85px; background:var(--cover) center 65% / cover no-repeat;
    filter:blur(58px) saturate(.72);
}
.scene::after {
    inset:0; background:radial-gradient(ellipse at 50% 43%, transparent 43%, #08090e64 100%),
        linear-gradient(180deg,#06070b66,#100c14a8 79%,#09090dc2);
    box-shadow:inset 0 0 35px #07080da0;
}
.plain { display:inline-grid; place-items:center; padding:0; border:0; background:none; border-radius:8px; }
.plain:enabled:hover { background:#ffffff12; }
.glass { border:1px solid var(--edge); background:#ffffff17; box-shadow:inset 0 0 0 1px #ffffff05; }
.topbar { position:absolute; top:55px; left:54px; right:54px; height:54px; display:flex; align-items:center; justify-content:space-between; }
.clock-group, .clock-line, .system, .worlds { display:flex; align-items:center; }
.clock-group { gap:18px; }
.clock-group button { width:28px; height:34px; color:var(--dim); }
.clock-group svg, .back svg { width:20px; height:20px; }
.clock-line { align-items:baseline; gap:5px; height:41px; }
.clock-number { font:32px/1.1 Fraunces,Georgia,serif; }
.clock-period { color:var(--dim); font-size:16px; }
.date { color:var(--dim); font-size:13px; }
.worlds {
    position:absolute; left:50%; transform:translateX(-50%); gap:4px; padding:5px 6px;
    height:46px; border-radius:999px; white-space:nowrap; background:#ffffff0d;
}
.worlds button { height:34px; padding:0 17px; border:0; border-radius:999px; background:none; color:var(--dim); }
.worlds button[aria-current] { background:var(--gold); color:#1a160e; font-weight:600; }
.system { gap:19px; color:var(--dim); }
.system .plain { width:23px; height:28px; }
.system svg { width:23px; height:23px; }
.device { border:1px solid #ffffff63; border-radius:20px; height:23px; min-width:58px; background:none; color:var(--dim); font-size:10px; }
.back { position:absolute; top:139px; left:54px; height:44px; display:flex; align-items:center; gap:11px; padding:0 6px; border:0; border-radius:8px; background:none; }
.room { position:absolute; left:50%; top:138px; width:290px; transform:translateX(-50%); }
.cover { display:block; width:290px; height:290px; object-fit:cover; border-radius:18px; box-shadow:0 3px 6px #08070a9c; }
.glass-button {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-height:34px; padding:0 10px; border-radius:10px; font-size:12px;
    color:var(--dim); text-decoration:none; white-space:nowrap;
}
.glass-button svg { width:17px; height:17px; }
.glass-button:hover, .glass-button[aria-expanded="true"] { background:#ffffff24; }
.glass-button[aria-expanded="true"] { color:var(--ink); }
.glass-button:disabled { opacity:.34; }
.flank { position:absolute; top:0; }
.flank.left { right:calc(100% + 44px); }
.flank.right { left:calc(100% + 44px); }
.corner { position:absolute; top:143px; right:54px; width:34px; padding:0; background:#ffffff0d; }
.actions { display:flex; gap:7px; margin-top:12px; }
.save { width:34px; padding:0; }
.save[aria-pressed="true"] { color:var(--gold); }
.save[aria-pressed="true"] svg { fill:currentColor; }
.metadata { text-align:center; margin-top:5px; color:var(--dim); line-height:21px; white-space:nowrap; }
.narrator { display:block; font-size:11px; line-height:16px; }
.chapters {
    position:absolute; top:180px; bottom:140px; left:44px; width:250px;
    overflow:auto; scrollbar-width:thin; scrollbar-color:#ffffff39 transparent;
}
.chapters ol { list-style:none; margin:0; padding:0 8px 0 0; }
.chapter {
    display:flex; width:100%; align-items:center; gap:11px; min-height:34px;
    padding:0 10px; border:0; border-radius:8px; background:none; color:#b4afb8;
    text-align:left; font-size:15px; font-weight:500;
}
.chapter:hover { background:#ffffff14; color:var(--ink); }
.chapter .number { min-width:23px; font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.chapter[aria-current="true"] { background:#ffffff13; color:var(--ink); }
.chapter[aria-current="true"] .number, .current-marker { color:var(--gold); }
.current-marker { margin-left:auto; width:14px; height:14px; }
.end-time { position:absolute; right:57px; bottom:129px; color:var(--dim); opacity:.78; font-size:11px; font-variant-numeric:tabular-nums; }
.playerbar {
    position:absolute; left:54px; right:54px; bottom:18px; height:104px;
    border-radius:21px; background:#ffffff19; backdrop-filter:blur(20px);
}
.player-row { position:absolute; inset:12px 17px auto; height:44px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.identity { display:flex; align-items:center; gap:12px; min-width:0; }
.identity img { width:44px; height:44px; border-radius:7px; object-fit:cover; box-shadow:0 2px 4px #0008; }
.identity strong, .identity span { display:block; }
.identity strong { font-size:12px; font-weight:650; }
.identity span { margin-top:2px; font-size:10px; color:var(--muted); }
.transport, .tools { display:flex; gap:6px; align-items:center; }
.tools { justify-self:end; }
.hud-button { position:relative; width:34px; height:36px; color:#e3e2e8; }
.hud-button svg { width:21px; height:21px; }
.hud-button:disabled, .timeline input:disabled { opacity:.42; }
.jump svg { width:26px; height:26px; }
.jump span { position:absolute; top:14px; left:0; right:0; font-size:8.5px; font-weight:700; text-align:center; }
.play { width:39px; height:39px; margin:0 6px; border-radius:50%; background:var(--gold); color:#201a0d; }
.play:enabled:hover { background:#f6d16a; }
.play svg { width:19px; height:19px; stroke-width:2.4; }
.play use[href="#i-play"] { fill:currentColor; }
.speed { font-size:11.5px; font-weight:650; }
.sleep, .return { color:#f2d486; }
.sleep span { position:absolute; right:0; bottom:0; font-size:8.5px; font-weight:700; }
.return::after { content:""; position:absolute; top:5px; right:4px; width:5px; height:5px; border-radius:50%; background:var(--gold); }
.volume { position:relative; }
.volume-pop {
    position:absolute; right:-4px; bottom:100%; width:117px; padding:9px 11px; border-radius:10px;
    background:#25232be8; display:none; align-items:center;
}
.volume:hover .volume-pop, .volume:focus-within .volume-pop { display:flex; }
.volume-pop input { width:100%; accent-color:var(--gold); }
.timeline {
    position:absolute; inset:70px 23px auto; display:grid; grid-template-columns:34px 1fr 42px;
    align-items:center; gap:8px; font-size:10px; color:var(--muted); font-variant-numeric:tabular-nums;
}
.timeline span:first-child { text-align:right; padding-right:3px; }
.time-end { padding:0; text-align:right; border:0; background:none; color:inherit; }
.rails { position:relative; height:18px; }
.rails input {
    position:absolute; inset:0; width:100%; height:14px; margin:0;
    appearance:none; background:transparent; cursor:pointer;
}
.rails input:disabled { cursor:default; }
.rails input::-webkit-slider-runnable-track {
    height:3px; border-radius:3px;
    background:linear-gradient(to right,var(--gold) 0 var(--position),#ffffff40 var(--position) 100%);
}
.rails input::-webkit-slider-thumb {
    appearance:none; width:8px; height:8px; border-radius:50%; background:var(--gold); margin-top:-2.5px;
}
.rails input::-moz-range-track {
    height:3px; border-radius:3px;
    background:linear-gradient(to right,var(--gold) 0 var(--position),#ffffff40 var(--position) 100%);
}
.rails input::-moz-range-thumb { width:8px; height:8px; border:0; border-radius:50%; background:var(--gold); }
.book-line { position:absolute; inset:14px 0 auto; height:2px; border-radius:2px; background:linear-gradient(to right,#f0c44a59 0 27%,#ffffff23 27% 100%); pointer-events:none; }
.time-menu { position:absolute; z-index:3; padding:4px; border-radius:9px; background:#232128f5; }
.time-menu button { border:0; padding:7px 10px; border-radius:5px; background:none; font-size:12px; }
.time-menu button:hover { background:#ffffff18; }
.preview { max-width:1280px; margin:0 auto; padding:14px 16px 20px; color:var(--dim); }
.preview nav { display:flex; flex-wrap:wrap; gap:8px; }
.preview button { border:1px solid var(--edge); border-radius:8px; background:#1d1f26; padding:7px 10px; font-size:12px; }
.preview button[aria-pressed="true"] { color:var(--gold); border-color:#f0c44a9e; }
.preview p { margin:9px 0 0; font-size:12px; }

.preview { display: none; }
