:root{--tg-header:var(--bg)}.screen--page{padding-top:0;padding-left:0;padding-right:0}.page{padding:12px 14px 0}.screen .chip,.modal .chip,.game .chip,.screen .seg__item,.modal .seg__item,.game .seg__item,.screen .btn--sm,.modal .btn--sm,.game .btn--sm{min-height:40px}.banner{border-radius:var(--radius-sm);color:var(--text);align-items:center;gap:10px;margin:10px 0;padding:10px 12px;font-size:14px;font-weight:600;line-height:1.35;display:flex}.banner--warn{border-left:3px solid var(--orange);background:#ffa63d29}.banner--error{border-left:3px solid var(--red);background:#ff626224}.banner__body{flex:1;min-width:0}.cardtext{white-space:nowrap;font-weight:700}.suit{font-weight:800}.suit--red{color:var(--suit-red,var(--red))}.felt{--suit-red:#ff9f9f}.seats{flex:none;align-items:center;gap:4px;display:inline-flex}.seats__dot{background:var(--line);border-radius:50%;width:9px;height:9px}.seats__dot--on{background:var(--green)}.field{margin-top:12px}.field:first-child{margin-top:0}.field__label{color:var(--muted);justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px;font-size:13px;font-weight:600;display:flex}.input-wrap{align-items:center;display:flex;position:relative}.input-wrap .input{padding-right:64px}.input-wrap__suffix{color:var(--muted);pointer-events:none;font-size:14px;font-weight:700;position:absolute;right:14px}.input--invalid,.input--invalid:focus{border-color:var(--red)}.presets{gap:6px;margin-top:8px;display:flex}.presets .chip{flex:1;justify-content:center;padding:0 8px}.form-actions{gap:8px;margin-top:16px;display:flex}.form-actions>*{flex:1;min-width:0}.lobby__hello{align-items:center;gap:12px;margin-bottom:14px;display:flex}.lobby__profile{color:var(--link);font:600 15px var(--font);cursor:pointer;background:0 0;border:0;flex:none;min-height:40px;padding:8px 4px}.lobby__balance,.lobby__assets{margin-bottom:12px}.lobby__assets .chip{color:#fff;box-shadow:none;background:#ffffff1f;min-height:32px;padding:0 12px;font-size:13px}.lobby__assets .chip--on{color:#124a30;background:#fff}.lobby__amount{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.lobby__asset{opacity:.8;font-size:18px;font-weight:700}.lobby__frozen{opacity:.78;margin-top:4px}.lobby__balance-actions{margin-top:14px}.lobby__balance-actions .btn{flex:1}.lobby__quick{flex-direction:column;gap:12px;display:flex}.lobby__quick .field{margin-top:0}.lobby__insufficient{color:var(--red);justify-content:space-between;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.lobby__entries{grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;display:grid}.entry{text-align:left;background:var(--surface);border-radius:var(--radius);color:var(--text);cursor:pointer;border:0;flex-direction:column;gap:4px;min-height:96px;padding:14px;transition:transform .1s,filter .15s;display:flex}.entry:active{filter:brightness(.9);transform:scale(.985)}.entry__icon{width:36px;height:36px;color:color-mix(in srgb, var(--accent) 62%, var(--text));background:#f6c85329;border-radius:11px;place-items:center;margin-bottom:6px;display:grid}.lobby__sng{scrollbar-width:none;gap:10px;margin:0 -14px;padding:0 14px 4px;display:flex;overflow-x:auto}.lobby__sng::-webkit-scrollbar{display:none}.sng{background:var(--surface);border-radius:var(--radius);flex-direction:column;flex:none;gap:6px;width:152px;padding:12px;display:flex}.sng__buyin{overflow-wrap:anywhere;font-size:17px;font-weight:800;line-height:1.2}.sng .btn{margin-top:4px}.tables__list{flex-direction:column;gap:8px;display:flex}.trow{background:var(--surface);border-radius:var(--radius-sm);align-items:center;gap:12px;min-height:80px;padding:12px 14px;display:flex}.trow__title{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.trow__seats{align-items:center;gap:8px;margin-top:4px;display:flex}.trow .btn{flex:none;min-width:92px}.code-hint{margin:8px 0 14px}.tables .modal form.stack{gap:12px}.tables .modal .field{margin-top:0}.room{min-height:100dvh;padding:calc(12px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));flex-direction:column;display:flex}.room__head{flex-wrap:wrap;flex:none;justify-content:center;gap:8px;display:flex}.room__tag{background:#00000047;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700}.room__body{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;padding:24px 0;display:flex}.room__title{font-size:26px}.room__sub{font-size:15px}.room__dots{text-align:left;width:1.2em;margin-left:4px;display:inline-block}.room__dots i{font-style:normal;animation:1.2s ease-in-out infinite room-blink}.room__dots i:nth-child(2){animation-delay:.2s}.room__dots i:nth-child(3){animation-delay:.4s}.room__seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:380px;display:grid}.room__seats--3{grid-template-columns:repeat(3,minmax(0,1fr))}.seat{border-radius:var(--radius);background:#00000042;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:116px;padding:12px 8px;display:flex}.seat--me{box-shadow:inset 0 0 0 2px #f6c853b3}.seat--free{background:0 0;border:1.5px dashed #ffffff52}.seat__free{color:#fff9;font-size:14px;font-weight:600}.seat__name{max-width:100%;font-size:14px;font-weight:700}.seat__rating{color:var(--muted);font-size:12px;font-weight:700}.seat__you{color:var(--accent);letter-spacing:.6px;text-transform:uppercase;font-size:11px;font-weight:800}.room__extra{flex-direction:column;align-items:center;gap:10px;width:100%;display:flex}.room__code{letter-spacing:8px;border:1px solid var(--felt-line);background:#00000052;border-radius:14px;padding:10px 12px 10px 20px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:34px;font-weight:800}.room__invite{gap:8px;width:100%;max-width:380px;display:flex}.room__invite .btn{flex:1;min-width:0}.room__timer{font-size:15px;font-weight:600}.room__actions{flex-direction:column;flex:none;gap:8px;width:100%;max-width:380px;margin:0 auto;display:flex}@keyframes room-blink{0%,60%,to{opacity:.25}30%{opacity:1}}.game{--tcw:62px;--tch:88px;--hand-w:76px;--hand-h:108px;--pair-overlap:24px;--pair-rise:14px;-webkit-user-select:none;user-select:none;touch-action:manipulation;flex-direction:column;height:100dvh;display:flex;position:relative;overflow:hidden}@media (max-height:720px){.game{--tcw:52px;--tch:74px;--hand-w:62px;--hand-h:88px;--pair-overlap:20px;--pair-rise:12px}.tv-deck{transform-origin:0;transform:scale(.86)}.tv-opp--compact{gap:2px}}.game--finished .tv__opps,.game--finished .tv__table,.game--finished .tv__me,.game--finished .tv__hand{pointer-events:none}.tv__opps{padding:calc(8px + var(--safe-top)) 10px 4px;flex-wrap:wrap;flex:none;justify-content:center;align-items:stretch;gap:6px;display:flex}.tv-opp{background:#00000042;border-radius:16px;min-width:0;transition:background .2s,opacity .2s}.tv-opp--turn{background:#00000070}.tv-opp--out{opacity:.62}.tv-opp--wide{flex:100%;align-items:center;gap:10px;max-width:400px;padding:8px 12px 8px 8px;display:flex}.tv-opp--reveal{flex-direction:column;align-items:stretch;gap:6px}.tv-opp--reveal .tv-opp__cards{justify-content:center}.tv-opp--compact{text-align:center;flex-direction:column;flex:1 1 0;align-items:center;gap:3px;min-width:76px;max-width:112px;padding:6px 4px;display:flex}.tv-opp__top{flex:none;align-items:center;gap:6px;display:flex}.tv-opp__name{font-size:14px;font-weight:700;line-height:1.25}.tv-opp--compact .tv-opp__name{max-width:100%;font-size:12px}.tv-opp__name--row{align-items:center;gap:6px;min-width:0;display:flex}.tv-rating{color:var(--muted);background:#ffffff17;border-radius:999px;flex:none;padding:1px 6px;font-size:11px;font-weight:700;line-height:1.4}.tv-opp__badge{align-items:center;min-height:22px;margin-top:2px;display:flex}.tv-opp--compact .tv-opp__badge{margin-top:0}.tv-opp__badge--empty{display:none}.tv-opp__cards{flex:none;align-items:center;gap:6px;display:flex}.tv-openfan{align-items:center;display:flex}.tv-openfan>*+*{margin-left:var(--tv-step,12px)}.tv-count{color:#fff;background:#00000080;border-radius:9px;padding:4px 6px;font-size:11px;font-weight:800;line-height:1}.tv__table{flex:1;align-items:stretch;gap:8px;min-height:0;padding:4px 8px;display:flex}.tv__pairs{flex-wrap:wrap;flex:1;place-content:center;align-self:center;gap:8px 4px;min-width:0;min-height:180px;max-height:min(100%,340px);display:flex;position:relative}.tv__pairs--empty:before{content:"";pointer-events:none;border:1px solid #ffffff1a;border-radius:50%;position:absolute;inset:6px}.tv-pair{width:calc(var(--tcw,62px) + var(--pair-overlap,24px));height:calc(var(--tch,88px) + var(--pair-rise,14px));flex:none;position:relative}.game .tv-pair .pcard,.replay__table .tv-pair .pcard{--cw:var(--tcw,62px);--ch:var(--tch,88px)}.tv-pair .pcard{position:absolute}.tv-pair .tv-pair__a{bottom:0;left:0}.tv-pair .tv-pair__b{top:0;right:0}.tv-deck{flex:none;align-self:center;width:68px;height:62px;position:relative}.tv-deck__trump{z-index:1;width:62px;height:44px;position:absolute;top:9px;left:4px}.tv-deck .tv-deck__trump-card{position:absolute;top:-9px;left:9px;transform:rotate(90deg)}span.tv-deck__trump-card--back{width:44px;height:62px;display:block}.tv-deck__trump-glyph{color:#fff;text-shadow:0 1px 3px #0009;place-items:center;font-size:18px;display:grid;position:absolute;inset:0}.tv-deck__pile{z-index:3;position:absolute;top:0;left:0}.tv-deck__pile--under{z-index:2;top:-2px;left:2px}.tv-deck__count{z-index:4;color:#fff;border:1px solid var(--felt-line);background:#0009;border-radius:11px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:12px;font-weight:800;display:grid;position:absolute;top:-10px;left:-8px}.tv-deck__discard{text-align:center;color:#ffffff8c;font-size:11px;position:absolute;top:66px;left:-6px;right:-6px}.tv-deck--empty{background:#0000004d;border-radius:15px;align-items:center;gap:5px;width:auto;height:30px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.tv-deck__trump-label{color:#ffffffb3}.tv-deck--empty .suit{font-size:16px}.tv__me{flex:none;align-items:center;gap:10px;min-height:40px;padding:4px 12px 0;display:flex}.tv__me-id{flex:none;align-items:center;gap:6px;display:flex}.tv__me-label{font-size:13px;font-weight:700}.tv__status{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.tv__status-main{font-size:14px;font-weight:700;line-height:1.25}.tv__caption{color:#ffffff9e;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.3;overflow:hidden}.tv__caption--older{display:none}@media (min-height:721px){.tv__caption--older{display:block}}.tv__actions{flex:none;align-items:center;gap:8px;min-height:62px;padding:6px 12px;display:flex}.tv__actions>*{flex:1;min-width:0}.tv__hand{padding:20px 10px calc(8px + var(--safe-bottom));scrollbar-width:none;flex:none;overflow:auto hidden}.tv__hand::-webkit-scrollbar{display:none}.tv__hand-track{align-items:flex-end;gap:6px;width:max-content;margin:0 auto;display:flex}.tv__hand-track .tv__hand-card--fit{margin-left:calc(var(--tv-hand-step,60px) - var(--cw) - 6px)}.tv__hand-empty{color:#fff9;padding:24px 0;font-size:14px}.game .tv__hand .pcard{--cw:var(--hand-w);--ch:var(--hand-h)}.tv__hand .pcard--playable{transform:translateY(-6px)}.tv__hand .pcard--selected{transform:translateY(-18px)}.tv__hand .pcard--playable:active{transform:translateY(-14px)scale(1.03)}.result-scrim{z-index:5;background:#00000080;animation:.2s fade-in;position:absolute;inset:0}.result{z-index:6;-webkit-overflow-scrolling:touch;background:var(--bg);max-height:74%;color:var(--text);padding:8px 16px calc(16px + var(--safe-bottom));border-radius:22px 22px 0 0;animation:.24s cubic-bezier(.2,.8,.2,1) slide-up;position:absolute;bottom:0;left:0;right:0;overflow-y:auto;box-shadow:0 -12px 32px #00000073}.result__title{letter-spacing:-.4px;text-align:center;font-size:26px;font-weight:800;line-height:1.2}.result__title--win{color:color-mix(in srgb, var(--green) 72%, var(--text))}.result__title--lose{color:var(--red)}.result__title--draw{color:var(--accent)}.result__title--void{color:var(--orange)}.result__net{text-align:center;margin-top:2px;font-size:17px;font-weight:800}.result__unit{opacity:.7;font-size:.78em;font-weight:700}.result__rows{flex-direction:column;gap:2px;margin-top:12px;display:flex}.result__row{border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.result__row--me{background:var(--surface)}.result__fair{background:var(--surface);border-radius:12px;flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px;padding:10px 12px;display:flex}.result__commit{gap:8px;max-width:100%;display:flex}.result__verify{font-weight:700}.result__verify--ok{color:var(--green)}.result__verify--fail{color:var(--red)}.result__buttons{flex-direction:column;gap:8px;margin-top:14px;display:flex}.tlist{flex-direction:column;gap:10px;display:flex}.tcard{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:8px;padding:14px;display:flex}.tcard__head{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.tcard__name{font-size:16px;font-weight:800;line-height:1.25}.tcard__meta{color:var(--muted);flex-wrap:wrap;gap:4px 14px;font-size:13px;display:flex}.tcard__pool{font-size:18px;font-weight:800}.tcard__actions{gap:8px;display:flex}.tcard__actions>*{flex:1;min-width:0}.tprogress{background:var(--line);border-radius:3px;height:6px;overflow:hidden}.tprogress i{background:var(--accent);border-radius:3px;height:100%;transition:width .2s;display:block}.mymatch{border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:8px;padding:14px;display:flex}.mymatch--ready{box-shadow:inset 0 0 0 2px var(--accent)}.round__title{color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:6px;font-size:13px;font-weight:700}.round__matches{flex-direction:column;gap:6px;display:flex}.bmatch{background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.bmatch--mine{box-shadow:inset 0 0 0 1.5px var(--accent)}.bmatch__p{align-items:center;gap:8px;min-height:30px;font-size:14px;display:flex}.bmatch__p--win{color:var(--green);font-weight:800}.bmatch__p--lose{opacity:.55}.bmatch__slot{border:1.5px dashed var(--line);border-radius:50%;flex:none;width:24px;height:24px}.bmatch__status{justify-content:space-between;align-items:center;min-height:18px;margin-top:4px;display:flex}.podium{flex-direction:column;gap:6px;display:flex}.podium__row{border-radius:var(--radius-sm);background:var(--surface);align-items:center;gap:10px;padding:10px 12px;display:flex}.podium__row--me{box-shadow:inset 0 0 0 2px var(--accent)}.podium__place{background:var(--bg);border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-size:14px;font-weight:800;display:grid}.podium__row--1 .podium__place{background:var(--accent);color:var(--accent-ink)}.wallet__actions{margin-bottom:4px}.wallet__actions .btn{flex:1;min-width:0}.wallet__balances{flex-direction:column;gap:8px;display:flex}.wbalance{background:var(--surface);border-radius:var(--radius);align-items:center;gap:12px;padding:14px;display:flex}.wbalance__amount{letter-spacing:-.3px;font-size:24px;font-weight:800;line-height:1.15}.wallet__list{flex-direction:column;gap:6px;display:flex}.wrow{background:var(--surface);border-radius:var(--radius-sm);align-items:center;gap:12px;padding:10px 14px;display:flex}.wrow--col{flex-direction:column;align-items:stretch;gap:4px}.wrow--col .row{align-items:center}.wallet__ledger-right{flex:none;align-items:center;gap:8px;display:flex}.wallet__empty{padding:6px 2px}.wallet__ledger{border-top:1px solid var(--line);margin-top:18px}.wallet__ledger-toggle{width:100%;min-height:52px;color:var(--text);font:700 13px var(--font);letter-spacing:.4px;text-transform:uppercase;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0 2px;display:flex}.wallet__chevron{color:var(--muted);place-items:center;transition:transform .2s;display:grid}.wallet__chevron--open{transform:rotate(180deg)}.wallet__ledger .btn{margin-top:8px}.profile__head{text-align:center;flex-direction:column;align-items:center;gap:4px;padding:8px 0 14px;display:flex}.profile__head .h1{margin-top:6px}.profile__skill{color:var(--accent);background:#f6c85324;border-radius:999px;align-items:center;gap:6px;margin-top:4px;padding:4px 12px;font-size:14px;font-weight:800;display:inline-flex}.profile>.seg{margin-bottom:12px}.break-all{word-break:break-all}.pstats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.pstat{background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;gap:2px;min-width:0;padding:12px 10px;display:flex}.pstat__value{overflow-wrap:anywhere;font-size:20px;font-weight:800;line-height:1.15}.pstat__label{color:var(--muted);font-size:12px;font-weight:600}.pblock{background:var(--surface);border-radius:var(--radius);align-items:center;gap:12px;padding:12px 14px;display:flex}.pblock--col{flex-direction:column;align-items:stretch;gap:6px}.pblock__url{color:var(--link);max-width:100%;font-size:12px}.pblock .row .btn{flex:1;min-width:0}.plist{flex-direction:column;gap:6px;display:flex}.prow{text-align:left;width:100%;color:var(--text);font:inherit;appearance:none;cursor:pointer;border:0}.prow>.grow{flex-direction:column;gap:2px;display:flex}.prow .mono.bold{flex:none}.lrow__rank{text-align:center;width:24px;color:var(--muted);flex:none;font-weight:800}.lrow--me{box-shadow:inset 0 0 0 1.5px var(--accent)}.pverify__deck{resize:vertical;min-height:76px;padding:10px 14px;font-size:13px;line-height:1.4}.replay{flex-direction:column;gap:10px;display:flex}.replay__head{justify-content:space-between;gap:10px;display:flex}.replay__table{--tcw:50px;--tch:72px;--hand-w:58px;--hand-h:84px;--pair-overlap:20px;--pair-rise:12px;border-radius:var(--radius);flex-direction:column;height:min(54dvh,520px);min-height:340px;display:flex;overflow:hidden}.replay__table .tv__opps{padding-top:8px}.replay__table .tv__hand{padding-top:18px;padding-bottom:8px}.replay__table .tv__hand .pcard{--cw:var(--hand-w);--ch:var(--hand-h)}.replay__table .tv-deck{transform-origin:0;transform:scale(.82)}.replay__caption{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;min-height:38px;font-size:14px;line-height:1.35;display:flex}.replay__controls{align-items:center;gap:10px;display:flex}.replay__controls .icon-btn{width:44px;height:44px}.replay__range{min-width:0;accent-color:var(--accent);cursor:pointer;flex:1;height:44px;margin:0}.admin__tabs{margin-bottom:12px}.admin__body{flex-direction:column;gap:12px;display:flex}.arow-actions{gap:8px;display:flex}.arow-actions .btn{flex:1}.agrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.astat{background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;gap:2px;min-width:0;padding:12px;display:flex}.astat__value{font-size:24px;font-weight:800;line-height:1.1}.astat__label{font-size:13px;font-weight:600}.atable{background:var(--surface);border-radius:var(--radius-sm);padding:6px 14px}.atable__head,.atable__row{text-align:right;grid-template-columns:52px 1fr 1fr 1fr;align-items:center;gap:6px;padding:6px 0;display:grid}.atable__head span:first-child,.atable__row span:first-child{text-align:left}.atable__row+.atable__row{border-top:1px solid var(--line)}.asurplus{color:var(--orange)}.alist{flex-direction:column;gap:8px;display:flex}.aitem{background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.aitem--tight{gap:4px}.aitem__facts{flex-wrap:wrap;gap:4px 14px;display:flex}.aitem__actions{flex-wrap:wrap;margin-top:0}.aitem .form-actions>.btn{flex:auto}.aitem__form{border-top:1px solid var(--line);padding-top:10px}.asearch{gap:8px;display:flex}.asearch .input{min-width:0}.apayouts{scrollbar-width:none;gap:6px;display:flex;overflow-x:auto}.apayouts .input{text-align:center;flex:none;width:76px}.aasset{align-items:center;gap:10px;margin-bottom:8px;display:flex}.aasset__code{width:48px;color:var(--muted);flex:none;font-size:13px;font-weight:700}.aasset .input{flex:1;min-width:0}.agate-backdrop{z-index:70;background:#00000094;justify-content:center;align-items:flex-end;animation:.18s fade-in;display:flex;position:fixed;inset:0}.agate{background:var(--bg);width:100%;max-width:520px;color:var(--text);padding:18px 16px calc(18px + var(--safe-bottom));border-radius:22px 22px 0 0;max-height:88dvh;animation:.24s cubic-bezier(.2,.8,.2,1) slide-up;overflow:auto}.agate__secret{background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;align-items:flex-start;gap:6px;padding:12px;display:flex}.agate__code{font-size:15px;font-weight:700}.agate__url{color:var(--muted)}:root{--bg:var(--tg-bg,#0f1419);--text:var(--tg-text,#f2f5f8);--muted:var(--tg-hint,#8b98a5);--link:var(--tg-link,#6ab3f3);--tg-button:var(--tg-button,#3390ec);--surface:var(--tg-secondary-bg,#1d252d);--line:color-mix(in srgb, var(--text) 13%, transparent);--accent:#f6c853;--accent-press:#e2b23c;--accent-ink:#2b1f04;--green:#3dd27a;--red:#ff6262;--orange:#ffa63d;--felt:#0e5a38;--felt-deep:#0a462b;--felt-line:#ffffff29;--radius:16px;--radius-sm:12px;--radius-xs:9px;--nav-h:62px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--shadow:0 8px 24px #0000004d;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", sans-serif}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font:400 15px/1.42 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;min-height:100%;margin:0;padding:0}#root{min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}input,textarea{-webkit-user-select:text;user-select:text}h1,h2,h3,p{margin:0}a{color:var(--link)}.app{max-width:520px;min-height:100dvh;margin:0 auto;position:relative}.screen{padding:12px 14px calc(var(--nav-h) + 22px + var(--safe-bottom));animation:.18s fade-in}.screen--flush{padding:0}.h1{letter-spacing:-.3px;font-size:24px;font-weight:800;line-height:1.2}.h2{font-size:18px;font-weight:700;line-height:1.25}.h3{font-size:16px;font-weight:700}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}.bold{font-weight:700}.mono{font-variant-numeric:tabular-nums}.pos{color:var(--green)}.neg{color:var(--red)}.center{text-align:center}.ellipsis{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.row{justify-content:space-between;align-items:center;gap:10px;display:flex}.row--start{justify-content:flex-start}.stack{flex-direction:column;gap:10px;display:flex}.stack--tight{gap:6px}.stack--loose{gap:16px}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.grow{flex:1;min-width:0}.section-title{letter-spacing:.4px;text-transform:uppercase;color:var(--muted);margin:18px 2px 8px;font-size:13px;font-weight:700}.panel{background:var(--surface);border-radius:var(--radius);padding:14px}.panel+.panel{margin-top:12px}.panel--flat{background:0 0;padding:0}.divider{background:var(--line);height:1px;margin:12px 0}.btn{appearance:none;min-height:46px;font:600 15px var(--font);color:var(--accent-ink);background:var(--accent);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border:0;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 18px;transition:transform 80ms,filter .15s,opacity .15s;display:inline-flex}.btn:active{filter:brightness(.92);transform:scale(.97)}.btn:disabled{opacity:.45;pointer-events:none}.btn--secondary{background:var(--surface);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}.btn--ghost{color:var(--link);background:0 0}.btn--danger{background:var(--red);color:#fff}.btn--success{background:var(--green);color:#04240f}.btn--block{width:100%}.btn--sm{border-radius:11px;min-height:36px;padding:0 14px;font-size:14px}.btn--lg{border-radius:16px;min-height:54px;font-size:17px}.icon-btn{background:var(--surface);width:40px;height:40px;color:var(--text);cursor:pointer;border:0;border-radius:12px;flex:none;place-items:center;display:grid}.icon-btn:active{transform:scale(.94)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chips--scroll{scrollbar-width:none;flex-wrap:nowrap;padding-bottom:4px;overflow-x:auto}.chips--scroll::-webkit-scrollbar{display:none}.chip{background:var(--surface);min-height:38px;color:var(--text);font:600 14px var(--font);cursor:pointer;box-shadow:inset 0 0 0 1px var(--line);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 14px;display:inline-flex}.chip:disabled{opacity:.4;pointer-events:none}.chip--on{background:var(--accent);color:var(--accent-ink);box-shadow:none}.seg{background:var(--surface);border-radius:12px;padding:3px;display:flex}.seg__item{min-height:36px;color:var(--muted);font:600 14px var(--font);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:9px;flex:1}.seg__item--on{background:var(--bg);color:var(--text)}.list{flex-direction:column;gap:8px;display:flex}.list-item{background:var(--surface);border-radius:var(--radius-sm);align-items:center;gap:12px;min-height:56px;padding:12px 14px;display:flex}.list-item--clickable{cursor:pointer}.list-item--clickable:active{filter:brightness(.9)}.label{color:var(--muted);margin-bottom:6px;font-size:13px;font-weight:600;display:block}.input{border:1px solid var(--line);background:var(--bg);width:100%;min-height:46px;color:var(--text);font:500 15px var(--font);border-radius:12px;outline:none;padding:0 14px}.input:focus{border-color:var(--accent)}.input::placeholder{color:var(--muted)}.input--code{letter-spacing:4px;text-align:center;text-transform:uppercase;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:18px}.field-error{color:var(--red);margin-top:6px;font-size:13px}.badge{font:700 12px var(--font);background:var(--surface);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:3px 9px;line-height:1.5;display:inline-flex}.badge--green{color:var(--green);background:#3dd27a29}.badge--red{color:var(--red);background:#ff626229}.badge--gold{color:var(--accent);background:#f6c8532e}.badge--blue{color:var(--link);background:#6ab3f329}.badge--orange{color:var(--orange);background:#ffa63d2e}.avatar{color:#fff;background:linear-gradient(135deg,#2f6d8f,#5b3f8f);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid;position:relative;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%;display:block}.avatar--live{box-shadow:0 0 0 2px var(--green)}.avatar--turn{box-shadow:0 0 0 3px var(--accent)}.balance{color:#fff;box-shadow:var(--shadow);background:linear-gradient(135deg,#124a30,#0b2a1d);border-radius:20px;padding:18px}.balance__amount{letter-spacing:-.5px;font-variant-numeric:tabular-nums;font-size:34px;font-weight:800;line-height:1.1}.topbar{z-index:30;min-height:calc(52px + var(--safe-top));padding:var(--safe-top) 10px 0 10px;background:var(--tg-header);border-bottom:1px solid var(--line);align-items:center;gap:10px;display:flex;position:sticky;top:0}.topbar__title{flex:1;min-width:0;font-size:17px;font-weight:700}.topbar__right{align-items:center;gap:8px;margin-left:auto;display:flex}.nav{height:calc(var(--nav-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:var(--tg-header);border-top:1px solid var(--line);z-index:40;position:fixed;bottom:0;left:0;right:0}.nav__inner{width:100%;max-width:520px;height:100%;margin:0 auto;display:flex}.nav__item{color:var(--muted);font:600 11px var(--font);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;display:flex;position:relative}.nav__item--on{color:var(--tg-button)}.nav__dot{background:var(--red);border-radius:50%;width:8px;height:8px;position:absolute;top:8px;right:calc(50% - 16px)}.backdrop{z-index:60;background:#00000094;justify-content:center;align-items:flex-end;animation:.18s fade-in;display:flex;position:fixed;inset:0}.backdrop--center{align-items:center;padding:20px}.modal{background:var(--bg);width:100%;max-width:520px;padding:18px 16px calc(18px + var(--safe-bottom));border-radius:22px 22px 0 0;max-height:88dvh;animation:.24s cubic-bezier(.2,.8,.2,1) slide-up;overflow:auto}.backdrop--center .modal{border-radius:20px;padding-bottom:18px;animation:.2s cubic-bezier(.2,.8,.2,1) pop-in}.modal__handle{background:var(--line);border-radius:2px;width:40px;height:4px;margin:0 auto 14px}.backdrop--center .modal__handle{display:none}.modal__title{margin-bottom:12px;font-size:19px;font-weight:800}.toasts{left:0;right:0;top:calc(10px + var(--safe-top));z-index:80;pointer-events:none;flex-direction:column;align-items:center;gap:8px;padding:0 12px;display:flex;position:fixed}.toast{background:var(--surface);max-width:100%;color:var(--text);font:600 14px var(--font);box-shadow:var(--shadow);border:1px solid var(--line);pointer-events:auto;cursor:pointer;border-radius:12px;padding:10px 16px;animation:.22s cubic-bezier(.2,.8,.2,1) drop-in}.toast--error{border-color:var(--red)}.toast--success{border-color:var(--green)}.spinner{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}.spinner--sm{border-width:2px;width:18px;height:18px}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:36px 16px;display:flex}.offline{z-index:70;background:var(--orange);color:#2b1500;text-align:center;font:700 13px var(--font);padding:calc(6px + var(--safe-top)) 6px 6px;position:fixed;top:0;left:0;right:0}.boot{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-height:100dvh;padding:24px;display:flex}.boot__logo{letter-spacing:-1px;background:linear-gradient(135deg, var(--accent), #ff9d3d);color:#0000;-webkit-background-clip:text;background-clip:text;font-size:44px;font-weight:900}.felt{background:radial-gradient(120% 90% at 50% 0%, #ffffff17, transparent 60%), linear-gradient(180deg, var(--felt), var(--felt-deep));color:#fff}.on-felt{color:#fff;background:#00000042}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}@keyframes pop-in{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes drop-in{0%{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,to{box-shadow:0 0 0 3px var(--accent)}50%{box-shadow:0 0 0 7px #f6c85359}}@keyframes land{0%{opacity:.4;transform:scale(1.18)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.pcard{--cw:62px;--ch:88px;width:var(--cw);height:var(--ch);color:#1c1c22;-webkit-user-select:none;user-select:none;background:#fdfdf7;border-radius:9px;flex:none;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s,filter .16s;position:relative;box-shadow:0 1px #00000040,0 5px 12px #00000047}.pcard--red{color:#d7263d}.pcard__corner{font-weight:800;line-height:1;font-size:calc(var(--cw) * .27);letter-spacing:-.5px;flex-direction:column;align-items:center;display:flex;position:absolute;top:4px;left:6px}.pcard__corner--br{inset:auto 6px 4px auto;transform:rotate(180deg)}.pcard__corner-suit{font-size:calc(var(--cw) * .21);margin-top:1px}.pcard__pip{font-size:calc(var(--cw) * .56);pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.pcard--sm{--cw:44px;--ch:62px;border-radius:6px}.pcard--sm .pcard__corner{top:3px;left:4px}.pcard--sm .pcard__corner--br{inset:auto 4px 3px auto}.pcard--xs{--cw:34px;--ch:48px;border-radius:5px}.pcard--xs .pcard__pip{display:none}.pcard--xs .pcard__corner{top:2px;left:3px}.pcard--xs .pcard__corner--br{display:none}.pcard--lg{--cw:76px;--ch:108px}.pcard--playable{cursor:pointer}.pcard--playable:active{transform:translateY(-10px)scale(1.03)}.pcard--disabled{filter:grayscale(.65)brightness(.62)}.pcard--selected{box-shadow:0 0 0 3px var(--accent), 0 14px 22px #0000006b;transform:translateY(-16px)}.pcard--target{cursor:pointer;animation:1s ease-in-out infinite pulse}.pcard--land{animation:.2s cubic-bezier(.2,.8,.2,1) land}.pcard-back{--cw:62px;--ch:88px;width:var(--cw);height:var(--ch);background:#fdfdf7;border-radius:9px;flex:none;padding:3px;box-shadow:0 1px #00000040,0 4px 10px #00000047}.pcard-back:before{content:"";background:radial-gradient(circle,#ffffff38 0 18%,#0000 19%),repeating-linear-gradient(45deg,#b8323f 0 5px,#a42633 5px 10px);border-radius:6px;width:100%;height:100%;display:block}.pcard-back--sm{--cw:44px;--ch:62px}.pcard-back--xs{--cw:34px;--ch:48px;padding:2px}.pcard-back--lg{--cw:76px;--ch:108px}.fan{align-items:center;display:flex}.fan>*+*{margin-left:calc(var(--cw) * -.62)}.fan--left>*+*{margin-left:0;margin-right:calc(var(--cw) * -.62)}.fan>:nth-child(odd){transform:translateY(-2px)}
