/* Toverplein browserdemo */
body { --bg1: #0f1830; --bg2: #1c2a4d; --accent: #9fd3ff; --warm: #f2c968; --item: #e8f4ff; background: var(--bg1); color: #f6eedb; min-height: 100vh; min-height: 100dvh; }
body[data-season="herfst"] { --bg1: #24140c; --bg2: #4a2614; --accent: #f0a04b; --warm: #f6d27a; --item: #e9862f; }
body[data-season="lente"] { --bg1: #18301f; --bg2: #2f5a37; --accent: #ffb7cf; --warm: #fff0a8; --item: #ffc6d9; }
body[data-season="zomer"] { --bg1: #0b1426; --bg2: #18294a; --accent: #c8f56b; --warm: #ffe27a; --item: #f6ff9a; }
body { background: radial-gradient(120% 90% at 50% 0%, var(--bg2), var(--bg1) 70%) fixed; transition: background .6s ease; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px clamp(12px, 3vw, 26px); background: rgba(8, 10, 20, .45); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(242, 201, 104, .18); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--warm); }
.brand svg { width: 22px; height: 22px; }
.sim-pill { font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .4); text-align: center; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(242, 201, 104, .5); background: rgba(255, 255, 255, .06); color: inherit; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="false"] .wave { display: none; }
.icon-btn[aria-pressed="true"] .mute { display: none; }

.screen { display: none; min-height: calc(100dvh - 62px); }
.screen.is-active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { font: 700 12.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--warm); margin: 0 0 8px; }

/* Intro */
.intro-grid { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 32px) 40px; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.intro-copy h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(54px, 10vw, 104px); line-height: .9; margin: 0 0 14px; color: #fff6dc; text-shadow: 0 0 40px rgba(242, 201, 104, .35); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 56ch; margin: 0 0 16px; color: #efe6cf; }
.honest { border: 1px dashed rgba(255, 255, 255, .45); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .05); margin-bottom: 18px; }
.honest strong { color: var(--warm); font-size: 14px; letter-spacing: .04em; }
.honest p { margin: 4px 0 0; font-size: 15px; }
.seasons { border: 0; padding: 0; margin: 0 0 18px; }
.seasons legend { font-weight: 700; margin-bottom: 8px; }
.season-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.season { position: relative; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 14px/1.1 var(--sans); min-height: 84px; }
.season svg { width: 34px; height: 34px; }
.season small { font-weight: 400; font-size: 12px; opacity: .8; }
.season[aria-checked="true"] { border-color: var(--warm); background: rgba(242, 201, 104, .14); box-shadow: 0 0 0 4px rgba(242, 201, 104, .15); }
.start-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn.big { font-size: 18px; padding: 16px 28px; }
.hint { font-size: 14px; opacity: .8; }

.how { background: rgba(246, 238, 219, .96); color: var(--ink); border-radius: 22px; padding: 22px 22px 16px; box-shadow: var(--shadow); position: relative; }
.how::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 154, 46, .5); border-radius: 17px; pointer-events: none; }
.how h2 { font-family: var(--serif); font-size: 27px; margin: 0 0 10px; color: var(--forest); }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.how li { counter-increment: h; position: relative; padding: 0 0 12px 46px; display: flex; flex-direction: column; font-size: 15px; }
.how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.how li b { font-size: 16.5px; color: var(--forest); }

/* Rij */
.queue-wrap { max-width: 760px; margin: 0 auto; padding: clamp(22px, 5vw, 52px) 18px 40px; text-align: center; }
.queue-sign { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 26px 10px; border-radius: 40px 40px 12px 12px; background: linear-gradient(180deg, #5a3a1e, #3b2412); border: 2px solid var(--warm); box-shadow: 0 10px 30px -10px #000; margin-bottom: 18px; }
.queue-sign .ride { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff1c9; }
.queue-sign .wait { font-size: 14px; letter-spacing: .04em; }
.queue-sign b { font-size: 18px; color: var(--warm); }
.queue-wrap h2 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); margin: 4px 0 6px; }
.sub { margin: 0 auto 18px; max-width: 52ch; opacity: .9; }
.guests { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.guest { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .35); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.guest.you { border-style: solid; border-color: var(--warm); background: rgba(242, 201, 104, .12); }
.guest .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #1b1406; }
.guest .nm { font-weight: 700; display: block; }
.guest .pos { font-size: 12.5px; opacity: .85; display: block; }
.guest .tag { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; display: block; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
.challenge-card { background: rgba(246, 238, 219, .97); color: var(--ink); border-radius: 22px; padding: 20px 20px 22px; box-shadow: var(--shadow); animation: pop .5s ease both; }
.challenge-card h3 { font-family: var(--serif); font-size: 32px; margin: 0 0 6px; color: var(--forest); }
.challenge-card p { margin: 0 auto 10px; max-width: 48ch; }
.challenge-card .eyebrow { color: var(--ember); }
.keys { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }

/* Spel */
#s-play { padding: 10px clamp(8px, 2vw, 20px) 16px; }
.hud { max-width: 1100px; margin: 0 auto 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.round-title { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); margin: 0; line-height: 1.05; }
.round-help { margin: 2px 0 0; font-size: 14.5px; opacity: .9; }
.hud-right { display: flex; align-items: center; gap: 10px; }
.meter { position: relative; width: clamp(130px, 26vw, 280px); height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(242, 201, 104, .55); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--warm)); transition: width .25s ease; }
.meter-label { position: relative; z-index: 1; display: block; text-align: center; font: 700 13.5px/30px var(--sans); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.timer { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 22px/1 var(--sans); border: 2px solid var(--warm); background: rgba(0, 0, 0, .25); flex: none; }
.stage { position: relative; max-width: 1100px; margin: 0 auto; height: min(68vh, 640px); min-height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(242, 201, 104, .35); box-shadow: inset 0 0 80px rgba(0, 0, 0, .5); touch-action: none; user-select: none; -webkit-user-select: none; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--serif); font-weight: 700; font-size: clamp(70px, 14vw, 150px); color: #fff6dc; text-shadow: 0 0 40px var(--warm); }
.countdown:empty { display: none; }
.countdown.small { font-size: clamp(30px, 6vw, 56px); text-align: center; padding: 0 20px; }
.cast-btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 14px 34px 10px; border-radius: 999px; border: 2px solid #fff3c4; background: linear-gradient(180deg, #ffe599, #d8a43a); color: #2a1d06; font: 700 22px/1 var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 6px 0 #8f6a17, 0 0 30px rgba(255, 220, 120, .55); min-width: 170px; }
.cast-btn small { font-size: 11.5px; font-weight: 500; opacity: .75; }
.cast-btn:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 3px 0 #8f6a17; }
.legend { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; background: rgba(0, 0, 0, .3); padding: 5px 10px; border-radius: 999px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .dot.you { background: var(--warm); margin-left: 2px; }
.legend .dot.sim { border: 2px dashed #fff; margin-left: 8px; }

/* Beloning */
#s-reward { position: relative; overflow: hidden; }
#bloom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reward-wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: clamp(18px, 4vw, 40px) 18px 40px; text-align: center; }
.badge { width: 150px; height: 150px; margin: 0 auto 8px; animation: badgeIn 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.badge svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255, 220, 120, .55)); }
@keyframes badgeIn { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
.reward-wrap h2 { font-family: var(--serif); font-size: clamp(34px, 6vw, 54px); margin: 0 0 6px; line-height: 1; color: #fff6dc; }
.reward-text { font-size: 18px; margin: 0 auto 14px; max-width: 50ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.stats div { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 6px; border: 1px solid rgba(242, 201, 104, .25); }
.stats dt { font-size: 12.5px; opacity: .85; }
.stats dd { margin: 2px 0 0; font: 700 24px/1.1 var(--sans); color: var(--warm); }
.social { background: rgba(246, 238, 219, .96); color: var(--ink); border-radius: 20px; padding: 14px 14px 10px; margin-bottom: 18px; }
.social-q { font-weight: 700; margin: 0 0 8px; color: var(--forest); }
.social-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-btns button { font: 700 15px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 2px solid var(--forest); background: #fff; color: var(--forest); cursor: pointer; min-height: 44px; }
.social-btns button[disabled] { opacity: .5; cursor: default; }
.bubbles { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bubbles li { align-self: flex-start; max-width: 85%; background: #fff; border: 1px dashed rgba(23, 48, 31, .45); border-radius: 14px 14px 14px 4px; padding: 7px 12px; font-size: 15px; animation: pop .35s ease both; }
.bubbles li.mine { align-self: flex-end; border-style: solid; border-color: var(--gold); background: #fff6dc; border-radius: 14px 14px 4px 14px; }
.bubbles li b { color: var(--forest); margin-right: 4px; }
.bubbles li small { opacity: .6; font-size: 11px; margin-left: 4px; }
.end-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.end-actions .btn-ghost { color: #fff6dc; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
.end-links a { color: var(--warm); font-weight: 700; }
.fine { font-size: 12.5px; opacity: .7; margin: 0; }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .sim-pill { font-size: 10.5px; padding: 6px 8px; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .season-row { grid-template-columns: repeat(2, 1fr); }
  .hud { flex-direction: column; align-items: stretch; }
  .hud-right { justify-content: space-between; }
  .meter { flex: 1; width: auto; }
  .stage { height: 62vh; min-height: 360px; }
  .stats dd { font-size: 20px; }
  .legend { font-size: 11px; }
}
.cast-btn[hidden] { display: none; }
[tabindex="-1"]:focus { outline: none; }
.cast-btn.now { background: linear-gradient(180deg, #fffbe6, #ffd75e); box-shadow: 0 6px 0 #8f6a17, 0 0 50px 10px rgba(255, 230, 140, .85); }
