/* Velkomstside: start-knap, deltag-felt, animeret demo og guide. Bruger base.css' farver og fonte. */
body { min-height: 100%; }
.w-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); max-width: 72rem; margin: 0 auto; }
.w-mark { font: 800 1rem var(--display); letter-spacing: .02em; }
.w-top-right { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.w-main { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.w-main h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.1rem; }

/* ---------- top: logo + handlinger ---------- */
.w-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-top: clamp(.5rem, 3vw, 2.5rem); }
.w-logo { font-size: clamp(3.4rem, 9vw, 6.6rem); font-weight: 900; line-height: .9; text-shadow: .25rem .25rem 0 var(--pink); margin-bottom: 1.2rem; }
.w-tagline { font: 700 clamp(1.2rem, 2.4vw, 1.6rem) var(--display); color: var(--ice); margin: 0 0 .6rem; line-height: 1.2; }
.w-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); margin: 0; max-width: 32rem; }
.w-actions { display: grid; gap: 1rem; }
.w-card { background: rgba(40, 26, 70, .72); border: .12rem solid var(--line); border-radius: 1.3rem; padding: 1.3rem; }
.w-host { display: grid; gap: .8rem; border-color: var(--pink); }
.w-host p { margin: 0; }
.w-start { font-size: clamp(1.3rem, 2.6vw, 1.7rem); padding: 1em 1.2em; width: 100%; box-shadow: 0 .45rem 0 #a31259; }
.w-start:active { transform: translateY(.3rem); box-shadow: 0 .15rem 0 #a31259; }
.w-join label { display: block; margin-bottom: .7rem; }
.w-join-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.w-code { font: 800 1.7rem var(--display) !important; letter-spacing: .3em; text-align: center; text-transform: uppercase; padding: .45em .5em !important; }
.w-code.bad { border-color: var(--bad); animation: w-shake .3s; }
@keyframes w-shake { 25% { transform: translateX(-.4rem); } 75% { transform: translateX(.4rem); } }
.w-resume { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: rgba(134, 227, 255, .12);
  border: .12rem solid var(--ice); border-radius: 1rem; padding: .8rem 1rem; font-weight: 700; }

/* ---------- guide ---------- */
.w-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; counter-reset: step; }
.w-steps li { counter-increment: step; background: rgba(255, 255, 255, .05); border-radius: 1.1rem; padding: 1.2rem 1.2rem 1.3rem; position: relative; }
.w-steps li::before { content: counter(step); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; margin-bottom: .8rem;
  background: var(--pink); color: #2a0619; font: 800 1.1rem var(--display); }
.w-steps h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.w-steps p { margin: 0; color: var(--muted); }
.w-tips ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--muted); font-size: 1.05rem; }
.w-tips li::marker { color: var(--pink); }
.w-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 600; border-top: .1rem solid var(--line); padding-top: 1.4rem; }

/* ---------- video / demo ---------- */
.w-video video { width: 100%; border-radius: 1.2rem; background: #000; display: block; }
.demo { background: #0b0614; border: .12rem solid var(--line); border-radius: 1.4rem; padding: clamp(.6rem, 1.5vw, 1rem); }
.demo-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: 1rem;
  background: radial-gradient(90% 70% at 40% 0%, #2c1752 0%, #120a20 70%); }
.demo-tv { position: absolute; left: 3cqw; top: 3.2cqw; width: 72cqw; aspect-ratio: 16 / 9; background: #05030a; border-radius: 1.6cqw; padding: .9cqw; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .55); }
.demo-tv::after { content: ''; position: absolute; left: 42%; right: 42%; bottom: -1.6cqw; height: 1.2cqw; background: #05030a; border-radius: 0 0 .6cqw .6cqw; }
.demo-screen { position: relative; width: 100%; height: 100%; border-radius: .9cqw; overflow: hidden; color: var(--text); font-size: 1.5cqw; line-height: 1.25;
  background: radial-gradient(120% 80% at 50% -10%, #3a1f6b 0%, var(--bg-2) 45%, var(--bg) 100%); padding: 1.6cqw 2cqw; }
.demo-phone { position: absolute; right: 4cqw; bottom: 3cqw; width: 18.5cqw; height: 38cqw; background: #05030a; border-radius: 3cqw; padding: .8cqw; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .6); transition: transform .4s; }
.demo-pscreen { width: 100%; height: 100%; border-radius: 2.3cqw; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; gap: 1cqw; padding: 1.8cqw 1.3cqw 1.4cqw; font-size: 1.15cqw; }
.demo-bar { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.demo-play { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.demo-steps { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; }
.demo-steps button { height: 1.6rem; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.demo-steps button i { display: block; width: 100%; height: .4rem; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.demo-steps button i b { display: block; height: 100%; width: 0; background: var(--pink); }
.demo-steps button.done i b { width: 100%; background: var(--violet); }
.demo-cap { margin: .7rem .2rem .2rem; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; min-height: 2.6em; }

/* tv-indhold */
.dt-title { font: 700 1.5cqw var(--display); color: var(--muted); }
.dt-lobby { height: 100%; display: flex; flex-direction: column; gap: 1.2cqw; }
.dt-lobby-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4cqw; }
.dt-small { color: var(--muted); font-size: 1.4cqw; }
.dt-code { font: 900 7.5cqw/1 var(--display); letter-spacing: .12em; text-shadow: .3cqw .3cqw 0 var(--pink); margin-top: .5cqw; }
.dt-qr { width: 15cqw; height: 15cqw; background: #fff; border-radius: .8cqw; padding: .6cqw; }
.dt-chips { display: flex; gap: .8cqw; min-height: 3.2cqw; justify-content: center; }
.dt-chip { background: var(--panel); border: .2cqw solid var(--tc, var(--line)); border-radius: 999px; padding: .5cqw 1.4cqw; font-weight: 700; font-size: 1.5cqw; animation: d-pop .35s both; }
.dt-pick { height: 100%; display: flex; flex-direction: column; gap: 2cqw; }
.dt-pick h4 { margin: 0; font: 800 3cqw var(--display); text-align: center; }
.dt-cats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; align-items: center; }
.dt-cat { background: var(--panel); border: .3cqw solid var(--line); border-radius: 1.4cqw; padding: 3cqw 1cqw; text-align: center; font: 800 2.2cqw var(--display); transition: all .3s; }
.dt-cat.on { border-color: var(--pink); background: var(--pink); color: #2a0619; transform: scale(1.06); }
.dt-q { height: 100%; display: grid; grid-template-columns: 7cqw minmax(0, 1fr); gap: 2.4cqw; }
.dt-q-main { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.dt-cat-label { font-weight: 700; color: var(--ice); font-size: 1.5cqw; }
.dt-cat-label span { color: var(--muted); font-weight: 600; margin-left: .8cqw; }
.dt-question { font: 800 3.5cqw/1.12 var(--display); }
.dt-value { text-align: center; }
.dt-value small { display: block; color: var(--muted); font-size: 1.4cqw; }
.dt-value b { font: 900 6cqw/1 var(--display); font-variant-numeric: tabular-nums; }
.dt-buzz { color: var(--pink); font: 800 2.2cqw var(--display); min-height: 1.3em; text-align: center; }
.dt-reveal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 7, 22, .7); animation: d-fade .3s both; }
.dt-reveal-card { background: var(--panel); border: .5cqw solid var(--ok); border-radius: 2cqw; padding: 2.4cqw 5cqw; text-align: center; animation: d-pop .4s both; }
.dt-reveal-card small { color: var(--ok); font: 800 2cqw var(--display); }
.dt-reveal-card b { display: block; font: 900 6cqw/1.1 var(--display); margin: .6cqw 0; }
.dt-reveal-card span { color: var(--muted); font-size: 1.8cqw; font-weight: 700; }
.dt-podium { height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; align-items: end; padding: 0 6cqw; }
.dt-pod { display: flex; flex-direction: column; align-items: center; gap: .6cqw; font-weight: 800; font-size: 1.8cqw; }
.dt-pod i { display: block; width: 100%; border-radius: 1cqw 1cqw 0 0; background: var(--tc); animation: d-grow .7s both; transform-origin: bottom; }
.dt-pod em { font: 900 2.4cqw var(--display); font-style: normal; }
.demo .clock-led { gap: .22cqw; padding: .45cqw; border-width: .2cqw; border-radius: .9cqw; }
.demo .clock-led .seg { border-radius: .2cqw; }
.demo .clock[data-state=paused]::after { display: none; }

/* telefon-indhold */
.dp-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.dp-head b { font: 800 1.5cqw var(--display); }
.dp-status { min-height: 3em; font-weight: 700; font-size: 1.2cqw; display: flex; align-items: center; }
.dp-status.ok { color: var(--ok); }
.dp-buzz { flex: 1; border-radius: 2.4cqw; background: #3a2a5c; color: #7d6ca6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4cqw;
  box-shadow: 0 .8cqw 0 #241640; margin-bottom: .8cqw; transition: transform .08s, box-shadow .08s; }
.dp-buzz span { font: 900 3.2cqw var(--display); }
.dp-buzz small { font: 800 1.6cqw var(--display); min-height: 1.2em; font-variant-numeric: tabular-nums; }
.dp-buzz.live { background: var(--pink); color: #2a0619; box-shadow: 0 .8cqw 0 #a31259; }
.dp-buzz.pressed { transform: translateY(.6cqw); box-shadow: 0 .2cqw 0 #a31259; }
.dp-form { display: grid; gap: .5cqw; margin-top: 1cqw; }
.dp-form label { font-weight: 700; font-size: 1.1cqw; margin-top: .6cqw; }
.dp-field { background: rgba(0, 0, 0, .3); border: .15cqw solid var(--line); border-radius: .9cqw; padding: .8cqw; min-height: 3.2cqw; font-weight: 700; font-size: 1.4cqw; }
.dp-field.code { font: 800 2.2cqw var(--display); letter-spacing: .25em; text-align: center; }
.dp-field.typing::after { content: '|'; color: var(--ice); animation: d-blink .8s steps(2) infinite; margin-left: .1em; }
.dp-btn { margin-top: 1.2cqw; background: var(--pink); color: #2a0619; border-radius: 999px; text-align: center; padding: 1cqw; font-weight: 800; font-size: 1.4cqw; transition: transform .1s; }
.dp-btn.pressed { transform: scale(.94); filter: brightness(.9); }
.dp-big { flex: 1; display: grid; place-items: center; text-align: center; font: 900 2.8cqw/1.15 var(--display); color: var(--ice); }
.demo-tap { position: absolute; width: 6cqw; height: 6cqw; margin: -3cqw 0 0 -3cqw; border-radius: 50%; border: .5cqw solid #fff; pointer-events: none; opacity: 0; }
.demo-tap.go { animation: d-tap .6s ease-out; }
@keyframes d-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes d-fade { from { opacity: 0; } }
@keyframes d-grow { from { transform: scaleY(0); } }
@keyframes d-blink { 50% { opacity: 0; } }
@keyframes d-tap { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- telefon / smal skærm ---------- */
@media (max-width: 760px) {
  .w-hero { grid-template-columns: 1fr; }
  .w-resume { order: -2; }
  .w-join { order: -1; } /* på telefonen er man oftest spiller */
}
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; transition: none !important; }
}
