@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900;1000&display=swap');
:root{font-family:Nunito,ui-rounded,system-ui,sans-serif;color:#263248;background:#f5f4ed;font-synthesis:none;--blue:#465ce5;--ink:#263248;--muted:#687185;--orange:#ff9552;--line:#dcdfd6;--shadow:0 5px 0 #d8dbd2}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fa9c42;outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}.topbar{max-width:1200px;margin:auto;height:92px;padding:20px 32px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:1000;letter-spacing:.02em;display:flex;align-items:center;gap:10px;font-size:22px}.brand-die{background:var(--blue);color:white;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;box-shadow:0 4px 0 #2d3fad;font-size:30px;line-height:1}.brand-note{font-size:11px;letter-spacing:.12em;font-weight:800;color:var(--muted);margin-left:10px;padding-left:20px;border-left:1px solid #ccd0c9}.icon-btn{background:transparent;border:2px solid #d6d9d0;width:38px;height:38px;border-radius:50%;font-weight:900;font-size:18px}.setup{max-width:1100px;margin:28px auto 60px;display:grid;grid-template-columns:1fr 440px;gap:76px;align-items:center;padding:0 32px}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:900;color:var(--blue);text-transform:uppercase}.intro h1{font-size:clamp(34px,5vw,60px);font-weight:1000;line-height:1.04;letter-spacing:-.035em;margin:18px 0}.intro h1 span{color:var(--blue)}.intro p{color:var(--muted);font-size:17px;line-height:1.65;max-width:370px}.chips{display:flex;flex-wrap:wrap;gap:9px;margin:24px 0}.chip{font-size:13px;background:#e9ece2;border-radius:6px;padding:7px 11px;font-weight:800}.setup-card{background:white;padding:26px;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}h2{font-size:24px;font-weight:1000;letter-spacing:-.02em;margin:0 0 16px}h3{font-size:18px;margin:18px 0 10px}.label-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0;font-size:14px;font-weight:800}.count{display:flex;gap:5px}.count button{width:39px;height:36px;border:1px solid var(--line);background:#f6f7f2;border-radius:8px;font-weight:900}.count button.active{background:var(--blue);color:white;border-color:var(--blue)}.players-tabs{display:flex;gap:6px;margin:20px 0}.players-tabs button{flex:1;border:0;background:#f0f1ec;border-radius:8px;padding:10px 3px;font-size:13px;font-weight:900}.players-tabs button.active{background:#e9edff;color:var(--blue);box-shadow:inset 0 -3px var(--blue)}.name-input{width:100%;border:1.5px solid #dce0d5;border-radius:9px;padding:11px 14px;font-weight:800;font-size:16px;background:#fafbf8}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0 20px}.character{position:relative;display:flex;flex-direction:column;align-items:center;border:2px solid transparent;background:#f4f5ef;border-radius:12px;padding:6px 3px 8px;min-width:0}.character.selected{border-color:var(--blue);background:#eef0ff}.character .name{font-size:12px;font-weight:900}.avatar{display:inline-block;width:82px;height:82px;flex-shrink:0;font-size:54px;text-align:center;line-height:82px;background-repeat:no-repeat}.avatar.art{background-image:url('characters.png');background-size:300% 200%;font-size:0}.character .taken{position:absolute;inset:4px 4px auto auto;font-size:11px;padding:2px 5px;background:white;border-radius:4px}.primary{background:var(--blue);border:0;border-radius:11px;color:white;padding:15px 20px;font-weight:900;font-size:16px;box-shadow:0 4px 0 #3043b5;min-height:50px}.full{width:100%}.secondary{background:#eef0e8;border:1px solid #dfe3d7;border-radius:10px;padding:12px 16px;font-weight:800;font-size:14px;min-height:44px}.text-btn{background:transparent;border:0;padding:11px;color:var(--muted);font-size:14px;font-weight:800}.hint{font-size:12px;color:var(--muted);text-align:center;margin:15px 0 0}.mini-board{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:350px;transform:rotate(-5deg);margin:30px 0 35px;padding:12px;background:#d9e4ce;border:2px solid #bdcfae;border-radius:14px;box-shadow:0 8px 0 #bacbb0}.mini-board i{aspect-ratio:1;background:#fbfcf8;border-radius:3px;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:900;color:#7a8771;box-shadow:0 2px #bac9ad}.mini-board i:nth-child(7n){background:#f3cb81;color:#8a602c}.mini-board i:nth-child(13n){background:#b9bafa;color:#5953a5}.credit{font-size:12px;color:#78836e;font-weight:800}.game{max-width:1160px;margin:10px auto 32px;padding:0 32px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px}.board-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.board-head h2{margin:0;font-size:22px}.board-head .text-btn{font-size:13px;background:white;border-radius:8px}.board-scroll{border:1px solid #c5d2b7;border-bottom:7px solid #becdb0;background:#d9e4ce;border-radius:15px;padding:12px;overflow:auto;scroll-behavior:smooth;max-height:76vh;scrollbar-width:thin;overscroll-behavior:contain}.board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.tile{position:relative;aspect-ratio:1;min-width:0;background:#f8faf3;border-radius:5px;box-shadow:0 3px 0 #bfcdb2;padding:4px;color:#87927b;isolation:isolate}.tile .num{font-size:12px;line-height:1;font-weight:900;position:absolute;top:5px;left:6px}.tile .event-symbol{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;font-weight:1000;opacity:.8}.tile.task{background:#ffd692;color:#906324;box-shadow:0 3px #dab672}.tile.pair{background:#fac6d7;color:#a85c75;box-shadow:0 3px #d6a5b5}.tile.extra{background:#c8c6ff;color:#6259b0;box-shadow:0 3px #a8a6db}.tile.stop{background:#c3d9ec;color:#547f9e;box-shadow:0 3px #a1b7ca}.tile.jump{background:#afddca;color:#398c75;box-shadow:0 3px #8bb9a7}.tile.finish{background:var(--blue);color:white;box-shadow:0 3px #3043b5}.tile.start{outline:2px solid #94af78}.tile.occupied .event-symbol{opacity:.2}.tile .pieces{position:absolute;inset:4px -5px -4px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;z-index:2;pointer-events:none}.piece{position:relative;width:90%;height:90%;display:grid;place-items:center;filter:drop-shadow(0 3px 1px #26324844)}.piece .avatar{width:100%;height:100%;line-height:1;font-size:28px;background-size:300% 200%}.piece.active{animation:bob 1s ease-in-out infinite}.pieces.multiple .piece{width:50%;height:56%}.player-number{position:absolute;bottom:0;right:0;background:var(--player-color);color:white;border:1px solid white;border-radius:50%;width:16px;height:16px;font:900 10px/14px Nunito,system-ui;text-align:center}.tile.stepping{outline:3px solid var(--blue);z-index:5}.tile.stepping .piece{animation:hop .25s ease-in-out}.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted);padding:14px 3px;font-weight:800}.legend span{display:flex;gap:5px;align-items:center}.legend b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:4px}.side{padding-top:1px}.turn-panel{background:white;border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:var(--shadow)}.turn-person{display:flex;align-items:center;gap:10px}.turn-person .avatar{width:60px;height:60px;font-size:42px;line-height:60px}.turn-person strong{display:block;font-size:20px;font-weight:1000}.small-label{font-size:12px;color:var(--muted);font-weight:800}.dice{width:80px;height:80px;margin:20px auto;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:6px;padding:15px;background:#f9faf5;border:2px solid #d4d9c9;border-radius:15px;box-shadow:0 6px 0 #d8decd;transform:rotate(-7deg)}.pip{background:var(--ink);border-radius:50%}.dice.rolling{animation:shake .2s infinite}.mode-switch{display:flex;padding:4px;background:#f1f2ec;border-radius:9px;margin-bottom:15px}.mode-switch button{border:0;background:transparent;padding:8px 5px;flex:1;font-size:12px;font-weight:900;border-radius:6px}.mode-switch button.active{background:white;box-shadow:0 2px 3px #0000000c;color:var(--blue)}.manual{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.manual button{height:43px;padding:0;background:#eef0ff;border:1px solid #d4d9fb;border-radius:8px;font-size:20px;font-weight:1000;color:var(--blue)}.status{min-height:40px;margin:12px 0 0;font-size:14px;color:var(--muted);text-align:center;line-height:1.4}.roster{margin:22px 0}.roster-row{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;border:1px solid transparent;margin-bottom:5px}.roster-row.current{background:#e9ecfb;border-color:#d5dcf5}.roster-row .avatar{width:38px;height:38px;line-height:38px;font-size:30px}.roster-name{font-size:14px;font-weight:900;flex:1;min-width:0;overflow-wrap:anywhere}.roster-row b{font-size:18px;color:var(--blue)}.roster-row small{font-size:11px;color:var(--muted)}.start-dock{display:flex;align-items:center;gap:3px;min-height:45px;font-size:12px;color:var(--muted);font-weight:900}.start-dock .avatar{width:37px;height:37px;font-size:28px;line-height:37px}.game-footer{display:flex;justify-content:space-between}.game-footer button{font-size:12px}dialog{border:0;border-radius:22px;padding:30px;max-width:420px;width:calc(100% - 30px);box-shadow:0 22px 100px #17223f44;color:var(--ink)}dialog::backdrop{background:#1b27486b;backdrop-filter:blur(5px)}dialog h2{font-size:27px;line-height:1.15;text-align:center}dialog p{font-size:17px;line-height:1.65}dialog .dialog-icon{text-align:center;font-size:54px;margin-bottom:16px}dialog .dialog-buttons{display:grid;gap:12px;margin-top:24px}dialog .eyebrow{text-align:center;margin-bottom:12px}.rules-list{padding-left:22px;font-size:15px;line-height:1.7}.rules-list li{padding-bottom:8px}.task-copy{text-align:center;font-weight:800}.toast{font-size:13px;margin:15px 0;color:var(--muted)}@keyframes hop{50%{transform:translateY(-12px) scale(1.13)}}@keyframes bob{50%{transform:translateY(-3px)}}@keyframes shake{50%{transform:rotate(14deg) translateY(-6px)}}@media(min-width:1000px){.board{gap:7px}.tile{min-height:49px}}@media(max-width:800px){.topbar{height:70px;padding:14px 18px}.brand{font-size:19px}.brand-note{font-size:9px;padding-left:10px;margin-left:0}.setup{display:block;margin:12px auto 35px;padding:0 20px;max-width:490px}.intro h1{font-size:36px;margin:8px 0 10px}.intro p{font-size:15px;margin:0;line-height:1.45}.intro .chips{margin:15px 0 22px}.mini-board,.credit{display:none}.setup-card{padding:20px}.setup-card h2{font-size:22px}.character .avatar{width:76px;height:76px}.game{display:block;padding:0 12px;margin:5px auto 0;max-width:560px}.board-head{margin:0 3px 10px}.board-head h2{font-size:18px}.board-scroll{height:46vh;min-height:265px;max-height:530px;padding:8px;scroll-padding:40px}.board{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.tile{aspect-ratio:1.13}.tile .num{font-size:14px}.tile .event-symbol{font-size:27px}.board-scroll.overview{height:auto;max-height:none;min-height:0}.overview .board{grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}.overview .tile{aspect-ratio:1}.overview .num{font-size:9px;top:3px;left:3px}.overview .event-symbol{font-size:15px}.overview .player-number{width:12px;height:12px;font-size:8px;line-height:10px}.overview .pieces{inset:4px -2px -2px}.legend{gap:8px;padding:10px 3px;font-size:11px}.legend b{width:17px;height:17px}.side{display:flex;flex-direction:column}.turn-panel{position:sticky;bottom:0;z-index:10;padding:13px 14px max(13px,env(safe-area-inset-bottom));margin:0 -12px;border-radius:17px 17px 0 0;box-shadow:0 -6px 20px #2632480b;display:grid;grid-template-columns:1fr 1fr;column-gap:12px;align-items:center;order:3}.turn-person{gap:5px}.turn-person .avatar{width:45px;height:45px;line-height:45px;font-size:35px}.turn-person strong{font-size:17px}.dice{width:52px;height:52px;padding:10px;gap:4px;margin:0 0 0 auto;border-radius:10px;grid-column:2;grid-row:1}.mode-switch{margin:10px 0;grid-column:1/-1}.turn-action{grid-column:1/-1}.status{grid-column:1/-1;min-height:0;font-size:12px;margin-top:10px}.turn-action .primary{padding:12px;min-height:46px}.roster{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;margin:5px 0 10px}.roster-row{gap:5px;padding:6px;margin:0}.roster-row .avatar{width:28px;height:28px;font-size:23px;line-height:28px}.roster-name{font-size:12px}.roster-row b{font-size:16px}.game-footer{margin-bottom:9px}.start-dock{min-height:30px}.start-dock .avatar{width:26px;height:26px;line-height:26px;font-size:22px}dialog{padding:25px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.winner-art{text-align:center;margin-bottom:15px}.winner-art .avatar{width:150px;height:150px;line-height:150px;font-size:90px}.turn-person strong{overflow-wrap:anywhere;line-height:1.2}.turn-person>div{min-width:0}.character:disabled{opacity:.48}.character.selected::after{content:'✓';position:absolute;top:5px;right:6px;background:var(--blue);color:white;border-radius:50%;width:19px;height:19px;font-size:12px;line-height:19px;font-weight:1000}
.avatar.art{font-size:0!important;color:transparent}@media(max-width:800px){.board-scroll{height:38vh;height:38dvh;min-height:250px}.turn-panel{padding-bottom:max(13px,env(safe-area-inset-bottom))}.board-scroll.overview{height:auto}.manual button{min-height:44px}}
