/* Spellverse: the site's look. The game's HUD palette: deep night blue, parchment cream, spell gold, sky. */
:root {
  --deep: #0a1634;
  --night: #070d20;
  --ink: #0c1530;
  --panel: rgba(13, 24, 54, 0.82);
  --panel-solid: #111d40;
  --line: rgba(236, 204, 136, 0.22);
  --cream: #f8f2e2;
  --mist: #a8b0ce;
  --gold: #eccc88;
  --gold-dim: #967e54;
  --sky: #7cd6ff;
  --ember: #ff9832;
  --foe: #ff6b6b;
  --ok: #7be0a5;
  --radius: 14px;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--cream); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(7, 13, 32, 0.92), rgba(7, 13, 32, 0.7)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font: 700 22px/1 var(--display); letter-spacing: 0.08em; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--mist); }
.top nav a:hover { color: var(--cream); text-decoration: none; }
.banner { background: linear-gradient(90deg, #3d2a0a, #5a3e10, #3d2a0a); color: var(--gold); text-align: center; font-size: 14px; padding: 8px 16px; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 22px; font-weight: 650; cursor: pointer; transition: transform 0.12s, filter 0.12s, background 0.12s; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #f6dc9c, #d8b166); color: #1c1306; box-shadow: 0 6px 24px rgba(236, 204, 136, 0.25); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }

/* ---- hero */
.hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: flex-end; overflow: hidden; }
/* the shot is a window capture: its top ~5% is the title bar, so the picture is anchored low and taller than the box */
.hero .bg { position: absolute; inset: 0; background: url("/img/wings.jpg") center bottom / cover no-repeat; transform: scale(1.12); transform-origin: 50% 85%; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7, 13, 32, 0.35) 0%, rgba(7, 13, 32, 0.15) 35%, rgba(7, 13, 32, 0.88) 78%, var(--night) 100%),
  radial-gradient(ellipse at 20% 80%, rgba(7, 13, 32, 0.75), transparent 60%); }
.hero .wrap { position: relative; padding: 0 0 56px; }
.kicker { font: 600 13px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1.title { font: 700 clamp(46px, 8vw, 96px)/0.95 var(--display); letter-spacing: 0.04em; margin: 0 0 14px; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.tagline { font-size: clamp(18px, 2.2vw, 22px); color: var(--cream); max-width: 640px; margin: 0 0 28px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.tagline em { color: var(--gold); font-style: normal; }

/* ---- the play card */
.playcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 560px; backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mist); margin-bottom: 14px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
.dot.off { background: var(--foe); }
@keyframes pulse { 50% { opacity: 0.55; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 200px; min-width: 0; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--cream); border-radius: 10px; padding: 12px 14px; outline: none; }
.row input:focus { border-color: var(--gold); }
.note { font-size: 13px; color: var(--mist); margin: 12px 0 0; }
.err { color: var(--foe); font-size: 14px; margin: 10px 0 0; min-height: 1px; }
.alt { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---- the queue */
.queue { display: none; }
.queue.show { display: block; }
.qpos { font: 700 54px/1 var(--display); color: var(--gold); }
.qline { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 6px; }
.qsub { color: var(--mist); font-size: 15px; }
.ready { display: none; text-align: center; padding: 6px 0 2px; }
.ready.show { display: block; }
.ready h3 { font: 700 26px/1.2 var(--display); color: var(--gold); margin: 4px 0 12px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- sections */
section { padding: 72px 0; }
.sec-title { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); margin: 0 0 10px; }
.sec-sub { color: var(--mist); margin: 0 0 32px; max-width: 680px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .shot { aspect-ratio: 16 / 9; background: url("/img/sheet.jpg") no-repeat; background-size: 300% 300%; }
.card .body { padding: 18px 18px 20px; }
.card h3 { font: 700 20px/1.2 var(--display); color: var(--gold); margin: 0 0 6px; }
.card p { margin: 0; color: var(--mist); font-size: 15px; }
.step { font: 700 13px/1 var(--body); letter-spacing: 0.18em; color: var(--sky); margin-bottom: 8px; text-transform: uppercase; }

/* ---- the live broadcast */
.live { position: relative; aspect-ratio: 16 / 9; background: #000 url("/img/strip2.jpg") center / cover; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live .off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(7, 13, 32, 0.72); padding: 20px; }
.live .off p { max-width: 420px; color: var(--cream); }
.live-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--foe); color: #fff; font: 700 12px/1 var(--body); letter-spacing: 0.12em; padding: 6px 9px; border-radius: 6px; }

/* ---- controls */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.key { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.kb { display: inline-flex; gap: 6px; flex: none; min-width: 130px; }
kbd { font: 600 13px/1 var(--body); background: linear-gradient(#253461, #18234a); border: 1px solid rgba(255, 255, 255, 0.18); border-bottom-width: 3px; border-radius: 7px; padding: 6px 9px; color: var(--cream); }
.key span { color: var(--mist); }

/* ---- download */
.dl { display: flex; gap: 28px; align-items: center; background: linear-gradient(120deg, #131f47, #0d1636); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; flex-wrap: wrap; }
.dl h3 { font: 700 26px/1.2 var(--display); margin: 0 0 6px; }
.dl p { margin: 0; color: var(--mist); }
.dl .btn { margin-left: auto; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mist); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .hero { min-height: auto; padding-top: 220px; }
  .dl .btn { margin-left: 0; }
}
