:root,[data-theme=dark]{--bg: #07101f;--surface: #0c1829;--surface-2: #111f33;--surface-3: #162540;--border: #1a2e48;--border-hi: #243d5e;--text: #ddeaf8;--text-2: #7a9cc0;--text-3: #3d5e7e;--accent: #4f9eff;--accent-2: #a78bfa;--grad: linear-gradient(135deg, #4f9eff 0%, #a78bfa 100%);--grad-subtle: linear-gradient(135deg, #142040 0%, #1a1640 100%);--success: #34d399;--danger: #f87171;--radius: 14px;--radius-sm: 8px;--shadow: 0 4px 24px #00000060;--topbar-bg: #080f1ecc;--input-dock-bg:#080f1ecc;--scrollbar-thumb: #243d5e;--scrollbar-thumb-hover: #3d5e7e;--user-bubble-bg: linear-gradient(135deg, #163868 0%, #1b2a60 100%);--user-bubble-border: #2a4a88;--codeblock-header-bg: #0a1525;--shell-gradient: radial-gradient(ellipse 80% 50% at 50% -10%, #1a3060 0%, transparent 70%), var(--bg)}[data-theme=light]{--bg: #f0f4f8;--surface: #ffffff;--surface-2: #e8eef5;--surface-3: #dde6f0;--border: #c8d8e8;--border-hi: #a0b8d0;--text: #1a2a3a;--text-2: #4a6a8a;--text-3: #8aaac8;--accent: #1a7fe8;--accent-2: #7c5dcc;--grad: linear-gradient(135deg, #1a7fe8 0%, #7c5dcc 100%);--grad-subtle: linear-gradient(135deg, #ddeeff 0%, #e8e0ff 100%);--success: #059669;--danger: #dc2626;--shadow: 0 4px 24px #0000001a;--topbar-bg: #ffffffcc;--input-dock-bg:#ffffffcc;--scrollbar-thumb: #a0b8d0;--scrollbar-thumb-hover: #6a8aaa;--user-bubble-bg: linear-gradient(135deg, #ddeeff 0%, #e8e0ff 100%);--user-bubble-border: #a0b8e8;--codeblock-header-bg: #e0eaf5;--shell-gradient: radial-gradient(ellipse 80% 50% at 50% -10%, #c8dff5 0%, transparent 70%), var(--bg)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}body::-webkit-scrollbar{width:8px}body::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:4px}body::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.shell{display:flex;flex-direction:column;height:100%;background:var(--shell-gradient)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;background:var(--topbar-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);flex-shrink:0;position:relative;z-index:10}.topbar:after{content:"";position:absolute;right:0;left:0;height:1px;bottom:0;top:auto;background:var(--grad);opacity:.4}.topbar-brand{display:flex;align-items:center;gap:10px}.topbar-icon{width:32px;height:32px;border-radius:8px;background:var(--grad-subtle);border:1px solid var(--border-hi);display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0}.topbar-name{font-weight:700;font-size:.95rem;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.topbar-sep{color:var(--border-hi);font-size:.9rem}.topbar-domain{font-size:.78rem;color:var(--text-2)}.topbar-actions{display:flex;align-items:center;gap:8px}.theme-toggle-btn{width:34px;height:34px;border-radius:7px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text-2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0}.theme-toggle-btn:hover{background:var(--surface-3);color:var(--accent);border-color:var(--accent)}.new-chat-btn{display:flex;align-items:center;gap:6px;padding:6px 13px;border-radius:7px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text-2);font-size:.8rem;cursor:pointer;transition:all .15s}.new-chat-btn:hover{background:var(--surface-3);color:var(--text);border-color:var(--accent)}.main{flex:1;overflow:auto;display:flex;flex-direction:column}.hub{min-height:100%;display:flex;flex-direction:column;background:var(--shell-gradient)}.hub-header{display:flex;align-items:center;justify-content:space-between;padding:0 28px;height:52px;background:var(--topbar-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);flex-shrink:0;position:relative}.hub-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:var(--grad);opacity:.4}.hub-brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:.95rem;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:var(--accent)}.hub-logo{flex-shrink:0;width:30px;height:30px;object-fit:cover;border-radius:7px}[data-theme=dark] .hub-logo{filter:invert(1) hue-rotate(180deg)}.hub-domain{font-size:.78rem;color:var(--text-2)}.hub-main{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:56px 24px 48px}.hub-inner{width:100%;max-width:720px;display:flex;flex-direction:column;gap:12px;animation:fadeUp .35s ease}.hub-title{font-size:2rem;font-weight:700;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.2}.hub-sub{font-size:.88rem;color:var(--text-2);margin-bottom:16px}.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:26px 14px}.hub-inner:has(.hub-grid){max-width:1240px}.hub-main:has(.hub-grid){padding-left:clamp(16px,4vw,56px);padding-right:clamp(16px,4vw,56px)}.app-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 2px;background:none;border:none;border-radius:var(--radius);cursor:pointer;color:var(--text);min-width:0;-webkit-tap-highlight-color:transparent}.app-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-tile-icon{width:68px;height:68px;border-radius:20px;background:linear-gradient(150deg,color-mix(in srgb,currentColor 34%,var(--surface)),color-mix(in srgb,currentColor 10%,var(--surface)));border:1px solid color-mix(in srgb,currentColor 40%,var(--border-hi));box-shadow:0 6px 16px #00000038,inset 0 1px #ffffff2e;display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0;transition:transform .15s,box-shadow .15s}.app-tile-icon svg{width:38px;height:38px}.app-tile:hover .app-tile-icon,.app-tile:focus-visible .app-tile-icon{transform:translateY(-3px);box-shadow:0 10px 22px #0000004d,inset 0 1px #fff3}.app-tile:active .app-tile-icon{transform:scale(.95)}.app-tile-name{font-weight:600;font-size:.78rem;line-height:1.2;text-align:center;text-wrap:balance;max-width:100%}.topbar-back{width:30px;height:30px;border-radius:7px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text-2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0;margin-right:2px}.topbar-back:hover{background:var(--surface-3);color:var(--accent);border-color:var(--accent)}@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.app{height:100%;display:flex;flex-direction:column}.ludo-tile-icon{color:#22c55e}.ludo-shell{display:flex;flex-direction:column;height:100%;min-height:100vh;min-height:100dvh;background:var(--shell-gradient);color:var(--text);position:relative;overflow-y:auto;touch-action:manipulation}.ludo-shell--neon{background:radial-gradient(ellipse 80% 50% at 50% -10%,#3b0764 0%,transparent 70%),#05010f}.ludo-topbar{display:flex;align-items:center;gap:12px;height:52px;padding:0 16px;border-bottom:1px solid var(--border);background:var(--topbar-bg);flex-shrink:0;position:sticky;top:0;z-index:5}.ludo-title{font-weight:700;font-size:.95rem;flex:1}.ludo-coins{font-size:.85rem;font-weight:600;color:var(--text-2)}.ludo-icon-btn{background:none;border:none;cursor:pointer;color:var(--text);font-size:1.2rem;min-width:40px;min-height:40px}.ludo-menu{width:100%;max-width:520px;margin:0 auto;padding:12px 16px 32px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px}.ludo-tabs{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border-hi);border-radius:10px;overflow:hidden}.ludo-tabs button{padding:11px 4px;border:none;background:var(--surface-2);color:var(--text-2);cursor:pointer;font-weight:600;font-size:.85rem}.ludo-tabs button.on{background:var(--accent);color:#fff}.ludo-daily{padding:12px;border-radius:12px;border:1px dashed #eab308;background:#eab3081f;color:var(--text);cursor:pointer;font-weight:600}.ludo-daily small{color:var(--text-2);font-weight:400}.ludo-setup{max-width:480px;width:100%;margin:12px auto;padding:0 16px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}.ludo-menu .ludo-setup{padding:0;margin:0}.ludo-setup h2,.ludo-setup h3{margin:4px 0 0}.ludo-setup p{margin:0;color:var(--text-2);font-size:.88rem}.ludo-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ludo-setup-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px;border-radius:12px;border:2px solid;background:var(--surface-2);color:var(--text);cursor:pointer;font-weight:600;min-height:48px}.ludo-mode{font-size:.75rem;font-weight:400;color:var(--text-2)}.ludo-dot{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;flex-shrink:0;color:#fff;font-size:8px}.ludo-dot i{font-style:normal;line-height:1}.ludo-rules{font-size:.78rem!important}.ludo-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem;color:var(--text-2);flex-wrap:wrap}.ludo-seg{display:flex;border:1px solid var(--border-hi);border-radius:8px;overflow:hidden;flex-wrap:wrap}.ludo-seg button{padding:8px 12px;border:none;background:var(--surface-2);color:var(--text-2);cursor:pointer;font-size:.8rem;min-height:36px}.ludo-seg button.on{background:var(--accent);color:#fff}.ludo-check{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--text-2);min-height:32px}.ludo-check input{width:18px;height:18px}.ludo-rules-box{border:1px solid var(--border);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.ludo-rules-box summary{cursor:pointer;color:var(--text-2);font-size:.85rem}.ludo-field{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--text-2)}.ludo-field input,.ludo-join input{padding:10px 12px;border-radius:8px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:1rem;width:100%;box-sizing:border-box}.ludo-join{display:flex;gap:8px}.ludo-join input{letter-spacing:.15em}.ludo-error{color:#f87171!important}.ludo-code{letter-spacing:.2em;font-family:monospace;color:var(--accent)}.ludo-recovery{word-break:break-all;background:var(--surface-2);padding:10px;border-radius:8px;font-size:.8rem}.ludo-primary{padding:12px 18px;border-radius:10px;border:none;background:var(--accent);color:#fff;font-weight:600;cursor:pointer;font-size:.95rem;min-height:44px}.ludo-primary:disabled{opacity:.45;cursor:not-allowed}.ludo-secondary{padding:12px 18px;border-radius:10px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-weight:600;cursor:pointer;font-size:.95rem;min-height:44px}.ludo-secondary:disabled{opacity:.6;cursor:default}.ludo-link{background:none;border:none;color:var(--text-2);cursor:pointer;text-decoration:underline;font-size:.8rem;padding:8px}.ludo-link:disabled{opacity:.4;cursor:default}.ludo-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.ludo-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center}.ludo-stats div{background:var(--surface-2);border-radius:10px;padding:8px 4px;display:flex;flex-direction:column}.ludo-stats b{font-size:1.1rem}.ludo-stats span{font-size:.7rem;color:var(--text-2)}.ludo-board-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:.85rem}.ludo-board-list li span:first-child{font-weight:600;margin-right:8px}.ludo-board-list li span:last-child{color:var(--text-2)}.ludo-shop{display:flex;flex-direction:column;gap:8px}.ludo-shop-item{display:flex;align-items:center;gap:10px;background:var(--surface-2);border-radius:10px;padding:8px 10px}.ludo-shop-item button{padding:8px 12px;min-height:36px;min-width:84px}.ludo-shop-name{flex:1;font-size:.9rem}.ludo-piece-prev{width:44px;height:44px;flex-shrink:0;background:var(--surface);border:1px solid var(--border-hi);border-radius:10px}.ludo-swatch{width:32px;height:32px;border-radius:8px;border:1px solid var(--border-hi);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}.ludo-seats{display:flex;flex-direction:column;gap:6px}.ludo-seat{display:flex;align-items:center;gap:8px;border-left:4px solid;background:var(--surface-2);border-radius:8px;padding:8px 10px}.ludo-seat-name{flex:1;font-size:.9rem}.ludo-star{font-size:.7px;text-anchor:middle;pointer-events:none}.ludo-glyph{font-size:.2px;fill:#fff;text-anchor:middle;dominant-baseline:central;pointer-events:none;font-weight:700}.ludo-hint-badge{font-size:.5px;text-anchor:middle;pointer-events:none}.ludo-piece{transition:transform .15s ease;outline:none}.ludo-piece--movable{cursor:pointer;animation:ludo-pulse .7s ease-in-out infinite}.ludo-piece--movable:focus-visible circle:first-child{stroke:#fff;stroke-width:.1}.ludo-hop{animation:ludo-hop .17s ease-out infinite}@keyframes ludo-hop{0%{transform:translateY(0)}45%{transform:translateY(-.45px)}to{transform:translateY(0)}}@keyframes ludo-pulse{50%{opacity:.55}}.ludo-burst{transform-box:fill-box;transform-origin:center;animation:ludo-burst .7s ease-out forwards}.ludo-burst--2{animation-name:ludo-burst2}@keyframes ludo-burst{0%{transform:scale(.4);opacity:1}to{transform:scale(4);opacity:0}}@keyframes ludo-burst2{0%{transform:scale(.4);opacity:.8}to{transform:scale(2);opacity:0}}.ludo-turn-ring{animation:ludo-pulse 1.2s ease-in-out infinite;pointer-events:none}.ludo-status{font-weight:700;font-size:1.02rem;text-align:center}.ludo-timer{width:100%;height:6px;background:var(--surface-3);border-radius:3px;overflow:hidden}.ludo-timer div{height:100%;transition:width .25s linear}.ludo-hint,.ludo-log{font-size:.82rem;color:var(--text-2);min-height:1.2em;text-align:center}.ludo-over{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;background:var(--surface-2);border-radius:12px;padding:12px;width:100%;box-sizing:border-box}.ludo-scores{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--text-2);width:100%}.ludo-score{display:flex;align-items:center;gap:8px;position:relative;padding:3px 8px;border-radius:6px}.ludo-score--on{background:var(--surface-2);color:var(--text);font-weight:600}.ludo-score-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ludo-bubble{position:absolute;right:-8px;top:-14px;font-size:1.6rem;animation:ludo-float 2.2s ease-out forwards;pointer-events:none}@keyframes ludo-float{0%{transform:translateY(8px) scale(.6);opacity:0}15%{opacity:1;transform:translateY(0) scale(1)}to{transform:translateY(-14px);opacity:0}}.ludo-emojis{display:flex;gap:4px}.ludo-emojis button{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:1.15rem;padding:6px 8px;min-height:40px}.ludo-modal{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:20}.ludo-modal-card{background:var(--surface);border:1px solid var(--border-hi);border-radius:14px;padding:22px;max-width:320px;text-align:center;display:flex;flex-direction:column;gap:10px}.ludo-modal-card h3,.ludo-modal-card p{margin:0}.ludo-modal-card p{color:var(--text-2);font-size:.88rem}.ludo-die3d{--s: 64px;background:none;border:none;padding:14px;cursor:default;position:relative}.ludo-die3d:disabled{opacity:1}.ludo-die3d--ready{cursor:pointer;animation:ludo-bob 1s ease-in-out infinite}.ludo-die3d:focus-visible{outline:2px solid var(--accent);border-radius:12px}.ludo-cube-scene{width:var(--s);height:var(--s);perspective:400px}.ludo-cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.8,.3,1.2)}.ludo-cube--rolling{animation:ludo-tumble .65s linear infinite}@keyframes ludo-tumble{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(540deg) rotateY(720deg) rotate(180deg)}}@keyframes ludo-bob{50%{transform:translateY(-4px)}}.ludo-face{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--die-color, #fff);border:2px solid rgba(0,0,0,.3);border-radius:10px;transition:background-color .45s,border-color .45s;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:8px;gap:2px;backface-visibility:hidden;box-shadow:inset 0 0 10px #00000026}.ludo-face--1{transform:rotateY(0) translateZ(calc(var(--s) / 2))}.ludo-face--2{transform:rotateY(90deg) translateZ(calc(var(--s) / 2))}.ludo-face--3{transform:rotateX(-90deg) translateZ(calc(var(--s) / 2))}.ludo-face--4{transform:rotateX(90deg) translateZ(calc(var(--s) / 2))}.ludo-face--5{transform:rotateY(-90deg) translateZ(calc(var(--s) / 2))}.ludo-face--6{transform:rotateY(180deg) translateZ(calc(var(--s) / 2))}.ludo-pip{background:var(--die-pip, #111827);border-radius:50%;transition:background-color .45s}.ludo-die3d[data-finish=gloss] .ludo-face{background-image:radial-gradient(circle at 28% 22%,#ffffffa6,#fff0 55%),linear-gradient(145deg,#fff3,#0000002e)}.ludo-die3d[data-finish=glass] .ludo-face{background-color:color-mix(in srgb,var(--die-color) 45%,transparent);border-color:#fffc}.ludo-die3d[data-finish=outline] .ludo-face{background-color:#0f172a;border:3px solid var(--die-color)}.app-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--text-2);font-size:.9rem}.ludo-challenges{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px}.ludo-challenges h3{margin:0 0 2px;font-size:.95rem}.ludo-challenge{display:flex;align-items:center;gap:10px}.ludo-challenge-text{flex:1;font-size:.85rem;display:flex;flex-direction:column;gap:4px}.ludo-challenge-text small{color:var(--text-2)}.ludo-challenge button{padding:6px 12px;min-height:36px;min-width:84px}.ludo-bar{display:block;height:5px;background:var(--surface-3);border-radius:3px;overflow:hidden}.ludo-bar>span{display:block;height:100%;background:#22c55e;transition:width .3s}.ludo-phrases{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}.ludo-phrases button{background:var(--surface-2);border:1px solid var(--border);color:var(--text-2);border-radius:14px;padding:5px 10px;font-size:.72rem;cursor:pointer;min-height:32px}.ludo-replay{display:flex;flex-direction:column;gap:8px;width:100%}.ludo-replay input[type=range]{width:100%}.ludo-replay .ludo-secondary,.ludo-replay .ludo-primary{padding:8px 14px;min-width:48px}.ludo-link--on{color:var(--accent);font-weight:700}.ludo-replays{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.ludo-replays li{display:flex;align-items:center;gap:4px;background:var(--surface-2);border-radius:8px;padding:4px 8px;font-size:.85rem}.ludo-replays li>span{flex:1}.ludo-replays small{color:var(--text-2);margin-left:4px}.ludo-dock-name{font-size:.78rem;font-weight:700;border-radius:14px;padding:4px 10px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background-color .45s}.ludo-die3d{flex-shrink:0}.ludo-confetti{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:3;border-radius:10px}.ludo-confetti i{position:absolute;top:-10px;width:8px;height:14px;border-radius:2px;animation:ludo-fall linear infinite}@keyframes ludo-fall{to{transform:translateY(620px) rotate(720deg);opacity:.2}}.ludo-bubble{white-space:nowrap;font-size:1rem;background:var(--surface);border:1px solid var(--border-hi);border-radius:12px;padding:2px 8px;right:0;top:-22px}@media (prefers-reduced-motion: reduce){.ludo-confetti{display:none}}.ludo-fs-exit{position:fixed;top:8px;left:50%;transform:translate(-50%);z-index:30;width:44px;height:44px;border-radius:50%;border:1px solid var(--border-hi);background:color-mix(in srgb,var(--surface) 85%,transparent);color:var(--text);font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}@media (prefers-reduced-motion: reduce){.ludo-cube--rolling,.ludo-hop,.ludo-piece--movable,.ludo-die3d--ready,.ludo-turn-ring{animation:none}.ludo-cube,.ludo-piece{transition:none}}.ludo-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.chess-tile-icon{color:#f59e0b}.chess-theme-classic{--light: #eeeed2;--dark: #769656}.chess-theme-wood{--light: #f0d9b5;--dark: #b58863}.chess-theme-blue{--light: #dee3e6;--dark: #8ca2ad}.chess-board{position:relative;width:100%;aspect-ratio:1;border-radius:6px;overflow:hidden;border:2px solid var(--border-hi);touch-action:manipulation;-webkit-user-select:none;user-select:none}.chess-sq{position:absolute;width:12.5%;height:12.5%;border:none;padding:0;margin:0;cursor:pointer;display:flex;align-items:center;justify-content:center}.chess-sq--light{background:var(--light);color:var(--dark)}.chess-sq--dark{background:var(--dark);color:var(--light)}.chess-sq--last:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#ffdd3380}.chess-sq--sel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#1482ff80}.chess-sq--check:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(255,0,0,.85) 0%,rgba(255,0,0,.35) 60%,transparent 72%)}.chess-sq--hint:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#3cc85a8c}.chess-sq:focus-visible{outline:3px solid #2563eb;outline-offset:-3px;z-index:3}.chess-dotmark{position:absolute;width:30%;height:30%;border-radius:50%;background:#00000047;z-index:2;pointer-events:none}.chess-ring{position:absolute;top:6%;right:6%;bottom:6%;left:6%;border-radius:50%;border:5px solid rgba(0,0,0,.28);z-index:2;pointer-events:none}.chess-coord{position:absolute;font-size:clamp(8px,1.9vw,12px);font-weight:700;z-index:1;pointer-events:none}.chess-coord--file{right:4%;bottom:2%}.chess-coord--rank{left:4%;top:2%}.chess-piece{position:absolute;left:0;top:0;width:12.5%;height:12.5%;padding:1%;box-sizing:border-box;pointer-events:none;z-index:2;transition:transform .22s ease}.chess-promo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;display:flex;gap:6px;padding:8px;border-radius:12px;background:var(--surface);border:1px solid var(--border-hi);box-shadow:0 8px 30px #00000080}.chess-promo button{width:clamp(44px,12vw,64px);aspect-ratio:1;border-radius:8px;border:1px solid var(--border-hi);background:var(--light, #eee);cursor:pointer;padding:3px}.chess-promo .chess-promo-cancel{background:var(--surface-2);color:var(--text);font-size:1rem}.chess-bar{display:flex;align-items:center;gap:8px;min-height:30px;padding:2px 6px;border-radius:8px;font-size:.85rem;color:var(--text-2)}.chess-bar--turn{background:var(--surface-2);color:var(--text);font-weight:600}.chess-dot{width:12px;height:12px;border-radius:50%;background:#222;border:2px solid #aaa;flex-shrink:0}.chess-dot--white{background:#fff;border-color:#666}.chess-name{white-space:nowrap}.chess-taken{display:flex;flex-wrap:wrap;flex:1;min-width:0}.chess-mini{width:18px;height:18px;margin-right:-4px}.chess-adv{font-size:.75rem;font-weight:700;color:var(--text-2)}.chess-status{text-align:center;font-weight:600;min-height:1.4em;font-size:.95rem}.chess-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.chess-controls button{padding:8px 12px;min-height:40px;font-size:.85rem}.chess-moves{font-size:.85rem;color:var(--text-2)}.chess-moves b{color:var(--text-3);font-weight:600;margin-right:2px}.chess-fen{margin:6px 0 0;font-size:.75rem}.chess-preview{display:grid;grid-template-columns:repeat(8,1fr);width:160px;border-radius:6px;overflow:hidden;align-self:center;border:1px solid var(--border-hi)}.chess-preview i{aspect-ratio:1;display:block}.chess-preview .chess-sq--light{background:var(--light)}.chess-preview .chess-sq--dark{background:var(--dark)}@media (prefers-reduced-motion: reduce){.chess-piece{transition:none}}.hub-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 0;color:var(--text-2)}.settings-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:16px}.settings-panel{width:min(100%,440px);max-height:90dvh;overflow:auto;background:var(--surface);border:1px solid var(--border-hi);border-radius:16px;padding:18px 20px 22px;color:var(--text);box-shadow:0 20px 60px #00000080}.settings-head{display:flex;align-items:center;justify-content:space-between}.settings-head h2{margin:0;font-size:1.1rem}.settings-panel h3{margin:18px 0 4px;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-2)}.settings-note{margin:0 0 8px;font-size:.82rem;color:var(--text-2)}.settings-close{width:36px;height:36px;border-radius:50%;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);cursor:pointer;font-size:1rem}.settings-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.settings-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border)}.settings-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--surface-3);color:var(--accent);flex-shrink:0}.settings-icon svg{width:20px;height:20px}.settings-text{flex:1;display:flex;flex-direction:column;min-width:0}.settings-text small{color:var(--text-2);font-size:.75rem}.settings-switch{position:relative;width:48px;height:28px;border-radius:14px;border:none;background:var(--border-hi);cursor:pointer;flex-shrink:0;transition:background .2s}.settings-switch span{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s}.settings-switch.on{background:#22c55e}.settings-switch.on span{transform:translate(20px)}.settings-switch:focus-visible,.settings-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.settings-reset{margin-top:10px;background:none;border:none;color:var(--text-2);text-decoration:underline;cursor:pointer;font-size:.8rem;padding:6px 0}.settings-reset:disabled{opacity:.4;cursor:default;text-decoration:none}.settings-theme{width:fit-content;margin-top:6px}.gs{display:flex;flex-direction:column;height:100dvh;background:var(--shell-gradient);color:var(--text);position:relative;overflow:hidden;touch-action:manipulation}.gs--full{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25}.gs--full .gs-bar{display:none}.gs-bar{display:flex;align-items:center;gap:8px;height:40px;padding:0 8px;border-bottom:1px solid var(--border);background:var(--topbar-bg);flex-shrink:0}.gs-title{flex:1;font-weight:700;font-size:.9rem}.gs-main{flex:1;min-height:0;display:flex;flex-direction:column}.gs-menu{flex:1;min-height:0;overflow-y:auto;padding:8px 0 28px}.gs-stage{flex:1;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center;padding:4px}.gs .ludo-fs-exit{top:8px;right:8px;left:auto;transform:none}.g-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-width:100%;--bs: min(100cqw - 8px, (100cqh - var(--chrome, 140px)) * var(--ratio, 1))}.g-board{width:var(--bs);flex-shrink:0;position:relative}.g-side{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(100cqw - 8px,460px);flex-shrink:0}.g-side--top{order:-1}@container (aspect-ratio > 1.25){.g-wrap{flex-direction:row;gap:18px;--bs: min((100cqh - 8px) * var(--ratio, 1), 100cqw - 300px)}.g-side{width:260px;max-height:100cqh;overflow:auto}}.g-wrap--pin{height:100%}.g-wrap--pin .g-board{margin-block:auto}.g-log--sm{font-size:.75rem;min-height:1.1em}.g-score--sm{gap:4px}.g-score--sm .g-chip{min-width:48px;padding:2px 8px;border-radius:8px}.g-score--sm .g-chip b{font-size:.85rem}.g-score--sm .g-chip span{font-size:.6rem}@container (aspect-ratio > 1.25){.g-wrap--pin{height:auto}.g-wrap--pin .g-board{margin-block:0}}.g-score{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;width:100%}.g-chip{min-width:70px;text-align:center;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:4px 10px;display:flex;flex-direction:column}.g-chip b{font-size:1.15rem;display:inline-flex;align-items:center;justify-content:center;gap:6px}.g-chip span{font-size:.7rem;color:var(--text-2)}.g-chip--turn{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.g-status{font-weight:700;text-align:center;min-height:1.4em}.g-log,.g-hint{font-size:.8rem;color:var(--text-2);text-align:center;margin:0;min-height:1.2em}.ttt-tile-icon,.c4-tile-icon,.rv-tile-icon,.sl-tile-icon,.t48-tile-icon{color:#38bdf8}.ttt-board{display:grid;grid-template-columns:repeat(3,1fr);gap:3%;aspect-ratio:1}.ttt-cell{background:var(--surface-2);border:1px solid var(--border-hi);border-radius:14%;cursor:pointer;padding:12%;display:flex;align-items:center;justify-content:center}.ttt-cell:not(:disabled):hover{background:var(--surface-3)}.ttt-cell:disabled{cursor:default}.ttt-cell--win{background:#22c55e40;border-color:#22c55e}.ttt-mark{width:100%;height:100%}.ttt-mark path,.ttt-mark circle{fill:none;stroke-width:12;stroke-linecap:round;stroke-dasharray:200;stroke-dashoffset:200;animation:ttt-draw .35s ease-out forwards}.ttt-mark--x path{stroke:#38bdf8}.ttt-mark--x path+path{animation-delay:.12s}.ttt-mark--o circle{stroke:#f472b6}@keyframes ttt-draw{to{stroke-dashoffset:0}}.c4-board svg{width:100%;display:block}.c4-cols{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(7,1fr)}.c4-cols button{background:none;border:none;cursor:pointer;opacity:0}.c4-cols button:disabled{cursor:default}.c4-cols button:focus-visible{opacity:1;outline:3px solid #fff;outline-offset:-3px;background:#ffffff1f}.c4-drop{animation:c4-drop var(--dur, .4s) cubic-bezier(.5,0,.9,.7) both}@keyframes c4-drop{0%{transform:translateY(var(--from))}72%{transform:translateY(0)}86%{transform:translateY(-.07px)}to{transform:translateY(0)}}.c4-win{animation:ludo-pulse .8s ease-in-out infinite}.rv-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;background:#0b4f25;border:3px solid #0b4f25;border-radius:8px;overflow:hidden;gap:1px}.rv-sq{position:relative;background:#15803d;border:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.rv-sq:disabled{cursor:default}.rv-sq--last:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 3px #facc15d9;pointer-events:none}.rv-sq:focus-visible{outline:3px solid #fff;outline-offset:-3px}.rv-disc{width:82%;height:82%;border-radius:50%;display:block;box-shadow:0 2px 4px #00000073}.rv-disc--black{background:radial-gradient(circle at 35% 30%,#5b6470,#0b0f14 70%)}.rv-disc--white{background:radial-gradient(circle at 35% 30%,#fff,#cbd5e1 75%)}.rv-flip{animation:rv-flip .5s ease both}@keyframes rv-flip{0%{transform:rotateY(0);background:var(--from)}49%{transform:rotateY(90deg);background:var(--from)}50%{transform:rotateY(90deg);background:var(--to)}to{transform:rotateY(0);background:var(--to)}}.rv-hint{position:absolute;width:22%;height:22%;border-radius:50%;background:#fff6;pointer-events:none}.rv-dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(255,255,255,.5)}.rv-dot--black{background:#0b0f14}.rv-dot--white{background:#f8fafc}.sl-board{border-radius:8px;overflow:hidden;border:3px solid #92400e;background:#fde68a}.sl-board svg{width:100%;display:block}.sl-token{transition:transform .13s linear}.sl-roller{display:flex;justify-content:center}.t48-board{--gap: calc(var(--bs) * .03);aspect-ratio:1;background:#bbada0;border-radius:8px;padding:calc(var(--gap) / 2);box-sizing:border-box;touch-action:none;-webkit-user-select:none;user-select:none}.t48-grid,.t48-tiles{position:absolute;inset:calc(var(--gap) / 2)}.t48-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr)}.t48-grid i{display:block;padding:calc(var(--gap) / 2)}.t48-grid i:after{content:"";display:block;width:100%;height:100%;border-radius:6%;background:#eee4da59}.t48-tile{position:absolute;left:0;top:0;width:25%;height:25%;padding:calc(var(--gap) / 2);box-sizing:border-box;transition:transform .11s ease-in-out;z-index:2}.t48-ghost{z-index:1}.t48-tile span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:6%;font-weight:800;font-size:calc(var(--bs) * .085);background:#3c3a32;color:#f9f6f2}.t48-tile[data-v="2"] span{background:#eee4da;color:#776e65}.t48-tile[data-v="4"] span{background:#ede0c8;color:#776e65}.t48-tile[data-v="8"] span{background:#f2b179;color:#f9f6f2}.t48-tile[data-v="16"] span{background:#f59563;color:#f9f6f2}.t48-tile[data-v="32"] span{background:#f67c5f;color:#f9f6f2}.t48-tile[data-v="64"] span{background:#f65e3b;color:#f9f6f2}.t48-tile[data-v="128"] span{background:#edcf72;color:#f9f6f2;font-size:calc(var(--bs) * .07)}.t48-tile[data-v="256"] span{background:#edcc61;color:#f9f6f2;font-size:calc(var(--bs) * .07)}.t48-tile[data-v="512"] span{background:#edc850;color:#f9f6f2;font-size:calc(var(--bs) * .07)}.t48-tile[data-v="1024"] span{background:#edc53f;color:#f9f6f2;font-size:calc(var(--bs) * .055)}.t48-tile[data-v="2048"] span{background:#edc22e;color:#f9f6f2;font-size:calc(var(--bs) * .055);box-shadow:0 0 20px 6px #f3d77499}.t48-new span{animation:t48-pop .2s .1s both}.t48-merged span{animation:t48-bump .2s .1s}@keyframes t48-pop{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes t48-bump{50%{transform:scale(1.18)}}.t48-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:#eee4dad1;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#776e65}.t48-overlay h3,.t48-overlay p{margin:0}@media (prefers-reduced-motion: reduce){.t48-tile,.sl-token{transition:none}.t48-new span,.t48-merged span,.ttt-mark path,.ttt-mark circle,.c4-drop,.rv-flip{animation:none;stroke-dashoffset:0}}.ludo-shell:has(>.ludo-play){height:100dvh;min-height:0;overflow:hidden}.ludo-shell:has(>.ludo-play) .ludo-topbar{height:36px;padding:0 8px;gap:8px}.ludo-shell:has(>.ludo-play) .ludo-coins{display:none}.ludo-shell--full{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;height:100dvh;min-height:0}.ludo-shell--full .ludo-topbar{display:none}.ludo-play{flex:1;min-height:0;container-type:size;padding:2px;box-sizing:border-box;--slot: 0px;--panel-h: 150px;--gut: 0px;--dock-h: 0px;--panel-w: 250px;position:relative}.ludo-play--compact{--panel-h: 78px;--panel-w: 132px}.ludo-play--over{--panel-h: 150px}.ludo-layout{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.ludo-board-wrap{position:relative;flex-shrink:0;padding:var(--slot) 0;--bs: min(100cqw - 4px, 100cqh - 2 * var(--slot) - var(--panel-h) - 8px)}.ludo-board{width:var(--bs);height:var(--bs);box-sizing:border-box;display:block;border-radius:10px;border:2px solid var(--border-hi);touch-action:manipulation}.ludo-panel{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(100cqw - 8px,480px);flex-shrink:0}.ludo-panel--compact{gap:6px}.ludo-board-wrap{margin-block:auto}.ludo-panel{padding-bottom:env(safe-area-inset-bottom,0px)}.float-die{position:absolute;left:0;top:0;z-index:6;display:flex;align-items:center;gap:6px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;transition:transform .55s cubic-bezier(.3,.9,.3,1);will-change:transform}.float-die-body{display:flex;align-items:center;gap:6px}.ludo-tuner{position:absolute;left:8px;right:8px;bottom:44px;z-index:8;max-width:440px;margin:0 auto;padding:12px;border-radius:14px;background:var(--surface);border:1px solid var(--border-hi);box-shadow:0 10px 30px #00000080;display:flex;flex-direction:column;gap:6px;transition:opacity .15s}.ludo-tuner:has(input:active){opacity:.22}.ludo-tuner .ludo-secondary{padding:8px;min-height:0}.ludo-tuner-list{display:flex;flex-direction:column;gap:6px}.ludo-range{display:flex;align-items:center;gap:10px}.ludo-range input{flex:1}.ludo-range output{min-width:3em;text-align:right;font-variant-numeric:tabular-nums}.float-die-tools{display:flex;flex-direction:column;gap:3px;opacity:.55;transition:opacity .15s}.float-die:hover .float-die-tools,.float-die:focus-within .float-die-tools{opacity:1}.float-die-tools button{width:26px;height:26px;padding:0;border-radius:50%;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:.95rem;line-height:1;cursor:pointer;touch-action:manipulation}.float-die-tools button:disabled{opacity:.35;cursor:default}.float-die--drag{transition:none;cursor:grabbing;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}.float-die--drag .ludo-die3d{opacity:.88}.float-die--hidden{visibility:hidden}.float-die--still{transition:none}.float-die:focus-within{outline:none}.gs-stage--float{position:relative}.ludo-scores{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}.ludo-chat-toggle{padding:2px 8px}@container (aspect-ratio > 1.15){.ludo-layout{flex-direction:row;gap:12px}.ludo-board-wrap{margin-block:0}.ludo-board-wrap{padding:0 var(--gut);--bs: min(100cqh - 4px, 100cqw - 2 * var(--gut) - var(--panel-w) - 20px)}.ludo-panel{width:var(--panel-w);max-height:100cqh;overflow:auto}.ludo-scores{grid-template-columns:1fr}}@container (max-height: 420px){.ludo-die3d{--s: 44px;padding:8px}}@container (aspect-ratio < .62){.ludo-die3d{--s: 68px;padding:14px}}.chess-play{flex:1;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center;padding:2px}.chess-layout{display:grid;gap:6px;align-content:center;justify-content:center;position:relative;--bs: min(100cqw - 4px, 100cqh - var(--chess-chrome, 205px));grid-template-columns:var(--bs);grid-template-areas:"top" "board" "bottom" "status" "controls" "moves"}.chess-layout>.chess-board{grid-area:board;width:var(--bs)}.chess-layout>.chess-bar--top{grid-area:top}.chess-layout>.chess-bar--bottom{grid-area:bottom}.chess-layout>.chess-status{grid-area:status}.chess-layout>.chess-controls,.chess-layout>.ludo-over{grid-area:controls}.chess-layout>.chess-moves{grid-area:moves}@container (aspect-ratio > 1.3){.chess-layout{--bs: min(100cqh - 4px, 100cqw - 300px);grid-template-columns:var(--bs) 270px;grid-template-rows:auto auto auto auto 1fr;align-content:center;column-gap:14px;grid-template-areas:"board top" "board bottom" "board status" "board controls" "board moves"}.chess-layout>.chess-controls{justify-content:flex-start}.chess-layout>.chess-moves{overflow:auto;min-height:0;max-height:calc(var(--bs) - 190px)}.chess-moves-toggle{display:none}.chess-moves ol{display:grid!important;max-height:none}}.chess-board{border-radius:4px}.chess-moves ol{display:none;list-style:none;margin:0;padding:0;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:2px 8px;max-height:120px;overflow:auto}.chess-moves--open ol{display:grid}.chess-moves-toggle{background:none;border:none;color:var(--text-2);cursor:pointer;padding:4px 0;font-size:.85rem;text-decoration:underline}.ck-tile-icon{color:#f43f5e}.ms-tile-icon{color:#94a3b8}.sd-tile-icon{color:#818cf8}.tt-tile-icon{color:#06b6d4}.mm-tile-icon{color:#f472b6}.ms-on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.ck-board{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);aspect-ratio:1;border:3px solid #5b3a1a;border-radius:8px;overflow:hidden;background:#5b3a1a}.ck-sq{position:relative;display:flex;align-items:center;justify-content:center;padding:0;border:none}.ck-sq--light{background:#f0d9b5}.ck-sq--dark{background:#8b5a2b;cursor:pointer}.ck-sq--dark:disabled{cursor:default}.ck-sq--last{background:#a9742f}.ck-sq--sel{background:#c9922f;box-shadow:inset 0 0 0 3px #fde047}.ck-sq--target:after,.ck-hint{content:"";position:absolute;width:28%;height:28%;border-radius:50%;background:#fafafa8c;pointer-events:none}.ck-sq--must{animation:ck-pulse 1.1s ease-in-out infinite}@keyframes ck-pulse{50%{box-shadow:inset 0 0 0 3px #f87171e6}}.ck-sq:focus-visible{outline:3px solid #fff;outline-offset:-3px}.ck-piece{width:78%;height:78%;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 4px #00000080,inset 0 -4px #00000038;font-size:calc(var(--bs) / 8 * .45);line-height:1;transition:transform .15s}.ck-piece--red{background:radial-gradient(circle at 35% 30%,#fb7185,#be123c 75%);color:#fde68a}.ck-piece--white{background:radial-gradient(circle at 35% 30%,#fff,#d6d3d1 75%);color:#b45309}.ck-sq--sel .ck-piece{transform:scale(1.08)}.ck-dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(255,255,255,.5)}.ck-dot--red{background:#be123c}.ck-dot--white{background:#f5f5f4}.ms-board{display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);aspect-ratio:var(--cols) / var(--rows);gap:2px;background:#475569;padding:2px;border-radius:8px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.ms-cell{border:none;padding:0;border-radius:3px;background:linear-gradient(#cbd5e1,#94a3b8);color:#0f172a;font-weight:800;font-size:calc(var(--bs) / var(--cols) * .55);line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}.ms-cell:disabled{cursor:default;color:inherit}.ms-cell--open{background:#e2e8f0;box-shadow:none}.ms-cell--mine{background:#fecaca}.ms-cell--hit{background:#ef4444}.ms-cell:focus-visible{outline:3px solid #fff;outline-offset:-2px}.ms-n1{color:#2563eb}.ms-n2{color:#16a34a}.ms-n3{color:#dc2626}.ms-n4{color:#7c3aed}.ms-n5{color:#b45309}.ms-n6{color:#0891b2}.ms-n7{color:#111827}.ms-n8{color:#6b7280}.sd-board{display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr);aspect-ratio:1;background:#0f172a;border:2px solid #0f172a;border-radius:6px;overflow:hidden;gap:1px}.sd-cell{position:relative;border:none;padding:0;background:var(--surface);color:#38bdf8;font-weight:700;font-size:calc(var(--bs) / 9 * .58);line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}.sd-given{color:var(--text);background:var(--surface-2)}.sd-r{margin-right:2px}.sd-b{margin-bottom:2px}.sd-peer{background:#38bdf824}.sd-same{background:#facc1547}.sd-sel{background:#38bdf861;box-shadow:inset 0 0 0 2px #38bdf8}.sd-bad{color:#f87171;background:#f8717138}.sd-notes{display:grid;grid-template-columns:repeat(3,1fr);width:100%;height:100%;font-size:calc(var(--bs) / 9 * .24);color:var(--text-2);font-weight:600}.sd-notes i{font-style:normal;display:flex;align-items:center;justify-content:center}.sd-pad{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;width:100%}.sd-pad button{min-height:44px;border-radius:8px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:1.1rem;font-weight:700;cursor:pointer;padding:0}.sd-pad button:disabled{opacity:.35;cursor:default}@container (aspect-ratio > 1.25){.sd-pad{grid-template-columns:repeat(3,1fr)}}.tt-board{display:grid;grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(20,1fr);aspect-ratio:1 / 2;background:#0b1220;border:2px solid #334155;border-radius:6px;box-sizing:border-box;gap:1px;padding:1px;overflow:hidden}.tt-board>i{display:block;background:#94a3b812;border-radius:2px}.tt-board>i.tt-fill{background:var(--c);box-shadow:inset 0 0 0 2px #ffffff47,inset 0 -3px #00000040}.tt-board>i.tt-ghost{background:transparent;box-shadow:inset 0 0 0 2px var(--c);opacity:.45}.tt-overlay{background:#0f172adb;color:#f1f5f9}.tt-previews{display:flex;gap:8px;justify-content:center;align-items:flex-start}.tt-prev{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:44px;font-size:.65rem;color:var(--text-2)}.tt-prev-grid{display:grid;gap:1px;width:36px}.tt-prev-grid i{display:block;aspect-ratio:1;border-radius:1px}.tt-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%;max-width:320px;touch-action:none;user-select:none;-webkit-user-select:none}.tt-pad button{min-height:46px;border-radius:10px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:1.1rem;font-weight:700;cursor:pointer;touch-action:none}.tt-pad button:active{background:var(--accent);color:#fff}@container (aspect-ratio > 1.25){.tt-wrap{--chrome: 0px}.tt-pad{display:none}}.mm-board{display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);aspect-ratio:var(--cols) / var(--rows);gap:calc(var(--bs) * .02)}.mm-card{padding:0;border:none;background:none;perspective:600px;cursor:pointer}.mm-card:disabled{cursor:default}.mm-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .4s}.mm-up .mm-inner{transform:rotateY(180deg)}.mm-front,.mm-back{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border-radius:10%;backface-visibility:hidden;-webkit-backface-visibility:hidden;font-size:calc(var(--bs) / var(--cols) * .5)}.mm-front{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#ffffffb3;font-weight:800;box-shadow:inset 0 0 0 2px #ffffff40}.mm-back{background:#f8fafc;transform:rotateY(180deg);box-shadow:inset 0 0 0 2px #cbd5e1}.mm-done .mm-back{background:#dcfce7;box-shadow:inset 0 0 0 2px #22c55e}.mm-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){.mm-inner,.ck-piece{transition:none}.ck-sq--must{animation:none}}.sn-tile-icon{color:#4ade80}.sp-tile-icon{color:#fb923c}.lo-tile-icon{color:#facc15}.si-tile-icon{color:#c084fc}.mm4-tile-icon{color:#2dd4bf}.sn-board{display:grid;grid-template-columns:repeat(16,1fr);grid-template-rows:repeat(16,1fr);aspect-ratio:1;background:#0f172a;border:2px solid #334155;border-radius:6px;box-sizing:border-box;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;background-image:conic-gradient(#111c33 25%,#0f172a 0,#0f172a 50%,#111c33 0,#111c33 75%,#0f172a 0);background-size:12.5% 12.5%}.sn-board>i{display:block}.sn-board>i.sn-body{background:#22c55e;border-radius:30%;margin:6%}.sn-board>i.sn-head{background:#86efac;border-radius:40%;margin:3%;box-shadow:0 0 6px #4ade80}.sn-board>i.sn-food{background:#ef4444;border-radius:50%;margin:14%;box-shadow:0 0 8px #f87171}.sn-pad{display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:". up ." "left . right" ". down .";gap:6px;width:190px;touch-action:none}.sn-pad button{min-height:46px;border-radius:10px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:1.1rem;cursor:pointer;touch-action:none}.sn-pad button:active{background:var(--accent);color:#fff}.sn-up{grid-area:up}.sn-left{grid-area:left}.sn-right{grid-area:right}.sn-down{grid-area:down}@container (aspect-ratio > 1.25){.sn-pad{display:none}}.sp-board{position:relative;aspect-ratio:1;background:#1e293b;border:3px solid #1e293b;border-radius:8px;box-sizing:border-box;overflow:hidden}.sp-tile{position:absolute;left:0;top:0;width:calc(100% / var(--n));height:calc(100% / var(--n));padding:calc(var(--bs) * .006);box-sizing:border-box;background:none;border:none;cursor:pointer;transition:transform .13s ease-out;font-size:calc(var(--bs) / var(--n) * .42);font-weight:800;color:#fff}.sp-tile:before{content:"";position:absolute;inset:calc(var(--bs) * .006);border-radius:10%;background:linear-gradient(135deg,#f97316,#ea580c);box-shadow:inset 0 -3px #00000040;z-index:-1}.sp-tile.sp-home:before{background:linear-gradient(135deg,#22c55e,#15803d)}.sp-tile{z-index:0;isolation:isolate}.sp-tile:focus-visible{outline:3px solid #fff;outline-offset:-4px}.lo-board{display:grid;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr);gap:calc(var(--bs) * .015);aspect-ratio:1;background:#0b1220;padding:calc(var(--bs) * .015);border-radius:10px;box-sizing:border-box}.lo-cell{border:none;border-radius:12%;background:#1e293b;cursor:pointer;transition:background .15s,box-shadow .15s;padding:0}.lo-cell.lo-on{background:radial-gradient(circle at 40% 35%,#fef08a,#facc15 70%);box-shadow:0 0 calc(var(--bs) * .04) #facc15bf}.lo-cell.lo-hint{outline:3px dashed #38bdf8;outline-offset:-4px}.lo-cell:focus-visible{outline:3px solid #fff;outline-offset:-3px}.lo-cell:disabled{cursor:default}.si-board{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:calc(var(--bs) * .03);aspect-ratio:1;background:#111827;padding:calc(var(--bs) * .03);border-radius:50%;box-sizing:border-box}.si-pad{border:none;cursor:pointer;opacity:.55;transition:opacity .08s,filter .08s}.si-pad:disabled{cursor:default}.si-pad--0{background:#22c55e;border-radius:100% 0 0}.si-pad--1{background:#ef4444;border-radius:0 100% 0 0}.si-pad--2{background:#eab308;border-radius:0 0 0 100%}.si-pad--3{background:#3b82f6;border-radius:0 0 100%}.si-pad.si-lit,.si-pad:not(:disabled):active{opacity:1;filter:brightness(1.25) drop-shadow(0 0 12px rgba(255,255,255,.5))}.si-pad:focus-visible{outline:3px solid #fff;outline-offset:-4px}.mm4-board{display:grid;grid-template-rows:repeat(11,1fr);gap:calc(var(--bs) * .012);aspect-ratio:.62;background:#1e293b;padding:calc(var(--bs) * .03);border-radius:10px;box-sizing:border-box}.mm4-row{display:flex;align-items:center;justify-content:space-between;gap:6%;min-height:0;padding:0 3%;border-radius:8px}.mm4-row.mm4-cur{background:#38bdf824;box-shadow:inset 0 0 0 2px #38bdf8}.mm4-row.mm4-code{background:#00000040}.mm4-slots{display:flex;gap:6%;flex:1;height:100%;align-items:center}.mm4-slot{flex:1;aspect-ratio:1;max-height:86%;max-width:100%;border-radius:50%;background:#0f172a;box-shadow:inset 0 2px 4px #00000080;display:flex;align-items:center;justify-content:center;color:#64748b;font-style:normal;font-weight:800;font-size:calc(var(--bs) * .05)}.mm4-pegs{display:grid;grid-template-columns:1fr 1fr;gap:14%;width:22%;flex-shrink:0}.mm4-peg{aspect-ratio:1;border-radius:50%;background:#0f172a;box-shadow:inset 0 1px 2px #00000080}.mm4-peg--b{background:#0b0f14;box-shadow:0 0 0 1px #94a3b8}.mm4-peg--w{background:#f8fafc}.mm4-palette{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;width:100%}.mm4-palette button{aspect-ratio:1;min-height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.35);cursor:pointer;padding:0}.mm4-palette button:disabled{opacity:.35;cursor:default}.mm4-palette button:focus-visible{outline:3px solid #fff;outline-offset:2px}@media (prefers-reduced-motion: reduce){.sp-tile,.lo-cell,.si-pad{transition:none}}.om{display:flex;flex-direction:column;gap:10px;align-items:stretch}.om-field{display:flex;flex-direction:column;gap:4px;font-size:.8rem;color:var(--text-2)}.om input{padding:10px 12px;border-radius:10px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);font-size:1rem;min-width:0}.om-join{display:flex;gap:8px}.om-join input{flex:1;text-transform:uppercase;letter-spacing:.2em;text-align:center;font-weight:700}.om-or{text-align:center;color:var(--text-2);font-size:.8rem}.om-lead{margin:0;color:var(--text-2);font-size:.9rem;text-align:center}.om-code{font-size:2rem;font-weight:800;letter-spacing:.3em;text-align:center;padding:10px 0 10px .3em;background:var(--surface-2);border-radius:12px;border:1px dashed var(--border-hi)}.om-link{font-size:.8rem!important;color:var(--text-2)!important;text-align:center}.om-wait{text-align:center;color:var(--text-2);font-size:.9rem;animation:om-pulse 1.4s ease-in-out infinite}.om-error{text-align:center;color:#f87171;font-size:.9rem}@keyframes om-pulse{50%{opacity:.45}}@media (prefers-reduced-motion: reduce){.om-wait{animation:none}}.om-lobby{display:flex;flex-direction:column;gap:10px}.om-players{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.om-players li{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);font-weight:600}.sl-styles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.sl-styles button{height:40px;padding:0;border-radius:10px;border:1px solid var(--border-hi);background:var(--surface-2);cursor:pointer;display:flex;align-items:center;justify-content:center}.sl-styles button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.sl-styles svg{width:30px;height:30px}@keyframes snk-sway{0%{transform:rotate(-1.4deg)}to{transform:rotate(1.4deg)}}@keyframes snk-bite{0%{transform:scale(1)}18%{transform:scale(1.14) rotate(-5deg)}36%{transform:scale(1.05) rotate(4deg)}54%{transform:scale(1.12) rotate(-3deg)}to{transform:scale(1) rotate(0)}}@keyframes snk-flick{0%,55%,to{transform:scaleX(1)}62%{transform:scaleX(.3)}72%{transform:scaleX(1.25)}82%{transform:scaleX(.6)}}.snk--sway{animation:snk-sway 3s ease-in-out infinite alternate}.snk--bite{animation:snk-bite .65s ease-in-out}.snk-tongue{animation:snk-flick 2.2s infinite;transform-origin:0 0}@media (prefers-reduced-motion: reduce){.snk--sway,.snk-tongue{animation:none}}.sl-stat{position:absolute;left:0;top:0;z-index:5;padding:3px 9px;border-radius:10px;border:1px solid;color:#fff;font-size:.72rem;font-weight:700;line-height:1.3;pointer-events:none;transition:opacity .2s;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px rgba(0,0,0,.45)}.sl-stat--off{opacity:0}.sl-over{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;border-radius:14px;background:#0f172a9e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 8px 30px #00000059}.sl-over b{font-size:1.05rem;text-shadow:0 1px 2px rgba(0,0,0,.5)}.sl-over-actions{display:flex;gap:8px}.sl-over-actions button{padding:6px 12px;min-height:0;min-width:0;font-size:.85rem}.sl-strip{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;padding-right:6px;box-sizing:border-box;pointer-events:none}.sl-strip-msg{flex:1;min-width:0;text-align:right;font-size:.68rem;line-height:1.15;color:#78350f;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sl-strip-btn{pointer-events:auto;flex-shrink:0;border:1px solid #92400e55;background:#ffffff8c;color:#78350f;border-radius:8px;padding:2px 8px;font-size:.72rem;font-weight:700;cursor:pointer;min-height:24px}.cm-tile-icon{color:#fb7185}.ry-tile-icon{color:#fbbf24}.cm-hud{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;width:100%}.cm-hud .g-chip{min-width:62px}.cm-goal--done{border-color:#22c55e;background:color-mix(in srgb,#22c55e 18%,var(--surface-2))}.cm-goal-ico{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.15em}.cm-goal-ico svg{width:100%;height:100%;display:block}.cm-board{position:relative;aspect-ratio:1 / 1;border-radius:14px;background:linear-gradient(160deg,#6d28d9,#be185d);padding:0;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 8px 26px #00000059}.cm-board--royal{background:linear-gradient(160deg,#1e3a8a,#6d28d9);box-shadow:0 8px 26px #00000059,inset 0 0 0 3px #fbbf24}.cm-grid,.cm-tiles{position:absolute;top:2%;right:2%;bottom:2%;left:2%}.cm-grid{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr)}.cm-grid i{display:block;padding:2%}.cm-grid i:after{content:"";display:block;width:100%;height:100%;border-radius:22%;background:#ffffff1a}.cm-grid i:nth-child(odd):after{background:#ffffff29}.cm-tile{position:absolute;left:0;top:0;width:12.5%;height:12.5%;padding:2.4%;box-sizing:border-box;transition:transform .24s cubic-bezier(.4,.1,.4,1);z-index:2;cursor:pointer}.cm-tile>span{display:block;width:100%;height:100%}.cm-tile svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}.cm-fall{animation:cm-fall .4s cubic-bezier(.3,.1,.5,1) both}@keyframes cm-fall{0%{transform:translateY(calc(var(--d, 1) * -110%))}to{transform:none}}.cm-pop{z-index:3}.cm-pop>span{animation:cm-pop .26s ease-in forwards}@keyframes cm-pop{0%{transform:scale(1);opacity:1}35%{transform:scale(1.28);opacity:1}to{transform:scale(0);opacity:0}}.cm-sel>span{transform:scale(1.14);filter:drop-shadow(0 0 6px #fff)}.cm-hint>span{animation:cm-hint .9s ease-in-out infinite}@keyframes cm-hint{50%{transform:scale(1.18)}}.cm-banner{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:6;padding:8px 18px;border-radius:999px;background:#0f172ab8;color:#fde68a;font-weight:800;font-size:1.15rem;pointer-events:none;animation:cm-banner .5s ease-out both;white-space:nowrap}@keyframes cm-banner{0%{transform:translate(-50%,-30%) scale(.6);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.cm-over{position:absolute;top:0;right:0;bottom:0;left:0;z-index:7;border-radius:14px;background:#0f172ac7;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#fff;text-align:center;padding:12px}.cm-over h3,.cm-over p{margin:0}.cm-stars{font-size:2.2rem;letter-spacing:6px;color:#ffffff47}.cm-stars .on{color:#fbbf24;text-shadow:0 0 12px rgba(251,191,36,.7)}.cm-hero{display:flex;justify-content:center;gap:8px}.cm-hero i{width:44px;height:44px;display:block}.cm-hero svg{width:100%;height:100%}.ry-levels{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ry-level{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 2px 8px;border-radius:12px;border:1px solid var(--border-hi);background:var(--surface-2);color:var(--text);cursor:pointer;font:inherit;min-width:0}.ry-level b{font-size:1.15rem}.ry-level--done{border-color:#fbbf24}.ry-level--locked{opacity:.45;cursor:default}.ry-crowns{display:flex;gap:1px;font-size:.7rem;color:var(--text-3)}.ry-crowns .on{color:#fbbf24}.ry-title{display:flex;flex-direction:column;align-items:center;padding-top:4px;line-height:1.2}.ry-title span{font-size:.78rem;color:var(--text-2)}@media (prefers-reduced-motion: reduce){.cm-tile{transition:none}.cm-fall,.cm-pop>span,.cm-hint>span,.cm-banner{animation:none}}.ludo-focus-ring{animation:ludo-spin 2.4s linear infinite;transform-box:fill-box;transform-origin:center}@keyframes ludo-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.ludo-focus-ring{animation:none}}.rules-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:16px}.rules-card{width:min(560px,100%);max-height:100%;display:flex;flex-direction:column;background:var(--card-bg, var(--topbar-bg));color:var(--text, inherit);border:1px solid var(--border);border-radius:14px;outline:none;overflow:hidden}.rules-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border)}.rules-head h2{margin:0;font-size:17px}.rules-body{overflow-y:auto;padding:12px 14px 16px;font-size:14px;line-height:1.5}.rules-goal{margin:0 0 8px}.rules-body ol{margin:0 0 8px;padding-left:20px}.rules-body li{margin:4px 0}.rules-tips{list-style:none;padding:0;margin:0;opacity:.85}.rules-item{border-bottom:1px solid var(--border);padding:4px 0}.rules-item summary{cursor:pointer;display:flex;align-items:center;gap:10px;padding:8px 0;font-weight:600}.rules-ic{width:32px;height:32px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.rules-ic svg{width:20px;height:20px}.inv-body{display:flex;flex-direction:column;gap:10px}.inv-body p{margin:0;color:var(--text-2);font-size:.85rem}.challenge-toast{position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:60;max-width:min(92vw,420px);padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--border-hi);color:var(--text);font-size:.85rem;box-shadow:0 6px 24px #00000059}
