/* en-challenge: one big case on the first screen, Musor Drop look */

/* ---------- Header (musor10.best style) ---------- */
.mhead { position: relative; z-index: 40; }
.mhead__bar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 34px; height: 92px; padding: 0 24px; background: linear-gradient(180deg, #1f1d25 0%, #19171e 100%); border-radius: 0 0 28px 28px; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .85); }
.mhead__bar::before { content: ""; position: absolute; left: 0; bottom: -46px; width: 180px; height: 90px; background: radial-gradient(closest-side, rgba(160, 96, 254, .6), transparent); pointer-events: none; }
.mlogo { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
.mlogo img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(160, 96, 254, .55)); }
.mlogo span { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: .01em; color: #fff; }
.mlogo--sm img { width: 36px; height: 36px; }
.mlogo--sm span { font-size: 27px; }
.mnav { display: none; align-items: flex-end; gap: 30px; }
.mnav a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #ECE8F2; transition: color .2s; }
.mnav a svg { width: 26px; height: 26px; color: #8C8796; transition: color .2s; }
.mnav a:hover svg { color: var(--lilac); }
.ranks { position: relative; display: none; align-items: center; gap: 8px; flex: none; height: 46px; padding: 0 16px 0 58px; border-radius: 16px; background: linear-gradient(100deg, #5a4790 0%, #3c3163 55%, #2a2442 100%); border: 1px solid rgba(204, 177, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px -12px rgba(123, 75, 212, .8); font-family: var(--display); font-size: 19px; letter-spacing: .03em; text-transform: uppercase; color: #fff; transition: filter .2s; }
.ranks:hover { filter: brightness(1.12); }
.ranks__badge { position: absolute; left: -6px; top: 50%; width: 60px; height: 60px; transform: translateY(-50%); filter: drop-shadow(0 6px 12px rgba(80, 140, 255, .55)); }
.ranks__arrow { width: 20px; height: 20px; }
.mhead__promo { display: inline-flex; flex: none; margin-left: auto; white-space: nowrap; }
@media (min-width: 760px) { .ranks { display: inline-flex; } }
@media (min-width: 1140px) { .mnav { display: flex; } .mnav a { white-space: nowrap; } }
@media (min-width: 1140px) and (max-width: 1279px) { .mhead__bar { gap: 24px; } .mnav { gap: 20px; } }
@media (max-width: 600px) {
  .mhead__bar { height: 70px; padding: 0 14px; gap: 12px; border-radius: 0 0 22px 22px; }
  .mlogo img { width: 34px; height: 34px; }
  .mlogo span { font-size: 25px; }
  .mhead__promo { height: 38px; gap: 6px; padding: 0 5px 0 10px; font-size: 13px; }
  .mhead__promo b { font-size: 16px; }
  .mhead__promo i { height: 26px; padding: 0 7px; }
}
@media (max-width: 400px) { .mhead__promo i { display: none; } }

/* ---------- Live drops (musor10.best style) ---------- */
.mlive { position: relative; z-index: 30; display: flex; gap: 8px; padding: 8px; }
.mlive__side { flex: none; width: 112px; display: flex; flex-direction: column; gap: 8px; }
.mlive__on { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(64, 200, 120, .38), rgba(40, 150, 90, .22)); border: 1px solid rgba(110, 240, 160, .45); color: #c6ffd9; font-weight: 900; font-size: 15px; letter-spacing: .04em; }
.mlive__on svg { width: 18px; height: 18px; }
.mlive__tabs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mlive__tab { display: grid; place-items: center; min-height: 52px; border-radius: 14px; background: #1b1920; border: 1px solid var(--stroke-soft); color: #6f6a78; transition: color .2s, background .2s, border-color .2s; }
.mlive__tab svg { width: 22px; height: 22px; }
.mlive__tab:hover { color: var(--text-2); }
.mlive__tab.is-on { background: radial-gradient(80% 80% at 50% 0%, rgba(160, 96, 254, .45), transparent), #2a2140; color: var(--lilac-2); border-color: rgba(160, 96, 254, .45); }
.mlive__track { flex: 1; display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }

/* Drop card: spotlight from the top in rarity colour */
.fd { --c: var(--t-blue); position: relative; flex: none; display: flex; flex-direction: column; justify-content: flex-end; width: 156px; height: 104px; padding: 8px 12px 10px; border-radius: 16px; overflow: hidden; text-align: left; list-style: none;
  background: radial-gradient(34% 120% at 50% -18%, color-mix(in srgb, var(--c) 85%, transparent) 0%, transparent 100%), radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 80%), #19171d;
  border: 1px solid var(--stroke-soft); }
.fd img { position: absolute; left: 50%; top: 6px; width: 104px; height: 64px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.fd b { position: relative; font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd span { position: relative; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd.is-new { animation: feedIn .5s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 600px) {
  .mlive { padding: 6px; gap: 6px; }
  .mlive__side { width: 76px; gap: 6px; }
  .mlive__on { height: 30px; font-size: 12px; gap: 5px; }
  .mlive__on svg { width: 14px; height: 14px; }
  .mlive__tab { min-height: 36px; }
  .mlive__tab svg { width: 18px; height: 18px; }
  .mlive .fd { width: 118px; height: 72px; padding: 5px 9px 7px; border-radius: 12px; }
  .mlive .fd img { width: 74px; height: 42px; top: 3px; }
  .mlive .fd b { font-size: 11px; }
  .mlive .fd span { font-size: 10px; }
}

/* ---------- Stage ---------- */
.stage { position: relative; isolation: isolate; overflow: hidden; padding: 12px 0 64px; }
.stage__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage__bg i { position: absolute; border-radius: 50%; filter: blur(90px); }
.stage__bg i:nth-child(1) { left: 8%; top: -10%; width: 50%; height: 55%; background: rgba(152, 109, 231, .42); }
.stage__bg i:nth-child(2) { left: -15%; top: 40%; width: 45%; height: 50%; background: rgba(123, 75, 212, .3); }
.stage__bg i:nth-child(3) { right: -10%; top: 10%; width: 45%; height: 50%; background: rgba(140, 200, 60, .14); }
.dust { position: absolute; inset: 0; opacity: .5; background-image:
  radial-gradient(2px 2px at 10% 20%, #CCB1FF, transparent), radial-gradient(2px 2px at 30% 70%, #B6EE5F, transparent),
  radial-gradient(1.5px 1.5px at 55% 35%, #fff, transparent), radial-gradient(2px 2px at 75% 60%, #CCB1FF, transparent),
  radial-gradient(1.5px 1.5px at 90% 25%, #B6EE5F, transparent), radial-gradient(2px 2px at 20% 90%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 65% 85%, #CCB1FF, transparent), radial-gradient(2px 2px at 42% 12%, #B6EE5F, transparent);
  background-size: 600px 600px; animation: dust 40s linear infinite; }
@keyframes dust { to { background-position: 0 -600px; } }

/* ---------- Hero: big case + CTA on the first screen ---------- */
.hero2 { display: grid; grid-template-columns: 1fr; grid-template-areas: "title" "art" "cta"; justify-items: center; text-align: center; }
.hero2__title { grid-area: title; }
.hero2__art { grid-area: art; width: 100%; display: grid; place-items: center; }
.hero2__cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1000px) {
  .hero2:not(.is-rolling) { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "art title" "art cta"; grid-template-rows: auto auto; column-gap: 40px; justify-items: start; text-align: left; align-items: end; min-height: min(560px, calc(100svh - 236px)); }
  .hero2:not(.is-rolling) .hero2__cta { align-self: start; align-items: flex-start; padding-top: 18px; }
  .hero2:not(.is-rolling) .fc__title { align-items: flex-start; }
}

/* While the reel is on screen keep it compact, so the buttons under it stay visible */
.hero2.is-rolling .fc__note { display: none; }
.hero2.is-rolling .plate { font-size: clamp(32px, 3.6vw, 48px); }
.hero2.is-rolling .reel { margin: 16px 0 10px; }
.hero2.is-rolling .fc__act { margin-top: 12px; }

.fc__title { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plate { display: inline-block; padding: 8px 20px 10px; border-radius: 20px; background: rgba(16, 15, 18, .72); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: clamp(40px, 5vw, 70px); text-shadow: 0 6px 30px rgba(160, 96, 254, .35); }
.fc__act { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fc__open { --h: 72px; min-width: 320px; font-size: 34px; border-radius: 18px; animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 28px -12px rgba(182, 238, 95, .8), 0 0 0 0 rgba(182, 238, 95, .45); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 28px -12px rgba(182, 238, 95, .8), 0 0 0 12px rgba(182, 238, 95, 0); } }
.fc__note { margin-top: 12px; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------- The dumpster case ---------- */
.dmx { position: relative; display: block; width: min(100%, 560px, calc((100svh - 260px) * 1.11)); min-width: min(100%, 300px); aspect-ratio: 400 / 360; padding: 0; cursor: pointer; isolation: isolate; }
.dmx__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dmx__rays { position: absolute; left: 50%; top: 36%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(186, 144, 249, .22) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 72%); mask-image: radial-gradient(closest-side, #000 15%, transparent 72%);
  animation: rays 30s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.dmx__glow { position: absolute; left: 12%; right: 12%; top: 18%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 216, 255, .85), rgba(160, 96, 254, .45) 55%, transparent); filter: blur(14px); pointer-events: none; transition: opacity .4s, transform .4s; }
.dmx__loot { position: absolute; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; }
.dmx__loot--1 { left: 9%; top: 4%; width: 44%; transform: rotate(-34deg); }
.dmx__loot--2 { left: 20%; top: -4%; width: 62%; transform: rotate(-13deg); }
.dmx__loot--3 { left: 58%; top: 2%; width: 34%; transform: rotate(16deg); }
.dmx:hover .dmx__loot--1 { transform: translateY(-8px) rotate(-38deg); }
.dmx:hover .dmx__loot--2 { transform: translateY(-12px) rotate(-11deg); }
.dmx:hover .dmx__loot--3 { transform: translateY(-8px) rotate(20deg); }
.dmx:hover .dmx__glow { transform: scale(1.08); }
.dmx.is-open .dmx__loot { transition-duration: .35s; }
.dmx.is-open .dmx__loot--1 { transform: translateY(-40px) rotate(-44deg); }
.dmx.is-open .dmx__loot--2 { transform: translateY(-60px) rotate(-6deg) scale(1.06); }
.dmx.is-open .dmx__loot--3 { transform: translateY(-40px) rotate(28deg); }
.dmx.is-shaking { animation: shake .6s ease-in-out; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-2.5deg) scale(1.02); } 40% { transform: rotate(2.5deg) scale(1.03); } 60% { transform: rotate(-1.5deg) scale(1.04); } 80% { transform: rotate(1deg) scale(1.05); } }
.spark { position: absolute; width: 22px; height: 22px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px #CCB1FF); animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.spark--1 { left: 6%; top: 18%; }
.spark--2 { right: 4%; top: 30%; width: 16px; height: 16px; animation-delay: -.8s; }
.spark--3 { left: 18%; top: 54%; width: 12px; height: 12px; animation-delay: -1.4s; }
.spark--4 { right: 14%; top: 4%; width: 14px; height: 14px; animation-delay: -2s; background: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Reel ---------- */
.reel { position: relative; width: 100%; max-width: 1000px; height: 214px; margin: 24px 0 8px; border-radius: 22px; overflow: hidden; background: #0c0b0e; border: 1px solid var(--stroke); }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0c0b0e, transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, #0c0b0e, transparent); }
.reel__mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 3; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.reel__mark::before, .reel__mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.reel__mark::before { top: 0; border-top-color: var(--lime); }
.reel__mark::after { bottom: 0; border-bottom-color: var(--lime); }
.reel__strip { position: absolute; left: 0; top: 12px; bottom: 12px; display: flex; gap: 10px; will-change: transform; }
.reel .fd { width: 172px; height: 100%; padding: 10px 14px 14px; transition: opacity .4s, transform .4s, box-shadow .4s, border-color .4s; }
.reel .fd img { width: 146px; height: 104px; top: 12px; }
.reel .fd b { font-size: 15px; }
.reel .fd span { font-size: 12px; }
.reel__strip.is-done .fd { opacity: .35; }
.reel__strip.is-done .fd.is-win { opacity: 1; transform: scale(1.04); border-color: var(--lime); box-shadow: 0 0 40px -6px var(--lime), inset 0 0 0 1px var(--lime); }

/* Section titles: ◆ Title ◆ like musor10.best */
.sect { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 64px 0 20px; font-size: 32px; }
.sect i { width: 11px; height: 11px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Possible prizes */
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-width: 1100px; margin: 0 auto; }
.prizes .fd { width: auto; height: 128px; }
.prizes .fd img { width: 120px; height: 78px; top: 10px; }

@media (max-width: 760px) {
  .stage { padding-top: 10px; }
  .plate { font-size: 36px; padding: 6px 16px 8px; }
  .fc__title { gap: 8px; }
  .dmx { width: min(100%, 340px); margin-top: 4px; }
  .fc__act { margin-top: 14px; width: 100%; }
  .fc__open { --h: 64px; min-width: 0; width: 100%; max-width: 360px; font-size: 28px; }
  .fc__act .btn--game { flex: 1 1 140px; min-width: 0; font-size: 22px; padding: 0 16px; }
  .reel { height: 176px; }
  .reel .fd { width: 128px; padding: 8px 10px 10px; }
  .reel .fd img { width: 108px; height: 78px; top: 8px; }
  .reel .fd b { font-size: 13px; }
  .sect { font-size: 26px; margin-top: 48px; }
  .prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Dialog extras ---------- */
.won { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.won--one .fd { width: 240px; height: 190px; padding: 12px 16px 16px; }
.won--one .fd img { width: 200px; height: 130px; top: 10px; }
.won--one .fd b { font-size: 18px; }
.won--one .fd span { font-size: 13px; }
.dlg__title.c-lime { font-size: 56px; text-shadow: 0 0 30px rgba(182, 238, 95, .45); }
@media (min-width: 520px) { .dlg__act--2 { grid-template-columns: 1fr 1fr; } }
.dlg__act .btn--game { min-width: 0; width: 100%; font-size: 22px; }

.footer__claims { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; font-size: 13px; color: var(--text-3); font-weight: 600; }
