.bandit-wheel, .bandit-wheel * { box-sizing: border-box; }
.bandit-wheel { position: relative; z-index: 1; margin: 0 auto; max-width: 680px; color: #f2eee3; }
.bandit-wheel__cabinet { padding: 0 18px; text-align: center; }
.bandit-wheel__plate { display: inline-block; background: #151915; border: 1px solid #787158; padding: 5px 16px; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: #d7c68b; }
.bandit-wheel__stage { position: relative; margin: 20px auto 14px; width: 100%; aspect-ratio: 1; max-width: 490px; }
.bandit-wheel__rotor { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(3px 10px 7px #0009); }
.bandit-wheel__art { width: 100%; height: 100%; border-radius: 50%; background: url('/assets/img/spin/bandit-wheel-atlas.webp') .132% 4.605% / 190.476% no-repeat; }
.bandit-wheel__pointer { position: absolute; z-index: 2; top: -14px; left: calc(50% - 12px); width: 24px; height: 44px; background: linear-gradient(90deg, #6d6451, #e1d9ba 48%, #8e8064); clip-path: polygon(0 0, 100% 0, 76% 62%, 50% 100%, 24% 62%); filter: drop-shadow(0 2px 2px #000); }
.bandit-wheel__status { min-height: 24px; margin: 0; font-size: 14px; line-height: 1.5; color: #f2eee3; }
.bandit-wheel__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; list-style: none; padding: 0; margin: 16px 0 10px; }
.bandit-wheel__legend li { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 8px; background: #292d26; border: 1px solid #666954; border-radius: 5px; }
.bandit-wheel__legend b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 3px; background: #d7bb51; color: #171914; }
.bandit-wheel__legend [data-wheel-tier="3"] b { background: #68a456; }
.bandit-wheel__legend [data-wheel-tier="5"] b { background: #5c97b1; }
.bandit-wheel__legend [data-wheel-tier="10"] b { background: #c277ac; }
.bandit-wheel__legend [data-wheel-tier="20"] b { background: #ce6846; }
.bandit-wheel__legend li.is-selected { border-color: #b3de78; background: #35492d; box-shadow: 0 0 0 2px #b3de7840; }
@media (max-width: 480px) { .bandit-wheel__cabinet { padding: 14px 12px; } .bandit-wheel__plate { font-size: 9px; letter-spacing: 2px; } }


.spin-page { --spin-bg: #17201a; }
.spin-page .spin-main { padding: calc(var(--sticky-header-offset) + 60px) 0 64px; background: #17201a; }
.spin-page .spin-main > .container { max-width: 1480px; }
.spin-page .spin-card--wheel {
  padding: 26px 32px 30px;
  background: linear-gradient(180deg, #151b1640, transparent 25%, transparent 55%, #121a16ed 90%), url('/assets/img/spin/bandit-camp-wall.png') center 35% / cover;
  border: 6px solid #34382e;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #9c947550, 0 16px 40px #0004;
  color: #f7f1df;
  text-align: center;
}
.spin-card--wheel::after { display: none; }
.spin-card--wheel .spin-card__header { text-align: left; padding: 0 0 0 16px; border-left: 3px solid #b5de75; }
.spin-card--wheel .spin-card__eyebrow { color: #e2e9cc; font-size: 10px; letter-spacing: .22em; }
.spin-card--wheel .spin-card__title { color: #fff6dd; font-size: clamp(32px, 4vw, 50px); line-height: 1; margin: 6px 0; text-shadow: 0 2px 5px #0009; }
.spin-card--wheel .spin-card__meta { color: #f1eddf; margin: 0; font-size: 13px; }
.spin-card--wheel .spin-card__body, .spin-card--wheel > .spin-status, .spin-card--wheel > .spin-last { max-width: 440px; margin: 18px auto 0; }
.spin-card--wheel .spin-card__body { gap: 12px; }
.spin-card--wheel .spin-card__text, .spin-card--wheel .spin-status__text { color: #e0e5d7; font-size: 13px; }
.spin-card--wheel > .spin-card__button { max-width: 440px; }
.spin-card--wheel .spin-status__badge { margin: auto; color: #d6efbd; background: #35492d; border-color: #79a780; }
.spin-card--wheel > .spin-subtext, .spin-card--wheel .spin-last__status { position: relative; color: #d6d9cb !important; }
.spin-card--wheel > .spin-subtext a { color: #b3de78; }
.bandit-wheel__status { color: #fff6dd; text-shadow: 0 1px 4px #000; }
.bandit-wheel__legend { margin: 12px 0 8px; }
.bandit-wheel__legend li { background: #1c241ef0; border-color: #88876b; }
.spin-page .spin-guide--primary, .spin-page .spin-streak-card { background: none; border: 0; border-top: 1px solid #506047; box-shadow: none; border-radius: 0; padding: 24px 12px; }
.spin-page .spin-guide__title, .spin-page .spin-streak-card__title { font-size: 25px; }
.spin-page .spin-guide__text, .spin-page .spin-guide__item, .spin-page .spin-streak-card__text { color: #deeadf; }
.spin-page .spin-guide__list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) {
  .spin-card--wheel .spin-card__header { position: absolute; top: 36px; left: 30px; max-width: 250px; }
  .bandit-wheel__stage { margin-top: 16px; }
}
@media (max-width: 767px) {
  .spin-page .spin-main { padding-top: calc(var(--sticky-header-offset) + 64px); }
  .spin-page .spin-card--wheel { padding: 20px 10px; border-width: 3px; }
  .spin-card--wheel .spin-card__header { margin: 0 10px 20px; }
  .bandit-wheel__cabinet { padding: 0 8px; }
  .bandit-wheel__legend { gap: 5px; }
  .bandit-wheel__legend li { padding: 4px 6px; font-size: 11px; }
}

.bandit-wheel__paytable { max-width: 490px; margin: 10px auto 0; padding: 0; background: none; border: 0; box-shadow: none; }
.bandit-wheel__paytable .bandit-wheel__status { min-height: 0; margin: 0 0 8px; color: #f1e6c9; font-size: 13px; font-weight: 600; text-shadow: 0 2px 3px #000; }
.bandit-wheel__paytable .bandit-wheel__status:empty { display: none; }
.bandit-wheel__paytable .bandit-wheel__legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 8px 0; }
.bandit-wheel__paytable .bandit-wheel__legend li { display: flex; flex-direction: column; padding: 4px 2px; gap: 2px; border: 0; border-radius: 0; background: none; font-size: 11px; color: #f1e6c9; text-shadow: 0 2px 3px #000; }
.bandit-wheel__paytable .bandit-wheel__legend b { background: none; border-radius: 0; color: #e4c961; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 28px; font-weight: 400; height: auto; line-height: 1.1; }
.bandit-wheel__paytable [data-wheel-tier="3"] b { color: #94bf73; }
.bandit-wheel__paytable [data-wheel-tier="5"] b { color: #8bbacb; }
.bandit-wheel__paytable [data-wheel-tier="10"] b { color: #d69ac5; }
.bandit-wheel__paytable [data-wheel-tier="20"] b { color: #e68c65; }
.bandit-wheel__paytable .bandit-wheel__legend li.is-selected { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 5px; }
.bandit-wheel__rules { color: #d4cbb5; font-size: 11px; text-shadow: 0 1px 3px #000; }
.bandit-wheel__rules summary { cursor: pointer; list-style-position: inside; }
.bandit-wheel__rules p { margin: 8px 0 0; font-size: 12px; color: #e2e5d7; }
/* Reward reveal */
.spin-page .spin-last { max-width: 490px; margin: 24px auto 0; padding: 14px 0 0; border: 0; border-top: 1px solid #b4ab7955; background: none; box-shadow: none; text-align: left; border-radius: 0; }
.spin-last__label { color: #c4bb9e; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.spin-last__row { display: flex; gap: 12px; align-items: center; }
.spin-last__row img { width: 48px; height: 48px; object-fit: contain; }
.spin-last__details { display: grid; gap: 2px; flex: 1; min-width: 0; }
.spin-page .spin-last__item { color: #f6eedb; font-size: 16px; overflow-wrap: anywhere; }
.spin-last__details > span, .spin-page .spin-last__status { color: #c9cbb8; font-size: 11px; }
.spin-page .spin-popup { background: none; padding: 20px; z-index: 100000; }
.spin-page .spin-popup__backdrop { background: #0c100cf5; opacity: 1; backdrop-filter: blur(8px); }
.spin-page .spin-popup__content { width: min(580px, 100%); max-height: 94dvh; padding: 28px 16px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; }
.spin-page .spin-popup__stage { gap: 12px; align-items: center; }
.spin-reveal-title { margin: 0; color: #bccaa3; font: 13px/1.4 'Arial Narrow', sans-serif; font-weight: 700; letter-spacing: .22em; text-align: center; }
.spin-page .spin-popup__reward { width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; max-height: none; overflow: visible; scrollbar-gutter: auto; }
.spin-page .spin-popup .spin-result-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.spin-page .spin-popup .spin-result-card__art { width: 100%; height: clamp(150px, 33vh, 300px); border-radius: 0; background: radial-gradient(ellipse, #bbc38518, transparent 65%); overflow: visible; }
.spin-page .spin-popup .spin-result-card__art img { width: 100%; height: 100%; max-width: 300px; max-height: 300px; object-fit: contain; filter: drop-shadow(0 14px 12px #000b); }
.spin-page .spin-popup .spin-result-card__body { width: 100%; gap: 8px; justify-items: center; }
.spin-page .spin-popup .spin-rarity-badge { padding: 0; border: 0; background: none; color: #b9c79e; font-size: 11px; letter-spacing: .15em; }
.spin-page .spin-popup .spin-result-card__name { color: #f6f0df; font: clamp(30px, 5vw, 48px)/1.05 Impact, 'Arial Narrow', sans-serif; margin: 0; text-shadow: 0 3px 15px #000; }
.spin-result-amount { color: #d2d9bc; font: 24px/1.2 'Arial Narrow', sans-serif; margin: 0; }
.spin-page .spin-popup .spin-result-card__note { max-width: 390px; color: #c7caba; font-size: 13px; line-height: 1.5; margin: 5px 0 0; }
.spin-page .spin-popup__message { color: #a3ab98; font-size: 10px; letter-spacing: .05em; max-width: 380px; }
.spin-reveal-done { min-width: 200px; margin-top: 12px; background: #596c3b; color: #f2efdf; border: 1px solid #8b9e6a; padding: 12px 24px; font-weight: 700; cursor: pointer; }
.spin-reveal-done:hover { background: #71854e; }
.spin-page .spin-popup__close { top: 0; right: 0; width: 32px; height: 32px; border: 0; border-radius: 0; background: none; }
.spin-reveal-done:focus-visible { outline: 2px solid #e1d5aa; outline-offset: 3px; }
@media (max-width: 480px) { .spin-last__row { gap: 8px; flex-wrap: wrap; } .spin-page .spin-popup__content { padding: 32px 0 16px; } }
@media (prefers-reduced-motion: reduce) { .spin-page .spin-popup, .spin-page .spin-popup * { animation: none !important; transition: none !important; } }
