:root{color-scheme:light;--raspberry: #9B214E;--blush: #FFF5F7;--rose: #F3B8CA;--rose-deep: #D87498;--gold: #D99A2B;--ink: #2A1720;--white: #FFFFFF;--shadow: 0 18px 48px rgba(73, 19, 40, .12);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--blush);font-synthesis:none}*{box-sizing:border-box}html{min-width:320px;background:var(--blush)}body{margin:0;min-width:320px;min-height:100vh;background:var(--blush) url(/media/brand/paper-texture.png) center top / 760px auto repeat}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}img{max-width:100%;display:block}h1,h2,p{margin-top:0}h1,h2{font-family:Georgia,Times New Roman,serif;font-weight:500;letter-spacing:-.02em}h1{font-size:clamp(2.25rem,5vw,4.5rem);line-height:.98;margin-bottom:1rem}h2{font-size:clamp(1.45rem,2.8vw,2.2rem);line-height:1.08}p{line-height:1.55}.app-shell{min-height:100vh;padding-bottom:env(safe-area-inset-bottom)}.topbar{width:min(1180px,calc(100% - 32px));margin:0 auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand-button{border:0;background:transparent;padding:8px 0;display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-align:left;min-height:44px}.brand-button strong{display:block;font-family:Georgia,serif;font-size:1.2rem;font-weight:600;color:var(--raspberry)}.brand-button small{display:block;font-size:.72rem;color:#744856}.brand-mark{width:42px;height:42px;flex:none}.topbar-actions{display:flex;align-items:center;gap:12px}.offline-label{color:var(--raspberry);font-size:.76rem;font-weight:700}main{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:24px 0 64px}.button{min-height:46px;border:1px solid transparent;border-radius:12px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;letter-spacing:.01em;transition:transform .16s ease,background-color .16s ease,border-color .16s ease}.button:hover{transform:translateY(-2px)}.button-primary{background:var(--raspberry);color:var(--white);box-shadow:0 8px 18px #9b214e33}.button-primary:hover{background:#7f1740}.button-secondary{background:var(--white);border-color:var(--rose);color:var(--raspberry)}.button-quiet{background:transparent;border-color:#e6b4c5;color:var(--raspberry)}.button-small{min-height:36px;padding:0 12px;font-size:.84rem}.text-button{border:0;background:none;color:var(--raspberry);text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:8px;font-weight:700}.icon-button{width:44px;height:44px;border:0;background:transparent;color:var(--ink);font-size:1.7rem}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:800;color:var(--raspberry);margin-bottom:10px}.helper,.small-note,.duration{color:#765462;font-size:.9rem}.hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:clamp(28px,6vw,84px);padding:48px 0 76px}.hero-lede{font-size:clamp(1rem,1.7vw,1.25rem);max-width:520px;color:#674552}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.hero-art{border-radius:28px;padding:12px;background:var(--white);box-shadow:var(--shadow);transform:rotate(2deg)}.hero-art img{aspect-ratio:1;width:100%;object-fit:cover;border-radius:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 20px}.section-heading h2{margin-bottom:0}.section-note{max-width:310px;margin-bottom:4px;color:#765462;font-size:.9rem}.game-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}.game-card{background:var(--white);border:1px solid #f1c8d4;border-radius:24px;overflow:hidden;box-shadow:0 10px 28px #5a153114}.game-cover{aspect-ratio:1.35;overflow:hidden;background:var(--rose)}.game-cover img{width:100%;height:100%;object-fit:cover}.cover-fallback{height:100%;display:grid;place-items:center}.game-card-body{padding:24px}.game-card-body h2{margin-bottom:10px}.game-card-body p:not(.eyebrow){color:#765462;min-height:52px}.privacy-note{display:flex;align-items:center;gap:12px;margin-top:24px;padding:16px 18px;background:#fffafc;border:1px solid var(--rose);border-radius:14px;color:#6d4452}.privacy-note p{margin:0;font-size:.9rem}.privacy-icon{color:var(--raspberry);font:2rem Georgia,serif}.flow-card,.winner-card,.empty-state{max-width:620px;margin:64px auto;padding:clamp(28px,6vw,56px);background:var(--white);border:1px solid #f0c7d4;border-radius:28px;box-shadow:var(--shadow)}.flow-card h1,.winner-card h1,.empty-state h1{font-size:clamp(2.1rem,5vw,3.6rem)}.flow-card>p:not(.eyebrow),.winner-card>p:not(.eyebrow),.empty-state>p:not(.eyebrow){color:#765462}.check-row{display:flex;align-items:flex-start;gap:12px;padding:16px;margin:28px 0 20px;background:var(--blush);border:1px solid var(--rose);border-radius:14px;line-height:1.45}.check-row input{width:22px;height:22px;accent-color:var(--raspberry);flex:none}.button-stack{display:grid;gap:10px;margin:24px 0 12px}.name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}label{display:grid;gap:8px;font-size:.88rem;font-weight:700}input[type=text],input:not([type]){width:100%;min-height:48px;border:1px solid #dcaabd;border-radius:10px;padding:0 13px;color:var(--ink);background:#fffdfd}input::placeholder{color:#ad8692}fieldset{border:0;padding:0;margin:24px 0}legend{font-family:Georgia,serif;font-size:1.3rem;margin-bottom:12px}.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.category-option{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid #e5bcc9;background:#fffafc;border-radius:12px;cursor:pointer;font-weight:400}.category-option input{margin-top:2px;accent-color:var(--raspberry);width:20px;height:20px}.category-option span{display:grid;gap:3px}.category-option small{color:#765462;font-size:.76rem;line-height:1.35}.category-count{margin:10px 0 0;color:var(--raspberry);font-size:.8rem;font-weight:700}.loading-state{min-height:60vh;display:grid;place-items:center;align-content:center;gap:16px;color:#765462}.spinner{width:34px;height:34px;border:3px solid var(--rose);border-top-color:var(--raspberry);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.game-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin:8px 0 18px}.game-heading h1{font-size:clamp(2rem,4vw,3.7rem);margin-bottom:8px}.game-status{color:#765462;margin-bottom:0}.board{position:relative;width:min(100%,720px);aspect-ratio:1;margin:0 auto;padding:7px;background:#5a1933;border:3px solid #3b1224;border-radius:20px;box-shadow:0 18px 40px #4411232e;overflow:hidden}.board-grid{position:absolute;inset:7px;display:grid;grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(10,1fr)}.board-cell{position:relative;display:flex;align-items:flex-start;justify-content:space-between;min-width:0;padding:3px;background:#ffe7ee;border:1px solid rgba(155,33,78,.14);font-size:clamp(.46rem,1.2vw,.7rem);color:#713f4d}.board-cell:nth-child(4n),.board-cell:nth-child(4n+1){background:#f6bdce}.finish-cell{background:#f5dba8!important;color:#774d12;font-weight:800}.cell-number{line-height:1}.cell-marker{font-size:clamp(.72rem,1.8vw,1.1rem);line-height:.8;font-weight:900}.ladder-marker{color:#a66b0c}.snake-marker{color:#9b214e}.board-lines{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);pointer-events:none}.ladder-line{stroke:#a66b0c;stroke-width:.13;stroke-linecap:round;opacity:.85}.snake-line{fill:none;stroke:#9b214e;stroke-width:.15;stroke-linecap:round;stroke-dasharray:.22 .16;opacity:.85}.pawn{position:absolute;z-index:3;width:clamp(28px,5vw,44px);height:clamp(34px,6vw,50px);transform:translate(-50%,-50%);display:grid;place-items:center;transition:left .11s ease,top .11s ease;filter:drop-shadow(0 4px 4px rgba(42,23,32,.2))}.pawn-shape{display:grid;place-items:center;width:100%;height:100%;clip-path:polygon(50% 0,62% 18%,85% 18%,69% 35%,78% 60%,50% 45%,22% 60%,31% 35%,15% 18%,38% 18%);font-size:clamp(1.2rem,3vw,1.8rem);color:var(--white);text-shadow:0 1px 2px rgba(0,0,0,.2)}.heart-shape{background:var(--raspberry)}.star-shape{background:#2d7784;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 56%,79% 92%,50% 70%,21% 92%,32% 56%,2% 35%,39% 35%)}.pawn-label{position:absolute;bottom:-8px;min-width:19px;height:19px;padding:0 4px;border-radius:10px;display:grid;place-items:center;background:var(--white);color:var(--ink);font-size:.64rem;font-weight:800;border:1px solid rgba(42,23,32,.24)}.board-legend{display:flex;flex-wrap:wrap;gap:12px 18px;justify-content:center;padding:14px 0;color:#765462;font-size:.78rem}.legend-dot{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:5px}.dot-one{background:var(--raspberry)}.dot-two{background:#2d7784}.legend-jump{color:#96600d}.turn-panel{position:sticky;top:18px;display:grid;gap:14px}.turn-card,.mini-rules{background:var(--white);border:1px solid #efc4d2;border-radius:22px;padding:22px;box-shadow:0 12px 32px #5a153114}.turn-player{display:flex;align-items:center;gap:12px;margin:8px 0 20px}.turn-player strong{display:block;font-size:1.15rem}.turn-player small{color:#765462}.turn-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--white);background:var(--raspberry);font-family:Georgia,serif;font-size:1.3rem}.dice{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 18px;border:2px solid var(--gold);background:#fff9e9;border-radius:18px;box-shadow:inset 0 0 0 5px #fffdf6}.dice-face{font:2.5rem Georgia,serif;color:var(--raspberry)}.dice.is-rolling{animation:diceRoll .65s ease both}@keyframes diceRoll{0%{transform:rotate(0) scale(1)}35%{transform:rotate(14deg) scale(1.1)}70%{transform:rotate(-13deg) scale(.96)}to{transform:rotate(0) scale(1)}}.roll-button{width:100%}.small-note{text-align:center;margin:12px 0 0;font-size:.75rem}.mini-rules{background:#fffafc}.mini-rules p{margin:6px 0 0;color:#765462;font-size:.84rem}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:end center;padding:20px;background:#2a17206b}.sheet{position:relative;width:min(100%,520px);padding:30px 26px calc(26px + env(safe-area-inset-bottom));background:var(--white);border:1px solid #f0c7d4;border-radius:26px 26px 18px 18px;box-shadow:0 -12px 50px #2a172038;animation:sheetIn .22s ease both}@keyframes sheetIn{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.sheet-handle{width:48px;height:4px;margin:-12px auto 22px;border-radius:4px;background:var(--rose)}.modal-close{position:absolute;right:10px;top:10px}.sheet h2{font-size:clamp(1.55rem,4vw,2.35rem);margin:10px 0 12px}.challenge-sheet .small-note{text-align:left}.challenge-actions{display:grid;gap:10px;margin:22px 0 12px}.jump-note{display:inline-block;padding:5px 9px;border-radius:8px;font-size:.72rem;font-weight:800}.jump-up{color:#6d4709;background:#fff1c7}.jump-down{color:#8b1c46;background:#ffe2eb}.install-steps{margin:20px 0 24px;padding-left:22px}.install-steps li{margin:11px 0;line-height:1.45}.update-banner{position:fixed;z-index:12;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:8px 10px 8px 16px;background:var(--ink);color:var(--white);border-radius:12px;box-shadow:var(--shadow);font-size:.86rem}.toast{position:fixed;z-index:30;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%);max-width:min(90vw,420px);padding:12px 16px;background:var(--ink);color:var(--white);border-radius:12px;box-shadow:var(--shadow);text-align:center;font-size:.86rem;animation:toastIn .18s ease both}.toast-success{background:var(--raspberry)}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.winner-card{position:relative;text-align:center;overflow:hidden}.winner-mark{color:var(--raspberry);font:4.5rem Georgia,serif;line-height:1;margin:8px 0}.winner-card .button-stack{max-width:300px;margin-left:auto;margin-right:auto}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-14px;left:calc((var(--i) + 1) * 6%);width:8px;height:14px;background:var(--rose);transform:rotate(calc(var(--i) * 23deg));animation:confettiDrop 1.8s ease-out both;animation-delay:calc(var(--i) * 35ms)}.confetti i:nth-child(3n){background:var(--gold)}.confetti i:nth-child(4n){background:var(--raspberry)}@keyframes confettiDrop{to{transform:translateY(440px) rotate(360deg);opacity:0}}@media(max-width:959px){.hero{padding-top:24px;grid-template-columns:1fr}.hero-art{max-width:620px;width:78%;justify-self:center;order:-1}.game-layout{grid-template-columns:1fr}.turn-panel{position:static;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);align-items:start}.turn-card{display:grid;grid-template-columns:1fr 100px;column-gap:14px}.turn-card .eyebrow,.turn-card .turn-player,.turn-card .small-note{grid-column:1}.turn-card .dice{grid-column:2;grid-row:1 / span 3}.turn-card .roll-button{grid-column:1 / -1}.mini-rules{height:100%}}@media(max-width:639px){.topbar{width:min(100% - 22px,1180px);min-height:66px}.topbar-actions .button{display:none}.offline-label{font-size:.68rem;text-align:right;max-width:150px}main{width:calc(100% - 22px);padding-top:12px;padding-bottom:24px}h1{font-size:clamp(2.2rem,12vw,3.5rem)}.hero{padding:18px 0 44px;gap:28px}.hero-art{width:92%}.hero-actions{display:grid}.hero-actions .button{width:100%}.section-heading{display:block}.section-note{margin-top:10px}.game-grid{grid-template-columns:1fr}.flow-card,.winner-card,.empty-state{margin:30px auto;padding:24px 20px;border-radius:22px}.name-grid,.category-grid{grid-template-columns:1fr}.game-heading{margin-top:4px}.game-heading h1{font-size:2.3rem}.game-heading .button{min-height:40px;padding:0 12px}.board{border-radius:14px;padding:4px}.board-grid{inset:4px}.board-lines{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}.board-cell{padding:2px}.pawn{transition-duration:80ms}.board-legend{padding-bottom:6px}.turn-panel{position:fixed;z-index:8;left:0;right:0;bottom:0;display:block;padding:8px 11px calc(10px + env(safe-area-inset-bottom));background:#fff5f7f5;border-top:1px solid var(--rose);box-shadow:0 -8px 24px #5a15311a}.turn-card{border-radius:15px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(120px,1fr);align-items:center;gap:8px}.turn-card .eyebrow{grid-column:1;grid-row:1;margin:0;font-size:.6rem}.turn-player{grid-column:1;grid-row:2;margin:0;gap:7px}.turn-player strong{font-size:.92rem}.turn-player small{font-size:.7rem}.turn-avatar{width:30px;height:30px;font-size:.9rem}.turn-card .dice{grid-column:2;grid-row:1 / span 2;width:50px;height:50px;margin:0;border-radius:12px}.dice-face{font-size:1.7rem}.turn-card .roll-button{grid-column:3;grid-row:1 / span 2;min-height:50px}.turn-card .small-note,.mini-rules{display:none}.app-shell main{padding-bottom:118px}.update-banner{bottom:calc(112px + env(safe-area-inset-bottom))}.modal-backdrop{padding:0}.sheet{border-radius:22px 22px 0 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}.confetti{display:none}}.setup-note{display:flex;align-items:flex-start;gap:12px;margin:20px 0;padding:14px 16px;background:#fffafc;border:1px solid var(--rose);border-radius:14px;color:#6d4452}.setup-note p{margin:0;font-size:.9rem;line-height:1.45}.setup-note-icon{color:var(--raspberry);font:1.6rem Georgia,serif;line-height:1}.board-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin:0 auto 10px;width:min(100%,720px)}.toolbar-label{margin-right:auto;color:#765462;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.zoom-value{min-width:44px;text-align:center;color:#765462;font-size:.78rem;font-variant-numeric:tabular-nums}.board-viewport{width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;border-radius:20px;padding:4px;scrollbar-color:var(--rose) transparent}.board-stage{min-width:100%;display:flex;justify-content:center;align-items:flex-start}.board{flex:0 0 auto;width:min(100%,720px);min-width:0;aspect-ratio:1}.board-grid{z-index:1}.board-cell{appearance:none;-webkit-appearance:none;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr auto;align-items:center;justify-items:center;gap:1px;min-width:0;padding:clamp(2px,.42vw,5px);overflow:hidden;text-align:center;font:inherit;color:#6d3248;cursor:pointer;transition:background-color .14s ease,transform .14s ease,box-shadow .14s ease}.board-cell:nth-child(4n),.board-cell:nth-child(4n+1){background:#df6d93;color:#5c2040}.board-cell:nth-child(4n+2),.board-cell:nth-child(4n+3){background:#ffe0e9}.board-cell:hover{z-index:2;transform:scale(1.06);box-shadow:0 0 0 2px var(--gold)}.board-cell:focus-visible{z-index:4;outline:3px solid var(--gold);outline-offset:-3px}.board-cell.is-focused{z-index:3;box-shadow:inset 0 0 0 3px var(--gold),0 0 0 2px #d99a2b57}.board-cell.scene-milestone{background:#f4b2c7}.board-cell.finish-cell{background:#f5dba8!important;color:#774d12}.cell-number{grid-column:1;grid-row:1;align-self:start;justify-self:start;font-size:clamp(.45rem,1.05vw,.72rem);font-weight:850;line-height:1}.cell-label{grid-column:1 / -1;grid-row:3;width:100%;overflow:hidden;font-size:clamp(.36rem,.78vw,.58rem);font-weight:800;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.scene-icon{grid-column:1 / -1;grid-row:2;width:clamp(16px,3.2vw,33px);height:clamp(16px,3.2vw,33px);color:currentColor;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.45;opacity:.96}.scene-icon-large{width:86px;height:86px;color:var(--raspberry);stroke-width:1.25}.cell-jump{grid-column:3;grid-row:1;font-size:clamp(.66rem,1.3vw,.9rem);font-weight:900;line-height:1}.board-lines{z-index:2}.ladder-shadow{stroke:#2a172040;stroke-width:.25;stroke-linecap:round}.ladder-rail{stroke:url(#ladder-gold);stroke-width:.12;stroke-linecap:round}.ladder-rungs line{stroke:#dca33d;stroke-width:.1;stroke-linecap:round}.snake-shadow{fill:none;stroke:#2a172040;stroke-width:.42;stroke-linecap:round;transform:translate(.06px,.08px)}.snake-body{fill:none;stroke:url(#snake-pink);stroke-width:.32;stroke-linecap:round}.snake-belly{fill:none;stroke:#ffe1ebcc;stroke-width:.1;stroke-linecap:round;stroke-dasharray:.08 .12}.snake-head ellipse{fill:#ad2b61;stroke:#71183e;stroke-width:.06}.snake-head circle{fill:#fff7f8;stroke:#2a1720;stroke-width:.025}.snake-head path{fill:none;stroke:#ee7d9e;stroke-width:.04;stroke-linecap:round}.snake-tail{fill:#8f1f4e}.scene-sprite{position:absolute;width:0;height:0;overflow:hidden}.pawn{z-index:4}.focus-panel{background:#fff;border:1px solid #efc4d2;border-radius:22px;padding:20px;box-shadow:0 12px 32px #5a153114}.focus-content{min-height:210px}.focus-content h2{margin:4px 0 8px;font-size:1.7rem}.focus-content p:not(.eyebrow):not(.duration){color:#6d4452}.focus-icon{display:grid;place-items:center;width:104px;height:104px;margin:4px auto 12px;background:var(--blush);border:1px solid var(--rose);border-radius:18px}.focus-instruction{font-size:1rem;line-height:1.5}.focus-panel .button{width:100%;margin-top:4px}.scene-modal-icon{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 10px;background:var(--blush);border-radius:18px}.scene-instruction{font-size:1.08rem;line-height:1.5;color:#4f2737}.challenge-sheet{text-align:center}.challenge-sheet .jump-note{margin-bottom:6px}.challenge-sheet .small-note{text-align:center}@media(max-width:959px){.board-toolbar{width:min(100%,720px)}.focus-panel{min-height:0}}@media(max-width:639px){.board-toolbar{justify-content:flex-start;gap:5px}.toolbar-label{flex:1 0 100%;margin-bottom:2px}.board-viewport{margin-inline:-4px;width:calc(100% + 8px);border-radius:14px;padding:3px}.board-stage{justify-content:flex-start}.board{min-width:100%;border-radius:12px}.cell-label{font-size:clamp(.34rem,1.55vw,.5rem)}.scene-icon{width:clamp(15px,4.1vw,27px);height:clamp(15px,4.1vw,27px)}.focus-panel{padding:14px;border-radius:16px}.focus-content{min-height:170px}.focus-icon{width:76px;height:76px}.scene-icon-large{width:62px;height:62px}}
