﻿* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; color: #f4ecdf; }
body { font-family: system-ui, sans-serif; }
button { color: inherit; font: inherit; background: transparent; cursor: pointer; }
button:focus-visible { outline: 2px solid #fde9c4; outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; }
#gl, #intro, #hud { position: fixed; inset: 0; }
#gl { width: 100%; height: 100%; display: block; touch-action: none; }
.bar { position: fixed; inset-inline: 0; height: var(--bar, 0px); background: #000; z-index: 10; pointer-events: none; }
#bar-top { top: 0; }
#bar-bot { bottom: 0; }
#intro { z-index: 30; display: grid; place-items: center; background: #000e; overflow: auto; transition: opacity 3s; }
.intro-content { text-align: center; padding: 1.5rem; max-width: 42rem; width: 100%; }
.eyebrow, .subtitle, h1, #quality-row, #begin, #controls, #btn-show, #caption { text-transform: uppercase; }
.eyebrow { color: #cbb895; font-size: .72rem; letter-spacing: .25em; }
h1, .subtitle, #caption { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(1.8rem, 8vw, 5rem); letter-spacing: .24em; margin: .75em 0 .6em; padding-left: .24em; }
.divider { height: 1px; width: 11rem; margin: auto; background: linear-gradient(90deg, transparent, #fcd99180, transparent); }
.subtitle { color: #cfbd9f; letter-spacing: .36em; font-size: .9rem; margin: 2rem 0; }
#begin { border: 1px solid #faddaa70; padding: .8rem 1.7rem; letter-spacing: .27em; font-size: .85rem; }
#begin:hover:enabled { background: #ffe3b321; }
#quality-row { margin: 1.4rem auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .14em; color: #bcb5aa; }
.q-btn { min-height: 42px; padding: .35rem .6rem; border: 1px solid transparent; }
.q-btn:hover, .q-btn.on { color: #fde9c4; }
.q-btn.on { border-color: #fde6be59; }
#hint { color: #bcb5aa; font-size: .8rem; }
#hud { z-index: 20; pointer-events: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .3rem; padding: 1rem clamp(.75rem, 4vw, 3rem) calc(var(--bar, 0px) + .7rem); }
#caption { opacity: 0; transition: opacity 1s; color: #f6dfb8; letter-spacing: .2em; font-size: .82rem; text-shadow: 0 1px 5px #000; }
#cap-num { color: #dfb467; margin-right: .35em; }
#controls { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: end; margin-left: auto; gap: .2rem; }
#controls button, #btn-show { border: 1px solid #faddaa40; background: #06090cbb; padding: .55rem .65rem; min-height: 42px; font-size: .72rem; letter-spacing: .075em; }
#controls button:hover, #btn-show:hover { border-color: #fde6be; }
#btn-show { position: fixed; right: .75rem; bottom: .75rem; z-index: 20; }
@media (prefers-reduced-motion: reduce) { #intro, #caption { transition: none; } }
