@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(assets/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 300; font-display: swap; src: url(assets/fonts/barlow-semi-condensed-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
:root {
  --void: #0a0a0c; --char: #141317; --smoke: #23212a; --ash: #6e6a73; --ivory: #e9dfcb; --dim: #b3aa99;
  --gold: #c9a15a; --gold-hi: #f1d592; --crimson: #b3141f; --ember: #ff4b2b; --arcane: #3d8bff;
  --display: Cinzel, 'Times New Roman', serif; --body: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--ivory); font-family: var(--body); font-size: 18px; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--char); border: 1px solid var(--gold); }
.skip:focus { top: 12px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, 3vw); border-bottom: 1px solid rgba(201, 161, 90, 0.25); }
.brand img { display: block; width: 170px; height: auto; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--ivory); text-decoration: none; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; }
.top nav a:hover { color: var(--gold-hi); }
.top nav .play, .btn { padding: 10px 22px; font-family: var(--display); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #fff3e6; text-decoration: none;
  background: linear-gradient(180deg, #c8222c, #8e0f18); border: 1px solid var(--gold-hi); box-shadow: 0 0 24px rgba(255, 75, 43, 0.3); }
main { width: min(1400px, 100% - 32px, (100svh - 250px) * 16 / 9); min-width: min(100% - 32px, 560px); margin: 24px auto 60px; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(201, 161, 90, 0.55); outline: 1px solid rgba(201, 161, 90, 0.18); outline-offset: 5px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); overflow: hidden; }
#c { display: block; width: 100%; height: 100%; cursor: pointer; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); letter-spacing: 4px; text-transform: uppercase; color: var(--gold-hi); background: var(--void); }
.loading[hidden] { display: none; }
.bigplay { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(241, 213, 146, 0.8); background: rgba(10, 10, 12, 0.6); color: var(--gold-hi); cursor: pointer; box-shadow: 0 0 0 8px rgba(201, 161, 90, 0.14); }
.bigplay svg { width: 30px; height: 30px; margin-left: 5px; }
.bigplay[hidden] { display: none; }
.controls { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 10px 14px; background: var(--char); border: 1px solid rgba(201, 161, 90, 0.3); }
.ctl { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid rgba(201, 161, 90, 0.6); background: var(--smoke); color: var(--gold-hi); cursor: pointer; }
.ctl svg { width: 18px; height: 18px; }
.ctl .i-play, .ctl.paused .i-pause { display: none; }
.ctl.paused .i-play { display: block; }
.time { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 1px; color: var(--dim); min-width: 112px; }
#scrub { flex: 1; min-width: 80px; accent-color: var(--gold); }
.speed, .loop { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.speed select { background: var(--smoke); color: var(--ivory); border: 1px solid rgba(201, 161, 90, 0.5); padding: 4px 6px; font: inherit; }
.loop input { accent-color: var(--gold); width: 18px; height: 18px; }
.scenes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.scenes button { width: 100%; padding: 10px 8px; background: transparent; border: 1px solid rgba(201, 161, 90, 0.25); color: var(--dim); font: 600 14px var(--body); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; text-align: left; position: relative; overflow: hidden; }
.scenes button i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); width: 0; }
.scenes button.on { color: var(--ivory); border-color: rgba(201, 161, 90, 0.7); }
.scenes button span { display: block; font-size: 12px; color: var(--ash); margin-top: 2px; }
.note { margin-top: 26px; max-width: 760px; font-weight: 300; font-size: 19px; line-height: 1.5; color: var(--dim); }
.note code { color: var(--gold-hi); }
.cta { margin-top: 26px; }
.cta .btn { display: inline-block; padding: 14px 34px; font-size: 20px; }
body.render .top, body.render .controls, body.render .scenes, body.render .note, body.render .cta, body.render .skip { display: none; }
body.render main { width: 1920px; margin: 0; }
body.render .frame { border: 0; outline: 0; box-shadow: none; width: 1920px; height: 1080px; }
@media (max-width: 900px) {
  .scenes { grid-template-columns: repeat(3, 1fr); }
  .top nav a:not(.play) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  main { margin-top: 16px; }
  .brand img { width: 130px; }
  .controls { flex-wrap: wrap; gap: 10px; }
  #scrub { order: 5; flex-basis: 100%; }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .note { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .bigplay { box-shadow: none; }
}
