/* ===== СТИЛИ РАЗДЕЛА CASES: карточки кейсов, страница кейса, рулетка, попап выигрыша ===== */


body.mobile-fullscreen .cd-topbar {
    padding-top: calc(12px + var(--tg-safe-area-top, 0px) + var(--tg-content-safe-area-top, 0px));
}



.case-particle {
    position: absolute;
    background: #2382ff;
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    animation: caseParticleTwinkle 3s infinite ease-in-out;
    filter: drop-shadow(0 0 3px rgba(35, 130, 255, 0.5));
}



/* ── FEATURED CARD ────────────────── */

.case-featured {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(61, 228, 143, 0.08) 0%, rgba(28, 28, 30, 0.95) 60%);
    border: 1px solid rgba(61, 228, 143, 0.25);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s;
}



.case-featured::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 228, 143, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}



.case-featured:active {
    transform: scale(0.98);
}



.case-featured-image-wrap {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: caseImgFloat 4s ease-in-out infinite;
}



.case-featured-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(61, 228, 143, 0.25));
}



.case-featured-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}



.case-featured-badge {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(61, 228, 143, 0.15);
    color: #3de48f;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}



.case-featured-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}



.case-featured-desc {
    font-size: 12px;
    color: #8e8e93;
    line-height: 1.3;
    margin-bottom: 6px;
}



.case-featured-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    width: auto;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}



/* ── CASE CARD ────────────────────── */

/* Glow color variables */
.case-glow-green  { --cg: rgba(61, 228, 143, 0.4);  --cgd: rgba(61, 228, 143, 0.1);  --cgb: rgba(61, 228, 143, 0.18); }


.case-glow-orange { --cg: rgba(255, 165, 50, 0.4);   --cgd: rgba(255, 165, 50, 0.1);   --cgb: rgba(255, 165, 50, 0.18); }


.case-glow-blue   { --cg: rgba(35, 130, 255, 0.4);   --cgd: rgba(35, 130, 255, 0.1);   --cgb: rgba(35, 130, 255, 0.18); }


.case-glow-purple { --cg: rgba(180, 100, 255, 0.4);  --cgd: rgba(180, 100, 255, 0.1);  --cgb: rgba(180, 100, 255, 0.18); }


.case-glow-cyan   { --cg: rgba(50, 220, 220, 0.4);   --cgd: rgba(50, 220, 220, 0.1);   --cgb: rgba(50, 220, 220, 0.18); }


.case-glow-pink   { --cg: rgba(255, 100, 180, 0.4);  --cgd: rgba(255, 100, 180, 0.1);  --cgb: rgba(255, 100, 180, 0.18); }


.case-glow-gold   { --cg: rgba(255, 216, 67, 0.4);   --cgd: rgba(255, 216, 67, 0.1);   --cgb: rgba(255, 216, 67, 0.18); }



.case-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(160deg, var(--cgd, rgba(255,255,255,0.04)) 0%, #1a1a1c 55%);
    border: 1px solid var(--cgb, rgba(255, 255, 255, 0.07));
    border-radius: 18px;
    padding: 14px 10px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s;
    overflow: hidden;
}



/* subtle inner top-light */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cg, rgba(255,255,255,0.1)), transparent);
}



.case-card:active {
    transform: scale(0.96);
}



.case-card-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 6px 4px;
    min-height: 110px;
}



/* glow blob behind image */
.case-card-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cgd, rgba(255,255,255,0.06)) 0%, transparent 70%);
    filter: blur(16px);
    opacity: 1;
}



.case-card-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    position: relative;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 6px 14px var(--cgd, rgba(0,0,0,0.2)));
    animation: caseImgFloat 4s ease-in-out infinite;
    will-change: transform;
}



/* stagger float per card position to avoid sync */
.cases-grid .case-card:nth-child(even) .case-card-image  { animation-delay: -2s; }


.cases-grid .case-card:nth-child(3n) .case-card-image    { animation-delay: -1s; }



.case-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #dde0e8;
    margin: 8px 0 10px;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



.case-badge-new {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(90deg, #3fa511 0%, #98da26 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 40px;
    z-index: 2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}



/* ── CASE BUTTONS ─────────────────── */

.case-btn-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(61, 228, 143, 0.08);
    border: 1.5px solid rgba(61, 228, 143, 0.5);
    color: #3de48f;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    font-family: inherit;
    box-shadow: 0 0 10px rgba(61, 228, 143, 0.1);
}



.case-btn-free:active {
    transform: scale(0.96);
    background: rgba(61, 228, 143, 0.15);
    box-shadow: 0 0 18px rgba(61, 228, 143, 0.25);
}



.case-btn-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: color-mix(in srgb, var(--cg, #ffffff) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--cg, #ffffff) 30%, transparent);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    font-family: inherit;
    box-shadow: 0 0 8px color-mix(in srgb, var(--cg, #ffffff) 10%, transparent);
}



.case-btn-price:active {
    transform: scale(0.96);
    background: color-mix(in srgb, var(--cg, #ffffff) 15%, transparent);
}



.case-star-icon {
    font-size: 13px;
    line-height: 1;
    color: #FFD843;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(255, 216, 67, 0.5);
}



/* ══════════════════════════════════════════════════════
   CASE DETAIL VIEW  (.cd-*)
══════════════════════════════════════════════════════ */

.cd-view {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    z-index: 500;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding-bottom: 48px;
}



/* ── Top bar ──────────────────────────────────────── */
.cd-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 8px;
    /* Отступ под статус-бар iOS (notch / Dynamic Island) */
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15,15,15,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}



.cd-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}



.cd-back-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.12);
}



.cd-case-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.cd-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,216,67,0.12);
    border: 1.5px solid rgba(255,216,67,0.4);
    color: #FFD843;
    white-space: nowrap;
    flex-shrink: 0;
}



.cd-price-badge.cd-free {
    background: rgba(61,228,143,0.12);
    border-color: rgba(61,228,143,0.4);
    color: #3de48f;
}



.cd-price-star {
    color: #FFD843;
}



.cd-price-star-sm {
    color: #FFD843;
    font-size: 11px;
    line-height: 1;
}



/* ── Hero ─────────────────────────────────────────── */
.cd-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 16px;
    text-align: center;
}



.cd-case-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 220px;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.55;
}



.cd-case-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: caseImgFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6));
}



.cd-hero-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}



.cd-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}



/* ── Reel ─────────────────────────────────────────── */
.cd-reel-section {
    padding: 14px 0;
}



.cd-reel-wrapper {
    position: relative;
    overflow: hidden;
    height: 152px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 2px 16px rgba(0,0,0,0.3), inset 0 -2px 16px rgba(0,0,0,0.3);
}



.cd-reel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 8px;
    will-change: transform;
}



.cd-reel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    min-width: 90px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    gap: 4px;
    padding: 8px 4px;
    transition: none;
}



.cd-reel-emoji {
    font-size: 46px;
    line-height: 1;
    display: block;
}



.cd-reel-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}



.cd-reel-name {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 0 3px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    max-height: 26px;
}



.cd-reel-fade-left,
.cd-reel-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}



.cd-reel-fade-left {
    left: 0;
    background: linear-gradient(90deg, #0f0f0f 0%, transparent 100%);
}



.cd-reel-fade-right {
    right: 0;
    background: linear-gradient(270deg, #0f0f0f 0%, transparent 100%);
}



.cd-reel-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2382ff, #60aaff);
    border-radius: 2px;
    z-index: 3;
    box-shadow: 0 0 12px rgba(35,130,255,0.9);
}



.cd-reel-indicator::before,
.cd-reel-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}



.cd-reel-indicator::before {
    top: -1px;
    border-bottom: 7px solid #2382ff;
}



.cd-reel-indicator::after {
    bottom: -1px;
    border-top: 7px solid #2382ff;
}



/* ── Promo code input ────────────────────────────── */
.cd-promo-wrap {
    padding: 14px 16px 4px;
}



.cd-promo-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}



.cd-promo-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    caret-color: transparent;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.cd-promo-input::placeholder {
    color: rgba(255,255,255,0.25);
    text-transform: none;
    letter-spacing: 0;
}


.cd-promo-input:focus {
    border-color: rgba(35,130,255,0.7);
    background: rgba(35,130,255,0.06);
    box-shadow: 0 0 0 3px rgba(35,130,255,0.12);
}


.cd-promo-input.error {
    border-color: #ff4757;
    background: rgba(255,71,87,0.06);
    animation: promoShake 0.4s ease;
}



.cd-promo-apply-btn {
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3de48f 0%, #25b872 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(61,228,143,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    -webkit-tap-highlight-color: transparent;
}


.cd-promo-apply-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(61,228,143,0.25);
}


.cd-promo-apply-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}



.cd-promo-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0 4px;
    color: #ff4757;
    font-size: 13px;
    font-weight: 600;
    animation: promoErrorIn 0.3s ease;
}



.cd-promo-success {
    color: #2ed573;
}


.cd-promo-success svg { stroke: #2ed573; }



/* ── Open button ──────────────────────────────────── */
.cd-open-wrap {
    padding: 14px 16px 8px;
}



.cd-open-btn {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2c8fff 0%, #1565d8 60%, #2382ff 100%);
    background-size: 200% 100%;
    border: none;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 6px 28px rgba(35,130,255,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}



.cd-open-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: cdBtnShimmer 2.4s ease-in-out infinite;
}



.cd-open-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(35,130,255,0.3);
}



.cd-open-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



/* ── Items section ────────────────────────────────── */
.cd-items-section {
    padding: 16px 12px 0;
}



.cd-items-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    padding: 0 4px;
}



.cd-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}



.cd-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 10px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    gap: 6px;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.3s;
}


.cd-item-card:active {
    transform: scale(0.97);
}



/* Glow behind item image */
.cd-item-card::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 50%;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.2;
    background: var(--item-glow, #fff);
    pointer-events: none;
    z-index: 0;
}



/* Chance badge top-right */
.cd-item-chance-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
}



.cd-item-emoji {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    border: 1px solid;
}



.cd-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}



.cd-item-thumb img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}



.cd-item-info {
    width: 100%;
}



.cd-item-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 28px;
}



.cd-item-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #FFD843;
    margin-top: 2px;
    background: rgba(255,216,67,0.08);
    padding: 2px 8px;
    border-radius: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
}



.cd-ton-price {
    color: #2AABEE;
    font-weight: 700;
    font-size: 11px;
}



.cd-item-chance {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    margin-top: 1px;
    display: none;  /* replaced by chance badge */
}



/* ── Win popup ────────────────────────────────────── */
.cd-win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}



.cd-win-overlay.open {
    opacity: 1;
}



.cd-win-popup {
    position: relative;
    background: linear-gradient(160deg, #1e1e22 0%, #141416 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 36px 24px 26px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}



/* Top shimmer line */
.cd-win-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}



.cd-win-overlay.open .cd-win-popup {
    transform: scale(1) translateY(0);
}



.cd-win-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(35,130,255,0.2) 0%, transparent 65%);
    pointer-events: none;
    transition: background 0.4s ease;
    animation: cdWinGlowPulse 2.5s ease-in-out infinite;
}



.cd-win-label {
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, #FFD843, #FFA500, #FFD843);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    animation: cdLabelShimmer 2s linear infinite;
}



.cd-win-emoji {
    font-size: 84px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    animation: cdWinBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}



.cd-win-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    animation: cdWinBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}



.cd-win-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}



.cd-win-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 700;
    color: #FFD843;
    margin-bottom: 24px;
    background: rgba(255,216,67,0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,216,67,0.2);
}



.cd-win-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.cd-win-get-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3de48f 0%, #25b872 100%);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(61, 228, 143, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.01em;
}



.cd-win-get-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(61, 228, 143, 0.25);
}



.cd-win-close-btn {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.01em;
}



.cd-win-close-btn:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.12);
}



/* ── Case detail: hide HTML back btn when TG BackButton active ── */
.tg-back-active .cd-back-btn {
    display: none !important;
}



/* ── Case items: remove square border around emoji/img ── */
.cd-item-emoji {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}


.cd-item-emoji img {
    border-radius: 8px;
}



/* ── Open btn: star img alignment ── */
.cd-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


.cd-open-btn img {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    flex-shrink: 0;
}



/* ── Reel indicator: remove triangles ── */
.cd-reel-indicator::before,
.cd-reel-indicator::after {
    display: none;
}
