@font-face{font-family:Lilita;src:url(assets/LilitaOne.ttf);font-display:swap}
@font-face{font-family:Nunito;src:url(assets/NunitoSans.ttf);font-weight:200 900;font-display:swap}
:root{--ink:#18344c;--cream:#fff8e7;--gold:#ffcf60;--navy:#102b4d;--muted:#d0e0ea}
*{box-sizing:border-box}body{margin:0;background:#081d35;color:var(--cream);font:17px/1.4 Nunito,system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:4px solid #92e7ff;outline-offset:4px}button:active:not(:disabled){transform:translateY(2px)}button{transition:background .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(1.07)}[hidden]{display:none!important}.sr{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);margin:0}.skip{position:fixed;z-index:10;top:-100px;left:12px;padding:15px;background:white;color:#12334d}.skip:focus{top:12px}
.app{height:100dvh;min-height:680px;max-width:2200px;margin:auto;display:grid;grid-template-rows:82px minmax(0,1fr) 40px;padding:0 clamp(18px,3vw,60px);background:radial-gradient(ellipse at 5% 10%,#245c71,transparent 60%),#102b4d}
.top{display:flex;align-items:center;gap:22px}.logo{width:190px;height:63px;object-fit:contain}.place{font-size:11px;font-weight:850;letter-spacing:2px;border-left:1px solid #6d8da1;padding-left:20px;line-height:1.6}.top nav{margin-left:auto;display:flex;gap:10px;align-items:center}.top-button{min-height:46px;padding:9px 15px;border:1px solid #7391aa;border-radius:13px;background:#173e58;font-weight:800;font-size:14px;box-shadow:0 3px 0 #071c30}.top-button[aria-pressed=true]{background:#d7edf1;color:var(--ink)}.full{font:29px/1 system-ui;width:48px;padding:0}.foot{display:flex;align-items:center;gap:18px;border-top:1px solid #416079;font-size:10px;color:#c3d9e4}.foot span{margin-right:auto}.foot button{font:800 12px Nunito;background:none;border:0;min-height:36px;text-decoration:underline;white-space:nowrap}.foot button:focus-visible{outline-offset:0}
#screen{min-height:0;padding:12px 0 16px}h1{font:clamp(30px,3vw,56px)/1.06 Lilita;margin:0 0 18px;text-wrap:balance;color:#fff8e7}h1 em{color:var(--gold);font-style:normal}h2{font:30px/1.1 Lilita;margin:0 0 18px}p{margin:0 0 14px}.eyebrow{color:#d0e5ef;letter-spacing:1.5px;text-transform:uppercase;font-size:11px;font-weight:900;margin:0 0 10px}.description{color:var(--muted);max-width:42ch;font-size:18px}.primary{width:100%;min-height:58px;border:2px solid #ffe8a2;border-radius:17px;background:linear-gradient(#ffda76,#ffc047);color:#41311c;box-shadow:0 6px 0 #9c6729;font:24px/1.15 Lilita;padding:13px 22px}.secondary{min-height:44px;padding:10px 15px;background:#1a425d;border:1px solid #7896aa;border-radius:12px;font-weight:800;font-size:14px}.small{font-size:12px;line-height:1.5;color:#c7dbe6}.button-row{display:flex;gap:10px;margin-top:18px}.button-row button{flex:1}.badge{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #6d95aa;border-radius:9px;background:#163c55;font-size:12px;font-weight:850;gap:8px}.badge b{color:var(--gold)}
.setup{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);height:100%;align-items:center;max-width:1400px;margin:auto}.intro{display:flex;flex-direction:column;justify-content:center;min-height:0}.intro-art{background:url(assets/tabellone-originale.jpg) center 42%/215% auto;border:2px solid #d4bd8b;border-radius:26px;height:clamp(180px,28vh,320px);box-shadow:0 8px 0 #07192b;position:relative;overflow:hidden;margin-bottom:25px}.intro-art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 65%,#081d3599)}.intro .description{margin-bottom:0}.setup-panel{background:#f9f2df;color:var(--ink);border:2px solid #d8c79d;border-radius:26px;padding:24px 28px;box-shadow:0 8px 0 #091d31}.setup-panel h2{font-size:27px}.count-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.count-row p{margin:0;font-size:15px;font-weight:850}.count-buttons{display:flex;gap:6px}.count-buttons button{width:36px;height:38px;border-radius:9px;border:1px solid #a6b7bb;background:#e3e9df;color:var(--ink);font-weight:900}.count-buttons button[aria-pressed=true]{background:#214b60;color:white;border-color:#214b60}.editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.editor-head strong{font-size:14px}.editor-head .arrows{display:flex;gap:6px}.editor-head button{width:40px;height:36px;border-radius:9px;background:#e2e8dc;border:1px solid #a5b4b5;color:var(--ink);font-size:20px}.nickname-label{display:block;font-size:13px;font-weight:850;margin-bottom:5px}.nickname-row{display:flex;gap:8px;margin-bottom:5px}.nickname-row input{width:100%;min-width:0;background:#fffdf6;border:2px solid #91a8ad;border-radius:11px;color:#14354a;padding:9px 12px;font-size:20px;font-weight:850;min-height:46px}.nickname-row button{color:#17394c;background:#e0e8dc;border:1px solid #a0b4b4;border-radius:11px;min-width:48px;min-height:46px;font-size:24px}.setup-panel .small{color:#3e5c68;margin-bottom:13px;font-size:11px}.avatar-label{font-size:13px;font-weight:850;margin-bottom:7px}.avatars{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:21px}.avatar-choice{position:relative;border:2px solid #afb8a4;background:#e8dec0;border-radius:14px;padding:6px 4px 7px;color:#19364a;min-width:0;display:flex;align-items:center;flex-direction:column;gap:4px}.avatar-choice[aria-pressed=true]{background:#ffda76;border-color:#65501f;box-shadow:0 3px 0 #9f762b}.avatar-choice[aria-pressed=true]:after{content:'✓';position:absolute;top:3px;right:3px;background:#153f55;color:white;width:20px;height:20px;border-radius:50%;font:850 12px/20px Nunito}.avatar-choice .portrait{width:100%;height:83px;border-radius:9px}.avatar-choice strong{font-size:10px;line-height:1.2;font-weight:900}.portrait{position:relative;overflow:hidden;background:#dac58f;display:block;flex-shrink:0}.portrait img{position:absolute;max-width:none;object-fit:fill;pointer-events:none}.setup-ready{font-size:11px;margin:13px 0 0;color:#3c5964;text-align:center}
.board-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:clamp(20px,3vw,52px);align-items:center}.board-zone{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}.board{position:relative;width:min(100%,calc(100dvh - 150px));aspect-ratio:1595/1600;flex-shrink:0;box-shadow:0 16px 40px #0007;border-radius:7px;overflow:visible;background:#dccb9e;border:3px solid #d3b77c}.board>img{width:100%;height:100%;object-fit:fill;display:block;border-radius:4px}.pawn{position:absolute;top:0;left:0;width:clamp(25px,2.6vw,42px);height:clamp(33px,3.2vw,52px);z-index:2;filter:drop-shadow(0 3px 2px #000a);pointer-events:none;will-change:transform}.pawn .portrait{height:100%;width:100%;border-radius:45% 45% 30% 30%;border:3px solid var(--team-color);box-shadow:inset 0 0 0 1px white}.pawn .pawn-number{position:absolute;bottom:-5px;right:-4px;background:#102b4d;color:white;font:900 11px/18px Nunito;border:1px solid #fff6cd;border-radius:50%;width:20px;height:20px;text-align:center}.pawn.current{z-index:5}.pawn.current .portrait{outline:2px solid #fff6be;outline-offset:2px}.target-ring{position:absolute;left:0;top:0;width:7%;aspect-ratio:1;border:3px solid #fff8b4;border-radius:50%;box-shadow:0 0 0 3px #163d59,0 0 0 6px #ffce6655;pointer-events:none;z-index:1}.board-caption{position:absolute;bottom:3%;left:3%;background:#102b4dec;border:1px solid #cdb77d;border-radius:7px;color:white;font-weight:850;font-size:10px;padding:6px 9px;z-index:6}.board-panel{min-height:0;display:flex;flex-direction:column;justify-content:center}.active-team{display:flex;align-items:center;gap:14px;margin-bottom:20px}.active-team .portrait{height:72px;width:58px;border:3px solid var(--team-color);border-radius:18px;box-shadow:0 5px 0 #061b30}.active-team h1{font-size:32px;line-height:1.05;margin:4px 0;overflow-wrap:anywhere;text-wrap:pretty}.active-team small{font-size:12px;color:#cce0e8;font-weight:800}.active-team .eyebrow{font-size:10px;letter-spacing:1px;margin:0}.action-card{background:#f8f1df;color:#18344c;border:2px solid #e2d0a3;border-radius:23px;padding:22px;margin-bottom:20px;box-shadow:0 6px 0 #081c32}.action-card h2{font-size:28px;margin:0 0 10px}.action-card p{font-size:15px;line-height:1.4}.die-line{display:flex;align-items:center;gap:16px;margin-bottom:17px}.die{height:72px;width:72px;background:#fffaf0;border:2px solid #c5a45f;border-radius:17px;display:grid;place-items:center;font:46px/1 Lilita;color:#2a4653;box-shadow:0 5px 0 #b1955c;flex-shrink:0}.die-line p{margin:0;font-size:16px;font-weight:800}.action-card .primary{font-size:22px}.travel-message{color:#d9eaf0;font-size:14px;margin-top:14px;min-height:20px}.team-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.team-row{border:1px solid #6c8c9f;border-radius:12px;background:#153b54;padding:8px;display:flex;align-items:center;gap:8px;min-width:0}.team-row.current{border-color:#ffe1a2;background:#254b5f}.team-row .portrait{width:29px;height:38px;border-radius:9px;border:2px solid var(--team-color)}.team-row strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:99px}.team-row small{font-size:10px;color:#c3dce7}.board-panel>.small{margin-bottom:0}.map-link{background:none;border:0;padding:0;color:#fce4a7;font-size:12px;text-decoration:underline}
.reading-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.1fr);height:100%;gap:clamp(25px,4vw,65px);align-items:center;max-width:1500px;margin:auto}.story-world{height:100%;min-height:0;border-radius:28px;position:relative;background:url(assets/tabellone-originale.jpg) 50% 44%/220% auto;border:2px solid #bdaa7d;overflow:hidden;box-shadow:0 8px 0 #081c31}.story-world:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#102b4dee 100%)}.world-bottom{position:absolute;bottom:28px;left:28px;right:22px}.world-bottom .active-team{margin:0}.world-motto{font-family:Lilita;line-height:1.1;font-size:clamp(26px,3vw,46px);margin-bottom:20px}.story-square{position:absolute;top:20px;left:20px;background:linear-gradient(#ffe7a0,#ffca53);border:3px solid #fff1be;border-radius:22px;width:76px;height:76px;color:#4d391e;font:45px/1 Lilita;display:grid;place-items:center;box-shadow:0 6px 0 #9c6b2c;transform:rotate(-5deg)}.story-content{min-height:0}.story-content h1{font-size:clamp(30px,2.7vw,49px);line-height:1.08;margin:0 0 18px}.reading{border-radius:22px;background:#fff8e7;color:#18344c;border:2px solid #eadba9;padding:22px 24px;box-shadow:0 6px 0 #071c31;margin-bottom:17px}.reading h2{font:850 14px/1.2 Nunito;margin:0 0 10px}.reading p{font-size:clamp(20px,1.5vw,26px);line-height:1.5;margin:0;min-height:4.5em;font-weight:650;text-wrap:pretty}.pages{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.pages span{font-size:13px;font-weight:850;white-space:nowrap}.pages div{display:flex;gap:8px}.pages button{min-height:44px;padding:9px 13px;background:#e4e8da;color:#18344c;border:1px solid #9bab9f;border-radius:11px;font-size:13px;font-weight:850}.audio-row{display:flex;align-items:center;gap:14px;margin:0 0 16px}.audio-row button{min-width:120px;min-height:48px}.audio-row p{margin:0;color:#cee0e8;font-size:12px;font-weight:800}.audio-row progress{width:100%;height:5px;display:block;margin-top:6px;accent-color:#ffcf60}.audio-copy{flex:1}.answers{display:grid;gap:12px;margin-bottom:20px}.answer{display:flex;align-items:center;gap:12px;background:#fff8e7;border:2px solid #afc0b5;border-radius:15px;color:#18344c;font-size:clamp(18px,1.55vw,24px);font-weight:800;padding:12px 15px;text-align:left;min-height:64px;box-shadow:0 4px 0 #728d8c}.answer .letter{font:24px Lilita;min-width:36px;min-height:36px;background:#dce7e1;border-radius:10px;display:grid;place-items:center}.answer[aria-checked=true]{background:#ffdc83;border-color:#ffe9a7}.answer[aria-checked=true] .letter{background:#21485c;color:white}.choice-mark{font-size:10px;font-weight:900;margin-left:auto}.result-symbol{font:48px/1 Lilita;color:#40351d;background:#ffdb7b;border:2px solid #ffeeb7;border-radius:20px;width:72px;height:72px;display:grid;place-items:center;margin-bottom:20px}.result-text{font-size:clamp(20px,1.5vw,26px);line-height:1.5;margin-bottom:22px;max-width:40ch}.result-move{font:38px/1.2 Lilita;color:#ffda76;margin-bottom:20px}.story-content .secondary{margin-top:12px}.question-text{font-size:clamp(27px,2.3vw,40px)!important}.question-hint{font-size:13px;color:#cfe3ec;margin-bottom:14px}
dialog{border:2px solid #d0b371;border-radius:22px;background:#fff8e7;color:#18344c;max-width:600px;width:calc(100% - 36px);max-height:90dvh;overflow:auto;padding:30px}dialog::backdrop{background:#041629bd}dialog h2{padding-right:20px}dialog li{margin-bottom:12px;font-size:16px}dialog .small{color:#3c5d6c}.dialog-close{position:absolute;right:14px;top:12px;width:40px;height:40px;border:1px solid #9cab9f;background:#e5e7d7;color:#18344c;border-radius:10px;font-size:28px}.dialog-close+.primary{margin-top:20px}dialog .secondary{color:#18344c;background:#e3e9df;width:100%;margin-top:17px}#notice{position:fixed;left:50%;bottom:50px;transform:translateX(-50%);z-index:20;background:#fff1c7;color:#19374c;border:2px solid #d9bc76;border-radius:12px;padding:12px 18px;max-width:90vw;font-size:14px}
.quiet-mode *,.quiet-mode *:before,.quiet-mode *:after{animation:none!important;transition:none!important}.quiet-mode .story-square{transform:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:1150px){.app{padding:0 22px}.place{display:none}.setup{gap:30px}.avatars{grid-template-columns:repeat(3,1fr);gap:7px}.avatar-choice{flex-direction:row;padding:5px;gap:6px}.avatar-choice .portrait{height:56px;width:35px}.avatar-choice strong{font-size:10px}.setup-panel{padding:20px}.intro-art{height:220px}.count-buttons{gap:4px}.count-buttons button{width:32px}.board-layout{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.board-panel .active-team h1{font-size:27px}.action-card{padding:18px}.team-row strong{max-width:78px}.reading-layout{grid-template-columns:.75fr 1fr;gap:28px}.story-content h1{font-size:35px}.reading{padding:18px}.reading p{font-size:21px}}
@media(max-height:800px) and (min-width:761px){.app{grid-template-rows:72px minmax(0,1fr) 34px;min-height:640px}#screen{padding:5px 0 12px}.board{width:min(100%,calc(100dvh - 126px))}.active-team{margin-bottom:14px}.action-card{padding:17px;margin-bottom:15px}.team-row{padding:5px}.team-row .portrait{height:32px;width:25px}.travel-message{margin-top:9px;margin-bottom:7px}.setup-panel{padding:18px 23px}.count-row{margin-bottom:14px}.setup-panel h2{font-size:24px}.intro-art{height:210px;margin-bottom:20px}.reading p{font-size:20px;min-height:4.5em}.reading{padding:16px 19px;margin-bottom:14px}.reading h2{font-size:13px}.story-content h1{font-size:34px;margin-bottom:15px}.story-content .eyebrow{margin-bottom:7px}.audio-row{margin-bottom:14px}.pages{margin-top:12px}.answers{gap:10px;margin-bottom:16px}.answer{min-height:58px;padding:10px 14px;font-size:20px}.question-text{font-size:30px!important}.result-text{font-size:21px}.result-symbol{height:58px;width:58px;font-size:35px;margin-bottom:16px}}
@media(max-width:760px){.app{height:auto;min-height:100dvh;padding:0 14px;grid-template-rows:66px minmax(0,1fr) 40px}.logo{width:139px;height:49px}.top{gap:7px}.top nav{gap:6px}.top-button{padding:7px 10px;font-size:12px;min-height:42px}.full{width:42px;font-size:26px}.wide-label{display:none}.top #quiet{font-size:24px;padding:0;width:42px}.foot{font-size:8px;gap:7px;line-height:1.3}.foot span{max-width:54%}.foot button{font-size:10px;min-height:38px}.setup{display:flex;flex-direction:column;gap:14px;align-items:stretch;justify-content:center}.intro-art{display:none}.intro h1{font-size:31px;line-height:1.05;margin-bottom:8px}.intro .eyebrow{font-size:9px;margin-bottom:6px}.intro .description{font-size:14px;margin:0}.setup-panel{padding:16px;border-radius:20px}.count-row{margin-bottom:13px;gap:8px}.count-row p{font-size:12px}.count-buttons{gap:4px}.count-buttons button{width:32px;height:36px}.nickname-row input{font-size:20px}.avatars{grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:17px}.avatar-choice{flex-direction:column;padding:5px 4px}.avatar-choice .portrait{height:58px;width:100%}.avatar-choice strong{font-size:10px}.setup-ready{font-size:10px;margin-top:11px}.setup-panel .small{font-size:10px;margin-bottom:10px}.setup-panel .primary{font-size:23px;min-height:54px}.board-layout{display:flex;flex-direction:column;gap:14px;justify-content:flex-start}.board-zone{height:auto;flex-shrink:0;width:100%}.board{width:min(100%,45dvh);max-width:430px}.pawn{width:25px;height:33px}.pawn .pawn-number{font-size:9px;line-height:15px;width:17px;height:17px;bottom:-4px;right:-4px}.pawn .portrait{border-width:2px}.target-ring{border-width:2px;box-shadow:0 0 0 2px #163d59}.board-caption{font-size:8px;padding:4px 6px}.board-panel{width:100%;display:grid;grid-template-columns:1fr;gap:0}.active-team{gap:9px;margin-bottom:12px}.active-team .portrait{width:40px;height:48px;border-radius:12px;border-width:2px}.active-team h1{font-size:23px!important;line-height:1.1;margin:2px 0}.active-team small{font-size:10px}.active-team .eyebrow{font-size:9px}.action-card{padding:13px 15px;border-radius:17px;margin-bottom:12px}.action-card h2{font-size:23px;margin-bottom:7px}.action-card p{font-size:13px;margin-bottom:10px}.action-card .primary{min-height:50px;font-size:21px;padding:10px}.die-line{gap:12px;margin-bottom:12px}.die{height:48px;width:48px;font-size:32px;border-radius:12px}.die-line p{font-size:14px;margin:0}.team-list{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:4px}.team-row{padding:5px;flex:1;min-width:85px}.team-row .portrait{display:none}.team-row strong{max-width:90px;font-size:9px}.team-row small{font-size:9px}.board-panel>.small{font-size:9px}.travel-message{font-size:12px;margin-top:8px;margin-bottom:10px;min-height:0}.reading-layout{display:flex;flex-direction:column;gap:14px;align-items:stretch;justify-content:center}.story-world{height:88px;flex-shrink:0;border-radius:17px;background-size:150%;background-position:center 43%}.story-world:before{background:linear-gradient(90deg,#102b4dbb,transparent)}.story-square{height:49px;width:49px;font-size:29px;top:15px;left:15px;border-radius:13px}.world-bottom{left:82px;top:16px;bottom:auto;right:10px}.world-motto{display:none}.world-bottom .active-team .portrait{width:35px;height:45px}.world-bottom .active-team h1{font-size:21px!important;color:white}.world-bottom .active-team .eyebrow{display:none}.world-bottom .active-team{margin:0}.world-bottom .active-team small{color:white}.story-content h1{font-size:29px;margin-bottom:13px}.story-content .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:8px}.reading{padding:15px;border-radius:17px;margin-bottom:13px}.reading h2{font-size:13px;margin-bottom:9px}.reading p{font-size:20px;line-height:1.45;min-height:5.8em}.pages{gap:8px;margin-top:12px}.pages button{padding:9px 10px;font-size:12px}.pages span{font-size:12px}.audio-row{margin-bottom:13px;gap:10px}.audio-row button{font-size:13px;min-width:106px;min-height:44px}.audio-row p{font-size:10px}.primary{font-size:23px;min-height:55px}.question-text{font-size:26px!important}.question-hint{font-size:11px;margin-bottom:10px}.answers{gap:10px;margin-bottom:15px}.answer{min-height:56px;padding:10px 12px;font-size:18px;gap:9px}.answer .letter{font-size:22px;min-width:30px;min-height:32px}.story-content .secondary{font-size:12px;min-height:40px;margin-top:11px}.result-symbol{height:55px;width:55px;font-size:34px;margin-bottom:15px}.result-text{font-size:20px;margin-bottom:16px}.result-move{font-size:30px;margin-bottom:16px}.result-world{height:120px}.result-world .world-bottom{top:32px}.result-world .story-square{top:32px}dialog{padding:23px}dialog h2{font-size:26px}dialog li{font-size:15px}.board-panel .button-row{margin-top:12px}}
@media(max-width:760px) and (min-height:790px){.app{height:100dvh}#screen{padding:5px 0 12px}.board-layout{justify-content:center}.board{width:min(100%,40dvh)}.setup{gap:16px}.avatar-choice .portrait{height:70px}}
@media(max-height:700px) and (min-width:761px){.intro h1{font-size:33px}.intro-art{height:150px}.setup-panel{padding:14px 20px}.avatar-choice .portrait{height:65px}.nickname-row input{min-height:42px}.setup-ready{margin-top:10px}}
@media(max-width:380px){.count-buttons button{width:29px}.count-row p{font-size:11px}.logo{width:124px}.top-button{font-size:11px;padding:8px}.reading p{font-size:19px}}

.active-team .team-name{font:32px/1.05 Lilita;margin:4px 0;overflow-wrap:anywhere;color:#fff8e7}.avatar-choice .portrait{width:58px;height:70px}.action-card>.secondary{margin-top:14px;width:100%}.compact-content .story-world{height:58px}.compact-content .story-square{top:8px;height:38px;width:38px;font-size:24px}.compact-content .world-bottom{top:8px;left:66px}.compact-content .world-bottom .portrait{height:36px;width:30px}.compact-content .reading p{min-height:0}.compact-content .reading-layout{gap:10px}.compact-content .story-content h1{font-size:26px}.compact-content .question-hint{display:none}
@media(max-width:1150px) and (min-width:761px){.avatar-choice .portrait{width:35px;height:42px}.active-team .team-name{font-size:27px}}
@media(max-width:760px){.active-team .team-name{font-size:23px}.world-bottom .active-team .team-name{font-size:21px}.avatar-choice .portrait{width:50px;height:60px}}

.board-layout{max-width:1200px;margin:auto}.foot button{padding:0 3px}
@media(max-width:760px){.board-panel{flex-shrink:0}.board-panel>.small{display:none}.team-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.team-row{min-width:0}.team-row strong{max-width:100%;font-size:9px}.team-row small{font-size:9px;line-height:1.2}.team-row div{min-width:0}.world-bottom .active-team .team-name{display:block}.board{width:min(100%,36dvh)}}

.foot a,dialog a{color:inherit;text-decoration:underline;text-underline-offset:3px}dialog a{line-height:1.6}dialog a:focus-visible,.foot a:focus-visible{outline:3px solid #ffce62;outline-offset:3px}

/* Preserve the header slot while keeping the fullscreen exit within reach. */
.fullscreen-slot{display:inline-flex;flex:0 0 48px;width:48px;align-items:center;justify-content:center}
.game-fullscreen #fullscreen{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:1000;min-width:48px;min-height:48px;background:#ffce62;color:#172d3d;border:2px solid #fff8e7;box-shadow:0 3px 0 #071c30;font-size:34px}
.game-fullscreen #fullscreen:focus-visible{outline:3px solid #fff8e7;outline-offset:4px}
@media(max-width:760px){.fullscreen-slot{flex-basis:42px;width:42px}.game-fullscreen #fullscreen{top:max(8px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));min-width:44px;min-height:44px}}

/* Captions remain readable without playback; only the current sentence is emphasised. */
.reading-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}
.reading-heading h2{margin:0}
#reading-mode{font-size:11px;font-weight:850;color:#3b5b58;text-align:right}
.narration-phrase{border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.current-phrase{background:#ffdc83;color:#112e43;text-decoration:underline;text-decoration-color:#806018;text-underline-offset:.18em;text-decoration-thickness:2px}
.audio-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
.story-content .audio-row .secondary{margin:0;min-height:48px;font-size:15px;padding:10px 14px}
.audio-row .voice-toggle{min-width:90px}
.audio-copy{grid-column:1/-1}
@media(max-width:760px){.story-content .audio-row .secondary{font-size:14px;min-height:44px}.reading-heading{margin-bottom:9px}#reading-mode{font-size:10px}.audio-row{gap:7px 10px;margin-bottom:12px}.audio-row p{font-size:11px}}
@media(max-width:760px) and (max-height:750px){body[data-view=story] .story-world{display:none}body[data-view=story] .reading-layout{gap:8px}body[data-view=story] .reading p{min-height:0}}

/* Preserve the full original cover; captions and game controls sit outside the artwork. */
.intro-art{width:min(100%,max(270px,calc(150dvh - 570px)));height:auto;align-self:flex-start;background:#0b243b;overflow:hidden;border-radius:18px;margin-bottom:20px}
.intro-art:after,.story-world:before{display:none}
.intro-art img{display:block;width:100%;height:auto;object-fit:contain}
.story-world{display:flex;flex-direction:column;gap:18px;padding:18px;background:#0b243b}
.world-art{display:block;flex:1;min-height:0;width:100%;height:0;object-fit:contain}
.world-bottom{position:static;display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 16px;flex:none}
.world-motto{grid-column:1/-1;font-size:clamp(21px,2vw,30px);margin:0;line-height:1.2}
.story-square{position:static;transform:none;width:64px;height:64px;font-size:38px;align-self:center}
.world-bottom .active-team{min-width:0;margin:0}
.world-bottom .active-team>div,.team-row>div{min-width:0}
.team-row strong{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;overflow-wrap:anywhere}
@media(max-width:1150px) and (min-width:761px){.story-world{padding:14px}.world-bottom{grid-template-columns:50px minmax(0,1fr);gap:12px}.story-square{height:50px;width:50px;font-size:30px}.world-bottom .portrait{width:40px;height:50px}.world-bottom .active-team{gap:10px}.world-bottom .team-name{font-size:24px}}
@media(max-width:760px){.world-art{display:none}.story-world{height:auto;min-height:88px;padding:12px;gap:0}.world-bottom{grid-template-columns:48px minmax(0,1fr);gap:12px}.world-motto{display:none}.story-square{width:48px;height:48px;font-size:29px}.compact-content .story-world{height:auto;min-height:60px;padding:8px}.compact-content .world-bottom{grid-template-columns:38px minmax(0,1fr)}.compact-content .story-square{width:38px;height:38px;font-size:24px}}

/* A stable tabletop with a separate, legible reading and question panel. */
.board-layout{max-width:1700px;grid-template-columns:minmax(0,1.65fr) minmax(300px,.8fr);gap:clamp(22px,3vw,50px)}
.board-zone{width:100%;height:100%;min-width:0}
.tabletop{height:100%;width:100%;min-height:0;display:grid;grid-template-rows:42px minmax(0,1fr) 38px;background:radial-gradient(ellipse at 50% 62%,#284e60 0,#15354e 62%,#102b43 100%);border:1px solid #57778a;border-radius:24px;overflow:hidden;box-shadow:0 8px 0 #081c31}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:4px 16px;gap:8px}
.table-toolbar>span{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;font-weight:900;color:#d1e3e9}
.view-angle{min-height:36px;padding:5px 12px;border:1px solid #7994a5;background:#23485d;color:#fff7e3;border-radius:10px;font-size:12px;font-weight:850}
.scene-host{min-height:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.scene-canvas{position:absolute;inset:0;visibility:hidden;pointer-events:none}
.scene-canvas canvas{display:block;width:100%;height:100%}
.scene-ready .scene-canvas{visibility:visible}
.scene-ready .board{visibility:hidden}
.scene-host .board{width:min(100%,calc(100dvh - 255px));max-height:100%;border-width:1px;box-shadow:none}
.table-caption{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#e1edf2;margin:0;padding:4px 10px;white-space:nowrap}
.table-caption strong{color:#fff3ce}.turn-dot{width:10px;height:10px;border-radius:50%;border:1px solid #fff3ce}
.scene-fallback{font-size:10px;color:#d5e8ef}
.reading-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);max-width:1600px;gap:clamp(25px,3vw,56px)}
.story-world.board-world{height:100%;min-height:0;border:0;overflow:visible;box-shadow:none;padding:0;gap:16px;background:none}
.board-world .tabletop{flex:1;min-height:0}
.world-team{flex:none;padding:0 8px}
.world-team .active-team{margin:0;gap:12px}
.world-team .active-team .portrait{width:42px;height:50px;border-radius:12px}
.world-team .active-team .team-name{font-size:24px}
.world-team .active-team .eyebrow{font-size:10px}
.board-world .scene-host .board{width:min(100%,calc(100dvh - 320px))}
.result-text{margin-bottom:14px}
.result-move{font-variant-numeric:tabular-nums}
@media(min-width:761px){.board-panel .team-list{grid-template-columns:1fr 1fr}.board-panel .team-row{min-height:53px}.board-panel .team-row strong{font-size:12px}.board-panel .team-row small{font-size:11px}}
@media(max-width:1150px) and (min-width:761px){.board-layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,.85fr)}.reading-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:22px}.table-caption{gap:7px;font-size:11px}.table-toolbar{padding:4px 10px}.view-angle{font-size:11px}}
@media(max-width:760px){
 .app{height:100dvh;min-height:620px;grid-template-rows:60px minmax(0,1fr) 36px;padding:0 12px}
 #screen{padding:3px 0 12px}
 .board-layout{gap:14px;justify-content:flex-start}
 .board-zone{flex:1;min-height:175px;height:auto}
 .tabletop{border-radius:18px;grid-template-rows:36px minmax(0,1fr) 28px}
 .table-toolbar{padding:2px 10px}.table-toolbar>span{font-size:9px;letter-spacing:1px}.view-angle{font-size:11px;min-height:32px;padding:4px 9px}
 .table-caption{font-size:10px;gap:7px}.scene-host .board{width:min(100%,27dvh)}
 .board-panel{flex:none}.board-panel .active-team{margin-bottom:8px}.board-panel .active-team .portrait{height:38px;width:32px}.board-panel .active-team .team-name{font-size:23px}
 .board-panel .action-card{padding:10px 13px;margin-bottom:10px}.board-panel .action-card .die-line{margin-bottom:9px}.board-panel .action-card .die{height:40px;width:40px;font-size:28px}
 .board-panel .action-card .primary{min-height:47px;font-size:20px}.board-panel .action-card h2{font-size:21px}
 .board-panel .action-card .secondary{min-height:36px;margin-top:8px;padding:6px 10px;font-size:12px}
 .team-row strong{font-size:10px}.team-row small{font-size:10px}
 .story-world.board-world{height:150px;flex:none;gap:0;display:flex!important}
 .world-team{display:none}
 .board-world .table-toolbar{display:none}.board-world .tabletop{grid-template-rows:minmax(0,1fr) 25px;border-radius:15px}
 .board-world .scene-host .board{width:125px}
 .reading-layout{gap:12px;justify-content:center}
 .reading p{min-height:0}.reading{padding:13px 15px;margin-bottom:11px}
 .story-content h1{font-size:27px;margin-bottom:10px}.story-content .eyebrow{margin-bottom:5px}
 .story-content .audio-row .secondary{min-height:42px}.audio-row{margin-bottom:10px;gap:5px 8px}
 .pages{margin-top:9px}.pages button{min-height:40px;padding:8px 10px}
 .primary{min-height:50px;font-size:22px}
 .story-content .secondary{margin-top:8px;min-height:40px}
 .question-text{font-size:25px!important}.answers{margin-bottom:12px;gap:9px}.answer{font-size:18px;min-height:52px;padding:9px 11px}
 .compact-content .story-world.board-world{height:100px;min-height:0;padding:0;display:flex!important}
 .compact-content .story-content h1{font-size:25px}
 .compact-content .reading p{font-size:19px;line-height:1.4}
}
@media(max-width:760px) and (max-height:740px){
 .story-world.board-world,.compact-content .story-world.board-world{display:none!important}
 .reading-layout{gap:0}.board-zone{min-height:148px}.team-row{padding:4px}.board-panel .team-row strong{font-size:9px}.board-panel .team-row small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.scene-canvas{scroll-behavior:auto}}
@media(min-width:761px) and (max-height:650px){.app{min-height:640px}}
@media(max-width:760px) and (max-height:740px){.setup{gap:10px}.setup-ready{margin-top:8px}}
@media(max-width:760px) and (min-height:800px){.story-world.board-world{height:180px}}

.dice-choice{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0 12px;border-top:1px solid #c5cbb8;margin-bottom:9px}
.dice-choice strong{font-size:13px;display:block}.dice-choice small{display:block;font-size:11px;color:#3e5c68;margin-top:3px}
.dice-choice [role=group]{display:flex;gap:5px;flex:none}
.dice-choice button{border:1px solid #91a7ab;border-radius:10px;min-height:40px;background:#e3e9df;color:#18344c;padding:7px 12px;font-size:13px;font-weight:900}
.dice-choice button[aria-pressed=true]{background:#214b60;color:white;border-color:#214b60}
.tabletop{grid-template-rows:42px minmax(0,1fr) 65px}
.table-caption{display:flex;flex-direction:column;gap:4px;padding:4px 10px;justify-content:center}
.position-caption{display:flex;gap:8px;align-items:center;margin:0}
.last-throw{display:flex;gap:10px;align-items:center;justify-content:center;margin:0;font-size:11px;min-height:25px;color:#e7edf0}
.last-throw strong{display:flex;align-items:center;gap:6px;font-size:15px;font-variant-numeric:tabular-nums}
.die-face{width:25px;height:25px;display:inline-grid;place-items:center;background:#fff6db;color:#18344c;border:1px solid #d9bb6f;border-radius:6px;box-shadow:0 2px 0 #a28648;font-weight:900}
@media(max-width:760px){.dice-choice{gap:9px;margin-bottom:7px;padding:8px 0}.dice-choice strong{font-size:11px}.dice-choice small{font-size:10px;max-width:150px}.dice-choice button{font-size:12px;padding:6px 9px;min-height:38px}.tabletop{grid-template-rows:36px minmax(0,1fr) 55px}.board-world .tabletop{grid-template-rows:minmax(0,1fr) 49px}.last-throw{font-size:9px;gap:7px}.last-throw strong{font-size:13px}.die-face{width:21px;height:21px}.position-caption{font-size:10px}}
@media(max-width:760px) and (max-height:740px){.intro .description{display:none}.setup{gap:8px}.setup .intro h1{font-size:28px}.setup-panel{padding:12px}.avatar-choice .portrait{height:46px;width:39px}.avatars{margin-bottom:12px}.setup-ready{margin-top:7px}}

.podium-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.85fr);gap:clamp(24px,4vw,65px);height:100%;max-width:1600px;margin:auto;align-items:center}
.podium-stage{height:100%;min-height:0;display:grid;grid-template-rows:40px minmax(0,1fr) 42px;background:radial-gradient(ellipse at 50% 65%,#41646b,#12364d 60%,#102b43);border:1px solid #87957b;border-radius:26px;overflow:hidden;box-shadow:0 8px 0 #081c31}
.podium-kicker{font:900 11px/1.2 Nunito;letter-spacing:2px;text-transform:uppercase;text-align:center;margin:20px 10px 0;color:#ffe4a2}
.podium-host{height:100%;width:100%}.podium-note{text-align:center;margin:0;padding:5px 18px;font-size:12px;color:#e1ebec;align-self:center}
.podium-copy h1{font-size:clamp(33px,3.2vw,55px);margin-bottom:10px}.winner-name{font:28px/1.15 Lilita;color:#fff1c1;overflow-wrap:anywhere;margin-bottom:18px}
.finish-ranks{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:7px}
.finish-ranks li{display:flex;gap:10px;align-items:center;background:#193f55;border:1px solid #688392;border-left:4px solid var(--team-color);border-radius:12px;padding:7px 10px;min-width:0}
.finish-ranks li:first-child{background:#2b4d58;border-color:#d6bd77}
.rank-number{font:22px Lilita;color:#ffe4a2;min-width:25px}.finish-ranks .portrait{width:28px;height:34px;border-radius:8px;flex:none}.finish-ranks li>div{min-width:0}
.finish-ranks strong{display:block;font-size:14px;line-height:1.15;overflow-wrap:anywhere}.finish-ranks small{font-size:10px;color:#d5e2e6;display:block;margin-top:2px}
.party-controls{display:flex;gap:9px;margin-bottom:16px}.party-controls button{flex:1;padding:10px;font-size:13px;min-height:44px}
.podium-back{display:block;margin:13px auto 0;min-height:44px}
.podium-fallback{display:flex;gap:18px;align-items:flex-end;justify-content:center;position:absolute;inset:0;padding:20px}
.scene-ready .podium-fallback{display:none}.fallback-place{width:90px;padding:12px;background:var(--team-color);color:#16344a;border:3px solid #ffdf88;border-radius:18px;text-align:center;align-self:center}
.fallback-place .portrait{height:100px;width:65px;margin:auto}.fallback-place strong{font:32px Lilita}
@media(max-width:1150px) and (min-width:761px){.podium-layout{grid-template-columns:minmax(0,1fr) minmax(310px,.9fr);gap:25px}.podium-copy h1{font-size:38px}.winner-name{font-size:24px}.finish-ranks{gap:5px;margin-bottom:14px}.finish-ranks li{padding:5px 8px}.finish-ranks strong{font-size:13px}}
@media(max-width:760px){
 .podium-layout{display:flex;flex-direction:column;gap:14px;justify-content:center;align-items:stretch}
 .podium-stage{height:220px;flex:none;border-radius:20px;grid-template-rows:25px minmax(0,1fr) 25px}
 .podium-kicker{font-size:9px;letter-spacing:1px;margin:10px 5px 0}.podium-note{font-size:9px;padding:3px 8px}
 .podium-copy h1{font-size:32px;margin-bottom:6px}.podium-copy h1 br{display:none}.podium-copy h1 em:before{content:' '}
 .podium-copy .eyebrow{display:none}.winner-name{font-size:23px;margin-bottom:10px}
 .finish-ranks{grid-template-columns:1fr 1fr;gap:5px;margin-bottom:12px}.finish-ranks li{gap:5px;padding:6px;min-height:46px}.finish-ranks .portrait{display:none}.finish-ranks strong{font-size:11px}.finish-ranks small{font-size:9px}.rank-number{font-size:18px;min-width:20px}
 .party-controls{margin-bottom:12px;gap:8px}.party-controls button{font-size:12px;min-height:42px;padding:8px}
 .podium-back{margin-top:10px;min-height:40px;font-size:12px}
}
@media(max-width:760px) and (max-height:740px){
 .podium-stage{height:145px;grid-template-rows:minmax(0,1fr) 22px}.podium-kicker{display:none}.podium-layout{gap:9px}.podium-copy h1{font-size:28px}.winner-name{font-size:20px;margin-bottom:8px}
 .finish-ranks{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:9px}.finish-ranks li{padding:4px;gap:3px}.rank-number{font-size:15px;min-width:17px}.finish-ranks strong{font-size:10px}.finish-ranks small{font-size:8px}
 .party-controls{margin-bottom:9px}.podium-back{margin-top:8px}
}
.podium-layout{min-height:0;grid-template-rows:minmax(0,1fr)}.podium-copy{min-height:0}
@media(min-width:761px) and (max-height:820px){.podium-copy h1{font-size:36px;line-height:1.1}.podium-copy h1 br{display:none}.podium-copy h1 em:before{content:' '}.podium-copy .winner-name{font-size:24px;margin-bottom:11px}.podium-copy .eyebrow{margin-bottom:6px}.finish-ranks{gap:5px;margin-bottom:12px}.finish-ranks li{padding:5px 9px}.finish-ranks .portrait{height:29px;width:24px}.party-controls{margin-bottom:11px}.podium-back{margin-top:10px}}
@media(max-width:760px) and (max-height:740px){.setup-ready{display:none}}
@media(max-width:760px) and (max-height:740px){.dice-choice{padding:6px 0}}
/* Footer controls fit their reserved row without creating a page scrollbar. */
.foot{min-height:0}.foot button{min-height:32px}

/* 20 Oct 2026: give the board the available screen space without a surrounding card. */
.tabletop{background:transparent;border:0;border-radius:0;box-shadow:none}
@media(min-width:761px){
  .board-layout{max-width:none;grid-template-columns:minmax(0,1fr) clamp(300px,24vw,400px);gap:clamp(14px,2vw,30px)}
  .reading-layout{max-width:none;grid-template-columns:minmax(0,1.2fr) minmax(340px,.95fr);gap:clamp(14px,2vw,32px)}
  .tabletop{position:relative;grid-template-rows:minmax(0,1fr) 52px;overflow:visible}
  .table-toolbar{position:absolute;inset:0 0 auto;z-index:2;padding:0 2px 0 8px;pointer-events:none}
  .table-toolbar .view-angle{pointer-events:auto}
  .scene-host{grid-row:1;min-height:0}
  .table-caption{grid-row:2;gap:2px}
  .scene-host .board{width:min(100%,calc(100dvh - 175px))}
  .board-world .scene-host .board{width:min(100%,calc(100dvh - 250px))}
}
@media(max-width:760px){
  .tabletop{overflow:visible}
  .scene-host .board{width:min(100%,34dvh)}
}

/* More room for the board, while keeping the dice result readable outside it. */
@media(min-width:761px){
  body[data-view="board"] .app{grid-template-rows:66px minmax(0,1fr) 34px}
  body[data-view="board"] #screen{padding:2px 0 6px}
}
@media(min-width:1101px){
  .tabletop{grid-template-rows:minmax(0,1fr) 36px}
  .table-caption{flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:2px 8px}
  .table-caption .position-caption,.table-caption .last-throw{white-space:nowrap}
}
