.xq-slab {
  background: rgba(16, 42, 32, 0.94);
  border: 1px solid var(--bronze);
  border-radius: 16px;
  padding: 16px;
}
.xq-metric {
  background: rgba(16, 42, 32, 0.94);
  border: 1px solid var(--bronze);
  border-radius: 13px;
  padding: 10px;
  min-width: 0;
}
.xq-metric span {
  display: block;
  color: var(--sand);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.xq-metric b {
  display: block;
  color: var(--ivory);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xq-row { display: flex; gap: 9px; align-items: stretch; }
.xq-row > * { flex: 1; min-width: 0; }
.xq-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.xq-title {
  margin: 0;
  color: var(--gold);
  font-size: 21px;
  font-weight: 900;
}
.xq-sub { margin: 2px 0 0; color: var(--sand); font-size: 12px; }
.xq-copy { margin: 0; color: var(--ivory); line-height: 1.45; }
.xq-muted { color: var(--sand); }
.xq-gold { color: var(--gold); }
.xq-glow { color: var(--glow); }
.xq-ember { color: var(--ember); }
.xq-center { text-align: center; }
.xq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.xq-head .xq-grow { flex: 1; min-width: 0; }

.xq-key, .xq-plate, .xq-glyph, .xq-icon {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.xq-key {
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  background: var(--emerald);
  border: 2px solid var(--antique);
  color: var(--ivory);
  font-weight: 700;
  padding: 10px 14px;
}
.xq-key:disabled {
  background: var(--jungle);
  border-color: var(--bronze);
  color: var(--sand);
}
.xq-plate {
  position: relative;
  min-height: 60px;
  width: 100%;
  background: transparent;
  padding: 8px 16px;
}
.xq-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.xq-plate span { position: relative; font-weight: 900; font-size: 17px; }
.xq-glyph, .xq-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.xq-icon img { width: 30px; height: 30px; }

.xq-hero {
  position: relative;
  min-height: 245px;
  border-radius: 22px;
  border: 1px solid var(--antique);
  overflow: hidden;
  margin: 8px 0 14px;
}
.xq-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 13, 11, 0.95));
}
.xq-hero-copy {
  position: relative;
  z-index: 1;
  padding: 108px 18px 18px;
}
.xq-hero-copy .xq-kicker {
  margin: 0;
  color: var(--glow);
  font-size: 11px;
  font-weight: 700;
}
.xq-hero-copy h2 {
  margin: 4px 0;
  font-size: 27px;
  font-weight: 900;
}
.xq-hero-copy p { margin: 0 0 12px; color: var(--sand); font-size: 13px; }

.xq-foot {
  margin: 16px 0 8px;
  color: var(--sand);
  font-size: 11px;
  text-align: center;
}

.xq-strip {
  display: flex;
  align-items: center;
  min-height: 52px;
  background: rgba(10, 13, 11, 0.83);
  border: 1px solid var(--bronze);
  border-radius: 12px;
  padding: 4px 12px;
}
.xq-strip span { display: block; color: var(--sand); font-size: 11px; font-weight: 700; }
.xq-strip b { display: block; font-size: 19px; font-weight: 900; }
.xq-strip .xq-end { margin-left: auto; text-align: right; }
.xq-strip .xq-end b { color: var(--gold); font-size: 17px; }

.xq-banner {
  min-height: 26px;
  margin: 4px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--sand);
}
.xq-banner.xq-paid { color: var(--gold); }

.xq-cabinet { width: 100%; max-width: 520px; margin: 0 auto; }
.xq-grid-wrap { position: relative; }
.xq-grid-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.xq-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 7px;
}
.xq-cell {
  position: relative;
  aspect-ratio: 1.13;
  background: rgba(10, 13, 11, 0.88);
  border: 1px solid rgba(138, 99, 47, 0.85);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.xq-cell img { width: 92%; height: 92%; object-fit: contain; }
.xq-cell.xq-hit { border-width: 2px; border-color: var(--gold); }
.xq-cell.xq-favor { border-color: var(--glow); }
.xq-cell.xq-wait { border-color: var(--ember); }
.xq-cell.xq-dim img { opacity: 0.35; }
.xq-cell b {
  position: absolute;
  bottom: 1px;
  left: 2px;
  right: 2px;
  background: rgba(10, 13, 11, 0.85);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.xq-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.xq-line-note {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.xq-quest {
  position: relative;
  min-height: 42px;
  margin-top: 4px;
  display: grid;
  place-items: center;
}
.xq-quest > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.xq-quest-track {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 11px;
  border-radius: 6px;
  background: rgba(10, 13, 11, 0.8);
  overflow: hidden;
}
.xq-quest-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--glow), var(--gold));
}
.xq-quest span {
  position: relative;
  background: rgba(10, 13, 11, 0.8);
  border-radius: 6px;
  padding: 4px;
  font-size: 11px;
  font-weight: 700;
}

.xq-favor-row {
  display: flex;
  align-items: center;
  min-height: 31px;
  margin-top: 4px;
  background: rgba(10, 13, 11, 0.82);
  border-radius: 9px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  color: var(--sand);
}
.xq-favor-row.xq-ready { color: var(--gold); }
.xq-pips { display: flex; gap: 4px; margin-left: auto; }
.xq-pips i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: rgba(138, 99, 47, 0.4);
}
.xq-pips i.xq-on { background: var(--gold); }
.xq-favor-row .xq-status { margin-left: auto; color: var(--glow); font-weight: 700; }

.xq-deck {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--obsidian);
  border: 1px solid var(--bronze);
  padding: 5px 10px;
}
.xq-deck .xq-stake { flex: 1; min-width: 0; }
.xq-deck .xq-label { display: block; color: var(--sand); font-size: 11px; font-weight: 700; }
.xq-stepper { display: flex; align-items: center; }
.xq-step {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--jungle);
  color: var(--gold);
  font-size: 22px;
}
.xq-step:disabled { color: var(--bronze); }
.xq-stake b {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}
.xq-spin {
  position: relative;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  flex: none;
}
.xq-spin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.xq-spin span { position: relative; font-weight: 900; font-size: 15px; }
.xq-auto {
  width: 56px;
  height: 62px;
  border-radius: 10px;
  background: var(--emerald);
  border: 1px solid var(--antique);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex: none;
}
.xq-auto i { font-style: normal; color: var(--gold); font-size: 16px; }

.xq-tabs {
  display: flex;
  background: rgba(10, 13, 11, 0.86);
  border: 1px solid var(--bronze);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 10px;
}
.xq-tabs button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--sand);
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
}
.xq-tabs button.xq-focus { background: var(--emerald); color: var(--gold); }

.xq-switch {
  display: flex;
  align-items: center;
  min-height: 52px;
  background: rgba(16, 42, 32, 0.94);
  border: 1px solid var(--bronze);
  border-radius: 12px;
  padding: 4px 14px;
  margin: 7px 0;
  width: 100%;
  text-align: left;
}
.xq-switch span { flex: 1; }
.xq-switch i {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--bronze);
  position: relative;
  flex: none;
}
.xq-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ivory);
}
.xq-switch.xq-on i { background: var(--relic); }
.xq-switch.xq-on i::after { transform: translateX(18px); }

.xq-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(10, 13, 11, 0.93);
  overflow: auto;
  padding: 18px;
  text-align: center;
}
.xq-veil.xq-win { background: rgba(10, 13, 11, 0.72); display: grid; place-items: center; }
.xq-relics { display: flex; gap: 8px; margin-top: 20px; }
.xq-relics button {
  flex: 1;
  border: 1px solid var(--antique);
  border-radius: 12px;
  background: transparent;
  padding: 6px;
  color: var(--ivory);
  font-weight: 700;
  font-size: 12px;
}
.xq-relics img { width: 100%; aspect-ratio: 0.8; object-fit: contain; }
.xq-burst {
  position: relative;
  width: min(330px, 90vw);
  min-height: 210px;
  display: grid;
  place-items: center;
}
.xq-burst img.xq-rays {
  position: absolute;
  width: 330px;
  height: 330px;
  animation: xq-spin 9s linear infinite;
}
.xq-stage.xq-calm .xq-burst img.xq-rays { animation: none; }
.xq-burst .xq-frame { position: relative; width: 100%; min-height: 210px; display: grid; place-items: center; }
.xq-burst .xq-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.xq-burst .xq-frame div { position: relative; padding: 40px 24px; }
.xq-burst h2 { margin: 0; color: var(--gold); font-size: 20px; }
.xq-burst p { margin: 6px 0 0; font-size: 30px; font-weight: 700; }
.xq-burst span { display: block; margin-top: 6px; color: var(--sand); font-size: 12px; }

.xq-sheet {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(10, 13, 11, 0.55);
  display: flex;
  align-items: flex-end;
}
.xq-sheet > div {
  width: 100%;
  background: var(--jungle);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(24px + var(--pad-bottom));
}
.xq-counts { display: flex; gap: 8px; margin: 12px 0 8px; }
.xq-counts button { flex: 1; }

.xq-dialog {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(10, 13, 11, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
}
.xq-dialog > div {
  width: 100%;
  max-width: 420px;
  background: var(--jungle);
  border-radius: 16px;
  padding: 18px;
}
.xq-dialog h2 { margin: 0; color: var(--gold); }
.xq-dialog p { color: var(--ivory); }
.xq-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.xq-text {
  background: transparent;
  border: 0;
  color: var(--gold);
  min-height: 44px;
  padding: 8px 12px;
}

.xq-pay-row { display: flex; align-items: center; gap: 8px; }
.xq-pay-row img { width: 65px; height: 65px; object-fit: contain; flex: none; }
.xq-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xq-shape {
  background: rgba(16, 42, 32, 0.94);
  border: 1px solid var(--bronze);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}
.xq-shape b { color: var(--gold); font-size: 12px; }
.xq-shape svg { width: 100%; height: auto; margin-top: 2px; }
.xq-shape .xq-on { fill: var(--gold); }
.xq-shape rect { fill: rgba(10, 13, 11, 0.8); }
.xq-shape line { stroke: var(--glow); stroke-width: 2; stroke-linecap: round; }

@keyframes xq-spin { to { transform: rotate(360deg); } }

.xq-gap-s { height: 8px; }
.xq-gap { height: 14px; }
.xq-stack > * + * { margin-top: 10px; }
.xq-list p { margin: 6px 0; }
