/* Case Opening screen (owner: case) */
.case-screen { gap: 10px; --card-w: 148px; }
.case-title { margin: 0; font-size: 34px; line-height: 1; }
.case-sub { margin: 4px 0 0; color: var(--dim); font-size: 15px; }
.case-stagewrap { justify-content: center; min-height: 0; }
.reel {
  position: relative; width: 100%; padding: 14px 0; overflow: hidden; border-radius: 14px;
  background: linear-gradient(#0a0d16, #141a2b); border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.reel[hidden], .case-win[hidden] { display: none; }
.reel-track { display: flex; gap: 8px; width: max-content; will-change: transform; }
.reel-marker {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 2; pointer-events: none;
  background: #ffd700; box-shadow: 0 0 10px 2px rgba(255,215,0,.8);
}
.reel-marker::before, .reel-marker::after {
  content: ''; position: absolute; left: 50%; margin-left: -8px; border: 8px solid transparent;
}
.reel-marker::before { top: 0; border-top-color: #ffd700; }
.reel-marker::after { bottom: 0; border-bottom-color: #ffd700; }
.reel .item-card.win { animation: pulse .5s ease-in-out infinite; z-index: 1; }
.case-win { gap: 12px; }
.case-big-label { font-size: 26px; margin: 0; }
.case-win .item-card.big { --card-w: min(158px, 42vw); }
.case-win .item-card.big .ic-name { font-size: 18px; padding: 6px 6px 3px; }
.case-win .item-card.big .ic-sub { font-size: 13px; padding-bottom: 5px; }
.case-actions { padding-top: 4px; }

.case-idle { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-top: 14px; }
.case-idle img { height: 120px; width: auto; max-width: 32vw; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.case-idle .idle-wow { height: 84px; animation: pulse 1.2s ease-in-out infinite; }
.case-idle .idle-doge { animation: pulse 1.6s ease-in-out infinite; }

/* round 2: reel names must be fully readable (2 lines, no ellipsis) */
.reel .ic-name, .case-win .ic-name { white-space: normal; text-overflow: clip; overflow: visible; }
.reel .ic-name { font-size: 13px; line-height: 1.12; min-height: 2.3em; display: flex; align-items: center; justify-content: center; padding: 3px 6px; }
.case-win .item-card.big .ic-name { font-size: 15px; line-height: 1.12; }
.case-real { gap: 4px; padding: 8px 10px; border-radius: 12px; border: 2px dashed #ffd700; background: rgba(255,215,0,.08); max-width: 100%; }
.case-real-h { font-size: 28px; line-height: 1; color: #39ff14; text-shadow: 0 0 12px rgba(57,255,20,.8); animation: pulse 1s ease-in-out infinite; }
.case-real-b { font-size: 14px; line-height: 1.25; color: var(--text); }
.case-head[hidden] { display: none; }
.case-real-h { font-size: 24px; }
.case-real-b { font-size: 13px; }
.case-win { gap: 8px; }
