/* Constant space for one 320 x 50 AdSense unit; never resize after fill/no-fill. */
:root{--ad-reserve:calc(88px + env(safe-area-inset-bottom,0px))}
body{display:block;padding-bottom:0}
#app{height:calc(100dvh - var(--ad-reserve));min-height:0}
#advertising-slot{position:fixed;inset:auto 0 0;height:var(--ad-reserve);box-sizing:border-box;background:transparent;border:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 0 calc(6px + env(safe-area-inset-bottom,0px));gap:4px;z-index:90}
.ad-caption{width:320px;max-width:100%;display:flex;align-items:center;justify-content:space-between;height:16px;font-size:10px;line-height:16px;color:var(--ink);padding:0 3px}
.ad-caption a{color:inherit;text-underline-offset:2px}
#troveu-ad{flex:0 0 50px;width:320px;height:50px;background:transparent}
#toast{bottom:calc(var(--ad-reserve) + 10px)}
.top-tools{gap:2px;flex-shrink:0}
.studio{max-width:calc(100% - 190px)}
@media(max-width:319px){#troveu-ad{display:none!important}}
@media(max-height:700px) and (max-width:599px){
 .home-title{padding:5px 0 8px}.placement-hints{margin-top:10px}
 .home-actions{margin-top:8px}.home-intro h2{font-size:1.45rem}
 .home-intro p{font-size:.8rem}.home-actions .text-button{padding:8px;min-height:36px}
 .game-facts{font-size:.7rem;gap:10px}.app-shell{padding-bottom:8px}
 .handoff-person h1{font-size:2.3rem}.handoff-person{padding-top:4px}
 .verify .letter-rack{min-height:40px;padding:3px 0}.verify .placed-tile{max-height:38px}
 .verify .screen-heading h1{font-size:1.4rem}.verify .verify-heading{margin:3px 0}
 .verify .solution-block{padding:4px;margin:4px 0}.verify .solution-word{font-size:1.3rem}
 .verify-hint{font-size:.68rem}.judge-buttons .button{min-height:44px}
 .result .result-symbol{width:40px;height:40px;margin:4px auto}
 .result .solution-block{margin:6px 0;padding:6px}.result .screen-heading h1{font-size:1.65rem}
}
@media(max-height:500px) and (min-width:600px){
 .app-shell{padding-top:2px;padding-bottom:6px}
 .app-shell>.screen{padding-top:3px}
 .home-title{padding:0}.wordmark{font-size:2.4rem}.placement-hints{margin-top:10px}
 .home-intro h2{font-size:1.2rem}.home-intro p{font-size:.7rem}
 .home-actions .text-button{min-height:32px;padding:5px}
 .game-screen{gap:3px 20px}
 .malus-banner{padding:4px 6px}.malus-title strong{font-size:1.05rem}.malus-copy p{font-size:.65rem}
 .malus-emblem{width:24px;height:24px}.players-count{min-height:24px;padding:2px 6px}
 .game-hud{gap:3px}.handoff-person h1{font-size:1.8rem}.handoff-person .eyebrow{font-size:.65rem}
 .handoff .bottom-action>p{font-size:.65rem;margin-top:3px}
 .verify .screen-heading h1{font-size:1.1rem}.verify .screen-heading p,.verify .answer-rule,.verify-hint{font-size:.65rem}
 .verify .solution-word{font-size:1.2rem}.verify .solution-block{padding:3px}
 .verify .letter-rack{min-height:34px}.verify .placed-tile{max-height:32px}
 .judge-buttons .button{min-height:40px;padding:6px}.verify .eyebrow{font-size:.6rem}
 .result .result-symbol{display:none}.result .screen-heading{grid-row:1/3}
 .result .screen-heading h1{font-size:1.5rem}.result .screen-heading p{font-size:.75rem}
 .result .solution-block{padding:6px}.result .solution-word{font-size:1.5rem}
 .result .bottom-action>p{font-size:.65rem}.result .bottom-action .text-button{padding:5px;min-height:30px}
 .winner-crown{width:44px;height:44px}.winner-crown .icon{width:30px;height:30px}
 .winner-name{font-size:2rem}.winner .eyebrow{font-size:.65rem}
 .winner-actions .text-button{min-height:32px;padding:5px}
 .setup .screen-heading h1{font-size:1.5rem}.setup .screen-heading p{font-size:.7rem}
 .setup .name-row{min-height:40px}.setup .timer-choice p{font-size:.6rem;margin-top:4px}
 .setup .add-player{margin:2px 0;min-height:34px}.setup .button.big{min-height:42px;padding:6px}
 .setup .timer-options span{font-size:1.1rem;padding:4px}.setup .timer-choice legend{font-size:.7rem}
}
@media(max-height:600px) and (max-width:599px){
 .setup .screen-heading p:not(.eyebrow){font-size:.7rem;line-height:1.25}
 .setup .screen-heading h1{font-size:1.65rem}.setup .screen-heading{margin-bottom:4px}
 .setup .timer-choice p{font-size:.65rem;margin-top:3px;line-height:1.2}
 .setup .add-player{margin:3px 0 5px;min-height:34px;padding:4px}
 .setup .timer-options span{font-size:1.2rem;padding:4px}.setup .timer-choice{margin-bottom:3px}
 .solve .timer{width:78px;height:78px;margin:0}.solve .turn-heading{margin:4px 0}
 .solve .bottom-action .answer-instruction{margin-bottom:6px}
}
@media(max-height:600px) and (max-width:599px){
 .result:has(.roster-player:nth-child(9)) .bottom-action .text-button{min-height:32px;padding:6px}
 .result:has(.roster-player:nth-child(9)) .survivors{margin-top:4px}
}
@media(max-height:600px) and (max-width:599px){
 .result:has(.roster-player:nth-child(9)) .avatar{display:none}
 .result:has(.roster-player:nth-child(9)) .roster-player{padding:4px;font-size:.7rem}
 .result:has(.roster-player:nth-child(9)) .solution-block{margin:4px 0;padding:4px}
}
@media(min-height:701px) and (max-height:850px){
 .verify .verify-heading h1{font-size:1.8rem;margin:4px 0}
 .verify .verify-heading{margin-top:4px}
 .verify .solution-block{margin:7px 0;padding:8px}
}
@media(max-height:500px) and (min-width:600px){
 .solve .turn-heading{margin:0}.solve .turn-heading h1{font-size:1.3rem}
 .solve .timer{width:48px;height:48px}.solve .timer strong{font-size:1.5rem}
 .solve .bottom-action{padding-top:0}.solve .bottom-action .answer-instruction{margin-bottom:3px;font-size:.65rem}
 .solve .button.big{min-height:42px;padding:6px 10px;font-size:1.05rem}
 .verify .verify-heading h1{font-size:1.1rem;margin:1px 0}.verify .verify-heading{margin:0}
 .verify .solution-block{margin:0;padding:3px}
 .verify .judge-buttons{gap:8px}.verify .judge-buttons .button{min-height:36px;padding:5px}
}
/* Give the player list priority over introductory copy and empty messages. */
.setup .screen-heading{margin-bottom:8px}
.setup .screen-heading h1{font-size:clamp(1.75rem,6vw,2.4rem);margin:2px 0 8px}
.setup .player-inputs{gap:8px;padding:3px 5px 8px;min-height:65px}
.setup .name-row{height:54px;min-height:54px;flex:0 0 54px;padding:2px 8px;gap:8px;border-radius:14px}
.setup .name-row input{font-size:1rem;padding:6px 2px}
.setup .name-number{width:30px;height:30px}
.setup .remove-player{height:44px;width:44px}
.setup .add-player{min-height:44px;padding:8px;margin:8px 0 12px}
.setup .timer-choice{margin:0 0 10px}
.setup .timer-choice legend{margin-bottom:8px}
.setup .timer-options span{font-size:1.4rem;padding:7px 6px}
.setup .form-error:empty{display:none}
.setup .form-error:not(:empty){min-height:0;margin:6px 0;font-size:.8rem}
.setup #setup-form>.button{flex-shrink:0}
@media(max-height:600px) and (max-width:599px){
 .setup .screen-heading{margin-bottom:4px}.setup .screen-heading h1{margin-bottom:4px}
 .setup .add-player{margin:6px 0 8px}.setup .timer-choice{margin-bottom:8px}
 .setup .timer-choice legend{margin-bottom:5px}
}
@media(max-height:500px) and (min-width:600px){
 .setup .screen-heading h1{font-size:1.5rem}
 .setup .add-player{margin:2px 0;min-height:40px;padding:6px}
 .setup .timer-options span{font-size:1.1rem;padding:4px}
 .setup .timer-choice legend{font-size:.8rem;margin-bottom:5px}
 .setup #setup-form>.button{grid-row:4}
}

/* The home control uses the same colored letter logo as the title. */
.home-return{gap:4px;padding-right:0;flex-shrink:0}
.home-return>.icon{flex-shrink:0}
.home-return>.wordmark-mini{font-family:'Fredoka','Arial Rounded MT Bold','Trebuchet MS',sans-serif;font-size:clamp(10px,calc(7vw - 12.4px),16px);font-weight:600;line-height:1.08;letter-spacing:-.025em;gap:1px;padding:0;margin:0}
.wordmark-mini .logo-tile{border-width:1px;flex-shrink:0;animation:none}
/* Keep the result controls above the reserved strip on short portrait screens. */
@media(max-height:600px) and (max-width:599px){.result .bottom-action{padding-top:0}}
