/* Snowy glass. The same ice, muted cyan and mint as cneqq.com / SnowyShop. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.admin-page h1 { font-size:28px; }.admin-page #adm-status { color:var(--mint); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.admin-metrics { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:7px; margin:10px 0 15px; }.admin-metrics>div { padding:11px; border:1px solid var(--line); border-radius:11px; background:rgba(12,36,51,.85); min-width:0; }.admin-metrics span { display:block; color:var(--muted); font-size:9px; }.admin-metrics strong { display:block; margin-top:7px; font-size:17px; color:var(--cyan); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.admin-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; padding:4px; border:1px solid var(--line); border-radius:11px; margin-bottom:14px; background:#092031; }.admin-tabs button { padding:7px 3px; min-height:44px; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:7px; font-size:10px; cursor:pointer; }.admin-tabs button[aria-pressed="true"] { background:#213e43; color:#c3e9da; border-color:#7db49e44; }
.admin-page :is(input,select,textarea) { display:block; width:100%; min-width:0; min-height:44px; padding:10px; margin-top:6px; border:1px solid var(--line-bright); border-radius:8px; background:#081c2b; color:var(--text); font:inherit; font-size:12px; }.admin-page textarea { resize:vertical; line-height:1.6; }.admin-page label { display:block; color:var(--muted); font-size:10px; margin:11px 0; }.admin-page .action-button { min-height:44px; font-size:12px; padding:10px; }.admin-page .text-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; text-decoration:none; }.admin-inline { display:flex; gap:8px; margin-bottom:12px; }.admin-inline input { flex:1; width:0; margin:0; }.admin-inline .action-button { width:auto; min-width:70px; }
.admin-field-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.admin-field-row>* { min-width:0; }.admin-field-row label { margin:5px 0; }.admin-card { border:1px solid var(--line); background:rgba(9,30,45,.9); border-radius:13px; padding:14px; margin:10px 0; min-width:0; }.admin-card h2,.admin-list-heading { margin:0 0 10px; font-size:16px; letter-spacing:-.3px; font-weight:550; }.admin-card h3 { margin-top:18px; font-size:13px; font-weight:550; }.admin-card .section-caption { margin:7px 0; overflow-wrap:anywhere; line-height:1.6; }.admin-code { font:13px ui-monospace,Consolas,monospace; color:var(--mint); user-select:all; }
.admin-player-row { display:flex; justify-content:space-between; align-items:center; width:100%; gap:12px; min-height:58px; padding:11px; border:1px solid var(--line); border-radius:10px; margin:6px 0; background:rgba(12,36,51,.85); color:var(--text); text-align:left; cursor:pointer; }.admin-player-row>span { min-width:0; }.admin-player-row strong { font-size:12px; overflow-wrap:anywhere; }.admin-player-row>strong { color:var(--cyan); font-variant-numeric:tabular-nums; }.admin-player-row small { display:block; margin-top:5px; color:var(--muted); font-size:9px; overflow-wrap:anywhere; }
.admin-player-balances { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }.admin-player-balances>div { min-width:0; padding:9px; border:1px solid var(--line); border-radius:8px; }.admin-player-balances span { display:block; color:var(--muted); font-size:10px; }.admin-player-balances strong { display:block; margin-top:5px; font-size:16px; color:var(--cyan); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.admin-preview { white-space:pre-wrap; overflow-wrap:anywhere; max-height:220px; overflow:auto; border:1px solid var(--line); border-radius:9px; padding:12px; font-size:12px; line-height:1.65; background:#061a29; color:#c7dde5; }.admin-preview:empty::before { content:'Здесь появится текст сообщения'; color:#6f92a4; }.admin-dialog { width:calc(100% - 32px); max-width:440px; max-height:80dvh; overflow:auto; border:1px solid var(--line-bright); border-radius:16px; padding:20px; background:#0a2537; color:var(--text); box-shadow:0 18px 80px #000a; }.admin-dialog::backdrop { background:#020b13cc; backdrop-filter:blur(6px); }.admin-dialog h2 { margin:0; font-size:19px; }.admin-dialog p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.7; }.admin-page #admin-root.is-busy .admin-tabs { opacity:.5; }.admin-page :is(button,input,select,textarea,a):focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
.halloween-cta { border-color:rgba(238,155,83,.35)!important; background:linear-gradient(110deg,rgba(117,55,30,.38),rgba(43,28,57,.55))!important; }
.halloween-cta .cta-symbol,.halloween-cta>.ui-icon { color:#ffb571; }
.halloween-balances { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; }
.halloween-balances>:is(div,button) { position:relative; min-width:0; padding:12px 10px; border:1px solid var(--event-line); border-radius:14px; background:linear-gradient(130deg,rgba(79,47,41,.46),rgba(32,22,37,.85)); }
.halloween-balances>button { font:inherit; text-align:left; color:inherit; cursor:pointer; background:linear-gradient(130deg,rgba(69,51,89,.6),rgba(32,22,37,.85)); }.halloween-balances>button:disabled { cursor:default; }.halloween-balances>button:not(:disabled) { border-color:#c6a4f266; }.halloween-balances strong { font-size:clamp(20px,6vw,28px)!important; }.halloween-balances .ui-icon { float:none!important; margin-bottom:9px; }.halloween-balances small { font-size:9px!important; }
.halloween-cases-menu { margin:12px 0; padding:15px; border:1px solid var(--event-line); border-radius:14px; background:#241a30; }.halloween-cases-menu p { color:#c6accc; font-size:12px; line-height:1.7; }.halloween-cases-menu .text-button { color:#d8b8ed; }
.halloween-page .podium-card { background:linear-gradient(150deg,#3b2840,#201726); border-color:#74526e66; }.halloween-page .podium-1 { background:linear-gradient(150deg,#63412f,#281b2a); border-color:#eab17388; }.halloween-page .podium-avatar { outline-color:#211728; }.halloween-page .podium-medal { outline-color:#211728; }.halloween-page .podium-score strong { color:#ffd0a3; }
.candy-top .page-intro { padding:17px 14px; border:1px solid #f3a05c44; border-radius:16px; background:radial-gradient(ellipse at 100% 0%,#c36b342b,transparent 65%),linear-gradient(120deg,#30202b,#1d1629); }.candy-top .page-intro h1 { color:#fff0df; font-size:clamp(25px,7vw,34px); }.candy-top .eyebrow { color:#d4a78d; font-size:8px; }.candy-top #tops-icon { background:transparent; border:0; }.candy-top #tops-icon .ui-icon { width:46px; height:46px; }
.candy-top .board-picker { background:#241b2e; border-color:#c6a4f233; }.candy-top .board-picker button[aria-pressed="true"] { background:linear-gradient(135deg,#89553155,#62406b33); color:#ffd0a3; border-color:#efaf7655; }.candy-top .own-place { background:linear-gradient(120deg,#77472b33,#271b30); border-color:#f5a96944; }.candy-top .own-place-icon { color:#ffbc83; background:#ef9b5319; }.candy-top .own-place #own-rank { color:#ffd0a3; }.candy-top .own-place #own-value { color:#baa2bf; }.candy-top .ranking-list { background:#22182acc; border-color:#d6a6cf33; }.candy-top .rank-row+.rank-row { border-color:#d6a6cf19; }.candy-top .rank-row.is-self { background:#b686d214; }.candy-top .rank-value { color:#ffd0a3; }.candy-top .rank-name { color:#efdaeb; }.candy-top .rank-position,.candy-top .rank-title,.candy-top .section-caption,.candy-top .updated-note { color:#b99dbe; }
body.is-halloween::before { background:radial-gradient(ellipse at 90% 10%,rgba(122,52,20,.22),transparent 55%),radial-gradient(ellipse at 0 65%,rgba(87,49,132,.2),transparent 60%),#120f19; }
.is-halloween .app-header,.is-halloween .tabs { background:rgba(23,17,31,.97); border-color:rgba(193,145,198,.18); }
.halloween-page { --event-orange:#ffb373; --event-purple:#c6a4f2; --event-line:rgba(214,166,207,.2); }
.halloween-page .back-link { color:#bcaabf; margin-bottom:14px; }
.halloween-cover { position:relative; overflow:hidden; padding:20px 20px 17px; border:1px solid rgba(243,156,92,.28); border-radius:19px; background:radial-gradient(ellipse at 100% 45%,rgba(239,122,40,.19),transparent 65%),linear-gradient(120deg,#30202b,#1d1629); box-shadow:0 14px 45px rgba(0,0,0,.16); }
.halloween-cover::after { content:''; position:absolute; right:-44px; top:-78px; width:190px; height:190px; border:1px solid rgba(251,181,113,.09); border-radius:50%; box-shadow:0 0 0 20px rgba(251,181,113,.025),0 0 0 44px rgba(251,181,113,.02); pointer-events:none; }
.halloween-kicker { display:flex; align-items:center; gap:7px; color:#d8ac94; font:9px/1.4 ui-monospace,Consolas,monospace; letter-spacing:1.1px; }
.halloween-dot { width:5px; height:5px; background:#ffb373; border-radius:50%; box-shadow:0 0 12px #ffb37388; }
.halloween-cover-copy { position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:20px 0 16px; z-index:1; }
.halloween-cover h1 { margin:0; color:#fff0df; font-size:clamp(29px,8.2vw,43px); font-weight:650; letter-spacing:-1.3px; line-height:1.08; }
.halloween-cover p { color:#bda7b3; font-size:11px; margin:11px 0 0; line-height:1.55; max-width:160px; }
.halloween-pumpkin { flex-shrink:0; color:#ffae63; transform:rotate(-8deg); filter:drop-shadow(0 4px 22px #e57a2c44); }
.halloween-pumpkin .ui-icon { width:92px; height:92px; }
.halloween-deadline { display:inline-flex; padding:5px 9px; border:1px solid rgba(238,156,92,.2); border-radius:6px; color:#e2bfa4; font-size:10px; background:rgba(255,169,96,.04); }
.halloween-balances { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.halloween-balances>div { position:relative; min-width:0; padding:12px 10px; border:1px solid var(--event-line); border-radius:14px; background:linear-gradient(130deg,rgba(79,47,41,.46),rgba(32,22,37,.85)); }
.halloween-balances>div:nth-child(2) { background:linear-gradient(130deg,rgba(67,44,87,.5),rgba(32,22,37,.85)); }
.halloween-balances .ui-icon { float:right; width:22px; height:22px; color:var(--event-orange); }.halloween-balances>div:nth-child(2) .ui-icon { color:var(--event-purple); }
.halloween-balances span { display:block; color:#cdb6bd; font-size:11px; }.halloween-balances strong { display:block; font-size:30px; font-weight:580; margin:8px 0 4px; line-height:1.1; color:#ffe1c4; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.halloween-balances>div:nth-child(2) strong { color:#dec9fa; }.halloween-balances small { color:#967f93; font-size:10px; }
.halloween-rules { color:#ba9eaf; font-size:11px; line-height:1.8; margin:12px 2px; }.halloween-status { min-height:18px; color:#edc39e; font-size:11px; margin:10px 2px; }
.halloween-swap { border:1px solid var(--event-line); border-radius:15px; padding:16px; background:rgba(37,26,44,.85); margin:14px 0 23px; }
.halloween-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }.halloween-section-heading h2 { margin:0; color:#f4dfeb; font-size:15px; font-weight:560; letter-spacing:-.2px; }.halloween-section-heading>span { color:#b99dbe; font-size:9px; letter-spacing:.8px; }
.halloween-exchange-art { display:flex; justify-content:center; align-items:center; gap:23px; padding:10px 0 19px; color:#86708f; }.halloween-exchange-art>span { display:flex; align-items:center; gap:10px; font-size:21px; color:var(--event-orange); }.halloween-exchange-art>span:first-child { color:var(--event-purple); }.halloween-exchange-art>span .ui-icon { width:32px; height:32px; stroke-width:1.2; }.halloween-exchange-art>.ui-icon { width:18px; }
.halloween-swap label { display:block; color:#bba1b6; font-size:10px; margin-bottom:7px; }.halloween-amount-row { display:flex; gap:8px; margin-bottom:10px; }.halloween-amount-row input { flex:1; min-width:0; width:100%; padding:11px 12px; border:1px solid var(--event-line); border-radius:9px; background:#1c1525; color:#f6e5ed; font:inherit; font-variant-numeric:tabular-nums; }.halloween-amount-row button { padding:0 12px; min-height:44px; border:1px solid var(--event-line); border-radius:9px; background:#34233d; color:#d5b6e6; font-size:11px; cursor:pointer; }
.halloween-page .action-button { min-height:44px; background:linear-gradient(100deg,#f6b171,#eaa477); color:#2d1925; border:1px solid #ffbc8877; font-weight:650; }.halloween-page .action-button:disabled { opacity:.42; cursor:not-allowed; }.halloween-swap-note,.halloween-top-note { font-size:10px; color:#927c94; line-height:1.7; margin:10px 0 0; }.halloween-swap-note { text-align:center; }
.halloween-own { padding:12px; border:1px solid rgba(245,169,105,.28); background:rgba(119,71,43,.16); border-radius:10px; color:#ecc6a6; font-size:11px; margin-bottom:10px; }
.halloween-top { border:1px solid var(--event-line); border-radius:12px; overflow:hidden; background:rgba(34,24,42,.8); }.halloween-top:empty { display:none; }.halloween-rank { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:48px; padding:10px 12px; border-top:1px solid rgba(214,166,207,.1); font-size:12px; }.halloween-rank:first-child { border-top:0; }.halloween-rank-number { color:#8b728e; font-size:11px; }.halloween-rank-name { color:#dfc9db; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.halloween-rank strong { color:#ffd0a3; font-size:12px; font-variant-numeric:tabular-nums; }.halloween-rank.is-leader .halloween-rank-number { display:grid; place-items:center; width:23px; height:23px; color:#f8bd84; background:rgba(243,158,83,.1); border:1px solid rgba(243,158,83,.2); border-radius:7px; }.halloween-rank.is-self { background:rgba(182,134,210,.08); }
.halloween-page :is(button,input,a):focus-visible { outline:2px solid var(--event-orange); outline-offset:3px; }
@media(max-width:350px) { .halloween-cover { padding:17px 14px; }.halloween-pumpkin .ui-icon { width:68px; height:68px; }.halloween-kicker { font-size:8px; }.halloween-section-heading h2 { font-size:14px; } }
:root { --navy:#061521; --text:#edf7fb; --muted:#91adbd; --cyan:#b3dfef; --mint:#abe0cc; --line:rgba(164,212,232,.17); --line-bright:rgba(177,222,240,.3); }
body { background:#061521; font-size:14px; }
body::before { z-index:0; background:linear-gradient(180deg,rgba(3,17,29,.7),rgba(3,18,30,.8) 44%,rgba(3,16,28,.92)),url('/assets/ice.webp') center/cover no-repeat; }
#app { position:relative; z-index:1; max-width:600px; margin:auto; }
.ui-icon { display:block; flex-shrink:0; width:22px; height:22px; }
.app-header { min-height:56px; padding:calc(10px + var(--tg-content-safe-area-inset-top,0px)) 18px 10px; border-bottom:1px solid var(--line); background:rgba(8,28,43,.55); backdrop-filter:blur(16px); }
.wordmark { gap:9px; padding:0; border:0; background:none; border-radius:0; text-decoration:none; }
.wordmark>.ui-icon { width:25px; height:25px; color:#c7eaf5; }
.wordmark>span { color:var(--text); font-size:14px; letter-spacing:-.4px; font-weight:600; }
.wordmark b { font-weight:350; color:#a2c5d5; }
.header-wallet { display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:rgba(174,219,236,.06); min-width:0; max-width:45%; }
.header-wallet .ui-icon { width:14px; height:14px; color:var(--cyan); }
.header-wallet strong { font-size:12px; font-weight:550; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.app-header { gap:8px; }
.header-wallet { margin-left:auto; max-width:38%; }
.header-news { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background:rgba(174,219,236,.045); color:#b7d7e5; text-decoration:none; }
.header-news .ui-icon { width:20px; height:20px; }
.header-news:hover,.header-news[aria-current="page"] { color:var(--mint); border-color:rgba(159,219,194,.4); background:rgba(101,163,139,.12); }
.header-news:focus-visible,.news-contents a:focus-visible,.news-inline-link:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
.news-page { font-size:13px; line-height:1.75; }
.news-page .page-intro { line-height:1.3; }
.news-article { min-width:0; }
.news-period-picker { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px; border:1px solid var(--line); border-radius:12px; background:rgba(6,25,40,.85); }
.news-period-picker button { min-height:44px; padding:8px 6px; border:1px solid transparent; border-radius:8px; background:transparent; color:#90adbc; font-size:11px; line-height:1.4; cursor:pointer; }
.news-period-picker button[aria-selected="true"] { border-color:rgba(159,219,194,.3); color:#c3e5d7; background:rgba(101,163,139,.13); }
.news-period-note { margin:9px 0 13px; color:#789caa; font-size:10px; }
.news-cover { padding:19px 17px 17px; border:1px solid var(--line-bright); border-radius:17px; background:radial-gradient(ellipse at 100% 0%,rgba(133,204,213,.19),transparent 68%),linear-gradient(135deg,#173b4c,#0b2335); }
.news-meta { display:flex; flex-wrap:wrap; gap:5px 12px; color:#93b7c5; font:9px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; }
.news-cover h2 { margin:13px 0 10px; font-size:clamp(25px,6.8vw,34px); font-weight:580; line-height:1.15; letter-spacing:-.9px; text-wrap:balance; }
.news-cover p { margin:0; color:#acc4d0; font-size:12px; line-height:1.75; }
.news-cover-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.news-cover-tags span { border:1px solid rgba(159,219,194,.19); border-radius:6px; padding:3px 7px; font-size:9px; line-height:1.6; color:#b2d5cb; background:rgba(125,184,164,.06); }
.news-release-note { display:flex; gap:10px; margin:12px 0; padding:12px; border:1px solid rgba(214,187,125,.23); border-radius:11px; background:rgba(101,82,39,.13); color:#bdb9a5; font-size:11px; line-height:1.7; }
.news-release-note>.ui-icon { width:17px; height:17px; margin-top:2px; color:#d8c18b; }
.news-release-note p { margin:0; min-width:0; }.news-release-note strong { color:#e0d4b5; font-weight:550; }
.news-contents { display:flex; align-items:center; flex-wrap:wrap; gap:2px 11px; padding:3px 0 11px; border-bottom:1px solid var(--line); }
.news-contents>span { width:100%; color:#779caa; font-size:10px; margin-bottom:3px; }
.news-contents a { display:inline-flex; align-items:center; min-height:34px; color:#b4d4df; font-size:11px; text-decoration:underline; text-underline-offset:4px; text-decoration-color:rgba(180,212,223,.28); }
.news-section { padding:23px 0 20px; border-bottom:1px solid var(--line); scroll-margin-top:16px; }
.news-section>summary { position:relative; display:block; list-style:none; padding-right:32px; cursor:pointer; }
.news-section>summary::-webkit-details-marker { display:none; }
.news-section>summary::after { content:''; position:absolute; right:5px; top:26px; width:8px; height:8px; border-right:1.5px solid #8caebe; border-bottom:1.5px solid #8caebe; transform:rotate(45deg); }
.news-section[open]>summary::after { transform:rotate(225deg); }
.news-section:not([open]) h3 { margin-bottom:0; }
.news-section summary .news-section-label { display:block; }
.news-section-label { margin-bottom:8px; color:#99c9b7; font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.5px; }
.news-section-label.is-pending { color:#cebb89; }
.news-section h3 { margin:0 0 12px; font-size:22px; line-height:1.25; font-weight:550; letter-spacing:-.5px; text-wrap:balance; }
.news-section h4 { margin:21px 0 9px; color:#d9ebf2; font-size:15px; line-height:1.4; font-weight:550; }
.news-section p { margin:10px 0; color:#a5bdcb; overflow-wrap:anywhere; }
.news-section strong { font-weight:550; color:#dcebf2; }
.news-page code { color:#c2dfd6; font:inherit; font-size:.95em; padding:1px 4px; background:rgba(140,195,173,.08); border-radius:4px; }
.news-inline-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#b6ddcb; text-decoration:none; font-size:12px; }
.news-inline-link>.ui-icon { width:16px; height:16px; }
.news-table-wrap { max-width:100%; margin:13px 0; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:rgba(6,26,40,.8); }
.news-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px; line-height:1.5; }
.news-table caption { padding:10px 11px; text-align:left; color:#8eacbc; font-size:10px; border-bottom:1px solid var(--line); }
.news-table th,.news-table td { padding:10px 11px; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.news-table th { font-size:10px; font-weight:500; color:#8faebf; background:rgba(142,197,215,.045); }
.news-table th:first-child,.news-table td:first-child { width:36%; }.news-table td { color:#c1d5df; }
.news-table tr+tr td { border-top:1px solid rgba(151,198,220,.1); }
.news-section .news-small { color:#849fac; font-size:11px; }
.news-section blockquote { margin:14px 0; padding:11px 13px; border-left:2px solid #8abbad; border-radius:0 9px 9px 0; background:rgba(105,164,144,.08); color:#b9d4c9; font-size:13px; }
.news-footer { display:flex; gap:11px; align-items:center; margin-top:20px; padding:15px 0; color:#a9c6d0; font-size:12px; }
.news-footer>.ui-icon { width:28px; height:28px; color:#90b7c7; }.news-footer p { margin:0; }.news-footer span { display:block; margin-top:4px; color:#6f95a7; font-size:9px; }
@media(max-width:360px) { .header-news { width:40px; height:44px; }.header-wallet { max-width:35%; }.wordmark { gap:5px; }.wordmark>.ui-icon { width:21px; height:21px; }.news-cover { padding:16px 14px; }.news-section h3 { font-size:20px; }.news-table th,.news-table td { padding:9px; }.news-page { font-size:12px; } }
.page { padding:16px 18px calc(88px + max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))); }
.page-intro { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.eyebrow { font:9px ui-monospace,SFMono-Regular,Consolas,monospace; color:#93bccc; letter-spacing:1.5px; margin-bottom:6px; }
.eyebrow::before { width:18px; background:#779eae; }
h1 { font-size:28px; font-weight:620; letter-spacing:-1px; margin:0; }
.intro-icon { display:grid; place-items:center; width:38px; height:38px; color:var(--cyan); border:1px solid var(--line); border-radius:12px; background:linear-gradient(135deg,rgba(136,201,228,.13),rgba(136,201,228,.02)); }
.intro-icon.gold { color:#edcf94; border-color:rgba(221,189,126,.2); background:linear-gradient(135deg,rgba(211,169,86,.16),transparent); }
.profile-card { position:relative; overflow:hidden; border:1px solid rgba(183,224,241,.38); border-radius:18px; padding:16px; background:radial-gradient(ellipse at 100% 0%,rgba(115,178,207,.19),transparent 65%),linear-gradient(145deg,rgba(27,62,82,.95),rgba(6,28,43,.95) 65%); box-shadow:inset 0 1px rgba(231,248,255,.17),0 14px 45px rgba(0,0,0,.16); }
.profile-watermark { position:absolute; right:-45px; top:57px; color:rgba(164,214,233,.055); pointer-events:none; transform:rotate(12deg); }
.profile-watermark .ui-icon { width:240px; height:240px; stroke-width:.65; }
.identity-row { position:relative; display:flex; gap:10px; align-items:center; }
.avatar { display:grid; place-items:center; position:relative; overflow:hidden; flex-shrink:0; width:44px; height:44px; margin:0; border-radius:50%; border:1px solid rgba(194,235,246,.55); outline:3px solid rgba(150,211,233,.065); background:linear-gradient(135deg,#528899,#12354b); color:#e1f5fb; font-size:21px; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.identity-copy { min-width:0; }
.name-line { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.name-line h2 { font-size:18px; font-weight:600; letter-spacing:-.5px; margin:0; line-height:1.25; overflow-wrap:anywhere; }
.username { margin-top:4px; font-size:12px; color:#a2bfce; line-height:1.4; }
.premium-badge { display:flex; align-items:center; gap:3px; padding:3px 6px; border:1px solid rgba(232,207,155,.3); border-radius:6px; background:rgba(197,163,87,.08); color:#e1cc9c; font-size:8px; font-weight:500; }
.premium-badge .ui-icon { width:10px; height:10px; }
.active-title { position:relative; display:inline-flex; max-width:100%; align-items:center; gap:6px; margin-top:12px; padding:5px 8px; border:1px solid rgba(174,222,200,.28); border-radius:7px; color:#b8e4cf; background:rgba(87,146,124,.1); font-size:11px; line-height:1.4; }
.active-title span { overflow-wrap:anywhere; }
.active-title .ui-icon { width:14px; height:14px; }
.profile-wallet { position:relative; padding:16px 0 14px; }
.overline { color:#9fbcca; font-size:11px; }
.balance-line { display:flex; align-items:center; gap:8px; margin:5px 0; color:#e4f4f9; }
.balance-line strong { font-size:clamp(29px,8.8vw,46px); line-height:1.06; font-weight:560; letter-spacing:-1.7px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; min-width:0; }
.balance-line #profile-balance { font-size:clamp(28px,8vw,36px); color:var(--text); font-weight:560; letter-spacing:-1.3px; }
.balance-line .ui-icon { width:24px; height:24px; color:#99c6da; stroke-width:1.2; }
.wallet-caption { color:#819eae; font-size:10px; }
.profile-metrics { position:relative; display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); padding-top:12px; gap:12px; }
.profile-metrics>div,.profile-metrics>a { display:grid; gap:5px; text-decoration:none; color:var(--text); }
.profile-metrics>:last-child { border-left:1px solid var(--line); padding-left:18px; }
.profile-metrics span { display:flex; align-items:center; gap:6px; font-size:10px; color:#94b5c5; }
.profile-metrics .ui-icon { width:14px; height:14px; color:var(--cyan); }
.profile-metrics strong { font-size:18px; font-weight:500; letter-spacing:-.4px; overflow-wrap:anywhere; }
.profile-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; margin-top:12px; padding-top:10px; border-top:1px solid rgba(164,212,232,.1); color:#7897a7; font:9px ui-monospace,SFMono-Regular,Consolas,monospace; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:18px 0 10px; }
.section-heading h2 { font-size:16px; font-weight:550; letter-spacing:-.35px; margin:0; }
.section-label { font-size:9px; color:#819fad; white-space:nowrap; }
.count-pill { display:grid; place-items:center; padding:5px 9px; min-width:25px; border:1px solid var(--line); border-radius:7px; font:10px ui-monospace,SFMono-Regular,Consolas,monospace; color:#a6c6d3; background:rgba(129,190,216,.06); }
.titles-panel { display:flex; flex-wrap:wrap; gap:6px; padding:11px; border:1px solid var(--line); border-radius:12px; background:rgba(7,27,42,.85); }
.title-chip { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:6px 8px; border:1px solid rgba(165,202,222,.17); border-radius:7px; background:rgba(144,185,207,.04); color:#aac1cd; font-size:11px; line-height:1.3; }
.title-chip span { overflow-wrap:anywhere; }
.title-chip.is-active { border-color:rgba(159,217,190,.4); background:rgba(107,171,144,.1); color:#bce5d2; }
.title-chip .ui-icon { width:13px; height:13px; }
.section-caption { margin:10px 0 0; color:#8ca8b7; font-size:10px; line-height:1.65; }
.profile-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.profile-stat-grid>div { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:10px; border:1px solid var(--line); border-radius:11px; background:linear-gradient(130deg,rgba(29,59,77,.75),rgba(5,25,40,.9)); }
.profile-stat-grid .ui-icon { width:16px; height:16px; color:#91bacd; margin-bottom:8px; }
.profile-stat-grid strong { font-size:18px; font-weight:550; letter-spacing:-.6px; overflow-wrap:anywhere; }
.profile-stat-grid span { font-size:9px; color:#8eabba; line-height:1.4; margin-top:6px; }
.profile-cta { display:flex; align-items:center; gap:10px; margin-top:12px; padding:11px; border:1px solid rgba(148,206,181,.26); border-radius:12px; text-decoration:none; color:var(--text); background:linear-gradient(100deg,rgba(68,118,101,.22),rgba(7,29,42,.8)); }
.cta-symbol { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgba(148,206,181,.2); border-radius:9px; color:var(--mint); background:rgba(141,207,179,.07); }
.profile-cta>span:nth-child(2) { flex:1; min-width:0; }
.profile-cta strong { display:block; font-size:12px; font-weight:550; }
.profile-cta small { display:block; font-size:9px; color:#90aaaf; margin-top:5px; line-height:1.5; }
.profile-cta>.ui-icon { width:17px; height:17px; color:#91b9ac; }
.tabs { left:10px; right:10px; bottom:8px; max-width:580px; gap:4px; padding:5px 5px calc(5px + max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))); border:1px solid rgba(173,216,236,.3); border-radius:16px; background:linear-gradient(180deg,#163144,#081c2c); box-shadow:inset 0 1px rgba(232,251,255,.09),0 8px 30px rgba(0,0,0,.4); }
.tab { flex-direction:row; gap:6px; padding:8px 4px; min-height:44px; font-size:10px; border-radius:11px; }
.tab svg { width:18px; height:18px; }
.tab[aria-current="page"] { color:#c1e8dc; border-color:rgba(159,219,194,.23); background:linear-gradient(135deg,rgba(101,163,139,.18),rgba(57,103,96,.1)); }
#games-page { gap:8px; }
#games-page>.page-intro,#games-page>.catalogue-wallet,#games-page>.catalogue-heading { grid-column:1/-1; }
#games-page>.page-intro { margin-bottom:7px; }
.catalogue-wallet { display:flex; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:linear-gradient(110deg,rgba(29,60,78,.8),rgba(7,28,43,.85)); gap:14px; }
.catalogue-wallet>div { flex:1; min-width:0; }
.catalogue-wallet>div+div { border-left:1px solid var(--line); padding-left:14px; }
.catalogue-wallet span { display:flex; align-items:center; gap:6px; color:#91b0bf; font-size:10px; margin-bottom:5px; }
.catalogue-wallet .ui-icon { width:13px; height:13px; }
.catalogue-wallet strong { font-size:16px; font-weight:500; letter-spacing:-.4px; overflow-wrap:anywhere; }
.catalogue-heading { margin:10px 0 2px; }
.game-card { min-height:94px; justify-content:center; gap:8px; padding:12px 6px; border-radius:12px; border-color:rgba(var(--card-rgb),.23); background:radial-gradient(ellipse at 0 0,rgba(var(--card-rgb),.14),transparent 75%),linear-gradient(140deg,rgba(18,45,62,.9),rgba(5,24,39,.96)); box-shadow:inset 0 1px rgba(227,249,255,.1); }
.game-card h2 { font-size:clamp(11px,3.15vw,15px); font-weight:550; letter-spacing:-.25px; }
.game-card:hover { border-color:rgba(var(--card-rgb),.55); background:linear-gradient(145deg,rgba(var(--card-rgb),.2),rgba(7,28,43,.96)); }
.game-art { width:40px; height:40px; border-radius:11px; border-color:rgba(var(--card-rgb),.15); background:linear-gradient(135deg,rgba(var(--card-rgb),.12),rgba(var(--card-rgb),.025)); color:#baddeb; }
.game-art>.ui-icon { width:26px; height:26px; stroke-width:1.15; }
#games-page .game-art .telegram-dice { width:43px; height:43px; }
.back-link { display:inline-flex; align-items:center; gap:7px; font-size:11px; min-height:32px; margin-bottom:10px; padding:0; color:#95bbc9; }
.back-link .ui-icon { width:15px; height:15px; }
.mines-heading { margin-bottom:8px; }
.mines-heading h1 { font-size:26px; }
.wallet { border-color:var(--line); background:rgba(115,178,202,.055); border-radius:10px; }
.wallet strong { color:#c4e7f2; font-size:13px; }
.wallet span { font-size:9px; color:#8baab9; }
.game-lead { margin:0 0 12px; color:#93adbc; font-size:11px; line-height:1.5; }
.mines-stats { grid-template-columns:1.3fr 1fr .8fr; gap:7px; margin-bottom:12px; }
.mines-stats>div { border-radius:11px; background:linear-gradient(125deg,rgba(23,52,69,.85),rgba(6,26,41,.85)); padding:10px; }
.mines-stats strong { font-weight:550; font-size:16px; }
.mines-stats span { margin-bottom:5px; }
.mines-board { gap:5px; }
.mine-cell { border-radius:12px; border-color:rgba(159,204,226,.26); box-shadow:inset 0 1px rgba(223,247,255,.08); background:linear-gradient(145deg,#1b3b51,#0a2336); }
.mine-cell.is-safe { background:linear-gradient(145deg,#285c50,#123d36); border-color:#458672; color:#c2efd9; }
.mine-cell.is-mine { background:linear-gradient(145deg,#673d43,#3d252e); }
.mines-status { border-left:2px solid rgba(162,211,233,.34); padding:2px 0 2px 10px; min-height:0; margin:12px 0; color:#adbfca; font-size:11px; line-height:1.55; }
.mines-status[data-outcome="win"] { color:#bce2cf; border-color:#6da58d; }
.mines-status[data-outcome="loss"] { color:#e1b0bb; border-color:#9d626e; }
.control-row { gap:8px; margin-bottom:10px; }
.control-row:has(label:last-child[hidden]) { grid-template-columns:1fr; }
.control-row label { font-size:10px; color:#a0bac8; }
.control-row input,.control-row select { background:#0c2538; border-color:rgba(168,210,229,.29); border-radius:10px; min-height:44px; margin-top:6px; padding:10px; font-size:16px; }
.action-button { display:flex; align-items:center; justify-content:center; text-decoration:none; border-radius:11px; background:linear-gradient(115deg,#a7d2e4,#d0e8f1); border-color:#c6e3ee; min-height:46px; padding:11px 14px; color:#102f40; box-shadow:inset 0 1px rgba(255,255,255,.45),0 4px 15px rgba(81,151,184,.08); font-size:14px; font-weight:600; }
.take-button { background:linear-gradient(115deg,#9dcbb8,#c5e3d4); border-color:#bddfce; color:#173e30; }
.pve-stage { min-height:170px; padding:9px 11px; border-radius:14px; border-color:var(--line); background:radial-gradient(ellipse at 50% 35%,rgba(133,193,215,.12),transparent 70%),linear-gradient(135deg,rgba(19,46,64,.85),rgba(6,25,40,.9)); }
.pve-stage .telegram-dice { width:160px; }
.pve-stage .bot-emoji { width:96px; height:96px; font-size:64px; }
.game-caption { font-size:13px; color:#c0d7e2; }
.game-hunt>.ui-icon { width:90px; height:90px; color:#a3c8d8; stroke-width:.8; margin:15px 0; }
.playing-card { position:relative; width:84px; height:112px; margin:6px 0 9px; border:1px solid #9ebdce; border-radius:11px; color:#d5eaf4; background:linear-gradient(145deg,#27495f,#122c40); box-shadow:inset 0 0 0 4px rgba(177,215,232,.05),0 8px 24px rgba(0,0,0,.15); }
.playing-card.is-red { color:#edb5bc; border-color:#a67a89; background:linear-gradient(145deg,#483c50,#202c40); }
.card-corner { position:absolute; top:9px; left:10px; display:grid; justify-items:center; gap:2px; font-size:17px; line-height:1; }
.card-corner b { font-weight:550; }.card-corner i { font-size:13px; font-style:normal; }
.card-corner:last-child { top:auto; left:auto; bottom:9px; right:10px; transform:rotate(180deg); }
.card-suit { position:absolute; inset:0; display:grid; place-items:center; font:38px/1 "Segoe UI Symbol",serif; }
.pve-moves { gap:7px; margin-top:10px; }
.pve-move { min-height:46px; padding:11px 8px; border-radius:10px; color:#d1e6ee; background:#153044; border-color:rgba(167,212,230,.3); font-size:13px; }
.cups-choices .pve-move { padding:11px 6px; }
.joker-cell { min-height:48px; padding:8px 4px; font-size:26px; }
.joker-cell .bot-emoji { width:30px; height:30px; font-size:26px; }
.joker-snow { font-size:30px; }
.pve-rules { margin-top:13px; padding:11px 13px; border-radius:10px; font-size:11px; background:rgba(8,28,42,.85); }
.pve-rules summary { font-size:11px; color:#abcbd9; }
.pve-stage.is-joker-board { background:none; border:0; min-height:0; padding:0; }
.joker-cell.is-chosen,.cup-primary { background:linear-gradient(135deg,#365e84,#294765); border-color:#527b9c; }
.joker-cell.is-joker,.cup-danger { background:linear-gradient(135deg,#824b56,#613b47); border-color:#a46c77; }
.cup-success { background:linear-gradient(135deg,#356e5c,#284d44); border-color:#528f78; }
.board-picker { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; padding:5px; border:1px solid var(--line); border-radius:15px; background:rgba(6,25,40,.9); }
.board-picker button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; min-height:52px; padding:5px 2px; border:1px solid transparent; border-radius:9px; background:transparent; color:#8ba6b7; font-size:10px; cursor:pointer; }
.board-picker .ui-icon { width:16px; height:16px; }
.board-picker button[aria-pressed="true"] { border-color:rgba(169,214,232,.3); color:#d1eaf4; background:linear-gradient(135deg,rgba(115,170,197,.17),rgba(81,132,161,.08)); }
.period-picker { display:flex; gap:7px; margin:10px 0 0; }
.period-picker button { min-height:40px; padding:7px 12px; background:transparent; border:1px solid var(--line); border-radius:8px; color:#90abba; font-size:10px; cursor:pointer; }
.period-picker button[aria-pressed="true"] { color:#d9e9f0; background:rgba(136,192,217,.12); border-color:var(--line-bright); }
.top-game-filter { margin-top:10px; }
.top-game-filter label { display:block; margin-bottom:5px; font-size:10px; color:#9eb8c6; }
.top-game-filter select { display:block; width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--line-bright); border-radius:10px; background:#0c2538; color:var(--text); font:inherit; font-size:16px; }
#top-note { min-height:0; margin-top:8px; }
.podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:7px; margin:20px 0 12px; padding-top:7px; }
.podium-card { display:flex; flex-direction:column; align-items:center; min-width:0; min-height:112px; padding:0 7px 11px; border:1px solid rgba(147,180,204,.22); border-radius:12px; background:linear-gradient(150deg,rgba(49,74,93,.6),rgba(8,27,42,.95)); text-align:center; }
.podium-1 { grid-column:2; grid-row:1; min-height:128px; background:linear-gradient(150deg,rgba(128,106,61,.35),rgba(15,31,42,.96) 75%); border-color:rgba(224,194,133,.48); box-shadow:inset 0 1px rgba(244,225,182,.15),0 0 32px rgba(168,136,71,.045); }
.podium-2 { grid-column:1; grid-row:1; }
.podium-3 { grid-column:3; grid-row:1; background:linear-gradient(150deg,rgba(111,75,60,.3),rgba(8,27,42,.95)); border-color:rgba(196,150,121,.3); }
.podium-medal { display:grid; place-items:center; width:28px; height:28px; margin:-14px 0 8px; border:1px solid #6b849a; border-radius:50%; outline:4px solid #0a1c2b; color:#c2d3e2; background:linear-gradient(145deg,#355268,#162c41); font:13px ui-monospace,SFMono-Regular,Consolas,monospace; }
.podium-1 .podium-medal { width:34px; height:34px; margin-top:-17px; color:#f4dfb6; border-color:#bfa367; background:linear-gradient(145deg,#7d683f,#3d352b); }
.podium-3 .podium-medal { color:#e6bd9f; border-color:#8f6953; background:linear-gradient(145deg,#644a3b,#2f2829); }
.podium-card { min-height:128px; }.podium-1 { min-height:144px; }
.podium-portrait { position:relative; width:46px; height:46px; flex-shrink:0; margin:-14px 0 10px; }
.podium-1 .podium-portrait { width:54px; height:54px; margin-top:-17px; }
.podium-avatar { position:relative; display:grid; place-items:center; overflow:hidden; width:100%; height:100%; border:1px solid #7397ad; border-radius:50%; outline:4px solid #0a1c2b; background:linear-gradient(135deg,#365c70,#123247); color:#d1e9f1; font-size:20px; font-weight:550; }
.podium-1 .podium-avatar { border-color:#c4ac75; }.podium-3 .podium-avatar { border-color:#a47d65; }
.podium-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.podium-avatar.has-photo>span { visibility:hidden; }
.podium-portrait .podium-medal { position:absolute; right:-4px; bottom:-2px; width:20px; height:20px; margin:0; outline-width:2px; font-size:10px; }
.podium-1 .podium-portrait .podium-medal { width:23px; height:23px; margin:0; font-size:11px; }
.podium-person { width:100%; min-width:0; padding-bottom:8px; }
.rank-name { display:block; font-size:12px; font-weight:550; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-title { display:block; max-width:100%; font-size:9px; color:#8ba7b7; margin-top:5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.podium-score { margin-top:auto; min-width:0; max-width:100%; }
.podium-score strong { display:block; font-size:clamp(12px,3.6vw,18px); font-weight:550; letter-spacing:-.5px; overflow-wrap:anywhere; }
.podium-score span { display:block; margin-top:5px; font-size:8px; color:#8eabb9; }
.podium-1 .podium-score strong { color:#ecd3a0; }
.ranking-list { overflow:hidden; margin-top:11px; border:1px solid var(--line); border-radius:12px; background:rgba(6,24,39,.85); }
.ranking-list:empty { display:none; }
.rank-row { display:flex; align-items:center; gap:10px; padding:10px 11px; min-height:48px; }
.rank-row+.rank-row { border-top:1px solid rgba(153,196,220,.11); }
.rank-row.is-self { background:rgba(113,179,158,.1); }
.rank-position { width:21px; flex-shrink:0; text-align:center; font:11px ui-monospace,SFMono-Regular,Consolas,monospace; color:#7494a8; }
.rank-person { min-width:0; flex:1; }
.rank-value { font-size:13px; font-weight:500; font-variant-numeric:tabular-nums; color:#c4dce7; max-width:42%; overflow-wrap:anywhere; text-align:right; }
.own-place { display:flex; align-items:center; gap:10px; margin-top:11px; padding:10px 12px; border:1px solid rgba(145,207,181,.33); border-radius:12px; background:linear-gradient(120deg,rgba(42,85,72,.32),rgba(7,28,42,.9)); }
.own-place-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:#a4d1be; background:rgba(127,190,164,.09); }
.own-place-icon .ui-icon { width:18px; height:18px; }
.own-place>div { flex:1; min-width:0; }
.own-place>div>span { display:block; font-size:10px; color:#99b7b0; }
.own-place>div>strong { display:block; margin-top:5px; font-size:11px; font-weight:500; color:#c1d7d2; overflow-wrap:anywhere; }
.own-place>strong { color:#c4e6d7; font-size:19px; font-weight:500; }
.own-place #own-rank { margin:0 0 6px; font-size:14px; color:#c4e6d7; }
.own-place #own-value { font-size:10px; color:#99b7b0; }
.updated-note { text-align:center; color:#66899b; font-size:9px; margin:15px 0 0; }
.loading-state { display:flex; align-items:center; justify-content:center; gap:10px; padding:28px 12px; color:#96b3c2; font-size:12px; }
.loading-ring { width:18px; height:18px; border:2px solid rgba(155,204,224,.14); border-top-color:#a6d2e3; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.error-state { margin:15px 0; padding:15px; border:1px solid rgba(204,143,157,.25); border-radius:12px; background:rgba(99,45,61,.12); }
.error-state:has([hidden]) { display:none; }
.error-state p { margin:0 0 10px; font-size:12px; color:#deb9c4; line-height:1.5; }
.text-button { border:0; padding:0; background:none; color:#b7dce9; font:inherit; font-size:11px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.empty-panel,.guest-panel { display:flex; align-items:center; flex-direction:column; padding:24px 18px; border:1px solid var(--line); border-radius:16px; text-align:center; background:linear-gradient(140deg,rgba(28,60,80,.75),rgba(7,26,41,.9)); }
.empty-panel>.ui-icon,.guest-panel>.ui-icon { width:38px; height:38px; color:#9ec8da; margin-bottom:20px; stroke-width:1.1; }
.empty-panel h2,.guest-panel h2 { font-size:20px; letter-spacing:-.5px; }
.empty-panel p,.guest-panel p,.empty-copy { color:#92aebf; font-size:12px; line-height:1.7; }
.guest-panel .action-button { margin-top:16px; width:auto; padding:13px 21px; font-size:12px; }
@media(min-width:601px) { #app { border-left:1px solid var(--line); border-right:1px solid var(--line); background:rgba(5,22,35,.25); } .page { padding-top:20px; } }
@media(max-width:360px) { .page { padding-left:14px; padding-right:14px; } .app-header { padding-left:14px; padding-right:14px; } .wordmark>span { font-size:12px; } .header-wallet { padding:7px; gap:4px; }.header-wallet strong { font-size:10px; } h1 { font-size:27px; }.profile-card { padding:14px; }.name-line h2 { font-size:17px; }.profile-stat-grid>div { padding:9px 8px; }.profile-stat-grid strong { font-size:17px; }.game-card { min-height:90px; }.section-label { font-size:8px; }.mines-stats>div { padding:9px 8px; }.mines-stats strong { font-size:15px; }.podium-card { padding-left:6px; padding-right:6px; }.rank-name { font-size:11px; }.podium-score strong { font-size:12px; }.board-picker .ui-icon { width:14px; height:14px; }.board-picker button { gap:4px; } }
@media(prefers-reduced-motion:reduce) { .loading-ring { animation:none; } }

/* Admin-only Halloween case preview; isolated from game and event wallets. */
.case-demo-label { display:flex; align-items:center; justify-content:center; gap:10px; color:#f3bd85; font-size:10px; letter-spacing:1.6px; }
.case-demo-label span { border:1px solid #866344; padding:4px 7px; border-radius:6px; font-size:9px; letter-spacing:1px; }
#halloween-case-demo { padding:20px 12px 16px; border:1px solid rgba(232,150,77,.3); border-radius:20px; background:radial-gradient(ellipse at 0 0,rgba(167,77,32,.2),transparent 50%),radial-gradient(ellipse at 100% 100%,rgba(112,63,162,.23),transparent 65%),rgba(22,15,34,.9); box-shadow:inset 0 1px rgba(255,201,145,.07); }
#halloween-case-demo h2 { text-align:center; font-size:23px; margin:16px 0 8px; color:#fff0dc; }
.case-season { color:#bda2c7; font-size:11px; text-align:center; margin:0 0 25px; }
.case-reel { position:relative; overflow:hidden; width:100%; height:154px; border:1px solid rgba(244,167,83,.4); border-radius:16px; background:radial-gradient(ellipse at 50% 0,rgba(145,69,32,.3),transparent 72%),#111421; isolation:isolate; }
.case-reel::after { content:''; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(90deg,#111421,transparent 18%,transparent 82%,#111421); }
.case-reel-track { display:flex; gap:10px; width:max-content; height:100%; align-items:center; position:relative; will-change:transform; }
.case-prize { flex:0 0 92px; width:92px; min-width:0; height:122px; box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:9px; border:1px solid rgba(181,161,205,.19); border-radius:12px; background:linear-gradient(145deg,rgba(84,58,107,.4),rgba(24,22,37,.95)); color:#dfd4e8; }
.case-prize .bot-emoji { display:block; width:64px; height:64px; line-height:64px; font-size:45px; }
.case-prize .bot-emoji svg { width:100%!important; height:100%!important; }
.case-prize>span:last-child { font-size:10px; }
.case-prize-case-bear { border-color:rgba(235,174,102,.3); background:linear-gradient(145deg,rgba(115,68,34,.48),rgba(27,24,33,.95)); }
.case-prize-case-snow { border-color:rgba(110,192,229,.3); background:linear-gradient(145deg,rgba(30,80,110,.46),rgba(22,24,40,.95)); }
.case-prize.is-selected { border-color:#f9bd72; box-shadow:inset 0 0 24px rgba(244,169,72,.16); }
.case-reel-pointer { position:absolute; z-index:3; top:0; bottom:0; left:50%; width:2px; background:linear-gradient(#ffcf90,rgba(255,207,144,.1),#ffcf90); transform:translateX(-50%); }
.case-reel-pointer::before,.case-reel-pointer::after { content:''; position:absolute; left:50%; transform:translateX(-50%); border-left:7px solid transparent; border-right:7px solid transparent; }
.case-reel-pointer::before { top:0; border-top:10px solid #ffcf90; }
.case-reel-pointer::after { bottom:0; border-bottom:10px solid #ffcf90; }
.case-result { min-height:20px; margin:19px 0; text-align:center; font-size:13px; color:#f3cfa8; }
#halloween-case-open { width:100%; background:linear-gradient(115deg,#f1a451,#d4793e); color:#251a16; border:1px solid #fac083; font-weight:650; cursor:pointer; }
#halloween-case-open:disabled { opacity:.55; cursor:wait; }
.case-disclaimer { text-align:center; color:#a99cba; font-size:10px; line-height:1.6; margin:12px 0 23px; }
.case-contents { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.case-contents .case-prize { width:100%; height:103px; }
.case-contents .bot-emoji { width:48px; height:48px; }
.case-reward-dialog { width:min(330px,calc(100vw - 40px)); box-sizing:border-box; padding:28px 22px 22px; border:1px solid #b77d48; border-radius:24px; color:#ffedda; background:radial-gradient(ellipse at 50% 25%,rgba(165,84,34,.32),transparent 62%),linear-gradient(145deg,#28172f,#181423); text-align:center; box-shadow:0 24px 100px #0009,inset 0 1px #ffc98425; }
.case-reward-dialog::backdrop { background:rgba(8,5,15,.82); backdrop-filter:blur(6px); }
.case-reward-art { display:grid; place-items:center; height:180px; margin:14px 0 4px; background:radial-gradient(circle,rgba(239,158,74,.18),transparent 65%); }
.case-reward-art .bot-emoji { display:block; width:150px; height:150px; }
.case-reward-art svg { width:100%!important; height:100%!important; }
.case-reward-dialog h2 { margin:0 0 10px; font-size:27px; color:#fff0dc; }
.case-reward-dialog p { font-size:11px; line-height:1.6; margin:0 0 23px; color:#c0a9c9; }
.case-reward-dialog .action-button { width:100%; min-height:46px; background:linear-gradient(115deg,#f1a451,#d4793e); color:#251a16; font-weight:650; border:1px solid #fac083; cursor:pointer; }
.premium-entry { margin-bottom:18px; border-color:#a794c24d; background:linear-gradient(115deg,#49385488,#142a3acc); }
.premium-hero { display:flex; flex-direction:column; align-items:center; padding:30px 15px; border:1px solid #c1a8e13d; border-radius:22px; background:radial-gradient(ellipse at 50% 0,#a377cc45,transparent 75%),#122333; text-align:center; }
.premium-hero>.ui-icon { width:52px; height:52px; color:#dcc1f3; margin-bottom:18px; }
.premium-hero h1 { margin:12px 0 0; }.premium-hero p { color:#c7b6da; font-size:12px; }
.premium-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0 22px; }
.premium-benefit { position:relative; display:flex; align-items:center; gap:13px; grid-column:1/-1; min-width:0; padding:16px; border:1px solid #c5ace22c; border-radius:17px; background:linear-gradient(115deg,rgba(50,39,71,.88),rgba(22,29,46,.94)); box-shadow:inset 0 1px #e8d9ff08; }
.premium-benefit-icon { flex-shrink:0; display:grid; place-items:center; width:36px; height:36px; color:#d5b9f3; border:1px solid #d0a8ff26; border-radius:12px; background:#bb92ee10; }
.premium-benefit-icon .ui-icon { width:21px; height:21px; }
.premium-benefit-copy { min-width:0; flex:1; }
.premium-benefit h2 { font-size:12px; font-weight:550; line-height:1.4; letter-spacing:0; margin:5px 0; color:#f0e7fa; }
.premium-benefit p { font-size:10px; line-height:1.5; color:#b7a8c9; margin:0; }
.premium-benefit-metric { color:#e6cfff; }
.premium-benefit-metric strong { font-size:18px; font-weight:550; letter-spacing:-.6px; }
.premium-benefit.is-featured { grid-column:auto; flex-direction:column; align-items:flex-start; gap:17px; padding:17px 14px; background:radial-gradient(ellipse at 100% 0,#a673dd26,transparent 80%),linear-gradient(140deg,#342542ed,#1c2134f5); border-color:#c0a0e247; }
.premium-benefit.is-featured .premium-benefit-metric strong { display:block; font-size:39px; letter-spacing:-1.8px; line-height:1; background:linear-gradient(130deg,#fff3ff,#c7a1ed); color:transparent; -webkit-background-clip:text; background-clip:text; }
.premium-benefit-metric>span { display:block; font-size:11px; margin:7px 0 12px; color:#d9c4ed; }
.premium-benefit.is-featured h2 { font-size:11px; }.premium-benefit.is-featured p { font-size:9px; }
.premium-benefit-fallback { grid-column:1/-1; color:#d9c4ed; padding:14px; font-size:12px; }
.premium-plans { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.premium-plans .premium-plan { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; padding:17px 14px; border:1px solid #c3a2e95c; border-radius:17px; background:linear-gradient(140deg,#3b2c50,#222c42); color:#e4d6f6; text-align:left; cursor:pointer; }
.premium-plans .premium-plan.is-monthly { color:#261c37; border-color:#e6cfff; background:linear-gradient(125deg,#ead5ff,#b6a0df); box-shadow:0 7px 30px #b389eb12; }
.premium-plan-period { font-size:11px; font-weight:550; }.premium-plan-price { display:flex; align-items:baseline; gap:6px; }.premium-plan-price strong { font-size:29px; font-weight:600; letter-spacing:-1px; }.premium-plan-price>span { font-size:11px; }.premium-plan-days { font-size:9px; opacity:.8; }
.premium-plan:disabled { opacity:.6; cursor:wait; }
.premium-page #premium-note { color:#a99bbd; font-size:10px; line-height:1.7; margin-top:17px; }
.halloween-snow-swap { margin-top:12px; padding:17px; }
.halloween-snow-rate { display:flex; align-items:center; justify-content:center; gap:7px; font-size:12px; color:#efcba7; margin:15px 0; }
.halloween-snow-rate .ui-icon { width:18px; height:18px; }.halloween-snow-rate .ui-icon:last-of-type { color:#b9dce9; }
.case-wallet { display:flex; align-items:center; justify-content:center; gap:7px; color:#f1c88f; font-size:12px; margin:19px 0; }.case-wallet .ui-icon { width:19px; height:19px; }.case-wallet strong { font-size:22px; }
.case-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.case-option { min-width:0; display:flex; flex-direction:column; align-items:center; gap:9px; padding:12px 4px; border:1px solid #a179b33d; border-radius:13px; color:#d8c4e0; background:#291e34; font:inherit; cursor:pointer; }
.case-option-icon .ui-icon { width:28px; height:28px; color:#c798e3; }.case-option strong { font-size:10px; }.case-option>span:last-child { font-size:10px; color:#eac295; }.case-option[aria-pressed="true"] { background:linear-gradient(140deg,#633c38,#34233d); border-color:#eda14c; box-shadow:inset 0 0 20px #d4832a0c; }.case-option:disabled { cursor:default; }
.case-symbol { display:grid; place-items:center; width:64px; height:64px; color:#e6bff8; }.case-symbol .ui-icon { width:47px; height:47px; }.case-prize-premium { border-color:#cca3f477; background:linear-gradient(140deg,#56376d,#271f3c); }.case-prize-nothing { border-color:#77717b4d; filter:saturate(.3); }
.case-contents { grid-template-columns:repeat(2,minmax(0,1fr)); }.case-contents .case-prize { height:95px; }.case-contents .case-symbol { height:48px; }.case-contents .case-symbol .ui-icon { width:35px; height:35px; }
.case-reward-art>.case-symbol { width:150px; height:150px; }.case-reward-art>.case-symbol .ui-icon { width:100px; height:100px; }
.case-prize>span:last-child { max-width:100%; padding:0 3px; text-align:center; font-size:9px; }
#premium-error { color:#e8b7bf; font-size:12px; }

/* Keep the paid opening and its action together above the fold. */
#cases-page .halloween-cases-menu { padding:0; border:0; background:none; }
#halloween-cases-status { margin:0 0 8px; font-size:10px; }
#halloween-case-demo { padding:12px 10px; border-radius:16px; }
#cases-page .page-intro { margin-bottom:10px; }
#cases-page .case-demo-label { font-size:9px; letter-spacing:1px; }
#cases-page .case-wallet { margin:10px 0; font-size:10px; }.case-wallet strong { font-size:18px; }
#cases-page .case-option { padding:9px 3px; gap:6px; }.case-option-icon .ui-icon { width:22px; height:22px; }
#halloween-case-demo h2 { margin:12px 0 3px; font-size:20px; }
#cases-page .case-season { margin:0 0 12px; font-size:10px; line-height:1.4; }
#cases-page .case-reel { height:112px; border-radius:12px; }
#cases-page .case-reel .case-prize { height:88px; gap:4px; }
#cases-page .case-reel .bot-emoji,#cases-page .case-reel .case-symbol { width:49px; height:49px; }
#cases-page .case-reel .case-symbol .ui-icon { width:36px; height:36px; }
#cases-page .case-result { margin:8px 0; min-height:16px; font-size:11px; }
#cases-page .case-disclaimer { margin:9px 0; font-size:9px; line-height:1.5; }
.case-reward-list { border-top:1px solid #b28bb52d; padding-top:9px; }
.case-reward-list summary { font-size:11px; color:#d5bce0; cursor:pointer; padding:2px 0; }
.case-reward-list .case-contents { margin-top:10px; }
.case-ghost { width:100%; height:100%; filter:drop-shadow(0 0 8px #bb94ed25); }
.case-prize-nothing { filter:none; background:radial-gradient(ellipse at 50% 30%,#9d77bc20,transparent 80%),#211b2d; }
.case-reward-dialog { padding:20px 20px 18px; }.case-reward-art { height:135px; margin:9px 0 3px; }.case-reward-art .bot-emoji,.case-reward-art>.case-symbol { width:115px; height:115px; }
.case-reward-dialog h2 { font-size:23px; }.case-reward-dialog p { margin-bottom:17px; }
.case-display { min-height:112px; }
#cases-page .case-display .case-picker { min-height:112px; align-items:stretch; }
#cases-page .case-display .case-option { justify-content:center; }
#cases-page .case-result:empty { display:none; }
#halloween-case-open { display:flex; align-items:center; justify-content:center; gap:7px; }
.case-button-candy { display:inline-flex; }.case-button-candy .ui-icon { width:20px; height:20px; }
#cases-page #halloween-case-demo { padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
#cases-page .case-wallet { margin:6px 0 12px; }
/* Fixed artwork row: intrinsic image dimensions must never cover the labels. */
#cases-page .case-display .case-option { display:grid; grid-template-rows:82px auto auto; align-content:start; justify-content:stretch; justify-items:center; gap:6px; padding:8px 4px 11px; overflow:hidden; background:linear-gradient(165deg,#302137,#201827); border-color:#bb86b83d; }
.case-option-art { position:relative; display:block; width:100%; height:82px; min-width:0; min-height:0; overflow:hidden; }
.case-option-art img { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
#cases-page .case-option .case-option-name { display:block; width:100%; min-width:0; margin:0; color:#f1dff2; text-align:center; font-size:11px; line-height:16px; font-weight:650; overflow-wrap:anywhere; }
#cases-page .case-option .case-option-price { display:flex; align-items:center; justify-content:center; gap:4px; min-height:22px; padding:2px 8px; border:1px solid #f4b56c2b; border-radius:7px; color:#ffd19a; background:#e88d3010; font-size:11px; line-height:16px; font-weight:600; }
.case-option-price .ui-icon { width:14px; height:14px; flex:none; }
.case-change { display:block; margin:6px auto 0; min-height:40px; padding:8px 14px; border:0; background:none; color:#d8b8ed; font:inherit; font-size:12px; cursor:pointer; }
.case-change:disabled { opacity:.45; cursor:default; }
.case-demo-button { display:block; width:100%; margin-top:7px; min-height:40px; border:1px solid #c69de34d; border-radius:10px; background:#a479c414; color:#dfc3ef; font:inherit; font-size:12px; cursor:pointer; }
.case-demo-button:disabled { opacity:.45; cursor:default; }
.case-prize-title { border-color:#dc9bdf66; background:radial-gradient(ellipse at 50% 15%,#c47bc12b,transparent 75%),#2b1d35; }
.case-prize-title .case-symbol { color:#efb5ed; }
.case-prize-bear { border-color:#dba65a88; background:radial-gradient(ellipse at 50% 15%,#dbaa5029,transparent 75%),#2c2230; }
#cases-page .case-display .case-option[aria-pressed="true"] { border-color:#ffb469; background:linear-gradient(165deg,#51302f,#2a1d30); box-shadow:inset 0 0 0 1px #ffb46930; }
