:root{color-scheme:light dark;--bg: var(--tg-bg-color, #ffffff);--bg-secondary: var(--tg-secondary-bg-color, #f2f4f7);--text: var(--tg-text-color, #16191d);--text-hint: var(--tg-hint-color, #707579);--accent: var(--tg-button-color, #2481cc);--accent-text: var(--tg-button-text-color, #ffffff);--link: var(--tg-link-color, #2481cc);--divider: color-mix(in srgb, var(--text) 10%, transparent);--muted: color-mix(in srgb, var(--text) 8%, transparent);--disabled: color-mix(in srgb, var(--text) 40%, transparent);--error: #e5484d;--error-bg: #fbe1e2;--error-text: #c1272d;--success: #2fa46f;--success-bg: #e8f4ec;--success-border: #bfe0cd;--success-text: #1d7a52;--success-muted: #4a8d6d;--warning: #c98f14;--warning-bg: #f7edd4;--crystal: #34aadc;--level-1: #35a37d;--level-2: #3d84c6;--level-3: #7a6fd0;--level-4: #d98a2b;--level-5: #d0454c;--level-empty: #d3d8de;--medal-gold: #d98a2b;--medal-silver: #8c949c;--medal-bronze: #b08b5e;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;--size-score: 56px;--size-title: 26px;--size-sheet: 22px;--size-timer: 19px;--size-row: 17px;--size-body: 15px;--size-hint: 13px;--size-caption: 11px;--radius-cell: 5px;--radius-chip: 8px;--radius-button: 12px;--radius-card: 16px;--radius-sheet: 20px;--gap-1: 4px;--gap-2: 6px;--gap-3: 8px;--gap-4: 12px;--gap-5: 16px;--gap-6: 24px;--screen-padding: 16px;--sh-1: 0 1px 3px rgba(16, 24, 40, .12);--sh-2: 0 -2px 16px rgba(16, 24, 40, .14);--sh-3: 0 8px 30px rgba(16, 24, 40, .18);--t-select: .12s;--t-same: .2s;--t-enter: 90ms;--t-sheet: .24s;--t-screen: .4s;--ease-out: cubic-bezier(0, 0, .2, 1);--ease-sheet: cubic-bezier(.2, .8, .2, 1);--board-size: min( calc(100vw - 32px) , 400px);--board-cell: calc(var(--board-size) / 9);--board-digit: calc(var(--board-cell) * .6);--board-note: calc(var(--board-digit) * .46)}:root[data-theme=dark],:root:not([data-theme=light]){--dark-divider: #253340}:root[data-theme=dark]{--divider: var(--dark-divider);--error: #ff7075;--error-bg: #4a2226;--error-text: #ff9a9d;--success: #49c48d;--success-bg: #1f4736;--success-border: #2f6b50;--success-text: #8fe3b8;--success-muted: #8fb3a1;--warning: #e8b93f;--warning-bg: #3d3320;--crystal: #6ab3f3;--level-1: #4cbf8d;--level-2: #5aa2e0;--level-3: #9a8ff0;--level-4: #e5a44a;--level-5: #e9646c;--level-empty: #33465c;--sh-1: none;--sh-2: none;--sh-3: none}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--bg: var(--tg-bg-color, #17212b);--bg-secondary: var(--tg-secondary-bg-color, #232e3c);--text: var(--tg-text-color, #ffffff);--text-hint: var(--tg-hint-color, #7d93a8);--accent: var(--tg-button-color, #5288c1);--link: var(--tg-link-color, #6ab3f3);--divider: #253340;--error: #ff7075;--error-bg: #4a2226;--error-text: #ff9a9d;--success: #49c48d;--success-bg: #1f4736;--success-border: #2f6b50;--success-text: #8fe3b8;--success-muted: #8fb3a1;--warning: #e8b93f;--warning-bg: #3d3320;--crystal: #6ab3f3;--level-1: #4cbf8d;--level-2: #5aa2e0;--level-3: #9a8ff0;--level-4: #e5a44a;--level-5: #e9646c;--level-empty: #33465c;--sh-1: none;--sh-2: none;--sh-3: none}}:root,[data-board-theme=classic]{--board-bg: var(--bg);--board-thin: #e1e5ea;--board-block: #a7b0ba;--board-given: var(--text);--board-entered: var(--accent);--board-selected: #cfe3fa;--board-same: #bcd8f7;--board-soft: #f1f4f8;--board-conflict: #e5484d;--board-error-bg: #fbe1e2;--board-hint: #d8f0e2;--board-hint-ring: #2fa46f;--board-note: #5b6672}:root[data-theme=dark][data-board-theme=classic],:root[data-theme=dark]:not([data-board-theme]),:root[data-theme=dark] [data-board-theme=classic]{--board-bg: #1b2633;--board-thin: #26333f;--board-block: #4d6070;--board-given: #ffffff;--board-entered: #6ab3f3;--board-selected: #2d4a66;--board-same: #274764;--board-soft: #212e3b;--board-conflict: #ff7075;--board-error-bg: #5a2429;--board-hint: #1f4736;--board-hint-ring: #49c48d;--board-note: #8fa3b5}@media (prefers-color-scheme: dark){:root:not([data-theme=light]):is([data-board-theme=classic],:not([data-board-theme])),:root:not([data-theme=light]) [data-board-theme=classic]{--board-bg: #1b2633;--board-thin: #26333f;--board-block: #4d6070;--board-given: #ffffff;--board-entered: #6ab3f3;--board-selected: #2d4a66;--board-same: #274764;--board-soft: #212e3b;--board-conflict: #ff7075;--board-error-bg: #5a2429;--board-hint: #1f4736;--board-hint-ring: #49c48d;--board-note: #8fa3b5}}[data-board-theme=midnight]{--board-bg: #0c1430;--board-thin: #1a2650;--board-block: #3a4f8f;--board-given: #e3ebff;--board-entered: #6ea8ff;--board-selected: #1b3468;--board-same: #22407c;--board-soft: #121c3e;--board-conflict: #ff6b8a;--board-error-bg: #4b1a37;--board-hint: #123f52;--board-hint-ring: #58e1ff;--board-note: #8b9bd4}[data-board-theme=sepia]{--board-bg: #f7eeda;--board-thin: #e3d3b3;--board-block: #b59a70;--board-given: #3a3025;--board-entered: #a06b2c;--board-selected: #ecdcb8;--board-same: #e4cda1;--board-soft: #f2e6cd;--board-conflict: #b8443c;--board-error-bg: #f0d3c6;--board-hint: #dfe8c6;--board-hint-ring: #7d8f4a;--board-note: #8a7757}[data-board-theme=pine]{--board-bg: #0f1c16;--board-thin: #1d3126;--board-block: #3b6049;--board-given: #e0eee4;--board-entered: #7fd6a2;--board-selected: #1c3628;--board-same: #234a34;--board-soft: #152419;--board-conflict: #e08a72;--board-error-bg: #43231d;--board-hint: #204a34;--board-hint-ring: #a8e06a;--board-note: #7d9a86}[data-board-theme=neon]{--board-bg: #0a0a12;--board-thin: #1b1b2b;--board-block: #454565;--board-given: #ececf8;--board-entered: #00e5ff;--board-selected: #1e1e3f;--board-same: #2b2b5c;--board-soft: #121220;--board-conflict: #ff2d6b;--board-error-bg: #40092a;--board-hint: #183a2f;--board-hint-ring: #c6ff3d;--board-note: #7a7aa8}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);font-size:var(--size-body);color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent}.num{font-variant-numeric:tabular-nums}button{font:inherit;color:inherit;border:none;background:none;padding:0;cursor:pointer}.screen{display:flex;flex-direction:column;min-height:100%;background:var(--bg)}.screen--center{align-items:center;justify-content:center;gap:var(--gap-5);padding:var(--gap-6);text-align:center}.screen__body{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--gap-4);padding:var(--gap-4) var(--screen-padding) var(--gap-5);overflow-y:auto}.stack{display:flex;flex-direction:column;gap:var(--gap-3)}.stack--tight{gap:var(--gap-2)}.row{display:flex;align-items:center;justify-content:space-between;gap:var(--gap-4)}.push-down{margin-top:auto}.topbar{flex:0 0 auto;height:48px;display:flex;align-items:center;justify-content:space-between;gap:var(--gap-3);padding:0 var(--screen-padding);border-bottom:1px solid var(--divider)}.topbar__title{font-size:var(--size-row);font-weight:600}.topbar__action{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--link);flex:0 0 auto}.topbar__spacer{width:44px;flex:0 0 auto}.card{border-radius:var(--radius-card);background:var(--bg-secondary);padding:var(--gap-5);width:100%;text-align:left}.card--accent{background:var(--accent);color:var(--accent-text)}.card--accent .hint-text{color:inherit;opacity:.85}.card--success{background:var(--success-bg);border:1px solid var(--success-border);color:var(--success-text)}.card--empty{border:1px dashed var(--divider)}.chip{height:28px;display:inline-flex;align-items:center;gap:var(--gap-2);padding:0 10px;border-radius:var(--radius-chip);background:var(--bg-secondary);font-size:var(--size-hint);font-weight:600;flex:0 0 auto}.chip--error{background:var(--error-bg);color:var(--error-text)}.chip--balance{height:32px;padding:0 var(--gap-4);border-radius:16px;font-size:var(--size-body)}.crystal{color:var(--crystal)}.pill{height:32px;padding:0 var(--gap-4);border-radius:16px;background:var(--bg-secondary);color:var(--text);font-size:var(--size-hint);display:inline-flex;align-items:center}.pill--active{background:var(--accent);color:var(--accent-text);font-weight:600}.pill-row{display:flex;gap:var(--gap-2);flex-wrap:wrap}.button{height:50px;border-radius:var(--radius-card);background:var(--bg-secondary);color:var(--link);font-size:var(--size-row);font-weight:600;display:flex;align-items:center;justify-content:center;gap:var(--gap-2);width:100%}.button--primary{background:var(--accent);color:var(--accent-text)}.button--free{background:var(--success);color:#fff}.button--danger{color:var(--error)}.button--compact{height:44px;width:auto;padding:0 18px;border-radius:var(--radius-button);font-size:var(--size-body);flex:0 0 auto}.button:disabled{background:var(--muted);color:var(--disabled);cursor:default}.button-row{display:flex;gap:var(--gap-3)}.button-row>*{flex:1 1 0}.button--inverted{background:var(--accent-text);color:var(--accent);box-shadow:none}.section-label{font-size:var(--size-hint);color:var(--text-hint);padding:0 var(--gap-1)}.home-section{display:flex;flex-direction:column;gap:var(--gap-3)}.home-section__heading{display:flex;align-items:baseline;justify-content:space-between;gap:var(--gap-3)}.level-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap-3)}.level-tile{min-height:108px;display:flex;flex-direction:column;align-items:flex-start;gap:var(--gap-3);padding:var(--gap-4);border:1px solid var(--divider);border-radius:var(--radius-card);background:var(--bg-secondary);color:var(--text);text-align:left}.level-tile:nth-child(5){grid-column:1 / -1;min-height:88px}.level-tile:active:not(:disabled){background:var(--muted);transform:scale(.99)}.level-tile__body{display:flex;flex-direction:column;gap:1px}.level-tile__title,.home-link__title{display:block;font-size:var(--size-body);font-weight:600}.level-tile__best{display:flex;align-items:baseline;gap:var(--gap-2);margin-top:auto;font-size:var(--size-caption);color:var(--text-hint)}.level-tile__best .num{font-size:var(--size-hint);font-weight:600;color:var(--text)}.home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap-3)}.home-link{min-height:68px;display:flex;align-items:center;gap:10px;padding:var(--gap-3) var(--gap-4);border:1px solid var(--divider);border-radius:var(--radius-button);background:transparent;color:var(--text);text-align:left}.home-link:active{background:var(--muted)}.home-link__icon{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--muted);color:var(--accent);font-size:18px;font-weight:700}.hint-text{font-size:var(--size-hint);color:var(--text-hint);text-wrap:pretty}.error-text{font-size:var(--size-hint);color:var(--error-text)}.muted-text{color:var(--disabled)}.progress{height:4px;border-radius:2px;background:var(--divider);overflow:hidden}.progress__fill{height:100%;border-radius:2px;background:var(--accent)}.progress--on-accent{background:#ffffff47}.progress--on-accent .progress__fill{background:#fff}.progress--success .progress__fill{background:var(--success)}.segmented{height:36px;display:flex;padding:3px;border-radius:var(--radius-button);background:var(--bg-secondary);gap:2px;flex:0 0 auto}.segmented__item{flex:1 1 0;border-radius:9px;font-size:var(--size-hint);color:var(--text-hint);display:flex;align-items:center;justify-content:center}.segmented__item--active{background:var(--bg);color:var(--text);font-weight:600;box-shadow:var(--sh-1)}:root[data-theme=dark] .segmented__item--active{background:#3a4a5c;color:#fff}.list{border-radius:var(--radius-card);background:var(--bg-secondary);padding:0 14px;display:flex;flex-direction:column}.list__row{min-height:52px;display:flex;align-items:center;gap:var(--gap-4);padding:10px 0;border-bottom:1px solid var(--divider);width:100%;text-align:left}.list__row:last-child{border-bottom:none}.list__row--compact{min-height:48px}.list__grow{flex:1 1 auto;min-width:0}.list__value{font-size:var(--size-body);font-weight:600;flex:0 0 auto}.board{width:var(--board-size);height:var(--board-size);display:grid;grid-template-columns:repeat(9,1fr);align-self:center;background:var(--board-bg);border:2px solid var(--board-block);border-radius:var(--radius-chip);overflow:hidden;font-variant-numeric:tabular-nums;touch-action:manipulation;flex:0 0 auto}.board__cell{position:relative;display:flex;align-items:center;justify-content:center;font-size:var(--board-digit);line-height:1;color:var(--board-entered);background:var(--board-bg);border-right:1px solid var(--board-thin);border-bottom:1px solid var(--board-thin);transition:background-color var(--t-select) var(--ease-out),color var(--t-select) var(--ease-out)}.board__cell--block-right{border-right-width:2px;border-right-color:var(--board-block)}.board__cell--block-bottom{border-bottom-width:2px;border-bottom-color:var(--board-block)}.board__cell--last-col{border-right:none}.board__cell--last-row{border-bottom:none}.board__cell--given{color:var(--board-given);font-weight:600}.board__cell--peer{background:var(--board-soft)}.board__cell--same{background:var(--board-same);transition-delay:60ms;transition-duration:var(--t-same)}.board__cell--selected{background:var(--board-selected);box-shadow:inset 0 0 0 2px var(--board-entered);transition-delay:0ms}.board__cell--conflict{color:var(--board-conflict)}.board__cell--error{background:var(--board-error-bg);color:var(--board-conflict)}.board__cell--hinted{background:var(--board-hint);animation:hint-ring 3s var(--ease-out) forwards}.board__cell--pinned{background:var(--board-same)}.board__notes{position:absolute;top:3%;right:3%;bottom:3%;left:3%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);font-size:var(--board-note);font-weight:500;line-height:1;color:var(--board-note);opacity:.85}.board__note{display:flex;align-items:center;justify-content:center}.board__digit--entered{animation:digit-pop var(--t-enter) var(--ease-out)}.board__cell--shake{animation:shake .12s var(--ease-out) 2}.board-cover{width:var(--board-size);height:var(--board-size);align-self:center;border-radius:var(--radius-chip);background:var(--bg-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:var(--gap-6);flex:0 0 auto}.board-cover__bars{display:flex;gap:var(--gap-3)}.board-cover__bar{width:12px;height:44px;border-radius:3px;background:var(--disabled)}.toolbar{display:flex;gap:var(--gap-2)}.toolbar__button{flex:1 1 0;height:60px;border-radius:var(--radius-button);background:var(--bg-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--gap-1)}.toolbar__icon{font-size:var(--size-timer);color:var(--link)}.toolbar__label{font-size:var(--size-caption);color:var(--text-hint)}.toolbar__button:disabled{opacity:.45}.toolbar__button--on{background:var(--accent)}.toolbar__button--on .toolbar__icon,.toolbar__button--on .toolbar__label{color:var(--accent-text);font-weight:600}.keypad{display:flex;flex-direction:column;gap:var(--gap-2)}.keypad__row{display:flex;gap:var(--gap-1)}.keypad__key{flex:1 1 0;height:62px;border-radius:var(--radius-button);background:var(--bg-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:opacity .25s var(--ease-out)}.keypad__digit{font-size:22px;font-weight:500}.keypad__left{font-size:10px;color:var(--text-hint)}.keypad__key--done{opacity:.4}.keypad__key--selected{background:var(--board-selected);box-shadow:inset 0 0 0 1.5px var(--accent)}.keypad--notes .keypad__key{background:transparent;border:1.5px dashed var(--accent)}.keypad--notes .keypad__digit{color:var(--accent)}.keypad--notes .keypad__key--done{border-color:var(--divider)}.keypad__hint{font-size:var(--size-caption);color:var(--text-hint);text-align:center}.keypad__key--filler{visibility:hidden}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#10191d66;display:flex;flex-direction:column;justify-content:flex-end;z-index:10;animation:fade-in var(--t-sheet) var(--ease-sheet)}.overlay--dialog{justify-content:center}.sheet{background:var(--bg);border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;padding:var(--gap-3) var(--screen-padding) 34px;display:flex;flex-direction:column;gap:var(--gap-4);max-height:92vh;overflow-y:auto;box-shadow:var(--sh-2);animation:sheet-up var(--t-sheet) var(--ease-sheet)}.sheet--result{border-radius:24px 24px 0 0;padding-top:var(--gap-6);gap:var(--gap-4);animation-duration:var(--t-screen)}:root[data-theme=dark] .sheet{border-top:1px solid var(--divider)}.sheet__handle{width:36px;height:4px;border-radius:2px;background:var(--disabled);align-self:center;margin-bottom:var(--gap-1)}.sheet__head{display:flex;align-items:center;justify-content:space-between;gap:var(--gap-3)}.sheet__title{font-size:var(--size-sheet);font-weight:600}.dialog{margin:var(--screen-padding);border-radius:var(--radius-sheet);background:var(--bg);padding:20px var(--screen-padding);display:flex;flex-direction:column;gap:14px;box-shadow:var(--sh-3);animation:sheet-up var(--t-sheet) var(--ease-sheet)}.dialog__title{font-size:var(--size-timer);font-weight:600}.banner{min-height:30px;border-radius:var(--radius-chip);background:var(--warning-bg);color:var(--warning);display:flex;align-items:center;justify-content:center;gap:var(--gap-3);padding:var(--gap-2) var(--gap-4);font-size:var(--size-hint);font-weight:600;text-align:center;animation:slide-down var(--t-same) var(--ease-out);flex:0 0 auto}.banner--error{background:var(--error-bg);color:var(--error-text)}.banner__dot{width:7px;height:7px;border-radius:4px;background:currentColor;flex:0 0 auto}.game{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:var(--gap-5);padding:14px var(--screen-padding) 18px}.game__status{display:flex;align-items:center;justify-content:space-between;gap:var(--gap-3)}.game__status-group{display:flex;align-items:center;gap:var(--gap-3);min-width:0}.game__timer{font-size:var(--size-timer);font-weight:600;flex:0 0 auto}.game__timer--paused{color:var(--text-hint)}.level-mark{width:4px;height:12px;border-radius:1px;flex:0 0 auto}.level-bars{display:flex;align-items:flex-end;gap:2px;height:20px;flex:0 0 auto}.level-bars__bar{width:4px;border-radius:1px;background:var(--level-empty)}.level-bars__bar--on{background:var(--level-color)}.level-row{min-height:60px;border-radius:14px;background:var(--bg-secondary);padding:var(--gap-3) 14px;display:flex;align-items:center;gap:var(--gap-4);width:100%;text-align:left}.level-row__title{font-size:var(--size-row);font-weight:600}.level-row__best{font-size:var(--size-hint);color:var(--text-hint);text-align:right;flex:0 0 auto}.result__headline{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}.result__kicker{font-size:var(--size-body);font-weight:600;color:var(--success)}.result__title{font-size:var(--size-title);font-weight:700}.result__score{font-size:var(--size-score);font-weight:700;letter-spacing:-.03em;line-height:1.1}.result__rows{border-radius:14px;background:var(--bg-secondary);padding:var(--gap-1) 14px;display:flex;flex-direction:column}.result__row{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:var(--gap-4);font-size:var(--size-body);border-bottom:1px solid var(--divider)}.result__row:last-child{border-bottom:none}.result__row-label{color:var(--text-hint)}.result__row-value{font-weight:600}.result__board{flex:1 1 auto;display:flex;align-items:flex-start;justify-content:center;padding-top:30px;opacity:.5}.badge{width:36px;height:36px;border-radius:10px;background:var(--muted);color:var(--text-hint);display:flex;align-items:center;justify-content:center;font-size:var(--size-body);flex:0 0 auto}.badge--done{background:var(--success);color:#fff;font-size:var(--size-row)}.achievement{border-radius:14px;background:var(--bg-secondary);padding:var(--gap-4) 14px;display:flex;align-items:center;gap:var(--gap-4)}.achievement--done{background:var(--success-bg);border:1px solid var(--success-border)}.achievement__title{font-size:var(--size-body);font-weight:600}.achievement__reward{font-size:var(--size-hint);font-weight:600;color:var(--crystal);flex:0 0 auto}.achievement--done .achievement__reward{color:var(--success)}.achievement--done .hint-text{color:var(--success-muted)}.technique{border-radius:var(--radius-card);background:var(--success-bg);border:1px solid var(--success-border);padding:14px;display:flex;flex-direction:column;gap:var(--gap-2)}.technique__head{display:flex;align-items:center;justify-content:space-between;gap:var(--gap-3)}.technique__title{font-size:var(--size-row);font-weight:600;color:var(--success-text)}.technique__tag{height:22px;padding:0 var(--gap-3);border-radius:var(--radius-chip);background:var(--success-border);color:var(--success-text);font-size:var(--size-caption);font-weight:600;display:flex;align-items:center;flex:0 0 auto}.technique__body{font-size:var(--size-body);line-height:1.45;color:var(--success-text);text-wrap:pretty}.technique__meta{font-size:var(--size-hint);color:var(--success-muted)}.technique--locked{background:var(--bg-secondary);border-color:transparent}.technique--locked .technique__title{color:var(--disabled)}.technique--locked .technique__body,.technique--locked .technique__meta{color:var(--text-hint)}.shop-item{border-radius:var(--radius-card);background:var(--bg-secondary);padding:var(--gap-4);display:flex;gap:var(--gap-4);align-items:center}.shop-item--active{border:2px solid var(--accent);padding:10px}.shop-item__body{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0}.shop-item__title{font-size:var(--size-row);font-weight:600}.shop-item__state{font-size:var(--size-hint);font-weight:600;color:var(--accent);padding-top:2px}.shop-item__button{height:36px;align-self:flex-start;padding:0 14px;border-radius:10px;background:var(--accent);color:var(--accent-text);font-size:var(--size-hint);font-weight:600;display:flex;align-items:center;gap:var(--gap-1);margin-top:2px}.shop-item__button:disabled{background:var(--muted);color:var(--disabled)}.board--preview{--board-size: 104px;border-width:1.5px;border-radius:var(--radius-cell)}.board--locked{filter:grayscale(1);opacity:.5}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap-3)}.tile{border-radius:14px;background:var(--bg-secondary);padding:14px;display:flex;flex-direction:column;gap:2px}.tile__value{font-size:var(--size-title);font-weight:700}.rank{width:26px;font-size:var(--size-body);color:var(--text-hint);flex:0 0 auto}.rank--1{color:var(--medal-gold);font-weight:600}.rank--2{color:var(--medal-silver);font-weight:600}.rank--3{color:var(--medal-bronze);font-weight:600}.my-row{border-radius:14px;background:var(--accent);color:var(--accent-text);padding:0 14px;min-height:56px;display:flex;align-items:center;gap:var(--gap-4);position:sticky;bottom:0;flex:0 0 auto}.my-row .rank{color:var(--accent-text);font-weight:600}.my-row__note{font-size:var(--size-hint);opacity:.85}.value--time{font-size:var(--size-row);font-weight:600}.empty-state{border-radius:var(--radius-card);background:var(--bg-secondary);padding:32px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-top:var(--gap-3)}.empty-state__icon{width:56px;height:56px;border-radius:var(--radius-card);background:var(--muted);color:var(--text-hint);display:flex;align-items:center;justify-content:center;font-size:var(--size-sheet)}.profile{display:flex;align-items:center;justify-content:space-between;gap:var(--gap-4)}.profile__person{display:flex;align-items:center;gap:10px;min-width:0}.avatar{width:36px;height:36px;border-radius:18px;background:var(--accent);color:var(--accent-text);display:flex;align-items:center;justify-content:center;font-size:var(--size-body);font-weight:600;object-fit:cover;flex:0 0 auto}.profile__name{font-size:var(--size-body);font-weight:600}.switch{width:48px;height:28px;border-radius:14px;background:var(--disabled);padding:2px;display:flex;flex:0 0 auto;transition:background-color var(--t-select) var(--ease-out)}.switch--on{background:var(--accent);justify-content:flex-end}.switch__knob{width:24px;height:24px;border-radius:12px;background:#fff}.loader{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap-2)}.loader__cell{width:22px;height:22px;border-radius:var(--radius-cell);background:var(--bg-secondary);animation:loader-pulse 1.2s var(--ease-out) infinite}.loader__cell:nth-child(3n+2){animation-delay:.2s}.loader__cell:nth-child(3n){animation-delay:.4s}@keyframes digit-pop{0%{transform:scale(.9)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-3px)}75%{transform:translate(3px)}}@keyframes hint-ring{0%{box-shadow:inset 0 0 0 0 var(--board-hint-ring)}5%{box-shadow:inset 0 0 0 2px var(--board-hint-ring)}80%{box-shadow:inset 0 0 0 2px var(--board-hint-ring)}to{box-shadow:inset 0 0 0 0 transparent;background:var(--board-bg)}}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-down{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes loader-pulse{0%,to{background:var(--bg-secondary)}50%{background:var(--board-selected)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media (max-width: 340px){:root{--size-timer: 17px}.keypad__key{height:50px;border-radius:11px}.keypad__digit{font-size:21px}.toolbar__button{height:52px;border-radius:11px}.toolbar__label{font-size:10px}.chip{height:26px;padding:0 var(--gap-3);font-size:12px}.game{gap:10px;padding:10px var(--screen-padding) 12px}}.avatar__image{width:100%;height:100%;border-radius:inherit;object-fit:cover}.avatar--bronze,.avatar--frame_bronze{box-shadow:0 0 0 2px #b08b5e}.avatar--frame_gold{box-shadow:0 0 0 2px var(--medal-gold)}.avatar--frame_flame{box-shadow:0 0 0 2px #ff6b3d}
