.header-quick-settings{background:#0000001f;border-radius:999px;align-items:center;padding:.2rem;display:inline-flex}.quick-divider{background:var(--color-border);width:1px;height:1.5rem;margin:0 .35rem}.sound-toggle{color:var(--color-text-muted);cursor:pointer;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:.25rem .6rem;display:inline-flex}.sound-toggle svg{display:block}.sound-toggle:hover,.sound-toggle:focus-visible{color:var(--color-text)}.sound-toggle[aria-pressed=false]{color:var(--color-text-dim,var(--color-text-muted))}.game-switcher{background:#0000001a;border-radius:999px;align-items:center;gap:0;margin:0 .5rem;padding:.15rem;display:inline-flex}.game-switcher-chip{letter-spacing:.02em;color:var(--color-text-muted);white-space:nowrap;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);border-radius:999px;align-items:center;padding:.25rem .8rem;font-size:.75rem;font-weight:500;text-decoration:none;display:inline-flex}.game-switcher-chip:hover,.game-switcher-chip:focus-visible{color:var(--color-text)}.game-switcher-chip-active{background:var(--color-surface);color:var(--color-text);cursor:default;font-weight:600;box-shadow:0 1px 3px #0000001f}@media (width>=701px) and (width<=860px){.game-header .header-quick-settings{display:none}}@media (width<=700px){.game-switcher{display:none}}@media (width<=480px){.game-switcher{margin:0 .25rem}.game-switcher-chip{padding:.2rem .55rem;font-size:.7rem}}.game-island-slot{background:var(--color-surface);flex-direction:column;height:100dvh;min-height:100dvh;display:flex}.game-shell{background:var(--color-surface);min-height:0;transition:background-color var(--duration-slow) var(--ease-out);flex-direction:column;flex:1;display:flex;position:relative;overflow-x:hidden}body:has(.game-shell){overflow-x:hidden}.game-header{padding-top:calc(.4rem + env(safe-area-inset-top,0px));padding-right:calc(1.25rem + env(safe-area-inset-right,0px));padding-bottom:.4rem;padding-left:calc(1.25rem + env(safe-area-inset-left,0px));background:#0000000f;flex-shrink:0;justify-content:space-between;align-items:center;display:flex}@media (width>=768px){.game-header{padding-left:max(1.25rem,50% - 500px);padding-right:max(1.25rem,50% - 500px)}.game-header .game-brand{margin-left:calc(-.55rem + var(--card-gap) * 1.4)}.game-header .brand-chip img{height:28px}.game-header-right{gap:.9rem}.game-settings-btn svg{width:22px;height:22px}}.game-brand{letter-spacing:-.01em;color:var(--color-text-muted);transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);border-radius:999px;align-items:center;gap:.3em;margin:-.3rem -.55rem;padding:.3rem .55rem;font-size:.85rem;font-weight:700;text-decoration:none;display:inline-flex}.game-brand:hover,.game-brand:focus-visible{color:var(--color-text);background-color:#ffffff1a}.game-header-right{align-items:center;gap:.75rem;display:flex}.game-settings-btn{border-radius:var(--radius-md);width:2.5rem;height:2.5rem;color:var(--color-text);cursor:pointer;opacity:1;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;display:flex}.game-settings-btn:hover{color:var(--color-text);background:#ffffff1a}.game-settings-btn:focus-visible{opacity:1;outline:2px solid var(--color-focus-ring);outline-offset:2px}.game-main{background:radial-gradient(70% 60% at 50% 45%,#0000 0%,#0000000f 100%);flex:1;justify-content:center;align-items:flex-start;min-height:0;padding-top:0;display:flex;overflow:auto}@media (height<=600px) and (orientation:landscape) and (width<=932px){.game-main{background:0 0}}.game-controls{order:2}.game-main{order:1}@media (width>=721px) and (height>=600px){.game-main{padding-top:clamp(.5rem,1.2vh,1rem);padding-bottom:.25rem}}@media (width<=480px){.game-main{background:radial-gradient(85% 55% at 50% 42%,#ffffff0b 0%,#0000 70%),radial-gradient(120% 100%,#0000 55%,#00000024 100%);align-items:center;padding-block:clamp(.5rem,4dvh,3rem) clamp(.5rem,2dvh,1.5rem)}@media (prefers-reduced-transparency:reduce){.game-main{background:radial-gradient(90% 80%,#0000 0%,#00000014 100%)}}.game-shell[data-focused] .game-main{padding-block:0 .25rem}}.game-shell[data-focused] .game-main{padding-top:0}@media (height>=1200px){.game-shell[data-focused] .game-main{padding-top:clamp(3rem,12vh,18rem)}}@media (height<=500px) and (orientation:landscape){.game-shell[data-focused] .game-main{padding:.15rem 0}}@media (width<=480px){.game-header{padding-top:calc(.35rem + env(safe-area-inset-top,0px));padding-bottom:.35rem;padding-left:calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.75rem + env(safe-area-inset-right,0px));background:0 0;min-height:2.25rem}.game-brand{color:#ffffffd9;font-size:.8rem}.game-settings-btn{display:none}.game-header-right{gap:.5rem}}@media (width<=420px){.game-header{padding-left:calc(.65rem + env(safe-area-inset-left,0px));padding-right:calc(.65rem + env(safe-area-inset-right,0px))}}@media (width>=768px){.game-header .freecell-deal-chip{justify-content:flex-start;width:10rem}}.theme-linen .game-controls,.theme-ivory .game-controls,.theme-slate .game-controls,.theme-forest .game-controls{--color-accent:#e8c858;--color-accent-hover:#f0d470}.theme-linen .game-controls .game-control-new,.theme-ivory .game-controls .game-control-new,.theme-slate .game-controls .game-control-new,.theme-forest .game-controls .game-control-new{color:#1f1a10}.game-controls{padding-top:.4rem;padding-right:calc(1.25rem + env(safe-area-inset-right,0px));padding-bottom:calc(.4rem + env(safe-area-inset-bottom,0px));padding-left:calc(1.25rem + env(safe-area-inset-left,0px));backdrop-filter:blur(8px);width:100%;height:auto;min-height:2.5rem;z-index:var(--z-controls);background:#0006;border-top:1px solid #ffffff0f;border-bottom:none;flex-shrink:0;align-items:center;gap:.35rem;display:flex;position:sticky;bottom:0}.game-controls-brand{letter-spacing:-.01em;color:var(--color-text-muted);flex-shrink:0;align-items:center;gap:.25em;margin-right:.35rem;font-size:.8rem;font-weight:700;text-decoration:none;display:none}.game-control-btn{border-radius:var(--radius-md);color:#ffffffbf;min-height:40px;font-family:var(--font-sans);letter-spacing:.02em;cursor:pointer;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:none;align-items:center;gap:.3rem;padding:.5rem .75rem;font-size:.75rem;font-weight:500;display:inline-flex}a.game-control-stats{border:1px solid #0000;text-decoration:none}@media (hover:hover){.game-control-btn:hover:not(:disabled){color:#fffffff2;background:#ffffff14}}.game-control-btn:disabled{opacity:.25;cursor:default;color:var(--color-text-dim)}.game-control-icon{opacity:.9;flex-shrink:0}.game-control-icon-hint,.game-control-icon-trophy{opacity:1}.game-control-label{line-height:1}.game-control-label-compact{display:none}.game-control-spacer{flex:1}.game-control-menu-wrap{position:relative}.game-control-menu-backdrop{z-index:calc(var(--z-controls) - 1);background:0 0;position:fixed;inset:0}.game-control-btn[data-deadlock-glow=true]{animation:1.4s ease-in-out infinite deadlock-glow}@keyframes deadlock-glow{0%,to{box-shadow:0 0 #ffd70000}50%{box-shadow:0 0 0 4px #ffd70059}}@media (prefers-reduced-motion:reduce){.game-control-btn[data-deadlock-glow=true]{animation:none;box-shadow:0 0 0 3px #ffd70066}}.game-control-btn[data-post-win-pulse=true]{animation:1.8s ease-in-out 1.5s infinite deadlock-glow}@media (prefers-reduced-motion:reduce){.game-control-btn[data-post-win-pulse=true]{animation:none;box-shadow:0 0 0 3px #ffd70066}}.post-win-ghost-cta{color:#ffffffeb;font-family:var(--font-sans);letter-spacing:.02em;cursor:pointer;-webkit-backdrop-filter:blur(2px);z-index:var(--z-toast);opacity:0;transition:background .16s var(--ease-out,ease-out), border-color .16s var(--ease-out,ease-out), opacity .16s var(--ease-out,ease-out);background:#14141459;border:1px solid #ffffff38;border-radius:999px;padding:.85rem 2rem;font-size:1rem;font-weight:500;animation:.6s ease-out 1.5s forwards post-win-ghost-fade;position:fixed;top:50%;left:50%;transform:translate(-50%,calc(6px - 50%))}.post-win-ghost-cta:hover,.post-win-ghost-cta:focus-visible{border-color:var(--color-accent);opacity:1;background:#ffd7002e;outline:none}@keyframes post-win-ghost-fade{0%{opacity:0;transform:translate(-50%,calc(6px - 50%))}to{opacity:.82;transform:translate(-50%,-50%)}}@media (prefers-reduced-motion:reduce){.post-win-ghost-cta{opacity:.82;animation:none;transform:translate(-50%,-50%)}}.game-control-menu{top:auto;bottom:calc(100% + .35rem);background:var(--color-bg-elevated);border:1px solid var(--color-border-strong);border-radius:var(--radius-lg);min-width:12rem;z-index:var(--z-panel);animation:menu-appear var(--duration-fast) var(--ease-out);max-height:calc(100dvh - var(--dock-height,3.5rem) - 1.5rem);padding:.35rem;position:absolute;inset-inline-end:0;overflow-y:auto;box-shadow:0 4px 20px #0000002e,0 1px 3px #0000001a}.game-menu-item{border-radius:var(--radius-md);width:100%;min-height:2.75rem;color:var(--color-text);font-family:var(--font-sans);text-align:start;cursor:pointer;transition:background-color var(--duration-fast) var(--ease-out);background:0 0;border:none;align-items:center;padding:.55rem .85rem;font-size:.8rem;font-weight:500;display:flex}@media (hover:hover){.game-menu-item:hover{background:var(--color-surface-muted)}}.game-menu-divider{background:var(--color-border);height:1px;margin:.2rem .5rem}.game-menu-link{color:var(--color-text-muted);font-weight:400;text-decoration:none}@keyframes menu-appear{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.game-control-menu{animation:none}}.game-status{transition:opacity .3s var(--ease-out);background:#00000014;border-radius:999px;align-items:center;gap:.55rem;padding:.28rem .7rem;display:inline-flex}.game-status[data-idle]{opacity:.85}.game-status-divider{background:var(--color-border);flex-shrink:0;width:1px;height:.95rem}.game-status-icon{opacity:.85;flex-shrink:0}.game-status-item{font-variant-numeric:tabular-nums;color:var(--color-text);letter-spacing:.02em;align-items:center;gap:.3em;font-size:.875rem;font-weight:500;display:inline-flex}.win-overlay{backdrop-filter:blur(2px);z-index:var(--z-modal);animation:win-fade-in var(--duration-slow) var(--ease-out);background:#00000059;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.win-content{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);width:90vw;max-width:20rem;animation:win-content-in var(--duration-slow) var(--ease-out);flex-direction:column;align-items:center;gap:1.5rem;padding:2.5rem 3rem;display:flex;position:relative;overflow:hidden}.win-close{border-radius:var(--radius-md);width:2rem;height:2rem;color:var(--color-text-muted);cursor:pointer;z-index:2;transition:background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;font-size:1.35rem;line-height:1;display:flex;position:absolute;top:.6rem;right:.6rem}.win-close:hover,.win-close:focus-visible{background:var(--color-surface-muted);color:var(--color-text);outline:none}.win-watermark{color:var(--color-text);opacity:.04;pointer-events:none;user-select:none;font-size:8rem;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.win-title{letter-spacing:-.04em;color:var(--color-text);z-index:1;margin:0;font-size:1.75rem;font-weight:700}.deadlock-content{text-align:center;gap:1rem}.deadlock-body{color:var(--color-text-muted);z-index:1;max-width:16rem;margin:0;font-size:.9375rem;line-height:1.5}.win-stats{z-index:1;gap:.75rem;display:flex}.win-stat{background:var(--color-surface-muted);border-radius:var(--radius-md);flex-direction:column;align-items:center;gap:.2rem;padding:.5rem .85rem;display:flex}.win-record{z-index:1;border-top:1px solid color-mix(in srgb, var(--color-text-muted) 22%, transparent);justify-content:center;gap:1.1rem;padding-top:.55rem;display:flex}.win-record-item{flex-direction:column;align-items:center;gap:.1rem;display:flex}.win-record-value{font-variant-numeric:tabular-nums;color:var(--color-text);font-size:.95rem;font-weight:700}.win-record-label{letter-spacing:.02em;color:var(--color-text-muted);font-size:.68rem}.win-stat-value{font-variant-numeric:tabular-nums;color:var(--color-text);font-size:1.1rem;font-weight:700}.win-stat-label{color:var(--color-text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:.6rem;font-weight:500}.win-deal-line{color:var(--color-text-muted);letter-spacing:.06em;text-transform:uppercase;z-index:1;font-variant-numeric:tabular-nums;margin:0 0 .25rem;font-size:.78rem}.win-deal-line .win-deal-hash{opacity:.6;margin:0 .05rem 0 .25rem}.win-copy-result-btn{border:1px solid color-mix(in srgb, var(--color-text) 18%, transparent);color:color-mix(in srgb, var(--color-text) 78%, transparent);letter-spacing:.01em;cursor:pointer;transition:border-color .15s var(--ease-out), color .15s var(--ease-out), background-color .15s var(--ease-out);background:0 0;border-radius:.4rem;align-items:center;gap:.4rem;padding:.5rem .9rem;font-size:.82rem;font-weight:500;display:inline-flex}.win-copy-result-btn:hover,.win-copy-result-btn:focus-visible{color:var(--color-text);border-color:color-mix(in srgb, var(--color-text) 34%, transparent);background:color-mix(in srgb, var(--color-text) 6%, transparent);outline:none}.win-copy-result-btn:focus-visible{box-shadow:0 0 0 2px var(--color-accent)}.win-primary-btn{border-radius:var(--room-radius-control,10px);color:#1f1a10;letter-spacing:.01em;cursor:pointer;width:100%;min-height:52px;transition:transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:linear-gradient(#ffffff29,#0000 55%),#e8c858;border:1px solid #efd98a;justify-content:center;align-items:center;gap:.5rem;padding:.8rem 1.5rem;font-size:1.05rem;font-weight:750;display:inline-flex;box-shadow:inset 0 1px #ffffff52,0 6px 16px #00000038,0 2px 5px #00000024}.win-primary-btn:hover{background:linear-gradient(#ffffff2e,#0000 55%),#f0d470;transform:translateY(-1px);box-shadow:inset 0 1px #ffffff5c,0 8px 20px #0000003d,0 3px 6px #00000024}.win-primary-btn:active{transform:translateY(0);box-shadow:inset 0 1px #ffffff3d,0 3px 8px #0003}.win-primary-btn:focus-visible{outline:2px solid var(--color-focus-ring);outline-offset:2px}.win-actions{z-index:1;flex-direction:column;align-items:center;gap:.5rem;width:100%;margin-top:.5rem;display:flex}@media (width>=481px){.win-actions{margin-top:1.25rem}}@media (width<=480px){.win-actions{margin-top:auto;padding-top:1rem}}.win-actions .inline-flex{width:100%}.win-streak{color:var(--color-accent);z-index:1;align-items:center;gap:.35rem;margin:-.5rem 0 0;font-size:.85rem;font-weight:600;display:flex}.win-streak-fire{font-size:1rem}.win-badge{letter-spacing:.04em;text-transform:uppercase;color:var(--color-bg);background:var(--color-accent);white-space:nowrap;border-radius:999px;margin-top:.2rem;padding:.15rem .55rem;font-size:.55rem;font-weight:600;display:inline-block}.win-share-toast{text-align:center;color:var(--color-text);background:var(--color-bg-elevated);border:1px solid var(--color-border-strong);border-radius:var(--radius-md,.5rem);animation:win-toast-in var(--duration-fast) var(--ease-out);margin-top:.4rem;padding:.45rem .75rem;font-size:.78rem}@keyframes win-toast-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes win-fade-in{0%{opacity:0}to{opacity:1}}@keyframes win-content-in{0%{opacity:0;transform:scale(.96)translateY(8px)}to{opacity:1;transform:scale(1)translateY(0)}}@media (prefers-reduced-motion:reduce){.win-overlay,.win-content{animation:none}}.logo-modal-overlay{backdrop-filter:blur(3px);z-index:var(--z-modal);animation:win-fade-in var(--duration-normal) var(--ease-out);background:#0006;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.logo-modal-content{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);width:100%;max-width:22rem;animation:win-content-in var(--duration-normal) var(--ease-out);flex-direction:column;align-items:center;gap:1.25rem;padding:2rem 2.25rem 1.75rem;display:flex;position:relative}.logo-modal-close{border-radius:var(--radius-md);width:2rem;height:2rem;color:var(--color-text-muted);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;font-size:1.35rem;line-height:1;display:flex;position:absolute;top:.6rem;right:.6rem}.logo-modal-close:hover,.logo-modal-close:focus-visible{background:var(--color-surface-muted);color:var(--color-text);outline:none}.logo-modal-title{letter-spacing:-.02em;color:var(--color-text);text-align:center;margin:0;font-size:1.4rem;font-weight:700}.logo-modal-body{color:var(--color-text-muted);text-align:center;max-width:18rem;margin:0;font-size:.95rem;line-height:1.5}.logo-modal-actions{flex-direction:column;gap:.6rem;width:100%;margin-top:.25rem;display:flex}.logo-modal-actions .inline-flex{width:100%}@media (prefers-reduced-motion:reduce){.logo-modal-overlay,.logo-modal-content{animation:none}}.feedback-modal-content{gap:1rem;max-width:28rem}.feedback-form{flex-direction:column;gap:.9rem;width:100%;display:flex}.feedback-type-group{border:none;gap:.4rem;margin:0;padding:0;display:flex}.feedback-type-chip{border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-text-muted);background:var(--color-surface-muted);cursor:pointer;transition:background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);flex:1;justify-content:center;align-items:center;padding:.5rem .75rem;font-size:.85rem;display:flex}.feedback-type-chip input{opacity:0;pointer-events:none;position:absolute}.feedback-type-chip:hover{color:var(--color-text)}.feedback-type-chip-active{border-color:var(--color-accent);color:var(--color-text);background:#ffd7001f}.feedback-field{flex-direction:column;gap:.35rem;display:flex}.feedback-field-label{color:var(--color-text-muted);letter-spacing:.02em;text-transform:uppercase;font-size:.78rem;font-weight:600}.feedback-field-optional{text-transform:none;opacity:.7;font-weight:400}.feedback-textarea,.feedback-input{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-muted);width:100%;color:var(--color-text);resize:vertical;transition:border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);padding:.6rem .75rem;font-family:inherit;font-size:.95rem;line-height:1.4}.feedback-textarea:focus-visible,.feedback-input:focus-visible{border-color:var(--color-accent);outline:none;box-shadow:0 0 0 3px #ffd7002e}.feedback-honeypot{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute;left:-9999px}.feedback-error{color:var(--color-danger,#ff6b6b);text-align:center;margin:0;font-size:.85rem}.feedback-error-detail{opacity:.7;font-size:.78rem}.feedback-success{color:var(--color-text);font-weight:600}.feedback-trigger{bottom:calc(4.75rem + env(safe-area-inset-bottom,0px) + .35rem);right:calc(env(safe-area-inset-right,0px) + .75rem);color:var(--color-text-muted);letter-spacing:.02em;cursor:pointer;border-radius:var(--radius-sm);opacity:.55;transition:opacity var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);z-index:40;background:0 0;border:none;padding:.3rem .5rem;font-family:inherit;font-size:.78rem;position:fixed}.feedback-trigger:hover,.feedback-trigger:focus-visible{opacity:1;color:var(--color-text);background:#ffffff0f;outline:none}@media (width<=932px){.feedback-trigger{display:none}}.shortcut-hint{font-family:var(--font-sans);color:var(--color-text-muted);opacity:1;vertical-align:middle;background:#ffffff1f;border:1px solid #ffffff2e;border-radius:3px;margin-left:.4rem;padding:.18rem .38rem;font-size:.62rem;font-weight:600;line-height:1;display:none;box-shadow:inset 0 -1px #0003}.game-controls .shortcut-hint{color:#fff;background:#ffffff1a;border-color:#ffffff47}.menu-shortcut{margin-left:auto;padding-left:1.5rem}@media (hover:hover) and (width>=600px){.shortcut-hint{display:inline-block}}@media (width>=768px){.game-controls{gap:.65rem;min-height:4.25rem;padding:.85rem max(1.25rem,50% - 500px)}.game-control-btn{color:#ffffffe6;gap:.45rem;min-height:46px;padding:.6rem 1.2rem;font-size:1rem;font-weight:600}.game-control-undo,.game-control-hint,.game-control-focus,.game-control-menu-btn{background:#ffffff12;border:1px solid #ffffff29}.game-control-icon{width:20px;height:20px}.game-control-btn.game-control-new{padding:.6rem 1.4rem;font-weight:700}.game-status-item{font-size:.9375rem}.game-status-icon{width:15px;height:15px}.shortcut-hint{padding:.18rem .4rem;font-size:.66rem}}@media (width>=768px) and (hover:hover){.game-control-undo:hover:not(:disabled),.game-control-hint:hover:not(:disabled),.game-control-focus:hover:not(:disabled),.game-control-menu-btn:hover:not(:disabled){color:#fff;background:#ffffff21;border-color:#ffffff4d}}.focus-exit-btn{z-index:var(--z-panel);border-radius:var(--radius-md);width:2rem;height:2rem;color:var(--color-text);opacity:.35;cursor:pointer;transition:opacity var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;display:flex;position:absolute;top:.4rem;right:.5rem}.focus-exit-btn:hover{opacity:.8}.focus-exit-btn:focus-visible{opacity:.9;outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:var(--focus-ring-offset)}.focus-exit-btn{display:none}@media (width<=480px){.game-controls{padding:.5rem .65rem;padding-bottom:calc(.5rem + env(safe-area-inset-bottom,0px));background:#0000008c;border-top:1px solid #ffffff0f;border-bottom:none;border-radius:0;flex-shrink:0;justify-content:space-between;gap:.25rem;width:100%;max-width:none;height:auto;min-height:44px}.game-control-spacer,.game-controls-brand{display:none}.game-control-btn,a.game-control-stats{justify-content:center;min-width:44px;min-height:44px;padding:.45rem .55rem;font-size:.72rem}.game-control-btn.game-control-new{margin-right:.35rem}.game-control-stats .game-control-label,.game-control-undo .game-control-label,.game-control-hint .game-control-label,.game-control-label-full{display:none}.game-control-label-compact{display:inline}.game-control-stats{padding:.45rem}.game-status{gap:.55rem}.game-status-item{color:#ffffffd1;font-size:.72rem}}@media (width<=360px){.game-controls{padding-left:calc(.35rem + env(safe-area-inset-left,0px));padding-right:calc(.35rem + env(safe-area-inset-right,0px));gap:.15rem}.game-control-btn{padding:.4rem;font-size:.68rem}.game-control-btn.game-control-new{margin-right:.2rem;padding:.4rem .55rem}.game-control-stats{padding:.4rem .3rem}}@media (width<=420px){.win-content{padding:2rem}}@media (height<=480px){.win-content{gap:.9rem;max-height:calc(100dvh - 1rem);padding:1.25rem 2rem;overflow:hidden auto}}.game-control-btn.game-control-new{background:var(--color-accent);color:var(--color-bg);font-weight:600}@media (hover:hover){.game-control-btn.game-control-new:hover:not(:disabled){background:var(--color-accent-hover);color:var(--color-bg)}}html:has(.game-shell){--game-dock-clearance:4.65rem}html .game-island-slot{container:game-island-slot/inline-size}html .game-shell{--room-rail:color-mix(in srgb, var(--color-bg) 82%, #07100b);--room-rail-raised:color-mix(in srgb, var(--room-rail) 90%, white);--room-ink:color-mix(in srgb, var(--color-text) 94%, white);--room-ink-muted:color-mix(in srgb, var(--color-text-muted) 82%, transparent);--room-seam:color-mix(in srgb, var(--color-text) 13%, transparent);--room-seam-strong:color-mix(in srgb, var(--color-text) 23%, transparent);--room-control:color-mix(in srgb, var(--color-text) 7%, transparent);--room-control-hover:color-mix(in srgb, var(--color-text) 13%, transparent);--room-control-active:color-mix(in srgb, var(--color-text) 18%, transparent);--room-panel:color-mix(in srgb, var(--color-bg-elevated) 94%, #f4ead4);--room-panel-soft:color-mix(in srgb, var(--color-surface-muted) 90%, transparent);--room-control-height:46px;--room-radius-control:10px;--room-radius-group:13px;--room-radius-panel:20px;--room-shadow-rail:0 1px 0 #ffffff0d inset, 0 -1px 0 #00000038 inset, 0 8px 28px #00000029;--room-shadow-panel:0 1px 0 #ffffff6b inset, 0 24px 64px #00000057;container:game-shell/inline-size}html .game-header,html .game-controls{background:var(--room-rail);color:var(--room-ink);border-color:var(--room-seam);backdrop-filter:none}.theme-linen .game-controls,.theme-ivory .game-controls{--room-rail:color-mix(in srgb, black 58%, var(--color-surface));--room-rail-raised:color-mix(in srgb, black 52%, var(--color-surface));--room-ink:#f7f3ea;--room-ink-muted:#e2dccd;--room-seam:#ffffff24;--room-seam-strong:#ffffff3d;--room-control:#ffffff12;--room-control-hover:#ffffff1f;--room-control-active:#ffffff29}html .game-header{min-height:60px;padding-block:calc(.45rem + env(safe-area-inset-top,0px)) .45rem;border-bottom:1px solid var(--room-seam);box-shadow:var(--room-shadow-rail);z-index:var(--z-controls)}html .game-header .game-brand{border-radius:var(--room-radius-control);min-height:44px;color:var(--room-ink);border:1px solid #0000;margin-block:-.45rem;margin-inline:0;padding:.45rem .65rem}html .game-header .game-brand:hover,html .game-header .game-brand:focus-visible{background:var(--room-control);border-color:var(--room-seam)}html .game-identity{border-inline-start:1px solid var(--room-seam);min-width:0;min-height:40px;color:var(--room-ink);white-space:nowrap;align-items:center;gap:.45rem;padding-inline:.75rem;font-size:.82rem;font-weight:700;line-height:1;display:inline-flex}html .game-identity[data-mobile-only]{display:none}html .game-identity-suit{color:var(--color-accent);font-size:.72rem}html .game-identity-label{text-overflow:ellipsis;overflow:hidden}html .header-nav{flex-shrink:0;align-items:center;gap:.5rem;display:flex}html .game-switcher,html .header-quick-settings{border:1px solid var(--room-seam);border-radius:var(--room-radius-group);background:#00000021;min-height:40px;padding:3px;box-shadow:inset 0 1px #ffffff0a}html .game-switcher{margin-inline:0}html .game-switcher-chip,html .size-chip,html .sound-toggle{border-radius:calc(var(--room-radius-control) - 2px);min-height:32px;color:var(--room-ink-muted)}html .game-switcher-chip{letter-spacing:0;padding-inline:.85rem;font-size:.78rem}html .game-switcher-chip:hover,html .game-switcher-chip:focus-visible,html .size-chip:hover:not(.size-chip-active),html .size-chip:focus-visible,html .sound-toggle:hover,html .sound-toggle:focus-visible{color:var(--room-ink);background:var(--room-control)}html .game-switcher-chip-active,html .size-chip-active{background:var(--room-control-active);color:var(--room-ink);background-image:none;box-shadow:inset 0 1px #ffffff14,0 1px 3px #0000003d}html .game-header-right{gap:.55rem}html .game-status{border:1px solid var(--room-seam);border-radius:var(--room-radius-group);background:#0000001c;gap:0;min-height:40px;padding:3px}html .game-status-divider{background:var(--room-seam);height:20px}html .game-status-item{min-width:66px;min-height:32px;color:var(--room-ink);letter-spacing:0;justify-content:center;padding-inline:.65rem;font-size:.875rem}html .game-settings-btn{border-radius:var(--room-radius-control);width:auto;min-width:44px;min-height:44px;color:var(--room-ink);border:1px solid #0000;gap:.45rem;padding-inline:.65rem}html .game-settings-btn:after{content:attr(title);font-size:.78rem;font-weight:600;line-height:1}html .game-settings-btn:hover,html .game-settings-btn:focus-visible{background:var(--room-control);border-color:var(--room-seam)}html .game-controls{min-height:68px;padding-block:.65rem calc(.65rem + env(safe-area-inset-bottom,0px));border-top:1px solid var(--room-seam);box-shadow:var(--room-shadow-rail);gap:.55rem}html .game-control-btn{min-height:var(--room-control-height);border-radius:var(--room-radius-control);color:var(--room-ink-muted);letter-spacing:0;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);background:0 0;border:1px solid #0000;gap:.5rem;padding-inline:1rem;font-size:.875rem;transform:translateY(0)}html .game-control-undo,html .game-control-hint,html .game-control-focus,html .game-control-menu-btn{background:var(--room-control);border-color:var(--room-seam)}html .game-control-btn:hover:not(:disabled){color:var(--room-ink);background:var(--room-control-hover);border-color:var(--room-seam-strong)}html .game-control-btn:active:not(:disabled){background:var(--room-control-active);transform:translateY(1px)}html .game-control-btn:focus-visible,html .game-switcher-chip:focus-visible,html .size-chip:focus-visible,html .sound-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:2px}html .game-control-btn:disabled{opacity:.36;background:color-mix(in srgb, var(--room-control) 48%, transparent);border-color:#0000}html .game-control-btn.game-control-new{border-color:color-mix(in srgb, var(--color-accent) 78%, white);border-radius:var(--room-radius-control);background:linear-gradient(180deg, #ffffff1f, transparent), var(--color-accent);color:#162016;min-width:132px;padding-inline:1.25rem;font-weight:750;box-shadow:inset 0 1px #ffffff47,0 3px 10px #00000038}html .game-control-btn.game-control-new:hover:not(:disabled){border-color:color-mix(in srgb, var(--color-accent-hover) 72%, white);background:linear-gradient(180deg, #ffffff26, transparent), var(--color-accent-hover);color:#111a12}html .game-control-icon{opacity:.92;width:19px;height:19px}html .shortcut-hint{border-color:var(--room-seam);color:var(--room-ink-muted);background:#00000026}html .game-control-menu{border:1px solid var(--room-seam-strong);border-radius:var(--room-radius-panel);background:var(--room-rail-raised);min-width:15rem;color:var(--room-ink);box-shadow:var(--room-shadow-panel);transform-origin:100% 100%;padding:.5rem}html .game-menu-item{border-radius:var(--room-radius-control);min-height:44px;color:var(--room-ink);padding-inline:.85rem;font-size:.875rem}html .game-menu-link{color:var(--room-ink-muted)}html .game-menu-item:hover,html .game-menu-item:focus-visible{background:var(--room-control-hover);color:var(--room-ink);outline:none}html .game-menu-divider{background:var(--room-seam);margin-block:.3rem}html .settings-backdrop,html .win-overlay,html .logo-modal-overlay{backdrop-filter:blur(3px);background:#050c08a3}html .settings-panel,html .win-content,html .logo-modal-content,html .feedback-modal-content{border:1px solid color-mix(in srgb, var(--color-border-strong) 82%, transparent);border-radius:var(--room-radius-panel);background:var(--room-panel);box-shadow:var(--room-shadow-panel)}html .settings-header{border-bottom-color:var(--color-border)}html .settings-section-items,html .settings-theme-btn,html .settings-segmented,html .settings-toggle-row{border-radius:var(--room-radius-control)}html .settings-segmented,html .settings-theme-btn{border-color:var(--color-border);background:var(--room-panel-soft)}html .win-title,html .settings-title{letter-spacing:-.02em}html .win-close,html .settings-close,html .logo-modal-close{border-radius:var(--room-radius-control);width:44px;height:44px}html .win-actions .inline-flex,html .win-copy-result-btn,html .logo-modal-actions .inline-flex{border-radius:var(--room-radius-control);min-height:46px}html .win-share-toast{border:1px solid var(--room-seam-strong);border-radius:var(--room-radius-control);background:var(--room-rail-raised);color:var(--room-ink);box-shadow:var(--room-shadow-panel)}@media (width>=768px){html .game-controls{min-height:70px;padding-block:.7rem}html .game-control-btn{min-height:var(--room-control-height);padding-block:.55rem;font-size:.9rem}html .game-control-btn.game-control-new{padding-inline:1.3rem}html .header-nav .game-mode-label,html .header-nav .freecell-deal-chip{width:auto;max-width:12rem}}@media (width>=768px) and (width<=1120px){html .game-settings-btn:after{display:none}html .game-status-item{min-width:58px;padding-inline:.5rem}}@media (width<=799px){html:has(.game-shell){--game-dock-clearance:6.4375rem}html .game-shell{--header-height:calc(6.5625rem + env(safe-area-inset-top,0px));--dock-height:calc(var(--game-dock-clearance) + env(safe-area-inset-bottom,0px))}html .game-shell .game-header{-moz-column-gap:.3rem;min-height:var(--header-height);padding:calc(.3rem + env(safe-area-inset-top,0px)) calc(.55rem + env(safe-area-inset-right,0px)) .3rem calc(.55rem + env(safe-area-inset-left,0px));grid-template-rows:minmax(3rem,auto) minmax(2.75rem,auto);grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.25rem .3rem;display:grid}html .game-shell .game-header .game-brand{grid-area:1/1;justify-self:start;min-height:48px;margin-block:-.3rem;padding-inline:.35rem}html .game-shell .game-identity,html .game-shell .game-identity[data-mobile-only]{border:1px solid var(--room-seam);border-radius:var(--room-radius-control);white-space:normal;background:#0000001a;grid-area:1/2;justify-self:end;max-width:100%;min-height:40px;padding-inline:.65rem;font-size:.82rem;line-height:1.1;display:inline-flex;box-shadow:inset 0 1px #ffffff0a}html .game-shell .game-identity-label{overflow-wrap:anywhere;text-align:end;text-overflow:clip;white-space:normal;min-width:0;max-width:100%;overflow:visible}html .game-shell .header-nav{grid-area:2/1;gap:.3rem;min-width:0;display:flex}html .game-shell .header-nav>:not(.game-switcher):not(.freecell-deal-chip){display:none}html .game-shell .header-nav .freecell-deal-chip{min-height:44px}html .game-shell .game-header-right{grid-area:2/2;justify-content:flex-end;gap:.3rem;width:100%;min-width:0}html .game-shell .game-header .header-quick-settings,html .game-shell .game-header .game-settings-btn{display:inline-flex}html .game-shell .header-quick-settings .size-switcher,html .game-shell .header-quick-settings .quick-divider{display:none}html .game-shell .header-quick-settings{flex:none;min-width:44px;min-height:44px;padding:0}html .game-shell .header-quick-settings .sound-toggle{width:44px;min-width:44px;min-height:44px;color:var(--room-ink);padding:.35rem}html .game-shell .game-status{min-height:44px;padding:2px}html .game-shell .game-status-item{min-width:50px;min-height:38px;padding-inline:.35rem;font-size:.82rem}html .game-shell .game-status-icon{width:14px;height:14px}html .game-shell .game-settings-btn{min-width:44px;height:44px;min-height:44px;padding-inline:.55rem}html .game-shell .game-settings-btn:after{display:none}html .game-shell .game-controls{min-height:var(--dock-height);padding:.25rem calc(.3rem + env(safe-area-inset-right,0px)) calc(.25rem + env(safe-area-inset-bottom,0px)) calc(.3rem + env(safe-area-inset-left,0px));border-top:1px solid var(--room-seam-strong);background:var(--room-rail-raised);grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(44px,auto);align-items:stretch;gap:.25rem;display:grid}html .game-shell .game-controls-brand,html .game-shell .game-control-spacer{display:none}html .game-shell .game-control-btn,html .game-shell a.game-control-stats,html .game-shell .game-control-menu-wrap{width:100%;min-width:0;min-height:44px;margin:0}html .game-shell .game-controls>.game-control-menu-wrap{align-self:stretch}html .game-shell .game-controls>.game-control-menu-wrap>.game-control-menu-btn{height:100%}html .game-shell .game-control-btn,html .game-shell a.game-control-stats{border-radius:var(--room-radius-control);background:var(--room-control);border-color:var(--room-seam);color:var(--room-ink);flex-direction:column;gap:.1rem;padding:.2rem .3rem;font-size:.8rem;font-weight:700}html .game-shell .game-control-btn.game-control-new{border-color:color-mix(in srgb, var(--color-accent) 82%, white);background:linear-gradient(180deg, #ffffff24, transparent), var(--color-accent);color:#172219;min-width:0;padding-inline:.45rem;box-shadow:inset 0 1px #ffffff4d,0 3px 9px #0003}html .game-shell .game-control-hint{border-color:color-mix(in srgb, var(--color-accent) 44%, var(--room-seam));background:color-mix(in srgb, var(--color-accent) 20%, var(--room-rail-raised));color:var(--room-ink)}html .game-shell .game-control-hint .game-control-icon{color:var(--color-accent)}html .game-shell .game-control-label-full{display:none}html .game-shell .game-control-label-compact,html .game-shell .game-control-undo .game-control-label,html .game-shell .game-control-hint .game-control-label,html .game-shell a.game-control-stats .game-control-label,html .game-shell .game-control-menu-btn .game-control-label{overflow-wrap:anywhere;text-align:center;white-space:normal;min-width:0;max-width:100%;font-size:.8rem;line-height:1.1;display:inline}html .game-shell .game-control-icon{flex:none;width:18px;height:18px}html .game-shell .game-controls .shortcut-hint{display:none}html .game-shell .game-control-menu{left:max(.65rem, env(safe-area-inset-left,0px));right:max(.65rem, env(safe-area-inset-right,0px));top:auto;bottom:calc(var(--dock-height) + .65rem);width:auto;min-width:0;max-height:calc(100dvh - var(--header-height) - var(--dock-height) - 1.5rem);border-radius:var(--room-radius-panel);transform-origin:bottom;position:fixed}body:has(.game-shell)>.game-control-menu-backdrop{backdrop-filter:blur(2px);background:#050c0861}html .game-shell .settings-panel{border-radius:var(--room-radius-panel) var(--room-radius-panel) 0 0;width:min(100%,32rem)}}@media (width>=701px) and (width<=799px){html .game-shell .header-nav .game-switcher{min-height:44px;display:inline-flex}}@media (width<=380px){html .game-shell .game-header{padding-left:calc(.4rem + env(safe-area-inset-left,0px));padding-right:calc(.4rem + env(safe-area-inset-right,0px))}html .game-shell .game-header-right{gap:.25rem}html .game-shell .game-status-item{min-width:46px;padding-inline:.25rem;font-size:.76rem}html .game-shell .game-controls{padding-left:calc(.3rem + env(safe-area-inset-left,0px));padding-right:calc(.3rem + env(safe-area-inset-right,0px));gap:.25rem}html .game-shell .game-control-btn,html .game-shell a.game-control-stats,html .game-shell .game-control-label-compact,html .game-shell .game-control-undo .game-control-label,html .game-shell .game-control-hint .game-control-label,html .game-shell .game-control-menu-btn .game-control-label{font-size:.78rem}}@media (width<=340px){html .game-shell .game-status{flex-direction:column;width:56px;min-width:56px;height:44px}html .game-shell .game-status-divider{display:none}html .game-shell .game-status-item{gap:.2rem;width:52px;min-width:52px;height:19px;min-height:19px;padding-inline:.2rem;font-size:.7rem}html .game-shell .game-status-icon{width:11px;height:11px}}@media (width<=799px) and (height<=500px) and (orientation:landscape){html:has(.game-shell){--game-dock-clearance:4rem}html .game-shell{--header-height:3.25rem;--dock-height:calc(var(--game-dock-clearance) + env(safe-area-inset-bottom,0px))}html .game-shell .game-header{min-height:var(--header-height);flex-wrap:nowrap;row-gap:0;padding-block:.1rem;display:flex}html .game-shell .game-header .game-brand{justify-content:center;width:44px;min-width:44px;min-height:44px;margin:-.1rem 0;padding-inline:0}html .game-shell .game-header .game-brand-name{display:none}html .game-shell .game-identity,html .game-shell .game-identity[data-mobile-only]{flex:auto;max-width:13rem;min-height:42px}html .game-shell .header-nav,html .game-shell .game-header-right{order:1}html .game-shell .game-header-right{flex:none;gap:.25rem;width:auto;min-width:auto}html .game-shell .game-controls{min-height:var(--dock-height);gap:.25rem;padding-block:.25rem;display:flex}html .game-shell .game-control-spacer{flex:1;display:block}html .game-shell .game-control-btn,html .game-shell a.game-control-stats,html .game-shell .game-control-menu-wrap{width:auto;min-width:52px;min-height:48px}}@media (width<=932px) and (height<=500px) and (orientation:landscape){html:has(.game-shell){--game-dock-clearance:3.5rem}html .game-shell{--header-height:calc(3.25rem + env(safe-area-inset-top,0px));--dock-height:calc(var(--game-dock-clearance) + env(safe-area-inset-bottom,0px))}html .game-shell .game-header{min-height:var(--header-height);padding:calc(.1rem + env(safe-area-inset-top,0px)) calc(.55rem + env(safe-area-inset-right,0px)) .1rem calc(.55rem + env(safe-area-inset-left,0px))}html .game-shell .game-header .game-brand{justify-content:center;width:44px;min-width:44px;min-height:44px;margin:-.1rem 0;padding-inline:0}html .game-shell .game-header .game-brand-name,html .game-shell .game-identity,html .game-shell .game-identity[data-mobile-only]{display:none}html .game-shell .game-switcher,html .game-shell .header-quick-settings,html .game-shell .game-status,html .game-shell .game-switcher-chip,html .game-shell .size-chip,html .game-shell .sound-toggle,html .game-shell .freecell-deal-chip{min-height:44px}html .game-shell .size-chip,html .game-shell .sound-toggle{min-width:44px}html .game-shell .header-quick-settings .sound-toggle{width:44px}html .game-shell .game-controls{min-height:var(--dock-height);padding-top:.3rem;padding-right:calc(.45rem + env(safe-area-inset-right,0px));padding-bottom:calc(.3rem + env(safe-area-inset-bottom,0px));padding-left:calc(.45rem + env(safe-area-inset-left,0px));gap:.25rem}html .game-shell .game-control-btn,html .game-shell .game-control-btn.game-control-new,html .game-shell a.game-control-stats,html .game-shell .game-control-menu-wrap{width:auto;min-width:52px;min-height:44px}html .game-shell .game-control-btn.game-control-new{min-width:64px}html .game-shell .game-control-menu-wrap{flex:none;inline-size:max-content;max-inline-size:100%}html .game-shell .game-control-btn,html .game-shell a.game-control-stats{flex-direction:row;gap:.3rem;padding:.3rem .5rem}html .game-shell .game-control-label-compact,html .game-shell .game-control-undo .game-control-label,html .game-shell .game-control-hint .game-control-label,html .game-shell a.game-control-stats .game-control-label,html .game-shell .game-control-menu-btn .game-control-label{overflow-wrap:normal;white-space:nowrap}html .game-shell .game-control-icon{width:18px;height:18px}}@container game-shell (width<=12rem){html .game-shell .game-header .game-brand{justify-content:center;width:44px;min-width:44px;margin-inline:0;padding-inline:0;overflow:hidden}html .game-shell .game-header .game-brand-name{display:none}html .game-shell .game-identity,html .game-shell .game-identity[data-mobile-only]{min-width:0;padding-inline:.35rem}html .game-shell .game-header{z-index:auto;grid-template-rows:minmax(3rem,auto) auto auto}html .game-shell .header-nav{grid-area:2/1/auto/-1;width:100%}html .game-shell .header-nav .game-switcher{flex:2 1 0;width:auto;min-width:0}html .game-shell .header-nav .freecell-deal-chip{flex:1 1 0;width:auto;min-width:0;max-width:none}html .game-shell .game-header-right{grid-area:3/1/auto/-1;justify-content:center}html .game-shell .game-controls{z-index:auto;grid-template-columns:repeat(2,minmax(0,1fr))}html .game-shell .game-main{flex:none;min-height:50dvh}html .game-shell .game-control-menu{left:max(4px, env(safe-area-inset-left,0px));right:max(4px, env(safe-area-inset-right,0px));top:max(4px, env(safe-area-inset-top,0px));bottom:max(4px, env(safe-area-inset-bottom,0px));max-height:none;z-index:var(--z-modal);padding:4px;overflow-y:auto}html .game-shell .game-control-menu .game-menu-item{padding-inline:4px}}@container game-island-slot (width<=12rem){html .logo-modal-overlay:has(>.feedback-modal-content){padding-top:max(4px, env(safe-area-inset-top,0px));padding-right:max(4px, env(safe-area-inset-right,0px));padding-bottom:max(4px, env(safe-area-inset-bottom,0px));padding-left:max(4px, env(safe-area-inset-left,0px))}html .feedback-modal-content{gap:12px;padding:56px 12px 12px}html .feedback-modal-content .logo-modal-close{top:4px;inset-inline-end:4px}html .feedback-form{gap:12px}html .feedback-modal-content .logo-modal-actions{margin-top:0}html .feedback-modal-content .logo-modal-actions .inline-flex{overflow-wrap:normal;word-break:normal;white-space:normal;width:100%;min-width:0;min-height:44px;padding:8px 12px}}@media (prefers-reduced-motion:reduce){html .game-control-btn{transition:none}}@media (width>=1121px){html .game-shell .sound-toggle{min-height:36px;color:var(--room-ink);gap:.4rem;padding-inline:.65rem}html .game-shell .sound-toggle:after{content:attr(aria-label);max-width:7.5rem;color:inherit;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:650;line-height:1;overflow:hidden}}@media (width>=800px) and (width<=1120px){html .game-shell .game-header .header-quick-settings{display:inline-flex}html .game-shell .header-quick-settings .size-switcher,html .game-shell .header-quick-settings .quick-divider{display:none}}@media (width>=1121px) and (width<=1400px){html .game-shell .game-header .header-quick-settings{display:inline-flex}html .game-shell .header-quick-settings .size-switcher,html .game-shell .header-quick-settings .quick-divider,html .game-shell .game-settings-btn:after{display:none}html .game-shell .game-status-item{min-width:58px;padding-inline:.5rem}}html .game-shell .game-header{--room-ink:var(--color-text);--room-ink-muted:color-mix(in srgb, var(--color-text) 92%, var(--color-surface));--room-seam:color-mix(in srgb, var(--color-text) 11%, transparent);--room-control:#ffffff0d;--room-control-hover:#ffffff1a;--room-control-active:#ffffff24;background:color-mix(in srgb, var(--color-bg) 60%, var(--color-surface));border-bottom-color:color-mix(in srgb, var(--color-text) 10%, transparent);box-shadow:inset 0 1px #ffffff0a,inset 0 -1px #0000002e,0 4px 14px #0000001a}html .game-shell .game-header .game-switcher,html .game-shell .game-header .header-quick-settings,html .game-shell .game-header .game-status{background:#0000000d;box-shadow:inset 0 1px #ffffff0a}html .game-shell .game-header .game-switcher-chip-active,html .game-shell .game-header .size-chip-active{background:#ffffff1f;box-shadow:inset 0 1px #ffffff0d,0 1px 3px #00000029}.settings-account-row{flex-direction:column;gap:.3rem;padding:.5rem 0;display:flex}.settings-account-email{color:var(--color-text);font-size:.8rem;font-weight:500}.settings-account-status{color:var(--color-text-dim);font-size:.7rem}.settings-account-hint{color:var(--color-text-muted);font-size:.8rem}.settings-account-link{width:fit-content;font-family:var(--font-sans);color:var(--color-accent);cursor:pointer;opacity:.85;transition:opacity var(--duration-fast) var(--ease-out);background:0 0;border:none;padding:0;font-size:.75rem;font-weight:500;text-decoration:none;display:inline}.settings-account-link:hover{opacity:1}.account-section{flex-direction:column;gap:1rem;display:flex}.account-text{color:var(--color-text-muted);margin:0;font-size:.85rem;line-height:1.5}.account-text-success{color:var(--color-accent)}.account-user-info{flex-direction:column;gap:.2rem;display:flex}.account-email{color:var(--color-text);font-size:.85rem;font-weight:500}.account-sync-status{color:var(--color-text-dim);font-size:.7rem}.account-form{flex-direction:column;gap:.6rem;display:flex}.account-label{color:var(--color-text-muted);letter-spacing:.02em;font-size:.75rem;font-weight:500}.account-input{width:100%;font-family:var(--font-sans);color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:var(--radius-md);transition:border-color var(--duration-fast) var(--ease-out);outline:none;padding:.55rem .75rem;font-size:.85rem}.account-input:focus{border-color:var(--color-accent)}.account-input::placeholder{color:var(--color-text-dim);opacity:.5}.account-input:disabled{opacity:.5}.account-btn{font-family:var(--font-sans);border-radius:var(--radius-md);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);border:none;justify-content:center;align-items:center;padding:.55rem 1rem;font-size:.8rem;font-weight:500;display:inline-flex}.account-btn:disabled{opacity:.4;cursor:default}.account-btn-primary{background:var(--color-accent);color:var(--color-bg)}.account-btn-primary:hover:not(:disabled){opacity:.9}.account-btn-secondary{background:var(--color-surface-muted);color:var(--color-text)}.account-btn-secondary:hover:not(:disabled){background:var(--color-border)}.account-btn-danger{color:var(--color-text-muted);background:0 0;font-size:.75rem}.account-btn-danger:hover:not(:disabled){color:#e55}.account-actions{flex-direction:column;gap:.5rem;margin-top:.5rem;display:flex}.account-warning{color:#e55;margin:0;font-size:.75rem;line-height:1.4}.account-error{color:#e55;margin:0;font-size:.75rem}.account-footnote{color:var(--color-text-dim);opacity:.6;margin:0;font-size:.7rem}.stats-sync-panel{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface-muted);margin-top:3rem;padding:1.5rem 1.5rem 1.25rem}.stats-sync-heading{letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-muted);margin-bottom:.4rem;font-size:.75rem;font-weight:600}.stats-sync-body{color:var(--color-text);flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:0 0 1rem;font-size:.9375rem;line-height:1.55;display:flex}.stats-sync-email{color:var(--color-text);font-weight:500}.stats-sync-status-pill{color:var(--color-text-muted);font-size:.75rem}.stats-sync-form{flex-wrap:wrap;align-items:stretch;gap:.5rem;display:flex}.stats-sync-input{min-width:0;font-family:var(--font-sans);color:var(--color-text);background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:var(--radius-md);transition:border-color var(--duration-fast) var(--ease-out);flex:14rem;padding:.55rem .75rem;font-size:.9375rem}.stats-sync-input:focus{border-color:var(--color-accent);outline:none}.stats-sync-input:disabled{opacity:.6;cursor:not-allowed}.stats-sync-btn{font-family:var(--font-sans);border-radius:var(--radius-md);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);border:1px solid #0000;justify-content:center;align-items:center;padding:.55rem 1rem;font-size:.875rem;font-weight:500;display:inline-flex}.stats-sync-btn:disabled{opacity:.5;cursor:not-allowed}.stats-sync-btn-primary{background:var(--color-accent);color:var(--color-bg);border-color:var(--color-accent)}.stats-sync-btn-primary:hover:not(:disabled){filter:brightness(1.05)}.stats-sync-btn-ghost{color:var(--color-text-muted);border-color:var(--color-border);background:0 0}.stats-sync-btn-ghost:hover{color:var(--color-text);border-color:var(--color-border-strong);background:var(--color-bg-elevated)}.stats-sync-actions{flex-wrap:wrap;gap:.5rem;display:flex}.stats-sync-success{color:var(--color-text);margin:0 0 .75rem;font-size:.875rem}.stats-sync-error{color:#d04545;margin:.75rem 0 0;font-size:.8125rem}.stats-sync-footnote{color:var(--color-text-muted);margin:1rem 0 0;font-size:.75rem;line-height:1.5}.stats-sync-footnote a{color:var(--color-accent);text-decoration:underline}.stats-sync-footnote a:hover{text-decoration:none}.install-prompt-backdrop{backdrop-filter:blur(4px);z-index:var(--z-modal);animation:install-fade-in var(--duration-normal) var(--ease-out);background:#00000040;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.install-prompt-sheet{width:100%;max-width:24rem;margin-bottom:env(safe-area-inset-bottom,0);background:var(--color-bg-elevated);border-radius:var(--radius-xl) var(--radius-xl) 0 0;animation:install-slide-up var(--duration-slow) var(--ease-out);flex-direction:column;align-items:center;gap:.75rem;padding:2rem 2rem 1.5rem;display:flex;box-shadow:0 -4px 24px #0003}.install-prompt-mark{margin-bottom:.25rem;font-size:1.5rem}.install-prompt-title{color:var(--color-text);text-align:center;margin:0;font-size:1.1rem;font-weight:700}.install-prompt-subtitle{color:var(--color-text-muted);text-align:center;margin:0 0 .5rem;font-size:.85rem;line-height:1.4}.install-prompt-dismiss{color:var(--color-text-dim);font-family:var(--font-sans);cursor:pointer;transition:color var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;min-height:44px;padding:.5rem 1rem;font-size:.75rem;font-weight:500;display:inline-flex}.install-prompt-dismiss:hover{color:var(--color-text-muted)}.install-prompt-ios{width:90%;max-width:22rem;margin-bottom:calc(3rem + env(safe-area-inset-bottom,0));animation:install-slide-up var(--duration-slow) var(--ease-out)}.install-prompt-ios-inner{background:var(--color-bg-elevated);border:1px solid var(--color-border-strong);border-radius:var(--radius-lg);align-items:center;gap:.75rem;padding:1rem 1.25rem;display:flex;box-shadow:0 4px 20px #0003}.install-prompt-ios-text{color:var(--color-text);margin:0;font-size:.8rem;line-height:1.45}.install-prompt-share-icon{vertical-align:-.15em;color:var(--color-accent);display:inline-block}@keyframes install-fade-in{0%{opacity:0}to{opacity:1}}@keyframes install-slide-up{0%{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.install-prompt-backdrop,.install-prompt-sheet,.install-prompt-ios{animation:none}}.settings-backdrop{z-index:var(--z-panel);animation:settings-backdrop-in var(--duration-normal) var(--ease-out);background:#0000004d;justify-content:flex-end;display:flex;position:fixed;inset:0}@keyframes settings-backdrop-in{0%{opacity:0}to{opacity:1}}.settings-panel{background:var(--color-bg);border-left:1px solid var(--color-border);width:min(22rem,90vw);height:100%;animation:settings-slide-in var(--duration-normal) var(--ease-out);flex-direction:column;display:flex;overflow:hidden}@keyframes settings-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}@media (prefers-reduced-motion:reduce){.settings-backdrop,.settings-panel{animation:none}}.settings-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem 1rem;display:flex}.settings-title{letter-spacing:-.02em;color:var(--color-text);margin:0;font-size:1.1rem;font-weight:700}.settings-close{border-radius:var(--radius-md);width:2rem;height:2rem;color:var(--color-text-muted);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;font-size:1.25rem;display:flex}@media (hover:hover){.settings-close:hover{background:var(--color-surface-muted);color:var(--color-text)}}.settings-body{flex:1;padding:0 1.5rem 2rem;overflow-y:auto}.settings-section{margin-bottom:2rem}.settings-section-title{letter-spacing:.08em;text-transform:uppercase;color:var(--color-text-muted);border-bottom:1px solid var(--color-border);margin:0 0 1rem;padding-bottom:.5rem;font-size:.65rem;font-weight:700}.settings-section-items{flex-direction:column;gap:1rem;display:flex}.settings-row{flex-direction:column;gap:.4rem;display:flex}.settings-row-label{color:var(--color-text);font-size:.8rem;font-weight:500}.settings-theme-grid{grid-template-columns:repeat(5,1fr);gap:.4rem;display:grid}.settings-theme-btn{border-radius:var(--radius-md);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:1.5px solid #0000;flex-direction:column;align-items:center;gap:.3rem;padding:.4rem .2rem;display:flex}.settings-theme-btn:hover{background:var(--color-surface-muted)}.settings-theme-btn.active{border-color:var(--color-accent);background:var(--color-surface-muted)}.settings-theme-swatch{border-radius:var(--radius-full);border:2px solid var(--color-border-strong);flex-shrink:0;width:1.5rem;height:1.5rem}.settings-theme-btn.active .settings-theme-swatch{border-color:var(--color-accent)}.settings-theme-name{color:var(--color-text-muted);font-size:.6rem;font-weight:500;line-height:1}.settings-segmented{border:1px solid var(--color-border);border-radius:var(--radius-md);display:flex;overflow:hidden}.settings-segment{color:var(--color-text-muted);font-family:var(--font-sans);cursor:pointer;transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);background:0 0;border:none;flex:1;padding:.35rem .5rem;font-size:.75rem;font-weight:500}.settings-segment:not(:last-child){border-right:1px solid var(--color-border)}.settings-segment:hover:not(.active){background:var(--color-surface-muted)}.settings-segment.active{background:var(--color-accent);color:var(--color-bg)}.settings-toggle-row{cursor:pointer;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.15rem 0;display:flex}.settings-toggle-text{flex-direction:column;flex:1;gap:.1rem;min-width:0;display:flex}.settings-toggle-label{color:var(--color-text);font-size:.8rem;font-weight:500;line-height:1.3}.settings-toggle-desc{color:var(--color-text-dim);opacity:.85;font-size:.65rem;line-height:1.3}.settings-toggle{border:1.5px solid var(--color-border-strong);border-radius:var(--radius-full);background:var(--color-surface-muted);cursor:pointer;width:2.25rem;height:1.25rem;transition:background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);flex-shrink:0;margin-top:.1rem;position:relative}.settings-toggle.active{background:var(--color-accent);border-color:var(--color-accent)}.settings-toggle-thumb{border-radius:var(--radius-full);background:var(--color-text);width:.85rem;height:.85rem;transition:left var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);position:absolute;top:50%;left:2px;transform:translateY(-50%)}.settings-toggle.active .settings-toggle-thumb{background:var(--color-bg);left:calc(100% - .85rem - 2px)}.card-size-control{min-width:0;color:var(--color-text)}.card-size-control-heading,.card-size-control-inputs,.card-size-control-labels{align-items:center;display:flex}.card-size-control-heading{justify-content:space-between;gap:.75rem;margin-bottom:.25rem}.card-size-control-title{overflow-wrap:anywhere;min-width:0;font-size:.8rem;font-weight:650;line-height:1.25}.card-size-control-value{width:7ch;min-width:7ch;color:var(--color-text-muted);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;font-size:.78rem;font-weight:700;line-height:1}.card-size-control-inputs{gap:.45rem}.card-size-step{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface-muted);width:2.75rem;min-width:2.75rem;height:2.75rem;color:var(--color-text);font:inherit;cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:1.2rem;line-height:1;display:inline-flex}@media (hover:hover){.card-size-step:hover:not(:disabled){border-color:var(--color-accent);background:var(--color-surface)}}.card-size-step:disabled{opacity:.38;cursor:default}.card-size-step:focus-visible,.card-size-slider-wrap:has(.card-size-slider:focus-visible){outline:var(--focus-ring-width) solid var(--color-focus-ring);outline-offset:2px}.card-size-slider:focus-visible{outline:none}.card-size-slider-wrap{--card-size-thumb-size:1.75rem;--card-size-fill:calc(var(--card-size-ratio) * 100%);flex:auto;min-width:5rem;height:2.75rem;position:relative;overflow:clip}.card-size-slider{width:100%;min-width:0;height:2.75rem;accent-color:var(--color-accent);cursor:pointer;touch-action:pan-y;appearance:none;background:0 0;border:0;margin:0;padding:0}.card-size-slider::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--color-accent) 0 var(--card-size-fill), var(--color-border-strong) var(--card-size-fill) 100%);border-radius:999px;height:.375rem}html[dir=rtl] .card-size-slider::-webkit-slider-runnable-track{background:linear-gradient(to left, var(--color-accent) 0 var(--card-size-fill), var(--color-border-strong) var(--card-size-fill) 100%)}.card-size-slider::-webkit-slider-thumb{width:var(--card-size-thumb-size);height:var(--card-size-thumb-size);box-shadow:none;appearance:none;background:0 0;border:0;border-radius:50%;margin-top:-.6875rem}.card-size-slider::-moz-range-track{background:var(--color-border-strong);border:0;border-radius:999px;height:.375rem}.card-size-slider::-moz-range-progress{background:var(--color-accent);border-radius:999px;height:.375rem}.card-size-slider::-moz-range-thumb{width:var(--card-size-thumb-size);height:var(--card-size-thumb-size);box-shadow:none;background:0 0;border:0;border-radius:50%}.card-size-slider-value{top:50%;z-index:1;width:var(--card-size-thumb-size);height:var(--card-size-thumb-size);border:2px solid var(--color-bg);background:var(--color-accent);color:var(--color-on-accent,var(--color-bg));font-variant-numeric:tabular-nums;pointer-events:none;border-radius:50%;place-items:center;font-size:.68rem;font-weight:800;line-height:1;display:inline-grid;position:absolute;inset-inline-start:calc(var(--card-size-ratio) * (100% - var(--card-size-thumb-size)));transform:translateY(-50%)}.card-size-control-labels{color:var(--color-text-muted);justify-content:space-between;gap:.5rem;padding-inline:3.2rem;font-size:.66rem;line-height:1.2}.card-size-control-labels span:nth-child(2){text-align:center}.card-size-control-labels span:last-child{text-align:end}.card-size-control-settings{width:100%}.card-size-control-controls{flex:0 auto;align-items:center;gap:.05rem;min-width:0;display:inline-flex}.card-size-control-controls .card-size-step{width:2rem;min-width:2rem;height:2rem;color:var(--color-text-muted);background:0 0;border-color:#0000;border-radius:999px}@media (hover:hover){.card-size-control-controls .card-size-step:hover:not(:disabled){background:var(--color-surface);color:var(--color-text);border-color:#0000}}.card-size-control-controls .card-size-slider-wrap,.card-size-control-controls .card-size-slider{height:2rem}.card-size-control-controls .card-size-slider-wrap{--card-size-thumb-size:1.45rem;flex:auto;width:clamp(5rem,9vw,8.5rem);min-width:3.5rem}.card-size-control-controls .card-size-slider::-webkit-slider-thumb{margin-top:-.53rem}.card-size-control-controls .card-size-slider-value{font-size:.62rem}@media (width<=700px),(width<=932px) and (height<=600px) and (orientation:landscape){.card-size-control,.settings-row.settings-row-card-size{display:none}}@media (forced-colors:active){.card-size-step{border-color:buttontext}.card-size-step:disabled{color:graytext;opacity:1}.card-size-slider{forced-color-adjust:none}.card-size-slider-wrap:has(.card-size-slider:focus-visible){outline-color:highlight}.card-size-slider::-webkit-slider-runnable-track{background:buttontext}.card-size-slider::-moz-range-track{background:buttontext}.card-size-slider::-moz-range-progress{background:highlight}.card-size-slider-value{color:highlighttext;forced-color-adjust:none;background:highlight;border-color:canvas}}
