:root{--ink:#193d43;--paper:#f5f0e6;--line:#d6d9ce;--teal:#236c73;--gold:#e4b16c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 16px;background:white;color:var(--ink)}button:hover{border-color:var(--teal)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c18831;outline-offset:3px}.primary{background:var(--teal);color:white;border-color:var(--teal);font-weight:700}.danger{background:#ae4d43;color:white}.quiet{background:transparent}.small{font-size:13px;color:#526c71}header{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 25px;background:#fffdf8;border-bottom:1px solid var(--line)}header a,a{color:var(--teal)}header a{text-decoration:none}header b{letter-spacing:.1em;font-size:16px}header b span{display:block;font-size:10px;margin-top:5px}header button{margin-left:5px}main{max-width:1700px;margin:auto;padding:24px}h1{font-size:clamp(35px,4vw,64px);line-height:1.05;margin:14px 0}h2{font-size:32px;line-height:1.2}h3{margin-top:0}p,li{line-height:1.6}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800}.setup{display:grid;grid-template-columns:1.1fr 1fr;gap:30px}.cover{background:url('assets/cover.png') center/cover;min-height:580px;border-radius:24px;position:relative}.cover .title{padding:30px;max-width:85%;background:linear-gradient(#fff7e9e8,#fff7e98a,transparent);border-radius:24px}.panel{background:white;padding:24px;border:1px solid var(--line);border-radius:18px;margin-bottom:18px}.setup label{display:block;font-size:14px;font-weight:700;margin:15px 0 7px}input,select{border:1px solid var(--line);padding:10px;border-radius:9px;width:100%;min-width:0;color:var(--ink);background:white}.names{display:grid;grid-template-columns:1fr 1fr;gap:10px}.names label{margin-top:8px}.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:15px 0}.game{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:24px}.board-wrap{background:url('assets/board-background.png') center/cover;padding:35px 25px;border-radius:20px;position:relative;align-self:start}.board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:8/5;gap:4px;position:relative}.cell{border:1px solid #fff9;background:color-mix(in srgb,var(--cell) 17%,#fff9);border-radius:9px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:7px;position:relative}.cell-top{display:flex;justify-content:space-between;font-size:11px;font-weight:800}.cell .icon{font-size:24px;font-weight:800;text-align:center;color:var(--cell)}.cell .jump{font-size:10px;color:#33514c}.cell.active{outline:3px solid #e7a14c;outline-offset:1px;z-index:2}.pieces{display:flex;flex-wrap:wrap;gap:2px;min-height:16px;z-index:3}.piece{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:5px;color:white;font-size:13px;background:var(--team);border:1px solid white;font-weight:800;box-shadow:0 1px 3px #0004}.board-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;opacity:.62}.legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.legend span{font-size:11px;padding:5px 9px;background:#fff9;border-radius:20px}.status-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:20px}.clock{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums}.paused{background:#fff0d6;padding:15px;border-radius:12px;margin-bottom:15px}.scoreboard{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.score{padding:13px;background:white;border:1px solid var(--line);border-left:5px solid var(--team);border-radius:12px}.score.active{box-shadow:0 0 0 2px var(--teal)}.score b{display:block}.score strong{font-size:24px}.score span{font-size:12px;display:block;margin-top:5px}.question{font-size:clamp(24px,2.4vw,34px);line-height:1.35;overflow-wrap:anywhere}.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.category-grid button{text-align:left;padding:18px;border-top:5px solid var(--cell)}.category-grid b{display:block}.category-grid span{display:block;font-size:12px;margin-top:8px}.timer-big{font-size:48px;font-weight:800;color:var(--teal);font-variant-numeric:tabular-nums}.hint{padding:18px;background:#fff0d6;border-radius:12px;margin:18px 0}.options{display:grid;gap:9px;margin:20px 0}.options button{text-align:left;font-size:20px}.options button.selected{border:2px solid var(--teal);background:#e4f0e9}.host-controls{border-top:1px dashed var(--line);padding-top:15px;margin-top:20px}.host-controls .small{margin-top:0}.answer{font-size:24px;font-weight:700}.jump-message{padding:15px;background:#e9efe2;border-radius:12px;margin:12px 0}.order{display:grid;gap:10px}.order div{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5f2e9;padding:10px;border-radius:10px}.checklist label{display:block;padding:12px;background:#f5f2e9;border-radius:10px;margin:8px 0}.checklist input{width:20px;vertical-align:middle;margin-right:10px;accent-color:var(--teal)}.results{max-width:1100px;margin:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:white}td,th{padding:13px;border-bottom:1px solid var(--line);text-align:left}th{font-size:12px}dialog{max-width:750px;width:90%;border:0;border-radius:20px;padding:30px;background:var(--paper);color:var(--ink);max-height:90vh}dialog::backdrop{background:#14313cbb}.close{float:right}details{background:#fff8;padding:15px;border-radius:12px;margin:15px 0}summary{cursor:pointer;font-weight:700}.key-page{max-width:1000px}.toast{min-height:25px;font-size:14px}.start-line{display:flex;align-items:center;gap:10px;margin-top:10px}.dice{font-size:70px;line-height:1.3}.finish-tag{font-size:10px;font-weight:800}.host-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.log{max-height:180px;overflow:auto;font-size:13px}.end-banner{background:#fae2c3;padding:14px;border-radius:12px;margin:12px 0}.feedback{color:#a7443b;font-size:14px}.rules-link{font-size:13px}@media(max-width:1050px){.game{grid-template-columns:1fr}.board-wrap{max-width:900px;width:100%;margin:auto}.setup{grid-template-columns:1fr}.cover{min-height:300px}}@media(max-width:600px){header{padding:12px;gap:10px;flex-wrap:wrap}main{padding:14px}.board-wrap{padding:16px 10px}.board{gap:2px}.cell{padding:4px;border-radius:5px}.cell-top{font-size:9px}.cell .icon{font-size:18px}.cell .jump{font-size:8px}.piece{width:13px;height:13px;font-size:9px}.pieces{min-height:13px}.panel{padding:18px}.category-grid{gap:9px}.category-grid button{padding:13px}.names{grid-template-columns:1fr}.clock{font-size:22px}.scoreboard{grid-template-columns:1fr 1fr}.question{font-size:25px}.cover{min-height:280px}.status-bar{flex-wrap:wrap}.board{aspect-ratio:8/6}}
.moving-piece{position:absolute;left:0;top:0;z-index:8;pointer-events:none;filter:drop-shadow(0 3px 4px #173b4366)}.moving-piece .piece{width:32px;height:32px;font-size:21px;border:2px solid white;box-shadow:0 0 0 3px #e6ba66;border-radius:8px}.cell.active{transition:background-color .15s ease-in-out,outline-color .15s ease-in-out}@media(max-width:600px){.moving-piece .piece{width:23px;height:23px;font-size:15px}}
.team-token{display:inline-block;width:42px;height:42px;object-fit:contain;vertical-align:middle;pointer-events:none}.names label>.team-token{width:35px;height:35px;margin-right:6px}.team-name{display:flex!important;align-items:center;gap:10px}.piece{width:28px;height:28px;background:#fff9;border:1px solid color-mix(in srgb,var(--team) 50%,transparent);border-radius:7px;padding:1px;flex-shrink:0}.piece .team-token{display:block;width:100%;height:100%;filter:drop-shadow(0 1px 1px #0003)}.pieces{min-height:28px;gap:1px}.moving-piece .piece{width:48px;height:48px;padding:1px;border-radius:12px;background:#fff9}.start-line{flex-wrap:wrap}.start-line .piece{width:38px;height:38px}@media(max-width:600px){.piece{width:17px;height:17px;padding:0;border-radius:4px}.pieces{min-height:17px;gap:0}.moving-piece .piece{width:34px;height:34px}.start-line .piece{width:30px;height:30px}.team-name{gap:5px}.team-name>.team-token{width:32px;height:32px}}
.board{grid-template-rows:repeat(5,minmax(0,1fr))}.cell .pieces{position:absolute;left:3px;right:3px;bottom:3px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;min-height:0}.cell .pieces .piece{width:100%;height:auto;aspect-ratio:1;max-width:25px}.cell:has(.pieces .piece:nth-child(3)) .icon,.cell:has(.pieces .piece:nth-child(3)) .jump{visibility:hidden}@media(max-width:600px){.cell .pieces{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.cell .pieces .piece{max-width:13px}}
.board-lines{opacity:.9}.die{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;width:74px;height:74px;padding:13px;border:2px solid #d6bd94;border-radius:15px;background:linear-gradient(135deg,#fffdf7,#eadbc4);box-shadow:5px 6px 0 #b99c75,9px 11px 14px #193d4326;transform-style:preserve-3d}.die i{border-radius:50%;background:var(--ink);display:block;aspect-ratio:1}.die i.empty{background:transparent}.dice-stage{perspective:600px;display:flex;justify-content:center;margin:20px 0}.teacher-warning{padding:13px 18px;background:#fff0d6;border-left:4px solid var(--gold);border-radius:10px}.host-overview{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}.host-overview .row{flex-basis:100%;font-size:13px}.host-overview .row span{padding:6px 10px;background:#edf3ef;border-radius:20px}.answer-part{padding:16px;background:#edf3ef;border-radius:12px;margin-bottom:12px}.answer-part p{margin:7px 0}.grade-guide{border-left:4px solid var(--teal);padding-left:18px;margin:22px 0}.teacher-actions{position:sticky;bottom:12px;box-shadow:0 4px 24px #193d4320}.teacher-actions button:first-child{background:var(--teal);color:white}#host-clock{font-size:25px;font-weight:800}
@media(min-width:1051px){body:has(.game){height:100dvh;overflow:hidden}body:has(.game)>header{height:62px;padding:10px 18px}body:has(.game)>main{padding:12px 16px;height:calc(100dvh - 62px)}.game{height:100%;grid-template-columns:minmax(0,1fr) 350px;gap:16px}.game>section:first-child{min-height:0;display:flex;align-items:center}.board-wrap{width:100%;padding:18px 16px;max-height:100%}.board{max-height:calc(100dvh - 170px);aspect-ratio:8/5}.legend{margin-top:8px;gap:4px}.legend span{font-size:10px;padding:3px 6px}.start-line{margin-top:5px;font-size:11px}.start-line .piece{width:28px;height:28px}.right-panel{height:100%;overflow-y:auto;min-width:0;padding-right:3px;scrollbar-width:thin}.status-bar{margin-bottom:10px;gap:6px}.status-bar .badge{font-size:11px}.clock{font-size:22px}.right-panel button{font-size:12px;padding:8px 10px}.scoreboard{gap:5px;margin:0 0 10px}.score{padding:7px 9px;border-left-width:3px}.score strong{font-size:19px}.score b{font-size:12px}.team-name>.team-token{width:27px;height:27px}.score span{font-size:10px;margin-top:3px}.right-panel .log{max-height:100px}.right-panel details{margin:8px 0;padding:8px;font-size:11px}.right-panel .panel{padding:16px;margin-bottom:10px}.right-panel h2{font-size:24px;margin:10px 0}.right-panel .question{font-size:23px;line-height:1.3}.right-panel p{font-size:13px;line-height:1.45}.right-panel .eyebrow{font-size:10px}.right-panel .row{gap:5px;margin:9px 0}.right-panel .category-grid{gap:8px}.right-panel .category-grid button{padding:11px 9px;font-size:12px}.right-panel .category-grid span{font-size:10px}.right-panel .timer-big{font-size:32px}.right-panel .hint{padding:12px;margin:10px 0}.right-panel .options{margin:12px 0;gap:6px}.right-panel .options button{font-size:15px}.right-panel .host-controls{margin-top:12px;padding-top:10px}.right-panel .host-tools{gap:5px;margin-top:8px}.right-panel .toast{min-height:0;margin:4px 0}.right-panel .jump-message{padding:10px;margin:10px 0}.right-panel .dice-stage{margin:12px 0}.right-panel .die{width:62px;height:62px;padding:10px;gap:6px}}

@media(min-width:1051px){.right-panel .score{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 4px}.right-panel .score .team-name{grid-column:1;min-width:0;overflow:hidden;white-space:nowrap;font-size:11px}.right-panel .score strong{grid-column:2;grid-row:1;font-size:16px;white-space:nowrap}.right-panel .score span{grid-column:1/-1}.right-panel .team-name>.team-token{width:22px;height:22px}.right-panel .scoreboard{margin-bottom:8px}.right-panel .host-tools{margin-top:5px}.right-panel .host-tools+p{font-size:10px}.right-panel details:has(.log){margin:5px 0;padding:6px}}
@media(min-width:1051px){.right-panel{display:flex;flex-direction:column;overflow:hidden}.right-panel>.status-bar,.right-panel>.scoreboard,.right-panel>.host-tools,.right-panel>details{flex-shrink:0}.right-panel>#turn-panel{flex:1;min-height:0;overflow:auto;margin-bottom:5px;scrollbar-width:thin}.right-panel>.scoreboard .score{padding:4px 7px}.right-panel .score span{font-size:9px}.right-panel>.host-tools{margin:4px 0 0;gap:4px}.right-panel>.host-tools button{padding:6px 8px;font-size:11px}.right-panel>.host-tools+p{margin:4px 0 0;font-size:9px;line-height:1.3}.right-panel>details:has(.log){margin:3px 0 6px;padding:5px;font-size:10px}.right-panel .host-controls{position:sticky;bottom:-16px;background:white;padding:7px 0;margin-top:10px;z-index:3}.right-panel .host-controls>.small{display:none}.right-panel .host-controls .row{margin:3px 0}.right-panel .question{font-size:21px}.right-panel .eyebrow{margin:3px 0}.right-panel .timer-big{font-size:28px}.right-panel .host-controls button{padding:6px;font-size:11px}}
body{background:#257eaa url('assets/london/bg.jpg') center/cover fixed no-repeat}.board-wrap{background:rgba(255,248,229,.68);backdrop-filter:blur(1px)}.right-panel{background:rgba(255,253,246,.92);padding:10px;border-radius:16px}.big-ben-clock{position:relative;width:64px;height:64px;flex-shrink:0}.clock-face{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}.clock-hand{position:absolute;transition:transform .25s linear}.hand-second{width:6.6%;height:auto;transform-origin:47% 80%;top:10.5%;left:46.7%}.hand-hour{width:7.4%;height:auto;transform-origin:50% 75%;top:29%;left:46.3%;transform:rotate(359deg)}.ben-timer{display:flex;align-items:center;gap:10px;margin:8px 0}.status-bar .ben-timer{margin:0;gap:6px}.status-bar .big-ben-clock{width:44px;height:44px}.key-page{background:rgba(255,253,246,.95);border-radius:20px;margin:20px auto}.results{background:rgba(255,253,246,.95);border-radius:20px;padding:25px}.setup>section:not(.cover){background:rgba(255,253,246,.94);padding:24px;border-radius:24px}#music[aria-pressed=false]{opacity:.7}@media(min-width:1051px){.right-panel{padding:8px}.right-panel .status-bar .big-ben-clock{width:35px;height:35px}.right-panel .clock{font-size:20px}.right-panel .ben-timer .big-ben-clock{width:54px;height:54px}.right-panel .status-bar .ben-timer .big-ben-clock{width:35px;height:35px}.right-panel .status-bar .badge{font-size:10px}.right-panel .ben-timer{margin:6px 0}.right-panel .ben-timer .timer-big{font-size:26px}}@media(max-width:600px){.setup>section:not(.cover){padding:16px}.status-bar .big-ben-clock{width:40px;height:40px}.right-panel{padding:10px}}

.question-photo{display:block;width:100%;max-height:210px;object-fit:contain;background:#fff9ec;border-radius:10px;margin:12px 0}.setup a{color:#28576c}
