/* RAADMAR 13.36.40 — illustrated party-game skin, presentation only.
   Artwork is decorative and never increases the document height. */
html:has(body.playful-page){background:#3f1137}
body.playful-page,body.playful-page.experience-page[data-theme]{
  --rm-plum:#482445;--rm-honey:#f8c766;--rm-edge:#e8d3bc;
  --text:#402740;--ink:#402740;--muted:#705c69;--accent:#63305f;
  --accent-2:#52274f;--accent-bg:#f3e3ed;--experience-soft:#f7e9ee;
  --card:#fff6e8;--bg:#461039;--line:#e5cfc6;
  color:var(--text);color-scheme:light;
  background:#461039;
}
body.playful-page{min-height:100vh;isolation:isolate}
body.playful-page:before{content:'';position:fixed;z-index:-1;pointer-events:none;top:0;left:50%;transform:translateX(-50%);width:min(100%,680px);height:100vh;height:calc(100dvh - env(safe-area-inset-bottom,0px));background:url('art/raadmar-speelavond.webp') center / 100% 100% no-repeat}
/* The top and bottom characters use existing margins, not new banners. */
body.playful-page .brand.brand-logo-header .brand-role,
body.playful-page .experience-tools{color:#f4dfef;text-shadow:0 1px 2px #311027}
body.playful-page .experience-tools button,
body.playful-page .host-home-button{background:#fff3df;color:#4c284b;border-color:#dab5cf}
body.playful-page.focus-game-screen .game-toolbar{background:transparent;backdrop-filter:none;border-radius:0 0 14px 14px}
body.playful-page.focus-game-screen.rm-scrolled .game-toolbar{background:#461039}
body.playful-page.focus-game-screen .experience-tools{margin-right:80px}
body.playful-page .card{background:#fff6e8;border-color:#edcfaf;border-radius:21px;box-shadow:0 5px 0 #250d2938,0 10px 26px #250d2920}
body.playful-page .card h1,body.playful-page .card h2{color:#482445}
body.playful-page .card h2{letter-spacing:-.4px}
body.playful-page .btn.primary,
body.playful-page .submit,
body.playful-page .success-actions .primary-link,
body.playful-page .public-my-games .primary-link,
body.playful-page .menu-intro .btn.primary,
body.playful-page #create-game-form>.btn.primary,
body.playful-page #pwa-install-card .pwa-setup-actions .btn.primary{background:#f8c766;color:#41233f;box-shadow:0 3px 0 #c7924155;border-radius:14px}
body.playful-page .btn.primary:hover:not(:disabled),body.playful-page .submit:hover:not(:disabled){background:#ffda8b;filter:none}
body.playful-page a.btn{display:inline-flex;align-items:center;justify-content:center;max-width:100%;white-space:normal}
body.playful-page .btn.primary:disabled{background:#e2d5c7;color:#786579;box-shadow:none}
body.playful-page .btn.secondary{background:#f1dfe9;color:#60325e}
body.playful-page .btn.ghost{background:#fff6e8;color:#64445e;border-color:#ddc5ca}
body.playful-page .btn.danger{background:#a1384b;color:#fff}
body.playful-page input:not([type=checkbox]):not([type=radio]),body.playful-page textarea,body.playful-page select{background:#fffdf6;color:#402740;border-color:#d8b9cc}
body.playful-page button:focus-visible,body.playful-page a:focus-visible,body.playful-page summary:focus-visible{outline:3px solid #a461a1;outline-offset:3px}
body.playful-page .progress{height:6px;background:#e5cfdf;margin-bottom:10px}
body.playful-page .progress>div{background:linear-gradient(90deg,#b972aa,#f6c165)}
body.playful-page .modal-card{background:#fff6e8;border-color:#dfb5cf;border-radius:22px}
body.playful-page .modal{background:#250c2ccc}
body.playful-page .modal-card .muted,body.playful-page .modal-card .small-note{color:#705c69}
body.playful-page .toast{background:#482445;color:#fff5e6;border:1px solid #c190b5}
/* Welcome, setup, app installation and all retained menus share the same ink/paper. */
body.playful-page #screen-home .experience-hero,
body.playful-page .request-hero,
body.playful-page .menu-intro,
body.playful-page .lobby-invite-zone{background:#542046;border-color:#9e5a8c;box-shadow:none}
body.playful-page #screen-home .experience-hero h1,body.playful-page .request-hero h1,
body.playful-page .menu-intro h2{color:#fff2d9}
body.playful-page #screen-home .experience-hero p,body.playful-page .request-hero .intro{color:#f2ddeb}
body.playful-page #create-game-form,body.playful-page .game-options-body,
body.playful-page .lobby-details,body.playful-page .host-menu-section,
body.playful-page .pwa-step-card,body.playful-page .pwa-panel{background:#fff6e8}
body.playful-page .theme-tile{box-shadow:0 2px 0 #b69a8030}
body.playful-page .theme-tile[aria-pressed=true]{background:#5d2b58;border-color:#5d2b58;color:#fff4df;box-shadow:0 3px 0 #efbc60}
body.playful-page .mode-card input:checked+span{border-color:#a26096;background:#f7e5ef}
body.playful-page .player-row{background:#fffaf1;border-color:#ead7d0}
body.playful-page .waiting-icon{background:#f8dc9a;transform:rotate(-5deg)}
body.playful-page .waiting-card .waiting-progress{background:#f0dfec;color:#593054}
body.playful-page #winner-result{background:#55234b}
body.playful-page #winner-result>strong{color:#ffda8b}
body.playful-page .final-score-row{background:#fff8ed;border-color:#ead4c6}
body.playful-page .score-rank{background:#f8dda1;color:#644124}
/* Question input: retain the helper, keyboard handling and 16px editable type. */
body.playful-page #screen-questions.active{justify-content:flex-start;min-height:0}
body.playful-page #screen-questions .card{padding:17px;border-top:3px solid #f0bf60}
body.playful-page #screen-questions #question-text{font-size:clamp(22px,5.8vw,28px);line-height:1.3;margin:10px 0 13px}
body.playful-page #screen-questions label{margin:8px 0 6px}
body.playful-page #screen-questions textarea{min-height:100px;font-size:16px;line-height:1.5}
body.playful-page #screen-questions #answer-help{font-size:13px;margin:8px 0 12px}
body.playful-page #screen-questions .question-guidance{margin-bottom:9px}
/* Keep answer and save in normal document flow; never anchor to keyboard geometry. */
body.playful-page #screen-questions .answer-entry{min-width:0;scroll-margin-block:12px}
body.playful-page #screen-questions .answer-entry textarea{height:88px;min-height:88px}
body.playful-page #screen-questions .answer-entry #save-answer{position:static;display:block;margin-top:8px;min-height:48px}
body.playful-page.answering-questions:has(#question-answer:focus) .game-toolbar{position:static}
/* Every answer stays in the same all-at-once round; no new next-answer step. */
body.playful-page #screen-round>.game-card{background:transparent;border:0;box-shadow:none;padding:0}
body.playful-page #screen-round #round-instructions,
body.playful-page #screen-round #vote-note{color:#f5dfee;font-size:14px;margin:8px 0}
body.playful-page #screen-round .question-box{background:#fff2db;border:0;border-radius:18px;padding:12px 15px;margin:10px 0}
body.playful-page #screen-round .question-box p{color:#472443;font-size:18px;line-height:1.35;font-weight:750}
body.playful-page .answer-match-list{gap:12px;margin-top:12px}
body.playful-page .answer-match-row{position:relative;display:block;padding:12px;background:#542149;border:1px solid #aa6998;border-radius:18px;box-shadow:0 3px 0 #230a2929}
body.playful-page .answer-match-row .answer-letter{position:absolute;top:12px;left:12px;width:25px;height:25px;border-radius:8px;background:#f7d896;color:#523040;font-size:13px}
body.playful-page .answer-match-row .answer-text{padding-left:35px;min-height:27px;font-size:19px;line-height:1.4;color:#fff4de;margin:0 0 8px}
body.playful-page .answer-match-row .chosen-person{font-size:13px;margin:5px 0 8px;color:#f0d9eb}
body.playful-page .name-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.playful-page .name-choice,body.playful-page .prediction-names .name-choice{position:relative;min-height:46px;padding:9px 10px;font-size:16px;line-height:1.35;border-radius:12px;background:#63345e;border:1px solid #c08ab4;color:#fff5e4;overflow-wrap:anywhere}
body.playful-page .name-choice:hover:not(:disabled){background:#754570;border-color:#e9b4d8}
body.playful-page .name-choice.active,body.playful-page .prediction-names .name-choice.active{background:#f8cc77;border-color:#f8cc77;color:#42243f;box-shadow:0 2px 0 #2c123a44}
body.playful-page .name-choice.active:after{content:' ✓';font-size:13px;white-space:nowrap}
body.playful-page .name-choice:disabled{opacity:.55}
body.playful-page .name-choice.active:disabled{opacity:1}
body.playful-page .answer-match-row .certainty-answer-control small{color:#edcfdf}
body.playful-page .prediction-choice-card{background:#fff3e0;border-color:#dba9ca}
/* Existing fixed bars keep their measured space, even with enlarged text. */
body.playful-page .fixed-bottom-bar{background:#fff4e8f7;border-color:#cda2c0;box-shadow:0 -5px 20px #250c2830}
body.playful-page .game-screen{padding-bottom:0}
body.playful-page .game-screen .bottom-space{height:calc(var(--certainty-bar-space,190px) + 12px)}
/* Compact spotlight: no flip, no added pause, real name only in server step 2. */
body.playful-page .surprise-reveal .game-card{padding:0}
body.playful-page .surprise-reveal .game-card>h2,
body.playful-page .surprise-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:-1px;padding:0;white-space:nowrap}
body.playful-page .surprise-reveal .question-box{background:#fff2db;border:0;padding:12px 14px;margin:10px 0 12px}
body.playful-page .surprise-reveal .question-box>strong{display:none}
body.playful-page .surprise-reveal .question-box p{font-size:17px;font-weight:700;line-height:1.4;margin:0}
body.playful-page .surprise-reveal .all-answer-results{gap:10px;margin-top:10px}
body.playful-page .surprise-card,body.playful-page .surprise-card.is-choices,body.playful-page .surprise-card.is-truth{overflow:hidden;isolation:isolate;padding:16px 14px 18px;border:1px solid #a96598;border-radius:22px;box-shadow:0 4px 0 #230a2929;background:#542149;animation:none}
body.playful-page .surprise-card.is-truth{background:#30132c}
body.playful-page .surprise-sticker{display:none}
body.playful-page .surprise-card:before,body.playful-page .surprise-card:after{content:'';position:absolute;top:-15px;bottom:auto;width:90%;height:100%;border-radius:0;opacity:0;background:linear-gradient(180deg,#ffe1a300,#ffe1a32a);clip-path:polygon(48% 0,52% 0,100% 100%,0 100%);transform-origin:50% 0;pointer-events:none;z-index:-1}
body.playful-page .surprise-card:before{left:-25%;right:auto;transform:rotate(-19deg)}
body.playful-page .surprise-card:after{right:-25%;left:auto;transform:rotate(19deg)}
body.playful-page .surprise-card.is-truth:before{opacity:1;animation:rm-light-left .7s ease-out both}
body.playful-page .surprise-card.is-truth:after{opacity:1;animation:rm-light-right .7s ease-out both}
body.playful-page .surprise-reveal .surprise-card .surprise-answer{position:relative;font-size:clamp(20px,5.2vw,25px);line-height:1.35;background:transparent;color:#fff1d8;text-align:center;padding:0;border:0;border-radius:0;margin:0 0 14px;overflow-wrap:anywhere}
body.playful-page .surprise-answer:after{display:none}
body.playful-page .surprise-kicker{font-size:14px;margin:0 0 3px;color:#f0d4e7}
body.playful-page .surprise-owner{display:block;font-size:clamp(40px,11vw,66px);line-height:1.12;color:#ffe0a0;letter-spacing:-1.2px;animation:rm-owner .65s .12s cubic-bezier(.2,.8,.2,1.1) both}
body.playful-page .surprise-card.is-truth .surprise-verdict{font-size:15px;line-height:1.45;margin:10px auto 0;max-width:38ch;color:#fff2dc}
body.playful-page .surprise-mine{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;background:#fff0ce;border:1px solid #e9be68;padding:9px 12px;border-radius:12px}
body.playful-page .surprise-mine>span{font-size:13px;margin:0}
body.playful-page .surprise-mine>strong{font-size:16px;line-height:1.4}
body.playful-page .surprise-mine>small{font-size:13px;line-height:1.4;margin:0}
body.playful-page .surprise-voters{padding:12px;border-radius:16px;background:#fff5e5;border-color:#ddb5cb}
body.playful-page .surprise-voters h3{font-size:16px;margin:0 0 8px}
body.playful-page .surprise-voters li{padding:10px 12px}
body.playful-page .surprise-voters .surprise-voter-sentence{font-size:15px;line-height:1.5;margin:0}
body.playful-page .surprise-voters .surprise-sentence-people{display:inline;font-size:15px;line-height:1.5;margin:0;font-weight:750}
body.playful-page .surprise-voters .surprise-sentence-people:after{content:' '}
body.playful-page .surprise-voters .surprise-voter-sentence strong{font-size:18px;line-height:1.4}
body.playful-page .surprise-voters .surprise-sentence-count{margin:3px 0 0}
body.playful-page .surprise-note,body.playful-page .surprise-reveal #reveal-wait{color:#f2d9e9}
/* Regular reveal, extras and scores remain legible on paper. */
body.playful-page .answer-result-row{background:#fff7e8;border-color:#e1c9bf}
body.playful-page .answer-result-row.correct{background:#edf5e5;border-color:#b5cba9}
body.playful-page .answer-result-row.wrong{background:#fff0e8;border-color:#dfb9bb}
/* Local, brief feedback. No loop, no blocking timeout, no extra click. */
body.playful-page .rm-choice-pop{animation:rm-choice-pop .36s ease-out both}
body.playful-page .rm-question-in{animation:rm-question-in .32s ease-out both}
body.playful-page .rm-save-flash{animation:rm-save-flash .65s ease-out both}
body.playful-page .rm-save-flash:after{content:' ✓';color:#286544;font-weight:900}
@keyframes rm-choice-pop{0%{transform:scale(.97)}55%{transform:scale(1.035)}100%{transform:scale(1)}}
@keyframes rm-question-in{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes rm-save-flash{0%{transform:scale(.98)}50%{transform:scale(1.025)}100%{transform:scale(1)}}
@keyframes rm-light-left{from{opacity:0;transform:rotate(10deg)}to{opacity:1;transform:rotate(-19deg)}}
@keyframes rm-light-right{from{opacity:0;transform:rotate(-10deg)}to{opacity:1;transform:rotate(19deg)}}
@keyframes rm-owner{0%{opacity:0;transform:translateY(12px) scale(.65) rotate(-6deg)}68%{opacity:1;transform:scale(1.07) rotate(2deg)}100%{opacity:1;transform:none}}
/* V40: controls grouped on the left, leaving the illustrated face free. */
body.playful-page.in-game-room .game-toolbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;width:calc(100% - 62px);margin:0 0 14px;padding:6px 0;min-height:56px;background:transparent;backdrop-filter:none}
body.playful-page.in-game-room .brand.brand-logo-header{flex:0 0 40px;padding:0;margin:0}
body.playful-page.in-game-room .brand.brand-logo-header .brand-logo-image{width:40px;height:40px;border-radius:10px}
body.playful-page.in-game-room .brand-role,body.playful-page.in-game-room #current-theme-badge{display:none}
body.playful-page.in-game-room .experience-tools{flex:0 0 auto;gap:0;margin:0;padding:0}
body.playful-page.in-game-room .experience-tools button,body.playful-page.in-game-room #host-home-button{position:static;flex:0 0 auto;min-height:44px;font-size:12px;line-height:1.25;padding:9px 10px;margin:0;width:auto;max-width:100%;border-radius:14px;box-shadow:0 2px 0 #250d2928}
body.playful-page.in-game-room .game-toolbar #host-home-button{white-space:normal;overflow-wrap:anywhere}
/* Centred horizontally; content stays in ordinary document flow. */
body.playful-page #screen-questions .question-stage{width:100%;max-width:520px;margin-inline:auto}
body.playful-page #screen-questions.active{min-height:0;justify-content:flex-start}
body.playful-page #screen-questions .card{padding:16px;border:1px solid #ebd2b6;border-top:3px solid #f0bf60;border-radius:22px;box-shadow:0 4px 12px #250d2926}
body.playful-page #screen-questions #question-text{font-size:clamp(21px,5.5vw,27px);line-height:1.3;margin:10px 0 14px}
body.playful-page #screen-questions .answer-entry textarea{height:76px;min-height:76px;border:1px solid #ba92b1;border-radius:14px;box-shadow:none;outline:none;resize:vertical;padding:11px 12px}
body.playful-page #screen-questions .answer-entry textarea:focus{border:2px solid #714064;padding:10px 11px;box-shadow:0 0 0 2px #71406414;outline:none}
body.playful-page #screen-questions .answer-entry label{font-size:15px;margin:6px 0}
body.playful-page #screen-questions #answer-help{font-size:12px;line-height:1.45;margin:10px 0 0}
body.playful-page #screen-questions .answer-entry #save-answer{min-height:48px;padding:12px 14px}
body.playful-page.answer-entry-focused .shell{padding-bottom:calc(18px + var(--answer-keyboard-overlap,0px) + env(safe-area-inset-bottom))}
body.playful-page.answer-entry-focused .game-toolbar{position:static}
/* Softer outlines, with clear selected states and generous tap targets. */
body.playful-page .answer-match-row{border:1px solid #b77ea25c;background:linear-gradient(135deg,#5c2a50,#4c2046);border-radius:20px;box-shadow:0 4px 10px #250d2924;padding:12px}
body.playful-page .name-choice,body.playful-page .prediction-names .name-choice{border:1px solid #d5a8c370;background:#ffffff0e;border-radius:12px;box-shadow:none}
body.playful-page .name-choice.active,body.playful-page .prediction-names .name-choice.active{border-color:#f8cc77;background:#f8cc77;color:#42243f}
body.playful-page .surprise-card,body.playful-page .surprise-card.is-choices{border-color:#bb86ab78;box-shadow:0 4px 12px #250d292b}
/* A square QR, never a tall empty white column. */
body.playful-page .lobby-card.is-planning .lobby-invite-zone{grid-template-columns:minmax(0,1fr) 112px;gap:5px 12px;padding-top:16px;padding-bottom:16px}
body.playful-page .lobby-card.is-planning .lobby-invite-zone .qr-wrap{width:112px;height:112px;aspect-ratio:1;align-self:center;justify-self:center;padding:6px;border:0;border-radius:16px;box-shadow:0 3px 10px #250d2930}
body.playful-page .lobby-card.is-planning .lobby-invite-zone .qr-wrap img{display:block;width:100%;height:100%;object-fit:contain}
body.playful-page .player-recovery-help{max-width:520px;margin:16px auto 0;color:#f4dfef;font-size:12px;line-height:1.5}
body.playful-page .player-recovery-help summary{cursor:pointer;min-height:44px;padding:12px 4px;text-align:center}
body.playful-page .player-recovery-help p{margin:6px 0 12px}
body.playful-page .player-recovery-help button{position:static;font-size:14px}
/* Very long names may scroll inside the status, never push the actions away. */
body.playful-page #waiting-votes{max-height:4.5em;overflow-y:auto;scrollbar-width:thin;overflow-wrap:anywhere}
@media(max-width:380px){body.playful-page.experience-page .shell{padding-left:12px;padding-right:12px}body.playful-page #screen-questions .card{padding:14px}body.playful-page .surprise-voters{padding:10px}}
@media(prefers-reduced-motion:reduce){body.playful-page *,body.playful-page *:before,body.playful-page *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Administration keeps its dense layout and neutral content, with matching accents. */
/* Ordinary results: one compact hierarchy, without changing surprise/extra screens. */
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .game-card{padding:14px;border-radius:20px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .game-card>.eyebrow{font-size:11px;padding:5px 8px;vertical-align:middle}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) #reveal-question-title{display:inline-block;font-size:16px;line-height:1.35;margin:5px 0 5px 8px;vertical-align:middle;overflow-wrap:anywhere}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .question-box{padding:10px 12px;margin:10px 0;background:#f7eaf0;border:0;border-radius:14px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .question-box>strong{display:none}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) #reveal-question{font-size:16px;font-weight:650;line-height:1.45;margin:0;overflow-wrap:anywhere}
body.playful-page #screen-reveal .answer-result-row{grid-template-columns:26px minmax(0,1fr);gap:9px;padding:10px 11px;border-radius:14px;border-left-width:3px;box-shadow:none}
body.playful-page #screen-reveal .answer-result-row .answer-letter{width:26px;height:26px;font-size:13px}
body.playful-page #screen-reveal .answer-result-row .answer-text{font-size:16px;line-height:1.4;margin:0 0 4px}
body.playful-page #screen-reveal .answer-result-row .answer-truth{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .all-answer-results{gap:8px;margin-top:10px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .my-round-score{margin:10px 0;padding:10px 12px;font-size:15px;line-height:1.45;border-radius:14px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .round-standings{margin-top:10px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .round-standings summary{padding:11px 12px;min-height:44px}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal){padding-bottom:calc(var(--certainty-bar-space,90px) + 16px)}
body.playful-page #screen-reveal:not(.surprise-reveal):not(.prediction-reveal):not(.certainty-reveal) .bottom-space{display:none}
/* Waiting is a short status, not a full-height poster. All controls remain present. */
body.playful-page #screen-wait .waiting-card{padding:18px 16px;max-width:520px;margin-inline:auto;border-radius:22px}
body.playful-page #screen-wait .waiting-icon{width:44px;height:44px;font-size:25px;border-radius:15px;margin:0 auto 8px}
body.playful-page #screen-wait #wait-title{font-size:24px;line-height:1.3;margin:8px 0}
body.playful-page #screen-wait #wait-message{font-size:15px;line-height:1.45;margin:6px 0}
body.playful-page #screen-wait .waiting-progress{font-size:14px;margin:8px 0;padding:8px 12px;line-height:1.4}
body.playful-page #screen-wait .waiting-stay{font-size:13px;line-height:1.45;margin:8px 0 12px}
body.playful-page #screen-wait .leave-old-game{font-size:14px;min-height:44px;padding:11px 14px;margin-top:10px}
body.playful-page #screen-wait .show-help{font-size:14px;min-height:44px;margin:6px auto 0;padding:10px}
body.playful-page:has(.admin-shell){background:#f6ede9;color:#402740}
body.playful-page:has(.admin-shell):before{display:none}
body.playful-page .admin-shell .card{box-shadow:none}
