    .hidden { display: none !important; }

    /* =====================================================
       === INVENTORY BAR ===
       ===================================================== */
/* =====================================================
       === TOP NAV ===
       ===================================================== */

    /* =====================================================
       === CASE PAGE ===
       ===================================================== */
    .case-page {
      background: #141420;
      min-height: calc(100vh - 200px);
    }

    /* =====================================================
       === BREADCRUMB — большая жёлтая иконка домика в квадрате с обводкой ===
       ===================================================== */
    /* =====================================================
       === CASE TITLE + HEART BUTTON ===
       ===================================================== */
    .case-title-row {
      display: flex; align-items: center; justify-content: center; gap: 14px;
      padding: 24px 24px 0; position: relative;
    }
    .case-title {
      font-size: 38px; color: #fff; font-weight: 800;
      text-transform: uppercase; letter-spacing: 4px; text-align: center;
    }
    .case-heart-btn {
      width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.2s;
      border: 1px solid #2a2a40; border-radius: 10px;
      background: transparent;
      color: #8888aa;
    }
    .case-heart-btn:hover { color: #eb4b4b; border-color: rgba(235,75,75,0.3); background: rgba(235,75,75,0.05); }
    .case-heart-btn.active { color: #eb4b4b; border-color: rgba(235,75,75,0.4); background: rgba(235,75,75,0.08); }
    .case-heart-btn svg { width: 20px; height: 20px; fill: currentColor; }

    /* =====================================================
       === BONUS PILL TABS — большие со скруглением ===
       ===================================================== */
    .case-tabs {
      display: flex; align-items: center; justify-content: center; gap: 12px;
      padding: 20px 24px 0;
    }
    .case-tab-pill {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 22px;
      border-radius: 12px;
      border: 1px solid;
      cursor: pointer; transition: all 0.2s;
      font-size: 14px; font-weight: 500;
      background: transparent;
    }
    .case-tab-pill.bonus {
      border-color: rgba(75,181,67,0.4);
      color: #4BB543;
    }
    .case-tab-pill.bonus:hover {
      background: rgba(75,181,67,0.06);
      border-color: rgba(75,181,67,0.6);
    }
    .case-tab-pill.progress {
      border-color: #2a2a40;
      color: #8888aa;
    }
    .case-tab-pill.progress:hover { border-color: #3a3a55; color: #fff; }
    .case-tab-pill .pill-icon {
      width: 22px; height: 22px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .case-tab-pill.bonus .pill-icon {
      background: rgba(75,181,67,0.18);
      border: 1px solid rgba(75,181,67,0.35);
    }
    .case-tab-pill.bonus .pill-icon img,
    .case-tab-pill.bonus .pill-icon svg { width: 12px; height: 12px; }
    .case-tab-pill.progress .pill-icon {
      background: rgba(75,105,255,0.15);
      border: 1px solid rgba(75,105,255,0.4);
    }
    .case-tab-pill.progress .pill-icon img,
    .case-tab-pill.progress .pill-icon svg { width: 16px; height: 16px; }

    /* =====================================================
       === HERO SECTION (case image / reel / result) ===
       ===================================================== */
    .case-hero {
      position: relative;
      background:
        url("../../img/herobg.png") center center / cover no-repeat,
        linear-gradient(180deg, #08080f 0%, #0d0d1a 50%, #141420 100%);
      overflow: hidden;
      padding: 0;
      margin-top: 16px;
    }
    .case-hero::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(8,8,15,0.3) 0%, rgba(8,8,15,0.1) 40%, rgba(20,20,32,0.85) 100%);
      pointer-events: none; z-index: 0;
    }

    .case-spotlight {
      position: absolute; inset: 0; pointer-events: none; z-index: 0;
      background:
        radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255,180,0,0.18) 0%, transparent 65%);
    }

    .case-fog {
      position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
    }
    .fog-particle {
      position: absolute; border-radius: 50%;
      background: radial-gradient(circle, rgba(255,150,0,0.06) 0%, transparent 70%);
      animation: fogFloat linear infinite;
    }
    @keyframes fogFloat {
      0%   { transform: translateY(100%) translateX(0) scale(0.8); opacity: 0; }
      20%  { opacity: 1; }
      80%  { opacity: 0.6; }
      100% { transform: translateY(-60%) translateX(20px) scale(1.2); opacity: 0; }
    }

    /* === IDLE STATE === */
    .case-idle {
      display: flex; flex-direction: column; align-items: center;
      padding: 20px 24px 16px; position: relative; z-index: 1;
      transition: opacity 0.5s, transform 0.5s;
    }
    .case-idle.exit {
      opacity: 0; transform: translateY(30px) scale(0.9);
      pointer-events: none;
    }

    .case-image-wrapper {
      position: relative; width: 420px; height: 340px;
      display: flex; align-items: center; justify-content: center;
    }
    .case-glow {
      position: absolute; width: 320px; height: 140px; bottom: 16px; left: 50%;
      transform: translateX(-50%);
      background: radial-gradient(ellipse, rgba(255,180,0,0.4) 0%, transparent 70%);
      animation: casePulse 2.4s ease-in-out infinite;
      z-index: 0;
    }
    @keyframes casePulse {
      0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
      50%      { opacity: 1;    transform: translateX(-50%) scale(1.12); }
    }
    .case-img {
      position: relative; z-index: 2; width: 380px; height: 310px;
      object-fit: contain;
      filter: drop-shadow(0 0 40px rgba(255,180,0,0.5)) drop-shadow(0 20px 40px rgba(0,0,0,0.6));
      animation: caseFloat 3s ease-in-out infinite;
    }
    @keyframes caseFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .case-separator-line {
      width: 100%; max-width: 900px; height: 1px; margin-top: 4px;
      background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), rgba(255,215,0,0.6), rgba(255,215,0,0.3), transparent);
    }

    /* === SPIN STATE === */
    .case-spin {
      display: none;
      flex-direction: column; align-items: center;
      padding: 32px 0; position: relative; z-index: 1;
    }
    .case-spin.visible { display: flex; }

    .reel-pointer-top {
      width: 0; height: 0;
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-top: 22px solid #FFD700;
      filter: drop-shadow(0 0 8px rgba(255,215,0,0.7));
      margin-bottom: 0; position: relative; z-index: 10;
    }
    .reel-container {
      width: 100%; position: relative; overflow: hidden;
      height: 200px;
    }
    .reel-container::before, .reel-container::after {
      content: ''; position: absolute; top: 0; bottom: 0; width: 200px; z-index: 5;
      pointer-events: none;
    }
    .reel-container::before {
      left: 0;
      background: linear-gradient(90deg, #08080f 0%, rgba(8,8,15,0.7) 40%, transparent 100%);
    }
    .reel-container::after {
      right: 0;
      background: linear-gradient(270deg, #08080f 0%, rgba(8,8,15,0.7) 40%, transparent 100%);
    }
    .reel-center-line {
      position: absolute; top: 0; bottom: 0; left: 50%;
      transform: translateX(-50%); width: 184px;
      border-left: 2px solid rgba(255,215,0,0.5);
      border-right: 2px solid rgba(255,215,0,0.5);
      background: rgba(255,215,0,0.04); z-index: 3; pointer-events: none;
    }
    .reel-strip {
      display: flex; align-items: center; gap: 12px;
      position: absolute; left: 0; top: 50%; transform: translateY(-50%);
      will-change: transform;
    }
    .reel-card {
      flex-shrink: 0; width: 172px; height: 172px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      background-size: cover; background-position: center;
      border: 2px solid rgba(255,255,255,0.07);
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .reel-card.purple { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img.svg'); border-color: rgba(151,93,248,0.25); }
    .reel-card.red    { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_1.svg'); border-color: rgba(235,75,75,0.25); }
    .reel-card.blue   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_2.svg'); border-color: rgba(75,105,255,0.25); }
    .reel-card.yellow { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_3.svg'); border-color: rgba(255,215,0,0.25); }
    .reel-card.gray   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: rgba(136,136,170,0.25); }
    .reel-card.green  { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: rgba(75,181,67,0.25); }
    .reel-card.winner {
      border-color: #FFD700 !important;
      box-shadow: 0 0 0 2px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.35);
    }
    .reel-card img { width: 68%; height: 68%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
    .reel-pointer-bottom {
      width: 0; height: 0;
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-bottom: 22px solid #FFD700;
      filter: drop-shadow(0 0 8px rgba(255,215,0,0.7));
      position: relative; z-index: 10;
    }

    /* === RESULT STATE === */
    .case-result {
      display: none; flex-direction: column; align-items: center;
      padding: 32px 24px 0; position: relative; z-index: 1;
    }
    .case-result.visible { display: flex; }
    .result-single {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      animation: resultReveal 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
    }
    @keyframes resultReveal {
      0%   { opacity: 0; transform: scale(0.5); }
      100% { opacity: 1; transform: scale(1); }
    }
    .result-single-card {
      width: 220px; height: 220px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden; background-size: cover; background-position: center;
      border: 3px solid #FFD700;
      box-shadow: 0 0 0 4px rgba(255,215,0,0.25), 0 0 50px rgba(255,215,0,0.3), 0 0 100px rgba(255,215,0,0.12);
      animation: winnerGlow 2s ease-in-out infinite;
    }
    .result-single-card.purple { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img.svg'); border-color: #975DF8; }
    .result-single-card.red    { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_1.svg'); border-color: #eb4b4b; }
    .result-single-card.blue   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_2.svg'); border-color: #4b69ff; }
    .result-single-card.yellow { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_3.svg'); border-color: #FFD700; }
    .result-single-card.gray   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: #8888aa; }
    .result-single-card.green  { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: #4BB543; }
    @keyframes winnerGlow {
      0%, 100% { box-shadow: 0 0 0 4px rgba(255,215,0,0.25), 0 0 50px rgba(255,215,0,0.3), 0 0 100px rgba(255,215,0,0.12); }
      50%      { box-shadow: 0 0 0 4px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.5), 0 0 120px rgba(255,215,0,0.2); }
    }
    .result-single-card img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)); z-index: 1; position: relative; }
    .result-single-wear { font-size: 12px; color: #8888aa; margin-top: 16px; }
    .result-single-name { font-size: 20px; color: #fff; font-weight: 700; text-align: center; }
    .result-single-price {
      display: flex; align-items: center; gap: 6px;
      font-size: 15px; color: #FFD700; font-weight: 700;
      padding-bottom: 10px;
      border-bottom: 2px solid;
    }
    .result-single-price.purple { border-color: #975DF8; }
    .result-single-price.red    { border-color: #eb4b4b; }
    .result-single-price.blue   { border-color: #4b69ff; }
    .result-single-price.yellow { border-color: #FFD700; }
    .result-single-price.gray   { border-color: #8888aa; }
    .result-single-price img { width: 14px; height: 14px; }

    .result-multi {
      display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
      width: 100%;
    }
    .result-multi-card {
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      animation: resultReveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    .result-multi-img-wrap {
      width: 150px; height: 150px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background-size: cover; background-position: center;
      border: 2px solid rgba(255,215,0,0.5);
      box-shadow: 0 0 20px rgba(255,215,0,0.2);
      position: relative; overflow: hidden;
    }
    .result-multi-img-wrap.purple { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img.svg'); border-color: #975DF8; }
    .result-multi-img-wrap.red    { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_1.svg'); border-color: #eb4b4b; }
    .result-multi-img-wrap.blue   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_2.svg'); border-color: #4b69ff; }
    .result-multi-img-wrap.yellow { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_3.svg'); border-color: #FFD700; }
    .result-multi-img-wrap.gray   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: #8888aa; }
    .result-multi-img-wrap.green  { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); border-color: #4BB543; }
    .result-multi-img-wrap img { width: 65%; height: 65%; object-fit: contain; z-index: 1; position: relative; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
    .result-multi-card.is-sold .result-multi-img-wrap {
      border-color: rgba(136,136,170,0.45);
      box-shadow: none;
    }
    .result-multi-card.is-sold .result-multi-img-wrap::after {
      content: ""; position: absolute; inset: 0; z-index: 2;
      background: rgba(5,5,14,0.58);
    }
    .result-multi-card.is-sold .result-multi-img-wrap img {
      opacity: 0.55;
      filter: grayscale(0.45) drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    }
    .result-multi-card.is-sold .result-multi-name,
    .result-multi-card.is-sold .result-multi-subname,
    .result-multi-card.is-sold .result-multi-price { opacity: 0.55; }
    .result-sold-badge {
      position: absolute; left: 50%; top: 50%; z-index: 3;
      transform: translate(-50%,-50%);
      padding: 5px 10px; border-radius: 999px;
      background: rgba(18,18,32,0.92); border: 1px solid rgba(255,215,0,0.55);
      color: #FFD700; font-size: 11px; font-weight: 800; text-transform: uppercase;
      box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }
    .result-sold-badge[hidden] { display: none; }
    .result-multi-name { font-size: 11px; color: #8888aa; text-align: center; }
    .result-multi-subname { font-size: 12px; color: #fff; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
    .result-multi-price {
      display: flex; align-items: center; gap: 4px; font-size: 12px; color: #FFD700; font-weight: 700;
      padding-bottom: 6px; border-bottom: 2px solid #FFD700; width: 100%; justify-content: center;
    }
    .result-multi-price.purple { border-color: #975DF8; }
    .result-multi-price.red    { border-color: #eb4b4b; }
    .result-multi-price.blue   { border-color: #4b69ff; }
    .result-multi-price.yellow { border-color: #FFD700; }
    .result-multi-price.gray   { border-color: #8888aa; }
    .result-multi-price.green  { border-color: #4BB543; }
    .result-multi-price img { width: 11px; height: 11px; }
    .result-multi-actions { display: flex; gap: 6px; }
    .result-mini-btn {
      width: 32px; height: 28px; display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px; cursor: pointer; color: #8888aa; transition: all 0.2s; font-size: 11px;
    }
    .result-mini-btn:hover { border-color: rgba(255,215,0,0.4); color: #FFD700; }
    .result-mini-btn:disabled {
      cursor: not-allowed; opacity: 0.38; color: #5f6078;
      background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06);
    }
    .result-mini-btn:disabled:hover {
      color: #5f6078;
      background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06);
    }
    .result-mini-btn img,
    .result-mini-btn svg { width: 14px; height: 14px; fill: currentColor; }

    .spark {
      position: absolute; width: 4px; height: 4px; border-radius: 50%;
      background: #FFD700; pointer-events: none; z-index: 20;
      animation: sparkFly 0.8s ease-out forwards;
    }
    @keyframes sparkFly {
      0%   { opacity: 1; transform: translate(0,0) scale(1); }
      100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
    }

    /* =====================================================
       === CONTROLS — единая карточка-панель ===
       На референсе: тёмный rounded блок шириной во всю секцию,
       внутри: [X1 X3 X5 X10] | [ОТКРЫТЬ ЗА ...] | [»] | [? Автопродажа [toggle]]
       ===================================================== */
    .case-controls-wrap {
      padding: 22px 24px 8px;
      max-width: 1400px; margin: 0 auto; width: 100%;
    }
    .case-controls {
      background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
      border: 1px solid #22223a;
      border-radius: 16px;
      padding: 14px 18px;
      display: flex; align-items: center; gap: 16px;
      flex-wrap: wrap; justify-content: center;
    }

    .case-mult-group { display: flex; gap: 6px; flex-shrink: 0; }
    .case-mult-btn {
      min-width: 50px; height: 42px; padding: 0 14px;
      background: transparent; border: none; border-radius: 8px;
      color: #8888aa; font-size: 14px; font-weight: 700; cursor: pointer;
      transition: all 0.2s; text-transform: uppercase;
    }
    .case-mult-btn:hover { color: #fff; background: rgba(255,255,255,0.04); }
    .case-mult-btn.active {
      background: rgba(255,255,255,0.06);
      color: #fff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    }
    .case-mult-btn.disabled,
    .case-mult-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      background: transparent;
      color: #66667f;
    }

    .case-open-btn {
      flex: 1; min-width: 280px; max-width: 540px; height: 52px;
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      border: none; border-radius: 10px;
      color: #ffffff; font-weight: 800; font-size: 16px; letter-spacing: 1.5px;
      text-transform: uppercase; cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    }
    .case-open-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.45); }
    .case-open-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .case-open-btn img { width: 18px; height: 18px; object-fit: contain; }

    .case-arrows-btn {
      width: 44px; height: 44px;
      background: transparent;
      border: 1px solid #2a2a40; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.2s; color: #8888aa;
      flex-shrink: 0;
    }
    .case-arrows-btn:hover { border-color: #4a4a7a; color: #fff; }
    .case-arrows-btn svg { width: 16px; height: 16px; fill: currentColor; }

    .case-autosell {
      display: flex; align-items: center; gap: 10px;
      color: #8888aa; font-size: 13px; font-weight: 500;
      flex-shrink: 0;
      position: relative;
    }
    .case-affordable {
      color: #8888aa;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }
    .case-autosell-help {
      width: 22px; height: 22px; border-radius: 50%;
      border: 1px solid #3a3a55;
      display: flex; align-items: center; justify-content: center;
      cursor: help; font-size: 11px; font-weight: 700; color: #8888aa;
      background: transparent;
    }
    .case-autosell-help:hover { color: #fff; border-color: #6a6a88; }
    .case-autosell-tooltip {
      position: absolute;
      right: 0;
      bottom: calc(100% + 10px);
      z-index: 40;
      width: min(310px, calc(100vw - 32px));
      padding: 13px 15px;
      border: 1px solid #2a2a40;
      border-radius: 10px;
      background: #15152a;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      color: #a7a9c7;
      font-size: 13px;
      line-height: 1.45;
    }
    .case-autosell-tooltip[hidden] { display: none; }
    .case-autosell-tooltip::after {
      content: '';
      position: absolute;
      right: 54px;
      bottom: -6px;
      width: 10px;
      height: 10px;
      border-right: 1px solid #2a2a40;
      border-bottom: 1px solid #2a2a40;
      background: #15152a;
      transform: rotate(45deg);
    }
    .case-autosell-tooltip-title {
      margin-bottom: 5px;
      color: #fff;
      font-size: 14px;
      font-weight: 700;
    }
    .case-autosell-tooltip-text { color: #a7a9c7; }
    @media (max-width: 767px) {
      .case-autosell-tooltip {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
      }
      .case-autosell-tooltip::after {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
      }
    }
    .autosell-toggle {
      width: 38px; height: 20px; background: #2a2a40; border-radius: 12px;
      position: relative; transition: background 0.2s; cursor: pointer;
      flex-shrink: 0;
    }
    .autosell-toggle.on { background: rgba(75,181,67,0.7); }
    .autosell-toggle::after {
      content: ''; position: absolute; width: 14px; height: 14px;
      background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform 0.2s;
    }
    .autosell-toggle.on::after { transform: translateX(18px); }

    /* Action row (after result) */
    .case-action-row {
      display: none; align-items: center; justify-content: center; gap: 10px;
      padding: 16px 24px 0; flex-wrap: wrap;
    }
    .case-action-row.visible { display: flex; }
    .case-contract-btn,
    .case-repeat-btn {
      display: flex; align-items: center; gap: 8px; padding: 10px 20px;
      background: transparent; border: 1px solid #2a2a40; border-radius: 8px;
      color: #8888aa; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    }
    .case-contract-btn:hover,
    .case-repeat-btn:hover { border-color: #4a4a7a; color: #fff; }
    .case-contract-btn svg,
    .case-repeat-btn svg { width: 16px; height: 16px; fill: currentColor; }
    .case-sell-btn {
      display: flex; align-items: center; gap: 8px; padding: 12px 32px;
      background: linear-gradient(135deg, #FFD700, #FFA500); border: none; border-radius: 10px;
      color: #1a1a2e; font-weight: 800; font-size: 15px; cursor: pointer; transition: all 0.2s;
    }
    .case-sell-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.4); }
    .case-sell-btn img { width: 15px; height: 15px; object-fit: contain; }

    /* =====================================================
       === ITEMS GRID (possible drops) — FIXED ===
       ===================================================== */
    .drops-section { padding: 32px 24px 0; max-width: 1400px; margin: 0 auto; width: 100%; }
    .drops-grid {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 10px;
      grid-auto-rows: 228px;
      align-items: stretch;
    }
    .drop-card {
      position: relative;
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 0 0 10px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      cursor: pointer; transition: transform 0.2s;
      overflow: visible;
      box-sizing: border-box;
      height: 228px;
      min-height: 228px;
      max-height: 228px;
    }
    .drop-accent {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      border-radius: 1px;
    }
    .drop-card.purple .drop-accent { background: #975DF8; }
    .drop-card.red .drop-accent    { background: #eb4b4b; }
    .drop-card.blue .drop-accent   { background: #4b69ff; }
    .drop-card.yellow .drop-accent { background: #FFD700; }
    .drop-card.gray .drop-accent   { background: #8888aa; }
    .drop-card.green .drop-accent  { background: #4BB543; }
    .drop-card:hover { transform: translateY(-3px); }

    .drop-price {
      position: absolute;
      top: 6px; right: 8px;
      font-size: 11px; color: #4BB543; font-weight: 700;
      display: flex; align-items: center; gap: 4px;
      z-index: 2;
    }
    .drop-price img { width: 10px; height: 10px; object-fit: contain; }

    .drop-img-wrap {
      width: 100%;
      height: 120px;
      min-height: 120px;
      max-height: 120px;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 8px;
      background: transparent;
    }
    .drop-img-bg {
      position: absolute;
      inset: 10% 5%;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      opacity: 1;
    }
    .drop-card.purple .drop-img-bg { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img.svg'); }
    .drop-card.red .drop-img-bg    { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_1.svg'); }
    .drop-card.blue .drop-img-bg   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_2.svg'); }
    .drop-card.yellow .drop-img-bg { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_3.svg'); }
    .drop-card.gray .drop-img-bg   { background-image: url('https://proam.works-all.ru/_media/user_0ccb6fe7-f696-4883-a4ec-e56553199f9d/bg_img_4.svg'); }

    .drop-card img.drop-img {
      width: 95%;
      height: 90px;
      object-fit: contain;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    }

    .drop-name {
      font-size: 11px; color: #8888aa;
      text-align: left;
      padding: 0 4px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-height: 14px;
    }
    .drop-subname {
      font-size: 12px; color: #fff; font-weight: 600;
      text-align: left;
      padding: 0 4px 6px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-height: 18px;
    }

/* =====================================================
       === RESPONSIVE ===
       ===================================================== */
    @media (max-width: 1280px) {
      .drops-grid { grid-template-columns: repeat(8, 1fr); }
    }
    @media (max-width: 991px) {
      .drops-grid { grid-template-columns: repeat(6, 1fr); }
      .case-open-btn { min-width: 220px; }
      .reel-container { height: 160px; }
      .reel-card { width: 136px; height: 136px; }
      .reel-container::before, .reel-container::after { width: 100px; }
      .reel-center-line { width: 148px; }
    }
    @media (max-width: 767px) {
      .case-title { font-size: 24px; letter-spacing: 2px; }
      .case-controls { gap: 10px; padding: 12px; }
      .case-open-btn { min-width: 0; flex: 1 1 100%; order: 2; font-size: 14px; height: 46px; }
      .case-mult-btn { min-width: 42px; height: 38px; padding: 0 10px; font-size: 13px; }
      .case-tabs { gap: 8px; flex-wrap: wrap; }
      .case-tab-pill { padding: 10px 16px; font-size: 12px; }
      .drops-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
      .drops-grid { grid-auto-rows: 206px; }
      .drop-card { height: 206px; min-height: 206px; max-height: 206px; }
      .drop-img-wrap { height: 104px; min-height: 104px; max-height: 104px; }
      .drop-card img.drop-img { height: 78px; }
      .case-image-wrapper { width: 280px; height: 240px; }
      .case-img { width: 260px; height: 210px; }
      .reel-container { height: 140px; }
      .reel-card { width: 120px; height: 120px; }
      .reel-container::before, .reel-container::after { width: 70px; }
      .reel-center-line { width: 132px; }
      .result-single-card { width: 170px; height: 170px; }
      .result-multi-img-wrap { width: 120px; height: 120px; }
    }
    @media (max-width: 480px) {
      .drops-grid { grid-template-columns: repeat(3, 1fr); }
      .drops-grid { grid-auto-rows: 194px; }
      .drop-card { height: 194px; min-height: 194px; max-height: 194px; }
      .drop-img-wrap { height: 96px; min-height: 96px; max-height: 96px; }
      .drop-card img.drop-img { height: 72px; }
      .result-multi { gap: 12px; }
      .result-multi-img-wrap { width: 100px; height: 100px; }
    }
