:root {
    color-scheme: dark;
    --bg: #101114;
    --surface: #191a1f;
    --surface-raised: #202127;
    --text: #f7f7f8;
    --muted: #9698a2;
    --accent: #ff3b45;
    --accent-light: #ff6870;
    --line: rgba(255, 255, 255, .075);
    --tg-bg: var(--tg-theme-bg-color, var(--bg));
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--bg);
    -webkit-tap-highlight-color: transparent;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 59, 69, .075), transparent 34rem),
        var(--tg-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) 20px calc(104px + env(safe-area-inset-bottom));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 27px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 59, 69, .68);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 59, 69, .16), inset 0 0 10px rgba(255, 59, 69, .12);
}

.brand-mark::before, .brand-mark::after {
    position: absolute;
    content: "";
    background: var(--accent);
}

.brand-mark::before { width: 18px; height: 1px; }
.brand-mark::after { width: 1px; height: 18px; }
.brand-mark span { z-index: 1; width: 6px; height: 6px; border: 1px solid var(--accent-light); border-radius: 50%; background: var(--bg); }
.brand-name { font-size: 15px; font-weight: 850; letter-spacing: .17em; }
.topbar-label { color: #7f818b; font-size: 10px; font-weight: 800; letter-spacing: .2em; }

.page { animation: page-in .24s ease both; }
.page[hidden] { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.welcome-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-light); font-size: 9px; font-weight: 850; letter-spacing: .19em; }
h1, h2, p { margin-top: 0; }
.welcome-line h1, .page-heading h1 { margin-bottom: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 760; letter-spacing: -.04em; }
#player-name { color: #fff; }
.avatar { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #282930, #1a1b20); font-size: 20px; }

.hero-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    padding: 25px 22px;
    border: 1px solid rgba(255, 90, 99, .17);
    border-radius: 23px;
    background: linear-gradient(117deg, #26191d 0%, #1b1b20 51%, #17181c 100%);
    box-shadow: 0 17px 44px rgba(0, 0, 0, .2);
}

.hero-glow { position: absolute; top: -125px; right: -71px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 59, 69, .2), rgba(255, 59, 69, 0) 70%); }
.hero-content { position: relative; z-index: 2; max-width: 275px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: #c4aeb0; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255, 59, 69, .75); }
.hero-card h2 { margin-bottom: 10px; font-size: clamp(27px, 7vw, 34px); line-height: 1.02; font-weight: 850; letter-spacing: -.055em; }
.hero-card h2 span { color: var(--accent-light); }
.hero-card p { max-width: 240px; margin-bottom: 17px; color: #aaaab1; font-size: 12px; line-height: 1.5; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 42px; padding: 0 15px; border: 0; border-radius: 13px; cursor: pointer; font-size: 12px; font-weight: 750; transition: transform .16s ease, filter .16s ease; }
.primary-button { background: linear-gradient(105deg, #ff3944, #e72431); color: #fff; box-shadow: 0 7px 22px rgba(255, 41, 53, .2); }
.primary-button span { font-size: 16px; }
.primary-button:active, .secondary-button:active, .section-card:active { transform: scale(.985); }

.target-art { position: absolute; top: 42px; right: -20px; width: 210px; height: 210px; opacity: .77; }
.target-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255, 93, 103, .23); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 190px; height: 190px; }
.ring-two { width: 137px; height: 137px; border-color: rgba(255, 93, 103, .35); }
.ring-three { width: 82px; height: 82px; border-color: rgba(255, 93, 103, .52); }
.target-center { position: absolute; top: 50%; left: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 23px 7px rgba(255, 59, 69, .35); transform: translate(-50%, -50%); }
.target-line { position: absolute; top: 50%; left: 4%; width: 92%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 93, 103, .32), transparent); }
.target-line-y { transform: rotate(90deg); }
.hero-index { position: absolute; right: 19px; bottom: 17px; color: rgba(255, 255, 255, .18); font-size: 11px; font-weight: 800; letter-spacing: .18em; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 29px 1px 13px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.025em; }
.section-card { display: flex; width: 100%; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(110deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.section-card:hover { border-color: rgba(255, 94, 104, .28); }
.home-terms-link { margin-top: 10px; }
.section-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border: 1px solid rgba(255, 64, 76, .22); border-radius: 14px; background: rgba(255, 59, 69, .1); color: var(--accent-light); font-size: 20px; }
.section-copy { display: grid; gap: 5px; }
.section-copy strong { font-size: 14px; }
.section-copy span { color: var(--muted); font-size: 11px; }
.section-arrow { margin-left: auto; color: #888a94; font-size: 19px; }
.footer-note { margin: 18px 0 0; color: #777983; font-size: 10px; text-align: center; }

.page-heading { display: flex; align-items: center; gap: 13px; margin: 6px 0 21px; }
.page-heading .eyebrow { margin-bottom: 5px; }
.back-button { display: grid; width: 41px; height: 41px; flex: 0 0 41px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: #ddd; font-size: 20px; cursor: pointer; }
.cases-banner { position: relative; display: grid; min-height: 224px; overflow: hidden; place-items: center; border: 1px solid rgba(255, 91, 100, .16); border-radius: 23px; background: radial-gradient(ellipse at 50% 54%, rgba(255, 52, 64, .15), transparent 39%), linear-gradient(145deg, #211b20, #17181d 72%); }
.banner-label { position: absolute; top: 15px; right: 15px; padding: 7px 9px; border: 1px solid rgba(255, 106, 114, .25); border-radius: 8px; background: rgba(255, 59, 69, .09); color: var(--accent-light); font-size: 8px; font-weight: 850; letter-spacing: .17em; }
.case-illustration { position: relative; display: grid; width: 174px; height: 162px; place-items: center; }
.case-aura { position: absolute; width: 150px; height: 96px; border-radius: 50%; background: rgba(255, 53, 66, .17); filter: blur(27px); }
.case-box { position: relative; display: block; width: 112px; height: 80px; margin-top: 24px; border: 1px solid #8e333b; border-radius: 12px 12px 17px 17px; background: linear-gradient(145deg, #3a252b, #211b21 68%); box-shadow: 0 20px 35px rgba(0, 0, 0, .4), inset 0 -8px 15px rgba(255, 40, 55, .08); transform: perspective(240px) rotateX(-5deg) rotateZ(-4deg); }
.case-lid { position: absolute; top: -21px; left: -5px; width: 120px; height: 26px; border: 1px solid #a73b46; border-radius: 9px 9px 5px 5px; background: linear-gradient(100deg, #63303a, #3b252c); }
.case-box::before, .case-box::after { position: absolute; top: 1px; bottom: 1px; width: 9px; content: ""; border-right: 1px solid rgba(255, 93, 104, .28); border-left: 1px solid rgba(255, 93, 104, .12); background: rgba(255, 69, 81, .055); }
.case-box::before { left: 12px; }
.case-box::after { right: 12px; }
.case-lock { position: absolute; z-index: 1; top: 25px; left: 50%; width: 17px; height: 19px; border: 1px solid #ff6670; border-radius: 5px; background: #822e39; box-shadow: 0 0 13px rgba(255, 59, 69, .3); transform: translateX(-50%); }
.case-lock::before { position: absolute; top: -9px; left: 3px; width: 9px; height: 10px; content: ""; border: 1px solid #ff6670; border-bottom: 0; border-radius: 8px 8px 0 0; }
.case-star { position: absolute; top: 3px; left: 50%; color: #ffb1b5; font-size: 14px; text-shadow: 0 0 13px #ff4b57; transform: translateX(-50%); }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 27px 16px 4px; text-align: center; }
.empty-icon { display: grid; width: 38px; height: 38px; margin-bottom: 16px; place-items: center; border: 1px solid rgba(255, 68, 79, .25); border-radius: 13px; background: rgba(255, 59, 69, .08); color: var(--accent-light); font-size: 17px; }
.empty-state .eyebrow { margin-bottom: 7px; }
.empty-state h2 { margin-bottom: 9px; font-size: 20px; letter-spacing: -.035em; }
.empty-state > p:not(.eyebrow) { max-width: 300px; margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.secondary-button { min-height: 39px; border: 1px solid var(--line); background: var(--surface-raised); color: #e3e3e5; }

.cases-intro { margin: -3px 1px 17px; color: #b2b3bb; font-size: 12px; line-height: 1.55; }
.case-rules { margin: 0 0 15px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; background: rgba(255, 255, 255, .025); color: #a9aab3; font-size: 10px; line-height: 1.5; }
.case-rules summary { color: #d7d7dc; font-size: 10px; font-weight: 750; cursor: pointer; }
.case-rules p { margin: 9px 0 0; }
.case-rules p + p { color: #92949e; }
.case-list { display: grid; gap: 14px; }
.case-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018) 50%, rgba(255, 59, 69, .035)); box-shadow: 0 14px 32px rgba(0, 0, 0, .14); }
.case-card::before { position: absolute; top: 0; right: 12%; left: 12%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, rgba(255, 105, 115, .44), transparent); }
.case-tier-two { border-color: rgba(255, 173, 77, .17); }
.case-tier-two::before { background: linear-gradient(90deg, transparent, rgba(255, 189, 98, .52), transparent); }
.case-tier-three { border-color: rgba(188, 132, 255, .2); background: linear-gradient(145deg, rgba(88, 51, 112, .15), rgba(255, 255, 255, .018) 53%, rgba(255, 59, 69, .04)); }
.case-tier-three::before { background: linear-gradient(90deg, transparent, rgba(204, 155, 255, .58), transparent); }
.case-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.case-card-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.case-number { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgba(255, 86, 97, .25); border-radius: 13px; background: rgba(255, 59, 69, .1); color: var(--accent-light); font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.case-tier-two .case-number { border-color: rgba(255, 189, 98, .3); background: rgba(255, 171, 64, .09); color: #ffc274; }
.case-tier-three .case-number { border-color: rgba(204, 155, 255, .3); background: rgba(175, 112, 237, .11); color: #d4aaff; }
.case-card-title .eyebrow { margin-bottom: 3px; font-size: 8px; }
.case-card-title h2 { margin: 0; font-size: 17px; font-weight: 780; letter-spacing: -.03em; }
.case-price { flex: 0 0 auto; color: #fff; font-size: 16px; font-weight: 850; letter-spacing: -.025em; }
.case-price small { color: #74ccff; font-size: 15px; }
.case-guarantees { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 12px; background: rgba(0, 0, 0, .14); color: #c8c8ce; font-size: 11px; line-height: 1.4; }
.case-guarantees b { color: #fff; font-weight: 750; }
.reward-group, .bonus-group { margin-top: 14px; }
.reward-group h3, .bonus-group h3 { margin: 0 0 8px; color: #b1b2ba; font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.drop-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 1px; border-bottom: 1px solid rgba(255, 255, 255, .045); color: #e7e7e9; font-size: 12px; }
.drop-row b { color: #ffb5b9; font-size: 11px; }
.case-tier-two .drop-row b { color: #ffd092; }
.case-tier-three .drop-row b { color: #d9b6ff; }
.expected-value { margin: 9px 0 0; color: #9b9da7; font-size: 10px; }
.expected-value b { color: #fff; font-size: 11px; }
.bonus-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bonus-chip-row > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(255, 255, 255, .035); color: #b9bac2; font-size: 9px; line-height: 1.25; }
.bonus-chip-row b { color: #f5d27d; font-size: 9px; }
.case-buy-button { width: 100%; min-height: 42px; margin-top: 15px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .045); color: #888a94; font-size: 11px; font-weight: 750; cursor: not-allowed; }
.case-buy-button:not(:disabled) { border-color: rgba(255, 74, 85, .38); background: linear-gradient(105deg, #ff3944, #e72431); color: #fff; cursor: pointer; box-shadow: 0 7px 20px rgba(255, 41, 53, .15); transition: transform .16s ease, filter .16s ease, opacity .16s ease; }
.case-buy-button:not(:disabled):hover { filter: brightness(1.08); }
.case-buy-button:not(:disabled):active { transform: scale(.99); }
.case-buy-button:disabled { opacity: .6; }
.case-disclaimer, .payment-note { margin: 13px 2px 0; color: #83858f; font-size: 10px; line-height: 1.5; }
.payment-note { margin-top: 6px; color: #aaaab2; text-align: center; }
.payment-note.is-error { color: #ff9399; }
.case-loading { margin: 0; padding: 24px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.case-loading.is-error { color: #ff9399; }

.catalog-card { display: grid; width: 100%; gap: 9px; padding: 17px; border: 1px solid rgba(255, 92, 102, .22); border-radius: 20px; background: linear-gradient(125deg, #251b20, #191a1f 70%); color: var(--text); cursor: pointer; text-align: left; box-shadow: 0 15px 30px rgba(0, 0, 0, .17); }
.catalog-card::before { content: none; }
.catalog-card.case-tier-two { border-color: rgba(255, 183, 84, .28); background: linear-gradient(125deg, #29221b, #191a1f 70%); }
.catalog-card.case-tier-three { border-color: rgba(200, 143, 255, .3); background: linear-gradient(125deg, #282032, #191a1f 70%); }
.catalog-card:focus-visible, .voucher-list button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.catalog-card-top { display: flex; justify-content: space-between; align-items: center; }
.catalog-card > .eyebrow { margin: 2px 0 0; }
.catalog-card > strong { font-size: 21px; letter-spacing: -.035em; }
.catalog-main { color: #fff; font-size: 17px; font-weight: 800; }
.catalog-perks { color: #b7b7bf; font-size: 11px; }
.catalog-open { display: flex; justify-content: space-between; margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--accent-light); font-size: 11px; font-weight: 760; }
.detail-hero { display: grid; gap: 9px; padding: 22px 18px; border: 1px solid rgba(255, 91, 100, .22); border-radius: 20px; background: radial-gradient(circle at 80% 10%, rgba(255, 65, 75, .18), transparent 50%), #211b20; }
.detail-hero > strong { font-size: clamp(25px, 7vw, 35px); letter-spacing: -.055em; }
.detail-price { margin-top: 4px; color: #fff; font-size: 19px; font-weight: 850; }
.detail-price small { display: block; margin-top: 3px; color: #aaaab3; font-size: 11px; font-weight: 600; }
.detail-block { margin-top: 17px; }
.detail-block h2 { margin-bottom: 9px; font-size: 13px; letter-spacing: -.01em; }
.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reward-tile { display: flex; min-height: 90px; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, .085); border-radius: 14px; background: linear-gradient(140deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)); }
.reward-tile strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.28; }
.reward-symbol { font-size: 22px; line-height: 1; }
.bonus-tile { border-color: rgba(255, 172, 88, .17); background: linear-gradient(140deg, rgba(255, 177, 87, .08), rgba(255, 255, 255, .018)); }
.payment-panel { display: grid; gap: 9px; margin-top: 20px; padding: 17px; border: 1px solid rgba(255, 91, 100, .19); border-radius: 18px; background: rgba(255, 255, 255, .025); }
.payment-panel h2 { margin: -3px 0 5px; font-size: 17px; }
.payment-action { width: 100%; min-height: 45px; text-decoration: none; cursor: pointer; }
.payment-panel .payment-note { min-height: 15px; }

.voucher-panel { margin-top: 3px; padding: 11px 0 0; border-top: 1px solid var(--line); }
.voucher-panel h2 { margin-bottom: 7px; font-size: 17px; }
.voucher-panel > p:not(.eyebrow) { color: #aaaab3; font-size: 11px; line-height: 1.5; }
.voucher-form { display: flex; gap: 8px; margin-top: 12px; }
.voucher-form input { flex: 1; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; text-transform: uppercase; }
.voucher-form input:focus { border-color: var(--accent); }
.voucher-form button { gap: 0; }
.voucher-list { display: grid; gap: 7px; margin-top: 12px; }
.voucher-list button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); color: var(--text); cursor: pointer; text-align: left; font-size: 11px; }
.voucher-note { min-height: 15px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.voucher-note.is-error { color: #ff9399; }

.case-purchase-dialog {
    width: min(92vw, 430px);
    max-height: min(84vh, 720px);
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255, 91, 100, .24);
    border-radius: 20px;
    background: #191a20;
    color: #f3f3f5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.case-purchase-dialog::backdrop { background: rgba(5, 6, 9, .78); backdrop-filter: blur(5px); }
.dialog-content { padding: 21px; }
.dialog-content h2 { margin: 0 0 5px; font-size: 21px; }
.dialog-price { margin: 0 0 14px; color: #84d1ff; font-size: 13px; font-weight: 800; }
.terms-page-copy { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: #c5c5cc; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.terms-consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 1px; color: #e0e0e4; font-size: 11px; line-height: 1.4; cursor: pointer; }
.terms-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: #fa424d; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions .secondary-button { min-height: 42px; padding: 0 13px; font-size: 11px; cursor: pointer; }
.dialog-actions .primary-button { min-height: 42px; padding: 0 13px; border-radius: 12px; font-size: 11px; }
.dialog-actions .primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.reveal-overlay { width: min(420px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(255, 95, 105, .36); border-radius: 24px; background: #1d1c23; color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 35px rgba(255, 52, 64, .13); }
.reveal-overlay::backdrop { background: rgba(5, 6, 9, .88); backdrop-filter: blur(12px); }
.reveal-card { width: 100%; padding: 24px 20px; border-radius: inherit; background: radial-gradient(circle at 50% 10%, rgba(255, 62, 73, .2), transparent 55%); text-align: center; }
.reveal-card h2 { margin: 0 0 18px; font-size: clamp(20px, 6vw, 24px); overflow-wrap: anywhere; }
.reveal-window { position: relative; width: 100%; min-width: 0; overflow: hidden; height: 104px; margin: 0 auto 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 17px; background: linear-gradient(180deg, #131318, #272129 48%, #131318); }
.reveal-window::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #17151b, transparent 22% 78%, #17151b), linear-gradient(180deg, rgba(0,0,0,.6), transparent 28% 72%, rgba(0,0,0,.6)); }
.reveal-track { display: flex; width: max-content; height: 100%; align-items: center; gap: 9px; padding: 0 12px; }
.reveal-track span { display: grid; width: 72px; height: 72px; flex: 0 0 72px; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: linear-gradient(135deg, #453039, #252129); font-size: 30px; box-shadow: inset 0 0 16px rgba(255,255,255,.03); }
.is-spinning .reveal-track { animation: case-roll 4.8s linear forwards; will-change: transform; }
@keyframes case-roll {
    0% { transform: translateX(0); }
    70% { transform: translateX(var(--reel-fast-stop, -1134px)); }
    88% { transform: translateX(var(--reel-slow-stop, -1377px)); }
    100% { transform: translateX(var(--reel-stop, -1458px)); }
}
.reveal-status { margin: 0; color: #c5bac1; font-size: 12px; }
.reveal-result { margin: 18px 0 0; padding: 15px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(0, 0, 0, .2); color: #fff; font: inherit; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.reveal-close { width: 100%; margin-top: 17px; }
.reveal-overlay:not(.is-spinning) .reveal-window { box-shadow: 0 0 30px rgba(255, 72, 84, .25); }

@media (max-width: 480px) {
    .reveal-overlay { --reel-fast-stop: -966px; --reel-slow-stop: -1173px; --reel-stop: -1242px; }
    .reveal-overlay { width: calc(100vw - 28px); max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); border-radius: 20px; }
    .reveal-card { padding: 20px 15px; }
    .reveal-window { height: 88px; margin-bottom: 15px; }
    .reveal-track span { width: 60px; height: 60px; flex-basis: 60px; font-size: 26px; }
    .reveal-result { max-height: 36dvh; overflow: auto; padding: 12px; font-size: 11px; }
}

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 8px; padding: 9px 20px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(17, 18, 22, .91); backdrop-filter: blur(20px); }
.nav-item { display: flex; width: min(50%, 220px); min-height: 55px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 14px; background: transparent; color: #858792; cursor: pointer; font-size: 10px; font-weight: 650; transition: background .18s ease, color .18s ease; }
.nav-item.is-active { background: rgba(255, 255, 255, .055); color: var(--accent-light); }
.nav-icon { height: 20px; font-size: 21px; line-height: 20px; }
.nav-cases-icon { font-size: 17px; }

@media (min-width: 600px) {
    .app-shell { padding-right: 26px; padding-left: 26px; }
    .hero-card { min-height: 270px; padding: 31px 27px; }
    .target-art { right: 0; transform: scale(1.1); }
    .cases-banner { min-height: 260px; }
}

@media (max-width: 360px) {
    .app-shell { padding-right: 15px; padding-left: 15px; }
    .case-card { padding: 14px; }
    .case-guarantees { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
