/* Home and touch-first gameplay */
.home-screen{margin:28px 0 32px;position:relative;min-height:580px;display:grid;grid-template-columns:1fr 1fr;background:#dcf2e4;border:1px solid #bfe3cd;border-radius:var(--r-card);overflow:hidden}.home-landscape{grid-column:2;grid-row:1;min-height:580px;background-position:76% center;background-size:cover}.home-copy{grid-column:1;grid-row:1;padding:65px 45px;background:linear-gradient(110deg,#faf9ec,#f3f5e9);position:relative}.home-copy h1{font-size:43px;letter-spacing:-1.7px;line-height:1.14}.home-copy h1 em{font-style:normal;color:#6d3bd1}.home-copy>p{color:var(--muted);line-height:1.9;margin-top:17px;font-size:13px;max-width:360px}.home-badges{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 30px}.home-badges span{border:1px solid #dce4d1;border-radius:25px;font-size:11px;padding:7px 10px;color:#57704a}.home-copy .primary,.home-copy>.secondary,.home-actions{max-width:340px}.home-actions{display:flex;gap:9px;margin-top:11px}.home-actions button{flex:1;min-height:44px}.home-copy .offline-state{font-size:11px;margin-top:19px;line-height:1.7}.game-actions{display:flex;gap:9px;margin-top:14px}.game-actions button{flex:1;min-height:44px}.pause-actions{display:grid;gap:10px;margin-top:25px}.pause-actions button{min-height:48px}.danger{color:#a44936;border-color:#dfb9a6;background:#fff5ed}.pause-symbol{font-size:46px;color:#60916b;margin-bottom:16px}.home-actions .secondary{padding:10px}.modal #quiz-pause{margin-left:auto;min-width:44px;min-height:44px}.timer{margin-left:0}.pause-note{margin-top:15px;font-size:11px;color:var(--muted);line-height:1.8}
body[data-view=home] .intro,body[data-view=home] .layout{display:none}body:not([data-view=home]) #home-screen{display:none}body[data-view=game] .intro{display:none}body[data-view=game] .layout{margin-top:22px}body[data-view=game] .trail-card{display:none}.shell{padding-bottom:max(20px,env(safe-area-inset-bottom))}.topbar .iconbtn{min-width:44px;min-height:44px}.secondary{min-height:40px}select,.namefield input{min-height:44px}
@media(min-width:761px){body[data-view=game] .layout{grid-template-columns:minmax(0,min(72vh,780px)) minmax(280px,340px);justify-content:center}body[data-view=game] .board-note{padding:13px 7px}body[data-view=game] .footer{margin-top:0}}
@media(max-width:760px){.shell{padding-top:max(12px,env(safe-area-inset-top))}.brandname{font-size:20px}.brand small{font-size:7px;letter-spacing:1px}.brand{gap:7px}.brandmark{width:34px;height:36px}.tools{gap:2px}.topbar .iconbtn{min-width:40px;min-height:44px;width:40px;height:44px;border-radius:13px;background:transparent;border:0}.topbar{gap:5px}.tools .pill{display:none}.home-screen{display:flex;flex-direction:column;min-height:0;margin:18px 0 23px;border-radius:24px}.home-landscape{min-height:0;height:190px;background-position:center 62%;order:0}.home-copy{padding:27px 23px 30px;order:1}.home-copy h1{font-size:33px;letter-spacing:-1.3px}.home-copy>p{font-size:13px;margin-top:13px}.home-badges{margin:18px 0 22px;gap:6px}.home-copy .primary,.home-copy>.secondary,.home-actions{max-width:none}.home-badges span{font-size:10px}body[data-view=game] .layout{margin-top:12px;gap:0}body[data-view=game] .board-note{display:none}body[data-view=game] .side{margin-top:13px}body[data-view=game] .turn-card{position:sticky;bottom:max(8px,env(safe-area-inset-bottom));z-index:5;box-shadow:0 5px 30px #193d3425}body[data-view=game] #players-panel{margin-top:0}.game-actions{margin-top:11px}.game-actions button{padding:8px;font-size:12px}.turn-card .primary{margin-top:17px}.status{font-size:11px}.turn-name{font-size:21px}.board-top span{max-width:145px;text-align:right;font-size:8px}.question-context{font-size:13px}.answers .answer{min-height:61px}.modal{padding:24px 19px}.namefield input,select{font-size:16px}.footer #key-hint{display:none}.range-row input{min-height:44px}.close{min-width:44px;min-height:44px;right:12px;top:12px}.toast{bottom:max(20px,env(safe-area-inset-bottom))}}
@media(max-width:359px){.brand small{display:none}.brandname{font-size:18px}.brandmark{display:none}.home-copy h1{font-size:29px}.topbar .iconbtn{min-width:38px;width:38px}.legend{gap:8px}.brand{gap:0}}
@media(max-height:520px) and (orientation:landscape){.home-screen{grid-template-columns:1fr 1fr;display:grid}.home-landscape{height:auto;grid-column:2;min-height:350px}.home-copy{grid-column:1;padding:25px}.home-copy h1{font-size:28px}.home-badges{margin:12px 0}.topbar{padding-bottom:10px}body[data-view=game] .layout{grid-template-columns:1fr 290px;gap:16px}body[data-view=game] .side{margin:0}.game-actions{margin-top:8px}}

