:root {
  --ice: #86dfff;
  --acid: var(--ice);
  --surface: #1b2229;
  --line: #35424e;
  --muted: #aab7c3;
  --graphite: #14191f;
}

body {
  background: var(--graphite);
  color: #f2f6fa;
}

#gameShell {
  max-width: 860px;
  padding-top: max(16px, env(safe-area-inset-top));
}

#gameShell header {
  margin-bottom: 8px;
}

.brand { font-size: clamp(19px, 5vw, 25px); }
.brand span { color: inherit; }
.brand .label, .header-account > .label { display: none; }
.brand-mark {
  display: block;
  flex: none;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.header-account {
  background: #202931;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}
.balance { font-size: clamp(14px, 4.5vw, 20px); white-space: nowrap; }
.utility-bar { margin: 4px 0 16px; }
.utility-bar button {
  min-height: 36px;
  border-color: transparent;
  color: var(--muted);
}
#gameShell .primary {
  background: var(--ice);
  color: #0a1b24;
  border-color: transparent;
  box-shadow: none;
}
#gameShell input, #gameShell select {
  color: #f2f6fa;
  background: #1d252d;
  border-color: var(--line);
  box-shadow: none;
}

#gameShell nav {
  background: #171e25;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-top: 7px;
}
#gameShell nav button {
  color: #aeb9c4;
  min-height: 52px;
  border: 1px solid transparent;
  font-size: clamp(10px, 2.9vw, 13px);
}
#gameShell nav button::before { color: currentColor; }
#gameShell nav button.active {
  color: var(--ice);
  background: #22333e;
  border-color: #344b58;
}

.play-screen { max-width: 540px; margin: 0 auto; }
.play-screen .country-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 20px;
}
.play-screen .country-switch button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 3px;
  background: #202830;
  color: #e0e8ef;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
}
.play-screen .country-switch button > span { font-size: 16px; }
.play-screen .country-switch button b { color: inherit; font-size: clamp(11px, 3.3vw, 15px); }
.play-screen .country-switch button.selected {
  background: var(--ice);
  color: #0a1b24;
  border-color: transparent;
}

.play-layout { display: grid; gap: 18px; }
.play-screen .stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 190px;
  margin: 0;
  padding: 22px 12px;
  background: #1a222a;
  border: 1px solid #466779;
  border-radius: 18px;
  box-shadow: none;
  text-align: center;
}
.play-screen .stage-idle {
  width: 94%;
  justify-self: center;
  min-height: clamp(165px, 25vh, 230px);
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: var(--ice);
  clip-path: polygon(7% 0, 82% 0, 100% 24%, 100% 100%, 0 100%, 0 12%);
}
.stage-idle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5px;
  background: #1a222a;
  clip-path: inherit;
}
.play-screen .stage-idle::after { content: none; }
.sim-chip {
  width: 53px;
  height: 42px;
  border: 1px solid #8db5c7;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 30%, #8db5c7 30% 32%, transparent 32% 68%, #8db5c7 68% 70%, transparent 70%),
    linear-gradient(0deg, transparent 29%, #8db5c7 29% 32%, transparent 32% 68%, #8db5c7 68% 71%, transparent 71%);
}
.preview-number, .play-screen .stage .number, .sim-number b {
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.preview-number {
  margin-top: 6px;
  color: #f2f6fa;
  font-size: clamp(18px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.play-screen .stage .number {
  background: transparent;
  color: #f2f6fa;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.play-screen .stage p { margin: 0; }
.play-controls { display: grid; gap: 9px; }
.play-controls select { min-height: 46px; }
.play-submit { min-height: 52px; font-size: 17px; }

.play-settings, .play-guide {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.play-settings summary, .play-guide summary {
  padding: 12px 4px;
  color: #d3dfe8;
  cursor: pointer;
  font-size: 14px;
}
.play-settings .speed-switch, .play-settings .quick-actions { margin: 8px 0; }
.play-settings .count-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.play-settings .bonus { margin-top: 8px; }
.play-guide .notice { margin-top: 0; }

#gameShell .sim-row, #gameShell .phone-card, #gameShell .menu-tile,
#gameShell .profile-card, #gameShell .notification, #gameShell .rank-row,
#gameShell .access-card, #gameShell .rules, #gameShell .stats > div {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
#gameShell .sim-row, #gameShell .menu-tile { border-radius: 12px; }
#gameShell .sim-number {
  background: #171f26;
  border-color: var(--line) !important;
  box-shadow: none;
}
#gameShell .sim-number b { border: 0; background: transparent; }
#gameShell .sim-info strong, #gameShell .menu-tile b { color: #f2f6fa; }
#gameShell .menu-tile small, #gameShell .segments button { color: var(--muted); }
#gameShell .menu-tile {
  min-height: 104px;
  padding: 12px;
}
#gameShell .menu-tile > span, #gameShell .phone-symbol {
  background: #22313c;
  color: var(--ice);
  border-color: #3d5867;
  box-shadow: none;
}
#gameShell .segments { background: #171f26; border-color: var(--line); box-shadow: none; }
#gameShell .segments button.active {
  background: #263945;
  border-color: #446172;
  color: var(--ice);
  box-shadow: none;
}
#gameShell .notification.unread { border-left-color: var(--ice); }
#gameShell .access-symbol { color: var(--ice); text-shadow: none; }
#gameShell .rank-row.mine { background: #263945; }
#gameShell .working::after { background: linear-gradient(90deg, transparent, var(--ice), transparent); }

@media (min-width: 651px) {
  .play-screen .country-switch { margin-bottom: 28px; }
  .play-layout { gap: 24px; }
}

#gameShell .case-card, #gameShell .case-details, #gameShell .case-prizes > article,
#gameShell .upgrade-card, #gameShell .donate-card, #gameShell .wallet-card,
#gameShell .trade-card, #gameShell .empty {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
#gameShell .case-card.selected { border-color: var(--case-color); }
#gameShell .case-card > small, #gameShell .case-prize-kind { color: var(--muted); }
#gameShell .topline { margin-bottom: 12px; }
#gameShell .topline h1 { color: #f2f6fa; letter-spacing: -.04em; }
#gameShell .tag {
  background: #202d37;
  color: #bfdae8;
  border-color: #3a4d5a;
  box-shadow: none;
}
#gameShell .quick-actions button, #gameShell .bonus {
  background: #202931;
  border: 1px solid var(--line);
  color: #e1ecf4;
  box-shadow: none;
}

@media (max-width: 360px) {
  .play-screen .country-switch button { gap: 4px; }
  .play-screen .country-switch button > span { font-size: 13px; }
}

#gameShell header { margin-bottom: 20px; }
.header-tools { display: flex; align-items: center; gap: 7px; min-width: 0; }
.header-tools .header-account { max-width: none; }
#notificationsButton {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #202931;
  color: var(--muted);
  flex: none;
}
.bell-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 3px 3px;
}
.bell-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  border-bottom: 2px solid currentColor;
  bottom: -5px;
  left: calc(50% - 2px);
}
#notificationsButton.has-unread::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
}

#gameShell nav button { position: relative; align-content: center; gap: 5px; }
#gameShell nav button::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
#gameShell nav button:nth-child(1)::before { border-radius: 50%; border-right-color: transparent; }
#gameShell nav button:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 4px);
  width: 5px;
  height: 5px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
}
#gameShell nav button:nth-child(2)::before {
  border-top-right-radius: 8px;
  background: linear-gradient(currentColor,currentColor) center / 8px 1px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1px 8px no-repeat;
}
#gameShell nav button:nth-child(3)::before {
  background: repeating-linear-gradient(90deg,currentColor 0 1px,transparent 1px 4px) center top 3px / 12px 5px no-repeat;
  border-radius: 4px 4px 2px 2px;
}
#gameShell nav button:nth-child(4)::before {
  width: 12px;
  background: linear-gradient(currentColor,currentColor) center bottom 2px / 4px 1px no-repeat;
}
#gameShell nav button:nth-child(5)::before {
  border: 0;
  background: repeating-linear-gradient(to bottom,currentColor 0 1.5px,transparent 1.5px 5px) center / 17px 12px no-repeat;
}

#spinOverlay .spin-dialog, #spinOverlay .modal-reel {
  background: #181f26;
  border-color: #35424e;
  box-shadow: none;
}
#spinOverlay .modal-sim {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(14px, 5vw, 28px);
  background: #1d2730;
  border: 1px solid var(--tier, var(--ice));
  border-radius: 15px;
  box-shadow: none;
}
#spinOverlay .modal-sim b {
  font: 700 clamp(18px, 6vw, 34px)/1.2 ui-monospace, Consolas, monospace;
  color: #f2f6fa;
  letter-spacing: -.05em;
}
#spinOverlay .modal-sim p { margin: 0; }
.result-region { color: var(--muted); }
#spinOverlay .primary { background: var(--ice); color: #0a1b24; box-shadow: none; }

.compact-sim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--tier, var(--ice));
  border-radius: 9px;
}
.compact-sim summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.compact-sim summary::-webkit-details-marker { display: none; }
.compact-sim summary:focus-visible, .market-filters summary:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}
.compact-sim-main, .compact-sim-value { display: grid; align-content: start; gap: 3px; }
.compact-sim-main strong {
  font: 700 clamp(13px, 4vw, 19px)/1.35 ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.compact-sim small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.compact-sim-value { text-align: right; }
.compact-sim-value strong { font-size: clamp(13px, 3.6vw, 17px); }
.compact-sim small.compact-rarity { color: var(--tier, var(--ice)); }
.compact-sim[open] summary { border-bottom: 1px solid var(--line); }
.compact-sim .row-actions { display: flex; flex-wrap: wrap; padding: 10px 12px 12px; gap: 7px; }
.compact-sim .row-actions button { flex: 1 1 auto; font-size: 13px; }
.compact-pattern { margin: 9px 12px 0; }
.market-filter-form { margin-bottom: 10px; }
.market-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.market-filters { margin-top: 8px; }
.market-filters summary { cursor: pointer; padding: 8px 4px; color: var(--ice); }
.market-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.market-filter-fields label { font-size: 13px; color: var(--muted); }
.market-filter-fields input, .market-filter-fields select { margin-top: 4px; }
.market-filter-buttons, .market-filter-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0; }

@media (max-width: 360px) {
  #gameShell header .brand-mark { display: block; width: 27px; height: 27px; }
  .compact-sim summary { padding: 9px 8px; }
}

.collection-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 22px auto;
  padding: 35px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: var(--surface);
}
.collection-empty h2 { margin: 0; font-size: 20px; }
.menu-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#gameShell .menu-featured .menu-tile { min-height: 108px; padding: 9px 5px; }
#gameShell .menu-featured .menu-tile > span { width: 32px; height: 32px; font-size: 19px; }
#gameShell .menu-featured .menu-tile small { font-size: 11px; }
#menuDailyBonus { width: 100%; margin-top: 10px; border: 1px solid var(--line); }
.menu-heading { margin: 18px 0 7px; font-size: 15px; color: var(--muted); }
.menu-rows { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.menu-rows button { text-align: left; border-radius: 0; background: var(--surface); padding: 8px 12px; }
.menu-rows button + button { border-top: 1px solid var(--line); }
.menu-rows button span { display: inline-block; width: 25px; color: var(--ice); }

#gameReceipt {
  position: fixed;
  z-index: 12;
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(calc(100% - 28px), 460px);
  padding: 9px 11px;
  background: #243541;
  border: 1px solid #5d8ca3;
  border-radius: 12px;
  color: #f2f6fa;
  box-shadow: 0 10px 28px #0005;
  animation: tour-enter .25s ease-out both;
}
#gameReceipt[hidden] { display: none; }
#gameReceipt button { color: var(--ice); background: transparent; min-height: 44px; padding: 5px 8px; }

:root { --tour-gold: #f4c66e; }
#openGameTour { color: var(--tour-gold); }
.play-screen .stage-idle.tour-highlight { background: var(--tour-gold); }
#gameTour button:focus-visible { outline-color: var(--tour-gold); }
#gameTour .tour-step h2 { color: #fff0cf; }

.tour-highlight {
  outline: 2px solid var(--tour-gold);
  outline-offset: 4px;
}
#gameTour {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom));
  margin: 0 auto;
  width: min(520px, calc(100% - 24px));
  max-height: min(65dvh, 430px);
  padding: 0;
  border: 1px solid #b4873f;
  border-radius: 16px;
  background: #24211e;
  color: #f2f6fa;
  box-shadow: 0 18px 64px #0009, 0 0 24px #f4c66e20;
}
#gameTour[data-placement="top"] { inset: max(12px, env(safe-area-inset-top)) 0 auto; }
#gameTour::backdrop { background: #07101869; }
.tour-step { padding: 15px; animation: tour-enter .26s ease-out both; }
.tour-step h2 { margin: 10px 0 4px; font-size: clamp(19px, 5vw, 25px); line-height: 1.2; }
.tour-step p { margin: 0 0 11px; color: #c6d2dc; font-size: 14px; }
.tour-counter { font-size: 12px; color: var(--tour-gold); font-variant-numeric: tabular-nums; }
.tour-step progress { display: block; width: 100%; height: 4px; margin-top: 5px; accent-color: var(--tour-gold); }
.tour-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
#gameTour .primary { color: #22180a; background: linear-gradient(135deg, #ffe4a3, var(--tour-gold)); }
.tour-never { width: 100%; margin-top: 4px; background: transparent; color: #c6d2dc; font-size: 13px; }
@keyframes tour-enter { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .tour-step, #gameReceipt { animation: none; }
}

#status.trade-floating-error:not([hidden]) {
  position: fixed;
  inset: auto 12px calc(82px + env(safe-area-inset-bottom)) 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  max-width: 520px;
  margin: 0 auto;
  background: #382229;
  border: 1px solid #dc8691;
  color: #ffe8ec;
  box-shadow: 0 6px 24px #0009;
}
#status.trade-floating-error button {
  flex: none;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  color: inherit;
  font-size: 24px;
}

.spin-sound {
  flex: none;
  position: relative;
}
.spin-sound summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.spin-sound summary::-webkit-details-marker { display: none; }
.spin-sound summary:focus-visible { outline: 2px solid var(--ice); }
.spin-sound[open] summary {
  color: var(--ice);
  background: var(--surface);
}
.spin-sound-muted, .spin-sound.muted .spin-sound-waves { display: none; }
.spin-sound.muted .spin-sound-muted { display: initial; }
.spin-sound-popover {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 7px) auto auto -84px;
  width: 180px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 24px #0007;
}
.spin-sound-popover label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.spin-sound-popover output { color: var(--ice); }
#gameShell .spin-sound-popover input {
  width: 100%;
  min-height: 28px;
  margin: 5px 0 0;
  padding: 0;
  accent-color: var(--ice);
  background: none;
  border: none;
}
@media (max-width: 390px) {
  #gameShell header { gap: 6px; }
  #gameShell .branding { gap: 5px; }
  #gameShell .brand { font-size: clamp(15px, 4.6vw, 18px); }
  .spin-sound summary { width: 27px; }
  .spin-sound-popover { left: -108px; }
}

.pack-animation-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
#gameShell .pack-animation-setting select { width: auto; }
.sim-envelope {
  position: relative;
  width: min(230px, 100%);
  height: 155px;
  margin: 0 auto;
  perspective: 480px;
}
.envelope-back, .envelope-front, .envelope-flap {
  position: absolute;
  inset: auto 0 4px;
  height: 84px;
  border-radius: 12px;
}
.envelope-back { background: #11171c; border: 1px solid #42515d; }
.envelope-front {
  background: linear-gradient(155deg, #323d47, #1c252d 65%);
  border: 1px solid #4a5863;
  clip-path: polygon(0 0, 50% 34%, 100% 0, 100% 100%, 0 100%);
}
.envelope-flap {
  height: 49px;
  bottom: 39px;
  display: grid;
  place-items: center;
  background: linear-gradient(#394650, #27323c);
  clip-path: polygon(0 0, 100% 0, 100% 19%, 50% 100%, 0 19%);
  transform-origin: top;
  animation: envelope-open var(--opening-time) ease-in-out both;
}
.envelope-flap span {
  width: 20px;
  height: 25px;
  background: var(--ice);
  border-radius: 4px;
}
.envelope-sim {
  position: absolute;
  inset: auto 8px 10px;
  height: 70px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  color: #f6f9fb;
  background: #252d32;
  border: 1px solid var(--sim-color);
  border-radius: 13px;
  opacity: 0;
  animation: envelope-slide var(--opening-time) cubic-bezier(.23,.75,.3,1) both;
}
.envelope-sim b {
  font-size: clamp(13px, 4.2vw, 19px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.envelope-chip {
  width: 25px;
  height: 19px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 45%, #634d2d 46% 54%, transparent 55%),
    linear-gradient(transparent 30%, #634d2d 31% 35%, transparent 36% 64%, #634d2d 65% 69%, transparent 70%), #d5b779;
}
.many-reels .sim-envelope { max-width: 190px; }
.many-reels .envelope-sim b { font-size: clamp(11px, 3.1vw, 15px); }
@keyframes envelope-open {
  0%, 12% { transform: rotateX(0); opacity: 1; }
  46%, 100% { transform: rotateX(162deg); opacity: .25; }
}
@keyframes envelope-slide {
  0%, 33% { transform: translateY(0); opacity: 0; }
  42% { opacity: 1; }
  86%, 100% { transform: translateY(-65px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .envelope-flap, .envelope-sim { animation: none; }
}

#spinOverlay .multi-dialog { overflow-x: hidden; }
#spinOverlay .multi-dialog .spin-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 4px 0 8px;
  background: #181f26;
}
#spinOverlay .modal-sim {
  min-width: 0;
  text-align: center;
  grid-template-columns: minmax(0, 1fr);
}
#spinOverlay .modal-sim > * { max-width: 100%; }
#spinOverlay .modal-sim b, #spinOverlay .modal-sim .result-region {
  white-space: normal;
  overflow-wrap: anywhere;
}
#spinOverlay .many-results .modal-sim {
  padding: 12px;
  gap: 5px;
}
#spinOverlay .many-results .modal-sim b {
  font-size: clamp(17px, 4vw, 24px);
  letter-spacing: -.035em;
}
#spinOverlay .modal-sim:has(input:checked), .selectable-collection-sim:has(input:checked) {
  border-color: var(--ice);
  background: #20343f;
}
@media (max-width: 520px) {
  #spinOverlay .many-results { grid-template-columns: minmax(0, 1fr); }
  #spinOverlay .many-results .modal-sim b { font-size: clamp(20px, 6vw, 27px); }
  #spinOverlay .many-reels .envelope-sim b {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

.collection-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.selectable-collection-sim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}
.selectable-sim-details {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 4px 10px;
}
.sim-sale-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d8e4ee;
  font-size: 13px;
  cursor: pointer;
}
#gameShell .sim-sale-check input, #spinOverlay .sim-sale-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--ice);
}
.sale-selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #181f26;
}
.sale-selection-toolbar button { flex: 1 1 auto; min-width: 0; padding: 7px 10px; }
.sale-selection-toolbar p { width: 100%; margin: 0; color: #ffacb4; }
#spinOverlay .sale-selection-toolbar { position: sticky; bottom: 0; z-index: 4; }

#spinOverlay .mechanical-reels .digit-reveal {
  background: #12191f;
  border: 1px solid #40515d;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff16;
  padding: 10px 5px 14px;
}
#spinOverlay .mechanical-reels .digit-line {
  gap: clamp(2px, .9vw, 6px);
  font-size: clamp(20px, 6.5vw, 38px);
}
#spinOverlay .mechanical-reels.many-reels .digit-line {
  font-size: clamp(14px, 4.4vw, 26px);
  gap: 2px;
}
#spinOverlay .mechanical-reels .digit-window {
  width: .83em;
  border-radius: 4px;
  background: linear-gradient(#111920, #354450 46%, #26333e 50%, #141d24);
  box-shadow: inset 0 0 0 1px #5c6e7c;
}
#spinOverlay .mechanical-reels .digit-window::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 3px 4px #0007, inset 0 -3px 4px #0007;
  pointer-events: none;
}
#spinOverlay .mechanical-reels .digit-window.settled {
  color: #ecfaff;
  box-shadow: inset 0 0 0 1px #86dfff88;
}
.envelope-glint {
  position: absolute;
  inset: auto 2px 77px;
  height: 3px;
  background: var(--sim-color);
  border-radius: 50%;
  box-shadow: 0 0 15px 2px var(--sim-color);
  opacity: 0;
  animation: envelope-glint var(--opening-time) ease-out both;
}
@keyframes envelope-glint {
  0%, 43%, 100% { opacity: 0; transform: scaleX(.45); }
  63% { opacity: .6; transform: scaleX(.95); }
}
@media (prefers-reduced-motion: reduce) { .envelope-glint { animation: none; } }

.fortune-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1a2229;
}
.fortune-wheel {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 14px 0 0;
  isolation: isolate;
}
.fortune-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid #a6bcca;
  box-shadow: 0 0 0 4px #0d151c, inset 0 0 0 2px #ffffff25;
}
.fortune-rotor::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -36deg, #f4faff6b 0 1deg, transparent 1deg 72deg);
}
.fortune-pointer {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 32px;
  height: 38px;
  transform: translateX(-50%);
  background: #d9f5ff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top: 4px solid #fff;
}
.fortune-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  border: 2px solid #a6bcca;
  border-radius: 50%;
  background: #18242d;
  color: var(--ice);
  font-size: clamp(16px, 5vw, 25px);
}
.fortune-label { position: absolute; transform: translate(-50%, -50%); text-align: center; }
.fortune-label-inner { display: grid; line-height: 1.15; white-space: nowrap; }
.fortune-label strong { color: #fff; font-size: clamp(12px, 3.8vw, 18px); }
.fortune-label small { color: #edf5fb; font-size: clamp(10px, 2.8vw, 13px); margin-top: 3px; }
.fortune-result { color: var(--muted); text-align: center; min-height: 26px; }
.fortune-result strong { color: var(--ice); margin-left: 4px; }
.fortune-panel button { width: min(100%, 330px); }
.fortune-prizes { margin-top: 12px; }
.fortune-prizes summary { padding: 10px 0; cursor: pointer; }
.fortune-prizes i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sector-color);
  border: 1px solid #ffffff60;
}

.hunt-shortcut, .hunt-overview, .hunt-goal, .hunt-market-filter {
  border: 1px solid #56614b;
  border-radius: 12px;
  background: #202a23;
}
.hunt-shortcut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}
.hunt-shortcut b, .hunt-found, .hunt-badge, .hunt-goal code { color: #d9eda9; }
.hunt-overview, .hunt-goal { display: grid; gap: 9px; padding: 12px; }
.hunt-overview progress { width: 100%; accent-color: #d9eda9; }
.hunt-goals { display: grid; gap: 10px; }
.hunt-goal h2 { margin: 0; font-size: 16px; }
.hunt-goal p { margin: 0; }
.hunt-goal form, .hunt-market-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.hunt-goal select { flex: 1 1 145px; min-width: 0; }
.hunt-market-filter { align-items: center; padding: 8px; margin-bottom: 10px; }
.hunt-market-filter span { flex: 1 1 100%; }
.hunt-market-filter button { min-height: 36px; padding: 5px 10px; }
.hunt-badge { font-weight: 700; }
.hunt-badge small { color: var(--muted); font-weight: 400; }

.welcome-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #4d6f80;
  border-radius: 12px;
  background: #202e37;
}
.welcome-pack p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.welcome-pack details { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.welcome-pack summary { cursor: pointer; width: fit-content; }
.welcome-pack ul { margin: 6px 0 0; padding-left: 20px; }

.starter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #586c7d;
  background: #26353e;
  text-align: left;
}
.starter-banner b { color: var(--ice); white-space: nowrap; }
.odds td, .odds th { overflow-wrap: anywhere; }

.opening-price-reason {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  color: #d9e5ec;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.opening-price-reason small { color: var(--muted); font-size: 12px; }

.profile-showcase { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #202a33; }
.profile-showcase h2 { margin: 0 0 10px; font-size: 18px; }
.profile-showcase summary { padding: 8px 0; cursor: pointer; }
.showcase-numbers { display: grid; gap: 6px; }
.showcase-numbers article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 10px; border-left: 3px solid var(--tier); border-radius: 6px; background: #172028; }
.showcase-numbers small { color: var(--tier); }
.showcase-numbers strong { overflow-wrap: anywhere; }
.showcase-albums ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }

.game-icon { display: inline-block; vertical-align: -.22em; flex: none; }
#menuDailyBonus .game-icon, .pack-animation-setting .game-icon { margin-right: 7px; color: var(--ice); }
#gameTour .game-icon { color: var(--tour-gold); margin-right: 5px; }
.hunt-goal .game-icon, .profile-showcase h2 .game-icon { color: var(--ice); margin-right: 4px; }
.hunt-medal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  padding: 9px 11px;
  border: 1px solid #a58548;
  border-radius: 10px;
  color: #ffe0a1;
  background: #332b20;
}
.hunt-medal .game-icon { width: 27px; height: 27px; }
.hunt-medal strong, .hunt-medal small { display: block; }
.hunt-medal small { color: #d4c5a8; font-size: 12px; }

.hunt-name-badge {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffe0a1;
  background: #332b20;
  border: 1px solid #a58548;
}
.hunt-name-badge .game-icon { width: 17px; height: 17px; }
#gameShell .play-upgrade {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ice);
}

.signature-sim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 7px 11px 7px 8px;
  border-left: 2px solid var(--signature-color);
  border-radius: 7px;
  background: #24313b;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.signature-chip {
  flex: none;
  width: 17px;
  height: 14px;
  border: 1px solid #9aacb7;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 45%, #9aacb7 45% 53%, transparent 53%),
    linear-gradient(transparent 42%, #9aacb7 42% 51%, transparent 51%);
  opacity: .75;
}
.signature-text { display: grid; min-width: 0; }
.signature-text small { color: var(--muted); font-size: 11px; }
.signature-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.signature-number mark { color: var(--signature-color); background: transparent; }
#spinOverlay .modal-sim .signature-number { font-size: clamp(17px, 5.4vw, 29px); }
#spinOverlay .many-results .signature-number { font-size: clamp(16px, 4vw, 24px); }
#spinOverlay .envelope-sim { display: flex; align-items: center; justify-content: center; padding: 4px; }
.envelope-sim .signature-sim { padding: 4px 7px; gap: 5px; }
.envelope-sim .signature-chip { width: 13px; height: 11px; }
.envelope-sim .signature-number { font-size: clamp(12px, 3.9vw, 18px); text-align: center; }
.many-reels .envelope-sim .signature-number { font-size: clamp(11px, 3vw, 15px); }
.envelope-sim mark { animation: signature-reveal var(--opening-time) linear both; }
.envelope-top-tier .signature-sim {
  animation: signature-shine var(--opening-time) ease-out both;
}
@keyframes signature-reveal {
  0%, 68% { color: inherit; }
  87%, 100% { color: var(--signature-color); }
}
@keyframes signature-shine {
  0%, 68%, 100% { background-color: #24313b; }
  84% { background-color: color-mix(in srgb, var(--signature-color) 36%, #24313b); }
}
@media (prefers-reduced-motion: reduce) {
  .envelope-sim mark, .envelope-top-tier .signature-sim { animation: none; }
}
.hunt-shortcut > span { display: grid; gap: 2px; text-align: left; }
.hunt-shortcut small { color: var(--muted); }
.hunt-shortcut > b { white-space: nowrap; }
.compact-sim-main { min-width: 0; }
.compact-sim-main .signature-sim { justify-self: start; }
.compact-sim-main .signature-number { white-space: normal; }

.tour-spotlight {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border: 2px solid var(--tour-gold);
  border-radius: 12px;
  box-shadow: 0 0 0 150vmax #080c12d9, inset 0 0 11px #f4c66e30;
}
#gameTour::backdrop { background: transparent; }
.tour-highlight { outline: 0; }

#gameShell .donate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#gameShell .donate-card { display: flex; flex-direction: column; min-width: 0; padding: 12px; overflow-wrap: anywhere; }
#gameShell .donate-card h2 { font-size: 1rem; margin: 0 0 6px; }
#gameShell .donate-card p { margin: 0 0 8px; }
#gameShell .donate-card strong { margin-top: auto; }
#gameShell .donate-card button { width: 100%; min-width: 0; margin-top: 8px; padding-inline: 6px; }
#gameShell .shop-orders { min-width: 0; overflow-wrap: anywhere; }
#shopNotice { box-sizing: border-box; width: min(90vw, 380px); max-height: 80vh; padding: 20px; border: 1px solid #4b5770; border-radius: 18px; background: #1a202b; color: #eff5ff; }
#shopNotice::backdrop { background: rgb(6 9 16 / 72%); }
#shopNotice h2 { margin: 0 0 8px; }
#shopNotice p { overflow-wrap: anywhere; }
#shopNotice button { width: 100%; }

#ladderBoard{box-sizing:border-box;width:min(94vw,480px);max-height:88dvh;padding:16px;border:1px solid #46506c;border-radius:20px;background:#171e2a;color:#eff5ff}
#ladderBoard::backdrop{background:#080b14cc}
#ladderBoard .topline h2{margin:0}
#ladderBoard .ladder-track{max-height:52dvh;overflow:auto;display:grid;gap:6px}
#ladderBoard .ladder-row{padding:6px;border:1px solid #354359;border-radius:10px}
#ladderBoard .ladder-current{border-color:#8cdbf6;background:#223348}
#ladderBoard .ladder-cells{display:grid;grid-template-columns:repeat(var(--cells),minmax(0,1fr));gap:4px}
#ladderBoard button{min-width:0;padding:7px;border:1px solid #46506c;border-radius:8px;background:#29354b;color:inherit}
#ladderBoard .ladder-mine{background:#6b2a43;color:#ffd3dc}
#ladderBoard .ladder-safe{background:#235b51;color:#cefff1}
#ladderBoard .ladder-picked{animation:ladder-reveal .3s ease-out}
@keyframes ladder-reveal{from{transform:scale(.78);opacity:.2}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){#ladderBoard .ladder-picked{animation:none}}

#ladderBoard .ladder-cells button{position:relative;display:grid;place-items:center;min-height:36px;transition:background-color .14s,border-color .14s;touch-action:manipulation}
#ladderBoard .ladder-cells button svg{display:block}
#ladderBoard .ladder-pending{border-color:#8cdbf6;background:#344d69;animation:ladder-pulse .65s ease-in-out infinite alternate}
#ladderBoard .ladder-explode{animation:ladder-impact .28s ease-out}
#ladderBoard .ladder-blast{pointer-events:none;position:absolute;inset:2px;border:2px solid #ffd49a;border-radius:50%;box-shadow:0 0 14px #ff884d;animation:ladder-burst .3s ease-out both}
@keyframes ladder-pulse{to{opacity:.65}}
@keyframes ladder-impact{25%{transform:translateX(-3px);background:#a65144}50%{transform:translateX(3px)}100%{transform:translateX(0)}}
@keyframes ladder-burst{from{transform:scale(.55);opacity:1}to{transform:scale(1.44);opacity:0}}
@media(prefers-reduced-motion:reduce){#ladderBoard .ladder-pending,#ladderBoard .ladder-explode,#ladderBoard .ladder-blast{animation:none}#ladderBoard .ladder-blast{display:none}}
