/* Fonts (SIL Open Font License, see fonts/OFL.txt): the pixel blackletter Jacquard 24 for the title, to go with the
   pixel fire, and IM Fell English for the rest. */
@font-face { font-family: 'Jacquard 24'; src: url('/client/fonts/Jacquard24.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('/client/fonts/IMFellEnglish.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('/client/fonts/IMFellEnglish-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }
:root { color-scheme: dark; --bg: #000; --fg: #ddd; --dim: #777; --panel: #1a1a1a; --accent: #4c8; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 20px 'IM Fell English', serif; }
main { margin: 0 auto; padding: 0 16px 16px; }
h1 { font-size: 22px; }
h2 { font-size: 16px; color: var(--dim); margin: 20px 0 8px; }
p { color: var(--dim); }
button, select { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid #333; background: var(--panel); color: var(--fg); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
fieldset { border: 1px solid #333; border-radius: 8px; margin: 8px 0; }
label { color: var(--fg); }
canvas { display: block; background: var(--panel); border-radius: 8px; width: 100%; max-width: 360px; aspect-ratio: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

button.talking { background: #e64; color: #000; }
.meter { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; width: 0; background: #e64; }
pre.log { font-size: 13px; color: var(--dim); white-space: pre-wrap; }
table { border-collapse: collapse; font-size: 14px; }
th, td { padding: 4px 8px; text-align: left; }
td .meter { width: 80px; margin: 0; }

.fire { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; background: #000; border-radius: 0; z-index: 0; }
.over { position: relative; z-index: 1; }

/* The title in the top third, centred; what's under it in a column. */
.logo { height: 33vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.logo .title { font-size: clamp(44px, 9vw, 104px); margin: 0; }
.landing, .panel { max-width: 560px; margin: 0 auto; }
.landing { text-align: center; }
.lead { font-size: clamp(26px, 3.6vw, 36px); color: var(--fg); margin: 0 0 20px; }
.landing button.primary { font-size: 24px; padding: 12px 28px; }
.panel { background: rgba(0, 0, 0, 0.6); border-radius: 12px; padding: 4px 16px 12px; }
.panel h2 { color: var(--fg); font-size: 26px; }
.panel h3 { font-size: 15px; margin: 16px 0 4px; }
.hint { font-size: 18px; }
.status { text-align: center; }
.status .row { justify-content: center; }
.caption { font-size: 26px; color: var(--fg); min-height: 1.5em; }
/* Who a name clip was, in the title's gold and italic, so it stands out from the narrator's words. */
.caption .who { color: #e8c070; font-style: italic; }
button.primary { background: #3a2208; border-color: #a0581a; color: #f3d9a6; }
button.primary:disabled { opacity: 0.5; }
/* Ready: plain until you're ready, then lit in the fire's colours. */
button.ready { font-size: 22px; padding: 10px 28px; }
button.ready[aria-pressed="true"] { background: #c8641a; border-color: #f0a040; color: #1a0a00; box-shadow: 0 0 16px #c6420c99; }
button.icon { position: fixed; top: 12px; z-index: 3; padding: 8px; line-height: 0; background: rgba(0, 0, 0, 0.6); }
.corner-left { left: 12px; }
.corner-right { right: 12px; }
.debug-panel { position: fixed; top: 0; left: 0; bottom: 0; width: min(440px, 100vw); overflow-y: auto; z-index: 2; background: var(--panel); padding: 56px 16px 16px; box-shadow: 0 0 24px #000; font: 14px system-ui, sans-serif; }
.debug-panel canvas.map { background: #000; }
.title { font: 56px 'Jacquard 24', serif; color: #e8c070; text-shadow: 0 0 18px #c6420c99; letter-spacing: .02em; margin: 24px 0 8px; }
/* Leave, on the setup page: plain, and away at the far side from Join the fire, so it isn't pressed by mistake. */
button.leave { margin-left: auto; color: var(--dim); }
