/* Overwyld concept: shared styles for the inner pages (same tokens as the home page) */
:root {
  --night: #120d26; --dusk: #21183f; --plum: #2e2152; --sun: #ffb35c; --gold: #e8bd6a;
  --cream: #fff1dc; --mist: #b9aed6; --pine: #7fd1a8; --ember: #ff8a6a; --line: rgba(255,241,220,.12);
  --display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; letter-spacing: .01em; line-height: 1.05; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.gold { background: linear-gradient(180deg, #ffe7a8 0%, #e8bd6a 55%, #b07a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 12px; border: 0; font: 800 16px var(--body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg, .btn img { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-play { color: #2b1503; background: linear-gradient(180deg, #ffd99a, #f2b25a 55%, #d0853a); box-shadow: 0 0 0 1px #ffeac4 inset, 0 12px 28px -12px rgba(255,170,80,.7); }
.btn-play::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); animation: sweep 7s ease-in-out infinite; z-index: -1; }
@keyframes sweep { 0%, 80% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { color: var(--cream); background: rgba(255,241,220,.08); box-shadow: 0 0 0 1px rgba(255,241,220,.25) inset; }
.btn-d { color: #fff; background: #5865f2; }
.btn-x { color: #fff; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.btn-ronin { color: #fff; background: #1273ea; box-shadow: 0 12px 26px -14px rgba(18,115,234,.9); }
.btn.wide { width: 100%; }
.ic { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; transition: transform .15s; }
.ic:hover { transform: translateY(-2px); }
.ic svg { width: 17px; height: 17px; fill: #fff; }
.ic.d { background: #5865f2; } .ic.x { background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }

/* the marks glow softly in their own colour, so they're easy to spot in running text */
.chip { margin: 0 2px; padding: 0 !important; font-weight: 700; font-size: 12px; }
.chip.live { text-shadow: 0 0 10px rgba(127,209,168,.75); }
.chip.soon { text-shadow: 0 0 10px rgba(232,189,106,.7); }
.chip.draft { color: #d6ccf2 !important; text-shadow: 0 0 10px rgba(185,174,214,.6); }
.chip::before { width: 8px; height: 8px; }
.chip.soon::before { background: var(--gold); border: 0; box-shadow: 0 0 8px var(--gold); }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(18,13,38,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 22px; padding-block: 12px; flex-wrap: wrap; }
.bar .brand img { height: 26px; width: auto; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bar nav a.t { text-decoration: none; color: var(--mist); font-weight: 700; font-size: 15px; }
.bar nav a.t:hover, .bar nav a.t.on { color: var(--cream); }
.bar .btn { padding: 9px 18px; font-size: 15px; border-radius: 10px; }

/* page header: a strip of the dusk */
.phead { position: relative; overflow: hidden; padding-block: 90px 70px; border-bottom: 1px solid var(--line); }
.phead .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18,13,38,.45), rgba(18,13,38,.75) 70%, var(--night)); }
.phead .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.phead h1 { font-size: clamp(48px, 7vw, 92px); }
.phead p { margin: 0; max-width: 62ch; font-size: 19px; color: var(--cream); text-shadow: 0 2px 10px rgba(10,5,25,.8); }

.sec { padding-block: 70px; }
.card { border-top: 1px solid rgba(232,189,106,.35); padding: 26px 0 0; min-width: 0; }
.card h2 { font-size: 34px; margin-bottom: 10px; }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.muted { color: var(--mist); }
.small { font-size: 14px; color: var(--mist); }
.kv { display: grid; gap: 0; margin: 14px 0 18px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv div span:first-child { color: var(--mist); }
.kv div span:last-child { font-family: var(--mono); font-size: 13px; color: var(--cream); text-align: right; }
.chip { display: inline-flex; white-space: nowrap; flex: none; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 0; background: none !important; border-radius: 0; vertical-align: middle; }
.chip::before { content: ""; width: 7px; height: 7px; flex: none; }
.chip.live { color: var(--pine) !important; } .chip.live::before { border-radius: 50%; background: var(--pine); box-shadow: 0 0 8px var(--pine); }
.chip.soon { color: var(--gold) !important; } .chip.soon::before { transform: rotate(45deg); border: 1.5px solid var(--gold); }
.chip.draft { color: var(--mist) !important; } .chip.draft::before { transform: rotate(45deg); border: 1.5px dashed var(--mist); }
.shot { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(232,189,106,.35), 0 30px 60px -30px rgba(0,0,0,.9); background: var(--dusk); }
.shot img { width: 100%; height: auto; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 4px 0 0 18px; border-left: 2px solid rgba(232,189,106,.45); min-width: 0; }
.tile b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.tile span { font-size: 14px; color: var(--mist); }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: baseline; }
.perks li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg) translateY(-2px); background: var(--gold); flex: none; }

footer { padding-block: 34px; background: #0b0819; border-top: 1px solid var(--line); color: var(--mist); font-size: 15px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; } footer a:hover { color: var(--cream); }
footer img { height: 22px; width: auto; }
footer span { margin-left: auto; font-size: 14px; }

@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar nav a.t { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* (live site) the account corner that auth.js fills, and the classes its markup uses */
#nav-auth { display: flex; gap: 16px; align-items: center; }
#nav-auth a:not(.btn) { text-decoration: none; color: var(--mist); font-weight: 700; font-size: 15px; }
#nav-auth a:not(.btn):hover { color: var(--cream); }
#nav-auth .who { font-family: var(--mono); font-size: 12px; color: var(--cream); padding: 6px 10px; border-radius: 8px; background: rgba(255,241,220,.07); box-shadow: 0 0 0 1px rgba(255,241,220,.14) inset; }
#nav-auth #nav-logout { font-size: 14px; }
#nav-auth .btn { padding: 9px 18px; font-size: 15px; border-radius: 10px; }
.btn-gold { color: #2b1503; background: linear-gradient(180deg, #ffd99a, #f2b25a 55%, #d0853a); box-shadow: 0 0 0 1px #ffeac4 inset, 0 12px 28px -12px rgba(255,170,80,.7); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.msg { margin-top: 12px; font-size: 14px; min-height: 1em; color: var(--mist); }
.msg.ok { color: var(--pine); } .msg.err { color: var(--ember); }
.msg:empty { display: none; }
.pixel { font-family: var(--mono); letter-spacing: .12em; }
[hidden] { display: none !important; }
