/* Each game has a board, a lock-in state, and a shared reveal. Motion is event-driven in game-experience.js. */
.xp-game{--ink:#30362b;--paper:#fffdf8;--accent:#90a577;background:var(--paper);border-radius:0 0 18px 18px;overflow:hidden;container-type:inline-size}.xp-game .a-game-status{background:rgba(255,255,255,.65);border-bottom:1px solid #e4e5dc}.xp-game .a-puzzle{padding:28px 24px 18px}.xp-game .a-puzzle h2,.xp-puzzle-heading h2{font-size:clamp(22px,4cqi,32px);line-height:1.2;letter-spacing:-.8px}.xp-game .a-play-message{font-size:13px}.xp-game .a-reveal{margin:20px 24px;padding:24px;border-radius:16px;border:1px solid #0000000c;box-shadow:0 4px 0 #00000008}.xp-game .a-reveal h3{font-size:24px}.xp-game .a-host-controls,.xp-game .a-host-controls~.a-game-bottom{background:transparent}.xp-game button:not(:disabled){transition:transform .15s,box-shadow .15s,background .15s}.xp-game button:not(:disabled):active{transform:translateY(2px)}.xp-game button:focus-visible{outline:3px solid #8570b9;outline-offset:3px}.xp-game .a-btn{min-height:44px}.xp-game .a-game-results{background:#e7edcf;padding:28px}.xp-game .a-options button.answer-correct{background:#d6ebc7;border:2px solid #5d8042;box-shadow:0 4px 0 #abc88d}.xp-game .a-options button.answer-wrong{background:#f6ded8;border-color:#b7786b}.xp-game .a-options button.chosen{outline:2px solid #5e604c;outline-offset:2px}.xp-game .a-options button:disabled{opacity:1}.xp-wordlock{--paper:#faf8f3}.xp-word-board{gap:5px!important;margin:20px auto!important}.xp-word-board>div{gap:5px!important}.xp-word-board span{width:42px!important;height:42px!important;font-size:21px!important;border-radius:5px!important;display:grid;place-items:center;border:2px solid transparent;box-shadow:0 2px 0 #00000009}.xp-word-board span.ghost{background:#fff!important;border-color:#dedfd5;color:#30362b}.xp-word-board span.pending{background:#e9e6ef!important;border-color:#c5bdd8;color:#403951}.xp-word-board span.correct{background:#719153!important;color:white}.xp-word-board span.present{background:#b89a46!important;color:white}.xp-word-board span.absent{background:#899084!important;color:white}.xp-wordlock .a-wordlock-layout{padding-top:8px}.xp-wordlock .a-chat-progress{background:#ece8f3}.xp-wordlock .a-puzzle{padding-bottom:0}.xp-wordlock .a-guess-label{font-size:11px}.xp-scramble{--paper:#fff8eb}.xp-scramble .a-letter-row{gap:8px;flex-wrap:wrap;margin:28px auto 14px}.xp-scramble .a-letter-row button{font:700 27px/1 inherit;font-family:inherit;font-size:27px;font-weight:700;color:#654f35;min-width:48px;height:58px;padding:8px 12px;border:1px solid #d5bc96;border-radius:10px;background:#f9e2b9;box-shadow:0 5px 0 #dec49b}.xp-scramble .a-letter-row button.letter-used{box-shadow:0 1px 0 #ded8c9;transform:translateY(4px);background:#efeadd;color:#a69c88}.xp-scramble .a-letter-row button:disabled:not(.letter-used){opacity:.75}.xp-scramble .a-puzzle-hint{background:#f2e4cf;display:inline-block;padding:6px 12px;border-radius:30px;color:#796344}.xp-trivia{--paper:#f1f6ed}.xp-quiz-hud{margin:0 24px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border:1px solid #bccbb1;border-radius:10px;background:#e1ebd8;font-size:10px;letter-spacing:1px}.xp-quiz-hud strong{text-align:center;color:#516a39}.xp-trivia .a-options{gap:12px}.xp-trivia .a-options button{border-radius:12px;min-height:60px;background:#fff;box-shadow:0 4px 0 #dce3d5}.xp-trivia .a-options button>span{background:#edf2e7;border-radius:8px;padding:8px 12px;color:#61714a}.xp-emoji{--paper:#fff5d7}.xp-rebus{margin:16px 24px 26px;padding:24px 12px;background:#333844;border:8px solid #333844;border-radius:16px;text-align:center;color:#fff1bd;box-shadow:0 6px 0 #dad0af}.xp-film-label{font-size:10px;letter-spacing:2px}.xp-rebus>div{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:20px 0}.xp-rebus b{display:grid;place-items:center;background:#fef5db;border-radius:10px;min-width:60px;min-height:76px;font-size:42px;box-shadow:0 4px 0 #141921;color:#30362b;padding:4px 10px}.xp-rebus>span:last-child{font-size:12px}.xp-closer{--paper:#eff6f7}.xp-number-reveal{margin:20px 24px;padding:20px;border-radius:16px;background:#dbeaf0;text-align:center}.xp-number-line{position:relative;height:88px;margin:12px 10px}.xp-number-line>i{position:absolute;top:44px;left:0;right:0;height:3px;background:#91adba}.xp-number-line>b{position:absolute;top:27px;font-size:32px;color:#425e6c;transform:translateX(-50%);text-shadow:0 2px #fff}.xp-number-dot{position:absolute;top:calc(38px - var(--dot-row)*12px);height:12px;width:12px;background:#b97fa6;border:2px solid white;border-radius:50%;transform:translateX(-50%)}.xp-number-labels{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.xp-number-reveal ul{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:12px 0 0;margin:0}.xp-number-reveal li{display:flex;gap:8px;background:#f5fafb;padding:6px 10px;border-radius:30px;font-size:12px}.xp-majority{--paper:#fff3f7}.xp-majority .a-options button{border-radius:16px;background:#fff0f4;min-height:76px;border-color:#d6b8c4;box-shadow:0 4px 0 #ebd1db}.xp-majority .a-options button:nth-child(2){background:#ede9f6;border-color:#c7bddc;box-shadow:0 4px 0 #d9d2e8}.xp-vote-reveal{padding:22px;margin:16px 24px;border-radius:16px;background:#fae2eb}.xp-vote-reveal>div{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:18px}.xp-vote-reveal i{grid-column:1/-1;background:#ffffff88;height:18px;border-radius:20px;overflow:hidden}.xp-vote-reveal i b{display:block;background:#b48098;height:100%;border-radius:20px;min-width:0}.xp-vote-reveal>div:nth-child(3) i b{background:#9280b4}.xp-expedition{margin:12px 24px 24px;background:#dcebcf;padding:16px;border-radius:20px;overflow:hidden;text-align:center}.xp-expedition-sky{position:relative;height:90px;display:flex;align-items:end;justify-content:space-around}.xp-expedition-sky b{font-size:60px;color:#6d9666}.xp-expedition-sky b:nth-last-child(2){font-size:42px}.xp-expedition-sky>span{position:absolute;right:16px;top:0;color:#bfa65d;font-size:34px}.xp-map-path{display:flex;justify-content:space-between;align-items:center;gap:8px;position:relative;flex-wrap:wrap;border-top:3px dashed #94a679;padding-top:14px}.xp-map-path span{width:32px;height:32px;border-radius:50%;background:#f4f8e9;border:2px solid #9db281;display:grid;place-items:center;font-weight:700}.xp-map-path .here{background:#776392;color:#fff;border-color:#776392;box-shadow:0 0 0 5px #ffffff55}.xp-map-path .passed{background:#99b480;color:white}.xp-expedition p{color:#62814e;font-size:13px}.xp-race{--paper:#eeeaf6}.xp-rally-board{margin:24px!important;background:#333849;border-radius:18px;padding:18px;color:white}.xp-rally-banner{display:flex!important;justify-content:space-between;align-items:center;font-weight:800;letter-spacing:1px;font-size:12px;padding:2px 0 18px;border-bottom:1px solid #ffffff22;margin-bottom:16px}.xp-rally-banner span{font-size:10px;color:#ccbce7}.xp-rally-row{display:grid!important;grid-template-columns:65px minmax(50px,1fr) 42px!important;gap:10px;align-items:center;font-size:12px;min-height:44px}.xp-rally-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xp-rally-row .a-race-lane{background:#45495c!important;border-top:1px dashed #858b9a;border-bottom:1px dashed #858b9a;height:29px!important;position:relative}.xp-rally-row .a-race-lane i{background:transparent!important;font-style:normal;font-size:25px!important;transform:translateX(-5px);top:-3px}.xp-finish-flag{position:absolute;right:0;top:3px;color:#eadfb6}.xp-rally-row>b{font-size:11px;text-align:right}.xp-game .xp-rule-note{font-size:12px;color:#6d7466;text-align:center;line-height:1.6}.xp-puzzle-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:26px}.xp-puzzle-own{min-width:0}.xp-puzzle-heading{text-align:center;margin:0 0 24px}.xp-puzzle-heading h2{margin:14px 0}.xp-puzzle-heading p{font-size:12px;color:#6b776d}.xp-codebreaker{--paper:#edf2f7;--accent:#7f9db9}.xp-code-history{max-width:390px;margin:0 auto 24px;background:#d9e2eb;padding:14px;border-radius:16px;box-shadow:inset 0 2px 4px #00000008}.xp-code-row{display:grid;grid-template-columns:18px 1fr 72px;align-items:center;gap:10px;padding:4px 0}.xp-row-number{font-size:10px;font-weight:700;color:#758392}.xp-code-pegs{display:flex;gap:6px}.xp-peg{border:2px solid #00000016;border-radius:50%;display:inline-grid;place-items:center;width:32px;height:32px;font-size:14px;font-weight:800;box-shadow:inset 0 2px 0 #ffffff55,0 2px 0 #00000012;flex-shrink:0;color:#273044}.peg-1{background:#e6a396}.peg-2{background:#ebce87}.peg-3{background:#b9d69b}.peg-4{background:#9fc9db}.peg-5{background:#c0acda}.peg-6{background:#e1afcf}.peg-empty{background:#f5f7fa;color:#92a0ac;border-color:#bbc8d4;box-shadow:inset 0 2px 3px #00000008}.xp-code-clues{font-size:11px;white-space:nowrap;color:#5f6f7c}.xp-code-clues b{color:#344454}.xp-code-clues i{font-style:normal;color:#7c667f}.xp-code-form{max-width:390px;margin:20px auto;text-align:center;background:#fff;padding:18px;border-radius:16px;border:1px solid #d6e0e8}.xp-code-slots{display:flex;justify-content:center;gap:10px;margin-bottom:20px}.xp-code-slots .xp-peg{width:46px;height:46px;font-size:22px}.xp-code-slots [aria-pressed=true]{outline:3px solid #708ca5;outline-offset:3px}.xp-code-palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:20px;padding-bottom:15px}.xp-code-palette .xp-peg{position:relative;width:100%;height:auto;aspect-ratio:1;font-size:18px}.xp-code-palette span{position:absolute;top:calc(100% + 5px);font-size:8px;color:#6a7885;font-weight:600}.xp-code-form small{display:block;margin:12px 0 0;font-size:11px;color:#6b776d;line-height:1.6}.xp-lock-note{font-size:13px;text-align:center;background:#e9e5f1;padding:12px;border-radius:10px;color:#6d607e}.xp-code-chat{background:#e0e8f0;padding:20px;border-radius:16px;align-self:start}.xp-code-chat h3{font-size:16px;margin:0}.xp-code-chat p{font-size:12px;color:#6d7b88;line-height:1.6}.xp-code-chat>div{display:flex;justify-content:space-between;padding:12px 0;border-top:1px solid #bdcbd8;font-size:13px;gap:10px}.xp-code-chat>div>span{font-size:12px}.xp-connections{--paper:#fffaf0}.xp-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.xp-category-grid button{font-family:inherit;min-height:68px;padding:8px 4px;background:#eee9dd;border:1px solid #d9d1bf;box-shadow:0 4px 0 #ddd4c3;color:#544b3c;border-radius:10px;font-weight:750;font-size:clamp(10px,2.3cqi,16px);overflow-wrap:anywhere}.xp-category-grid button[aria-pressed=true]{background:#776c55;color:#fff;box-shadow:0 4px 0 #514936;border-color:#776c55}.xp-category-grid button:disabled{opacity:.75}.xp-family-actions{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:24px 0 10px}.xp-family-actions>span{font-size:12px;width:100%;text-align:center;color:#7d725d}.xp-family{padding:18px 10px;border-radius:12px;text-align:center;margin-bottom:10px;box-shadow:0 3px 0 #0000000c}.xp-family strong{display:block;font-size:15px}.xp-family>span{display:block;margin-top:6px;font-size:11px;letter-spacing:.3px;overflow-wrap:anywhere}.xp-family small{display:block;margin-top:8px;font-size:10px}.family-0{background:#edda9c}.family-1{background:#c8daa7}.family-2{background:#b8d4df}.family-3{background:#d5c4e5}.xp-final-families{margin-top:25px}.xp-final-families>.a-kicker{display:block;margin-bottom:12px;text-align:center}.xp-puzzle-lobby{text-align:center;padding:28px 8px}.xp-puzzle-lobby h2{font-size:26px;letter-spacing:-.8px}.xp-puzzle-lobby p{color:#6d7466;font-size:13px;line-height:1.7}.xp-lobby-icon{font-size:46px;letter-spacing:8px;color:#889baf;text-shadow:0 4px #c8d5e0}.xp-game-finish{padding:28px;text-align:center;background:#e1ebcf}.xp-game-finish>span{font-size:40px;color:#839956}.xp-game-finish h2{font-size:28px}.xp-game-finish p{font-size:13px}.xp-game .a-host-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:24px 0 0}.xp-puzzle-own .a-reveal{margin:20px 0}.art-code{position:absolute;display:flex;gap:12px;left:50%;top:42%;transform:translate(-50%,-50%) rotate(-9deg)}.art-code .xp-peg{width:46px;height:46px;font-size:22px;box-shadow:0 6px 0 #00000016}.art-categories{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%) rotate(6deg);display:grid;grid-template-columns:repeat(4,1fr);gap:5px;width:80%}.art-categories b{background:#fffcf0;padding:16px 4px;font-size:10px;text-align:center;border-radius:5px;box-shadow:0 4px #00000014}.xp-extra-heading{margin:44px 0 24px}.xp-extra-heading h2{font-size:28px;letter-spacing:-.7px;margin:8px 0}.xp-extra-heading p{font-size:14px;color:#7a7e70}.pg-bingo-board{padding:10px;background:#e9e2f1;border:2px solid #b7a3cc;border-radius:18px;gap:6px!important;box-shadow:0 5px 0 #d2c5df}.pg-bingo-board button{border:1px solid #d0c4dd!important;background:#fffcf8!important;box-shadow:0 3px 0 #d8cede;border-radius:8px!important;position:relative}.pg-bingo-board [aria-pressed=true]{background:#dbccee!important;color:#6a5286;box-shadow:inset 0 0 0 2px #a38abb}.pg-bingo-board [aria-pressed=true]:after{content:'✦';font-size:24px;position:absolute;right:4px;top:0;color:#9076ab;opacity:.55}.pg-bingo-board .pg-winning{background:#bdd4a4!important;color:#466036!important;box-shadow:inset 0 0 0 2px #7da25d}.bingo-grid .square.marked{box-shadow:inset 0 0 0 2px #b5a0ce}.bingo-grid .square.winning{box-shadow:inset 0 0 0 2px #80a35f}.pg-settings code{display:block;white-space:pre-wrap;font-size:11px;overflow-wrap:anywhere;background:#f2f2ec;padding:10px;border-radius:8px;margin:10px 0}
@container (min-width:720px){.xp-codebreaker .xp-puzzle-layout:has(.xp-code-chat){grid-template-columns:minmax(0,1fr) 250px}}
@container (max-width:420px){.xp-puzzle-layout{padding:18px 12px}.xp-game .a-reveal{padding:20px 14px}.xp-quiz-hud{font-size:8px;margin:0 12px 18px;padding:10px}.xp-game .a-reveal,.xp-rally-board,.xp-vote-reveal,.xp-number-reveal{margin-left:12px!important;margin-right:12px!important}.xp-rally-row{grid-template-columns:50px minmax(40px,1fr) 36px!important}.xp-category-grid{gap:6px}.xp-category-grid button{min-height:58px}.xp-code-palette{gap:5px}.xp-code-form{padding:16px 12px}.xp-code-row{gap:8px;grid-template-columns:14px 1fr 68px}.xp-code-pegs{gap:5px}.xp-code-row .xp-peg{width:28px;height:28px}.xp-rebus b{font-size:34px;min-width:48px;min-height:60px}.xp-rebus{margin:12px;border-width:4px}.xp-scramble .a-letter-row{gap:6px}.xp-scramble .a-letter-row button{min-width:38px;height:48px;font-size:22px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.xp-game *{transition:none!important;animation:none!important}.pg-bingo-board *{transition:none!important;animation:none!important}}

.xp-left-0{left:0%}.xp-width-0{width:0%}.xp-left-1{left:1%}.xp-width-1{width:1%}.xp-left-2{left:2%}.xp-width-2{width:2%}.xp-left-3{left:3%}.xp-width-3{width:3%}.xp-left-4{left:4%}.xp-width-4{width:4%}.xp-left-5{left:5%}.xp-width-5{width:5%}.xp-left-6{left:6%}.xp-width-6{width:6%}.xp-left-7{left:7%}.xp-width-7{width:7%}.xp-left-8{left:8%}.xp-width-8{width:8%}.xp-left-9{left:9%}.xp-width-9{width:9%}.xp-left-10{left:10%}.xp-width-10{width:10%}.xp-left-11{left:11%}.xp-width-11{width:11%}.xp-left-12{left:12%}.xp-width-12{width:12%}.xp-left-13{left:13%}.xp-width-13{width:13%}.xp-left-14{left:14%}.xp-width-14{width:14%}.xp-left-15{left:15%}.xp-width-15{width:15%}.xp-left-16{left:16%}.xp-width-16{width:16%}.xp-left-17{left:17%}.xp-width-17{width:17%}.xp-left-18{left:18%}.xp-width-18{width:18%}.xp-left-19{left:19%}.xp-width-19{width:19%}.xp-left-20{left:20%}.xp-width-20{width:20%}.xp-left-21{left:21%}.xp-width-21{width:21%}.xp-left-22{left:22%}.xp-width-22{width:22%}.xp-left-23{left:23%}.xp-width-23{width:23%}.xp-left-24{left:24%}.xp-width-24{width:24%}.xp-left-25{left:25%}.xp-width-25{width:25%}.xp-left-26{left:26%}.xp-width-26{width:26%}.xp-left-27{left:27%}.xp-width-27{width:27%}.xp-left-28{left:28%}.xp-width-28{width:28%}.xp-left-29{left:29%}.xp-width-29{width:29%}.xp-left-30{left:30%}.xp-width-30{width:30%}.xp-left-31{left:31%}.xp-width-31{width:31%}.xp-left-32{left:32%}.xp-width-32{width:32%}.xp-left-33{left:33%}.xp-width-33{width:33%}.xp-left-34{left:34%}.xp-width-34{width:34%}.xp-left-35{left:35%}.xp-width-35{width:35%}.xp-left-36{left:36%}.xp-width-36{width:36%}.xp-left-37{left:37%}.xp-width-37{width:37%}.xp-left-38{left:38%}.xp-width-38{width:38%}.xp-left-39{left:39%}.xp-width-39{width:39%}.xp-left-40{left:40%}.xp-width-40{width:40%}.xp-left-41{left:41%}.xp-width-41{width:41%}.xp-left-42{left:42%}.xp-width-42{width:42%}.xp-left-43{left:43%}.xp-width-43{width:43%}.xp-left-44{left:44%}.xp-width-44{width:44%}.xp-left-45{left:45%}.xp-width-45{width:45%}.xp-left-46{left:46%}.xp-width-46{width:46%}.xp-left-47{left:47%}.xp-width-47{width:47%}.xp-left-48{left:48%}.xp-width-48{width:48%}.xp-left-49{left:49%}.xp-width-49{width:49%}.xp-left-50{left:50%}.xp-width-50{width:50%}.xp-left-51{left:51%}.xp-width-51{width:51%}.xp-left-52{left:52%}.xp-width-52{width:52%}.xp-left-53{left:53%}.xp-width-53{width:53%}.xp-left-54{left:54%}.xp-width-54{width:54%}.xp-left-55{left:55%}.xp-width-55{width:55%}.xp-left-56{left:56%}.xp-width-56{width:56%}.xp-left-57{left:57%}.xp-width-57{width:57%}.xp-left-58{left:58%}.xp-width-58{width:58%}.xp-left-59{left:59%}.xp-width-59{width:59%}.xp-left-60{left:60%}.xp-width-60{width:60%}.xp-left-61{left:61%}.xp-width-61{width:61%}.xp-left-62{left:62%}.xp-width-62{width:62%}.xp-left-63{left:63%}.xp-width-63{width:63%}.xp-left-64{left:64%}.xp-width-64{width:64%}.xp-left-65{left:65%}.xp-width-65{width:65%}.xp-left-66{left:66%}.xp-width-66{width:66%}.xp-left-67{left:67%}.xp-width-67{width:67%}.xp-left-68{left:68%}.xp-width-68{width:68%}.xp-left-69{left:69%}.xp-width-69{width:69%}.xp-left-70{left:70%}.xp-width-70{width:70%}.xp-left-71{left:71%}.xp-width-71{width:71%}.xp-left-72{left:72%}.xp-width-72{width:72%}.xp-left-73{left:73%}.xp-width-73{width:73%}.xp-left-74{left:74%}.xp-width-74{width:74%}.xp-left-75{left:75%}.xp-width-75{width:75%}.xp-left-76{left:76%}.xp-width-76{width:76%}.xp-left-77{left:77%}.xp-width-77{width:77%}.xp-left-78{left:78%}.xp-width-78{width:78%}.xp-left-79{left:79%}.xp-width-79{width:79%}.xp-left-80{left:80%}.xp-width-80{width:80%}.xp-left-81{left:81%}.xp-width-81{width:81%}.xp-left-82{left:82%}.xp-width-82{width:82%}.xp-left-83{left:83%}.xp-width-83{width:83%}.xp-left-84{left:84%}.xp-width-84{width:84%}.xp-left-85{left:85%}.xp-width-85{width:85%}.xp-left-86{left:86%}.xp-width-86{width:86%}.xp-left-87{left:87%}.xp-width-87{width:87%}.xp-left-88{left:88%}.xp-width-88{width:88%}.xp-left-89{left:89%}.xp-width-89{width:89%}.xp-left-90{left:90%}.xp-width-90{width:90%}.xp-left-91{left:91%}.xp-width-91{width:91%}.xp-left-92{left:92%}.xp-width-92{width:92%}.xp-left-93{left:93%}.xp-width-93{width:93%}.xp-left-94{left:94%}.xp-width-94{width:94%}.xp-left-95{left:95%}.xp-width-95{width:95%}.xp-left-96{left:96%}.xp-width-96{width:96%}.xp-left-97{left:97%}.xp-width-97{width:97%}.xp-left-98{left:98%}.xp-width-98{width:98%}.xp-left-99{left:99%}.xp-width-99{width:99%}.xp-left-100{left:100%}.xp-width-100{width:100%}.xp-dot-row-0{--dot-row:0}.xp-dot-row-1{--dot-row:1}.xp-dot-row-2{--dot-row:2}

.xp-group-history{margin:20px 0;border:1px solid #ded6c5;border-radius:12px;background:#f4efe2;padding:14px;font-size:12px}.xp-group-history summary{cursor:pointer;font-weight:700}.xp-group-history>div{border-top:1px solid #ded6c5;padding:12px 0;margin-top:10px}.xp-group-history b,.xp-group-history span,.xp-group-history small{display:block;margin:4px 0}.xp-group-history small{color:#817456}
@container (max-width:420px){.xp-code-palette{grid-template-columns:repeat(3,1fr);row-gap:28px}.xp-code-palette .xp-peg{width:44px;height:44px;justify-self:center;aspect-ratio:auto}.xp-code-palette span{font-size:10px}}

.xp-bingo-win{padding:18px;background:#dcecc6;border-radius:14px;color:#4c6a37;font-size:18px!important;font-weight:700;text-align:center;display:block}.xp-bingo-win:before{content:"✦ ";font-size:24px}.bingo-grid{border-radius:12px}.bingo-grid .square.winning{background:#dcecc6}

.xp-vault-display{padding:30px 20px;text-align:center;background:#dae4ee;border-radius:18px;margin-bottom:20px}.xp-vault-display>div{display:flex;justify-content:center;gap:16px;margin-bottom:24px}.xp-vault-display .xp-peg{width:54px;height:54px;font-size:25px}.xp-vault-display h3{font-size:24px;letter-spacing:-.6px}.xp-vault-display p,.xp-vault-display small{font-size:13px;color:#6c7e8d;line-height:1.7;display:block}

.xp-number-reveal ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:20px;padding:0;list-style:none}
.xp-number-reveal ul li{display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px;border:2px solid transparent;border-radius:12px;background:#f5fafc;text-align:left;overflow-wrap:anywhere}
.xp-number-reveal .xp-placement{grid-column:1/-1;font-size:14px;letter-spacing:.3px}
.xp-number-reveal ul li>strong{font-size:24px;line-height:1}
.xp-number-reveal ul li>small{grid-column:1/-1;color:#475662}
.xp-number-reveal ul .xp-place-1{background:#fff3c4;border-color:#b88616;box-shadow:0 4px 0 #b8861630;color:#594009}
.xp-number-reveal ul .xp-place-2{background:#edf1f7;border-color:#8b99ac;color:#37465a}
.xp-number-reveal ul .xp-place-3{background:#f6e4d5;border-color:#b27a4c;color:#694221}
.xp-number-line .xp-number-dot.xp-place-1{background:#d5a21e;width:16px;height:16px;box-shadow:0 0 0 4px #e7bc4d55;z-index:2}
.xp-number-line .xp-number-dot.xp-place-2{background:#7d8da5;width:13px;height:13px}
.xp-number-line .xp-number-dot.xp-place-3{background:#b67948;width:13px;height:13px}

.xp-game[data-reveal-ready="true"] [data-arcade="reveal"]{background:#52d9bb;color:#102e28;border:2px solid #20866e;box-shadow:0 0 0 4px #52d9bb35;font-weight:800;animation:xp-reveal-ready .65s ease-in-out 3}
.xp-game[data-reveal-ready="true"] [data-arcade="reveal"]:hover{background:#79e7cd}
@keyframes xp-reveal-ready{0%,100%{transform:translateX(0) rotate(0)}20%,60%{transform:translateX(-3px) rotate(-2deg)}40%,80%{transform:translateX(3px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.xp-game[data-reveal-ready="true"] [data-arcade="reveal"]{animation:none}}

/* A tiny frontier computer. Original vector wagon; no external fonts or assets. */
.xp-expedition{--trail-green:#c5e2a0;--trail-dim:#8ea78c;margin:12px 20px 22px;padding:0;border:3px solid #789977;border-radius:3px;background:#14271f;color:var(--trail-green);box-shadow:5px 5px 0 #0a1814;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}
.trail-terminal-bar{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#c5e2a0;color:#14271f;font-size:10px;font-weight:800;letter-spacing:1px}
.trail-landscape{position:relative;height:155px;overflow:hidden;background:repeating-linear-gradient(0deg,#00000010 0 1px,transparent 1px 4px),#172d25;border-bottom:2px solid #789977;isolation:isolate}
.trail-stars{position:absolute;top:13px;left:10%;width:80%;white-space:pre;word-spacing:22px;color:#d9ddae;font-size:15px}
.trail-mountains{position:absolute;right:5%;bottom:23px;color:#54705c;font-size:100px;line-height:1;letter-spacing:-30px}
.trail-trees{position:absolute;left:3%;bottom:21px;font-size:48px;letter-spacing:25px;color:#789977}
.trail-wagon{position:absolute;bottom:10px;left:calc(50% - 100px);width:180px;height:90px;color:#d5dfad;filter:drop-shadow(3px 3px 0 #0b1a16)}
.trail-ground{position:absolute;bottom:0;width:200%;height:19px;border-top:3px solid #96b385;background:repeating-linear-gradient(90deg,transparent 0 20px,#6d8b6b 20px 27px,transparent 27px 55px)}
.trail-rolling .trail-wagon{animation:trail-wagon-bob .7s steps(2,end) infinite}
.trail-rolling .trail-ground{animation:trail-road 2s linear infinite}
.trail-mishap .trail-wagon{animation:trail-bump .5s steps(3,end) 1}
.trail-destination{display:flex;justify-content:space-between;padding:12px 14px 0;font-size:10px;letter-spacing:1px}
.xp-expedition .xp-map-path{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 14px;border-bottom:1px dashed #789977;padding-bottom:14px}
.xp-expedition .xp-map-path span{display:grid;place-items:center;flex:1 0 22px;max-width:36px;height:28px;border:1px solid #789977;border-radius:0;background:#20382d;color:#8ea78c;font:700 13px ui-monospace,monospace}
.xp-expedition .xp-map-path span.passed{background:#344f38;color:#d5edb0}
.xp-expedition .xp-map-path span.here{background:#d9ddae;color:#14271f;box-shadow:2px 2px 0 #789977;transform:none}
.trail-readout{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:0 14px 12px;font-size:11px}
.trail-readout b{color:#e5edc9;white-space:nowrap}
.xp-expedition .trail-dispatch{margin:0;padding:14px;background:#0d1d17;border-top:1px solid #789977;color:#e5edc9;font-size:12px;line-height:1.7;min-height:80px;text-align:left}
.trail-dispatch>span{display:block;color:#a9c88a;font-size:10px;letter-spacing:1px;margin-bottom:5px}
.xp-expedition .trail-objective{margin:0;padding:10px 14px;color:#afc4a0;font-size:10px;line-height:1.6}
.xp-game.xp-expedition{--paper:#e5e3c8;--ink:#253b2e;color:#253b2e;margin:0;padding:0;border:0;border-radius:0 0 12px 12px;background:var(--paper);box-shadow:none}
.xp-game.xp-expedition .a-puzzle h2{font-family:ui-monospace,Consolas,monospace;font-size:clamp(19px,3.5cqi,27px);letter-spacing:-1px;color:#253b2e}
.xp-game.xp-expedition .a-game-status{background:#d3d6b7;border-color:#a6ad8c;color:#344f38;font-family:ui-monospace,monospace}
.xp-game.xp-expedition .a-options button,.xp-game.xp-expedition .a-options>div{border:2px solid #667859;border-radius:2px;box-shadow:3px 3px 0 #a6ad8c;background:#f5f0d8;color:#253b2e;font-family:ui-monospace,monospace;min-height:66px}
.xp-game.xp-expedition .a-options button.chosen{background:#c6d6a8;outline-color:#344f38}
.xp-game.xp-expedition .a-options button>span{background:#344f38;color:#edf0d2;border-radius:0}
.xp-game.xp-expedition .a-options button:focus-visible{outline:3px solid #344f38;outline-offset:4px}
.xp-game.xp-expedition .a-choice-help,.xp-game.xp-expedition .a-play-message,.xp-game.xp-expedition .a-submitted{color:#40563b;font-family:ui-monospace,monospace;font-size:12px;padding-left:20px;padding-right:20px;line-height:1.7}
.xp-game.xp-expedition .a-reveal{background:#f4efd4;border:2px solid #667859;border-radius:2px;box-shadow:4px 4px 0 #a6ad8c;color:#253b2e}
.xp-game.xp-expedition .a-reveal h3{font-family:ui-monospace,monospace;font-size:22px;color:#253b2e}
.xp-game.xp-expedition .a-game-results{background:#ccd8ad;color:#253b2e;border-top:3px double #667859}
.trail-lobby{font-family:ui-monospace,monospace;text-align:center}
.trail-lobby>.sf-game-icon{width:110px;height:110px;display:block;margin:22px auto;filter:drop-shadow(4px 4px 0 #a6ad8c)}
.xp-game .trail-lobby h2{font-size:clamp(22px,4cqi,30px);letter-spacing:-1px;color:#253b2e}
.xp-game .trail-lobby p{color:#40563b}
@keyframes trail-wagon-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes trail-road{from{transform:translateX(-55px)}to{transform:translateX(0)}}
@keyframes trail-bump{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px) rotate(-3deg)}75%{transform:translateX(7px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.trail-rolling .trail-wagon,.trail-rolling .trail-ground,.trail-mishap .trail-wagon{animation:none}}
@media(max-width:500px){.xp-expedition{margin:10px 12px 18px}.trail-terminal-bar{font-size:8px}.trail-readout{font-size:10px}.trail-landscape{height:130px}}


/* The Community Club: three original scenes, shared points and betting controls. */
.chance-experience{--club-ink:#253b3a;--club-gold:#d9bc79;--club-muted:#73817c;margin:0;background:#f9f7f0;color:var(--club-ink);text-align:left}
.chance-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 28px 22px}
.chance-eyebrow{display:block;font-size:9px;font-weight:800;letter-spacing:2px;color:#83928a}
.chance-header h2{margin:7px 0 0;font-size:30px;line-height:1.1;letter-spacing:-1px;color:var(--club-ink)}
.chance-status{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #dce3d6;border-radius:30px;background:#eef1e8;font-size:8px;letter-spacing:.7px;font-weight:800;white-space:nowrap}
.chance-status i{width:5px;height:5px;border-radius:50%;background:#78977a;box-shadow:0 0 0 3px #78977a16}
.chance-felt{isolation:isolate;position:relative;overflow:hidden;display:grid;justify-items:center;gap:18px;min-height:500px;padding:30px 22px 26px;background:radial-gradient(ellipse at 50% 40%,#286253,#17483f 62%,#10382f);color:#f4e9cc;border:9px solid #524439;box-shadow:inset 0 0 0 2px #99805c,inset 0 0 70px #00180e66}
.chance-table-grain{position:absolute;inset:0;z-index:-1;opacity:.22;background:repeating-linear-gradient(0deg,#ffffff08 0px,#ffffff08 1px,transparent 1px,transparent 3px),repeating-linear-gradient(90deg,#00000008 0px,#00000008 1px,transparent 1px,transparent 3px)}
.chance-table-ring{position:absolute;left:6%;right:6%;height:77%;top:-17%;border:1px solid #d9bc794d;border-radius:0 0 50% 50%;z-index:-1;box-shadow:0 8px 0 -7px #d9bc794d}
.chance-dealer,.chance-player-hand{position:relative;z-index:1;text-align:center;max-width:100%}
.chance-hand-label{display:flex;justify-content:center;align-items:center;gap:10px;font-size:9px;font-weight:800;letter-spacing:1.7px;color:inherit;margin-bottom:14px}
.chance-hand-label b{font-size:10px;letter-spacing:.4px;border:1px solid #f1e1b733;background:#0b2c2555;padding:5px 9px;border-radius:20px;font-weight:600}
.chance-hand-label .chance-bust{color:#ffc1a6;background:#552b29}
.chance-hand{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0 12px;min-height:122px;max-width:420px;row-gap:12px;margin:auto}
.chance-card{position:relative;flex:0 0 auto;display:grid;place-items:center;width:82px;height:116px;border:1px solid #ded8c5;border-radius:9px;background:linear-gradient(125deg,#fffef9,#f4f0e4);color:#253d3e;box-shadow:0 6px 0 #00000012,0 9px 18px #001c2333;font-family:Georgia,'Times New Roman',serif;transform:rotate(-4deg)}
.chance-card+.chance-card{margin-left:-13px;transform:rotate(5deg) translateY(3px)}
.chance-card:nth-child(3n){transform:rotate(-2deg) translateY(1px)}
.chance-card:nth-child(4n){transform:rotate(7deg) translateY(4px)}
.chance-card-red{color:#b34d52}
.chance-card-corner{position:absolute;top:7px;left:8px;display:flex;flex-direction:column;align-items:center;font-size:18px;font-weight:700;line-height:.95}
.chance-card-corner i{font-size:14px;font-style:normal;margin-top:3px}
.chance-card-bottom{inset:auto 8px 7px auto;transform:rotate(180deg)}
.chance-card-pip{font-size:43px;line-height:1;text-shadow:0 1px 0 #fff}
.chance-card-back{border:4px solid #ede7d7;background:repeating-linear-gradient(45deg,transparent,transparent 4px,#e0c48a16 4px,#e0c48a16 5px),repeating-linear-gradient(-45deg,#203d4b,#203d4b 4px,#e0c48a22 4px,#e0c48a22 5px);outline:1px solid #d4c5a0;outline-offset:-8px;color:#d9bd82}
.chance-card-back>span{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d9bd8280;border-radius:50%;font-size:30px}
.chance-table-mark{display:flex;flex-direction:column;align-items:center;gap:8px;color:#d9bc79c9;padding:4px 0}
.chance-table-mark>span{font-size:18px}
.chance-table-mark strong{font-family:Georgia,'Times New Roman',serif;font-size:31px;letter-spacing:7px;font-weight:400;line-height:1}
.chance-table-mark small{font-size:7px;letter-spacing:1.6px;font-weight:600}
.chance-hand-caption{display:block;margin-top:16px;font-size:11px;color:#c4d3bf}
.chance-table-chip{position:absolute;display:grid;place-items:center;bottom:40px;left:7%;width:43px;height:43px;background:#e9dcc0;border:5px dashed #a0675d;outline:2px solid #e9dcc0;outline-offset:1px;border-radius:50%;color:#68433c;font-size:14px;font-weight:800;box-shadow:0 4px 0 #49362d,0 8px 10px #0003;transform:rotate(-16deg)}
.chip-two{bottom:48px;left:calc(7% + 14px);background:#d6e2cc;border-color:#638e74;color:#315d48;transform:rotate(15deg)}
.chip-three{left:auto;right:7%;bottom:60px;background:#d5d2e6;border-color:#6f678d;color:#4a426f;transform:rotate(27deg)}
.chance-wallet{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:22px 28px;border-bottom:1px solid #e5e4d9;background:#f1f0e6}
.chance-wallet>div:first-child{display:flex;align-items:center;gap:12px}
.chance-coin{display:grid;place-items:center;width:36px;height:36px;border:1px solid #c8ad64;border-radius:50%;background:#e5ce8f;box-shadow:inset 0 0 0 3px #efe0b3;color:#82703d;font-size:24px}
.chance-wallet div div>span,.chance-wager-total>span{display:block;font-size:8px;font-weight:800;letter-spacing:1.2px;color:#7a8478;margin-bottom:5px}
.chance-wallet strong{font-size:23px;font-weight:700;letter-spacing:-.6px;line-height:1}
.chance-wager-total{text-align:right}
.chance-wager-total strong{font-size:11px;font-weight:600;letter-spacing:0;line-height:1.5}
.chance-bet-form{display:grid;grid-template-columns:minmax(75px,.75fr) minmax(100px,1fr) minmax(100px,.9fr);align-items:end;gap:12px;padding:24px 28px 12px;margin:0!important}
.chance-bet-form label{display:block;font-size:8px;font-weight:800;letter-spacing:1px;color:#768079;min-width:0}
.chance-stake-input{display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #d6d9cc;border-radius:9px;background:#fffef8;margin-top:9px;height:46px}
.chance-stake-input>span{font-size:16px;color:#ac9251}
.chance-stake-input input{width:100%;min-width:0;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;font:700 16px system-ui;color:#263c3a;outline-offset:4px}
.chance-stake-input>small{font-size:10px;font-weight:500;letter-spacing:0;color:#7b8275}
.chance-bet-form select{width:100%;height:46px;margin-top:9px;border:1px solid #d6d9cc;border-radius:9px;padding:0 10px;background:#fffef8;color:#263c3a;font:600 12px system-ui;letter-spacing:0}
.chance-bet-form .chance-play-button{display:block;min-height:46px;padding:10px 13px;border:1px solid #254e43;border-radius:9px;background:#254e43;color:#fffcf0;font:700 12px system-ui;box-shadow:0 3px 0 #17392f;white-space:normal}
.chance-bet-form .chance-play-button:hover:not(:disabled){background:#356c58;box-shadow:0 3px 0 #17392f,0 0 0 3px #356c5818}
.chance-bet-form .chance-play-button:disabled{opacity:.45;cursor:not-allowed}
.chance-bet-form:has(.chance-play-label:first-child){grid-template-columns:1fr 1fr}
.chance-bet-form [data-answer-error]{grid-column:1/-1;font-size:12px;color:#a74043;margin:4px 0}
.chance-bet-form [hidden]{display:none!important}
.chance-help{font-size:11px;line-height:1.7;text-align:center;padding:16px 24px 20px;margin:0;color:#7a8377}
.chance-rules{margin:14px 28px 0;padding:18px 0;border-top:1px solid #dedfd3;color:#667364;font-size:11px}
.chance-rules summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:700;list-style:none}
.chance-rules summary:before{content:'+';font-size:16px;color:#7b8a73}
.chance-rules[open] summary:before{content:'−'}
.chance-rules summary>span{font-size:9px;font-weight:400;margin-left:auto;color:#8c9387}
.chance-rules p{font-size:12px;line-height:1.8;margin:14px 0 0}
.chance-experience .chance-result.a-reveal{display:flex;align-items:center;gap:16px;margin:20px 28px 0;padding:20px;background:#edf1e4;border:1px solid #d8e0c7;box-shadow:none;text-align:left}
.chance-result-icon{display:grid;flex-shrink:0;place-items:center;width:38px;height:38px;border:1px solid #b7c49e;border-radius:50%;font-size:24px;color:#7e9763}
.chance-result h3{font-size:20px!important;letter-spacing:-.5px;margin:6px 0 7px;line-height:1.15}
.chance-result p{font-size:11px;line-height:1.6;color:#728165;margin:0}
.chance-result .chance-eyebrow{font-size:7px;letter-spacing:1.3px}
.chance-net{margin-left:auto;white-space:nowrap;text-align:right;font-size:27px;color:#537646;letter-spacing:-1px}
.chance-net small{display:block;font-size:8px;font-weight:500;letter-spacing:0;margin-top:5px}
.chance-experience .chance-result-loss.a-reveal{background:#f1ebe3;border-color:#e2d7c8}
.chance-result-loss .chance-net,.chance-result-loss .chance-result-icon{color:#9b7760;border-color:#d6bfa8}
.chance-result-loss p{color:#8a7c6b}
.chance-experience .chance-result-push.a-reveal{background:#ebedf3;border-color:#d7dce7}
.chance-result-push .chance-net,.chance-result-push .chance-result-icon{color:#7983a5;border-color:#c5cce0}
/* Open-air turf course, with original vector jockeys and a physical finish line. */
.chance-race-scene{background:#e3e9d9;overflow:hidden}
.chance-race-sky{position:relative;overflow:hidden;isolation:isolate;min-height:184px;background:linear-gradient(#d3e7e4,#f4edcf);text-align:center;padding:25px 12px 50px}
.chance-race-sky>svg{position:absolute;inset:auto 0 0;width:100%;height:100px;z-index:-1}
.chance-race-sun{position:absolute;right:12%;top:30px;width:52px;height:52px;border-radius:50%;background:#fff4bf;box-shadow:0 0 0 12px #fff4bf33,0 0 0 26px #fff4bf22;z-index:-1}
.chance-race-meet{display:flex;flex-direction:column;gap:9px;color:#2c524b}
.chance-race-meet>span{font-size:8px;letter-spacing:2.5px;font-weight:800}
.chance-race-meet>strong{font-size:30px;font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.6px}
.chance-race-meet>small{font-size:7px;font-weight:700;letter-spacing:1.8px}
.chance-track{position:relative;isolation:isolate;margin:0;padding:12px 16px 16px;background:repeating-linear-gradient(0deg,#719d65,#719d65 28px,#6b965f 28px,#6b965f 56px);border-top:7px solid #f5f0d9;border-bottom:7px solid #f5f0d9;box-shadow:0 -3px 0 #7d856044,0 3px 0 #7d856044}
.chance-finish-line{position:absolute;top:0;bottom:0;right:53px;width:8px;background:repeating-conic-gradient(#f7f4e5 0% 25%,#2c493b 0% 50%) 0 0/8px 8px;opacity:.9;z-index:-1}
.chance-lane{--silk:#c5adea;display:grid;grid-template-columns:110px minmax(80px,1fr) 32px;gap:8px;align-items:center;position:relative;min-height:81px;border-bottom:1px dashed #f1efd66b}
.chance-lane:last-child{border-bottom:0}
.chance-silk-coral{--silk:#ea9885}.chance-silk-mint{--silk:#a5d2ad}.chance-silk-blue{--silk:#a4c9e7}
.chance-runner-name{display:flex;align-items:center;gap:7px;color:#f8f5df;position:relative;z-index:2;min-width:0}
.chance-runner-name>b{display:grid;place-items:center;flex-shrink:0;width:21px;height:26px;border:1px solid #fff6;border-radius:5px;background:var(--silk);color:#273c39;font-size:10px}
.chance-runner-name>span{font-size:10px;font-weight:700;line-height:1.3;text-shadow:0 1px 2px #1e482d55}
.chance-runner-name small{display:block;margin-top:5px;font-size:6px;letter-spacing:.7px;font-weight:600;color:#e4ead7}
.chance-lane.is-backed .chance-runner-name small{color:#fff0a6}
.chance-lane.is-backed .chance-runner-name>b{outline:2px solid #ead490;outline-offset:2px}
.chance-runway{position:relative;min-width:0;height:79px;width:calc(100% - 95px);margin-right:0}
.chance-runner{position:absolute;bottom:0;left:0;width:95px;height:76px;transition:none}
.chance-horse{display:block;width:100%;height:100%;overflow:visible}
.chance-race-place{font-size:11px;color:#e5e9cf;text-align:center;font-weight:600}
.chance-lane.is-winner .chance-race-place{border:1px solid #e2d087;border-radius:50%;width:30px;height:30px;line-height:28px;background:#ead490;color:#594a27;box-shadow:0 2px 0 #38432a44;font-weight:800}
.chance-place-1{--race-finish:91%;--race-mid:39%;left:var(--race-finish)}.chance-place-2{--race-finish:73%;--race-mid:50%;left:var(--race-finish)}.chance-place-3{--race-finish:52%;--race-mid:29%;left:var(--race-finish)}.chance-place-4{--race-finish:32%;--race-mid:45%;left:var(--race-finish)}
.chance-racing.chance-animate .chance-runner{animation:chance-race-run 3.4s cubic-bezier(.3,.1,.25,1) both}
.chance-racing.chance-animate .chance-horse-body{animation:chance-horse-bob .24s linear 14}
.chance-racing.chance-animate .chance-leg{transform-origin:60px 55px;animation:chance-horse-leg .24s ease-in-out 14 alternate}
.chance-racing.chance-animate .chance-leg-b{animation-direction:alternate-reverse}
.chance-race-footer{display:flex;justify-content:space-between;gap:10px;padding:15px 20px;font-size:9px;color:#5f7358}
.chance-race-footer>span:first-child{font-size:7px;font-weight:800;letter-spacing:.7px}
/* A midnight card room for the higher/lower duel. */
.chance-higher-scene{position:relative;isolation:isolate;overflow:hidden;min-height:430px;padding:32px 24px 26px;background:radial-gradient(ellipse at 65% 10%,#595a88,#303650 60%,#262d43);color:#eee9e3;text-align:center}
.chance-orbit{position:absolute;border:1px solid #c5b4e21c;border-radius:50%;z-index:-1;width:500px;height:500px;top:-110px;left:30%;transform:rotate(-30deg) scaleY(.6)}
.orbit-two{width:700px;height:700px;left:-60%;top:-40px;border-color:#d5bb7d1a}
.chance-higher-title>span{font-size:8px;font-weight:800;letter-spacing:2.6px;color:#c9b993}
.chance-higher-title h3{font-family:Georgia,'Times New Roman',serif;font-size:31px;letter-spacing:-.6px;font-weight:400;margin:12px 0 9px;color:#f4ede0}
.chance-higher-title p{font-size:11px;margin:0;color:#b4b5c9}
.chance-duel{display:flex;align-items:center;justify-content:center;gap:28px;margin:32px 0 30px}
.chance-duel>div:not(.chance-direction){display:flex;flex-direction:column;align-items:center;min-width:0}
.chance-duel .chance-card{width:106px;height:148px;border-radius:10px;box-shadow:0 6px 0 #15172944,0 16px 30px #11172755}
.chance-duel .chance-card-pip{font-size:56px}
.chance-duel .chance-hand-label{font-size:7px;letter-spacing:1.4px;color:#b9bad0;margin-bottom:15px}
.chance-duel>div:last-child .chance-card{transform:rotate(7deg)}
.chance-direction{display:flex;flex-direction:column;align-items:center;gap:11px;padding-top:20px;color:#cdb98c}
.chance-direction>span{font-size:23px;line-height:1}
.chance-direction>b{font-size:7px;text-transform:uppercase;letter-spacing:1.6px;border:1px solid #cdb98c44;border-radius:50%;width:42px;height:42px;display:grid;place-items:center}
.chance-rank-scale{display:flex;align-items:center;justify-content:center;gap:6px;position:relative;max-width:360px;margin:auto}
.chance-rank-scale>span{display:grid;place-items:center;flex:1;height:25px;max-width:24px;border-radius:5px;color:#aaaec5;font-size:9px}
.chance-rank-scale>.is-current{background:#d7c08e;color:#32374d;box-shadow:0 0 0 3px #d7c08e11;font-weight:800}
.chance-higherlower .chance-play-button{background:#4c506e;border-color:#3c405f;box-shadow:0 3px 0 #33374f}
.chance-higherlower .chance-play-button:hover:not(:disabled){background:#65698a}
@keyframes chance-card-deal{from{opacity:0;translate:0 -12px}to{opacity:1;translate:0 0}}
@keyframes chance-race-run{0%{left:0}45%{left:var(--race-mid)}100%{left:var(--race-finish)}}
@keyframes chance-horse-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes chance-horse-leg{from{transform:rotate(-18deg)}to{transform:rotate(18deg)}}
@container (max-width:520px){.chance-header{padding:21px 18px}.chance-header h2{font-size:26px}.chance-status{font-size:7px;padding:7px 9px}.chance-wallet{padding:18px}.chance-bet-form{padding:20px 18px 8px;gap:9px;grid-template-columns:minmax(70px,.8fr) minmax(95px,1.2fr)}.chance-bet-form .chance-play-button{grid-column:1/-1}.chance-rules{margin-left:18px;margin-right:18px}.chance-experience .chance-result.a-reveal{margin-left:18px;margin-right:18px;padding:17px 14px;gap:10px;flex-wrap:wrap}.chance-result h3{font-size:18px!important}.chance-result-icon{width:30px;height:30px;font-size:20px}.chance-result>div{flex:1;min-width:140px}.chance-net{font-size:24px;margin-left:40px}.chance-lane{grid-template-columns:90px minmax(80px,1fr) 26px;gap:4px}.chance-runner-name>span{font-size:9px}.chance-runner-name>b{width:17px;font-size:9px}.chance-runner-name small{font-size:5px}.chance-runner{width:77px;height:65px}.chance-runway{width:calc(100% - 77px)}.chance-track{padding-left:10px;padding-right:10px}.chance-finish-line{right:42px}.chance-race-meet>strong{font-size:27px}.chance-table-chip{left:4%;width:31px;height:31px;font-size:10px;border-width:4px}.chip-two{left:calc(4% + 9px)}.chip-three{left:auto;right:4%}.chance-felt{border-width:6px}.chance-table-mark strong{font-size:27px;letter-spacing:5px}.chance-table-mark small{font-size:6px}}
@container (max-width:350px){.chance-header{gap:8px}.chance-header h2{font-size:23px}.chance-status{letter-spacing:0;font-size:6px}.chance-eyebrow{font-size:7px}.chance-wallet{gap:8px}.chance-wallet strong{font-size:20px}.chance-wager-total strong{font-size:9px}.chance-wallet div div>span,.chance-wager-total>span{font-size:6px}.chance-coin{width:29px;height:29px}.chance-duel{gap:18px}.chance-duel .chance-card{width:82px;height:118px}.chance-higher-scene{padding-left:12px;padding-right:12px;min-height:390px}.chance-higher-title h3{font-size:27px}.chance-rank-scale{gap:1px}.chance-direction>b{width:30px;height:30px;font-size:6px}.chance-lane{grid-template-columns:78px minmax(70px,1fr) 25px}.chance-race-footer{font-size:7px;padding:14px 10px}.chance-race-footer>span:first-child{font-size:6px}.chance-rules summary>span{font-size:7px}.chance-table-chip{display:none}.chance-card{width:72px;height:104px}.chance-hand{min-height:110px}.chance-felt{min-height:470px}.chance-hand-label{font-size:7px;gap:6px}.chance-table-mark small{letter-spacing:.8px}}
@media(prefers-reduced-motion:reduce){.chance-experience *{animation:none!important;transition:none!important}}
.chance-move-buttons{grid-column:span 2;display:flex;gap:10px}
.chance-move-button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:63px;border:1px solid #a6b79b;border-radius:10px;background:#e9eedf;color:#36543f;padding:12px;cursor:pointer;text-align:left;box-shadow:0 3px 0 #cbd4be}
.chance-move-button>span{font:400 27px Georgia,serif}
.chance-move-button strong{font-size:14px;line-height:1.1}
.chance-move-button small{display:block;margin-top:6px;font-size:8px;font-weight:400;white-space:nowrap;opacity:.7}
.chance-move-button:nth-child(2){background:#eeece7;border-color:#c8c6ba;color:#626655;box-shadow:0 3px 0 #d8d5c8}
.chance-move-button:hover:not(:disabled){filter:brightness(1.04);box-shadow:0 3px 0 #b6c4a5,0 0 0 3px #a7b49522}
.chance-move-button:disabled{opacity:.45;cursor:not-allowed}
.chance-move-form{grid-template-columns:1fr}
.chance-move-form .chance-move-buttons{grid-column:1/-1}
.chance-higherlower .chance-move-button{color:#555b7d;background:#e7e7f1;border-color:#bcbdd4;box-shadow:0 3px 0 #ccccdf}
.chance-higherlower .chance-move-button:nth-child(2){color:#8c7362;background:#f0e7df;border-color:#dac8b6;box-shadow:0 3px 0 #ded0c1}
.chance-deal-note{align-self:center;padding-top:16px}
.chance-deal-note span{display:block;color:#8b927e;font-size:7px;letter-spacing:1px;font-weight:700}
.chance-deal-note strong{display:block;font-size:10px;color:#67745c;margin-top:7px;font-weight:600}
@container(max-width:520px){.chance-bet-form:has(.chance-move-buttons):not(.chance-move-form){grid-template-columns:1fr}.chance-move-buttons{grid-column:1/-1}.chance-stake-input{max-width:none}.chance-move-button{min-height:62px}.chance-deal-note{padding-top:17px}.chance-move-button strong{font-size:13px}}
.chance-animate .chance-race-place,.chance-horseracing:has(.chance-animate) .chance-result{animation:chance-results-in .3s 3.3s both}
@keyframes chance-results-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.chance-experience *{animation:none!important;transition:none!important}}

.xp-player-moment{display:flex;align-items:center;gap:12px;margin:18px 24px;padding:14px 16px;border:1px solid #dedfd5;border-radius:14px;background:#f3f1ea;color:#404536}
.xp-player-moment .xp-moment-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:12px;background:#fff9;font-size:24px}
.xp-player-moment>div{flex:1;min-width:0}.xp-player-moment strong{display:block;font-size:14px;line-height:1.4}.xp-player-moment small{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#626957}
.xp-player-moment>b{font-size:22px;font-variant-numeric:tabular-nums;text-align:right}.xp-player-moment>b small{font-size:9px;letter-spacing:1px}
.xp-moment-locked{background:#e8e5f5;border-color:#c4b9df;color:#514174}.xp-moment-scored{background:linear-gradient(110deg,#e0edcc,#f4edcb);border-color:#b9ce98;color:#3e5c2d}.xp-moment-scored .xp-moment-icon{color:#62843e}
@container(max-width:420px){.xp-player-moment{margin:14px;padding:12px;gap:9px}.xp-player-moment strong{font-size:13px}}

.chance-race-scene{position:relative}
.chance-race-mute{position:absolute;right:12px;top:10px;z-index:5;border:1px solid #526c58;border-radius:20px;background:#fff8e9;color:#294e40;padding:9px 12px;cursor:pointer;font:700 11px system-ui;min-height:36px}
.chance-race-countdown{position:absolute;inset:0;z-index:4;display:grid;place-content:center;text-align:center;pointer-events:none;font:900 76px system-ui;color:#fff8d9;text-shadow:0 4px 0 #31543b,0 0 30px #203c29;background:#254d3933}
.chance-race-countdown[hidden]{display:none}
.chance-racing.chance-animate .chance-runner{animation-delay:calc(3s + var(--race-offset,0ms))}
.chance-racing.chance-animate .chance-horse-body,.chance-racing.chance-animate .chance-leg{animation-delay:calc(3s + var(--race-offset,0ms))}
.chance-racing.chance-animate .chance-runner::after{content:'· ˚ ·';position:absolute;bottom:0;left:-14px;color:#e8d7a1;font-size:22px;animation:chance-dust .3s linear 11;animation-delay:calc(3s + var(--race-offset,0ms));opacity:0}
.chance-animate .chance-race-place,.chance-horseracing:has(.chance-animate) .chance-result{animation-delay:calc(6.4s + var(--race-offset,0ms))}
.chance-horseracing:has(.race-in-progress) .chance-result{visibility:hidden}
@keyframes chance-dust{from{opacity:.8;transform:translateX(0)}to{opacity:0;transform:translate(-18px,-5px)}}

/* In-flow countdown: prominent above every board without covering game inputs. */
.xp-game .xp-visible-countdown{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 20px 18px;padding:12px 20px;border:1px solid #acbda1;border-radius:14px;background:#edf3e6;color:#304b31;box-shadow:0 3px 0 #d5dfcc;pointer-events:none}
.xp-game .xp-visible-countdown[hidden]{display:none}
.xp-visible-countdown strong{font:800 38px/1.1 system-ui;font-variant-numeric:tabular-nums;letter-spacing:-1px;white-space:nowrap}
.xp-countdown-label{font:800 10px/1.4 system-ui;letter-spacing:1.3px}
.xp-countdown-note{font:500 12px/1.4 system-ui}
.xp-game .xp-visible-countdown.is-urgent{background:#fff0e7;color:#9c3424;border-color:#d69b7e;box-shadow:0 3px 0 #efd1bd}
.xp-game .xp-visible-countdown.is-paused{background:#eeedf3;border-color:#c6c1d7;color:#625677;box-shadow:none}
@container(max-width:420px){.xp-game .xp-visible-countdown{gap:12px;margin:10px 12px 14px;padding:12px}.xp-visible-countdown strong{font-size:32px}.xp-countdown-note{font-size:10px}.xp-countdown-label{font-size:9px;letter-spacing:.8px}}
