
:root {
    --background: #0e0b13;
    --panel: #19141f;
    --border: #33253f;
    --accent: #d41448;
    --pink: #f3a3b8;
    --text: #f5f2f7;
    --muted: #aaa1b5;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 70px;
    background:
        radial-gradient(ellipse at top, #302039, transparent 65%),
        linear-gradient(160deg, #100c17, #08070b);
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

.hidden {
    display: none !important;
}

.screen {
    width: 100%;
    max-width: 500px;
    padding: 40px 36px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 25px 80px #00000055;
    animation: appear 0.4s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    text-align: center;
}

.gift-icon,
.success-icon,
.destination-icon,
.confirmation-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    border-radius: 50%;
    background: #391322;
    border: 1px solid #8e3b58;
    color: var(--pink);
    font-size: 34px;
    box-shadow: 0 0 35px #d414481a;
}

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: var(--pink);
    line-height: 1.8;
}

h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 30px 0 22px;
    letter-spacing: -0.8px;
}

h2 {
    font-size: 25px;
    line-height: 1.4;
}

h3 {
    font-size: 16px;
    line-height: 1.5;
}

p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.intro-text {
    font-size: 17px;
    color: var(--text);
}

.separator {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text);
}

input,
select {
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
    margin-bottom: 26px;
    background: #100d16;
    border: 1px solid #3b2e46;
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

input:focus,
select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px #d4144815;
}

input::placeholder {
    color: #77707e;
}

button {
    width: 100%;
    padding: 19px 12px;
    margin-top: 12px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #d41448, #aa103c);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

button:not(:disabled):active {
    transform: scale(0.98);
}

button:disabled {
    background: #302936;
    color: #77707e;
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-button {
    background: transparent;
    border: 1px solid #665070;
    color: var(--pink);
}

.error {
    color: #ff829c;
    font-size: 13px;
    line-height: 1.7;
}

.error:empty {
    display: none;
}

.step-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin: 30px 0 18px;
}

.progress-track {
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: var(--border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #d41448, #f3a3b8);
}

.birth-date {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.1fr;
    gap: 8px;
}

.birth-date select {
    padding: 15px 7px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 25px 0;
    line-height: 1.7;
    cursor: pointer;
}

.check-row input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.condition-card {
    padding: 22px;
    background: #201827;
    border: 1px solid #3b2b48;
    border-radius: 18px;
    margin-bottom: 20px;
}

.condition-card:has(input:checked) {
    border-color: #9c3d60;
}

.condition-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.condition-card .check-row {
    margin: 18px 0 5px;
}

.counter {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 20px 0;
}

.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 11px;
    line-height: 1.8;
    color: #91879d;
}

dialog {
    width: calc(100% - 32px);
    max-width: 580px;
    max-height: 85dvh;
    overflow: auto;
    padding: 30px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid #49334f;
    border-radius: 24px;
    box-shadow: 0 20px 80px #00000088;
}

dialog::backdrop {
    background: #000000bb;
    backdrop-filter: blur(7px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.close-button {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: #33253f;
}

.small-text {
    font-size: 12px;
}

.countdown-heading {
    text-align: center;
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--muted);
    margin: 30px 0 22px;
    line-height: 1.6;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.time-box {
    min-width: 0;
    background: #251b2e;
    border: 1px solid #49334f;
    border-radius: 14px;
    padding: 22px 5px;
    text-align: center;
}

.time-box strong {
    display: block;
    font-size: 32px;
    font-variant-numeric: tabular-nums;
    color: var(--pink);
    margin-bottom: 10px;
}

.time-box span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.waiting-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #201827;
    border: 1px solid #3b2b48;
    border-radius: 16px;
    padding: 22px;
    margin-top: 24px;
}

.waiting-box strong {
    font-size: 14px;
    line-height: 1.5;
}

.waiting-box p {
    margin: 8px 0 0;
    font-size: 12px;
}

.waiting-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 15px var(--pink);
    animation: waitingPulse 2s infinite;
}

@keyframes waitingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.gps-card {
    background: #251b2e;
    border: 1px solid #49334f;
    border-radius: 20px;
    padding: 26px 20px;
    text-align: center;
    margin: 30px 0;
}

.gps-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.gps-value {
    font-size: 27px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    color: var(--pink);
    margin-bottom: 12px;
}

.gps-card button {
    font-size: 13px;
    padding: 15px;
}

.arrival-instruction {
    text-align: center;
    margin: 30px 0 15px;
}

#arriveButton:disabled {
    border: 1px solid #403747;
}

.confirmation-icon {
    width: 65px;
    height: 65px;
    margin: 10px auto 25px;
}

.confirmation-title,
.confirmation-text,
.confirmation-note {
    text-align: center;
}

.confirmation-note {
    font-size: 12px;
}

#arrivalModal {
    max-width: 430px;
}

.connection-message {
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    padding: 12px;
    text-align: center;
    background: #391322;
    color: var(--pink);
    border: 1px solid #8e3b58;
    border-radius: 12px;
    font-size: 12px;
    z-index: 20;
}


/* ADMINISTRACE */

.admin-panel {
    max-width: 700px;
}

.admin-card {
    background: #201827;
    border: 1px solid #3b2b48;
    border-radius: 18px;
    padding: 24px;
    margin: 22px 0;
}

.admin-card h3 {
    margin: 0 0 24px;
    font-size: 18px;
}

.admin-card p {
    margin-bottom: 10px;
}

.admin-card input {
    margin-bottom: 18px;
}

.status-value {
    color: var(--pink);
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.green-button {
    background: #18764d;
}

.danger-button {
    background: #842437;
}

#adminMessage {
    position: sticky;
    bottom: 10px;
    background: #302039;
    border: 1px solid #665070;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    color: var(--pink);
    font-size: 13px;
    line-height: 1.6;
}

#adminMessage:empty {
    display: none;
}

@media (max-width: 480px) {

    body {
        padding: 24px 16px 70px;
    }

    .screen {
        padding: 32px 24px;
    }

    h1 {
        font-size: 29px;
    }

    .gift-icon {
        width: 65px;
        height: 65px;
    }

    .condition-card,
    .admin-card {
        padding: 18px;
    }

    dialog {
        padding: 24px;
    }

    .countdown {
        gap: 6px;
    }

    .time-box {
        padding: 18px 3px;
        border-radius: 12px;
    }

    .time-box strong {
        font-size: 25px;
    }

    .time-box span {
        font-size: 8px;
        letter-spacing: 0;
    }

    .waiting-box {
        padding: 18px;
    }

    .gps-value {
        font-size: 23px;
    }

    .gps-card {
        padding: 22px 15px;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}

/* Devátá etapa: skenování a zobrazení hesla */
.password-wrap{position:relative}.password-wrap input{padding-right:60px}.password-eye{position:absolute;right:7px;top:7px;width:44px;height:44px;padding:0;margin:0;background:transparent;color:var(--pink);display:grid;place-items:center}.password-eye.revealed::after{content:"";position:absolute;width:25px;height:2px;background:currentColor;transform:rotate(-45deg)}
.scan-frame{position:relative;overflow:hidden;border-radius:12px;margin-top:12px}.scan-frame #missionPreview{display:block;margin:0!important}.scan-overlay{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 23px,#f3a3b822 24px),repeating-linear-gradient(90deg,transparent 0 23px,#f3a3b822 24px);overflow:hidden}.scan-line{position:absolute;left:0;right:0;height:3px;background:#ff8baa;box-shadow:0 0 18px 5px #d41448;animation:missionScan 1.8s ease-in-out infinite alternate}.scan-corners{position:absolute;inset:12px;border:2px solid #f3a3b8;border-radius:8px;opacity:.65}.scan-info{position:absolute;bottom:0;left:0;right:0;padding:12px;background:#100d16dd;font-size:12px;color:var(--pink)}.scan-info strong{float:right}.scan-track{height:5px;background:#33253f;border-radius:8px;margin-top:10px;overflow:hidden}.scan-track div{height:100%;width:0;background:var(--pink);transition:width .1s linear}@keyframes missionScan{from{top:3%}to{top:90%}}@media(prefers-reduced-motion:reduce){.scan-line{animation:none;top:50%}}

.extra-photo{width:100%;border-radius:16px;margin:12px 0 24px}.selected-answer{background:#76203d!important;border-color:#f3a3b8!important}.urgent{color:#ff4568;animation:quizblink .6s infinite alternate}@keyframes quizblink{to{opacity:.35}}.eval-spinner{width:64px;height:64px;border:5px solid #49334f;border-top-color:#f3a3b8;border-radius:50%;margin:30px auto;animation:evalspin 1s linear infinite}@keyframes evalspin{to{transform:rotate(360deg)}}#dateHistory{white-space:pre-line;font-size:12px}#preCountdown{font-size:23px} @media(prefers-reduced-motion:reduce){.urgent,.eval-spinner{animation:none}}

/* Přehledná předregistrace a kvíz – pouze hráčské obrazovky */
.polished-screen h1{margin:20px 0 16px}.polished-screen h2{font-size:23px;margin:0 0 12px}.prep-info{border:1px solid #49334f;border-radius:18px;padding:20px;background:#201827}.prep-info h3{margin:0 0 12px}.prep-row{display:flex;align-items:center;gap:14px;padding:13px 0;font-size:15px;line-height:1.55}.prep-row+.prep-row{border-top:1px solid #49334f}.prep-row svg,.prize-icon svg,.quiz-duration svg{width:26px;height:26px;flex-shrink:0;color:var(--pink)}#preDay{display:block;width:100%;min-height:58px;margin-bottom:8px;appearance:auto;-webkit-appearance:auto}#preDay::-webkit-date-and-time-value{text-align:left}.prize-list{display:grid;gap:10px;margin:24px 0}.prize-row{display:flex;align-items:center;gap:15px;text-align:left;background:#251b2e;border:1px solid #49334f;border-radius:16px;padding:14px}.prize-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:#39283f;border-radius:12px}.prize-row strong,.prize-row span{display:block}.prize-row span{font-size:13px;color:var(--muted);margin-top:5px}.quiz-duration{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;margin:20px 0}.quiz-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.quiz-clock{text-align:center;background:#251b2e;border:1px solid #49334f;border-radius:15px;padding:10px 14px}.quiz-clock strong{display:block;font-size:32px;font-variant-numeric:tabular-nums;color:var(--pink)}.quiz-clock strong.urgent{color:#ff4568}.quiz-clock span{font-size:9px;color:var(--muted);letter-spacing:1px}#quizQuestion{font-size:23px;margin:28px 0 20px;overflow-wrap:anywhere}#quizOptions{display:grid;gap:12px;margin-bottom:16px}#quizOptions button{display:flex;align-items:center;text-align:left;gap:12px;margin:0;padding:14px;font-size:16px;line-height:1.45;min-height:62px;color:var(--text);background:#251b2e;border:1px solid #49334f}#quizOptions button span:last-child{min-width:0;overflow-wrap:anywhere}.answer-letter{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:#39283f;color:var(--pink)}#quizOptions .selected-answer .answer-letter{background:var(--pink);color:#391322}@media(max-width:480px){.prep-info{padding:16px}.prize-row{padding:12px}.polished-screen h2,#quizQuestion{font-size:21px}}

/* Etapa 11 */
#forestGps{font-size:clamp(16px,4vw,23px);overflow-wrap:anywhere} #forestScanPhoto{display:block;width:100%;margin:0} #forestScanText{margin-top:20px} #forestAdminPhoto,#forestPreview{width:100%;border-radius:14px} #forestSuccess .success-icon{background:#173b2c;border-color:#438a64;color:#77dba4}

.wheel-wrap{position:relative;margin:25px auto;max-width:340px;padding:12px}.wheel-wrap svg{width:100%;display:block;filter:drop-shadow(0 0 14px #c79a4944)}.wheel-pointer{position:absolute;z-index:2;top:0;left:50%;transform:translateX(-50%);border-left:15px solid transparent;border-right:15px solid transparent;border-top:36px solid #ffe4a6}#wheelLegend .condition-card{padding:14px;margin-bottom:8px}#finalMap{background:#251b2e}#finalMap a{color:#222}#finalMap .leaflet-control-attribution{font-size:10px}#wheelResult{color:#f6d69a;font-weight:bold}

/* 2026 / editorial game redesign — one visual language, no external fonts */
:root{--background:#111018;--panel:#1b1924;--border:#393342;--accent:#a82e53;--pink:#edb3c4;--text:#f7f2ef;--muted:#b9b1bf;--gold:#c7ac82}
body{background:radial-gradient(ellipse at 50% -10%,#3b293e 0%,transparent 55%),linear-gradient(145deg,#15121d,#0c0b11);font-variant-numeric:tabular-nums;}
.player-body .screen{position:relative;background:linear-gradient(155deg,#25212e,#171520 75%);border:1px solid #494052;border-radius:26px;box-shadow:0 20px 70px #0007;max-width:510px;overflow-wrap:anywhere;}
.player-body .screen:before{content:"";position:absolute;top:0;left:22%;right:22%;height:1px;background:linear-gradient(90deg,transparent,#c7ac8299,transparent);pointer-events:none;}
.player-body h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.7px;font-size:clamp(29px,7vw,39px);line-height:1.13;color:#f8f2e9;}
.player-body h2{font-weight:550;letter-spacing:-.5px}.player-body p{font-size:15px;line-height:1.75}.badge{color:#d8b98d;letter-spacing:2px;line-height:1.6}.player-body button:not(.password-eye){min-height:51px;letter-spacing:.15px;background:linear-gradient(140deg,#a63156,#7c2346);border:1px solid #ce688080;box-shadow:0 4px 12px #100b1550;transition:transform .15s,filter .15s,background .2s}.player-body button:not(:disabled):active{transform:scale(.985)}.player-body button.secondary-button{background:#24212e;border:1px solid #625268;color:#eed5dd}.player-body button:disabled{background:#302d37;color:#8e8796;border-color:#494250;box-shadow:none}.player-body input,.player-body select{background:#15131d;border-color:#4a4052;min-height:53px}.player-body .condition-card,.player-body .gps-card,.player-body .prep-info,.player-body .prize-row{background:linear-gradient(130deg,#2c2634,#231f2b);border-color:#504254}.gps-value{font-size:clamp(17px,5vw,25px);overflow-wrap:anywhere}.stage-art,.drawn-icon{color:#e6c79e;width:114px;height:114px;display:grid;place-items:center;margin:20px auto;background:transparent;border:0;box-shadow:none}.stage-art svg,.drawn-icon svg{width:100%;height:100%}.stage-art{filter:drop-shadow(0 6px 15px #c7ac8220)}.rest-clock{border:1px solid #5b4b55;background:#17151e;border-radius:18px;padding:24px 12px;margin:26px 0}.rest-clock strong{display:block;color:#ecd1aa;font-size:clamp(30px,8vw,42px);letter-spacing:2px}.rest-clock small{display:block;margin-top:8px;color:var(--muted)}.scan-progress{position:relative;border:1px solid #4f846a;background:#132b24;padding:20px 14px;overflow:hidden;border-radius:14px}.scan-progress p{color:#99e6bb}.scan-beam{position:absolute;height:2px;left:0;right:0;background:#91ffb3;box-shadow:0 0 18px #65f8a0;animation:missionScan 1.5s infinite alternate}.scan-progress .progress-fill{background:#7bd9a3}.nav-summary{display:flex;align-items:center;text-align:left;gap:12px;padding:14px;background:#282332;border-radius:12px;margin:10px 0}.nav-summary span{font-size:32px;color:#edb3c4;display:inline-block}.nav-toggle{display:flex;align-items:center;gap:9px;text-align:left}.nav-toggle input{width:22px;height:22px;min-height:0;margin:0}.waveform{height:60px;display:flex;align-items:center;justify-content:center;gap:4px;margin:15px 0}.waveform i{height:var(--h);width:3px;background:#c9a981;border-radius:3px;opacity:.7}.waveform.playing i{animation:wave .55s infinite alternate ease-in-out}@keyframes wave{to{transform:scaleY(.35)}}.answer-screen{display:grid;gap:15px;align-content:center;min-height:70dvh}.answer-screen button{font-size:26px!important;min-height:95px!important;letter-spacing:4px!important}.media-view{background:#0b0b10;border-radius:12px;padding:8px}.media-view img,.media-view video{width:100%;max-height:65dvh;object-fit:contain;display:block}.media-controls{display:flex;gap:5px;flex-wrap:wrap}.media-controls button{flex:1;min-width:85px;font-size:11px!important}.media-view:fullscreen,.media-view.photo-fullscreen{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;justify-content:center;background:#050508;border-radius:0;padding:env(safe-area-inset-top) 10px env(safe-area-inset-bottom);}.media-view:fullscreen img,.media-view.photo-fullscreen img,.media-view:fullscreen video,.media-view.photo-fullscreen video{max-height:80dvh;flex:1;min-height:0}.slide-enter{animation:slide-enter .8s ease-out}@keyframes slide-enter{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
/* Admin desktop sidebar + compact mobile tab strip */
.admin-body{display:block;padding:24px;background:#101018;color:#f6f1f5}.admin-body #adminLogin{margin:8vh auto}.admin-body #dashboard{margin:0 auto;width:100%;max-width:1360px;padding:24px;border:0;border-radius:0;background:transparent;box-shadow:none}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 22px;border-bottom:1px solid #383342;margin-bottom:22px}.admin-top h1{font-size:26px;margin:7px 0 0;letter-spacing:-.7px}.admin-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#b9a2c6}.admin-top-right{display:flex;align-items:flex-end;flex-direction:column;gap:7px;font-size:12px}#modeLabel{font-size:10px;letter-spacing:1.4px;font-weight:800;border:1px solid #9a516e;color:#edb3c4;padding:8px 11px;border-radius:8px}.test-mode #modeLabel{color:#8edbcf;border-color:#458f86;background:#183731}.test-mode .admin-top{border-color:#458f86}#serverHealth{color:#96c5a9}.admin-shell{display:grid;grid-template-columns:205px minmax(0,1fr);gap:24px;align-items:start}.admin-nav{position:sticky;top:16px;display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #383342;background:#181721;border-radius:16px}.admin-nav-button{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;text-align:left;display:flex;align-items:center;gap:11px;margin:0!important;padding:12px!important;font-weight:500;color:#bdb5c4;border-radius:10px;font-size:13px}.admin-nav-button span{width:20px;text-align:center;color:#e5b3c7;font-size:18px}.admin-nav-button.active{background:#372b40!important;border-color:#5f4560!important;color:#fff}.admin-nav a,#testPlayerLink{display:block;padding:13px;color:#e7bfce;font-size:13px;text-decoration:none}.admin-main{min-width:0}.admin-section-head h2{font-size:26px;margin:6px 0 18px}.admin-tab[hidden]{display:none!important}.admin-tab{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.admin-tab .admin-card{margin:0;padding:20px;background:#1d1b27;border:1px solid #383342;border-radius:16px;min-width:0;overflow-wrap:anywhere}.admin-tab .admin-card h3{margin:0 0 15px;color:#f3e8ee;font-size:16px}.admin-tab .admin-card p{margin-bottom:12px;font-size:13px;line-height:1.55}.admin-tab input,.admin-tab select{margin-bottom:14px;padding:12px;min-height:43px;background:#14131c;border-color:#413b4c}.admin-tab label{margin-bottom:6px;font-size:12px}.admin-tab button{padding:12px 10px;margin-top:8px;border-radius:10px;font-size:13px;min-height:42px}.admin-tab .condition-card{padding:12px;margin:10px 0}.overview-metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metric{border:1px solid #41394b;border-radius:16px;background:linear-gradient(140deg,#282332,#1b1924);padding:18px;display:grid;gap:9px}.metric small{font-size:11px;color:#bdb4c5}.metric strong{font-size:clamp(20px,3vw,32px);line-height:1.1;color:#f2d8be}.metric span{font-size:12px;color:#bbb1c1}.timeline-item{padding:9px 10px;border-left:2px solid #37313f;font-size:12px;color:#a49baa}.timeline-item.done{border-color:#50755e;color:#8ebca0}.timeline-item.current{background:#39283c;color:#f5d2df;border-left-color:#e4a0b7;font-weight:700}.admin-actions{display:flex;gap:8px}.admin-actions button{flex:1}.admin-body #adminMessage{position:fixed;bottom:15px;right:15px;max-width:min(440px,90vw);z-index:11000;border:1px solid #70586e;padding:14px 18px;background:#30243a;border-radius:12px;color:#fff;box-shadow:0 10px 25px #0008}.admin-body #adminMessage:empty{display:none}.admin-body .status-value{overflow-wrap:anywhere}.admin-body .footer{text-align:center;margin-top:25px}#tab-quiz,#tab-media{grid-template-columns:1fr}#quizEditor{display:grid;grid-template-columns:1fr 1fr;gap:12px}#mediaList .condition-card{margin-top:15px}
@media(max-width:850px){.admin-body{padding:12px}.admin-body #dashboard{padding:6px}.admin-shell{grid-template-columns:minmax(0,1fr);gap:15px}.admin-nav{position:sticky;top:0;z-index:50;flex-direction:row;overflow-x:auto;border-radius:12px;padding:6px;gap:4px;box-shadow:0 8px 20px #0006}.admin-nav-button{white-space:nowrap;flex:0 0 auto;width:auto!important;padding:10px!important}.admin-nav a{white-space:nowrap;flex:0 0 auto}.admin-tab{grid-template-columns:minmax(0,1fr)}.overview-metrics{grid-template-columns:1fr 1fr}.metric:last-child{grid-column:1/-1}.admin-top{gap:8px}.admin-top h1{font-size:20px}.admin-top-right{font-size:10px}#quizEditor{grid-template-columns:1fr}.admin-tab .admin-card{padding:16px}.admin-body input,.admin-body select{font-size:16px}.player-body{padding:20px 14px max(35px,env(safe-area-inset-bottom))}.player-body .screen{padding:29px 23px}.player-body .media-view.photo-fullscreen{padding:10px}.player-body .media-view.photo-fullscreen button{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;}}

.player-body input[type=checkbox]{min-height:0;width:22px;height:22px;flex-shrink:0}.player-body input[type=radio]{min-height:0}.bonus-photo-wrap{position:relative;overflow:hidden;border-radius:16px}.bonus-photo-wrap img{display:block}.bonus-photo-wrap .scan-progress{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 24px,#83e4aa22 25px),repeating-linear-gradient(0deg,transparent 0 24px,#83e4aa22 25px);padding:0;border:1px solid #6bd696}.scan-hud{position:absolute;bottom:0;left:0;right:0;padding:12px;background:#10291fe6}.scan-hud p{margin:0 0 6px;font-size:12px}.player-body .leaflet-control-zoom a{color:#222}.player-body .leaflet-container a{color:#222}.admin-body .admin-tab[hidden]{display:none!important}.admin-body .admin-top-right{white-space:nowrap}.player-body input[type=file]{font-size:13px}.player-body .photo-fullscreen{position:fixed;inset:0}.player-body .screen:has(.photo-fullscreen){animation:none;transform:none}.player-body #finalAudio{margin:10px 0}.admin-body #tab-overview>.admin-card:nth-child(3){grid-row:span 2}.player-body .answer-screen{padding:30px!important}.player-body .answer-screen button{width:100%;}.player-body #navSound{margin:0}.player-body .nav-summary{margin-top:12px}

/* Final layout refinements */
.entry-art{margin:18px auto 4px;width:126px;height:126px}.entry-art+h1{margin-top:10px}.compact-art{width:88px;height:88px;margin:12px auto}.compact-art+h1{margin-top:12px}.player-body #preEmailScreen{text-align:center}.player-body #preEmailScreen input{text-align:left}.player-body #preEmailScreen p{max-width:290px;margin-left:auto;margin-right:auto}.test-ribbon{position:fixed;top:8px;left:8px;z-index:9999;pointer-events:none;border:1px solid #477f77;background:#14332f;color:#a6e2d7;border-radius:8px;font-size:10px;letter-spacing:1px;padding:7px 10px}.admin-body #tab-overview>.admin-card:nth-child(3){grid-row:span 2}.admin-body #stageTimeline{position:relative;max-height:320px;overflow:auto;scrollbar-color:#66516a transparent}.admin-body #tab-overview>.admin-card:nth-child(4){grid-column:1;grid-row:3}.admin-body #tab-overview>.admin-card:nth-child(2){grid-column:1;grid-row:2}.admin-body #tab-overview>.admin-card:nth-child(3){grid-column:2;grid-row:2/span 2}.test-player #quizOptions button span:last-child{transition:filter .2s}.test-player #quizScreen:has(#quizNumber[data-private="true"]) #quizOptions button span:last-child{filter:blur(4px)}@media(max-width:850px){.admin-body #tab-overview>.admin-card:nth-child(n){grid-column:1;grid-row:auto}.admin-body #stageTimeline{max-height:240px}.entry-art{width:108px;height:108px}.player-body #preEmailScreen{padding-top:25px}}

.masked-test-item{filter:blur(3px);user-select:none;pointer-events:none}

.access-list{display:grid;gap:12px;margin:16px 0}.access-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,1fr) auto;gap:10px;align-items:center;padding:14px;border:1px solid var(--border,#43354b);border-radius:14px}.access-item strong{overflow-wrap:anywhere}.access-item select,.access-item button{margin:0}.access-editor{padding-top:16px}.access-role{border:1px solid var(--border,#43354b);border-radius:12px;margin:12px 0;padding:12px;display:flex;flex-wrap:wrap;gap:16px}.access-role label{display:flex;align-items:center;gap:8px;margin:0}.access-role input{width:auto;margin:0;accent-color:#c46b8e}.access-role legend{padding:0 6px}@media(max-width:600px){.access-item{grid-template-columns:1fr 1fr}.access-item strong{grid-column:1/-1}}

/* Chapter system — restrained expedition editorial, local assets only. */
:root {--background:#14151b;--panel:#202127;--border:#383941;--accent:#964361;--pink:#e6b2c0;--text:#f4efe7;--muted:#bcbac0;--gold:#c7ae83;--scene:#c7ae83;--scene-rgb:199,174,131;}
.player-body {background:radial-gradient(ellipse at 50% 0%,rgba(var(--scene-rgb),.105),transparent 58%),linear-gradient(145deg,#191920,#101116 72%);padding:clamp(16px,4vw,36px) 16px max(34px,env(safe-area-inset-bottom));transition:background .55s ease;}
.player-body[data-scene="forest"],.player-body[data-scene="castle"]{--scene:#a9c1a8;--scene-rgb:126,166,141;}
.player-body[data-scene="car"],.player-body[data-scene="compass"]{--scene:#a9c3d7;--scene-rgb:126,160,185;}
.player-body[data-scene="list"],.player-body[data-scene="microphone"]{--scene:#e0a9be;--scene-rgb:174,105,143;}
.player-body[data-scene="coffee"],.player-body[data-scene="house"]{--scene:#ddbb96;--scene-rgb:190,145,98;}
.player-body[data-scene="audio"],.player-body[data-scene="finish"]{--scene:#e8c1c8;--scene-rgb:187,125,146;}
.player-body[data-scene="lock"],.player-body[data-scene="phone"]{--scene:#e3a8a0;--scene-rgb:180,95,89;}
.player-body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:repeating-linear-gradient(90deg,transparent 0 79px,#ffffff03 80px),repeating-linear-gradient(0deg,transparent 0 79px,#ffffff03 80px);mask-image:linear-gradient(#000,transparent 80%);}
.player-body .screen{background:linear-gradient(150deg,#24242c 0%,#1b1c23 75%);border:1px solid #44434b;border-radius:22px;max-width:500px;padding:34px 32px;box-shadow:0 24px 70px #0006;animation:chapter-enter .48s cubic-bezier(.2,.8,.2,1) both;}
.player-body .screen:before{left:28px;right:28px;top:0;background:linear-gradient(90deg,transparent,var(--scene),transparent);opacity:.65;}
.player-body .badge{color:var(--scene);font-size:10px;font-weight:650;letter-spacing:1.75px;display:inline-block;line-height:1.5;}
.player-body h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(29px,7vw,38px);font-weight:400;line-height:1.13;letter-spacing:-.75px;margin:17px 0 16px;}
.player-body h2{font-size:clamp(21px,5vw,25px);font-weight:560;letter-spacing:-.45px;line-height:1.35;}
.player-body p{color:#c3bfc4;font-size:15px;line-height:1.7;margin-bottom:20px;}
.chapter-scene{position:relative;display:grid;place-items:center;overflow:hidden;height:150px;margin:18px 0 6px;border-radius:14px;color:var(--scene);background:radial-gradient(ellipse at 50% 80%,rgba(var(--scene-rgb),.11),transparent 75%),linear-gradient(150deg,#1d1e25,#20212a);border:1px solid rgba(var(--scene-rgb),.14);}
.chapter-scene::before,.chapter-scene::after{content:"";position:absolute;inset:10px;border:1px solid rgba(var(--scene-rgb),.09);border-radius:8px;pointer-events:none;}
.chapter-scene::after{inset:auto 16px 9px;width:28px;height:2px;border:0;background:var(--scene);opacity:.5;}
.chapter-scene svg{width:min(100%,240px);height:140px;filter:drop-shadow(0 3px 14px rgba(var(--scene-rgb),.08));animation:art-enter .75s .06s ease-out both;}
.art-orbit{transform-origin:120px 73px;animation:orbit-sway 12s ease-in-out infinite alternate;}
#preEmailScreen .chapter-scene{height:184px;margin-top:22px;}#preEmailScreen .chapter-scene svg{width:260px;height:164px;}
#preEmailScreen .entry-label{text-align:left;margin-top:24px;}#preEmailScreen h1{margin-top:22px;}
.player-body .screen button:not(.password-eye){border-radius:10px;background:linear-gradient(150deg,#a14b68,#78354f);border:1px solid #b76b84;box-shadow:0 3px 0 #3b202f,0 6px 16px #0003;min-height:50px;padding:14px 15px;letter-spacing:.1px;font-weight:650;transition:background .18s,transform .15s,box-shadow .15s;}
.player-body .screen button.secondary-button:not(:disabled){background:#23242c;border-color:#494952;color:#e5dbe0;box-shadow:none;}
.player-body .screen button:disabled:not(.password-eye){background:#292a31;border-color:#3c3d46;color:#8e8d96;box-shadow:none;}
.player-body button:not(:disabled):active{transform:translateY(2px);box-shadow:none;}
.player-body input:not([type=checkbox]):not([type=radio]),.player-body select{background:#15161d;border-color:#484951;border-radius:10px;padding:15px 14px;margin-bottom:18px;}
.player-body input:focus,.player-body select:focus{border-color:var(--scene);box-shadow:0 0 0 3px rgba(var(--scene-rgb),.13);}
.player-body :is(.condition-card,.prep-info,.gps-card,.waiting-box,.quiz-intro-card){background:#1b1c24;border-color:#3e404a;border-radius:12px;box-shadow:none;}
.player-body .condition-card:has(input:checked){border-color:var(--scene);}
.player-body .gps-card{position:relative;margin:22px 0;padding:24px 16px;background:linear-gradient(135deg,#242832,#1a1b22);border:1px solid rgba(var(--scene-rgb),.3);}
.player-body .gps-value{color:var(--scene);font-weight:600;letter-spacing:-.3px;}
.player-body .time-box{border-radius:10px;background:#15161c;border-color:#3c3e48;position:relative;overflow:hidden;padding:18px 3px;}
.player-body .time-box::after{content:"";height:1px;background:rgba(var(--scene-rgb),.16);position:absolute;left:8px;right:8px;top:50%;}
.player-body .time-box strong{color:var(--scene);font-size:clamp(23px,6vw,33px);font-weight:560;letter-spacing:-1px;}
.player-body .progress-fill{background:linear-gradient(90deg,#95677c,var(--scene));transition:width .35s ease;}
.player-body #quizOptions button{background:#23242c;border-color:#494952;color:#f5eee7;box-shadow:none;text-align:left;}
.player-body #quizOptions button.selected-answer{background:#63364b!important;border-color:#d6a4b9!important;box-shadow:inset 3px 0 #e5b3c5!important;}
.player-body #quizTimer:not(.urgent){color:var(--scene);}
.wheel-wrap{padding:10px;background:radial-gradient(circle,#40342a55,transparent 70%);}
.wheel-wrap svg{filter:drop-shadow(0 10px 24px #0008);}
.wheel-pointer{filter:drop-shadow(0 2px 3px #0009);border-top-color:#e4c793;}
#wheelLegend .condition-card{display:flex;align-items:flex-start;gap:12px;margin:8px 0;padding:14px;}
.wheel-legend-mark{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:1px;color:var(--scene);flex-shrink:0;border:1px solid #534939;border-radius:6px;padding:7px;}
#wheelLegend strong{font-weight:600;font-size:14px;color:#f2ede5;display:block;margin:0 0 4px;}
#wheelLegend p{font-size:13px;margin:0;line-height:1.5;}
#bonusTaskList .condition-card{animation:task-enter .35s ease both;}#bonusTaskList .condition-card:nth-child(2){animation-delay:.06s;}#bonusTaskList .condition-card:nth-child(3){animation-delay:.12s;}
.player-body .scan-overlay,.bonus-photo-wrap .scan-progress{background:repeating-linear-gradient(0deg,transparent 0 23px,#6fe9b914 24px),repeating-linear-gradient(90deg,transparent 0 23px,#6fe9b914 24px),#0820196b;border:1px solid #79d8ad;}
.player-body .scan-line{background:linear-gradient(90deg,transparent,#82e7b6,transparent);box-shadow:0 0 18px #76e4aa;}
.player-body .scan-overlay strong,.bonus-photo-wrap .scan-progress strong{color:#b0f3cb;}
.player-body #answerScreen{background:transparent;border:none;box-shadow:none;max-width:500px;padding:0 10px;}
.player-body #answerScreen:before{display:none;}
.player-body #answerScreen button{min-height:88px;font-family:Georgia,serif;font-size:27px;font-weight:400;letter-spacing:3px;}
.player-body #mediaScreen{max-width:800px;}
@keyframes chapter-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes art-enter{from{opacity:.15;transform:translateY(5px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes orbit-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes task-enter{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
/* Admin — a quiet, high-density control panel, separate from player style. */
.admin-body{--panel:#20232b;--border:#363a45;--text:#f1f0eb;--muted:#b0b3bd;--pink:#d8b0be;background:#14161c;padding:22px;color:var(--text);}
.admin-body #dashboard{max-width:1440px;padding:14px;}
.admin-body .admin-top{border-bottom:1px solid #363943;padding-bottom:22px;margin-bottom:22px;}
.admin-body .admin-top h1{font-family:inherit;font-size:clamp(23px,3vw,32px);font-weight:620;letter-spacing:-.9px;}
.admin-body .admin-eyebrow{font-size:10px;color:#c7ae83;letter-spacing:1.4px;}
.admin-body .admin-shell{grid-template-columns:230px minmax(0,1fr);gap:22px;}
.admin-body .admin-nav{background:#1c1e26;border:1px solid #343741;border-radius:12px;padding:10px;}
.admin-body .admin-nav-button{padding:12px 10px;border-radius:7px;border:1px solid transparent;letter-spacing:0;font-size:14px;font-weight:550;}
.admin-body .admin-nav-button span{display:grid;place-items:center;width:22px;color:#afb2bd;}
.admin-body .admin-nav-button.active{background:#34303e;border-color:#594457;color:#f0d7e0;}
.admin-body .admin-nav-button.active span{color:#e6b2c0;}
.admin-body .admin-card,.admin-body .metric{background:#20232b;border:1px solid #383b45;border-radius:12px;box-shadow:none;}
.admin-body .admin-card{padding:22px;margin:0 0 16px;}
.admin-body .admin-card h3{margin:0 0 15px;font-size:16px;font-weight:650;letter-spacing:-.15px;color:#eee9e4;}
.admin-body .admin-card p{font-size:13px;line-height:1.55;margin-bottom:12px;}
.admin-body .metric{min-height:132px;padding:17px;}
.admin-body .metric small{font-size:11px;color:#aab0bd;}
.admin-body .metric strong{color:#f2e7d8;font-size:clamp(22px,3vw,32px);font-weight:570;letter-spacing:-.7px;}
.admin-body .metric span{color:#bcb8c0;font-size:12px;}
.admin-body .overview-metrics{gap:12px;margin-bottom:16px;}
.admin-body .quick-card{border-left:3px solid #7fa88e;}
.admin-body button:not(.admin-nav-button){border-radius:8px;min-height:40px;padding:10px 14px;font-size:13px;font-weight:600;}
.admin-body button.green-button:not(:disabled){background:#315c46;border:1px solid #47795d;color:#eef8ee;}
.admin-body button.danger-button:not(:disabled){background:#633640;border:1px solid #84515d;color:#f8e3e7;}
.admin-body .admin-card input:not([type=radio]):not([type=checkbox]),.admin-body .admin-card select{background:#181b22;border:1px solid #444853;border-radius:8px;margin-bottom:14px;padding:12px;color:#eeeff1;font-size:16px;}
.admin-body .admin-card .status-value{background:#181b22;color:#e0c3ce;border-radius:8px;border-color:#373b45;padding:13px;}
.admin-body .timeline-item{border-color:#3b3e48;border-radius:7px;padding:10px 12px;color:#b9bdc7;}
.admin-body .timeline-item.current{background:#34303d;border-color:#6f5165;color:#f5dbe6;}
.admin-body .timeline-item.done{color:#90b5a2;}
.admin-body .access-item{background:#1b1e26;border-color:#3a3e48;border-radius:8px;}
.admin-body .access-item select,.admin-body .access-item button{margin:0;}
.admin-body .access-role label{font-size:14px;}
.admin-body .admin-mobile-menu{display:none;}
.admin-body .admin-tab:not([hidden]){animation:admin-enter .2s ease-out;}
@keyframes admin-enter{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
@media (hover:hover){.player-body button:not(:disabled):hover{filter:brightness(1.09)}.admin-nav-button:not(.active):hover{background:#2b2e38;}}
@media(max-width:850px){.admin-body{padding:10px}.admin-body #dashboard{padding:4px}.admin-body .admin-shell{display:block}.admin-body .admin-nav{display:none}.admin-body .admin-mobile-menu{display:block;position:sticky;top:0;z-index:60;background:#1c1e26;padding:10px 12px;border:1px solid #383b45;border-radius:10px;margin-bottom:14px;box-shadow:0 8px 20px #0004}.admin-mobile-menu label{font-size:11px;color:#bcbfc7;margin:0 0 5px}.admin-mobile-menu select{margin:0;padding:10px 12px;border-radius:7px;font-size:16px}.admin-body .admin-top{padding:10px 4px 14px;margin-bottom:14px;gap:10px}.admin-body .admin-card{padding:16px}.admin-body .metric{min-height:104px;padding:12px}.admin-body .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-body .overview-metrics .metric:last-child{grid-column:1/-1}.admin-body .access-item{grid-template-columns:1fr 1fr}.admin-body .access-item strong{grid-column:1/-1}}
@media(max-width:480px){.player-body .screen{padding:25px 20px;border-radius:18px}.chapter-scene{height:125px;margin-top:15px}.chapter-scene svg{height:118px}#preEmailScreen .chapter-scene{height:155px}#preEmailScreen .chapter-scene svg{height:145px}.player-body h1{font-size:31px}.player-body .gps-value{font-size:clamp(17px,5vw,24px)}.player-body .screen button:not(.password-eye){min-height:50px}.player-body .countdown{gap:6px}}
@media(prefers-reduced-motion:reduce){.chapter-scene svg,.art-orbit,.player-body .screen,.admin-body .admin-tab{animation:none!important}.player-body *{transition-duration:.01ms!important}}
.admin-body #switchMode{font-size:12px;line-height:1.5;text-decoration:none;color:#dec4d0;border:1px solid #554654;border-radius:7px;padding:8px 10px;display:inline-block;text-align:center;}
@media(max-width:850px){.admin-body .admin-top-right{align-items:flex-end;gap:7px}.admin-body #switchMode{max-width:155px;padding:6px 8px;white-space:normal}.admin-body .admin-top h1{margin-top:8px}}

/* Editorial edition: warm ink, brass, paper-like detail and restrained motion. */
.player-body{--panel:#1b191e;--text:#f4efe6;--muted:#bcb4b0;--border:#484048;--scene:#d8b98a;--scene-rgb:216,185,138;--accent:#a34e61;--pink:#e3bac4;background:radial-gradient(ellipse at 50% 0%,rgba(var(--scene-rgb),.14),transparent 55%),#100f13;padding:38px 16px max(74px,calc(env(safe-area-inset-bottom) + 52px));isolation:isolate;}
.player-body[data-scene="ticket"]{--scene:#e3c18b;--scene-rgb:227,193,139;}
.player-body::before{z-index:-1;background:repeating-linear-gradient(45deg,transparent 0 58px,#c7b2a008 59px,transparent 60px),radial-gradient(ellipse at 80% 60%,rgba(var(--scene-rgb),.07),transparent 62%);mask-image:none;}
.player-body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 18% 24%,rgba(var(--scene-rgb),.09),transparent 46%);animation:ambient-drift 20s ease-in-out infinite alternate;}
.player-body .screen{max-width:530px;padding:36px 34px 32px;border-radius:20px;background:#1c1b20;border-color:#494149;box-shadow:0 24px 80px #0007;animation:premium-enter .5s cubic-bezier(.16,1,.3,1) both;}
.player-body .screen::before{left:28px;right:28px;opacity:.7;}
.player-body h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(32px,8vw,42px);line-height:1.09;font-weight:400;letter-spacing:-1.3px;color:#f6efe3;margin:20px 0 18px;}
.player-body h2{color:#f3eade;font-size:clamp(22px,5.4vw,27px);font-weight:550;letter-spacing:-.7px;}
.player-body p{color:#c6bec0;line-height:1.65;font-size:15px;}
.player-body .badge{font-size:10px;letter-spacing:2.1px;color:var(--scene);font-weight:650;}
.player-body .chapter-scene{position:relative;display:grid;place-items:center;overflow:hidden;height:166px;margin:22px -8px 18px;border:1px solid rgba(var(--scene-rgb),.16);border-radius:11px;background:radial-gradient(ellipse at 50% 50%,rgba(var(--scene-rgb),.09),transparent 65%),#15151a;color:var(--scene);}
.player-body .chapter-scene::before,.player-body .chapter-scene::after{content:"";position:absolute;inset:8px;pointer-events:none;border:1px solid rgba(var(--scene-rgb),.13);border-radius:5px;clip-path:polygon(0 0,14% 0,14% 1%,1% 1%,1% 14%,0 14%,0 0,100% 0,100% 14%,99% 14%,99% 1%,86% 1%,86% 0,100% 0,100% 100%,86% 100%,86% 99%,99% 99%,99% 86%,100% 86%,100% 100%,0 100%,0 86%,1% 86%,1% 99%,14% 99%,14% 100%,0 100%);}
.player-body .chapter-scene svg{width:min(100%,290px);height:156px;animation:engraving-enter .85s cubic-bezier(.16,1,.3,1) both;filter:drop-shadow(0 2px 6px #0004);}
.player-body .chapter-scene .art-subject{animation:subject-float 7s ease-in-out infinite;transform-origin:120px 73px;}
.player-body #preEmailScreen .chapter-scene{height:198px;margin:22px -8px 20px;}
.player-body #preEmailScreen .chapter-scene svg{width:min(100%,310px);height:186px;}
.player-body #preEmailScreen h1{margin-top:22px;}
.player-body .screen button:not(.password-eye){border-radius:9px;background:#a34e61;border:1px solid #bf7384;color:#fff7f0;box-shadow:0 3px 0 #63313e;min-height:51px;transition:background .18s,transform .15s,box-shadow .15s;}
.player-body .screen button:not(.password-eye):not(:disabled):active{transform:translateY(2px);box-shadow:none;}
.player-body .screen button.secondary-button:not(:disabled){background:transparent;border-color:#61535b;color:#e3d6d9;box-shadow:none;}
.player-body .screen button:disabled:not(.password-eye){background:#29272d;border-color:#3e3a42;color:#938b93;box-shadow:none;}
.player-body input:not([type=checkbox]):not([type=radio]),.player-body select{background:#131217;border:1px solid #51474f;border-radius:9px;}
.player-body :is(.condition-card,.prep-info,.gps-card,.waiting-box,.quiz-intro-card){background:#18171c;border-color:#484048;border-radius:10px;}
.player-body .gps-card{border-color:rgba(var(--scene-rgb),.32);background:radial-gradient(ellipse at 0% 0%,rgba(var(--scene-rgb),.09),transparent 80%),#17171b;}
.player-body .extra-photo{border-radius:9px;border:1px solid #544b4a;}
.player-body .time-box{border-color:#49434a;background:#141318;}
.player-body .time-box strong{font-size:clamp(23px,6vw,35px);font-weight:550;}
.player-body .time-box::after{display:none;}
.player-body .game-sound{position:fixed;z-index:90;bottom:max(12px,env(safe-area-inset-bottom));right:16px;display:flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:88px;padding:10px 12px;margin:0;border:1px solid #514750;border-radius:8px;background:#201e24;color:#e0d1d1;font-size:12px;box-shadow:0 4px 16px #0006;}
#gameSoundIcon{width:18px;height:18px;display:block;}#gameSoundIcon svg{display:block;width:100%;height:100%;}
/* The wheel is a single vector object: metal bezel, engraved markings, coloured sectors and fixed brass pointer. */
.player-body #bonusWheel{max-width:560px;background:radial-gradient(ellipse at 50% 18%,#3b3024 0%,#211d21 43%,#1b191e 70%);border-color:#66503c;}
#bonusWheel .badge{display:block;text-align:center;}#bonusWheel h1{margin-bottom:8px;}#bonusWheel .wheel-intro{text-align:center;color:#cbbda9;margin-bottom:12px;font-size:14px;}
#bonusWheel .wheel-wrap{max-width:365px;margin:16px auto 10px;padding:13px 8px 9px;background:radial-gradient(circle,#b9944825,transparent 69%);position:relative;}
#bonusWheel #wheelSvg{width:100%;height:auto;display:block;filter:drop-shadow(0 12px 14px #0008);transform-origin:50% 50%;will-change:transform;}
#bonusWheel .wheel-pointer{top:0;left:50%;width:26px;height:42px;border:0;background:linear-gradient(90deg,#8b673a,#f8e6b7 48%,#b28b4e);clip-path:polygon(0 0,100% 0,100% 38%,50% 100%,0 38%);filter:drop-shadow(0 3px 4px #000);transform:translateX(-50%);z-index:4;}
.wheel-hub{position:absolute;left:50%;top:calc(50% + 2px);transform:translate(-50%,-50%);width:13.6%;aspect-ratio:1;display:grid;place-items:center;border:1px solid #ebd3a2;border-radius:50%;background:radial-gradient(circle at 35% 20%,#f2dfb3,#b28c51 50%,#7d5830);color:#4b3320;box-shadow:0 3px 8px #0009,inset 0 0 0 3px #8e6c3e;pointer-events:none;}
#bonusWheel .wheel-hub svg{width:52%;height:52%;filter:none;}
#wheelResult{font-size:13px;font-weight:500;min-height:22px;color:#d9bd8f;margin:6px 0 18px;}
.wheel-result-box{display:flex;align-items:center;gap:13px;border:1px solid #a68a56;background:#30291f;padding:14px;border-radius:10px;margin:10px 0 4px;animation:winner-reveal .6s cubic-bezier(.16,1,.3,1) both;}
.wheel-result-box small,.task-intro small{display:block;font-size:9px;letter-spacing:1.5px;color:#d5b883;margin-bottom:4px;}
.wheel-result-box strong,.task-intro strong{font-family:Georgia,serif;font-size:25px;font-weight:400;color:#f7e9d2;}
.wheel-result-box p{font-size:13px;margin:5px 0 0;}.wheel-winner-icon,.task-result-icon{flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;border:1px solid #967344;border-radius:50%;background:#463522;color:#f4d8a4;}
.wheel-winner-icon svg,.task-result-icon svg{width:28px;height:28px;}
.wheel-legend-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.5px;color:#b9a17c;border-bottom:1px solid #514435;padding-bottom:10px;}
#wheelLegend{margin:0 0 20px;}.wheel-legend-row{display:grid;grid-template-columns:42px minmax(0,1fr) 22px;gap:12px;align-items:start;padding:13px 0;border-bottom:1px solid #3e3634;}
#wheelLegend .wheel-legend-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;border:1px solid #b3986b66;background:var(--segment);color:#f9e9cc;padding:8px;}
.wheel-legend-mark svg{width:25px;height:25px;display:block;}.legend-num{color:#9e8a70;font-size:10px;font-variant-numeric:tabular-nums;padding-top:4px;text-align:right;}
#wheelLegend strong{font-size:14px;font-weight:650;color:#f0e5d7;margin:0 0 4px;display:block;}#wheelLegend p{font-size:13px;line-height:1.5;margin:0;color:#c5b9b1;}
.player-body #wheelSpin:not(:disabled){background:#d9bb85;border-color:#f1d8a7;color:#33251b;box-shadow:0 3px 0 #8e6b3b;font-size:13px;letter-spacing:1px;}
/* Quiz reveal and illustrated tasks. */
.quiz-verdict{background:#261d24;border:1px solid #744651;border-radius:11px;padding:22px 16px;margin:24px 0;text-align:center;animation:winner-reveal .65s cubic-bezier(.16,1,.3,1) both;}
.verdict-label{font-size:10px;color:#cfa6ad;letter-spacing:1.7px;}.verdict-number{display:flex;justify-content:center;align-items:baseline;gap:8px;margin:9px 0 2px;}.verdict-number strong{font-family:Georgia,serif;font-size:66px;line-height:1;font-weight:400;color:#ef9a9f;}.verdict-number>span{font-size:25px;color:#bfa5ad;}.verdict-marks{display:flex;justify-content:center;gap:8px;margin-top:16px;}.verdict-marks span{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;font-size:24px;line-height:1;animation:mark-enter .45s cubic-bezier(.16,1,.3,1) both;}.verdict-wrong{color:#f4a8ae;border:1px solid #85515b;background:#482d37;}.verdict-right{color:#b4d8b9;border:1px solid #53775d;background:#24392d;}#verdictText{font-size:15px;color:#eed1d3;}
.task-intro{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #66523e;background:#29231f;border-radius:10px;margin:18px 0;}.task-progress{margin:22px 0;}.task-progress p{font-size:12px;color:var(--scene);margin:0 0 8px;}.task-card{border:1px solid #4a424a;background:#19181d;border-radius:11px;padding:18px;margin:12px 0;animation:task-enter .35s ease both;}.task-card-head{display:flex;gap:12px;align-items:center;margin-bottom:14px;}.task-card-head small{display:block;color:#a89ba6;font-size:10px;letter-spacing:1.2px;margin-bottom:4px;}.task-card h3{margin:0;font-size:17px;font-weight:600;line-height:1.35;color:#f4e9e6;}.task-icon{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:#30272e;border:1px solid #5b4352;color:#dcaabd;}.task-icon svg{width:25px;height:25px;}.task-card p{margin:0 0 6px;font-size:14px;}.task-active{border-color:#a47b8c;box-shadow:inset 3px 0 #b58a9c;}.task-done{border-color:#42654f;background:#1c2721;}.task-done .task-icon{color:#b4d6bb;background:#294335;border-color:#52765e;}.task-pending{opacity:.78;}.task-card:nth-child(2){animation-delay:.06s;}.task-card:nth-child(3){animation-delay:.12s;}
.player-body #answerScreen{background:transparent;border:0;box-shadow:none;}.player-body #answerScreen button{min-height:90px;}.player-body #mediaScreen{max-width:1000px;padding:16px;}
/* Admin upload controls and useful quick jump. */
.admin-body .upload-meter{border:1px solid #4e675b;background:#1c2a25;border-radius:9px;padding:14px;margin:16px 0;}.upload-meter-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#c4dfcd;}.upload-meter progress{width:100%;height:10px;margin:12px 0 8px;accent-color:#83b295;}.upload-meter p{margin:0;font-variant-numeric:tabular-nums;}.quiz-story-note{background:#2c2526;border:1px solid #655047;border-radius:8px;padding:12px;margin:14px 0;}.quiz-story-note strong{color:#e2c4a0;font-size:13px;}.admin-body .quiz-story-note p{font-size:12px;margin:6px 0 0;}.admin-body #quickJump{border-color:#756046;color:#e6cda7;}
@keyframes ambient-drift{from{transform:translate(-5%,-3%)}to{transform:translate(5%,3%)}}
@keyframes premium-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes engraving-enter{from{opacity:0;transform:translateY(7px) scale(.96)}to{opacity:1;transform:none}}
@keyframes subject-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes winner-reveal{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes mark-enter{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@media(max-width:480px){.player-body{padding:18px 12px max(70px,calc(env(safe-area-inset-bottom) + 48px));}.player-body .screen{padding:25px 20px 26px;border-radius:16px;}.player-body h1{font-size:34px;}.player-body .chapter-scene{height:142px;margin:18px -3px 15px;}.player-body .chapter-scene svg{height:134px;}.player-body #preEmailScreen .chapter-scene{height:170px;margin:18px -3px;}.player-body #preEmailScreen .chapter-scene svg{height:158px;}.player-body #bonusWheel{padding:24px 18px;}.wheel-legend-row{gap:10px;grid-template-columns:40px minmax(0,1fr) 19px;}.task-card{padding:15px;}.player-body .game-sound{right:12px;}}
@media(prefers-reduced-motion:reduce){.player-body::after,.player-body .chapter-scene .art-subject,.player-body .chapter-scene svg,.wheel-result-box,.quiz-verdict,.verdict-marks span,.task-card{animation:none!important;}}
/* Keep the sound control clear of long content; the wheel stays in view during the draw. */
.player-body{padding-top:62px;}
.player-body button.game-sound{position:absolute;top:12px;bottom:auto;right:16px;min-width:0;width:auto;min-height:36px;padding:8px 11px;background:#201e24;border:1px solid #514750;border-radius:8px;box-shadow:none;color:#e0d1d1;font-size:12px;}
#bonusWheel.is-spinning :is(.wheel-legend-heading,#wheelLegend,.check-row,#wheelSpin){display:none!important;}
#bonusWheel.is-spinning #wheelResult{margin-bottom:8px;}
@media(max-width:480px){.player-body{padding-top:58px;}.player-body button.game-sound{right:12px;}}

/* CINEMA — photographic atmosphere, independent of game logic */
.player-body{isolation:isolate;--film:url('/artwork/lake.jpg');--film-position:50% 43%;background:#0b1014;}
.cinema-backdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#10171a;}
.cinema-landscape{position:absolute;inset:-3%;background-image:var(--film);background-size:cover;background-position:var(--film-position);filter:saturate(.72) brightness(.66);animation:film-drift 32s ease-in-out infinite alternate;}
.cinema-shade{position:absolute;inset:0;background:linear-gradient(180deg,#07101455,#080c12aa 48%,#080b10ef),radial-gradient(ellipse at center,transparent 10%,#070a10aa 100%);}
@keyframes film-drift{from{transform:scale(1)}to{transform:scale(1.075) translate(-.5%,.5%)}}
.player-body[data-scene=compass],.player-body[data-scene=forest],.player-body[data-scene=car]{--film:url('/artwork/mountains.jpg');--film-position:50% 45%;}
.player-body[data-scene=castle],.player-body[data-scene=coffee],.player-body[data-scene=house]{--film:url('/artwork/garden.jpg');}
.player-body .screen{background:linear-gradient(155deg,#1d2027f5,#11151bf5);border:1px solid #d5c4a43d;border-radius:22px;box-shadow:0 30px 100px #0009, inset 0 1px #ffffff0b;backdrop-filter:blur(16px);}
.player-body .screen h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1.15px;line-height:1.08;color:#fff4e3;}
.player-body .screen p{color:#d0cbd0;}
.player-body .chapter-scene{height:190px;background:linear-gradient(180deg,#0d131b55,#0c101be0),var(--film) center 46%/cover;border-color:#c9b68a44;box-shadow:inset 0 0 55px #080b10aa;}
.player-body .chapter-scene svg{filter:drop-shadow(0 3px 12px #000) drop-shadow(0 0 14px #dfc79a33);}
.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button){background:linear-gradient(135deg,#ad6275,#84384e);border-color:#cf8b9b;box-shadow:0 4px 0 #502534,0 8px 24px #0004;}
.player-body #bonusWheel{background:linear-gradient(155deg,#352c23f5,#18191ef8);}
.player-body #wheelSpin:not(:disabled){background:linear-gradient(135deg,#f0d7a1,#b58a4d);color:#322417;border-color:#f5deb3;}
.player-body #answerScreen{background:transparent;backdrop-filter:none;box-shadow:none;border:0;}
.player-body #mediaScreen{backdrop-filter:none;}
.player-body[data-chapter=finishedScreen] .cinema-landscape{filter:saturate(.8) brightness(.5);}
.admin-body #dashboard{max-width:1450px;}.admin-body .admin-card{border-color:#ffffff12;box-shadow:0 8px 24px #0002;}.admin-body .metric{border-top:2px solid #bca47a;}.admin-body .admin-nav-button.active{box-shadow:inset 3px 0 #d5b986;}
@media(max-width:480px){.player-body .chapter-scene{height:156px;}.player-body .screen{border-radius:18px;padding:24px 20px;}.player-body .screen h1{font-size:clamp(29px,8vw,36px);}.cinema-landscape{background-position:50% 40%;}}
@media(prefers-reduced-motion:reduce){.cinema-landscape{animation:none;}}

.player-body[data-chapter=nextScreen]:not(:has(.test-ribbon)) .chapter-scene{background-image:linear-gradient(180deg,#10151b66,#10151bd9),url('/artwork/dog.jpg');background-position:center 42%;}

.player-body[data-chapter=mediaScreen]:not(:has(.test-ribbon)){--film:url('/artwork/portrait.jpg');}


/* ===== ROMANTIC ADVENTURE — fixed photographic stage, presentation only ===== */
body.player-body {
 --journey-gold:#f0d39a; --journey-ink:#111b20; --journey-line:#dfc184ad;
 --journey-nature:url('/artwork/journey-lake.jpg'); --journey-person:none; --journey-ratio:.75;
 --text:#fff8e9; --muted:#f0e9de; --pink:#f1d29a; --accent:#d9b675;
 --panel:#111a20; --border:#9d865b; --scene:#ebcc91; --scene-rgb:235,204,145;
 display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
 min-height:100vh; min-height:100dvh; padding:0; margin:0; background:#0a141b;
 isolation:isolate; color:var(--text); font-family:Georgia,'Times New Roman',serif;
}
body.player-body::before,body.player-body::after{content:none;animation:none;}
body.player-body .cinema-backdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#0c1a21;pointer-events:none;}
body.player-body .cinema-landscape{
 position:absolute;inset:0; background-image:var(--journey-nature);background-size:cover;background-position:center 45%;background-repeat:no-repeat;
 filter:none;animation:none;transform:none;
}
/* The original portrait is fitted to its true aspect ratio. It never scrolls or zooms. */
body.player-body .cinema-landscape::before{
 content:"";position:absolute;inset:0;background:var(--journey-person) center/cover no-repeat;
 filter:blur(24px) brightness(.46) saturate(.8);transform:scale(1.12);
}
body.player-body .cinema-landscape::after{
 content:"";position:absolute;left:50%;top:48%;width:min(100%,calc(100vh * var(--journey-ratio)));height:auto;aspect-ratio:var(--journey-ratio);
 transform:translate(-50%,-50%);background:var(--journey-person) center/contain no-repeat;
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 9%,#000 87%,transparent 100%);
 mask-image:linear-gradient(to bottom,transparent 0%,#000 9%,#000 87%,transparent 100%);
}
body.player-body .cinema-shade{
 position:absolute;inset:0; background:linear-gradient(180deg,rgba(5,15,26,.90) 0%,rgba(9,22,32,.60) 14%,rgba(5,12,16,.10) 35%,rgba(4,9,10,.06) 57%,rgba(5,10,12,.60) 78%,rgba(5,10,12,.96) 100%);
}
body.player-body .screen, body.player-body #bonusWheel{
 position:relative;max-width:510px;width:100%;min-height:100vh;min-height:100svh;
 padding:clamp(54px,8vh,78px) clamp(18px,5.5vw,36px) max(40px,calc(env(safe-area-inset-bottom) + 24px));
 text-align:center;background:transparent;border:0;border-radius:0;box-shadow:none;
 backdrop-filter:none;-webkit-backdrop-filter:none;animation:journey-enter .35s ease both;overflow-wrap:anywhere;
}
@keyframes journey-enter{from{opacity:0}to{opacity:1}}
body.player-body .screen h1,body.player-body .screen h2,body.player-body .screen h3{
 font-family:Georgia,'Times New Roman',serif;color:#f4d9a1;font-weight:400;letter-spacing:-.025em;
 text-shadow:0 2px 6px #000b,0 1px 18px #0008;
}
body.player-body .screen h1{font-size:clamp(31px,8.5vw,43px);line-height:1.12;margin:9px 0 17px;}
body.player-body .screen h2{font-size:clamp(22px,6vw,29px);line-height:1.25;}
body.player-body .screen h3{font-size:19px;}
body.player-body .screen p{font-size:16px;line-height:1.55;color:#fff8ed;margin:0 0 18px;text-shadow:0 1px 4px #000,0 1px 12px #000c;}
body.player-body .screen .small-text{font-size:13px;}
body.player-body .screen .badge,body.player-body .screen .step-label{color:#f3d9aa;letter-spacing:1.65px;font:600 10px/1.6 system-ui,sans-serif;text-shadow:0 1px 5px #000;}
body.player-body .screen .step-label{margin:10px 0 8px;}
body.player-body .screen .chapter-scene, body.player-body #preEmailScreen .chapter-scene{
 width:78px;height:53px;margin:6px auto 8px;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none;color:#ebcc91;
}
body.player-body .chapter-scene::before,body.player-body .chapter-scene::after{content:none;}
body.player-body[data-chapter=nextScreen] .screen .chapter-scene{background:transparent!important;}
body.player-body .screen .chapter-scene svg,body.player-body #preEmailScreen .chapter-scene svg{width:78px;height:53px;filter:drop-shadow(0 1px 5px #0008);animation:none;}
body.player-body .chapter-scene .art-subject{animation:none;}
/* A fine mountain emblem, drawn as a vector; not an extra page or text. */
body.player-body #preEmailScreen .chapter-scene{background: center/66px 37px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 48'%3E%3Cpath d='M4 42 32 14l11 11L60 5l26 37M20 42l18-18 17 17M50 15l10-10 10 11' fill='none' stroke='%23f1d29a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
body.player-body #preEmailScreen .chapter-scene svg{visibility:hidden;}
body.player-body #preEmailScreen h1{font-family:'Snell Roundhand','Apple Chancery','Segoe Script','Z003',Georgia,cursive;font-size:clamp(40px,12vw,59px);font-weight:400;font-style:normal;line-height:1.12;color:#f8dca6;letter-spacing:-.035em;margin:4px 0 13px;}
body.player-body #preEmailScreen:not(.hidden){display:flex;flex-direction:column;align-items:stretch;}
body.player-body #preEmailScreen .badge{align-self:center;}
body.player-body #preEmailScreen .entry-label{margin-top:auto;padding-top:clamp(150px,34svh,300px);}
body.player-body #preEmailScreen #preSend{margin-bottom:5px;}
/* Leave room for the photograph before the existing controls; longer content scrolls normally. */
body.player-body #nextScreen > p{margin-bottom:clamp(175px,28svh,250px);}
body.player-body #loginScreen .intro{padding-bottom:clamp(110px,21svh,195px);}
body.player-body #verificationScreen > p{margin-bottom:clamp(95px,17svh,150px);}
body.player-body #preCodeScreen #preCode{margin-top:clamp(110px,22svh,185px);}
body.player-body #preDateScreen .intro{padding-bottom:clamp(80px,15svh,135px);}
body.player-body #preWaitScreen > .gps-card{margin-top:clamp(70px,12svh,110px);}
body.player-body #fourthScreen .intro{padding-bottom:clamp(100px,19svh,175px);}
body.player-body :is(#fifthScreen,#eighthScreen,#tenthScreen,#carReadyScreen,#bonusEnd,#bonusPhotoScreen,#finalDestination,#lodgingScreen) > h1 + p{margin-bottom:clamp(105px,19svh,170px);}
body.player-body #fifthScreen .intro{padding-bottom:clamp(100px,18svh,160px);}
/* Timed quiz, photo scanning, QR, and wheel stay immediately accessible. */
body.player-body :is(#quizScreen,#quizEval,#forestScan,#bonusWheel,#seventhScreen,#ninthScreen,#mediaScreen){padding-top:58px;}
body.player-body .screen :is(label,.counter,.footer,.countdown-heading,.quiz-duration){color:#fff3dd;text-shadow:0 1px 5px #000a;}
body.player-body .screen label{font-size:14px;text-align:left;}
body.player-body .screen input:not([type=checkbox]):not([type=radio]),body.player-body .screen select{
 background:rgba(9,19,24,.82);border:1px solid #d5b97e;box-shadow:inset 0 1px 2px #0004;color:#fff5e3;border-radius:20px;font-family:Georgia,'Times New Roman',serif;font-size:16px;min-height:49px;padding:13px 15px;margin-bottom:16px;
}
body.player-body .screen input::placeholder{color:#e1d5bd;opacity:.8;}
body.player-body .screen input:focus,body.player-body .screen select:focus{border-color:#ffe4ad;box-shadow:0 0 0 3px #f4d69a55;}
body.player-body .screen input[type=checkbox]{accent-color:#e4c080;width:22px;height:22px;min-height:0;}
body.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button),body.player-body #wheelSpin:not(:disabled){
 color:#25190e;background:linear-gradient(180deg,#f9dfae 0%,#eac58b 48%,#c9944d 100%);border:1px solid #ffe3af;border-radius:999px;
 box-shadow:inset 0 1px 1px #fff3,0 5px 16px #0006;font:600 17px/1.25 Georgia,'Times New Roman',serif;padding:14px 18px;min-height:50px;letter-spacing:0;
}
body.player-body .screen button.secondary-button:not(:disabled),body.player-body .screen #quizOptions button:not(:disabled){background:rgba(11,21,24,.82);border:1px solid #c7a972;color:#fff0d6;border-radius:16px;box-shadow:0 4px 12px #0003;font:400 16px/1.35 Georgia,'Times New Roman',serif;}
body.player-body .screen button:disabled:not(.password-eye){border-radius:999px;background:#1a2226e8;border:1px solid #a4916d66;color:#b1aa9b;box-shadow:none;}
body.player-body .screen button:focus-visible{outline:2px solid #fff2ca;outline-offset:3px;}
body.player-body .screen #quizOptions button.selected-answer:not(:disabled),body.player-body .screen #quizOptions button.selected-answer:disabled{background:#485f34ed;color:#fff6d8;border-color:#e5df9e;box-shadow:0 0 14px #c7d27b44;}
body.player-body .screen .answer-letter{background:#a78c5955;color:#f8dfac;}
body.player-body .screen :is(.condition-card,.gps-card,.prep-info,.prize-row,.time-box,.rest-clock,.task-intro,.task-card,.quiz-clock,.nav-summary,.quiz-verdict){
 background:linear-gradient(145deg,rgba(25,34,32,.91),rgba(8,16,19,.88));border:1px solid #c8a86c99;border-radius:16px;box-shadow:0 4px 16px #0003;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
body.player-body .screen :is(.condition-card,.task-card,.prep-info,.prize-row){text-align:left;padding:16px;}
body.player-body .screen .condition-card{margin-bottom:12px;}
body.player-body .screen .condition-title{color:#f6d69d;font-family:Georgia,serif;font-size:17px;font-weight:400;}
body.player-body .screen .check-row{font-family:system-ui,sans-serif;line-height:1.5;font-size:14px;color:#fff8e9;gap:12px;}
body.player-body .screen .condition-card:has(input:checked){border-color:#e4cf8d;background:#243724ee;}
body.player-body .screen .check-row span{min-width:0;}
body.player-body .screen .time-box strong,body.player-body .screen .gps-value,body.player-body .screen .quiz-clock strong{color:#f7d99d;font-family:Georgia,serif;font-weight:400;}
body.player-body .screen .quiz-clock strong.urgent{color:#ff6376;}
body.player-body .screen .progress-track{background:#1b2226aa;box-shadow:0 1px 6px #0005;}
body.player-body .screen .progress-fill{background:linear-gradient(90deg,#d4ad65,#fff0b3);}
body.player-body .screen .separator{background:#d9bf844d;margin:18px 0;}
body.player-body .screen .error:not(:empty){background:#2e141ceb;border:1px solid #fa8d94aa;color:#ffc2c6;padding:10px;border-radius:9px;}
body.player-body .screen .footer{font:12px/1.5 system-ui,sans-serif;margin:26px 0 0;}
body.player-body .screen :is(#packagePhoto,#missionHint,#castleFull,#missionPreview,#forestPreview,#bonusPreview,#endingPhoto,.extra-photo){object-fit:contain!important;height:auto;max-width:100%;border-radius:12px;}
body.player-body #missionHint{max-height:300px;}
body.player-body #mediaView.photo-fullscreen #endingPhoto{height:100%;width:100%;object-fit:contain!important;}
body.player-body #answerScreen{justify-content:center;align-content:center;min-height:100svh;}
body.player-body #answerScreen button{min-height:76px;}
body.player-body #answerScreen #answerNo:not(:disabled){background:rgba(11,21,24,.88);border:1px solid #e5c688;border-radius:999px;}
body.player-body button.game-sound{position:absolute;z-index:5;right:14px;top:max(10px,env(safe-area-inset-top));border-radius:999px;background:#101b22c9;color:#f8deb1;border:1px solid #ddbd7b99;box-shadow:none;font-family:Georgia,serif;}
body.player-body dialog{background:#102029f5;border:1px solid #e0c58a;color:#fff1dc;}
body.player-body .password-eye{color:#e4c58a;}
body.player-body .connection-message{z-index:100;}
@media (min-width:700px){body.player-body .screen{padding-left:34px;padding-right:34px;}body.player-body .cinema-landscape::after{width:min(100%,calc(100vh * var(--journey-ratio)));}}
@media (max-width:360px){body.player-body .screen{padding-left:14px;padding-right:14px;}body.player-body .screen h1{font-size:30px;}body.player-body #preEmailScreen h1{font-size:42px;}body.player-body .screen .time-box{padding:10px 3px;} }
@media(prefers-reduced-motion:reduce){body.player-body .screen{animation:none;}}

body.player-body[data-chapter="loadingScreen"],body.player-body[data-chapter="preEmailScreen"],body.player-body[data-chapter="preWaitScreen"],body.player-body[data-chapter="coffeeScreen"],body.player-body[data-chapter="settledScreen"],body.player-body[data-chapter="audioWaitScreen"],body.player-body[data-chapter="answerScreen"]{--journey-nature:url("/artwork/journey-lake.jpg");}

body.player-body[data-chapter="preCodeScreen"],body.player-body[data-chapter="fourthScreen"],body.player-body[data-chapter="fifthScreen"],body.player-body[data-chapter="seventhScreen"],body.player-body[data-chapter="transferredScreen"],body.player-body[data-chapter="finalDestination"]{--journey-nature:url("/artwork/journey-ridge.jpg");}

body.player-body[data-chapter="preDateScreen"],body.player-body[data-chapter="verificationScreen"],body.player-body[data-chapter="loginScreen"],body.player-body[data-chapter="tenthScreen"],body.player-body[data-chapter="quizScreen"],body.player-body[data-chapter="quizEval"],body.player-body[data-chapter="carReadyScreen"]{--journey-nature:url("/artwork/journey-meadow.jpg");}

body.player-body[data-chapter="nextScreen"],body.player-body[data-chapter="sixthScreen"],body.player-body[data-chapter="eighthScreen"],body.player-body[data-chapter="forestScreen"],body.player-body[data-chapter="forestScan"],body.player-body[data-chapter="forestSuccess"],body.player-body[data-chapter="forestEnd"],body.player-body[data-chapter="bonusWheel"]{--journey-nature:url("/artwork/journey-pond.jpg");}

body.player-body[data-chapter="ninthScreen"],body.player-body[data-chapter="missionSuccess"],body.player-body[data-chapter="bonusPhotoScreen"],body.player-body[data-chapter="finalAudioScreen"]{--journey-nature:url("/artwork/journey-stones.jpg");}

body.player-body[data-chapter="quizResult"],body.player-body[data-chapter="bonusEnd"],body.player-body[data-chapter="bonusTasks"],body.player-body[data-chapter="lodgingScreen"],body.player-body[data-chapter="mediaScreen"],body.player-body[data-chapter="finishedScreen"]{--journey-nature:url("/artwork/journey-alpine.jpg");}

body.player-body[data-chapter="loginScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-verona.jpg");--journey-ratio:1.33333333;}

body.player-body[data-chapter="preWaitScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="fourthScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="bonusPhotoScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-lakecouple.jpg");--journey-ratio:0.75000000;}

body.player-body[data-chapter="verificationScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="bonusTasks"]:not(:has(.test-ribbon)),body.player-body[data-chapter="lodgingScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-portrait.jpg");--journey-ratio:0.66642857;}

body.player-body[data-chapter="nextScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-dog.jpg");--journey-ratio:0.75000000;}

body.player-body[data-chapter="eighthScreen"]:not(:has(.test-ribbon)),body.player-body[data-chapter="coffeeScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-apple.jpg");--journey-ratio:0.75000000;}

body.player-body[data-chapter="bonusEnd"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-couple.jpg");--journey-ratio:0.75000000;}

body.player-body[data-chapter="mediaScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-kiss.jpg");--journey-ratio:0.64127604;}

body.player-body[data-chapter="finishedScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-wedding.jpg");--journey-ratio:0.75000000;}

/* Readability refinement: player only. */
body.player-body[data-chapter="preWaitScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-view.jpg");--journey-ratio:0.56250000;}
body.player-body[data-chapter="fourthScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-sunsettown.jpg");--journey-ratio:0.75000000;}
body.player-body[data-chapter="verificationScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-gardenpair.jpg");--journey-ratio:0.66666667;}
body.player-body[data-chapter="lodgingScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-formal.jpg");--journey-ratio:0.56250000;}
body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-cars.jpg");--journey-ratio:1.50000000;}
body.player-body[data-chapter="bonusPhotoScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-sunsetsea.jpg");--journey-ratio:0.58229814;}
body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-coast.jpg");--journey-ratio:0.74843175;}
body.player-body[data-chapter="coffeeScreen"]:not(:has(.test-ribbon)){--journey-person:url("/artwork/journey-winter.jpg");--journey-ratio:0.56250000;}
body.player-body[data-chapter="bonusTasks"]:not(:has(.test-ribbon)){--journey-person:none;}
body.player-body[data-chapter="eighthScreen"]:not(:has(.test-ribbon)){--journey-person:none;}
body.player-body .screen :is(p,label,input,select,button,.check-row,.condition-title,.task-card,.quiz-options,.footer){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
body.player-body .screen p{font-size:16px;line-height:1.6;text-shadow:0 1px 3px #000,0 0 9px #000,0 0 18px #000;}
body.player-body .screen :is(label,.check-row){font-size:15px;line-height:1.55;}
body.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button),body.player-body #wheelSpin:not(:disabled),body.player-body .screen button.secondary-button:not(:disabled),body.player-body .screen #quizOptions button:not(:disabled){font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;}
body.player-body .screen :is(h1,h2,h3){text-shadow:0 2px 4px #000,0 0 14px #000;}
body.player-body .screen .condition-title{font-weight:600;}
body.player-body .cinema-landscape::after{width:min(100%,calc(96svh * var(--journey-ratio)));mask-image:none;-webkit-mask-image:none;}
body.player-body .cinema-shade{background:linear-gradient(180deg,#07121de8 0%,#09162099 17%,#050c1010 36%,#04090a10 55%,#050a0c99 76%,#050a0cf5 100%);}

/* Full-bleed photographic finish — presentation only, original image pixels. */
body.player-body .cinema-landscape{
 background-image:var(--journey-person),var(--journey-nature);
 background-size:cover,cover;background-position:center 48%,center;
 filter:brightness(.88) saturate(.88) contrast(1.05) sepia(.06);
}
body.player-body .cinema-landscape::before,body.player-body .cinema-landscape::after{content:none;}
body.player-body .cinema-shade{
 background:linear-gradient(180deg,rgba(5,15,28,.76),rgba(7,18,28,.37) 19%,rgba(5,12,18,.08) 40%,rgba(5,12,18,.12) 57%,rgba(5,12,18,.55) 82%,rgba(5,12,18,.78));
}
/* Landscape photographs: preserve people and soften the surrounding fill. */
body.player-body:is([data-chapter="loginScreen"],[data-chapter="carReadyScreen"]):not(:has(.test-ribbon)) .cinema-landscape::before{
 content:"";position:absolute;inset:0;background:var(--journey-person) center/cover no-repeat;filter:blur(32px) brightness(.76);transform:scale(1.12);
}
body.player-body:is([data-chapter="loginScreen"],[data-chapter="carReadyScreen"]):not(:has(.test-ribbon)) .cinema-landscape::after{
 content:"";position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;transform:none;background:var(--journey-person) center/contain no-repeat;
 mask-image:linear-gradient(180deg,transparent 0%,#000 29%,#000 71%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 29%,#000 71%,transparent 100%);
}
body.player-body .screen :is(.condition-card,.gps-card,.prep-info,.prize-row,.time-box,.rest-clock,.task-intro,.task-card,.quiz-clock,.nav-summary,.quiz-verdict){
 background:linear-gradient(145deg,rgba(16,25,30,.49),rgba(8,15,20,.62));border-color:#e4c58aaa;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
body.player-body .screen .condition-card:has(input:checked){background:rgba(30,55,37,.62);}
body.player-body .screen :is(.time-box,.rest-clock){box-shadow:0 3px 12px #0002;}
body.player-body .screen input:not([type=checkbox]):not([type=radio]),body.player-body .screen select{background:rgba(8,18,25,.66);font-family:system-ui,-apple-system,sans-serif;}
body.player-body .screen button.secondary-button:not(:disabled),body.player-body .screen #quizOptions button:not(:disabled){background:rgba(8,18,25,.64);}
body.player-body .screen :is(h1,h2,h3),body.player-body #preEmailScreen h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.025em;color:#f5dba4;text-shadow:0 2px 6px #0009;}
body.player-body #preEmailScreen h1{font-size:clamp(34px,9vw,46px);}
body.player-body .screen :is(p,label,.check-row,.condition-title,.footer){font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.55;text-shadow:0 1px 3px #000c,0 0 7px #0008;}
body.player-body .screen :is(.prep-info,.task-card,.condition-card) p{font-family:system-ui,-apple-system,sans-serif;}
body.player-body .screen :is(.spinner,.quiz-spinner,.loading-spinner){border-color:#e6c58a44;border-top-color:#f5dba4;}
/* Different existing photographs for additional live stages; tester stays neutral. */
body.player-body[data-chapter="quizEval"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-formal.jpg');}
body.player-body[data-chapter="lodgingScreen"]:not(:has(.test-ribbon)){--journey-person:none;}
body.player-body[data-chapter="finishedScreen"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-gardenpair.jpg');}
body.player-body[data-chapter="verificationScreen"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-portrait.jpg');}
body.player-body[data-chapter="bonusTasks"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-couple.jpg');}
body.player-body[data-chapter="bonusEnd"]:not(:has(.test-ribbon)){--journey-person:none;}

/* Final color grade is baked into the original photographic assets. */
body.player-body .cinema-landscape{filter:none;background-position:center 45%,center;}
body.player-body .cinema-shade{background:linear-gradient(180deg,#071524c9 0%,#09172765 19%,#07121b0a 40%,#07121b12 58%,#08131880 82%,#081318d9 100%);}
body.player-body .screen :is(.time-box,.rest-clock,.condition-card,.gps-card,.prep-info,.task-card,.quiz-verdict){background:linear-gradient(145deg,#17232b66,#10191f99);border-color:#e4c58aaa;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);}
body.player-body .screen :is(h1,h2,h3){font-family:Georgia,'Times New Roman',serif;color:#f5dba4;text-shadow:0 2px 6px #000b;}
body.player-body .screen p{font-size:16px;line-height:1.55;text-shadow:0 1px 4px #000,0 0 8px #0009;}
body.player-body[data-chapter="preWaitScreen"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-sunsettown.jpg');--journey-ratio:.75;}
body.player-body[data-chapter="loginScreen"]:not(:has(.test-ribbon)){--journey-person:url('/artwork/journey-coast.jpg');--journey-ratio:.74843175;}
body.player-body[data-chapter="loginScreen"]:not(:has(.test-ribbon)) .cinema-landscape::before,body.player-body[data-chapter="loginScreen"]:not(:has(.test-ribbon)) .cinema-landscape::after{content:none;}
body.player-body[data-chapter="fourthScreen"]:not(:has(.test-ribbon)){--journey-person:none;}
body.player-body[data-chapter="nextScreen"] .cinema-landscape{background-position:58% center,center;}
body.player-body[data-chapter="finishedScreen"] .cinema-landscape{background-position:50% 40%,center;}
body.player-body .screen :is(.spinner,.quiz-spinner,.loading-spinner){border-color:#e6c58a44;border-top-color:#f5dba4;}

/* Final chapter composition: original photographs, independent of game logic. */
body.player-body[data-chapter="preEmailScreen"]{--chapter-photo:url("/artwork/chapter-preEmailScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="preCodeScreen"]{--chapter-photo:url("/artwork/chapter-preCodeScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="preDateScreen"]{--chapter-photo:url("/artwork/chapter-preDateScreen.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="preDateScreen"]{--wide-photo:1;}
body.player-body[data-chapter="preWaitScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-preWaitScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="loginScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-loginScreen.jpg?v=20261205e");--chapter-ratio:0.74833;}
body.player-body[data-chapter="verificationScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-verificationScreen.jpg?v=20261205e");--chapter-ratio:0.56250;}
body.player-body[data-chapter="nextScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-nextScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="fourthScreen"]{--chapter-photo:url("/artwork/chapter-fourthScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="fifthScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-fifthScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="sixthScreen"]{--chapter-photo:url("/artwork/chapter-sixthScreen.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="sixthScreen"]{--wide-photo:1;}
body.player-body[data-chapter="seventhScreen"]{--chapter-photo:url("/artwork/chapter-seventhScreen.jpg?v=20261205e");--chapter-ratio:0.56250;}
body.player-body[data-chapter="eighthScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-eighthScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="coffeeScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-coffeeScreen.jpg?v=20261205e");--chapter-ratio:0.56250;}
body.player-body[data-chapter="ninthScreen"]{--chapter-photo:url("/artwork/chapter-ninthScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="missionSuccess"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-missionSuccess.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="missionSuccess"]:not(:has(.test-ribbon)){--wide-photo:1;}
body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-tenthScreen.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)){--wide-photo:1;}
body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-carReadyScreen.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)){--wide-photo:1;}
body.player-body[data-chapter="quizScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-quizScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="quizEval"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-quizEval.jpg?v=20261205e");--chapter-ratio:0.56250;}
body.player-body[data-chapter="quizResult"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-quizResult.jpg?v=20261205e");--chapter-ratio:0.56250;}
body.player-body[data-chapter="forestScreen"]{--chapter-photo:url("/artwork/chapter-forestScreen.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="forestScreen"]{--wide-photo:1;}
body.player-body[data-chapter="forestSuccess"]{--chapter-photo:url("/artwork/chapter-forestSuccess.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="forestSuccess"]{--wide-photo:1;}
body.player-body[data-chapter="bonusEnd"]:not(.test-player):not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-quizEval.jpg?v=20261205e");--chapter-ratio:0.70;}
body.player-body[data-chapter="bonusEnd"]:not(:has(.test-ribbon)){--wide-photo:1;}
body.player-body[data-chapter="bonusWheel"]:not(.test-player):not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-quizEval.jpg?v=20261205e");--chapter-ratio:0.46159;}
body.player-body[data-chapter="bonusTasks"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-bonusTasks.jpg?v=20261205e");--chapter-ratio:0.46159;}
body.player-body[data-chapter="bonusPhotoScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-bonusPhotoScreen.jpg?v=20261205e");--chapter-ratio:0.64128;}
body.player-body[data-chapter="lodgingScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-lodgingScreen.jpg?v=20261205e");--chapter-ratio:0.75000;}
body.player-body[data-chapter="settledScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-settledScreen.jpg?v=20261205e");--chapter-ratio:0.58230;}
body.player-body[data-chapter="finishedScreen"]:not(:has(.test-ribbon)){--chapter-photo:url("/artwork/chapter-finishedScreen.jpg?v=20261205e");--chapter-ratio:0.66667;}
body.player-body{--chapter-photo:none;--chapter-ratio:.6;--wide-photo:0;}
body.player-body .cinema-landscape{background:#14232c; background-image:var(--chapter-photo);background-size:cover;background-position:center 46%;}
body.player-body .cinema-landscape::before{content:none!important;}
body.player-body .cinema-landscape::after{content:none!important;}
body.player-body .cinema-shade{background:linear-gradient(180deg,#071421d9 0%,#09172770 15%,#09172708 35%,#09172700 55%,#090f1680 80%,#080f16e8 100%);}
body.player-body .screen,body.player-body #bonusWheel{padding:48px 22px 26px;min-height:100svh;max-width:480px;}
body.player-body .screen h1,body.player-body #preEmailScreen h1{font:400 clamp(29px,8vw,39px)/1.12 Georgia,serif;letter-spacing:-.02em;color:#f5d69c;margin:8px 0 12px;}
body.player-body .screen p{font:400 16px/1.45 Georgia,serif;margin-bottom:12px;color:#fff7e8;text-shadow:0 1px 5px #000;}
body.player-body .screen .chapter-scene,body.player-body #preEmailScreen .chapter-scene{height:36px;width:66px;margin:0 auto 6px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 48'%3E%3Cpath d='M4 42 32 14l11 11L60 5l26 37M20 42l18-18 17 17M50 15l10-10 10 11' fill='none' stroke='%23f1d29a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E")!important;}
body.player-body .screen .chapter-scene svg{visibility:hidden;}
body.player-body .screen :is(.condition-card,.gps-card,.prep-info,.time-box,.rest-clock,.task-card,.quiz-verdict){background:linear-gradient(145deg,#17232b66,#10191fa8);border:1px solid #e4c58aaa;border-radius:14px;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);}
body.player-body .screen input:not([type=checkbox]):not([type=radio]),body.player-body .screen select{background:#101b22a8;border-radius:999px;min-height:44px;padding:10px 15px;margin-bottom:10px;font:16px Georgia,serif;}
body.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button){font:600 17px Georgia,serif;min-height:46px;padding:12px 16px;background:linear-gradient(#ffe5b4,#e2ad60);}
body.player-body .screen label{font-size:13px;margin-bottom:6px;}
body.player-body #preEmailScreen .entry-label{padding-top:0;margin-top:auto;}
body.player-body #preEmailScreen:not(.hidden){display:flex;flex-direction:column;}
body.player-body #loginScreen .intro{padding-bottom:clamp(120px,24svh,240px);}
body.player-body #loginScreen .separator{margin:0 0 10px;}
body.player-body #nextScreen > p{margin-bottom:clamp(150px,30svh,280px);}
body.player-body #preWaitScreen > .gps-card{margin-top:clamp(140px,28svh,260px);}
body.player-body #finishedScreen h1{margin-top:12px;}
body.player-body #quizEval .progress-track{margin-top:clamp(140px,30svh,260px);}
body.player-body #quizEval :is(.spinner,.quiz-spinner){border-color:#e4c58a55;border-top-color:#f5d69c;}
body.player-body .screen .footer{margin-top:12px;}

body.player-body[data-chapter="preDateScreen"] .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="preDateScreen"] .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="sixthScreen"] .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="sixthScreen"] .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="missionSuccess"]:not(:has(.test-ribbon)) .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="missionSuccess"]:not(:has(.test-ribbon)) .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)) .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="tenthScreen"]:not(:has(.test-ribbon)) .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)) .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="carReadyScreen"]:not(:has(.test-ribbon)) .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="forestScreen"] .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="forestScreen"] .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="forestSuccess"] .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="forestSuccess"] .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
body.player-body[data-chapter="bonusEnd"]:not(:has(.test-ribbon)) .cinema-landscape::before{content:""!important;position:absolute;inset:0;background:var(--chapter-photo) center/cover;filter:blur(28px) brightness(.7);transform:scale(1.1);}
body.player-body[data-chapter="bonusEnd"]:not(:has(.test-ribbon)) .cinema-landscape::after{content:""!important;position:absolute;inset:0;width:100%;height:100%;transform:none;background:var(--chapter-photo) center/contain no-repeat;mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);-webkit-mask-image:linear-gradient(transparent 20%,black 37%,black 63%,transparent 80%);}
/* Portrait-first full-screen layout. */
body.player-body .cinema-landscape{background-size:cover!important;background-position:center center!important;}
body.player-body .cinema-shade{background:linear-gradient(180deg,rgba(6,19,34,.83),rgba(8,21,34,.35) 18%,transparent 39%,transparent 59%,rgba(13,15,16,.48) 79%,rgba(9,13,16,.94));}
body.player-body .screen :is(h1,h2){color:#f5d69c;text-shadow:0 2px 8px #000b;}
body.player-body .screen :is(.condition-card,.gps-card,.prep-info,.time-box,.rest-clock,.task-card,.quiz-verdict){background:linear-gradient(145deg,#25232155,#11171999);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-color:#e4c58ab8;}
body.player-body #preEmailScreen .entry-label{margin-top:auto;}
body.player-body #loginScreen .intro{padding-bottom:clamp(100px,23svh,210px);}


body.player-body[data-chapter="preDateScreen"] .cinema-landscape::before,body.player-body[data-chapter="preDateScreen"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="sixthScreen"] .cinema-landscape::before,body.player-body[data-chapter="sixthScreen"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="missionSuccess"] .cinema-landscape::before,body.player-body[data-chapter="missionSuccess"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="tenthScreen"] .cinema-landscape::before,body.player-body[data-chapter="tenthScreen"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="carReadyScreen"] .cinema-landscape::before,body.player-body[data-chapter="carReadyScreen"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="forestScreen"] .cinema-landscape::before,body.player-body[data-chapter="forestScreen"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="forestSuccess"] .cinema-landscape::before,body.player-body[data-chapter="forestSuccess"] .cinema-landscape::after{content:none!important;}


body.player-body[data-chapter="bonusEnd"] .cinema-landscape::before,body.player-body[data-chapter="bonusEnd"] .cinema-landscape::after{content:none!important;}

/* Player typography and portrait artwork refinement */
body.player-body .cinema-landscape{background-image:var(--chapter-photo)!important;background-size:cover!important;background-position:center center!important;}
body.player-body .cinema-landscape::before,body.player-body .cinema-landscape::after{content:none!important;}
body.player-body .screen :is(h1,h2,h3),body.player-body #preEmailScreen h1{font-family:var(--game-serif)!important;font-weight:500;letter-spacing:-.025em;line-height:1.16;}
body.player-body .screen :is(p,label,input,select,button,.check-row,.condition-title,.task-card,.footer,.quiz-options),body.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button){font-family:var(--game-serif)!important;letter-spacing:0;}
body.player-body .screen p{font-size:16px;line-height:1.55;text-shadow:0 1px 5px #000,0 0 12px #0008;}
body.player-body .screen :is(label,.check-row){font-size:15px;line-height:1.5;}
body.player-body .screen button{font-weight:600;}
body.player-body .screen :is(input,select){font-size:16px;}

/* Final screen artwork and compact email entry */
body.player-body #preEmailScreen .entry-label{font-size:0!important;line-height:0!important;padding:0!important;margin-top:auto;margin-bottom:0!important;}
body.player-body #preEmailScreen #preEmail{box-sizing:border-box;width:100%;padding-left:48px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5d69c' stroke-width='1.5'%3E%3Crect x='2' y='4' width='20' height='16' rx='3'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:16px center;background-size:22px;}
body.player-body #preEmailScreen > p:not(.error){max-width:290px;margin-inline:auto;text-wrap:balance;}
body.player-body .screen input[type=date]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;}
body.player-body[data-chapter="finalAudioScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-finalAudioScreen.jpg?v=20261205e');}
body.player-body[data-chapter="audioWaitScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-audioWaitScreen.jpg?v=20261205e');}
body.player-body[data-chapter="mediaScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-mediaScreen.jpg?v=20261205e');}
body.player-body[data-chapter="answerScreen"]{--chapter-photo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 850'%3E%3Cdefs%3E%3CradialGradient id='b'%3E%3Cstop stop-color='%233b4244'/%3E%3Cstop offset='1' stop-color='%230b141b'/%3E%3C/radialGradient%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%238e6938'/%3E%3Cstop offset='.45' stop-color='%23ffe5a7'/%3E%3Cstop offset='1' stop-color='%23b58b50'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23b)' d='M0 0h400v850H0z'/%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='8'%3E%3Cellipse cx='168' cy='205' rx='54' ry='34' transform='rotate(-25 168 205)'/%3E%3Cellipse cx='236' cy='224' rx='54' ry='34' transform='rotate(25 236 224)'/%3E%3C/g%3E%3Cpath d='m205 175 13-16 20 4 8 18-21 17z' fill='%23f8ead4' stroke='%23c9a76b'/%3E%3C/svg%3E");}
body.player-body[data-chapter="answerScreen"] .cinema-shade{background:linear-gradient(180deg,#07142122,#07142100 35%,#07142188 65%,#080f16bb);}
body.player-body:is([data-chapter="finalAudioScreen"],[data-chapter="audioWaitScreen"],[data-chapter="mediaScreen"]) .cinema-shade{background:linear-gradient(180deg,#071421e8,#07142188 45%,#080f1666 75%,#080f16dd);}
body.player-body #fourthScreen .time-box{background:#10182055!important;backdrop-filter:blur(5px);}

/* Elegant final pass: only player presentation, game controls unchanged. */
body.player-body{--chapter-photo:url('/artwork/journey-ridge.jpg');}
body.player-body[data-chapter="preEmailScreen"]{--chapter-photo:url('/artwork/chapter-preEmailScreen.jpg?v=20261205e');}
body.player-body[data-chapter="preEmailScreen"] .cinema-shade{background:linear-gradient(180deg,#06172bd9 0%,#071c3155 22%,transparent 42%,transparent 59%,#071c3044 80%,#061520c9 100%);}
body.player-body #preEmailScreen:not(.hidden){min-height:100svh;padding-top:clamp(34px,6svh,55px);padding-bottom:max(24px,env(safe-area-inset-bottom));}
body.player-body #preEmailScreen h1{font-size:clamp(29px,8.5vw,41px);letter-spacing:-.02em;}
body.player-body #preEmailScreen #preEmail{margin-top:0;margin-bottom:12px;min-height:52px;padding-left:49px;background-color:#102c3b66;border-color:#e4c58ad9;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
body.player-body #preEmailScreen #preSend{margin-top:0;min-height:52px;}
body.player-body #preEmailScreen .entry-label{min-height:0!important;}
body.player-body .screen :is(.waiting-box,.quiz-intro-card,.prep-info,.condition-card,.gps-card,.time-box,.rest-clock,.task-card,.quiz-verdict){background:linear-gradient(145deg,rgba(13,25,32,.34),rgba(9,19,25,.49))!important;border:1px solid #e4c58aab;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-shadow:none;}
body.player-body #fourthScreen .waiting-box{padding:16px;align-items:center;margin-top:18px;text-align:left;}
body.player-body #fourthScreen .waiting-box p{font-size:14px;line-height:1.45;margin:3px 0 0;}
body.player-body #fourthScreen .waiting-box strong{font-size:15px;}
body.player-body #fourthScreen .time-box{background:#10222b55!important;}
body.player-body .screen :is(h1,h2,h3){font-family:var(--game-serif)!important;font-weight:500;}
body.player-body .screen :is(p,label,input,select,button,.check-row,.condition-title,.prep-row,.footer){font-family:var(--game-serif)!important;}
body.player-body .screen p{font-size:15px;line-height:1.55;text-shadow:0 1px 5px #000b;}
body.player-body .screen :is(input,select){max-width:100%;min-width:0;}
body.player-body .screen :is(input,select):focus-visible,body.player-body .screen button:focus-visible{outline:2px solid #ffdfa2;outline-offset:3px;}
body.player-body[data-chapter="bonusEnd"]:not(.test-player):not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-quizEval.jpg?v=20261205e');}
body.player-body[data-chapter="finalDestination"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-finalDestination.jpg?v=20261205e');}
body.player-body[data-chapter="forestEnd"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-forestEnd.jpg?v=20261205e');}
body.player-body[data-chapter="answerScreen"]{--chapter-photo:url('/artwork/journey-ridge.jpg');}
body.player-body[data-chapter="answerScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-answerScreen.jpg?v=20261205e');}
body.player-body[data-chapter="answerScreen"] .cinema-shade{background:linear-gradient(180deg,#07142110,transparent 42%,#07142125 70%,#07142170);}
body.player-body #answerScreen:not(.hidden){display:flex;flex-direction:row;align-items:flex-end;justify-content:center;gap:24px;padding:24px 20px max(56px,12svh)!important;min-height:100svh;}
body.player-body #answerScreen #answerYes,body.player-body #answerScreen #answerNo{width:clamp(102px,29vw,140px)!important;height:clamp(102px,29vw,140px)!important;min-height:0!important;border-radius:50%!important;margin:0;font:500 27px/1 var(--game-serif)!important;letter-spacing:1px!important;border:1px solid #efcc8d!important;}
body.player-body #answerScreen #answerNo:not(:disabled){background:rgba(9,20,29,.46);color:#f7dca8;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
body.player-body[data-chapter="finalAudioScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-finalAudioScreen.jpg?v=20261205e');}
body.player-body[data-chapter="audioWaitScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-audioWaitScreen.jpg?v=20261205e');}
body.player-body[data-chapter="mediaScreen"]:not(:has(.test-ribbon)){--chapter-photo:url('/artwork/chapter-mediaScreen.jpg?v=20261205e');}
body.player-body[data-chapter="audioWaitScreen"] .cinema-shade{background:linear-gradient(180deg,#071421c9,#07142155 27%,transparent 46%,#07142122 70%,#071421bb);}
body.player-body #audioWaitScreen:not(.hidden){display:flex;flex-direction:column;min-height:100svh;}
body.player-body #audioWaitScreen button{margin-top:auto;margin-bottom:36px;}
body.player-body #mediaScreen{padding-bottom:max(32px,env(safe-area-inset-bottom));}
@media (max-width:360px){body.player-body #answerScreen:not(.hidden){gap:16px;}body.player-body #preEmailScreen #preEmail{padding-left:42px;font-size:16px;}}

/* Last composition check: keep faces visible above the controls. */
body.player-body[data-chapter="nextScreen"] .cinema-landscape{background-position:82% center!important;}
body.player-body[data-chapter="loginScreen"] .cinema-landscape{background-position:55% center!important;}
body.player-body #loginScreen .intro{padding-bottom:0;}
body.player-body #loginScreen .separator{margin-top:clamp(195px,36svh,335px);}
body.player-body #loginScreen form input{margin-bottom:13px;}
body.player-body #loginScreen form label{font-size:13px;}
body.player-body #bonusEnd:not(.hidden){display:flex;flex-direction:column;min-height:100svh;}
body.player-body #bonusEnd button:first-of-type{margin-top:auto;}
body.player-body #bonusEnd button:last-of-type{margin-bottom:max(24px,env(safe-area-inset-bottom));}
body.player-body[data-chapter="finishedScreen"] .cinema-landscape{filter:none;}
body.player-body[data-chapter="finishedScreen"] .cinema-shade{background:linear-gradient(180deg,#071421bb,#07142144 24%,transparent 45%,transparent 70%,#07142188 100%);}


/* Jednotné patkové písmo a drobné mobilní doladění – pouze hráčská část. */
body.player-body {
    --game-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-family: var(--game-serif);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body.player-body :is(.screen, dialog, .game-sound, .connection-message),
body.player-body :is(.screen, dialog, .game-sound, .connection-message) * {
    font-family: var(--game-serif) !important;
}
body.player-body .screen :is(h1,h2,h3) {
    font-weight: 600;
    letter-spacing: -.025em;
    text-wrap: balance;
}
body.player-body .screen p { line-height: 1.55; }
body.player-body #quizEval #evalText,
body.player-body #finishedScreen #finishText { font-style: italic; }
body.player-body .screen :is(button,input,select,textarea) { max-width: 100%; min-width: 0; }
body.player-body .screen :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
    font-size: 16px;
}
body.player-body .screen button { white-space: normal; overflow-wrap: anywhere; }
body.player-body .screen input[type=date] {
    display: block;
    width: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    -webkit-appearance: none;
    appearance: none;
}
body.player-body .screen input[type=date]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}
body.player-body .screen input[type=date]::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
}
body.player-body .screen :is(audio,video,img) { max-width: 100%; }
body.player-body .screen .birth-date { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.1fr); }
body.player-body .screen .birth-date select { padding-inline: 8px; }
body.player-body #fourthScreen .waiting-box > div:last-child { min-width: 0; }
body.player-body #mediaScreen .media-controls { flex-wrap: wrap; }
body.player-body #mediaScreen .media-controls button { flex: 1 1 100px; min-width: 0; width: auto; }
body.player-body #bonusWheel #wheelSvg text { font-family: var(--game-serif) !important; }
body.player-body #finalMap .leaflet-container,
body.player-body #finalMap .leaflet-control-attribution { font-family: var(--game-serif); }
@media (max-width: 480px) {
    body.player-body .screen { padding-inline: clamp(14px,5vw,22px); }
    body.player-body .screen p { font-size: 16px; }
    body.player-body .screen .small-text { font-size: 13px; }
    body.player-body .screen button:not(.password-eye) { min-height: 48px; }
    body.player-body .screen .time-box span { font-size: clamp(9px,2.6vw,11px); letter-spacing: 0; }
    body.player-body #fourthScreen .waiting-box p { font-size: 14px; }
    body.player-body #preEmailScreen > p:not(.error) { max-width: 100%; }
    body.player-body #preEmailScreen #preEmail { padding-right: 14px; }
}
@media (max-width: 360px) {
    body.player-body .screen h1 { font-size: clamp(26px,8.2vw,30px); }
    body.player-body #preEmailScreen h1 { font-size: clamp(26px,8.2vw,30px); }
    body.player-body .screen .birth-date select { padding-inline: 5px; }
    body.player-body .screen .countdown { gap: 5px; }
    body.player-body .screen .time-box strong { font-size: 24px; }
}

/* Pouze tři domluvené změny fotografií. */
body.player-body[data-chapter="eighthScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url('/artwork/chapter-eighthScreen.jpg?v=20261205g'); --chapter-ratio:0.75; }
body.player-body[data-chapter="tenthScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url('/artwork/chapter-quizScreen.jpg?v=20261205e'); --chapter-ratio:0.75; --wide-photo:0; }
body.player-body[data-chapter="lodgingScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url('/artwork/chapter-lodgingScreen.jpg?v=20261205g'); --chapter-ratio:0.734; }

/* Pouze pět domluvených obrazovek. */
body.player-body[data-chapter="coffeeScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url("/artwork/chapter-coffeeScreen.jpg?v=20261205h"); --wide-photo:0; }
body.player-body[data-chapter="missionSuccess"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url("/artwork/chapter-missionSuccess.jpg?v=20261205h"); --wide-photo:0; }
body.player-body[data-chapter="carReadyScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url("/artwork/chapter-carReadyScreen.jpg?v=20261205h"); --wide-photo:0; }
body.player-body[data-chapter="settledScreen"]:not(.test-player):not(:has(.test-ribbon)) { --chapter-photo:url("/artwork/chapter-settledScreen.jpg?v=20261205h"); --wide-photo:0; }
body.player-body[data-chapter="bonusEnd"] .cinema-landscape { filter:none!important; }
body.player-body[data-chapter="bonusEnd"] .cinema-landscape::before, body.player-body[data-chapter="bonusEnd"] .cinema-landscape::after { content:none!important; }
body.player-body[data-chapter="bonusEnd"] .cinema-shade, body.player-body #bonusEnd, body.player-body #bonusEnd > * { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body.player-body[data-chapter="coffeeScreen"] #coffeeScreen .chapter-scene { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 48'%3E%3Cg fill='none' stroke='%23f1d29a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M25 19h36v12q0 10-18 10T25 31zM61 21h7q12 0 8 9-3 6-15 5M19 44h51M36 13q-5-5 0-10M47 13q-5-5 0-10'/%3E%3C/g%3E%3C/svg%3E")!important; }

/* Čtyři domluvené úpravy: ostré fotografie, žádné rozmazané okraje. */
body.player-body[data-chapter="sixthScreen"]:not(.test-player):not(:has(.test-ribbon)) {
    --chapter-photo:url('/artwork/chapter-sixthScreen-live.jpg?v=20261205i');
    --chapter-ratio:0.63712;
    --wide-photo:0;
}
body.player-body:is([data-chapter="carReadyScreen"],[data-chapter="tenthScreen"],[data-chapter="bonusEnd"],[data-chapter="sixthScreen"]):not(.test-player):not(:has(.test-ribbon)) .cinema-landscape {
    filter:none!important;
    background-size:cover!important;
    background-position:center center!important;
}
body.player-body:is([data-chapter="carReadyScreen"],[data-chapter="tenthScreen"],[data-chapter="bonusEnd"],[data-chapter="sixthScreen"]):not(.test-player):not(:has(.test-ribbon)) .cinema-landscape::before,
body.player-body:is([data-chapter="carReadyScreen"],[data-chapter="tenthScreen"],[data-chapter="bonusEnd"],[data-chapter="sixthScreen"]):not(.test-player):not(:has(.test-ribbon)) .cinema-landscape::after {
    content:none!important;
    filter:none!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
}
body.player-body:is([data-chapter="carReadyScreen"],[data-chapter="tenthScreen"],[data-chapter="bonusEnd"]):not(.test-player):not(:has(.test-ribbon)) :is(.cinema-shade,.screen,.screen *) {
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}

/* Kleymissky: pouze hlavní nadpisy hráčské části. */
@font-face {
    font-family: "Kleymissky";
    src: url("/fonts/kleymissky.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
body.player-body .screen h1,
body.player-body #preEmailScreen h1 {
    font-family: "Kleymissky", "Lora", Georgia, serif !important;
    font-size: clamp(32px, 9.5vw, 46px);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1.35;
    text-wrap: balance;
    overflow-wrap: normal;
    padding-inline: 8px;
}
body.player-body #blockedScreen h1 { font-size: clamp(24px, 7vw, 32px); }
body.player-body :is(#preEmailScreen, #finishedScreen) h1 { font-size: clamp(36px, 11vw, 52px); }

/* Lora – doprovodné texty, bez změny fotografií a herní logiky. */
@font-face {
    font-family: "Lora";
    src: url("/fonts/lora-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Lora";
    src: url("/fonts/lora-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Lora";
    src: url("/fonts/lora-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}
body.player-body {
    --game-serif: "Lora", Georgia, "Times New Roman", serif;
}
/* Hlavní nadpisy zůstávají Kleymissky, normální řez. */
body.player-body .screen :is(h2,h3) { font-weight:700; }
body.player-body .screen :is(p,label,input,select,textarea) { font-weight:400; }
body.player-body .screen :is(strong,b,.condition-title) { font-weight:700; }
body.player-body .screen button:not(.password-eye) { font-weight:700!important; }
body.player-body .screen button.secondary-button,
body.player-body .screen #quizOptions button { font-weight:400!important; }
body.player-body #answerScreen :is(#answerYes,#answerNo) { font-weight:700!important; }
body.player-body #finishedScreen #finishText { font-style:italic; font-weight:400; }
/* Odstranit pouze dekorativní záhlaví. Číslo otázky, QR informace,
   upozornění, časovače, testovací označení a ovládání zůstávají. */
body.player-body .screen .chapter-scene,
body.player-body .screen > .badge:first-child,
body.player-body .screen > header > .badge:first-child,
body.player-body .screen .step-label,
body.player-body .screen #transferSuccessTitle {
    display:none!important;
}

/* Časové údaje a souřadnice: původní čitelný řez, nikoli Lora Bold. */
body.player-body .screen :is(.gps-value,.time-box strong,.quiz-clock strong,#preCodeTime,#restCountdown) {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif !important;
    font-variant-numeric: tabular-nums;
}
body.player-body .screen :is(.gps-value,.time-box strong,.quiz-clock strong) { font-weight:400; }

/* Pevne pozadi: velikost fotografie se nemeni pri skryvani list Safari.
   100lvh je stabilni vyska pri skrytych listach; starsi prohlizece maji 100vh. */
body.player-body .cinema-backdrop {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}
body.player-body .cinema-landscape,
body.player-body .cinema-shade {
    position: absolute !important;
    inset: 0 !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Stabilní hráčská plocha: dokument se neposouvá, posouvá se pouze obsah.
   Fotografie má stálý výřez i při změně výšky lišty prohlížeče. */
html:has(> body.player-body) {
    overflow: hidden;
    overscroll-behavior: none;
}
body.player-body {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
body.player-body::-webkit-scrollbar { display: none; }
body.player-body > .screen { flex-shrink: 0; }
body.player-body .cinema-backdrop {
    height: 100vh;
    height: 100lvh;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0) !important;
}
/* Kleymissky má výrazné tahy a hluboké dotažnice; nechat jim prostor. */
body.player-body .screen h1,
body.player-body #preEmailScreen h1 {
    font-size: clamp(32px, 9.5vw, 46px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
body.player-body #blockedScreen h1 { font-size: clamp(24px, 7vw, 32px); }
body.player-body :is(#preEmailScreen, #finishedScreen) h1 { font-size: clamp(36px, 11vw, 52px); }

/* Player typography only. */
@font-face {font-family:Allura;src:url('/fonts/allura.ttf') format('truetype');font-weight:400;font-display:swap;}
@font-face {font-family:Montserrat;src:url('/fonts/montserrat.ttf') format('truetype');font-weight:100 900;font-display:swap;}
@font-face {font-family:Montserrat;src:url('/fonts/montserrat-italic.ttf') format('truetype');font-weight:100 900;font-style:italic;font-display:swap;}
@font-face {font-family:Tenor;src:url('/fonts/tenor.ttf') format('truetype');font-weight:400;font-display:swap;}
body.player-body {--game-serif:Montserrat,Arial,sans-serif;}
body.player-body .screen h1,body.player-body #preEmailScreen h1 {font-family:Allura,cursive!important;}
body.player-body .screen button:not(.password-eye):not(:disabled):not(.secondary-button),body.player-body .screen button,body.player-body .screen button *,body.player-body #wheelSpin:not(:disabled),body.player-body .screen button.secondary-button:not(:disabled),body.player-body .screen #quizOptions button:not(:disabled),body.player-body #answerScreen :is(#answerYes,#answerNo),body.player-body button.game-sound {font-family:Tenor,Arial,sans-serif!important;font-weight:400!important;}
body.player-body #quitConfirmation {box-sizing:border-box;width:min(90vw,420px);max-height:85dvh;overflow:auto;background:linear-gradient(150deg,#14242e,#10191f);color:#fff4e0;border:1px solid #b99a65;border-radius:22px;padding:24px;text-align:center;box-shadow:0 12px 50px #0009;}
body.player-body #quitConfirmation::backdrop {background:#061018b8;}
body.player-body #quitConfirmation h2 {font-family:Allura,cursive!important;font-size:36px;font-weight:400;color:#f5dba4;margin:16px 0;line-height:1.2;}
body.player-body #quitConfirmation button {font-family:Tenor,Arial,sans-serif!important;font-weight:400!important;width:100%;margin-top:12px;white-space:normal;}
body.player-body #quitConfirmation .quit-count {font-size:13px;color:#e5c58d;}

/* Only date field sizing and car accommodation perks. */
body.player-body #preDateScreen #preDay {box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;align-self:stretch;margin-inline:0!important;display:block;}
body.player-body #preDay::-webkit-date-and-time-value {min-width:0;text-align:left;}
body.player-body #carPerks {text-align:center;}
body.player-body #carPerks h3 {margin:0 0 14px;color:#f0d39b;}
body.player-body #carPerks .car-perk-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.player-body #carPerks .car-perk {min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 6px;border:1px solid #d5b77b66;border-radius:13px;background:#10201955;animation:carPerkIn .45s both;animation-delay:var(--perk-delay);}
body.player-body #carPerks .car-perk svg {width:29px;height:29px;color:#f0d39b;}
body.player-body #carPerks .car-perk strong {font-size:clamp(12px,3.5vw,16px);line-height:1.35;overflow-wrap:anywhere;}
body.player-body #carPerks .car-perk small {font-size:clamp(10px,2.9vw,13px);line-height:1.4;color:#e3ddcf;}
body.player-body #carPerks > p {margin:16px 0 0;text-align:center;}
@keyframes carPerkIn {from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body.player-body #carPerks .car-perk{animation:none;}}

/* Six requested refinements, player only. */
body.player-body {--text:#F5E9D5;color:var(--text);}
body.player-body .screen :is(p,label,.check-row,.footer,.counter,.countdown-heading,.quiz-duration) {color:#F5E9D5;}
body.player-body #seventhScreen h1 {font-family:Montserrat,Arial,sans-serif!important;font-weight:700!important;letter-spacing:1px;}
body.player-body #preDateScreen #preDay {appearance:none;-webkit-appearance:none;box-sizing:border-box!important;width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;min-width:0!important;margin-inline:auto!important;align-self:center!important;padding-inline:10px!important;}
body.player-body #preDateScreen #preDay::-webkit-date-and-time-value {min-width:0;width:100%;text-align:center;}
body.player-body #preDateScreen #preDay::-webkit-datetime-edit {min-width:0;padding:0;}
body.player-body .headphone-tip {display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0 18px;}
body.player-body .headphone-tip svg {width:28px;height:28px;color:#e5bf85;}
body.player-body .headphone-tip p {margin:0;}
body.player-body #finalAudio[hidden] {display:none!important;}
body.player-body #audioConfirmation {box-sizing:border-box;width:min(90vw,420px);max-height:85dvh;overflow:auto;background:linear-gradient(150deg,#14242e,#10191f);color:#F5E9D5;border:1px solid #b99a65;border-radius:22px;padding:24px;text-align:center;box-shadow:0 12px 50px #0009;font-family:Montserrat,Arial,sans-serif;}
body.player-body #audioConfirmation::backdrop {background:#061018b8;}
body.player-body #audioConfirmation h2 {font-family:Allura,cursive;font-size:36px;font-weight:400;color:#f5dba4;margin:0 0 16px;}
body.player-body #audioConfirmation button {font-family:Tenor,Arial,sans-serif!important;font-weight:400!important;width:100%;margin-top:12px;white-space:normal;}

/* Vzdusne rozmisteni: pouze hracske obrazovky, bez ERROR a blokace. */
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > h1,
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > header > h1 { padding-bottom: 0; }
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > h1::after,
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > header > h1::after {
 content: ""; display: block; width: min(100%, 300px); height: 33px;
 margin: 3px auto 0; pointer-events: none;
 background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%2035%22%3E%3Cpath%20d%3D%22M53%2022%20Q140%207%20244%2019%20C263%2024%20278%205%20267%203%20C261%201%20256%208%20258%2011%20C248%20-1%20237%208%20246%2017%20Q254%2025%20267%2030%22%20stroke%3D%22%23d4ae70%22%20stroke-width%3D%221.25%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
 animation: headingHeartReveal 1.15s ease-out both;
}
@keyframes headingHeartReveal { from {clip-path: inset(0 100% 0 0);} to {clip-path: inset(0 0 0 0);} }
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > p:not([id]):not(.error):not(.small-text):not(.hidden),
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > header > p:not([id]):not(.error):not(.small-text) {
 max-width: 34ch; margin-inline: auto; text-wrap: pretty;
}
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > p:not([id]):not(.error):not(.small-text):not(.hidden) + p:not([id]):not(.error):not(.small-text):not(.hidden) {margin-top: 20px;}
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > p:not([id]):not(.error):not(.small-text):not(.hidden) + button:not(.hidden) {margin-top: 24px;}
@media (prefers-reduced-motion: reduce) {
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > h1::after,
body.player-body .screen:not(#seventhScreen):not(#blockedScreen) > header > h1::after {animation: none;}
}
