.mystery-page { padding-bottom: 0; }
.mystery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  padding-top: 1.1rem;
  max-width: 72rem;
}
.mystery-head-copy { flex: 1 1 16rem; min-width: 0; }
.mystery-head h1 { margin-bottom: 0; }
.mystery-hud-cap {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 650;
}
.mystery-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem;
  flex: 1 1 28rem;
  margin: 0;
}
.mystery-hud-cell {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
}
.mystery-range { font-weight: 650; }
.mystery-range-example { max-width: 40rem; margin: 0.4rem 0; }
.mystery-balance { font-weight: 650; }
.mystery-arena { margin: 0.65rem auto 0; max-width: 72rem; }
.mystery-preview-copy { margin: 0.7rem 0 0; max-width: 44rem; font-size: 0.92rem; }
.mystery-window {
  position: relative;
  overflow: hidden;
  height: min(340px, 72vw);
  min-height: 248px;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--text) 55%, transparent);
  border-radius: var(--radius-md, 10px);
  background:
    radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 52%),
    radial-gradient(90% 70% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    color-mix(in srgb, var(--text) 88%, #0b0a09);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent), inset 0 24px 48px rgba(0, 0, 0, 0.28);
  contain: paint;
  touch-action: pan-y;
  pointer-events: none;
  transform: translateZ(0);
}
.mystery-reel {
  display: flex;
  gap: 10px;
  height: 100%;
  align-items: center;
  padding: 16px 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  pointer-events: none;
  transform-style: flat;
}
.mystery-reel.is-preview {
  width: max-content;
  animation: mystery-marquee var(--mystery-marquee-ms, 18000ms) linear infinite;
  animation-direction: normal;
  animation-timing-function: linear;
}
.mystery-reel.is-preview.is-paused { animation-play-state: paused; }
.mystery-reel.is-spinning,
.mystery-reel.is-settling { animation: none; filter: none; }
.mystery-reel.is-settled { will-change: auto; }
.mystery-motion-controls { margin: 0.45rem 0 0; min-height: 2.6rem; }
.mystery-pause { font-size: 0.92rem; min-height: 2.4rem; }
.mystery-reel.is-spinning .mystery-item,
.mystery-reel.is-settling .mystery-item {
  filter: none;
  transform: none;
  transition: none;
}
@keyframes mystery-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes mystery-win-pop {
  0% { transform: scale(1); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1.04); }
}
.mystery-item {
  flex: 0 0 220px;
  width: 220px;
  height: 256px;
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: 10px;
  background: var(--surface, #fff);
  box-shadow: inset 0 -5px 0 var(--mystery-tone, var(--accent));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backface-visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.mystery-tone-0 { --mystery-tone: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.mystery-tone-1 { --mystery-tone: var(--accent); }
.mystery-tone-2 { --mystery-tone: color-mix(in srgb, var(--accent) 68%, var(--accent-2, var(--accent))); }
.mystery-tone-3 { --mystery-tone: color-mix(in srgb, var(--accent-2, var(--accent)) 72%, var(--text)); }
.mystery-tone-4 { --mystery-tone: color-mix(in srgb, var(--accent) 42%, var(--text)); }
.mystery-item img {
  width: 100%;
  height: 158px;
  aspect-ratio: 11 / 8;
  object-fit: cover;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}
.mystery-item.is-loading img,
.mystery-item .ph {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), color-mix(in srgb, var(--text) 12%, var(--bg)));
}
.mystery-item .ph {
  height: 158px;
  aspect-ratio: 11 / 8;
  display: grid;
  place-items: center;
  font-size: 0;
  color: transparent;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
}
.mystery-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.38rem 0.5rem 0.45rem;
  min-height: 0;
  flex: 1;
}
.mystery-item-name {
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mystery-item-qty,
.mystery-item-value {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mystery-item-value {
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}
.mystery-reel.is-settled .mystery-item:not(.is-win) {
  opacity: 0.42;
  filter: none;
}
.mystery-item.is-win {
  border-color: color-mix(in srgb, #fff 85%, var(--accent));
  outline: 3px solid color-mix(in srgb, #fff 70%, var(--accent));
  outline-offset: 1px;
  filter: none;
  opacity: 1;
  z-index: 1;
  animation: mystery-win-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.mystery-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: color-mix(in srgb, #fff 82%, var(--accent));
  z-index: 2;
  pointer-events: none;
  transform: translateX(-1.5px);
  box-shadow: 0 0 0 1px color-mix(in srgb, #000 55%, transparent), 0 0 18px var(--accent);
}
.mystery-marker::before,
.mystery-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}
.mystery-marker::before {
  top: 0;
  border-top: 12px solid color-mix(in srgb, var(--accent) 80%, #fff);
}
.mystery-marker::after {
  bottom: 0;
  border-bottom: 12px solid color-mix(in srgb, var(--accent) 80%, #fff);
}
.mystery-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 1;
  pointer-events: none;
}
.mystery-fade-left { left: 0; background: linear-gradient(to right, color-mix(in srgb, var(--text) 92%, #0b0a09), transparent); }
.mystery-fade-right { right: 0; background: linear-gradient(to left, color-mix(in srgb, var(--text) 92%, #0b0a09), transparent); }
.mystery-win {
  position: relative;
  z-index: 1;
  scroll-margin-top: 5.5rem;
  margin: 0.9rem 0 0;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.45rem 0.95rem;
  align-items: start;
  padding: 1rem 1.15rem;
  max-width: 36rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);
}
.mystery-win[hidden] { display: none !important; }
.mystery-win:has(img[hidden]) { grid-template-columns: minmax(0, 1fr); }
.mystery-win img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}
.mystery-win-copy { display: grid; gap: 0.2rem; min-width: 0; }
.mystery-win-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.mystery-win-link {
  font-size: 1.35rem;
  line-height: 1.25;
  font-family: var(--font-heading);
  text-decoration: none;
  font-weight: 700;
}
.mystery-win-meta,
.mystery-win-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
}
.mystery-win-next {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
}
.mystery-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  align-items: center;
}
.mystery-win-actions .btn {
  min-height: 3.05rem;
  padding-inline: 1.35rem;
}
.mystery-arena.is-ready .mystery-win-next {
  font-weight: 650;
}
.mystery-cta { margin: 0; }
.mystery-arena.is-revealed .mystery-launch,
.mystery-arena.is-revealed .mystery-preview-copy,
.mystery-arena.is-revealed .mystery-motion-controls {
  display: none;
}
.mystery-cta { margin: 0; }
.mystery-launch {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0 auto 0.7rem;
  max-width: 28rem;
}
.mystery-launch .mystery-form,
.mystery-launch .mystery-auth-prompt {
  width: 100%;
}
.mystery-pay-panel {
  display: grid;
  gap: 0.7rem;
  margin: 1rem auto 0;
  max-width: 36rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #fff);
}
.mystery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.mystery-actions .btn,
.mystery-login-row .btn {
  min-height: 2.85rem;
  padding-inline: 1.2rem;
  font-weight: 700;
}
.mystery-pay { border: 0; padding: 0; display: flex; gap: 1rem; margin: 0 0 0.7rem; }
.mystery-login-row { margin: 0.75rem 0 0; }
.mystery-login-row .btn { display: inline-flex; align-items: center; }
.mystery-form { margin: 0; max-width: none; }
.mystery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 72rem;
  list-style: none;
  counter-reset: mystery-step;
}
.mystery-steps li {
  position: relative;
  margin: 0;
  padding: 0.9rem 0.95rem 0.9rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #fff);
  font-size: 0.95rem;
  line-height: 1.4;
  counter-increment: mystery-step;
}
.mystery-steps li::before {
  content: counter(mystery-step);
  position: absolute;
  left: 0.7rem;
  top: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--ink-on-accent, #111114);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mystery-pool-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin: 1.2rem auto 0;
  max-width: 72rem;
  padding-bottom: 0.4rem;
}
.mystery-pool-card {
  flex: 0 0 7.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #fff);
}
.mystery-pool-card img {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  display: block;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}
.mystery-pool-card span {
  display: block;
  padding: 0.28rem 0.4rem 0;
  font-size: 0.75rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mystery-pool-card .mystery-pool-meta {
  padding: 0.1rem 0.4rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
}
.mystery-more {
  max-width: none;
  margin: 0;
}
.mystery-page .error { color: #8b1e1e; }
.mystery-auth-prompt {
  margin: 0;
  max-width: none;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--accent, #0f766e);
  border-radius: var(--radius-md, 10px);
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  text-align: center;
}
.mystery-login-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.mystery-funds {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 1.15rem;
  margin: 0;
  border: 0;
  background: rgba(2, 6, 10, 0.78);
  color: inherit;
  backdrop-filter: blur(8px);
}
.mystery-funds.is-open {
  display: grid;
}
.mystery-funds.is-needed .mystery-funds-panel,
.mystery-funds.is-open .mystery-funds-panel {
  width: min(100%, 26.5rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  padding: 1.2rem 1.15rem 1.1rem;
  border: 1px solid var(--accent, #0f766e);
  border-radius: var(--radius-md, 10px);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface, var(--bg)));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.mystery-funds-panel {
  padding: 0;
  background: var(--surface, var(--bg, #fffaf3));
}
.mystery-pay-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mystery-pay-split::before,
.mystery-pay-split::after {
  content: "";
  height: 1px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.mystery-funds.is-needed .mystery-pay-split,
.mystery-funds.is-open .mystery-pay-split {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}
.mystery-funds.is-needed .mystery-pay-split::before,
.mystery-funds.is-needed .mystery-pay-split::after,
.mystery-funds.is-open .mystery-pay-split::before,
.mystery-funds.is-open .mystery-pay-split::after { content: none; }
.mystery-funds-panel #mystery-funds-lead {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}
.mystery-funds-figures {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.75rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.4;
}
#mystery-funds-balance {
  font-size: 1.05rem;
}
#mystery-funds-balance.is-zero {
  color: #b42318;
}
.mystery-funds-error { margin: 0 0 0.55rem; font-weight: 650; font-size: 0.9rem; }
.mystery-funds-form {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr) auto;
  gap: 0.4rem 0.5rem;
  align-items: end;
}
.mystery-topup-amount {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 650;
}
.mystery-topup-amount input {
  min-height: 2.75rem;
  width: 100%;
}
.mystery-coin-pills {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}
.mystery-coin-pills legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mystery-coin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
}
.mystery-coin input { margin: 0; }
.mystery-coin:has(input:checked) {
  border-color: var(--accent, #0f766e);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.mystery-funds-form .btn { min-height: 2.75rem; }
.mystery-funds-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0.65rem 0 0;
}
html.mystery-funds-open { overflow: hidden; }
.theme-cyber:not(.has-pack) .mystery-funds-panel {
  border-color: var(--accent);
  background: var(--header);
  color: var(--text);
}
.theme-cyber:not(.has-pack) .mystery-funds-figures {
  border-color: var(--line);
}
.theme-cyber:not(.has-pack) #mystery-funds-balance.is-zero {
  color: #ff9b9b;
}
@media (max-width: 800px) {
  .mystery-head { align-items: stretch; }
  .mystery-steps { grid-template-columns: 1fr; }
  .mystery-item { flex-basis: 168px; width: 168px; height: 236px; }
  .mystery-item img, .mystery-item .ph { height: 132px; }
}
@media (max-width: 375px) {
  .mystery-item { flex-basis: 152px; width: 152px; height: 228px; }
  .mystery-item img, .mystery-item .ph { height: 124px; }
  .mystery-item-name { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mystery-reel { transition: none !important; animation: none !important; }
  .mystery-item,
  .mystery-item.is-win { animation: none !important; transition: none !important; transform: none; }
  .mystery-item.is-loading img { animation: none !important; }
  .mystery-pause { display: none !important; }
  .mystery-funds { animation: none !important; transition: none !important; }
}

/* Premium containment-vault presentation. The game remains semantic HTML; this
   layer is visual only and follows the live motion preference in CSS and JS. */
.mystery-page {
  --mystery-ink: color-mix(in srgb, var(--text) 92%, #000);
  --mystery-panel: color-mix(in srgb, var(--header) 88%, #000);
  --mystery-line: color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, 0.13));
  --mystery-glow: color-mix(in srgb, var(--accent) 76%, var(--accent-2, var(--accent)));
  --mystery-chrome: 10.5rem;
  position: relative;
  isolation: isolate;
  overflow: clip;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.15rem 0 0;
  color: color-mix(in srgb, var(--text) 8%, #fff);
  background:
    radial-gradient(65rem 34rem at 50% 4%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 68%),
    radial-gradient(34rem 38rem at 102% 42%, color-mix(in srgb, var(--accent-2, var(--accent)) 22%, transparent), transparent 72%),
    linear-gradient(145deg, color-mix(in srgb, var(--text) 94%, #000) 0%, color-mix(in srgb, var(--header) 78%, #000) 44%, color-mix(in srgb, var(--bg) 88%, #000) 100%),
    var(--hq-hero-art, linear-gradient(color-mix(in srgb, var(--bg) 92%, #000), color-mix(in srgb, var(--text) 94%, #000)));
  background-position: center, center, center, 74% 20%;
  background-size: auto, auto, auto, cover;
  background-repeat: no-repeat;
}
.mystery-page::before,
.mystery-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.mystery-page::before {
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
.mystery-page::after {
  width: 32rem;
  height: 32rem;
  inset: 8rem auto auto -18rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.5rem color-mix(in srgb, var(--accent) 4%, transparent),
    0 0 0 7rem color-mix(in srgb, var(--accent) 3%, transparent);
}
html:has(.mystery-page) .perks-inner {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  padding-block: 0.22rem;
  scrollbar-width: none;
}
html:has(.mystery-page) .perks-inner::-webkit-scrollbar { display: none; }
html:has(.mystery-page) .perk {
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.08rem 0.85rem;
  white-space: nowrap;
}
html:has(.mystery-page) body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
html:has(.mystery-page) #main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html:has(.mystery-page) .site-footer {
  margin-top: 0;
}
html:has(.mystery-more[open]) {
  overflow: hidden;
}
.mystery-screen {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: calc(100svh - var(--mystery-chrome, 5.15rem));
  height: calc(100svh - var(--mystery-chrome, 5.15rem));
  max-height: calc(100svh - var(--mystery-chrome, 5.15rem));
}
.mystery-head {
  grid-row: 1;
  align-items: center;
  gap: 0.55rem 1rem;
  padding-top: 0.15rem;
  max-width: 78rem;
}
.mystery-head .eyebrow {
  margin: 0;
  font-size: 0.68rem;
  color: var(--mystery-glow);
  letter-spacing: 0.34em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.mystery-head h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0.08rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  background: linear-gradient(115deg, #fff 8%, #b8fff7 42%, var(--mystery-glow) 72%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 18%, transparent));
}
.mystery-hud-cap {
  margin: 0.12rem 0 0;
  font-size: 0.88rem;
  line-height: 1.25;
  color: color-mix(in srgb, #fff 76%, var(--accent));
}
.mystery-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1 1 16rem;
  max-width: none;
}
.mystery-hud-cell {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--mystery-line);
  border-radius: 14px 4px 14px 4px;
  color: #effdff;
  font-size: 0.82rem;
  line-height: 1.25;
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 48%),
    rgba(3, 10, 15, 0.76);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 72%, #fff), 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}
.mystery-hud-cell::after {
  display: none;
}
.mystery-hud-cell.mystery-range {
  display: none;
}
.mystery-arena {
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  max-width: 78rem;
  margin-top: 0.3rem;
  min-height: 0;
  height: 100%;
}
.mystery-arena > #mystery-live,
.mystery-arena > #mystery-error {
  grid-area: 1 / 1;
  align-self: start;
  z-index: 8;
}
.mystery-vault {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  perspective: none;
  transform-style: flat;
  padding: clamp(0.5rem, 1.4vw, 0.95rem);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.16));
  border-radius: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 11%, #071017), #020509 62%);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 55px color-mix(in srgb, var(--accent) 14%, transparent);
}
.mystery-vault::before,
.mystery-vault::after {
  content: "";
  position: absolute;
  z-index: 7;
  pointer-events: none;
}
.mystery-vault::before {
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--mystery-frame-angle, 0deg),
    transparent 0 18%,
    var(--mystery-glow) 24%,
    transparent 31% 68%,
    color-mix(in srgb, var(--accent) 85%, #fff) 76%,
    transparent 83%
  );
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.78;
  animation: mystery-frame-rotate 9s linear infinite;
}
.mystery-vault::after {
  inset: 0.55rem;
  border-radius: calc(clamp(20px, 3vw, 34px) - 8px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  mix-blend-mode: screen;
}
@property --mystery-frame-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes mystery-frame-rotate {
  to { --mystery-frame-angle: 360deg; }
}
.mystery-vault-aura {
  position: absolute;
  z-index: -1;
  inset: 8% 6%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  filter: blur(72px);
  opacity: 0.4;
  animation: mystery-aura-breathe 5.5s ease-in-out infinite;
}
@keyframes mystery-aura-breathe {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 0.52; transform: scale(1.05); }
}
.mystery-orbit {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(68vw, 48rem);
  aspect-ratio: 2.8;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.mystery-orbit::before,
.mystery-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mystery-glow);
  box-shadow: 0 0 18px 5px color-mix(in srgb, var(--accent) 48%, transparent);
}
.mystery-orbit::before { left: -0.25rem; }
.mystery-orbit::after { right: -0.25rem; }
.mystery-orbit-a {
  animation: mystery-orbit-spin 18s linear infinite;
}
.mystery-orbit-b {
  width: min(52vw, 36rem);
  opacity: 0.55;
  animation: mystery-orbit-spin 24s linear infinite;
  animation-delay: -8s;
}
@keyframes mystery-orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.mystery-vault-corners i {
  position: absolute;
  z-index: 8;
  width: 2.2rem;
  height: 2.2rem;
  border-color: var(--mystery-glow);
  opacity: 0.85;
  pointer-events: none;
}
.mystery-vault-corners i:nth-child(1) { top: 0.4rem; left: 0.4rem; border-top: 2px solid; border-left: 2px solid; }
.mystery-vault-corners i:nth-child(2) { top: 0.4rem; right: 0.4rem; border-top: 2px solid; border-right: 2px solid; }
.mystery-vault-corners i:nth-child(3) { bottom: 0.4rem; right: 0.4rem; border-bottom: 2px solid; border-right: 2px solid; }
.mystery-vault-corners i:nth-child(4) { bottom: 0.4rem; left: 0.4rem; border-bottom: 2px solid; border-left: 2px solid; }
.mystery-fx-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}
.mystery-arena.is-revealed .mystery-fx-canvas { z-index: 6; }
.mystery-window {
  z-index: 2;
  flex: 1 1 auto;
  height: auto;
  min-height: 168px;
  isolation: isolate;
  perspective: none;
  transform-style: flat;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, 0.1));
  border-radius: clamp(15px, 2vw, 24px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(3, 15, 21, 0.97), #010408 58%, #061018);
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.82),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.65);
  transform: translateZ(0);
}
.mystery-window::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, color-mix(in srgb, var(--accent) 18%, transparent) 5px);
  mix-blend-mode: screen;
}
.mystery-energy-core {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: clamp(9rem, 20vw, 15rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 1%, var(--mystery-glow) 2%, color-mix(in srgb, var(--accent) 18%, transparent) 16%, transparent 58%);
  box-shadow:
    0 0 25px color-mix(in srgb, var(--accent) 28%, transparent),
    0 0 90px color-mix(in srgb, var(--accent) 23%, transparent),
    inset 0 0 32px color-mix(in srgb, var(--accent) 24%, transparent);
  transform: translate(-50%, -50%);
  animation: mystery-core 4.2s ease-in-out infinite;
}
.mystery-energy-core::before,
.mystery-energy-core::after {
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
}
.mystery-energy-core::before { inset: 12%; animation: mystery-core-spin 12s linear infinite; }
.mystery-energy-core::after { inset: 27%; animation: mystery-core-spin 18s linear infinite; }
@keyframes mystery-core {
  0%, 100% { opacity: 0.48; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.86; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes mystery-core-spin { to { rotate: 360deg; } }
.mystery-scan {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--accent) 15%, transparent) 48%, rgba(255, 255, 255, 0.17) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: mystery-scan 5.8s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes mystery-scan {
  0%, 15% { transform: translateX(120%); }
  70%, 100% { transform: translateX(-120%); }
}
.mystery-reel {
  z-index: 2;
  gap: 14px;
  padding: clamp(0.7rem, 2vw, 1.4rem) 0;
  transform-style: flat;
  will-change: transform;
}
.mystery-item {
  position: relative;
  flex-basis: min(218px, 38%);
  width: min(218px, 42vh);
  height: min(282px, calc(100% - 1.5rem));
  border: 1px solid color-mix(in srgb, var(--mystery-tone) 48%, rgba(255, 255, 255, 0.2));
  border-radius: 18px 5px 18px 5px;
  color: #effdff;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--mystery-tone) 15%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(14, 26, 34, 0.94), rgba(3, 8, 13, 0.98));
  box-shadow:
    inset 0 -3px 0 var(--mystery-tone),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.58),
    0 0 22px color-mix(in srgb, var(--mystery-tone) 10%, transparent);
}
.mystery-item::before,
.mystery-item::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.mystery-item::before {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.17), transparent 18% 74%, color-mix(in srgb, var(--mystery-tone) 24%, transparent));
}
.mystery-item::after {
  left: 0.8rem;
  top: 0.8rem;
  width: 2.5rem;
  height: 0.22rem;
  background: var(--mystery-tone);
  box-shadow: 0 0 14px var(--mystery-tone);
}
.mystery-item img {
  height: min(168px, 58%);
  border-bottom: 1px solid color-mix(in srgb, var(--mystery-tone) 46%, transparent);
  background: #071017;
  filter: saturate(0.82) contrast(1.08) brightness(0.82);
}
.mystery-item .ph {
  position: relative;
  height: min(168px, 58%);
  font-size: 0;
  color: transparent;
  text-shadow: none;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mystery-tone) 26%, transparent), transparent 34%),
    linear-gradient(135deg, #08151d, #03070b);
}
.mystery-item .ph::before,
.mystery-item .ph::after {
  border: 0;
  inset: unset;
  transform: none;
}
.mystery-item .ph::after {
  inset: 10% 12%;
}
.mystery-item-copy {
  z-index: 3;
  gap: 0.18rem;
  padding: 0.7rem 0.78rem 0.8rem;
}
.mystery-item-name { font-size: 0.95rem; color: #fff; }
.mystery-item-qty { color: rgba(226, 247, 250, 0.72); }
.mystery-item-value {
  margin-top: auto;
  color: var(--mystery-glow);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 52%, transparent);
}
.mystery-reel.is-spinning .mystery-item {
  filter: none;
  transform: none;
  transition: none;
}
.mystery-reel.is-settled .mystery-item:not(.is-win) {
  opacity: 0.28;
  filter: none;
}
.mystery-item.is-win {
  z-index: 5;
  border-color: #fff;
  outline: 1px solid var(--mystery-glow);
  outline-offset: 5px;
  box-shadow:
    inset 0 -3px 0 #fff,
    0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 42px color-mix(in srgb, var(--accent) 70%, transparent),
    0 28px 65px rgba(0, 0, 0, 0.72);
  animation: mystery-premium-win 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes mystery-premium-win {
  0% { opacity: 0.2; transform: scale(0.78) translateY(22px); filter: brightness(2.2); }
  62% { opacity: 1; transform: scale(1.12) translateY(-6px); filter: brightness(1.35); }
  100% { opacity: 1; transform: scale(1.065) translateY(0); filter: none; }
}
.mystery-marker {
  z-index: 5;
  width: 2px;
  background: linear-gradient(transparent 4%, var(--mystery-glow) 22%, #fff 50%, var(--mystery-glow) 78%, transparent 96%);
  box-shadow: 0 0 16px var(--accent), 0 0 40px color-mix(in srgb, var(--accent) 32%, transparent);
  transform: translateX(-1px);
}
.mystery-marker::before,
.mystery-marker::after {
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 0;
  animation: none;
  box-shadow: none;
  background: none;
}
.mystery-marker::before {
  top: 0;
  bottom: auto;
  border: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid color-mix(in srgb, var(--accent) 88%, #fff);
  transform: translateX(-50%);
}
.mystery-marker::after {
  top: auto;
  bottom: 0;
  border: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid color-mix(in srgb, var(--accent) 88%, #fff);
  transform: translateX(-50%);
}
.mystery-fade { width: clamp(3.6rem, 11vw, 10rem); z-index: 3; }
.mystery-fade-left { background: linear-gradient(to right, #010408 4%, rgba(1, 4, 8, 0.82) 28%, transparent); }
.mystery-fade-right { background: linear-gradient(to left, #010408 4%, rgba(1, 4, 8, 0.82) 28%, transparent); }
.mystery-arena.is-charging .mystery-vault {
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 75px color-mix(in srgb, var(--accent) 28%, transparent),
    inset 0 0 45px color-mix(in srgb, var(--accent) 12%, transparent);
}
.mystery-arena.is-charging .mystery-energy-core { animation-duration: 0.9s; opacity: 1; }
.mystery-arena.is-charging .mystery-scan { opacity: 0.28; }
.mystery-arena.is-charging .mystery-window::before { opacity: 0.14; }
.mystery-arena.is-revealed .mystery-vault {
  animation: mystery-vault-release 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes mystery-vault-release {
  0% { filter: brightness(1); }
  18% { filter: brightness(2.25) saturate(1.5); }
  100% { filter: brightness(1) saturate(1); }
}
.mystery-preview-copy {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 4;
  max-width: min(36rem, calc(100% - 2rem));
  margin: 0 auto 4.35rem;
  padding: 0 0.8rem;
  color: rgba(219, 242, 246, 0.78);
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.mystery-motion-controls {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: start;
  z-index: 5;
  margin: 0.55rem 0.7rem 0 0;
  min-height: 0;
  text-align: center;
}
.mystery-pause {
  min-height: 2.15rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
  border-color: var(--mystery-line);
  color: #dffcff;
  background: rgba(2, 9, 14, 0.72);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 7%, transparent);
}
.mystery-launch {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 5;
  justify-items: center;
  margin: 0 auto 0.75rem;
  max-width: min(32rem, calc(100% - 1.5rem));
  width: calc(100% - 1.5rem);
  pointer-events: none;
}
.mystery-launch .btn,
.mystery-launch a,
.mystery-launch button {
  pointer-events: auto;
}
.mystery-win {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  z-index: 6;
  overflow: hidden;
  width: calc(100% - 1.4rem);
  max-width: min(44rem, calc(100% - 1.4rem));
  min-height: 0;
  margin: 0 0 0.7rem;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, #fff);
  border-radius: 22px 7px 22px 7px;
  color: #f1feff;
  background:
    radial-gradient(circle at 9% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%),
    rgba(3, 10, 15, 0.92);
  box-shadow:
    0 25px 75px rgba(0, 0, 0, 0.5),
    inset 4px 0 0 var(--mystery-glow),
    0 0 38px color-mix(in srgb, var(--accent) 15%, transparent);
  backdrop-filter: blur(18px);
  animation: mystery-prize-panel 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mystery-win::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -6rem;
  top: -7rem;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem color-mix(in srgb, var(--accent) 4%, transparent);
}
@keyframes mystery-prize-panel {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mystery-win img {
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--mystery-line);
  border-radius: 16px 4px 16px 4px;
  filter: saturate(0.88) contrast(1.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.mystery-win-kicker { color: var(--mystery-glow); letter-spacing: 0.2em; }
.mystery-win-link { color: #fff; font-size: clamp(1.05rem, 2.2vw, 1.55rem); }
.mystery-win-meta,
.mystery-win-value { font-size: 0.92rem; }
.mystery-win-next {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(226, 247, 250, 0.72);
}
.mystery-win-actions { position: relative; z-index: 1; margin-top: 0.45rem; }
.mystery-win-cart { width: fit-content; }
#mystery-win-again {
  min-width: min(100%, 14rem);
  min-height: 2.7rem;
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 32%, transparent);
}
.mystery-arena.is-ready .mystery-reel.is-preview {
  filter: saturate(1.05);
}
.mystery-arena.is-ready #mystery-win-again {
  min-height: 2.85rem;
  font-size: 1rem;
  animation: mystery-again-pulse 1.8s ease-in-out infinite;
}
@keyframes mystery-again-pulse {
  0%, 100% { box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 28%, transparent); }
  50% { box-shadow: 0 0 46px color-mix(in srgb, var(--accent) 55%, transparent); }
}
.mystery-launch {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 5;
  margin: 0 auto 0.75rem;
  max-width: min(32rem, calc(100% - 1.5rem));
  width: calc(100% - 1.5rem);
}
.mystery-launch .btn {
  min-height: 2.85rem;
  padding-inline: 1.4rem;
  font-size: 1rem;
}
.mystery-pay-panel,
.mystery-auth-prompt {
  max-width: none;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid var(--mystery-line);
  border-radius: 18px 5px 18px 5px;
  color: #e8fbff;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 46%),
    rgba(3, 10, 15, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.33);
}
.mystery-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  max-width: none;
}
.mystery-auth-prompt { border-width: 1px; padding: 0.65rem 0.8rem; }
.mystery-auth-prompt .muted { margin: 0.2rem 0 0; font-size: 0.86rem; }
.mystery-actions .btn,
.mystery-login-row .btn {
  border-color: color-mix(in srgb, var(--accent) 58%, #fff);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 12%, transparent);
}
.mystery-steps li,
.mystery-pool-card,
.mystery-funds-panel {
  border-color: var(--mystery-line);
  color: #e7f9fc;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 52%),
    rgba(5, 13, 19, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}
.mystery-steps li {
  padding: 1.1rem 1.05rem 1.1rem 3rem;
  border-radius: 15px 4px 15px 4px;
}
.mystery-steps li::before {
  top: 1rem;
  color: #011014;
  background: var(--mystery-glow);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 42%, transparent);
}
.mystery-pool-strip {
  padding: 0.35rem 0.15rem 0.75rem;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.06);
}
.mystery-pool-card {
  border-radius: 12px 3px 12px 3px;
}
.mystery-pool-card img { filter: saturate(0.78) brightness(0.8); }
.mystery-pool-card .mystery-pool-meta,
.mystery-more .mystery-terms,
.mystery-funds-panel #mystery-funds-lead { color: rgba(219, 242, 246, 0.68); }
.mystery-more {
  grid-row: 3;
  z-index: 7;
  width: fit-content;
  max-width: min(44rem, calc(100% - 1.2rem));
  margin: 0.1rem auto 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.mystery-more summary {
  width: fit-content;
  margin: 0 auto;
  padding: 0.28rem 0.95rem;
  border: 1px solid var(--mystery-line);
  border-radius: 999px;
  color: #dffcff;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  background: rgba(3, 10, 15, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}
.mystery-more summary::-webkit-details-marker { display: none; }
.mystery-more-panel {
  display: none;
}
.mystery-more[open] {
  position: absolute;
  grid-row: 2;
  grid-column: 1;
  inset: auto auto 0.5rem 50%;
  transform: translateX(-50%);
  z-index: 9;
  width: min(72rem, calc(100% - 1.4rem));
  max-width: min(72rem, calc(100% - 1.4rem));
  max-height: min(82%, 38rem);
  margin: 0;
  overflow: auto;
  padding: 0.7rem 0.85rem 1rem;
  border: 1px solid var(--mystery-line);
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    rgba(3, 10, 15, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
}
.mystery-more[open] summary {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-bottom: 0.7rem;
  background: rgba(3, 10, 15, 0.92);
}
.mystery-more[open] .mystery-more-panel {
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.mystery-more[open] .mystery-steps {
  margin-top: 0.35rem;
}

@media (max-width: 800px) {
  .mystery-page { padding-top: 0.2rem; }
  .mystery-head { gap: 0.4rem; }
  .mystery-head h1 { font-size: clamp(1.28rem, 6.4vw, 1.85rem); }
  .mystery-hud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
  .mystery-hud-cell { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mystery-more[open] .mystery-steps { grid-template-columns: 1fr; }
  .mystery-hud-cap {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mystery-vault { padding: 0.42rem; border-radius: 18px; }
  .mystery-window { height: auto; border-radius: 14px; }
  .mystery-launch { max-width: none; width: calc(100% - 1rem); margin-bottom: 0.55rem; }
  .mystery-orbit-a { width: 38rem; }
  .mystery-orbit-b { width: 27rem; }
  .mystery-item { flex-basis: min(168px, 44%); width: min(168px, 42vh); height: min(238px, calc(100% - 1.2rem)); }
  .mystery-item img,
  .mystery-item .ph { height: min(132px, 56%); }
  .mystery-reel { gap: 10px; }
  .mystery-fade { width: 3.6rem; }
  .mystery-win { grid-template-columns: 3.6rem minmax(0, 1fr); width: calc(100% - 0.9rem); }
  .mystery-win img { width: 3.6rem; height: 3.6rem; }
  .mystery-win-actions { display: grid; grid-template-columns: 1fr; }
  .mystery-win-actions .btn { width: 100%; justify-content: center; }
  .mystery-preview-copy { margin-bottom: 4.1rem; }
  .mystery-login-row,
  .mystery-login-row,
  .mystery-actions { display: grid; grid-template-columns: 1fr; }
  .mystery-login-row .btn,
  .mystery-actions .btn { width: 100%; justify-content: center; }
  .mystery-funds-form {
    grid-template-columns: 1fr 1fr;
  }
  .mystery-topup-amount { grid-column: 1 / -1; }
  .mystery-funds-form .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 390px) {
  .mystery-head h1 { font-size: clamp(1.2rem, 6.8vw, 1.6rem); }
  .mystery-hud-cap { display: none; }
  .mystery-window { height: auto; }
  .mystery-item { flex-basis: min(146px, 46%); width: min(146px, 40vh); height: min(210px, calc(100% - 1rem)); }
  .mystery-item img,
  .mystery-item .ph { height: min(112px, 54%); }
  .mystery-item-copy { padding: 0.4rem 0.5rem 0.5rem; }
  .mystery-item-name { font-size: 0.84rem; }
  .mystery-item-qty,
  .mystery-item-value { font-size: 0.74rem; }
  .mystery-win { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .mystery-win img { width: 3.2rem; height: 3.2rem; }
}
@media (max-height: 640px) {
  .mystery-head .eyebrow { display: none; }
  .mystery-hud-cap { display: none; }
  .mystery-preview-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mystery-vault::before,
  .mystery-vault-aura,
  .mystery-orbit,
  .mystery-energy-core,
  .mystery-energy-core::before,
  .mystery-energy-core::after,
  .mystery-scan,
  .mystery-marker::before,
  .mystery-arena.is-revealed .mystery-vault,
  .mystery-win,
  .mystery-arena.is-ready #mystery-win-again {
    animation: none !important;
  }
  .mystery-fx-canvas { display: none !important; }
  .mystery-orbit { opacity: 0.32; }
}
