.page-wrap:has(.sh-page) { background: radial-gradient(ellipse at 78% 30%, rgba(177, 60, 255, 0.55) 0%, transparent 55%), linear-gradient(135deg, #2a0b5e, #5a1a9e 55%, #2b0a5a); }
.page-wrap.see:has(.sh-page) { background: linear-gradient(90deg, rgba(42, 11, 94, 0) 0%, rgba(42, 11, 94, 0.55) 34%, rgba(52, 14, 112, 0.92) 46%, #4a1690 100%); }
.page-wrap:has(.sh-rv-page) { background: radial-gradient(ellipse at 50% 55%, #3a1a8e 0%, #1a0a46 60%, #0d0626 100%); }

.sh-page { gap: calc(6 * var(--u)); }
.sh-page .f-page-head .f-title { font-size: max(calc(32 * var(--u)), 28px); }
.sh-cur { min-height: max(44px, calc(44 * var(--u))); cursor: pointer; border: 0; font-size: max(calc(16 * var(--u)), 14px); padding: 0 12px; }
body.mode-lobby .sh-cur { display: none; }
.sh-cur .coin, .sh-cur .crystal { width: max(calc(20 * var(--u)), 18px); height: max(calc(20 * var(--u)), 18px); min-width: 0; min-height: 0; }
.sh-cur .crystal { height: max(calc(23 * var(--u)), 21px); }

.sh-page .f-page-head { flex-wrap: wrap; row-gap: calc(6 * var(--u)); column-gap: calc(8 * var(--u)); }
.sh-page .f-page-head .f-close { order: 6; }
.sh-tabs { order: 8; flex: 1 0 100%; gap: calc(6 * var(--u)); padding: 2px 0; }
.sh-tabs .f-tab { min-height: max(48px, calc(40 * var(--u))); border-radius: 99px; padding: 0 calc(15 * var(--u)); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); font-size: max(calc(16 * var(--u)), 14px); }
.sh-tabs .f-tab.sel { background: #c9f0ff; box-shadow: none; }

.sh-body { padding-bottom: calc(6 * var(--u)); }
.sh-body > .f-section:first-child, .sh-body > .sh-hero:first-child { margin-top: calc(4 * var(--u)); }
.sh-empty { margin: calc(40 * var(--u)) 0; text-align: center; font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(20 * var(--u)), 16px); color: var(--f-dim); }
.sh-note { margin: calc(12 * var(--u)) 0 0; font-family: var(--f-font); font-weight: 600; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); line-height: 1.3; }

.sh-grid { grid-template-columns: repeat(auto-fill, minmax(max(calc(140 * var(--u)), 128px), 1fr)); }
.sh-see .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-card { min-height: max(calc(160 * var(--u)), 150px); }
.sh-card .art { padding: calc(10 * var(--u)) 10px 0; min-height: 0; }
.sh-card .art svg, .sh-card .art img { width: 70%; max-height: max(calc(92 * var(--u)), 84px); }
.sh-card .bar { padding: calc(8 * var(--u)) 10px calc(9 * var(--u)); }
.sh-card .name { font-size: max(calc(16 * var(--u)), 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card .meta { color: #fff; font-size: max(calc(15 * var(--u)), 13px); font-weight: 700; }
.sh-card .meta s { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.sh-card .meta .coin, .sh-card .meta .crystal { width: 1.05em; height: 1.05em; }
.sh-card .meta .crystal { height: 1.2em; }
.sh-card .owned { font-size: max(calc(14 * var(--u)), 13px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.sh-card .flag { top: 8px; left: 8px; font-size: max(calc(12 * var(--u)), 12px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.sh-card.sel .flag { top: 8px; left: 8px; }
.sh-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, 0.32), transparent 62%); }
.sh-card:disabled { filter: saturate(0.5) brightness(0.75); }
.sh-card.is-owned .art { opacity: 0.92; }
.sh-emo { font-size: max(calc(56 * var(--u)), 48px); line-height: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.sh-gift { background: linear-gradient(160deg, #6ff08a, #1d9a54); }
.sh-gift .flag { background: #fff; }
.sh-small .sh-card { min-height: max(calc(116 * var(--u)), 110px); }
.sh-ad { background: linear-gradient(160deg, #5a6cff, #2a2f9e); }
.sh-ad .flag { background: rgba(0, 0, 0, 0.45); color: #fff; }
.sh-play { width: max(calc(44 * var(--u)), 40px); height: max(calc(44 * var(--u)), 40px); border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.sh-play::before { content: ''; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #2a2f9e; }

.sh-packs { grid-template-columns: repeat(auto-fit, minmax(max(118px, calc(118 * var(--u))), 1fr)); }
.sh-pack .art { padding-top: calc(16 * var(--u)); }
.sh-stack { display: flex; align-items: flex-end; justify-content: center; }
.sh-stack .crystal { width: max(calc(30 * var(--u)), 26px); height: max(calc(36 * var(--u)), 31px); margin: 0 -4px; }
.sh-stack .coin { width: max(calc(32 * var(--u)), 28px); height: max(calc(32 * var(--u)), 28px); margin: 0 -5px; }
.sh-stack.n1 .crystal, .sh-stack.n1 .coin { transform: scale(1.4); }
.sh-stack > :nth-child(2) { transform: translateY(-8px) scale(1.15); z-index: 1; }
.sh-pack .bar { align-items: center; text-align: center; }
.sh-pack .name { overflow: visible; text-overflow: clip; max-width: 100%; line-height: 1.2; }
.sh-amt { display: inline-block; max-width: 100%; padding: 0 0.18em 0 0.08em; font-size: clamp(18px, calc(24 * var(--u)), 40px); font-style: italic; letter-spacing: 0.01em; white-space: nowrap; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45); }
.sh-cost { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 14px; border-radius: 6px; background: var(--f-yellow); color: var(--f-ink); font-size: max(calc(15 * var(--u)), 14px); }

.sh-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(12 * var(--u)); height: 100%; min-height: 240px; }
.sh-case { position: relative; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; gap: calc(5 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); background: var(--r-free); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3); color: #fff; min-height: 0; }
.sh-case.rare { background: var(--r-rare); } .sh-case.epic { background: var(--r-epic); } .sh-case.legendary { background: var(--r-legendary); }
.sh-case::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.38), transparent 58%); }
.sh-case > * { position: relative; }
.sh-case-art { flex: 1; min-height: 56px; display: grid; place-items: center; container-type: size; }
.sh-case-art .sh-case-img { height: 100cqh; max-height: calc(170 * var(--u)); max-width: 80%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.sh-case-name { font-family: var(--f-font); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: max(calc(20 * var(--u)), 17px); line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.sh-case-info { font-family: var(--f-font); font-weight: 600; font-size: max(calc(13 * var(--u)), 12px); color: rgba(255, 255, 255, 0.85); line-height: 1.15; }
.sh-case-info b { color: var(--f-yellow); font-weight: 700; }
.sh-open { width: 100%; padding: 0 8px; }
.sh-case-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: calc(6 * var(--u)); }
.sh-case-row .f-btn { padding: 0 6px; min-width: 0; }
.sh-case-row .f-btn.dark { background: rgba(0, 0, 0, 0.32); }
.sh-odds-btn { position: absolute; top: 0; right: 0; min-height: 48px; min-width: 48px; padding: 0 calc(12 * var(--u)); border: 0; background: transparent; color: #fff; cursor: pointer; font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(14 * var(--u)), 13px); text-decoration: underline; text-underline-offset: 3px; z-index: 2; }
.sh-own { position: absolute; top: calc(10 * var(--u)); left: calc(10 * var(--u)); padding: 2px 8px; border-radius: 4px; background: var(--f-yellow); color: var(--f-ink); font-family: var(--f-font); font-weight: 700; font-size: max(calc(13 * var(--u)), 12px); text-transform: uppercase; z-index: 2; }
.sh-bag { position: relative; display: block; width: max(calc(84 * var(--u)), 64px); height: max(calc(66 * var(--u)), 50px); margin-top: 14px; border-radius: 16px 16px 12px 12px; background: var(--cc); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.9), 0 8px 14px rgba(0, 0, 0, 0.35); }
.sh-bag::before { content: ''; position: absolute; left: 28%; right: 28%; top: -16px; height: 18px; border: 5px solid #fff; border-bottom: 0; border-radius: 12px 12px 0 0; }
.sh-bag::after { content: ''; position: absolute; left: 12%; right: 12%; top: 40%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.sh-case-art .sh-bag { width: auto; height: min(max(calc(66 * var(--u)), 50px), 100cqh - 22px); aspect-ratio: 84 / 66; }
.sh-bag.mini { width: 26px; height: 20px; margin: 6px 0 0; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.sh-bag.mini::before { top: -7px; height: 7px; border-width: 2px; }
.sh-bag.mini::after { display: none; }

.sh-heroes { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.sh-hero { position: relative; display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: 10px; overflow: hidden; background: linear-gradient(115deg, var(--oc) 0%, color-mix(in srgb, var(--oc) 55%, #1a0a46) 55%, #1a0a46 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35); margin-bottom: calc(4 * var(--u)); }
.sh-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 24px); }
.sh-hero > * { position: relative; }
.sh-hero-l { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(4 * var(--u)); }
.sh-hero .f-title { font-size: max(calc(30 * var(--u)), 24px); }
.sh-hero-sub { font-family: var(--f-font); font-weight: 600; text-transform: uppercase; font-size: max(calc(13 * var(--u)), 12px); color: rgba(255, 255, 255, 0.85); }
.sh-tag { padding: 2px 8px; border-radius: 4px; background: var(--f-yellow); color: var(--f-ink); font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(12 * var(--u)), 12px); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: calc(4 * var(--u)); }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.3); font-family: var(--f-font); font-weight: 700; font-size: max(calc(14 * var(--u)), 12px); }
.sh-chip .coin, .sh-chip .crystal { width: 1.1em; height: 1.1em; }
.sh-chip .crystal { height: 1.3em; }
.sh-chip-img { width: 26px; height: 26px; object-fit: contain; }
.sh-chip-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: rgba(255, 255, 255, 0.9); }
.sh-chip-ico svg, .sh-chip-ico img { width: 22px; height: 22px; }
.sh-chip-ico.noads { background: var(--f-red); position: relative; }
.sh-chip-ico.noads::after { content: ''; position: absolute; left: 4px; right: 4px; top: 11px; height: 4px; background: #fff; transform: rotate(-35deg); border-radius: 2px; }
.sh-hero-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: calc(8 * var(--u)); }
.sh-x { padding: 3px 10px; border-radius: 4px; background: var(--f-red); font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(14 * var(--u)), 13px); transform: rotate(-3deg); }
.sh-see .sh-hero { padding: calc(10 * var(--u)) calc(12 * var(--u)); }
.sh-see .sh-hero .f-title { font-size: max(calc(24 * var(--u)), 20px); }

.sh-foot { gap: calc(8 * var(--u)); padding-top: calc(4 * var(--u)); }
.sh-foot .f-btn { padding: 0 calc(16 * var(--u)); }
.sh-sel { display: flex; flex-direction: column; gap: 2px; }
.sh-sel b { font-family: var(--f-font); font-weight: 700; font-style: italic; text-transform: uppercase; color: #fff; font-size: max(calc(20 * var(--u)), 16px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-sel small { font-size: max(calc(12 * var(--u)), 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-hint { font-size: max(calc(14 * var(--u)), 12px); }
.sh-done { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; color: #63ff8a; font-size: max(calc(18 * var(--u)), 15px); padding: 0 6px; }

.sheet-over .pnl:has(.sh-odds) { background: linear-gradient(160deg, #3a1a8e, #1a0a46); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5); border-radius: 12px; }
.sh-odds { padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); }
.sh-odds .f-page-head .f-title { font-size: max(calc(26 * var(--u)), 22px); }
.sh-odds .f-section { margin-top: calc(6 * var(--u)); }
.sh-odds-t { width: 100%; border-collapse: collapse; font-family: var(--f-font); font-weight: 700; font-size: max(calc(15 * var(--u)), 14px); }
.sh-odds-t td { padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.sh-odds-t td:last-child { text-align: right; color: var(--f-yellow); }
.sh-odds-t small { font-weight: 600; color: var(--f-dim); }
.sh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--rc-free); transform: rotate(45deg); }
.sh-odds-t .common .sh-dot { background: var(--rc-common); } .sh-odds-t .rare .sh-dot { background: var(--rc-rare); }
.sh-odds-t .epic .sh-dot { background: var(--rc-epic); } .sh-odds-t .legendary .sh-dot { background: var(--rc-legendary); }
.sh-odds-t .coins .sh-dot { background: #ffd23f; border-radius: 50%; }

.sh-rv-page > :not(.sh-rv-glow) { position: relative; }
.sh-rv-page .f-page-head .f-title { flex: 1; text-shadow: 0 0 18px var(--glow), 0 3px 0 rgba(0, 0, 0, 0.3); animation: sh-pop 0.45s 0.1s both; }
.sh-rv-page { --glow: rgba(255, 255, 255, 0.35); }
.sh-rv-page:has(.sh-rv-glow.common) { --glow: var(--rc-common); } .sh-rv-page:has(.sh-rv-glow.rare) { --glow: var(--rc-rare); }
.sh-rv-page:has(.sh-rv-glow.epic) { --glow: var(--rc-epic); } .sh-rv-page:has(.sh-rv-glow.legendary) { --glow: var(--rc-legendary); }
.sh-rv-case { font-family: var(--f-font); font-weight: 600; text-transform: uppercase; color: var(--f-dim); font-size: max(calc(15 * var(--u)), 13px); }
.sh-rv-body { display: flex; flex-direction: column; justify-content: safe center; }
.sh-rv-glow { position: absolute; left: 50%; top: 52%; width: max(110vw, 110vh); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 30%, transparent) 0 8deg, transparent 8deg 22deg); mask: radial-gradient(circle, #000 0%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); animation: sh-spin 30s linear infinite; transition: opacity 0.6s; }
.sh-rv-page { overflow: hidden; }
.sh-reveal { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, calc(150 * var(--u)))); gap: calc(12 * var(--u)); justify-content: center; width: 100%; padding: 6px; }
.sh-reveal.many { flex: 1; min-height: 0; grid-template-columns: repeat(5, minmax(0, calc(150 * var(--u)))); grid-template-rows: repeat(2, minmax(0, calc(170 * var(--u)))); align-content: center; gap: calc(8 * var(--u)); }
.sh-reveal.many .sh-card { min-height: 0; }
.sh-reveal.many .sh-card .art { padding-top: 6px; }
.sh-reveal.many .sh-card .art svg, .sh-reveal.many .sh-card .art img { max-height: 100%; height: 100%; }
.sh-reveal.many .sh-card .bar { padding: 4px 8px 6px; }
.sh-reveal.many .sh-big-coin { width: auto !important; height: min(100%, calc(64 * var(--u))) !important; aspect-ratio: 1; }
@media (max-height: 460px) { .sh-reveal.many .flag, .sh-reveal.many .sh-card:not(.sh-rv-coins) .meta { display: none; } .sh-reveal.many .sh-card .art { padding: 6px 6px 0; } .sh-reveal.many .sh-card .name { font-size: 13px; } .sh-reveal.many .sh-card .meta { font-size: 12px; } }
.sh-rv.common { --rg: var(--rc-common); } .sh-rv.rare { --rg: var(--rc-rare); } .sh-rv.epic { --rg: var(--rc-epic); } .sh-rv.legendary { --rg: var(--rc-legendary); }
.sh-rv:not(.sel) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 22px var(--rg, transparent), 0 4px 12px rgba(0, 0, 0, 0.3); }
.done .sh-rv.legendary:not(.sel), .done .sh-rv.epic:not(.sel) { animation: sh-pulse 1.6s 0.4s ease-in-out infinite; }
.sh-rv .flag { background: rgba(0, 0, 0, 0.45); color: #fff; }
.sh-rv-coins { background: linear-gradient(160deg, #ffd96a, #c98a14); }
.sh-big-coin { width: max(calc(64 * var(--u)), 56px) !important; height: max(calc(64 * var(--u)), 56px) !important; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.sh-wear { color: #9fe0ff; text-transform: uppercase; }
.sh-rv-page .f-page-foot .f-btn { padding: 0 calc(18 * var(--u)); }

@keyframes sh-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sh-fade { from { opacity: 0; } }
@keyframes sh-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes sh-pulse { 50% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 38px var(--rg), 0 4px 12px rgba(0, 0, 0, 0.3); } }

.sh-rv-page > .sh-op, .sh-rv-page > .sh-op-flash { position: absolute; inset: 0; }
.sh-op { display: none; z-index: 5; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; padding: calc(env(safe-area-inset-top) + var(--edge)) calc(env(safe-area-inset-right) + var(--edge)) calc(env(safe-area-inset-bottom) + var(--edge)) calc(env(safe-area-inset-left) + var(--edge)); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sh-rv-page.run > .sh-op { display: flex; }
body:has(.sh-rv-page.run) .lnav { opacity: 0; pointer-events: none; }
body:has(.sh-rv-page) .lnav { transition: opacity 0.3s; }
.sh-rv-page .sh-rv-body { overflow: visible; }
.sh-rv-page.run > .f-page-head, .sh-rv-page.run > .f-page-foot { opacity: 0; pointer-events: none; }
.sh-rv-page.run:not(.burst) > .sh-rv-glow { opacity: 0; }
.sh-op-flash { z-index: 6; opacity: 0; pointer-events: none; background: #fff; }
.sh-op-name { flex: none; min-height: 48px; display: flex; align-items: center; font-family: var(--f-font); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: max(calc(30 * var(--u)), 22px); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); transition: opacity 0.3s; }
.burst .sh-op-name { opacity: 0; }
.sh-op-stage { position: relative; flex: 1; width: 100%; min-height: 0; display: grid; place-items: center; pointer-events: none; }
.sh-op-halo { position: absolute; left: 50%; top: 50%; width: min(86vh, 70vw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, currentColor 0%, color-mix(in srgb, currentColor 70%, transparent) 22%, color-mix(in srgb, currentColor 28%, transparent) 50%, transparent 74%); color: #fff; opacity: 0; transition: color 0.35s, opacity 0.35s; will-change: transform, opacity; }
.sh-op-case { position: relative; height: min(52vh, calc(300 * var(--u))); aspect-ratio: 1; will-change: transform, opacity; }
.sh-op-shake { width: 100%; height: 100%; display: grid; place-items: center; will-change: transform; }
.sh-op-shake svg, .sh-op-img { width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.sh-op .lid { transform-box: fill-box; transform-origin: 50% 100%; }
.sh-op-parts, .sh-star-parts { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.sh-op-parts i, .sh-star-parts i { position: absolute; left: 0; top: 0; width: max(calc(16 * var(--u)), 12px); height: max(calc(16 * var(--u)), 12px); border-radius: 3px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); background: currentColor; opacity: 0; }
.sh-op-skip { flex: none; min-height: 48px; display: flex; align-items: center; font-family: var(--f-font); font-weight: 600; text-transform: uppercase; font-size: max(calc(14 * var(--u)), 12px); color: var(--f-dim); animation: sh-blink 1.6s ease-in-out infinite; }
.sh-rv.wait { opacity: 0; }
.sh-reveal > .sh-card { z-index: 1; }
.sh-reveal > .sh-rv.star { z-index: 2; }
.sh-star-parts { z-index: 3; }
.sh-star-fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 80%, transparent), color-mix(in srgb, var(--sc) 25%, transparent) 55%, transparent); }
.sh-star-fx::before { content: ''; position: absolute; inset: -15%; border-radius: 50%; opacity: 0.55; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sc) 60%, transparent) 0 9deg, transparent 9deg 30deg); mask: radial-gradient(closest-side, #000 25%, transparent); -webkit-mask: radial-gradient(closest-side, #000 25%, transparent); animation: sh-rot 9s linear infinite; }
.sh-star-fx.big::before { opacity: 1; inset: -30%; animation-duration: 5s; }
.done .sh-star-fx { opacity: 0.75; }
.done .sh-star-fx.big { opacity: 1; }
.sh-rv.shine::before, .done .sh-rv.star.legendary::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%); transform: translateX(-130%); }
.sh-rv.shine::before { animation: sh-shine 0.9s 0.3s ease-in-out both; }
.done .sh-rv.star.legendary::before { animation: sh-shine-loop 3s 0.8s ease-in-out infinite; }
@keyframes sh-shine { to { transform: translateX(130%); } }
@keyframes sh-shine-loop { 35%, 100% { transform: translateX(130%); } }
@keyframes sh-rot { to { transform: rotate(360deg); } }
@keyframes sh-blink { 50% { opacity: 0.45; } }

@media (max-height: 460px) {
  .sh-tabs { order: 0; flex: 1 1 0; min-width: 0; }
  .sh-page:not(.sh-rv-page) .f-page-head > .f-title { flex: none; }
  body.mode-lobby .sh-page:not(.sh-rv-page) .f-page-head > .f-title { display: none; }
  .sh-page .f-page-head { min-height: 48px; }
  .sh-page { gap: 4px; }
  .sh-body .f-section { margin: 8px 0 6px; }
}
