:root {
  color-scheme: dark;
  --paper: #111714;
  --card: #1b2420;
  --ink: #f3ead7;
  --spruce: #172720;
  --muted: #b6baa9;
  --rule: #74776454;
  --bronze: #c3a679;
  --gold: #e8d2a1;
  --key-border: #867358;
  --mint: #afc8a7;
  --ui: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 64% 66% at 48% 24%, #37544692, transparent 79%),
    radial-gradient(ellipse 36% 56% at 11% 43%, #67483940, transparent 92%),
    repeating-linear-gradient(117deg, #e2e6c503 0 1px, transparent 1px 4px);
  font: 1rem/1.55 var(--ui);
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid #e5c98e; outline-offset: 3px; }
button:disabled:focus-visible { outline: none; }
h1, h2, h3, p { margin: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 67px;
  width: min(1080px, 100% - 56px);
  margin: 0 auto;
  border-bottom: 1px solid #e0cfa525;
}
.brand { display: flex; align-items: center; gap: 10px; color: #e9ddc3; font: 700 1rem/1.3 var(--display); letter-spacing: .2em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #9f876383;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 15%, #4e5941, #223027 77%);
  color: #e9c892;
  font: 1.04rem/1 var(--ui);
  letter-spacing: 0;
}
.toolbar { display: flex; align-items: center; gap: 8px; }
.toolbar .mobile-menu-button, .marquee .mobile-game-tool { display: none; }
.toolbar-extras { display: contents; }
.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #bfa67d47;
  border-radius: 99px;
  background: linear-gradient(#303c31, #202921);
  color: #e9dfc8;
  font-size: .875rem;
  font-weight: 700;
}
.tool-button:hover, .tool-button[aria-pressed="true"] { background: #3b4b3b; border-color: #b79c74; }
.tool-button.restart-button { color: #f1d5a1; border-color: #c09e66a3; }
.tool-button.restart-button:disabled { opacity: .55; }
.sound-glyph, .music-glyph { color: #e2c28d; }
.music-button[aria-pressed="true"] .music-glyph { color: #f4db9c; text-shadow: 0 0 9px #e8be7760; }

.lobby { width: min(1080px, 100% - 56px); margin-inline: auto; }
.welcome-step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px;
  min-height: min(660px, calc(100svh - 118px));
  padding: 45px 0 55px;
}
.welcome-copy { position: relative; z-index: 1; padding-left: 3%; }
.welcome-copy h1 {
  font: 700 clamp(4.65rem, 9vw, 8.25rem)/.95 var(--display);
  letter-spacing: .02em;
  text-shadow: 0 7px 26px #0c171190;
}
.welcome-copy h1 span { margin-left: .13em; color: #ddbc7a; font: .35em/1 var(--ui); vertical-align: 44%; }
.welcome-copy p { margin-top: 22px; color: #d1cbb7; font-size: 1.04rem; letter-spacing: .025em; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 26px; }
.welcome-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  flex: 1 1 127px;
  max-width: 197px;
  min-width: 0;
  min-height: 62px;
  padding: 8px 13px;
  border: 1px solid;
  border-radius: 8px;
  text-align: left;
  transition: transform .18s, filter .18s;
}
.welcome-choice:hover { transform: translateY(-2px); filter: brightness(1.09); }
.welcome-choice:disabled { opacity: .68; transform: none; filter: none; }
.welcome-choice-copy { display: grid; gap: 2px; line-height: 1.28; }
.welcome-choice-copy strong { font-size: 1.01rem; font-weight: 800; letter-spacing: .055em; }
.welcome-choice-copy > span { font-size: .76rem; letter-spacing: .025em; }
.welcome-choice-mark { font-size: 1.24rem; }
.welcome-solo {
  border-color: #e2c48e;
  background: repeating-linear-gradient(0deg, #6d4a3208 0 1px, transparent 1px 3px), linear-gradient(#f1ddb1 3%, #c8a978 86%);
  box-shadow: inset 0 1px 1px #fff2d3, 0 8px 22px #0f0d097d;
  color: #291e14;
}
.welcome-solo .welcome-choice-copy > span { color: #514031; }
.welcome-solo .welcome-choice-mark { color: #6e512c; }
.welcome-room {
  border-color: #c5a66e;
  background: repeating-linear-gradient(0deg, #e4c99c07 0 1px, transparent 1px 3px), linear-gradient(#354e3d 3%, #233528 86%);
  box-shadow: inset 0 1px 1px #e6ca9a36, 0 8px 22px #0f0d097d;
  color: #f9e8c9;
}
.welcome-room .welcome-choice-copy > span { color: #d9d3bb; }
.welcome-room .welcome-choice-mark { color: #edd0a0; }
.welcome-figure {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  perspective: 1050px;
}
.welcome-figure::before {
  position: absolute;
  inset: 4% -9% -14%;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 56% 68%, #8c77482c 5%, #5469464a 25%, transparent 67%);
  pointer-events: none;
}
.display-tray {
  position: relative;
  width: min(430px, 89%);
  padding: 13px 15px 19px;
  border: 1px solid transparent;
  border-radius: 19px;
  background:
    repeating-linear-gradient(90deg, #dbd1ab06 0 1px, transparent 1px 3px) padding-box,
    linear-gradient(145deg, #526555, #21372a 48%, #1a2820) padding-box,
    linear-gradient(160deg, #a58752, #e2c38a 26%, #776347 50%, #d0ad70 86%) border-box;
  box-shadow: inset 0 0 0 3px #17251c, inset 0 0 0 4px #e4cba947, 11px 13px 0 #0e1a13, 12px 14px 0 #9471489c, 27px 39px 50px #080f0bcb;
  transform: rotateX(15deg) rotateY(-17deg) rotateZ(6deg);
  transform-origin: center 55%;
}
.figure-lights, .figure-vent { display: flex; align-items: center; justify-content: center; gap: 6px; }
.figure-lights { height: 16px; }
.figure-lights i { width: 5px; height: 5px; border-radius: 50%; background: #efce91; box-shadow: 0 0 6px #f6b46091; }
.figure-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px;
  gap: 3px 5px;
  border: 1px solid #b29666;
  border-radius: 10px;
  background: #21261a;
  box-shadow: inset 0 2px 6px #100e0b91;
}
.figure-reels span {
  display: grid;
  aspect-ratio: 1.48;
  min-width: 0;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(#af9c70, #e3d6b1 23%, #f3ebe0 51%, #cabe98 87%, #a18a60);
  box-shadow: inset 0 0 0 1px #ddd0a887;
}
.figure-reels span:nth-child(n + 4):nth-child(-n + 6) { background: linear-gradient(#c5a26d, #f8e7bc 32%, #faeccd 52%, #cfa76c 100%); }
.figure-reels img { position: relative; z-index: 2; display: block; max-width: 65%; height: clamp(27px, 5.8vw, 68px); object-fit: contain; filter: drop-shadow(0 3px 2px #4d3c2e4d); }
.figure-payline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(50% - 1px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #bd8747, #fecf7d 13%, #fff3c0 48% 75%, #c58947);
  box-shadow: 0 0 0 1px #8a561780, 0 0 7px 1px #f4b14b9c;
}
.figure-vent { margin-top: 9px; }
.figure-vent i { width: 19px; height: 2px; background: #151d17; border-bottom: 1px solid #c6ad745e; border-radius: 2px; }
.selection-step { padding: 40px 0 27px; }
.selection-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.selection-header h1 { font: 700 clamp(2.4rem, 5.4vw, 4.35rem)/1 var(--display); letter-spacing: .07em; }
.selection-header p { margin-top: 11px; color: var(--muted); }
.back-to-welcome { white-space: nowrap; }
.start-cascade { min-width: min(100%, 17rem); min-height: 48px; margin-top: 4px; }
.pk-room-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0 0 13px;
}
.pk-room-option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 11px;
  border: 1px solid #9d875e85;
  border-radius: 7px;
  background: linear-gradient(145deg, #354537, #24332a);
  color: var(--ink);
  text-align: start;
}
.pk-room-option strong { color: #f4e5c6; font-size: .93rem; line-height: 1.24; }
.pk-room-option small { color: #d6d3bd; font-size: .77rem; line-height: 1.35; overflow-wrap: anywhere; }
.pk-room-option:is([aria-pressed="true"], .is-selected, :has(input:checked)) {
  border-color: #d1b278;
  background: linear-gradient(145deg, #4d5137, #324335);
  box-shadow: inset 0 0 0 1px #dec18147;
}
.pk-room-option:hover { border-color: #e2c491; }
.pk-room-options { margin: 6px 0 10px; padding: 0; border: 0; }
.pk-room-options legend { margin-bottom: 4px; color: var(--gold); font-weight: 700; }
.pk-room-option { cursor: pointer; }
.pk-room-option input { flex: none; margin: 0; accent-color: #d5b479; }
.solo-round-settings {
  width: min(100%, 19rem);
  min-width: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #fff0cc;
  font-size: .91rem;
  font-weight: 700;
}
.solo-round-settings legend { margin-bottom: 4px; padding: 0; }
.solo-round-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.solo-round-presets label { position: relative; cursor: pointer; }
.solo-round-settings input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.solo-round-presets span { display: grid; min-height: 44px; place-items: center; border: 1px solid #827c60; border-radius: 5px; background: #25392d; }
.solo-round-presets input:checked + span { border-color: #e0c68b; background: #526140; color: #fff2cd; }
.solo-round-presets input:focus-visible + span { outline: 2px solid #e5c98e; outline-offset: 2px; }
.solo-round-settings small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; font-weight: 500; }
.solo-best-score { margin: -6px 0 12px 12px; color: #e9d5af; font-size: .85rem; font-variant-numeric: tabular-nums; }
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.mode-card {
  --edge: #b39b6b;
  --mode-tint: #304c38;
  --mode-faint: #86b4a44f;
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: radial-gradient(ellipse at 40% -22%, var(--mode-tint), transparent 76%), linear-gradient(#2b3930, #1b2821);
  box-shadow: inset 0 0 0 3px #1d2b22, inset 0 0 0 4px #e3cbab26, 0 9px 25px #0b100b70;
  color: var(--ink);
  text-align: left;
  transition: transform .18s, border-color .18s;
}
.mode-card-blast { --mode-tint: #573f35; --mode-faint: #b6827559; }
.mode-card:hover { transform: translateY(-3px); border-color: #f0c58c; }
.mode-card-title, .mode-card-action { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.mode-card-title strong { font: 750 clamp(1.45rem, 3.3vw, 2.05rem)/1.1 var(--display); letter-spacing: .065em; }
.mode-chip { padding: 2px 6px; border: 1px solid var(--mode-faint); border-radius: 4px; color: #e6d8b6; font-size: .86rem; }
.mode-illustration {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #bba473ac;
  border-radius: 8px;
  background: linear-gradient(130deg, #222b23, #19231b 62%, #3b3325);
  box-shadow: inset 0 0 9px #080a08bb;
}
.mini-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 5px; }
.mini-reels > span {
  display: grid;
  height: clamp(22px, 4.6vw, 48px);
  border: 1px solid #d9c2967d;
  border-radius: 3px;
  place-items: center;
  background: linear-gradient(#bbb498, #e7dfca 48%, #c6b695);
  color: #4a5d46;
  font: clamp(.95rem, 1.65vw, 1.45rem)/1 var(--ui);
}
.mode-card-nudge .mini-reels > span:nth-child(3n + 2) { background: linear-gradient(#a5b896, #deebc8 48%, #b6c49d); box-shadow: inset 0 0 0 1px #8eae75; }
.mode-card-blast .mini-reels > span:nth-child(3), .mode-card-blast .mini-reels > span:nth-child(7), .mode-card-blast .mini-reels > span:nth-child(8) {
  background: linear-gradient(#c88f82, #ecd0bc 48%, #d3a58c);
  color: #823f3a;
  box-shadow: inset 0 0 0 1px #ae615b;
}
.mini-controls { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 5px; }
.mini-controls i { height: 8px; border: 1px solid #78978287; border-radius: 3px; background: #395144; }
.mode-card-nudge .mini-controls i:nth-child(2) { border-color: #d1d493; background: linear-gradient(#c1d197, #889f70); }
.mode-card-blast .mini-controls i { border-color: #b19270; background: linear-gradient(#a67c63, #664637); }
.mode-card-description { min-height: 2.7em; color: #d9d5bf; }
.mode-card-action { min-height: 37px; padding: 5px 9px; border: 1px solid #9d875f9c; border-radius: 6px; background: #3a4838; color: #f2ddab; font-weight: 740; }
.mode-card-blast .mode-card-action { background: #554234; }

.arcade { width: min(1080px, 100% - 56px); margin: 0 auto; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin: 29px 0 22px;
}
.intro-title { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; min-width: 0; }
.intro h1 {
  font: 700 clamp(2.35rem, 5.5vw, 4.55rem)/1.04 var(--display);
  letter-spacing: .065em;
  margin: 0;
  text-shadow: 0 3px 13px #1015129c;
  white-space: nowrap;
}
.intro h1 > span { margin-left: .08em; white-space: nowrap; }
.intro > p {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  color: #c9c8b4;
  font-weight: 570;
  font-size: .94rem;
  line-height: 1.52;
  margin-bottom: 3px;
}
.intro-mark { width: 8px; height: 8px; margin-left: 4px; flex-shrink: 0; transform: rotate(45deg); border: 1px solid #e5c68f; box-shadow: 0 0 9px #f5c66e2d; }
.installed-mods {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 2px 4px 0;
  border-top: 1px solid color-mix(in srgb, var(--skin-edge, #9eb78a) 35%, transparent);
}
.installed-mods-caption { display: grid; color: #ece4cb; font-size: .84rem; font-weight: 750; line-height: 1.19; white-space: nowrap; }
#passiveCapacity { color: #b9c8b4; font-size: .74rem; font-variant-numeric: tabular-nums; }
.installed-mods[data-full] #passiveCapacity { color: #ffd386; }
.passives {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #8fa590 #223d30;
}
.passives-empty { color: #b9c8b4; font-size: .78rem; }
.passive-icon-item { flex: none; }
.passive-info-button {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid #a58f647d;
  border-radius: 6px;
  place-items: center;
  background: linear-gradient(145deg, #4e6047, #273a2e 81%);
  box-shadow: inset 0 0 0 2px #1c2d2288, 0 2px 5px #11181098;
  color: #efd096;
}
.passive-info-button:is(:hover,[aria-expanded="true"]) { border-color: #edca87; background: linear-gradient(145deg, #6b7351, #394b34 81%); }
.passive-info-button:focus-visible { outline-offset: -3px; }
.passive-icon { display: grid; width: 33px; height: 33px; place-items: center; }
.core-art {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #09161080);
  pointer-events: none;
}
.passive-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.passive-info-button[data-spent]:not([data-spent="false"]), .passive-icon-item[data-spent]:not([data-spent="false"]) .passive-info-button { border-color: #7a786182; background: #2c352a; color: #b8a681; }
.passive-info-button[data-spent]:not([data-spent="false"]) .passive-icon, .passive-icon-item[data-spent]:not([data-spent="false"]) .passive-icon { opacity: .65; filter: saturate(.58); }
.passive-icon-item.is-triggered .passive-info-button {
  border-color: #f0ca7f;
  box-shadow: inset 0 0 0 1px #e6bb5e62, 0 0 10px #e0ac535e;
  color: #ffdf9e;
}
.passive-icon-item.is-triggered .passive-icon { opacity: 1; filter: none; }
.passives .passive-icon-item.is-activating .passive-info-button {
  border-color: var(--core-accent, #e8bf77);
  color: var(--core-light, #fff2cc);
  box-shadow: inset 0 0 9px var(--core-halo, #e8bf7750), 0 0 13px var(--core-halo, #e8bf7750);
  animation: core-icon-strike .57s ease-out both;
}
.passive-icon-item.is-activating .passive-icon { filter: none; opacity: 1; }
.passive-tooltip {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 5px);
  left: 0;
  width: min(300px, 100%);
  padding: 9px;
  border: 1px solid var(--core-tier-rim, #c4a36daf);
  border-radius: 9px;
  background: linear-gradient(144deg, #345241, #20362c);
  box-shadow: 0 6px 14px #111913b8;
  color: #e2d8be;
  font-size: .84rem;
  line-height: 1.39;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.passive-tooltip strong { color: #f8e6ba; }
.passive-tooltip p { margin-top: 3px; }
.passive-tooltip small { display: block; margin-top: 4px; color: #d9b981; }
.passive-detail-heading { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 7px; }
.passive-detail-art { width: 46px; height: 46px; }
[data-core-rarity="common"] { --core-tier-ink: #dee6c7; --core-tier-rim: #9ca784; --core-tier-wash: #a2b28420; }
[data-core-rarity="rare"] { --core-tier-ink: #c6eff6; --core-tier-rim: #77b9c8; --core-tier-wash: #68b7ce25; }
[data-core-rarity="legendary"] { --core-tier-ink: #ffe3a3; --core-tier-rim: #e1b464; --core-tier-wash: #efb9502b; }
.core-detail-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.core-rarity-badge, .core-duration-badge {
  display: inline-block;
  width: fit-content;
  padding: 1px 6px;
  border: 1px solid var(--core-tier-rim);
  border-radius: 5px;
  background: var(--core-tier-wash);
  color: var(--core-tier-ink);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}
.core-duration-badge {
  border-color: #a4c4a67d;
  background: #94bc951c;
  color: #d8eed8;
}
.core-duration-badge[data-duration="consumable"] {
  border-color: #e0a6848f;
  background: #d491702b;
  color: #ffdbc3;
}
.core-tags { display: inline-flex; flex-wrap: wrap; justify-content: end; gap: 4px; }
.core-odds {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 5px 3px 6px;
  border-inline-start: 2px solid var(--core-tier-rim);
  border-radius: 3px;
  background: var(--core-tier-wash);
  color: #fff1d6;
  font-size: .81rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.core-odds b { color: var(--core-tier-ink); }
.passive-icon-item:where(:not(.is-triggered, .is-activating)):is([data-core-rarity="rare"], [data-core-rarity="legendary"])[data-spent="false"] .passive-info-button {
  border-color: var(--core-tier-rim);
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(275px, 1fr);
  align-items: start;
  gap: 18px;
}
.machine { position: relative; isolation: isolate; min-width: 0; }
.machine::before {
  position: absolute;
  inset: 30% -6% -7%;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 50% 65%, #10281a 4%, #ae814826 42%, transparent 70%);
  pointer-events: none;
}
.cabinet {
  --reel-inset: 10px;
  --reel-column-gap: 7px;
  --reel-row-gap: 2px;
  --machine-sheen: #69776270;
  --machine-rim: #a28b68;
  --machine-face: linear-gradient(133deg, #293a30, #182822 32%, #16231d 76%, #262c20);
  position: relative;
  min-width: 0;
  padding: 18px 21px 21px;
  border: 1px solid transparent;
  border-radius: 19px;
  background:
    repeating-linear-gradient(98deg, #d9daca03 0 1px, transparent 1px 4px) padding-box,
    radial-gradient(ellipse at 35% -19%, var(--machine-sheen), transparent 67%) padding-box,
    var(--machine-face) padding-box,
    linear-gradient(152deg, var(--machine-rim) 0%, #e1ca9e 16%, #635843 50%, #8e7756 84%, #3c3d27) border-box;
  box-shadow: inset 0 0 0 2px #192721, inset 0 0 0 4px #ad96782d, inset 0 -12px 17px #0e1813b2, 0 15px 28px #06090a9c;
  color: #f1e8d5;
}
#machinePage[data-mode="blast"] .cabinet { --machine-sheen: #9a6e4b74; --machine-rim: #ae856c; }
#machinePage[data-mode="blast"] .machine-mode strong { color: #f0c6a9; }
:is(.cabinet, .skin-card)[data-skin="cranberry"] {
  --skin-light: #fce1b0;
  --skin-edge: #c08145;
  --skin-panel: #5c2027;
  --skin-dark: #2c1319;
  --skin-trim: linear-gradient(117deg, #754023, #ffe2a0 22%, #b2743b 47%, #683819 68%, #edba6b 87%, #65341a);
  --skin-curtain: repeating-conic-gradient(from -9deg at 50% -90px, #24081246 0deg 3deg, #ffbcad15 4deg 6deg, transparent 8deg 12deg);
  --skin-face: radial-gradient(ellipse at 50% 5%, #a7464e, transparent 75%), linear-gradient(110deg, #32101b, #672733 52%, #2d1118);
  --skin-tile: linear-gradient(0deg, #ad8a65, #efddc0 14%, #fff1db 49%, #eed9bc 88%, #aa815e);
  --skin-control: repeating-linear-gradient(88deg, #77451b13 0 1px, transparent 1px 3px), linear-gradient(#ffe1a7, #d5a366 51%, #a46736);
  --skin-ink: #2c180f;
  --skin-knob: radial-gradient(ellipse at 34% 22%, #ffd4ba 0, #ff7f65 16%, #bd2541 35%, #651e30 79%, #2f0c12);
  --skin-shape: 34% 34% 43% 43%;
}
:is(.cabinet, .skin-card)[data-skin="frost"] {
  --skin-light: #d9fafa;
  --skin-edge: #94c0d3;
  --skin-panel: #184254;
  --skin-dark: #122a3b;
  --skin-trim: linear-gradient(136deg, #26495d, #e5f7ff 17%, #77becc 30%, #416e83 47%, #b6e6e7 62%, #305169 76%, #c7e9fa 91%);
  --skin-facets: conic-gradient(from 181deg at 100% 0%, #d4f7ff78 0deg 16deg, #7ff6e150 16deg 34deg, #d2b7fb42 34deg 53deg, transparent 53deg), conic-gradient(from 13deg at 0% 100%, #48bace25 0deg 14deg, #96f4e34d 14deg 29deg, #cad5ff23 29deg 52deg, transparent 52deg);
  --skin-face: radial-gradient(ellipse at 24% 12%, #377c8a, transparent 75%), linear-gradient(120deg, #315c71, #142c44 60%, #214b51);
  --skin-tile: linear-gradient(122deg, #9dbfc8, #dff4f0 14%, #f8fdf6 49%, #e5f3fa 88%, #a1c3d3);
  --skin-control: linear-gradient(138deg, #e8faff 4%, #a0d9dc 43%, #80a6bd 44%, #b8e6df 76%, #6a9dac);
  --skin-ink: #142c39;
  --skin-knob: conic-gradient(from 28deg at 50% 44%, #99bdef, #f6ffff 16%, #6bdce2 24%, #385382 39%, #b7eeeb 54%, #7ca4df 74%, #f7ffff 83%, #99bdef);
  --skin-shape: 7% 32% 7% 32%;
}
:is(.cabinet, .skin-card)[data-skin="midnight"] {
  --skin-light: #f5dfaa;
  --skin-edge: #ac8348;
  --skin-panel: #292840;
  --skin-dark: #0e131e;
  --skin-trim: linear-gradient(149deg, #463520 1%, #d6bd81 17%, #84663d 33%, #3b3329 54%, #b99757 75%, #ede1a9 89%, #624326);
  --skin-orbits: radial-gradient(ellipse 72% 51% at 101% 77%, transparent 67%, #e8bd7560 68% 69%, transparent 71%), radial-gradient(ellipse 66% 54% at 101% 78%, transparent 64%, #d6b67539 66% 67%, transparent 68%), radial-gradient(ellipse 80% 47% at 80% 12%, transparent 68%, #d5ab6540 70% 71%, transparent 73%);
  --skin-face: radial-gradient(ellipse at 50% -10%, #3e3954, transparent 62%), linear-gradient(145deg, #1e2330, #0e1220 63%, #221c2b);
  --skin-tile: linear-gradient(#aba386, #e2d5b6 15%, #fff7e3 48%, #e1d6b9 88%, #9d9378);
  --skin-control: repeating-linear-gradient(94deg, #a68e4d17 0 1px, transparent 1px 3px), linear-gradient(#323544, #181c2b 56%, #11131c);
  --skin-ink: #fff0c6;
  --skin-knob: conic-gradient(from 18deg, #66532c, #fce8a5 11%, #987441 31%, #f8d991 44%, #86652e 57%, #edd59b 72%, #ad8e4d 89%, #66532c);
  --skin-shape: 50%;
}

.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) {
  --skin-rail: clamp(3px, 1vw, 7px);
  background: var(--skin-detail, none) padding-box, var(--skin-face) padding-box, var(--skin-trim) border-box;
  box-shadow: inset 0 0 0 2px var(--skin-dark), inset 0 0 0 3px color-mix(in srgb, var(--skin-edge) 36%, transparent), inset 0 -11px 23px #0b0b1280, 0 15px 28px #06090a9c;
}
.cabinet[data-skin="cranberry"] {
  --skin-flute: linear-gradient(90deg, #462717, #a16c39 20%, #ffd29a 39%, #764622 64%, #3a2417 85%, #b5834e);
  --skin-detail: var(--skin-flute) left 3px center / var(--skin-rail) calc(100% - 25px) no-repeat, var(--skin-flute) right 3px center / var(--skin-rail) calc(100% - 25px) no-repeat, var(--skin-curtain) center top / 100% 92px no-repeat;
  border-width: 2px;
  border-radius: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 7px 7px;
}
.cabinet[data-skin="frost"] {
  --skin-detail: var(--skin-facets);
  border-width: 2px;
  border-radius: 6px clamp(17px, 3vw, 33px) 6px clamp(17px, 3vw, 33px);
}
.cabinet[data-skin="midnight"] {
  --skin-detail: var(--skin-orbits);
  border-width: 3px 1px 2px;
  border-radius: clamp(24px, 5vw, 52px) clamp(24px, 5vw, 52px) 15px 15px;
}
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .marquee { position: relative; }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .marquee::after {
  position: absolute;
  inset: auto 0 -3px;
  height: 2px;
  background: var(--skin-divider);
  content: "";
  pointer-events: none;
}
.cabinet[data-skin="cranberry"] .marquee { --skin-divider: linear-gradient(90deg, transparent 2%, #f6c981 23%, #8d4826 49%, #f6c981 77%, transparent 98%); }
.cabinet[data-skin="frost"] .marquee { --skin-divider: linear-gradient(105deg, #9ee9d900 4%, #8feede 35%, #c7aff7 65%, #b0dcfb00 96%); }
.cabinet[data-skin="midnight"] .marquee { --skin-divider: repeating-linear-gradient(90deg, transparent 0 5px, #dcb06b80 5px 6px, transparent 6px 10px); }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) :is(.machine-mode strong, .machine-score strong, .round-count) { color: var(--skin-light); }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .machine-mode span { color: color-mix(in srgb, var(--skin-light) 72%, #fff); }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) :is(.machine-score, .nudge-controls .utility-button) {
  border-color: color-mix(in srgb, var(--skin-edge) 72%, var(--skin-dark));
  background: linear-gradient(155deg, var(--skin-panel), var(--skin-dark));
  color: var(--skin-light);
}
.cabinet[data-skin="frost"] .round-lights i { width: 8px; height: 4px; border: 0; border-radius: 1px; background: #122e40; }
.cabinet[data-skin="frost"] .round-lights i.ready { background: #b3fae8; box-shadow: 0 0 5px #79f1da8f; }
.cabinet[data-skin="midnight"] .round-lights i { border-radius: 1px; transform: rotate(45deg); }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .reel-well {
  border-color: var(--skin-edge);
  background: linear-gradient(145deg, var(--skin-panel), var(--skin-dark) 45%, var(--skin-panel));
  box-shadow: inset 0 0 0 1px var(--skin-dark), inset 0 5px 11px #090b08b8, inset 0 -1px 0 var(--skin-edge), 0 3px 6px #0b110eaa;
}
.cabinet[data-skin="cranberry"] .reel-well { border-radius: 13px 13px 4px 4px; border-top: 3px double var(--skin-edge); }
.cabinet[data-skin="frost"] .reel-well { border-radius: 3px 10px 3px 10px; }
.cabinet[data-skin="midnight"] .reel-well { border-radius: 8px; border-style: double; }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .reel-well::before {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--skin-bezel-detail);
  content: "";
  pointer-events: none;
}
.cabinet[data-skin="cranberry"] .reel-well {
  --skin-bezel-detail:
    linear-gradient(168deg, #ffdd98, #996033 62%, transparent 65%) top left / 31px 7px no-repeat,
    linear-gradient(192deg, #ffdd98, #996033 62%, transparent 65%) top right / 31px 7px no-repeat,
    linear-gradient(17deg, #e1ae65, #885024 60%, transparent 64%) bottom left / 22px 5px no-repeat,
    linear-gradient(-17deg, #e1ae65, #885024 60%, transparent 64%) bottom right / 22px 5px no-repeat;
}
.cabinet[data-skin="frost"] .reel-well {
  --skin-bezel-detail:
    linear-gradient(132deg, #d2ffff 14%, #75d7d8 26% 42%, transparent 44%) top left / 17px 14px no-repeat,
    linear-gradient(-48deg, #d2ffff 14%, #75d7d8 26% 42%, transparent 44%) bottom right / 17px 14px no-repeat,
    linear-gradient(90deg, #3ae0ce7a, #cfc4ff9c 42%, transparent 77%) top left / 52% 2px no-repeat;
}
.cabinet[data-skin="midnight"] .reel-well {
  --skin-bezel-detail:
    repeating-linear-gradient(90deg, #c9a367ad 0 1px, transparent 1px 4px) top center / 72% 3px no-repeat,
    repeating-linear-gradient(90deg, #bf955697 0 1px, transparent 1px 4px) bottom center / 72% 2px no-repeat;
}
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .tile:where(:not(.win, .core-marked, .core-effect-target, .gold, .is-gold, .golden, [data-symbol="wild"])) { background: var(--skin-tile); }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .pull:not(:disabled, .is-award, .is-tool, .is-draft, .is-skip, .is-recap) {
  position: relative;
  border-color: var(--skin-edge);
  background: var(--skin-control);
  color: var(--skin-ink);
}
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .pull:not(:disabled, .is-award, .is-tool, .is-draft, .is-skip, .is-recap)::after {
  position: absolute;
  inset: 4px 34px 4px 55%;
  background: var(--skin-console-engraving);
  content: "";
  pointer-events: none;
}
.cabinet[data-skin="cranberry"] .pull {
  --skin-console-engraving:
    radial-gradient(ellipse at 50% 45%, #ffe4af57 12%, #80523560 14% 20%, transparent 22%) 50% 50% / 40% 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 3px, #7f542c5c 3px 4px, #ffe2aa60 4px 5px) 54% 54% / 80% 49% no-repeat;
  border-radius: 10px 10px 4px 4px;
}
.cabinet[data-skin="frost"] .pull {
  --skin-console-engraving: linear-gradient(145deg, transparent 13%, #edffff86 14% 17%, #6a9ab650 18% 39%, #d8fffa73 40% 45%, #4c8da04a 46% 67%, #e7fbff8a 69% 74%, transparent 76%);
  border-radius: 4px 15px 4px 15px;
}
.cabinet[data-skin="frost"] .pull::after { clip-path: polygon(19% 38%, 69% 2%, 100% 26%, 86% 72%, 34% 98%, 0 74%); }
.cabinet[data-skin="midnight"] .pull {
  --skin-console-engraving:
    radial-gradient(circle at 71% 30%, #ffe3a1 0 2px, #deac6863 3px, transparent 5px),
    radial-gradient(ellipse 48% 61% at 50% 50%, transparent 66%, #d6a458c7 69% 71%, transparent 74%),
    radial-gradient(ellipse 44% 54% at 49% 48%, transparent 62%, #c992535d 64% 67%, transparent 71%);
  border-radius: 30px 7px 7px 30px;
}
.cabinet[data-skin="midnight"] .pull:not(:disabled, .is-award, .is-tool, .is-draft, .is-skip, .is-recap)::after { transform: rotate(-17deg); }
.cabinet[data-skin="midnight"] .pull-mechanism { box-shadow: inset 0 0 0 1px #e5c998, 0 1px 4px #a48750a6; }
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .lever {
  border-color: var(--skin-edge);
  background: repeating-linear-gradient(112deg, #e7d8bb0b 0 1px, transparent 1px 4px), linear-gradient(140deg, var(--skin-panel), var(--skin-dark));
}
.cabinet:is([data-skin="cranberry"], [data-skin="frost"], [data-skin="midnight"]) .lever-knob {
  border-color: var(--skin-edge);
  border-radius: var(--skin-shape);
  background: var(--skin-knob);
}
.cabinet[data-skin="frost"] .lever-knob { clip-path: polygon(50% 0, 88% 16%, 100% 54%, 69% 100%, 32% 100%, 0 54%, 12% 16%); }
.cabinet[data-skin="frost"] .lever-stem { border-color: #82a5ba; background: linear-gradient(90deg, #476a88 7%, #c6e4ed 34%, #eefbff 47%, #607c9b 91%); }
.cabinet[data-skin="frost"] .lever-mount { border-color: #98c8d6; background: radial-gradient(circle, #1f4b5c 30%, #809eaa 33% 40%, transparent 45%), conic-gradient(#5c8699, #d0edee, #487487, #bfe9ed, #5c8699); }
.cabinet[data-skin="midnight"] .lever-knob { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.cabinet[data-skin="midnight"] .lever-mount { border: 2px solid #d6b56f; background: radial-gradient(circle, #1f1b25 38%, transparent 44%), repeating-conic-gradient(#d1aa64 0deg 4deg, #2f2632 5deg 24deg); }

.machine:has(> .cabinet[data-skin="cranberry"])::before { background: radial-gradient(ellipse at 50% 50%, #b03e553b, transparent 72%); }
.machine:has(> .cabinet[data-skin="frost"])::before { background: radial-gradient(ellipse at 54% 40%, #7cc4d954, transparent 70%); }
.machine:has(> .cabinet[data-skin="midnight"])::before { background: radial-gradient(ellipse at 50% 50%, #76609259, transparent 73%); }
.cabinet::after {
  position: absolute;
  bottom: 4px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8ad7050 30% 70%, transparent);
  content: "";
  pointer-events: none;
}
.cabinet[data-frame-art]::before {
  position: absolute;
  inset: -13px -2px 0;
  z-index: 0;
  border-style: solid;
  border-width: 70px 23px 20px;
  border-color: transparent;
  border-image: var(--cabinet-shell, url("art/machine-casing.webp")) 16.5% 10.8% 10% stretch;
  filter: drop-shadow(0 2px 3px #092017bb);
  content: "";
  pointer-events: none;
}
.cabinet[data-frame-art] .marquee {
  position: relative;
  padding-top: 41px;
}
@media (min-width: 621px) {
  .arcade:has(.cabinet[data-frame-art]) .intro { margin-block: 13px 16px; }
  .arcade:has(.cabinet[data-frame-art]) .intro h1 { font-size: clamp(2.35rem, 3.45vw, 3rem); }
}
.marquee { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; }
.round-meter, .round-lights { display: flex; align-items: center; }
.machine-mode {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px 7px;
  color: #e1c791;
}
.machine-mode strong { font-size: 1rem; font-weight: 760; letter-spacing: .065em; white-space: nowrap; }
.machine-mode span { color: #c5cbb4; font-size: .8rem; }
.machine-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  padding: 0 9px;
  border: 1px solid #ad915b9c;
  border-radius: 5px;
  background: linear-gradient(165deg, #3d4832, #1c2c21);
  box-shadow: inset 0 0 0 2px #18251e;
  color: #dec799;
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.machine-score strong { color: #fff0c3; font-size: 1.3rem; line-height: 1.26; }
.round-meter { gap: 11px; }
.round-count { color: #eee0c2; font-size: .875rem; font-weight: 690; white-space: nowrap; }
.round-lights { gap: 6px; }
.round-lights i { width: 7px; height: 7px; border: 1px solid #91866c73; border-radius: 50%; background: #2c3328; box-shadow: inset 0 1px 3px #0e1411; }
.round-lights i.ready { border-color: #b4ac74; background: radial-gradient(circle, #fdf3c9 1px, #b08744 70%); box-shadow: 0 0 4px #edcc7c5a; }
.round-lights i.current { outline: 1px solid #d5b67d80; outline-offset: 2px; }
.win-feedback {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.win-feedback:not(:has(.win-cue:not(:empty), .prize-pop:not([hidden]))) { display: none; }
.win-feedback:has(.prize-pop[hidden]) { grid-template-columns: minmax(0, 1fr); }
.round-feedback {
  --award-row-height: 111px;
  display: grid;
  grid-template-rows: var(--award-row-height);
  margin-block: 2px 4px;
}
.round-feedback .win-feedback { margin: 0; padding: 3px 4px 2px; }
.round-feedback .prize-pop { padding: 4px; }
.round-feedback .prize-pop-card { animation-name: score-receipt-arrive; }
.round-feedback .score-pop-card.has-character { min-height: 0; padding-block: 5px; }
.round-feedback .score-pop-character { height: clamp(63px, 8vw, 86px); }
.round-feedback .score-pop-copy {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: start;
  gap: 2px 5px;
  overflow-wrap: anywhere;
}
.round-feedback .score-pop-copy .prize-character-name { grid-area: 1 / 1 / 2 / 3; }
.round-feedback .score-pop-copy .prize-rarity { grid-area: 2 / 1; min-width: 0; }
.round-feedback .score-pop-copy .prize-pop-name { grid-area: 1 / 3; white-space: nowrap; }
.round-feedback .score-pop-copy .prize-score-notes { grid-area: 2 / 2 / 3 / -1; }
.prize-score-notes {
  max-height: 2.6em;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  pointer-events: auto;
  color: #f0e2c8;
  font-size: .74rem;
  line-height: 1.3;
}
.prize-score-notes .prize-score-detail { display: block; font-size: inherit; line-height: inherit; }
.win-cue-dock {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 11px 12px;
  overflow: clip;
  container-type: inline-size;
  pointer-events: none;
}
.win-cue {
  width: max-content;
  max-width: 100%;
  pointer-events: none;
}
.win-cue:empty { display: none; }
.win-cue-banner {
  --cue-line: #fbc575;
  --cue-light: #fff2bf;
  --cue-dark: #75512d;
  --cue-glow: #f5ab53a8;
  --cue-size: clamp(1.55rem, 4.6vw, 2.85rem);
  --cue-punch: 1.13;
  --cue-duration: 1.16s;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 13px 6px;
  border: 1px solid var(--cue-line);
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 0, var(--cue-dark), #17241ae8 84%);
  box-shadow: inset 0 0 0 2px #172319a6, inset 0 0 0 3px color-mix(in srgb, var(--cue-line) 35%, transparent), 0 2px 9px #101711b0, 0 0 19px var(--cue-glow);
  color: var(--cue-light);
  white-space: nowrap;
  opacity: 1;
}
.win-cue.is-firing .win-cue-banner {
  animation: win-cue-pop var(--cue-duration) cubic-bezier(.2,.8,.3,1) both;
}
.win-cue-word {
  position: relative;
  z-index: 1;
  font: 900 var(--cue-size)/.96 Georgia, var(--display);
  font-size: min(var(--cue-size), 11cqi);
  letter-spacing: .06em;
  text-shadow: 0 2px 0 #23180e, 0 3px 7px #0a160e, 0 0 11px var(--cue-glow);
}
.win-cue:is([data-grade="incredible"], [data-grade="jackpot"]) .win-cue-word { font-size: min(var(--cue-size), 8.5cqi); }
.win-cue-count {
  position: relative;
  z-index: 1;
  padding-inline: 6px;
  border-top: 1px solid color-mix(in srgb, var(--cue-line) 58%, transparent);
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}
.win-cue-banner::before, .win-cue-banner::after { position: absolute; z-index: 0; pointer-events: none; }
.win-cue.is-firing[data-grade="good"] .win-cue-banner::before {
  inset: -3px;
  border: 1px solid #ffcf8d;
  border-radius: 9px;
  box-shadow: 0 0 12px #ffb343a6;
  content: "";
  animation: cue-ripple .58s ease-out both;
}
.win-cue.is-firing[data-grade="good"] .win-cue-banner::after {
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(113deg, transparent 32%, #fff0bac2 47%, #f4b95787 55%, transparent 67%) 100% 0 / 240% 100%;
  content: "";
  animation: cue-foil .68s ease-out both;
}
.win-cue[data-grade="great"] .win-cue-banner {
  --cue-line: #a9e8a5; --cue-light: #edffd4; --cue-dark: #375946; --cue-glow: #82df7ebf;
  --cue-size: clamp(1.67rem, 4.9vw, 3.1rem); --cue-punch: 1.16;
}
.win-cue.is-firing[data-grade="great"] .win-cue-banner::before, .win-cue.is-firing[data-grade="great"] .win-cue-banner::after {
  inset: -2px;
  border: 2px solid #bcecb1;
  border-radius: 9px;
  box-shadow: 0 0 11px #8ae78baf;
  content: "";
  animation: cue-ripple .77s ease-out both;
}
.win-cue.is-firing[data-grade="great"] .win-cue-banner::after { animation-delay: .15s; }
.win-cue[data-grade="amazing"] .win-cue-banner {
  --cue-line: #b5dfff; --cue-light: #edfbff; --cue-dark: #35546c; --cue-glow: #8cceffc9;
  --cue-size: clamp(1.72rem, 5.1vw, 3.28rem); --cue-punch: 1.19;
}
.win-cue.is-firing[data-grade="amazing"] .win-cue-banner::before {
  bottom: 92%;
  left: 50%;
  color: #e1f6ff;
  font-size: 1.26rem;
  line-height: 1;
  letter-spacing: .21em;
  text-shadow: 0 0 11px #8aceff;
  white-space: nowrap;
  content: "✧ ✦ ✷ ✦ ✧";
  animation: cue-stars .9s ease-out both;
}
.win-cue.is-firing[data-grade="amazing"] .win-cue-banner::after {
  inset: -2px;
  border: 1px solid #e0f7ff;
  border-radius: 9px;
  box-shadow: 0 0 18px 3px #72c8ffa0;
  content: "";
  animation: cue-ripple .83s ease-out both;
}
.win-cue[data-grade="incredible"] .win-cue-banner {
  --cue-line: #ffb377; --cue-light: #fff2c1; --cue-dark: #753f31; --cue-glow: #ff865fbf;
  --cue-size: clamp(1.77rem, 5.25vw, 3.45rem); --cue-punch: 1.21;
}
.win-cue.is-firing[data-grade="incredible"] .win-cue-banner::before, .win-cue.is-firing[data-grade="incredible"] .win-cue-banner::after {
  left: 0;
  width: 34%;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ed965907, #ffad5c, #fff4bd);
  box-shadow: 0 0 13px 2px #ef8748bd;
  content: "";
  animation: cue-comet .83s cubic-bezier(.28,.62,.2,1) both;
}
.win-cue.is-firing[data-grade="incredible"] .win-cue-banner::before { bottom: -2px; }
.win-cue.is-firing[data-grade="incredible"] .win-cue-banner::after {
  top: -2px;
  animation-direction: reverse;
  animation-delay: .13s;
}
.win-cue[data-grade="jackpot"] .win-cue-banner {
  --cue-line: #ffe697; --cue-light: #fff8d5; --cue-dark: #80613a; --cue-glow: #ffd078c9;
  --cue-size: clamp(1.95rem, 5.65vw, 3.8rem); --cue-punch: 1.24;
}
.win-cue.is-firing[data-grade="jackpot"] .win-cue-banner::before {
  inset: -21px -25px;
  background: repeating-conic-gradient(from 9deg, #fff1b4ef 0deg 5deg, #f7b98251 5deg 9deg, transparent 9deg 24deg);
  mask-image: radial-gradient(ellipse, transparent 0 40%, #000 48% 70%, transparent 79%);
  content: "";
  animation: cue-crown 1.23s cubic-bezier(.16,.62,.31,1) both;
}
.win-cue.is-firing[data-grade="jackpot"] .win-cue-banner::after {
  inset: -3px;
  border: 2px solid #fff6c7;
  border-radius: 10px;
  box-shadow: 0 0 23px 4px #ffd66fd4;
  content: "";
  animation: cue-ripple 1.12s ease-out both;
}
@keyframes win-cue-pop {
  0% { opacity: .18; transform: translateY(8px) scale(.59); filter: brightness(1.65); }
  18% { opacity: 1; transform: translateY(-3px) scale(var(--cue-punch)); filter: brightness(1.13); }
  32% { transform: translateY(1px) scale(.97); }
  43%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
}
@keyframes cue-foil { from { opacity: 0; background-position: 100% 0; } 18% { opacity: 1; } to { opacity: 0; background-position: 0 0; } }
@keyframes cue-ripple { from { opacity: .8; transform: scale(.82, .96); } to { opacity: 0; transform: scale(1.17, 1.5); } }
@keyframes cue-stars {
  from { opacity: 0; transform: translate(-50%, 5px) scale(.55); }
  38% { opacity: 1; transform: translate(-50%, -2px) scale(1); }
  to { opacity: 0; transform: translate(-50%, -5px) scale(1.2); }
}
@keyframes cue-comet { from { opacity: 0; transform: translateX(-20%) scaleX(.35); } 25% { opacity: 1; } to { opacity: 0; transform: translateX(256%) scaleX(.32); } }
@keyframes cue-crown { from { opacity: 0; transform: scale(.68) rotate(-9deg); } 43% { opacity: .87; transform: scale(1.06) rotate(0); } to { opacity: 0; transform: scale(1.13) rotate(6deg); } }
.win-particles {
  --paper-lift-scale: .82;
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.win-particles:empty { display: none; }
.win-particles i {
  position: absolute;
  left: var(--paper-origin, 9%);
  top: 44%;
  width: 5px;
  height: 8px;
  border-radius: 1px;
  background: var(--paper-color, #f9cd7e);
  box-shadow: 0 0 3px #f3c67863;
  transform-origin: center;
  animation: local-paper var(--paper-duration, .76s) cubic-bezier(.17,.48,.37,1) var(--paper-delay, 0ms) both;
}
.win-particles i[data-shape="diamond"] { width: 7px; height: 7px; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.win-particles i[data-shape="star"] { width: 10px; height: 10px; clip-path: polygon(50% 0,61% 36%,100% 50%,63% 63%,50% 100%,37% 64%,0 50%,36% 36%); }
.win-particles i[data-shape="comet"] { width: 13px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #edb66319, var(--paper-color, #f9cd7e)); }
.win-particles[data-grade="jackpot"] i { animation-duration: var(--paper-duration, 1.08s); }
@keyframes local-paper {
  from { opacity: 0; transform: translate(0, 0) rotate(0) scale(.52); }
  12% { opacity: 1; }
  74% { opacity: .88; }
  to { opacity: 0; transform: translate(var(--paper-x, 0px), calc(var(--paper-y, 0px) * var(--paper-lift-scale))) rotate(var(--paper-rotate, 100deg)) scale(.82); }
}
.reel-well {
  position: relative;
  padding: var(--reel-inset);
  margin-top: 12px;
  border: 1px solid #a1855e;
  border-radius: 12px;
  background: linear-gradient(130deg, #24271d, #111913 18%, #2a2e22 83%, #3d3527);
  box-shadow: inset 0 0 0 1px #271c14, inset 0 5px 11px #090b08b8, inset 0 -1px 1px #e4c085a3, 0 3px 6px #0b110eaa;
}
:is([data-core-effect="mark"], .passive-icon-item:has([data-passive-info="mark"])) {
  --core-accent: #c5a2ea; --core-light: #f6e7ff; --core-dark: #3d2d52; --core-halo: #bc8aea70;
}
:is([data-core-effect="rebound"], .passive-icon-item:has([data-passive-info="rebound"])) {
  --core-accent: #9ed6c0; --core-light: #e1fff1; --core-dark: #26483d; --core-halo: #80cdb475;
}
:is([data-core-effect="spark"], .passive-icon-item:has([data-passive-info="spark"])) {
  --core-accent: #f0c37c; --core-light: #fff0c3; --core-dark: #594025; --core-halo: #ffbb6588;
}
:is([data-core-effect="torch"], .passive-icon-item:has([data-passive-info="torch"])) {
  --core-accent: #f5a96d; --core-light: #ffe8c3; --core-dark: #582f23; --core-halo: #ed8a536f;
}
:is([data-core-effect="gold"], .passive-icon-item:has([data-passive-info="gold"])) {
  --core-accent: #eed070; --core-light: #fff4bf; --core-dark: #544424; --core-halo: #ebc04a78;
}
:is([data-core-effect="ribbon"], [data-core-effect="cascade-ribbon"], .passive-icon-item:has([data-passive-info="ribbon"], [data-passive-info="cascade-ribbon"])) {
  --core-accent: #c1d5ea; --core-light: #eef8ff; --core-dark: #354a61; --core-halo: #adc9ed70;
}
:is([data-core-effect="wild-stamp"], [data-core-effect="wild-rescue"], [data-core-effect="wild-chain"],
  .passive-icon-item:has([data-passive-info="wild-rescue"], [data-passive-info="wild-chain"])) {
  --core-accent: #e1b7f2; --core-light: #fff2ff; --core-dark: #48315b; --core-halo: #cf9aee8c;
}
:is([data-core-effect="wild-rebound"], [data-core-effect="wild-growth"],
  .passive-icon-item:has([data-passive-info="wild-rebound"], [data-passive-info="wild-growth"])) {
  --core-accent: #9de1dd; --core-light: #e9fffc; --core-dark: #254a45; --core-halo: #83d2ca75;
}
.core-reveal {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(210px, 72%);
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--core-accent, #e8bf77);
  border-radius: 6px;
  background: linear-gradient(137deg, var(--core-dark, #423c28), #18231e 85%);
  box-shadow: inset 0 0 0 1px #101a17aa, 0 2px 8px #101812c9, 0 0 15px var(--core-halo, #e8bf7750);
  color: var(--core-light, #fff2cc);
  translate: -50% -73%;
  pointer-events: none;
  animation: core-reveal-in .26s cubic-bezier(.19,.82,.28,1) both;
}
.core-reveal-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 1px;
  border: 1px solid color-mix(in srgb, var(--core-accent, #e8bf77) 65%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--core-dark, #423c28) 70%, #fff9 30%);
}
.core-reveal-copy { display: grid; gap: 2px; min-width: 0; line-height: 1.05; }
.core-reveal-copy strong { font-size: .79rem; letter-spacing: .025em; }
.core-reveal-copy small { overflow: hidden; color: #e4e2ce; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
@keyframes core-reveal-in {
  from { opacity: 0; scale: .89; translate: -50% -101%; }
  to { opacity: 1; scale: 1; translate: -50% -73%; }
}
@keyframes core-icon-strike { 42% { transform: scale(1.12); } }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--reel-row-gap) var(--reel-column-gap); }
.paylines {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.payline { position: absolute; z-index: 1; height: 0; transform-origin: 0 0; }
.payline-ray {
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #cc943e, #fff2bb 14% 86%, #cc943e);
  box-shadow: 0 0 0 1px #8b561d9c, 0 0 8px 2px #f9b84283;
  transform-origin: left center;
}
.payline-ray::before, .payline-ray::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border: 1px solid #ae6f28;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #ffe9a0;
  box-shadow: 0 0 6px 1px #f2ac347d;
  content: "";
}
.payline-ray::after { left: 100%; }
.payline-point {
  position: absolute;
  width: var(--point-size, 40px);
  height: var(--point-size, 40px);
  border: 1px solid #ad7435a8;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #fff0b4b8, 0 0 4px #ebaf4b66;
  transform: translate(-50%, -50%);
}
.payline.is-awarded .payline-ray { animation: payline-sweep .64s cubic-bezier(.22,.7,.27,1) var(--line-delay) both; }
.payline-point.is-awarded { animation: payline-mark .52s ease-out var(--point-delay) both; }
.reel-well[data-core-phase="win"] .payline:not(.is-current-line) .payline-ray { opacity: .62; }
.reel-well[data-core-phase="win"] .payline.is-current-line { z-index: 2; }
.reel-well[data-core-phase="win"] {
  --line-edge: #f8a842;
  --line-core: #fff5cb;
  --line-glow: #ffc05abf;
  --line-width: 4px;
}
.cabinet:has(.win-cue[data-grade="great"]) .reel-well[data-core-phase="win"] { --line-edge: #90d989; --line-core: #edffcb; --line-glow: #aef49abf; }
.cabinet:has(.win-cue[data-grade="amazing"]) .reel-well[data-core-phase="win"] { --line-edge: #8bd4fb; --line-core: #eefaff; --line-glow: #a3e1ffcc; --line-width: 4.5px; }
.cabinet:has(.win-cue[data-grade="incredible"]) .reel-well[data-core-phase="win"] { --line-edge: #fa9c67; --line-core: #fff4bc; --line-glow: #ffb46ecc; --line-width: 5px; }
.cabinet:has(.win-cue[data-grade="jackpot"]) .reel-well[data-core-phase="win"] { --line-edge: #eac477; --line-core: #fff7cd; --line-glow: #ffda82d9; --line-width: 5.5px; }
.reel-well[data-core-phase="win"] .payline.is-current-line .payline-ray {
  inset-block-start: calc(-.5 * var(--line-width));
  height: var(--line-width);
  background: linear-gradient(90deg, var(--line-edge), var(--line-core) 18% 82%, var(--line-edge));
  box-shadow: 0 0 0 1px var(--line-edge), 0 0 9px 2px var(--line-glow), 0 0 18px var(--line-glow);
  animation: payline-step-sweep .35s cubic-bezier(.23,.74,.31,1) both;
}
.reel-well[data-core-phase="win"] .payline-point.is-current-line {
  z-index: 3;
  border: 2px solid var(--line-core);
  box-shadow: inset 0 0 9px var(--line-glow), 0 0 12px var(--line-glow);
  animation: payline-step-node .33s cubic-bezier(.24,.64,.34,1) both;
}
.reel-well[data-core-phase="win"] .tile.line-hit-cell {
  border-color: var(--line-core);
  box-shadow: inset 0 0 0 2px var(--line-edge), inset 0 0 16px var(--line-glow), 0 0 11px var(--line-glow);
  animation: payline-step-tile .31s ease-out both;
}
@keyframes payline-step-sweep {
  from { transform: scaleX(.025); opacity: .3; }
  67% { transform: scaleX(1); opacity: 1; filter: brightness(1.42); }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes payline-step-node {
  from { transform: translate(-50%, -50%) scale(.8); opacity: .34; }
  65% { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes payline-step-tile { from { filter: brightness(1.13); } to { filter: brightness(1); } }
@keyframes payline-sweep {
  0% { transform: scaleX(0); opacity: 0; }
  12% { opacity: 1; }
  72% { transform: scaleX(1); filter: brightness(1.6); }
  100% { transform: scaleX(1); opacity: 1; filter: brightness(1); }
}
@keyframes payline-mark {
  0% { transform: translate(-50%, -50%) scale(.69); opacity: 0; }
  43% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(72px, 9.7vw, 103px);
  overflow: hidden;
  border: 1px solid #e3d8bc72;
  border-radius: 2px;
  background: repeating-linear-gradient(0deg, #40301f06 0 1px, transparent 1px 4px), linear-gradient(#aa9c80, #d9d0b9 17%, #f3ede1 49%, #dcd1b7 82%, #a2987d 100%);
  box-shadow: inset 0 0 16px #6f654447, inset 0 1px 3px #fbf5dc, 0 2px 4px #0009;
}
.tile:nth-child(-n+3) { border-radius: 5px 5px 2px 2px; }
.tile:nth-child(n+7) { border-radius: 2px 2px 5px 5px; }
.tile::before, .tile::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #745a3480;
  border-left: 1px solid #745a3480;
  content: "";
  pointer-events: none;
}
.tile::after { inset: auto 7px 7px auto; transform: rotate(180deg); }
.tile.win { border-color: #fff3ce; background: linear-gradient(#dac190, #f8efd2 39%, #e8d4a0 88%, #b7975c); box-shadow: inset 0 0 0 2px #dba75e, 0 0 12px #e0ba7940; }
.tile.gold, .tile.is-gold, .tile.golden { box-shadow: inset 0 0 0 2px #b78934; }
.tile.win.gold, .tile.win.is-gold, .tile.win.golden { border-color: #ecab34; box-shadow: inset 0 0 0 2px #c9932a; }
:is(.tile, .watch-cell)[data-symbol="wild"] {
  position: relative;
  border-color: #cba3e7;
  background: radial-gradient(ellipse at 52% 39%, #fff8ed, transparent 69%), linear-gradient(145deg, #d2abd3, #ebd6f3 31%, #b8dfc9 72%, #b0a0c1);
  box-shadow: inset 0 0 0 2px #b484cb, inset 0 0 13px #d8b5f0ad;
}
:is(.tile.win, .watch-cell.is-match)[data-symbol="wild"] { border-color: #fff2be; box-shadow: inset 0 0 0 2px #ebc678, 0 0 12px #d8adeb75; }
.tile[data-symbol="wild"] .symbol::after, .watch-cell[data-symbol="wild"]::after {
  position: absolute;
  z-index: 1;
  inset: auto -6px 0 auto;
  padding: 1px 3px;
  border: 1px solid #f5d9ff94;
  border-radius: 3px;
  background: #4a335e;
  color: #fff3ff;
  content: "万能";
  font: 760 .57rem/1.15 var(--ui);
  pointer-events: none;
}
.watch-cell[data-symbol="wild"]::after { inset: auto 2px 2px auto; }
.tile.core-marked {
  border-color: #916ab2;
  background: radial-gradient(ellipse at 54% 54%, #fff5d9, #e4cfe3 84%);
  box-shadow: inset 0 0 0 2px #b171bd, 0 0 13px #ac73bc80;
  animation: core-mark-flash .42s ease-out both;
}
:where(.reel-well)[data-core-effect] .tile.core-effect-target {
  border-color: var(--core-accent, #e8bf77);
  box-shadow: inset 0 0 0 2px var(--core-halo, #e8bf7750), inset 0 0 18px var(--core-halo, #e8bf7750);
}
:where(.reel-well)[data-core-effect] .tile.core-effect-target::after {
  z-index: 1;
  inset: 1px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  opacity: .8;
  transform: none;
}
:is([data-core-effect="mark"], [data-core-effect="wild-stamp"], [data-core-effect="wild-rescue"],
  [data-core-effect="wild-chain"]) .tile.core-effect-target::after {
  inset: 10%;
  border: 2px double #9251b2;
  border-radius: 50%;
  box-shadow: inset 0 0 10px #bf7dde75, 0 0 9px #f3d3ffad;
  animation: core-stamp .59s ease-out both;
}
[data-core-effect="rebound"] .tile.core-effect-target::after {
  background: linear-gradient(0deg, #416e5f9e, #e1fff1);
  clip-path: polygon(9% 56%, 24% 66%, 24% 82%, 9% 72%, 2% 77%, 2% 61%, 9% 56%, 91% 56%, 98% 61%, 98% 77%, 91% 72%, 76% 82%, 76% 66%, 91% 56%);
  animation: core-rebound-sweep .56s ease-in-out both;
}
[data-core-effect="spark"] .tile.core-effect-target::after {
  background:
    radial-gradient(circle at 17% 26%, #fff5ae 0 2px, #ce7335 3.5px, transparent 5px),
    radial-gradient(circle at 82% 21%, #fff5ae 0 1.5px, #ce7335 3.5px, transparent 5px),
    radial-gradient(circle at 24% 82%, #fff5ae 0 1.5px, #ce7335 3.5px, transparent 5px),
    radial-gradient(circle at 87% 73%, #ffe4a4 0 2px, #ce7335 3.5px, transparent 5px);
  animation: core-sparks-out .53s ease-out both;
}
[data-core-effect="gold"] .tile.core-effect-target::after {
  background: linear-gradient(117deg, transparent 34%, #ebc356a8 42% 49%, #fff5bdcf 50% 54%, transparent 66%);
  background-size: 230% 100%;
  background-position: 58% 0;
  animation: core-gild-sweep .69s ease-out both;
}
@keyframes core-stamp { from { transform: rotate(-23deg) scale(1.24); opacity: 0; } 48% { opacity: .84; } to { transform: rotate(0deg) scale(1); opacity: .75; } }
@keyframes core-rebound-sweep { from { transform: translateY(-18%); opacity: .2; } 54% { opacity: .83; } to { transform: translateY(7%); opacity: .72; } }
@keyframes core-sparks-out { from { transform: scale(.66); opacity: .25; } 51% { opacity: .91; } to { transform: scale(1.15); opacity: .55; } }
@keyframes core-gild-sweep { from { background-position: 110% 0; opacity: .2; } 55% { opacity: .8; } to { background-position: 18% 0; opacity: .63; } }
.reel-well.is-torch-active { border-color: #eeb770; }
.is-torch-active .tile.torch-reroll {
  border-color: #d96f2b;
  box-shadow: inset 0 0 16px #be4f2778, inset 0 0 0 1px #d8693a;
}
.is-torch-active .tile.torch-reroll::before {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 75%, #ffe6a6 0 1px, transparent 2.8px),
    radial-gradient(circle at 84% 58%, #ffd18b 0 1px, transparent 2.7px),
    radial-gradient(circle at 29% 92%, #ffe6a6 0 1.4px, transparent 3px),
    radial-gradient(circle at 73% 86%, #ffd18b 0 1px, transparent 2.8px),
    linear-gradient(0deg, #d6623b91, transparent 57%);
  animation: torch-embers .68s ease-out both;
}
.is-torch-active .tile.torch-held {
  border-color: #ffe3a2;
  box-shadow: inset 0 0 0 2px #e3a545, inset 0 0 7px #ffe4a2;
}
@keyframes torch-embers {
  from { opacity: .92; transform: translateY(8%); }
  43% { opacity: .78; }
  to { opacity: .14; transform: translateY(-12%); }
}
@keyframes core-mark-flash {
  0% { filter: brightness(1.28); }
  100% { filter: brightness(1); }
}
.tile.can-blast { box-shadow: inset 0 0 0 2px #a65d5d; }
.tile.can-nudge { border-color: #93a675; box-shadow: inset 0 0 0 2px #8b9f64b8; }
.tile.preview-nudge { border-color: #71864f; background: linear-gradient(#9ba681, #dbe7c5 40%, #e6edce 60%, #abb694); box-shadow: inset 0 0 0 2px #8caa5b, 0 0 8px #c3d89255; }
.tile.preview-blast { border-color: #9d4e44; background: linear-gradient(#b38370, #f2d3bc 41%, #f0cbb1 63%, #c0997d); box-shadow: inset 0 0 0 2px #af6159, 0 0 8px #b8756350; }
.tile.can-blast:hover, .tile.can-blast:focus-within { background: #eed7ce; border-color: #c58b83; }
.blast-target {
  position: absolute;
  z-index: 4;
  inset: 2px;
  border: 1px dashed #8d3e3bc9;
  border-radius: 4px;
  background: transparent;
  cursor: crosshair;
}
.blast-target::after {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 1px solid #b17d66;
  border-radius: 50%;
  background: radial-gradient(circle, #fce1b9 0 1px, #7c4239 2px 100%);
  box-shadow: 0 1px 4px #653a3359;
  content: "";
}
.blast-target:hover { box-shadow: inset 0 0 0 2px #a74c43; border-color: #8f332e; background: #bd6c642a; }
.blast-target:focus-visible { outline: 2px solid #762f29; outline-offset: -2px; }
.blast-target.nudge-target { border-color: #596f3fbf; cursor: pointer; }
.blast-target.nudge-target::after {
  width: 12px;
  height: 12px;
  border-color: #789853;
  background: radial-gradient(circle, #f1edc6 0 1px, #587044 2px 100%);
  box-shadow: 0 1px 3px #47603750;
}
.blast-target.nudge-target:hover { box-shadow: inset 0 0 0 2px #687f43; border-color: #566c39; background: #9eb15c24; }
.blast-target.nudge-target:focus-visible { outline-color: #486039; }
.tile.removed .symbol { animation: symbol-blast .24s ease-out both; }
.tile.gravity .symbol { animation: symbol-drop .32s cubic-bezier(.3,.55,.31,1.08) both; }
.tile.cascade-clearing {
  border-color: #fff3bc;
  background: radial-gradient(ellipse at center, #fff5ce, #e7b757 50%, #605342);
  box-shadow: inset 0 0 12px #fff3bc, 0 0 10px #f4d17e94;
}
.tile.cascade-clearing .symbol { animation: cascade-clear .24s ease-in both; }
.tile.cascade-falling .symbol { animation: cascade-fall .33s cubic-bezier(.22,.66,.39,1.17) both; }
.tile.cascade-retained {
  border-color: #e8ffec;
  box-shadow: inset 0 0 0 2px #c5fbe3, inset 0 0 14px #c5fbe3c7, 0 0 8px #c5fbe39c;
}
.tile.cascade-retained .symbol img { filter: drop-shadow(0 0 8px #d7fdef); }
@keyframes symbol-blast { to { transform: scale(.35) rotate(-14deg); opacity: .14; } }
@keyframes symbol-drop { from { transform: translateY(-70%); opacity: .4; } }
@keyframes cascade-clear {
  37% { transform: scale(1.14); filter: brightness(1.3); }
  to { transform: scale(.25); opacity: .12; }
}
@keyframes cascade-fall {
  from { transform: translateY(calc(var(--cascade-distance, 1) * -95%)); opacity: .25; }
  62% { opacity: 1; }
}
.symbol {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(67%, 86px);
  height: 86%;
  font: 2.55rem/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.symbol img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px #40352541); pointer-events: none; user-select: none; }
.tile.rolling-reel-covered .symbol { visibility: hidden; }
.reel-roll {
  position: absolute;
  z-index: 1;
  inset: var(--reel-inset);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--reel-column-gap);
  pointer-events: none;
}
.reel-roll-window { min-width: 0; overflow: hidden; border-radius: 5px; }
.reel-roll-window.is-settled { visibility: hidden; }
.reel-roll-track { display: grid; row-gap: var(--reel-row-gap); will-change: transform; }
.reel-roll-entry { display: grid; place-items: center; height: var(--roll-cell); padding: 1px; }
.reel-roll-entry .symbol img { filter: none; }
.tile.win .symbol { animation: win-pulse .47s cubic-bezier(.15,.59,.28,1.2); }
@keyframes win-pulse { 54% { transform: scale(1.12); } }

.result-bar {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 7px;
  margin: 8px 0 9px;
  padding: 6px 3px;
  color: #cde1d1;
  font-size: .875rem;
}
.result-bar.is-win, .result-bar .spark { color: #f7d996; }
.result-bar strong { font-weight: 800; }
.result-bar .line-status-detail { min-width: 0; overflow-wrap: anywhere; }
.core-activity {
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #e3b76878;
  border-radius: 5px;
  background: #53482a;
  color: #ffe0a2;
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.torch-activity {
  border-color: #e6a467;
  background: #55301e;
  color: #ffdfae;
  box-shadow: inset 0 1px 0 #ffc16e25;
}
.utility { min-width: 0; margin: 8px 0 0; }
.utility:empty { display: none; }
.utility-controls, .utility-options { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.nudge-controls, .blast-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--reel-column-gap);
  padding-inline: calc(var(--reel-inset) + 1px);
}
.blast-controls { grid-template-columns: minmax(0, 1fr); }
.nudge-controls + .utility-note, .blast-controls + .utility-note { margin: 5px calc(var(--reel-inset) + 1px) 0; }
.utility-note { color: #d7e7d9; font-size: .82rem; }
.utility-status { display: flex; justify-content: space-between; align-items: center; gap: 5px 8px; margin: 5px calc(var(--reel-inset) + 1px) 0; }
.utility-status .utility-note { min-width: 0; overflow-wrap: anywhere; }
.utility-skip {
  flex-shrink: 0;
  min-height: 29px;
  padding: 2px 6px;
  border: 1px solid #a6916979;
  border-radius: 4px;
  background: #324232;
  color: #ecd8ab;
  font-size: .78rem;
  font-weight: 710;
  white-space: nowrap;
}
.utility-skip:hover { border-color: #c0a876; background: #43543b; }
.utility-note strong { margin-right: 6px; }
.utility-note small, .utility-placeholder { color: #b4c1ad; font-size: .78rem; }
.utility-controls + .utility-note, .utility-note + .utility-options { margin-top: 5px; }
.utility-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 8px;
  border: 1px solid #82735899;
  border-radius: 6px;
  background: linear-gradient(#36483a, #24352b);
  color: #eee2c6;
  font-size: .84rem;
  font-weight: 720;
}
.utility-button:not(:disabled):hover, .utility-button[aria-pressed="true"] { background: #576049; border-color: #c6a877; color: #fff0c4; }
.nudge-controls .utility-button, .blast-controls .utility-button { width: 100%; justify-content: center; }
.nudge-controls .utility-button { min-height: 44px; border-color: #a4b18684; }
.nudge-controls .utility-button:disabled { opacity: .57; filter: saturate(.52); }
.nudge-controls .utility-button.is-armed { border-color: #d0d8a0; background: linear-gradient(#657652, #3d553c 85%); color: #f5efc8; }
#machinePage[data-mode="cascade"] .nudge-controls .utility-button { min-height: 42px; padding-inline: 4px; }
#machinePage[data-mode="cascade"] .nudge-controls.is-armed .utility-button:not(:disabled) { border-color: #c2c996; }
.blast-controls .utility-button { border-color: #b989728c; background: linear-gradient(#674b3e, #473429); }
.blast-controls .utility-button:not(:disabled):hover, .blast-controls .utility-button[aria-pressed="true"] { border-color: #ebb79b; background: linear-gradient(#916652, #664639); color: #fff0d6; }
.utility-button:disabled { opacity: .66; }
.utility-button:focus-visible { outline-color: #efd7a4; }
.utility-swatch { display: inline-grid; place-items: center; width: 22px; height: 23px; flex-shrink: 0; }
.utility-swatch img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.utility-button img { max-width: 23px; max-height: 23px; object-fit: contain; }
.console { display: grid; grid-template-columns: minmax(0, 1fr) 59px; gap: 9px; }
.pull {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 54px;
  padding: 7px 15px;
  border: 1px solid #e1c694;
  border-radius: 7px;
  background: repeating-linear-gradient(0deg, #6d4a3208 0 1px, transparent 1px 3px), linear-gradient(#efdbb0, #c4a473 64%, #b69b6f);
  box-shadow: inset 0 1px 1px #fbecd7c7, inset 0 -2px 3px #6e543539, 0 3px 8px #0b100c93;
  color: #211e17;
  font-size: 1.15rem;
  font-weight: 840;
  letter-spacing: .085em;
  transition: filter .16s, transform .16s;
}
.pull:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.1); }
.pull:not(:disabled):active { transform: translateY(1px); }
.pull:disabled { background: linear-gradient(#a79e7e, #807758); border-color: #ad9b71; color: #181e17; }
.pull.is-award:not(:disabled) {
  border-color: #fce0a2;
  background: repeating-linear-gradient(0deg, #7b51220a 0 1px, transparent 1px 3px), linear-gradient(#ffe8b1, #e6c286 57%, #cda060);
  box-shadow: inset 0 1px 1px #fff0c4, 0 0 12px #e8ba6663, 0 3px 8px #17190fa1;
}
.pull.is-tool:not(:disabled) { border-color: #bdc48c; background: repeating-linear-gradient(0deg, #493e250a 0 1px, transparent 1px 3px), linear-gradient(#d9ddae, #b1bc85 63%, #9ca775); }
.pull.is-draft:not(:disabled) {
  border-color: #ecc9a8;
  background: repeating-linear-gradient(0deg, #754d380c 0 1px, transparent 1px 3px), linear-gradient(#f3dcc7, #d6b49e 63%, #ba967e);
  color: #30231b;
}
.pull.is-recap {
  justify-content: center;
  border-color: #868067;
  background: #364139;
  box-shadow: inset 0 0 0 1px #88917723;
  color: #e5dec4;
  cursor: default;
  transition: none;
}
.pull.is-recap:not(:disabled):is(:hover,:active) { filter: none; transform: none; }
.pull.is-recap .pull-mechanism { display: none; }
.pull:focus-visible, .lever:focus-visible { outline-color: #edd5a1; }
.pull.is-skip {
  border-color: #a58f61;
  background: linear-gradient(180deg, #344235, #253126);
  color: #efdfbd;
  box-shadow: inset 0 1px 0 #f5e7ba13;
}
.pull.is-skip .pull-mechanism { visibility: hidden; }
.pull-mechanism {
  position: relative;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border: 1px solid #96713f;
  border-radius: 50%;
  background: radial-gradient(circle, #a78253 12%, #e5c78d 27% 36%, #8e6a41 40% 43%, #c7a468 46%);
  box-shadow: inset 0 0 0 1px #e5c998, 0 1px 0 #f4e2b8;
}
.pull-mechanism::before, .pull-mechanism::after { position: absolute; content: ""; }
.pull-mechanism::before {
  left: 7px;
  top: -2px;
  width: 3px;
  height: 12px;
  transform: rotate(32deg);
  transform-origin: bottom;
  border-radius: 2px;
  background: linear-gradient(90deg, #51391f, #f2dfb2 50%, #795533);
}
.pull-mechanism::after {
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #65272d;
  background: radial-gradient(circle at 31% 30%, #fc9b87, #992f35 54%, #531923);
}
.lever {
  --arm-height: 31px;
  --mount-size: 26px;
  --knob-size: 18px;
  --arm-rest: 29deg;
  position: relative;
  display: block;
  min-height: 54px;
  border: 1px solid #af906587;
  border-radius: 7px;
  background: repeating-linear-gradient(112deg, #d1cdac05 0 1px, transparent 1px 4px), linear-gradient(140deg, #3c5042, #24362d 62%, #1c2b24);
  box-shadow: inset 0 0 0 2px #14271cb2, inset 0 1px 0 #ddc9a338, 0 3px 8px #0d151273;
  transition: filter .16s;
}
.lever:not(:disabled):hover { filter: brightness(1.16); }
.lever.is-award:not(:disabled) { border-color: #ecc88b; box-shadow: inset 0 0 0 2px #5b513ab2, inset 0 1px 0 #efd7a582, 0 0 9px #e8ba665c; }
.lever.is-draft:not(:disabled) { border-color: #e8bfa0; box-shadow: inset 0 1px 0 #e8bfa059, 0 0 8px #c78e6a45; }
.lever:disabled:not(.is-pulled) { opacity: .61; }
.lever-mount {
  position: absolute;
  left: 38%;
  top: 66%;
  width: var(--mount-size);
  height: var(--mount-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #b5915e;
  background:
    radial-gradient(circle at 50% 50%, #302b20 0 17%, #715333 20% 25%, #322b20 29% 39%, #ad8859 42% 45%, transparent 47%),
    conic-gradient(from 16deg, #d7b984, #7e5736 19%, #bd995e 42%, #66482f 67%, #ddbe88 89%, #d7b984);
  box-shadow: inset 0 0 0 1px #432f26, 0 2px 4px #0c1711b0;
}
.lever-mount::after {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #c5a472;
  background: radial-gradient(circle at 33% 23%, #f0d6aa, #a48054 56%, #5d442b);
  box-shadow: 0 1px 2px #241b0f94;
  content: "";
}
.lever-arm {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: var(--knob-size);
  height: var(--arm-height);
  transform: translate(-50%, -100%) rotate(var(--arm-rest));
  transform-origin: center bottom;
}
.lever-stem {
  position: absolute;
  top: 9px;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  border: 1px solid #9a7952;
  border-radius: 3px;
  background: linear-gradient(90deg, #65513d 4%, #c2a77e 24%, #f1e7c9 40%, #ae9a7a 62%, #66543f 92%);
  box-shadow: 2px 2px 2px #10181283;
}
.lever-collar {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 50%;
  width: 9px;
  height: 5px;
  transform: translateX(-50%);
  border: 1px solid #b99459;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a6238, #debd88 43%, #86633e 90%);
}
.lever-knob {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: var(--knob-size);
  height: var(--knob-size);
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid #ac6962;
  background:
    radial-gradient(ellipse 29% 18% at 34% 26%, #fff3d9 0%, #fbab92 22%, #f68e7870 58%, transparent 100%),
    radial-gradient(circle at 38% 30%, #e16a58 3%, #aa3940 35%, #772731 62%, #4e2125 81%, #c0695f 100%);
  box-shadow: inset 0 -1px 2px #3c111a7b, 1px 3px 4px #130a0bc2;
}
.lever:not(:disabled):active .lever-arm { transform: translate(-50%, -100%) rotate(48deg); }
.lever.is-pulled .lever-arm { animation: lever-pull .72s both; }
@keyframes lever-pull {
  0% { transform: translate(-50%, -100%) rotate(var(--arm-rest)); animation-timing-function: cubic-bezier(.32,.02,.65,1); }
  29%, 42% { transform: translate(-50%, -100%) rotate(111deg); animation-timing-function: cubic-bezier(.25,.65,.52,1); }
  83% { transform: translate(-50%, -100%) rotate(calc(var(--arm-rest) - 7deg)); animation-timing-function: ease-out; }
  94% { transform: translate(-50%, -100%) rotate(calc(var(--arm-rest) + 2deg)); }
  100% { transform: translate(-50%, -100%) rotate(var(--arm-rest)); }
}

.side { display: grid; min-width: 0; gap: 12px; }
.cabinet-button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #b89a69;
  border-radius: 7px;
  background: linear-gradient(145deg, #354438, #203229 85%);
  box-shadow: inset 0 1px 0 #f0cb8c33, 0 2px 5px #10180f99;
  color: #fff0ce;
  font-size: .81rem;
  font-weight: 750;
  white-space: nowrap;
}
.cabinet-button:hover:not(:disabled) { border-color: #e1c086; background: #3b5140; }
.cabinet-button-mark {
  position: relative;
  flex: 0 0 20px;
  height: 22px;
  border: 1.5px solid #e5c180;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(145deg, #657565, #263e33 58%);
  box-shadow: inset 0 -4px #705535, inset 0 -5px #d9b373, 0 2px 2px #0f211a;
}
.cabinet-button-mark::before,
.cabinet-button-mark::after {
  content: "";
  position: absolute;
  bottom: 5px;
}
.cabinet-button-mark::before {
  left: 2px;
  width: 7px;
  height: 10px;
  background: radial-gradient(circle at 50% 25%, #ffdda2 0 2.1px, transparent 2.4px),
    radial-gradient(ellipse 3.3px 5.7px at 50% 98%, #e9b763 95%, transparent);
}
.cabinet-button-mark::after {
  right: 2px;
  width: 5px;
  height: 6px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #d39883 38%, #f2d4a3 38% 63%, #d39883 63%);
}
.cabinet-button-count {
  display: grid;
  min-width: 22px;
  min-height: 21px;
  padding: 0 4px;
  place-items: center;
  border-radius: 5px;
  background: #0f221a;
  color: #ffdf9d;
  font-variant-numeric: tabular-nums;
}
.cabinet-button.is-receiving { animation: cabinet-arrival .28s ease-out; }
@keyframes cabinet-arrival {
  35% { border-color: #ffdb92; box-shadow: inset 0 0 10px #ffd67585, 0 0 8px #ffd67565; }
}
.cabinet-prize-flight, .cabinet-delivery-trace {
  position: fixed;
  z-index: 40;
  display: block;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}
.cabinet-prize-flight { object-fit: contain; filter: drop-shadow(0 1px 1px #120f0ac0); }
.cabinet-prize-flight.is-medallion { display: grid; place-items: center; }
.cabinet-prize-flight.is-medallion::before {
  display: grid;
  width: 80%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ffe6a7;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 29%, #fff4bb, #d9a253 57%, #946126);
  color: #50301c;
  content: "✦";
  font-size: .48rem;
  line-height: 1;
}
.cabinet-delivery-trace {
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(transparent, #ffedbe 33% 67%, transparent);
  box-shadow: 0 0 3px #ffd881;
}
.collection-cabinet {
  position: fixed;
  inset: 0;
  width: min(524px, calc(100% - 24px));
  min-width: 0;
  max-height: 82vh;
  max-height: min(82dvh, 35rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #a88856;
  border-radius: 15px;
  background: radial-gradient(ellipse at 30% 0%, #49514080, transparent 75%), linear-gradient(150deg, #2d4136, #1a2c24);
  box-shadow: inset 0 0 0 2px #182b22, 0 16px 42px #070d09b0;
}
.collection-cabinet[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.collection-cabinet::backdrop { background: #09150db8; }
.cabinet-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 4px 9px 4px 14px;
  border-bottom: 1px solid #d5b98261;
}
.cabinet-head h2 { color: #fff0cd; font: 760 1.18rem/1.2 var(--display); }
#cabinetCount { color: #e2d2ab; font-size: .83rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cabinet-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: #fff0ce;
  font-size: 1.65rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.cabinet-close:hover { border-color: #b79b6f; background: #eacb901a; }
.cabinet-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
  min-height: 0;
  margin: 0;
  padding: 9px;
  background: linear-gradient(#10291f, #17352b 75%, #254638);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  list-style: none;
  scrollbar-color: #a18b64 transparent;
  scrollbar-width: thin;
}
.cabinet-items:focus-visible { outline: 2px solid #e5c98e; outline-offset: -3px; }
.cabinet-empty { grid-column: 1 / -1; padding: 25px 6px; color: #e1d7bc; font-size: .88rem; text-align: center; }
.cabinet-item { --cabinet-accent: #cab588; }
.cabinet-item[data-rarity="advanced"] { --cabinet-accent: #a8e6c5; }
.cabinet-item[data-rarity="gold"] { --cabinet-accent: #f1c568; }
.cabinet-item[data-rarity="legendary"] { --cabinet-accent: #ffa784; }
.cabinet-item[data-rarity="aurora"] { --cabinet-accent: #d2b0ff; }
.cabinet-item[data-rarity="special"] { --cabinet-accent: #f2cfab; }
.cabinet-item {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--cabinet-accent) 50%, #24372c);
  border-radius: 7px;
  background: radial-gradient(ellipse at 50% 33%, color-mix(in srgb, var(--cabinet-accent) 22%, #273c31), #1b2e25 79%);
  text-align: center;
}
.cabinet-card {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 100%;
  height: 100%;
  gap: 2px;
  padding: 5px 3px 6px;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
@media (hover: hover) {
  .cabinet-card:hover { background-color: #f4dc9914; }
}
.cabinet-card:focus-visible { outline-offset: -2px; }
.cabinet-card[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--cabinet-accent); }
.cabinet-card, .cabinet-preview-stage, .close-cabinet-preview { -webkit-tap-highlight-color: transparent; }
.cabinet-figure {
  position: relative;
  display: grid;
  width: min(100%, 4.4rem);
  aspect-ratio: 1;
  place-items: center;
}
.cabinet-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #080e0ca6);
}
.cabinet-amount {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 4px;
  border: 1px solid #a88b60;
  border-radius: 7px;
  background: #2a241b;
  color: #fff2cf;
  font-size: .74rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.cabinet-name { color: #fff0d0; font-size: .76rem; line-height: 1.35; overflow-wrap: anywhere; }
.cabinet-rarity { color: var(--cabinet-accent); font-size: .73rem; line-height: 1.3; }
.cabinet-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
}
.cabinet-preview::backdrop { background: #000; }
html:has(:is(.collection-cabinet, .cabinet-preview)[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cabinet-button.is-receiving { animation: none; }
  :is(.cabinet-prize-flight, .cabinet-delivery-trace) { display: none; }
}
.cabinet-preview-stage {
  position: absolute;
  inset: 0;
  user-select: none;
  cursor: grab;
  touch-action: none;
}
.cabinet-preview-stage.is-grabbing { cursor: grabbing; }
.cabinet-preview-stage img {
  position: absolute;
  inset: 0;
  visibility: hidden;
  width: min(94vw, 64rem);
  height: min(84dvh, 52rem);
  margin: auto;
  object-fit: contain;
  pointer-events: none;
}
.cabinet-preview-stage img[data-current] { visibility: visible; }
.cabinet-preview-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.close-cabinet-preview {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 33px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.close-cabinet-preview:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; }
.play-desk, .ticket {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: linear-gradient(133deg, #2b3b32, #202d27 82%);
  box-shadow: inset 0 1px 0 #f6e6bf0d, 0 6px 20px #1016114a;
}
.play-desk { border-color: #b99a6c7a; background: linear-gradient(132deg, #344638, #222e27 68%); }
.desk-head, .ticket-head { display: flex; align-items: center; gap: 8px; min-height: 51px; padding: 9px 14px; }
.desk-head { border-bottom: 1px solid var(--rule); }
.desk-head h2, .ticket-head h2 { color: #f3e6c9; font-size: 1rem; font-weight: 740; letter-spacing: .03em; }
.desk-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #be9e6d77;
  border-radius: 5px;
  background: linear-gradient(#4d5840, #384332);
  color: #ecd199;
  font-size: .83rem;
}
.play-panel { padding: 13px 14px 15px; }
.play-panel:empty { display: none; }
.play-panel h3, .play-panel h2 { color: var(--ink); font-weight: 820; line-height: 1.3; font-size: 1.29rem; overflow-wrap: anywhere; }
.play-panel p { color: var(--muted); }
.play-panel h3 + p, .play-panel h2 + p { margin-top: 5px; }
.play-panel .panel-kicker { color: #e1c899; font-size: .84rem; font-weight: 750; }
.play-panel .panel-note, .panel-note { color: var(--muted); font-size: .875rem; }
.play-panel .score-action { color: #e9d5af; font-size: .88rem; font-variant-numeric: tabular-nums; }
.panel-muted, .panel-idle { color: var(--muted); }
.panel-idle b, .panel-idle strong { color: var(--ink); }
.panel-divider { border: 0; border-top: 1px solid var(--rule); margin: 13px 0; }
:is([data-tier="pk-common"], [data-pk-tier="pk-common"]) {
  --pk-ink: #f7e5c7; --pk-edge: #d6b992; --pk-shade: #594633; --pk-mat: #a78e6b;
}
:is([data-tier="pk-advanced"], [data-pk-tier="pk-advanced"]) {
  --pk-ink: #dbf7dc; --pk-edge: #9bcf9f; --pk-shade: #314d3f; --pk-mat: #789e7e;
}
:is([data-tier="pk-rare"], [data-pk-tier="pk-rare"]) {
  --pk-ink: #e5f5ff; --pk-edge: #99c8f4; --pk-shade: #344e67; --pk-mat: #84a2bd;
}
:is([data-tier="pk-legendary"], [data-pk-tier="pk-legendary"]) {
  --pk-ink: #fff0c9; --pk-edge: #f1c46e; --pk-shade: #6b4e28; --pk-mat: #be9550;
}
:is([data-tier="pk-prism"], [data-pk-tier="pk-prism"]) {
  --pk-ink: #ffeffa; --pk-edge: #e7b6ed; --pk-shade: #56416b; --pk-mat: #a48bc0;
}
.pk-gift-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}
.pk-gift-list > * {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 48px;
  min-width: 0;
  gap: 1px 4px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--pk-edge, #bba17d) 58%, transparent);
  border-radius: 6px;
  background: linear-gradient(145deg, var(--pk-shade, #3e4e3d), #233127 97%);
  color: var(--pk-ink, #efe0bb);
  text-align: center;
  overflow-wrap: anywhere;
}
.pk-gift-list > * img { width: clamp(19px, 3vw, 35px); height: clamp(19px, 3vw, 35px); object-fit: contain; }
.pk-gift-list > * strong { font-size: .82rem; line-height: 1.25; }
.pk-gift-list > * :is(small, span) { font-size: .73rem; line-height: 1.28; font-variant-numeric: tabular-nums; }
.pk-gift-list > :is([data-tier="pk-prism"], [data-pk-tier="pk-prism"]) { background: linear-gradient(125deg, #604166, #334359 53%, #335143); }
.pk-tier-badge {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid color-mix(in srgb, var(--pk-edge, #bba17d) 68%, transparent);
  border-radius: 4px;
  background: var(--pk-shade, #3e4e3d);
  color: var(--pk-ink, #efe0bb);
  font-size: .75rem;
  font-weight: 740;
}
.pk-hud {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ac956da8;
  border-radius: 10px;
  background: radial-gradient(ellipse at 60% -32%, #58563980, transparent 86%), linear-gradient(150deg, #334337, #212f27);
  box-shadow: inset 0 0 0 2px #1c2a20, 0 4px 13px #0b120e55;
}
.pk-hud h2 { color: #f0d3a0; font: 750 1.14rem/1.18 var(--display); }
.pk-hud > p { color: var(--muted); font-size: .82rem; }
.pk-score-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.pk-score-head > div > span { color: var(--muted); font-size: .82rem; }
.pk-score-head [data-pk-score] {
  color: #fff0c3;
  font-size: clamp(1.48rem, 3.1vw, 2.06rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.pk-score-head [data-pk-score] small { color: #e2cda4; font-size: .82rem; font-weight: 700; }
.pk-hud .pk-gift-list, .room-dialog .pk-gift-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 48px), 1fr)); }
.pk-scoreboard {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.pk-standing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid #b69c7357;
  border-radius: 5px;
  background: #28362c;
  font-size: .83rem;
  overflow-wrap: anywhere;
}
.pk-standing :is(strong, b) { min-width: 0; }
.pk-standing :last-child { justify-self: end; color: #efd39a; font-weight: 760; }
.pk-standing:is(.is-current, [aria-current="true"]) { border-color: #d4b370a8; background: #484f36; }
:is(.gift-card, .summary-gift-card)[data-tier^="pk-"] {
  --gift-edge: var(--pk-edge); --gift-accent: var(--pk-ink); --gift-chip: var(--pk-shade); --gift-mat: var(--pk-mat); --gift-ink: var(--pk-shade);
}
:is(.prize-view, .watch-prize)[data-tier^="pk-"] { border-color: var(--pk-edge); background: linear-gradient(125deg, var(--pk-shade), #24342c); }
.ticket-head { padding-bottom: 7px; }
.ticket-head > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; width: 100%; }
.ticket-head p { color: var(--muted); font-size: .83rem; }
.gift-area { padding: 0 14px; max-height: 190px; overflow-y: auto; scrollbar-color: #8e8463 transparent; }
.gift-area:has(.gift-shelf) { max-height: none; overflow: visible; }
.gift-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}
.gift-shelf > li { min-width: 0; }
.gift-card, .summary-gift-card {
  --gift-edge: #829f7ebd;
  --gift-accent: #ecf3ce;
  --gift-chip: #3f523a;
  --gift-mat: #728362;
  --gift-ink: #2d3b2d;
  display: grid;
  align-content: start;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--gift-edge);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--gift-ink), #263229);
  box-shadow: inset 0 1px 0 #f8ead11c, 0 4px 11px #0d160c4f;
  color: #fcf2d8;
  text-align: left;
  transition: transform .17s, border-color .17s;
}
:is(.gift-card, .summary-gift-card)[data-tier="rare"] { --gift-edge: #8aabc6b6; --gift-accent: #e7f0fc; --gift-chip: #40566d; --gift-mat: #8298ae; --gift-ink: #344653; }
:is(.gift-card, .summary-gift-card)[data-tier="jackpot"] { --gift-edge: #e3ba79c2; --gift-accent: #f9e4af; --gift-chip: #635131; --gift-mat: #aa8e5a; --gift-ink: #4d3c28; }
:is(.gift-card, .summary-gift-card)[data-tier="keepsake"] { --gift-edge: #b797afac; --gift-accent: #f2e0f0; --gift-chip: #5b4759; --gift-mat: #917687; --gift-ink: #443641; }
.gift-card:hover { transform: translateY(-2px); border-color: var(--gift-accent); }
.gift-card[aria-pressed="true"] { border-color: var(--gift-accent); box-shadow: 0 0 0 1px var(--gift-edge), 0 6px 13px #1019107d; }
.gift-card-art, .summary-gift-art {
  position: relative;
  width: 100%;
  height: clamp(75px, 7vw, 104px);
  border: 1px solid #dad0ad4f;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 50% 71%, #e9dbbbd1, transparent 70%),
    linear-gradient(145deg, var(--gift-mat), var(--gift-ink));
  box-shadow: inset 0 0 0 2px #372c211c;
}
:is(.gift-card-art, .summary-gift-art) img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; filter: drop-shadow(0 4px 4px #2f1d5248); }
.gift-quantity {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  max-width: calc(100% - 8px);
  padding: 1px 5px;
  border: 1px solid var(--gift-edge);
  border-radius: 4px;
  background: var(--gift-ink);
  color: var(--gift-accent);
  box-shadow: 0 1px 4px #151b1796;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.gift-card-tier, .summary-gift-tier {
  justify-self: start;
  max-width: 100%;
  margin-top: 1px;
  padding: 1px 5px;
  border: 1px solid var(--gift-edge);
  border-radius: 3px;
  background: var(--gift-chip);
  color: var(--gift-accent);
  font-size: .75rem;
  font-weight: 760;
}
:is(.gift-card, .summary-gift-card) strong { color: var(--ink); font-size: .9rem; font-weight: 730; line-height: 1.3; overflow-wrap: anywhere; }
.gift-shelf-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 63px;
  margin: 3px 0 10px;
  padding: 6px 7px;
  border: 1px dashed #9ba47e55;
  border-radius: 6px;
  background: #202e25a3;
  color: var(--muted);
  font-size: .875rem;
}
.gift-shelf-empty img { display: block; width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.empty-gifts { margin: 3px 0 10px; padding: 9px 0 12px; color: var(--muted); }
.empty-gifts p { font-size: .875rem; }
.empty-gifts-icon { display: none; }
.gift-list { margin: 1px 0 0; padding: 0; list-style: none; }
.gift-list li + li { border-top: 1px solid var(--rule); }
.gift-entry {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  width: 100%;
  gap: 8px;
  align-items: center;
  padding: 8px 1px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.gift-entry > span:first-child { font-size: 1rem; }
.gift-entry strong { display: block; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.25; }
.gift-entry small { display: block; font-size: .79rem; color: var(--muted); }
.gift-entry .gift-tier { color: #d7b67f; font-size: .78rem; font-weight: 750; }
button.gift-entry:hover { background: #3b4a3c; }
.ticket-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 14px 12px;
}
.ticket-actions button {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  min-height: 35px;
  min-width: 0;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #263328;
  color: #e1cda5;
  font-size: .84rem;
  font-weight: 750;
}
.ticket-actions button:hover { background: #3c4a39; }
.ticket-actions .shelf-receipt-button { justify-content: center; }
.dialog {
  width: min(100% - 24px, 550px);
  max-height: calc(100% - 30px);
  margin: auto;
  border: 1px solid #ad9168;
  border-radius: 14px;
  padding: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 16px 80px #0a0e0bd9;
}
.dialog::backdrop { background: #101813ab; backdrop-filter: blur(3px); }
.core-dialog {
  width: min(100% - 28px, 810px);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  overflow: hidden;
  border-color: #bd9e6c;
  background:
    radial-gradient(ellipse at 16% 0%, #63785b69, transparent 62%),
    linear-gradient(155deg, #304235, #1a281f 89%);
  box-shadow: inset 0 0 0 3px #1b2a22, inset 0 0 0 4px #ccb2852b, 0 16px 68px #080f0ba1;
}
.core-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.core-choices-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1px 3px 8px;
  scrollbar-color: #988760 #253e35;
  scrollbar-width: thin;
  scroll-padding-block: 8px;
}
.core-choices-scroll:focus-visible { outline: 1px solid #dbc18e; outline-offset: -1px; }
.core-dialog::backdrop { background: #0c160f63; backdrop-filter: none; }
.summary-dialog {
  width: min(100% - 24px, 760px);
  max-height: calc(100dvh - 30px);
  padding: 17px;
  overflow: hidden;
  border-color: #d0ae73;
  background: radial-gradient(ellipse at 12% 0%, #6a735659, transparent 65%), linear-gradient(146deg, #344537, #1d2b23 81%);
  box-shadow: inset 0 0 0 3px #1e2b23, inset 0 0 0 4px #c9af7c35, 0 17px 65px #0b130bd4;
}
.summary-dialog[open] { display: flex; flex-direction: column; }
.summary-dialog::backdrop { background: #0c160f72; backdrop-filter: none; }
.summary-dialog-intro {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c0a4714b;
}
.summary-dialog .summary-dialog-intro h2 { margin: 0; color: #f7e8c5; font: 750 clamp(1.55rem, 4vw, 2.05rem)/1.1 var(--display); letter-spacing: .055em; }
.dialog-dismiss {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ac997362;
  border-radius: 6px;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  color: #e2d2ac;
  font: 1.25rem/1 system-ui, sans-serif;
}
.dialog-dismiss:hover { border-color: #c8aa72; background: #405044; }
.summary-content { min-height: 0; overflow: auto; padding: 10px 4px 9px 0; scrollbar-color: #8e8463 transparent; }
.summary-content .summary-count { margin: 0 0 8px; color: #ecd8af; font-size: .9rem; }
.score-recap { color: #e9d5af; font-variant-numeric: tabular-nums; }
[data-play-context="solo"] .room-summary-button { display: none; }
.summary-collection { margin-top: 14px; padding-top: 10px; border-top: 1px solid #bba67155; }
.summary-collection-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.summary-collection-head h3 { font-size: 1rem; }
.summary-collection-head span { color: #e6c991; font-size: .85rem; font-variant-numeric: tabular-nums; }
.skin-shop-message { margin: 4px 0 0; color: #e0d8c0; font-size: .85rem; }
.skin-shop-message:empty { display: none; }
.skin-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 12px 0 0; padding: 0; list-style: none; }
.skin-card { display: flex; flex-direction: column; min-width: 0; padding: 7px; border: 1px solid #c5ad7a60; border-radius: 10px; background: #16261e; }
.skin-card[data-active] { border-color: var(--skin-edge, #d7bd82); background: #233328; }
.skin-card[data-pending] { border-color: var(--ink-highlight, #f6cf82); background: var(--ink-panel, #344a3c); }
.skin-card[data-pending] button { color: var(--ink-text, #fff0ce); opacity: 1; outline: 1px solid var(--ink-highlight, #f6cf82); outline-offset: -2px; }
.skin-card-copy { display: grid; grid-template-rows: 1fr auto; flex: 1; gap: 5px; min-width: 0; padding: 6px 1px 1px; text-align: center; }
.skin-card strong { align-self: center; color: var(--skin-light, #f5e6c2); font-size: .825rem; line-height: 1.3; }
.skin-card button { width: 100%; min-height: 44px; padding-inline: 2px; }
.skin-card button[aria-pressed="true"] { border-color: transparent; background: none; color: #ebdbb6; }
.skin-sample { height: clamp(62px, 18vw, 104px); overflow: hidden; border-radius: 6px; }
.summary-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin: 0; padding: 0; list-style: none; }
.summary-shelf:has(> :only-child) { grid-template-columns: minmax(0, 285px); }
.summary-gift-card { gap: 5px; padding: 7px; }
.summary-gift-art { height: clamp(85px, 12vw, 122px); }
.summary-claim {
  display: block;
  justify-self: start;
  max-width: 100%;
  padding: 2px 4px;
  border: 1px dashed #c7ae7c8f;
  border-radius: 4px;
  background: #292e24e1;
  color: #f8e4b6;
  font: 730 .8rem/1.4 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.group-claims {
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid #a58f665c;
  border-radius: 5px;
  background: #292e24e1;
  color: #f8e4b6;
  font-size: .78rem;
  line-height: 1.4;
}
.group-claims summary { padding-block: 3px; cursor: pointer; }
.group-claims ul {
  max-height: 100px;
  overflow: auto;
  margin: 3px 0;
  padding-left: 16px;
  overflow-wrap: anywhere;
}
.group-claims li + li { margin-top: 3px; }
.group-claims code { font: 700 .78rem/1.35 ui-monospace, monospace; }
.summary-empty {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px dashed #a58f665c;
  border-radius: 7px;
  background: #25332a9c;
  color: var(--muted);
}
.summary-empty img { width: 50px; height: 50px; flex-shrink: 0; object-fit: contain; }
.summary-footer {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid #c0a4714b;
}
body[data-play-context="solo"] .room-summary-button { display: none; }
.core-dialog-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-bottom: 14px; }
.core-dialog-intro > div { min-width: 0; }
.core-dialog .core-dialog-intro h2 { margin: 0 0 4px; color: #f5e6bf; font: 750 clamp(1.55rem, 4.1vw, 2.1rem)/1.1 var(--display); letter-spacing: .055em; }
.core-dialog-intro p { font-size: .9rem; }
.core-skip { min-height: 44px; padding-inline: 10px; white-space: nowrap; }
.draft-skip-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 7px; border-top: 1px solid #73877765; }
.draft-skip-actions button { min-height: 44px; padding: 5px 10px; }
.draft-skip-actions .core-skip { color: #d9decb; background: transparent; }
#confirmSkipCore { color: #ffd9a4; border-color: #ad885d; background: #493920; }
@media (max-width: 480px) {
  .core-dialog-intro { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .core-dialog-intro .dialog-dismiss { grid-row: 1; grid-column: 2; }
}
.core-capacity { margin: 0 0 10px; color: #f0dbb1; font-size: .9rem; }
.core-draft-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; margin-bottom: 6px; }
.core-draft-meta .core-capacity { margin: 0; }
.core-draft-odds { min-width: 0; }
.core-draft-odds[open] { grid-column: 1 / -1; }
.core-draft-odds summary {
  width: fit-content;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 11px 4px;
  color: var(--ink-highlight, #f5d89b);
  font-size: .8rem;
  cursor: pointer;
}
.core-draft-odds dl {
  display: grid;
  grid-template-columns: minmax(68px, auto) minmax(0, 1fr);
  gap: 6px 9px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ink-edge, #8e9b7490);
  border-radius: 7px;
  background: var(--ink-deep, #20352a);
  color: var(--play-ink, #f1e8d5);
  font-size: .81rem;
}
.core-draft-odds dt { font-weight: 700; }
.core-draft-odds dd { margin: 0; overflow-wrap: anywhere; }
.core-replacement-incoming, .core-replacement-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  border: 1px solid #ae96665e;
  border-radius: 9px;
}
.core-replacement-incoming {
  padding: 11px;
  border-color: #d9b673ba;
  background: radial-gradient(ellipse at 7% 0%, #97784545, transparent 80%), #27382d;
}
:is(.core-replacement-incoming, .core-replacement-option):is([data-core-rarity="rare"], [data-core-rarity="legendary"]) {
  border-inline-start: 2px solid var(--core-tier-rim);
}
.core-replacement-icon {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 2px;
  place-items: center;
  border: 1px solid #ccad745e;
  border-radius: 7px;
  background: #12251bab;
  color: #f6d69b;
}
.core-replacement-incoming .core-replacement-icon { width: 53px; height: 53px; }
.core-replacement-copy { display: grid; align-content: start; justify-items: start; gap: 4px; }
.core-replacement-copy strong { color: #fff0ce; font-size: .95rem; line-height: 1.3; }
.core-replacement-incoming .core-replacement-copy strong { font-size: 1.05rem; }
.core-replacement-label { color: #f1d4a2; font-size: .75rem; font-weight: 760; }
.core-replacement-description { color: #e1e4d3; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.core-replacement-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 2px 5px; }
.core-replacement-heading h3 { color: #f5e7c5; font-size: .92rem; }
.core-replacement-heading > span { color: #d0c1a0; font-size: .78rem; font-variant-numeric: tabular-nums; }
.core-replacements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: min(40dvh, 24rem);
  padding: 3px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #927a4e transparent;
}
.core-replacement-option { width: 100%; background: #24362d; color: inherit; text-align: left; }
.core-replacement-option:hover, .core-replacement-option:focus-visible { border-color: #d1b17d; background: #33483a; }
.core-replacement-option[aria-pressed="true"] {
  border-color: #f2cf90;
  background: linear-gradient(120deg, #67552f88, #334739 75%);
  box-shadow: inset 0 0 0 1px #ddbc784d;
}
.core-replacement-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.mobile-installed-cores { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.core-replacement-status {
  width: fit-content;
  padding: 1px 5px;
  border-radius: 4px;
  background: #14281d;
  color: #d6e6cf;
  font-size: .72rem;
  font-weight: 725;
  line-height: 1.4;
}
.core-replacement-status:is([data-state="triggered"], [data-state="expired"], [data-state="used"], [data-state="finished"]) { color: #dad1bd; }
.core-replacement-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.core-replacement-actions button { min-height: 44px; }
.core-replacement-actions [data-confirm-replacement]:disabled { opacity: .57; cursor: default; }
@media (max-width: 540px) {
  .core-replacements { grid-template-columns: minmax(0, 1fr); }
  .core-replacement-actions > button { flex: 1 1 auto; }
}
@media (max-height: 650px) {
  .core-replacements { max-height: 33dvh; }
}
.core-receipt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 3px 6px;
  border: 1px solid #bfa47073;
  border-radius: 5px;
  background: #354333;
  color: #f1ddac;
  font-size: .81rem;
  overflow-wrap: anywhere;
}
.core-receipt img { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.core-receipt strong { color: #f9ebc7; }
.core-dialog .card-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 9px;
}
.core-dialog .blessing-card-wrap { display: flex; flex-direction: column; background: linear-gradient(142deg, #50614a, #354437 66%); }
.core-dialog .blessing-card-wrap > .blessing-card { flex: 1 0 auto; align-content: start; }
.core-dialog .blessing-card-wrap:nth-child(even) { background: linear-gradient(142deg, #5b5641, #413f31 66%); }
.core-dialog .blessing-card-wrap[data-core-rarity="rare"] {
  border-color: #77b9c8a1;
  background: linear-gradient(142deg, #354e57, #283e39 72%);
}
.core-dialog .blessing-card-wrap[data-core-rarity="legendary"] {
  border-color: #e1b464bb;
  background: linear-gradient(142deg, #665334, #3c4131 72%);
}
.core-dialog .blessing-card {
  min-height: 139px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 8px 6px;
  padding: 11px;
}
.core-dialog .blessing-card .bless-icon {
  grid-area: 1 / 1 / 2 / 2;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 2px;
  place-items: center;
  border: 1px solid #dbba815b;
  border-radius: 6px;
  background: #2a382a91;
}
.core-dialog .blessing-card > .bless-icon + span { grid-area: 2 / 1 / 3 / -1; }
.core-dialog .blessing-card strong { font-size: 1rem; }
.core-dialog .blessing-card .bless-description { margin-top: 3px; font-size: .88rem; }
.core-dialog .blessing-card .bless-tag { grid-area: 1 / 2 / 2 / 3; margin-top: 3px; }
.core-machine-label { color: #e2cb9f; font-size: .73rem; }
.core-dialog .blessing-card-wrap > .target-options { margin: 0 10px 11px; }
.play-panel .summary-next {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid #d7bb86;
  border-radius: 5px;
  background: linear-gradient(#eddbaf, #c6a978);
  color: #2c2519;
  font-size: .875rem;
  font-weight: 760;
}
.play-panel .summary-next:hover { background: #f8e3b7; }
.dialog h2 { margin: 0 33px 8px 0; font-size: 1.44rem; font-weight: 820; line-height: 1.32; }
.dialog p { color: var(--muted); }
.dialog .body-copy { margin-top: 9px; }
.close-dialog {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  width: 33px;
  height: 33px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #303c32;
  font-size: 1.31rem;
  line-height: 1;
}
.modal-action, .soft-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #9e845b83;
  border-radius: 6px;
  background: #354234;
  color: #f6e0b4;
  font-size: .875rem;
  font-weight: 760;
}
.modal-action { border-color: #d8ba89; background: linear-gradient(#efdbb0, #bda175); color: #251f17; }
.modal-action:hover { background: #f7e2b7; }
.soft-action:hover { background: #425236; }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sfx-preview-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.8; }
:is(.sfx-preview-help, .sfx-shortcut-toast) kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  border: 1px solid #a48d61a0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #263329;
  color: #f4deb1;
  font: 730 .76rem/1.45 var(--ui);
  text-align: center;
  white-space: nowrap;
}
.sfx-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-block: 12px 8px;
}
.sfx-preview-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px clamp(6px, 2vw, 11px);
  border: 1px solid #a48d617d;
  border-radius: 7px;
  background: linear-gradient(150deg, #354436, #25332a 75%);
  color: var(--ink);
  text-align: start;
}
.sfx-preview-icon {
  display: grid;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border: 1px solid #9a80539b;
  border-radius: 50%;
  background: #1d281f;
  color: #eed3a0;
  font-size: .94rem;
  line-height: 1;
}
.sfx-preview-name { min-width: 0; font-size: .86rem; font-weight: 740; line-height: 1.35; overflow-wrap: anywhere; }
.sfx-preview-button:hover { border-color: #c8ac79; background: #3b4a38; }
.sfx-preview-button:is(.is-sampling, [aria-pressed="true"]) {
  border-color: #e7c383;
  background: linear-gradient(140deg, #61553b, #3b4433 75%);
  box-shadow: inset 0 0 0 1px #e7c3834a;
}
.sfx-preview-button:is(.is-sampling, [aria-pressed="true"]) .sfx-preview-icon {
  border-color: #d9bb7f;
  background: #675436;
  color: #fff1d0;
  box-shadow: 0 0 10px #e4b5666b;
}
.sfx-preview-status { min-height: 1.55em; font-size: .85rem; }
.sfx-shortcut-toast {
  position: fixed;
  z-index: 31;
  inset-inline: 10px;
  inset-block-end: calc(12px + env(safe-area-inset-bottom));
  width: fit-content;
  max-width: calc(100% - 20px);
  margin-inline: auto;
  padding: 7px 12px;
  border: 1px solid #d0aa76;
  border-radius: 7px;
  background: #263529;
  color: #f6e8ca;
  box-shadow: 0 5px 16px #0d160dae;
  font-size: .86rem;
  font-weight: 680;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.prize-view {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 1px solid #89a77f9e;
  border-radius: 9px;
  background: linear-gradient(140deg, #405943, #314337 65%, #25362a);
}
.prize-view[data-tier="rare"] { border-color: #b093b5; background: linear-gradient(140deg, #514555, #3c3345 62%, #302e39); }
.prize-view[data-tier="jackpot"] { border-color: #d1ac6c; background: linear-gradient(140deg, #685738, #4c402d 58%, #3b3426); }
.prize-view + :is(p, .panel-note) { margin-top: 8px; }
.prize-view h2, .prize-view h3 { margin-bottom: 3px; }
.prize-view > p { color: #e2ddc6; font-size: .875rem; }
.prize-view .prize-view-label { margin-bottom: 3px; color: #f1d2a0; font-size: .79rem; font-weight: 800; }
.hero-gift {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #bba57c71;
  border-radius: 9px;
  background: radial-gradient(#e8d0a9a3, #b69b6e5e);
  animation: prize-in .38s cubic-bezier(.16,.69,.36,1.22);
}
.hero-gift img { display: block; width: 45px; height: 45px; object-fit: contain; }
.prize-copy { min-width: 0; }
@keyframes prize-in { from { transform: scale(.7) rotate(-8deg); opacity: .5; } }
.award-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 98px;
  padding: 9px;
  border: 1px solid #d8b16e;
  border-radius: 9px;
  background: radial-gradient(ellipse at 0% 5%, #9b804f70, transparent 64%), linear-gradient(136deg, #514632, #28372d 76%);
  box-shadow: inset 0 0 0 2px #28352b, inset 0 0 0 3px #c9b17b46, 0 4px 10px #14211a73;
  color: var(--ink);
  text-align: left;
  transition: transform .16s, filter .16s, border-color .16s;
}
button.award-trigger:hover { transform: translateY(-1px); border-color: #f0d198; filter: brightness(1.06); }
button.award-trigger:active { transform: translateY(1px); }
button.award-trigger:focus-visible { outline: 2px solid #ffdc94; outline-offset: 3px; }
div.award-trigger { border-color: #bb9c66a6; box-shadow: inset 0 0 0 2px #28352b, inset 0 0 0 3px #c9b17b36; cursor: default; }
.award-trigger-art {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid #dac193;
  border-radius: 7px;
  background: linear-gradient(#a08b60, #e7d6ab 34%, #eee0b9 52%, #b29a6b 92%);
  box-shadow: inset 0 0 0 2px #604d2b41, inset 0 1px 1px #fff0ce98, 0 2px 5px #191a105e;
}
.award-trigger-art img { display: block; width: 53px; height: 53px; object-fit: contain; filter: drop-shadow(0 3px 3px #2e25164d); }
.award-trigger-copy { display: grid; min-width: 0; justify-items: start; gap: 2px; }
.award-trigger-copy strong { color: #fbebc9; font-size: 1.05rem; line-height: 1.25; }
.award-trigger-copy small { color: #d9c7a4; font-size: .82rem; }
.award-queue-count {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border: 1px solid #c5a56e75;
  border-radius: 4px;
  background: #4e4431;
  color: #f5dcaa;
  font-size: .74rem;
  font-weight: 740;
  white-space: nowrap;
}
.award-trigger-action {
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid #e6c893a8;
  border-radius: 4px;
  background: linear-gradient(#ecd3a0, #c4a36e);
  color: #30271b;
  font-size: .79rem;
  font-weight: 790;
}
div.award-trigger .award-trigger-action { padding: 0; border: 0; background: transparent; color: #f2d5a1; }
.award-draw {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 112px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #a888568f;
  border-radius: 9px;
  background: radial-gradient(ellipse at 12% 15%, #96805054, transparent 61%), linear-gradient(137deg, #414336, #2a342b 80%);
  box-shadow: inset 0 0 0 3px #202b24a3, inset 0 0 0 4px #d2b48024;
  color: var(--ink);
}
.award-draw[data-phase="revealed"] {
  border-color: #d0ab69;
  background: radial-gradient(ellipse at 12% 15%, #b2955f63, transparent 65%), linear-gradient(137deg, #514938, #33392c 80%);
}
.award-draw[data-core-effect="ribbon"] {
  border-color: var(--core-accent);
  box-shadow: inset 0 0 0 2px #adc9ed46, 0 0 10px var(--core-halo);
}
.award-draw[data-core-effect="ribbon"]::before {
  position: absolute;
  z-index: -1;
  inset: -28% auto -28% -30%;
  width: 55%;
  background: linear-gradient(101deg, transparent, #d2e5ff48, #eef8ff70, #a3c7ed45, transparent);
  content: "";
  pointer-events: none;
  animation: core-ribbon-pass .7s ease-out both;
}
@keyframes core-ribbon-pass { from { transform: translateX(-18%) skewX(-22deg); } to { transform: translateX(258%) skewX(-22deg); opacity: .28; } }
.award-draw[data-phase="drawing"]::after {
  position: absolute;
  z-index: -1;
  inset: -25% auto -25% -50%;
  width: 40%;
  background: linear-gradient(100deg, transparent, #f2d49329, transparent);
  content: "";
  pointer-events: none;
  animation: award-shimmer 1.1s cubic-bezier(.38,.05,.31,1) infinite;
}
.award-mark {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 58px;
  height: 58px;
  border: 1px solid #c9ab77a1;
  border-radius: 9px;
  background: radial-gradient(#e5d2aa9c, #947b517a);
  box-shadow: inset 0 0 0 3px #51463532, 0 2px 6px #191c1499;
}
.award-mark img { display: block; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 2px #3c2b2354); }
.award-draw[data-phase="revealed"] .award-mark { animation: award-turn .42s cubic-bezier(.17,.61,.36,1); }
.award-copy { min-width: 0; }
.award-draw h3 { font-size: 1.08rem; }
.award-draw .award-kicker { margin-bottom: 3px; color: #f3d39a; font-size: .8rem; font-weight: 760; letter-spacing: .035em; }
.award-draw .award-detail { margin-top: 3px; color: #d1c6ab; font-size: .84rem; }
.award-ticket {
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px dashed #d7ba839c;
  border-radius: 4px;
  background: #2d2e24;
  color: #ffe8b8;
  font-weight: 770;
  overflow-wrap: anywhere;
}
@keyframes award-shimmer { from { transform: translateX(0) skewX(-15deg); } to { transform: translateX(410%) skewX(-15deg); } }
@keyframes award-turn {
  from { transform: perspective(120px) rotateY(-65deg); opacity: .45; }
  to { transform: perspective(120px) rotateY(0); opacity: 1; }
}
.prize-pop {
  --pop-accent: #e8c88d;
  --pop-light: #fff0cd;
  --pop-dark: #483c2a;
  --pop-halo: #dca96972;
  --pop-duration: .46s;
  position: relative;
  min-width: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.prize-pop[hidden] { display: none; }
.prize-pop[data-tier="rare"] {
  --pop-accent: #b7daf2; --pop-light: #eaf7ff; --pop-dark: #2f4759; --pop-halo: #8fcaef86; --pop-duration: .52s;
}
.prize-pop[data-tier="jackpot"] {
  --pop-accent: #ffd277; --pop-light: #fff4ce; --pop-dark: #76522a; --pop-halo: #ffd278b3; --pop-duration: .62s;
}
.prize-pop[data-tier="keepsake"] {
  --pop-accent: #c5aed8; --pop-light: #f7eafa; --pop-dark: #51405e; --pop-halo: #ae8cca72;
}
.prize-pop[data-tier^="pk-"] {
  --pop-accent: var(--pk-edge); --pop-light: var(--pk-ink); --pop-dark: var(--pk-shade);
  --pop-halo: color-mix(in srgb, var(--pk-edge) 60%, transparent);
}
.prize-pop[data-tier="pk-rare"] { --pop-duration: .52s; }
.prize-pop:is([data-tier="pk-legendary"], [data-tier="pk-prism"]) { --pop-duration: .62s; }
.prize-pop-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: min(380px, 100%);
  padding: clamp(15px, 4vw, 24px) clamp(16px, 4vw, 26px) clamp(19px, 5vw, 30px);
  border: 1px solid var(--pop-accent);
  border-radius: 12px;
  background:
    repeating-linear-gradient(130deg, #ecd9b603 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% -10%, var(--pop-dark), transparent 70%),
    linear-gradient(154deg, #28342a, #18231c 70%);
  box-shadow: inset 0 0 0 3px #131b14b3, inset 0 0 0 4px color-mix(in srgb, var(--pop-accent) 30%, transparent), 0 9px 33px #070e0bbb, 0 0 32px var(--pop-halo);
  color: var(--pop-light);
  text-align: center;
  animation: prize-pop-arrive var(--pop-duration) cubic-bezier(.17,.76,.26,1) both;
}
.prize-pop-card::after {
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 1px 1px, var(--pop-accent) 0 1px, transparent 1.8px) top left,
    radial-gradient(circle at 11px 1px, var(--pop-accent) 0 1px, transparent 1.8px) top right,
    radial-gradient(circle at 1px 11px, var(--pop-accent) 0 1px, transparent 1.8px) bottom left,
    radial-gradient(circle at 11px 11px, var(--pop-accent) 0 1px, transparent 1.8px) bottom right;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  content: "";
}
.prize-pop:is([data-tier="jackpot"], [data-tier="pk-legendary"], [data-tier="pk-prism"]) .prize-pop-card {
  box-shadow: inset 0 0 0 3px #251a0fa6, inset 0 0 0 4px #f7d18780, 0 8px 36px #100c06e3, 0 0 55px var(--pop-halo);
}
.prize-pop[data-tier="pk-prism"] .prize-pop-card {
  background: radial-gradient(ellipse at 50% -6%, #c495da48, transparent 65%), linear-gradient(140deg, #56416b, #304253 62%, #305048);
}
.prize-pop-art {
  order: -1;
  display: grid;
  width: clamp(95px, 31vw, 136px);
  aspect-ratio: 1;
  place-items: center;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--pop-accent) 78%, var(--pop-dark));
  border-radius: 50%;
  background: radial-gradient(circle at 45% 34%, var(--pop-light), var(--pop-accent) 64%, var(--pop-dark) 96%);
  box-shadow: inset 0 0 0 3px #32291c5c, 0 0 23px var(--pop-halo);
  object-fit: contain;
  animation: prize-pop-art-reveal .57s cubic-bezier(.17,.78,.34,1) both;
}
.prize-pop-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px #2b211d53); }
.prize-pop-tier { padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--pop-accent) 67%, transparent); border-radius: 4px; color: var(--pop-accent); font-size: .76rem; font-weight: 780; letter-spacing: .12em; }
.prize-pop-name { min-width: 0; max-width: 100%; color: var(--pop-light); font-size: clamp(1.33rem, 5.7vw, 2.05rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 2px 9px #0e1512cc; }
.prize-pop-card.score-pop-card { width: min(325px, 100%); min-height: 89px; gap: 4px; padding: 7px 10px; }
.score-pop-card.has-character { grid-template-columns: clamp(71px, 19vw, 101px) minmax(0, 1fr); align-items: center; gap: 9px; }
.score-pop-card .prize-pop-name { font-size: clamp(1.12rem, 4.2vw, 1.5rem); font-variant-numeric: tabular-nums; }
.score-pop-character { position: relative; z-index: 1; display: grid; width: 100%; height: clamp(78px, 20vw, 108px); place-items: center; padding-bottom: 7px; }
.score-pop-character::after {
  position: absolute;
  inset: auto 6% 1px;
  height: 11px;
  border: 1px solid var(--pop-accent);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 18%, var(--pop-halo), #100f17 82%);
  box-shadow: 0 4px 0 #100d17, 0 5px 8px #090811;
  content: "";
}
.score-pop-character img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; filter: drop-shadow(0 2px 5px #08150e8a); }
.prize-pop:not([data-settled]) .score-pop-character img { animation: figurine-rise .43s cubic-bezier(.18,.8,.22,1) both; }
@keyframes figurine-rise {
  from { opacity: 0; transform: translateY(7px) scale(.88); }
  72% { opacity: 1; transform: translateY(-2px) scale(1.04); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.score-pop-character[data-style="special"] img { filter: drop-shadow(0 0 10px #bba1fd9a); }
.score-pop-copy { position: relative; z-index: 1; justify-self: stretch; min-width: 0; display: grid; gap: 3px; }
.score-pop-copy .prize-character-name { color: #fff0cb; font: 800 clamp(.91rem, 3.8vw, 1.21rem)/1.15 var(--display); }
.score-pop-copy .prize-pop-tier { width: fit-content; font-size: .73rem; letter-spacing: 0; padding: 1px 5px; }
.score-pop-copy .prize-pop-name { color: var(--pop-light); }
.prize-score-detail { color: #f0e2c8; font-size: .74rem; }
.prize-rarity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--pop-accent) 70%, transparent);
  border-radius: 4px;
  color: var(--pop-light);
  background: #0a172362;
  font-size: .75rem;
  line-height: 1.1;
  white-space: nowrap;
}
.prize-rarity [aria-hidden] { color: var(--pop-accent); font-size: .7em; }
.prize-rarity small { color: var(--pop-accent); font-size: .9em; font-variant-numeric: tabular-nums; }
.prize-pop[data-rarity="advanced"] { --pop-accent: #99e0be; --pop-light: #e3fff0; --pop-halo: #84dc9e8c; }
.prize-pop[data-rarity="gold"] { --pop-accent: #ffe197; --pop-light: #fff3c6; --pop-halo: #f7c966aa; }
.prize-pop[data-rarity="legendary"] { --pop-accent: #ffc6a0; --pop-light: #ffeada; --pop-halo: #ff826ab8; }
.prize-pop[data-rarity="classic"] .prize-pop-card {
  border-color: #ba9f69;
  box-shadow: inset 0 0 0 2px #223027, 0 4px 13px #08140dba;
}
.prize-pop[data-rarity="advanced"] .prize-pop-card {
  border-color: #9ce1bc;
  background: radial-gradient(ellipse at 15% 12%, #406b5a 0, #243c39 65%, #192d27 100%);
  box-shadow: inset 0 0 0 2px #8adb9b44, 0 4px 16px #59b58e74;
}
.prize-pop[data-rarity="gold"] .prize-pop-card {
  border: 3px double #ffe6a0;
  background: radial-gradient(ellipse at 15% 12%, #8f642f 0, #3f2c21 67%, #292015 100%);
  box-shadow: inset 0 0 0 2px #97703983, 0 4px 18px #e8ac4c6b;
}
.prize-pop[data-rarity="gold"]:not([data-settled]) .prize-pop-card::before {
  position: absolute;
  z-index: 1;
  inset: 3px;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(113deg, transparent 30%, #ffdc7a76 43%, #fff5bdba 49%, transparent 61%) 110% 0 / 250% 100% no-repeat;
  content: "";
  animation: cue-foil .75s ease-out both;
}
.prize-pop[data-rarity="legendary"] .prize-pop-card {
  border: 2px solid transparent;
  background: radial-gradient(ellipse at 16% 25%, #744548 0, #4d2a40 57%, #2b1f2c 96%) padding-box,
    linear-gradient(124deg, #fff0d2, #de8556 33%, #fda488 67%, #fedfa8) border-box;
  box-shadow: 0 0 17px #e47063d1, inset 0 0 14px #e9857069;
}
.prize-pop[data-rarity="legendary"]:not([data-settled]) .prize-pop-card::before {
  position: absolute;
  inset: 4px 5px;
  border: 1px solid #ffe2b8;
  border-radius: 9px;
  pointer-events: none;
  content: "";
  animation: cue-ripple .67s ease-out both;
}
.prize-pop:is([data-rarity="aurora"], [data-rarity="special"]) .prize-pop-card {
  border: 2px solid transparent;
  background: radial-gradient(ellipse at 15% 20%, #3b5473 0, #382e57 58%, #24213a 96%) padding-box,
    linear-gradient(124deg, #d2fafd, #929bff 34%, #e6a6fc 64%, #faeed2) border-box;
  box-shadow: 0 0 18px #a391fad1, inset 0 0 14px #a9ade458;
}
.prize-pop[data-rarity="special"] .prize-pop-card {
  background: radial-gradient(ellipse at 16% 24%, #654986 0, #362b58 62%, #2a243a 96%) padding-box,
    linear-gradient(124deg, #ffeeb2, #dba6fa 35%, #ffeebd 65%, #ba9df3) border-box;
  box-shadow: 0 0 19px #e3b8ffc4, inset 0 0 14px #ebd5ab6b;
}
.prize-pop:is([data-rarity="aurora"], [data-rarity="special"]) .score-pop-character {
  filter: drop-shadow(0 0 10px #c0aaffc9);
}
.prize-pop[data-settled] .prize-pop-card { animation: none; }
.prize-pop[data-settled] :is(.prize-pop-ray, .prize-pop-burst) { display: none; }
.collection-total {
  display: inline-block;
  color: #d9b87a;
  font: 750 .85rem/1.3 var(--display);
  font-variant-numeric: tabular-nums;
}
.collection-book { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.collection-heading { margin: 16px 0 4px; color: #f5e2b4; font-size: .96rem; }
.collection-row { padding: 9px; border: 1px solid #aa875041; border-radius: 9px; background: #14312a94; }
.collection-row-header { display: flex; justify-content: space-between; gap: 7px; margin-bottom: 6px; color: #faeccf; }
.collection-row-header small { margin-inline-start: 3px; color: #c7ae7e; font-size: .72rem; font-weight: 550; }
.collection-row-header span { color: #dbc08e; font-size: .8rem; font-variant-numeric: tabular-nums; }
.collection-portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.collection-portrait {
  --collection-rim: #9fbc85;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 2px 6px;
  border: 1px solid color-mix(in srgb, var(--collection-rim) 62%, transparent);
  border-radius: 7px;
  background: radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--collection-rim) 27%, transparent), #0e261ff2 82%);
  color: #f4ebd2;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}
.collection-portrait[data-style="gold"] { --collection-rim: #f1c568; }
.collection-portrait[data-style="advanced"] { --collection-rim: #a8e6c5; }
.collection-portrait[data-style="legendary"] { --collection-rim: #ffa784; }
.collection-portrait[data-style="aurora"] { --collection-rim: #bb98ff; }
.collection-portrait[data-style="special"] { --collection-rim: #e7c0ff; grid-column: 1 / -1; }
.collection-portrait img { width: clamp(43px, 14vw, 77px); height: clamp(43px, 14vw, 77px); object-fit: contain; }
.collection-portrait[data-style="gold"] img { filter: drop-shadow(0 0 6px #efad5080); }
.collection-portrait[data-style="aurora"] img { filter: drop-shadow(0 0 7px #ae98ff); }
.collection-portrait[data-style="special"] img { width: 96px; height: 96px; filter: drop-shadow(0 0 9px #ae98ff8c); }
.collection-portrait[data-owned="false"] { border-color: #6c806e66; color: #c5cfc2; background: #162f28ca; }
.collection-portrait[data-owned="false"] img { filter: saturate(.8) opacity(.72); }
.collection-portrait[data-style="gold"] {
  border: 3px double #d8ae60;
  padding: 2px 0 4px;
  background: radial-gradient(ellipse at 55% 28%, #b1853f38, #40342493 80%);
}
.collection-portrait[data-style="advanced"] {
  border-color: #82bca5;
  background: radial-gradient(ellipse at 50% 28%, #3f685366, #23443bb5 86%);
}
.collection-portrait[data-style="legendary"] {
  border-color: #ca8666;
  background: radial-gradient(ellipse at 50% 28%, #7c4e53, #44283b 84%);
  box-shadow: inset 0 0 0 1px #f7b08350;
}
.collection-portrait[data-style="aurora"] {
  border: 2px solid transparent;
  padding: 3px 1px 5px;
  background: radial-gradient(ellipse at 50% 28%, #4d4677, #262443 82%) padding-box,
    linear-gradient(125deg, #d2fbff, #848ad7 40%, #d68bef 75%, #f3cdba) border-box;
}
.collection-portrait[data-style="aurora"][data-owned="true"] { box-shadow: inset 0 0 13px #b493ec6a, 0 0 7px #a37ce595; }
.collection-rarity { color: var(--collection-rim); }
.collection-owned { color: #f1e2bf; font-size: .7rem; font-weight: 600; }
@media (min-width: 600px) {
  .collection-portraits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.score-roll-window {
  --score-roll-row: clamp(2.45rem, 12vw, 3.6rem);
  width: 100%;
  height: var(--score-roll-row);
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 15% 85%, transparent);
}
.score-roll-track {
  display: grid;
  justify-items: center;
  transform: translateY(calc(-1 * var(--score-roll-steps, 0) * var(--score-roll-row)));
  animation: score-roll-stop var(--score-roll-duration, 550ms) cubic-bezier(.11,.64,.17,1) both;
}
.score-roll-track > span {
  display: grid;
  height: var(--score-roll-row);
  place-items: center;
  color: var(--pop-light);
  font-size: clamp(1.95rem, 10vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 2px 9px #0e1512cc;
}
.score-roll-track > .prize-roll-entry {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: clamp(.76rem, 3.1vw, .94rem);
  white-space: normal;
  text-align: center;
}
.prize-roll-entry img { width: calc(var(--score-roll-row) - 4px); height: calc(var(--score-roll-row) - 4px); object-fit: contain; }
@keyframes score-roll-stop {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--score-roll-steps, 0) * var(--score-roll-row))); }
}
.prize-pop-ray {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(92vmax, 660px);
  aspect-ratio: 1;
  border: 1px solid var(--pop-halo);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 12%, var(--pop-halo) 28%, transparent 65%);
  opacity: .47;
  translate: -50% -50%;
  animation: prize-pop-halo .76s cubic-bezier(.17,.69,.25,1) both;
}
.prize-pop:is([data-tier="rare"], [data-tier="jackpot"], [data-tier="pk-rare"], [data-tier="pk-legendary"], [data-tier="pk-prism"]) .prize-pop-ray::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 13deg, transparent 0 11deg, var(--pop-halo) 12deg 14deg, transparent 15deg 25deg);
  mask-image: radial-gradient(circle, transparent 21%, #000 30%, transparent 66%);
  content: "";
}
.prize-pop-burst {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.prize-pop-burst i {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--spark, var(--pop-light));
  box-shadow: 0 0 9px var(--spark, var(--pop-halo));
  opacity: 0;
  animation: prize-pop-particle .69s ease-out var(--delay, 0ms) both;
}
.prize-pop-burst i:nth-child(3n) { width: 4px; height: 9px; border-radius: 60%; }
.prize-pop[data-tier="jackpot"] .prize-pop-burst i { width: 8px; height: 8px; }
.prize-pop[data-tier="jackpot"] .prize-pop-burst i:nth-child(3n) { width: 4px; height: 13px; }
.prize-pop.is-leaving { animation: prize-pop-veil-out .18s ease-in both; }
@keyframes prize-pop-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes prize-pop-veil-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes prize-pop-arrive {
  from { opacity: 0; transform: translateY(22px) scale(.78); }
  67% { opacity: 1; transform: translateY(-3px) scale(1.04); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes score-receipt-arrive {
  from { opacity: 0; transform: translateY(6px) scale(.94); }
  64% { opacity: 1; transform: translateY(-1px) scale(1.015); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes prize-pop-art-reveal {
  from { transform: rotate(-12deg) scale(.76); }
  65% { transform: rotate(3deg) scale(1.09); }
  to { transform: rotate(0) scale(1); }
}
@keyframes prize-pop-halo {
  from { opacity: 0; scale: .45; }
  32% { opacity: .9; }
  to { opacity: .4; scale: 1; }
}
@keyframes prize-pop-particle {
  from { opacity: 0; transform: rotate(var(--angle, 0deg)) translateX(21px) rotate(0deg) scale(.4); }
  38% { opacity: .94; }
  76% { opacity: .84; }
  to { opacity: 0; transform: rotate(var(--angle, 0deg)) translateX(var(--reach, 138px)) rotate(132deg) scale(.73); }
}
@media (max-height: 440px) {
  .prize-pop-card { gap: 5px; padding-block: 10px 14px; }
  .prize-pop-art { width: 68px; }
  .prize-pop-name { font-size: 1.15rem; }
}
.award-draw + :is(p, .panel-note, .panel-kicker) { margin-top: 8px; }
.award-interlude {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kicker" "count" "receipt";
  align-items: center;
  gap: 5px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #c7a366;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 20% 22%, #94734a74, transparent 64%),
    repeating-linear-gradient(110deg, #f6deac07 0 1px, transparent 1px 4px),
    linear-gradient(146deg, #554634, #29372b 80%);
  box-shadow: inset 0 0 0 2px #242e25, inset 0 0 0 3px #dcc08747, 0 4px 12px #12181273;
}
.interlude-kicker {
  grid-area: kicker;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #efd394;
  font: 760 .78rem/1.1 system-ui, sans-serif;
  letter-spacing: .2em;
}
.interlude-kicker::before { width: 5px; height: 5px; transform: rotate(45deg); background: #f4d28d; box-shadow: 0 0 5px #ffcf708f; content: ""; }
.interlude-count {
  grid-area: count;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-bottom: 3px;
  color: #f4e6c2;
  font-weight: 735;
}
.interlude-count strong {
  color: #ffeab0;
  font: 750 clamp(2.35rem, 5.2vw, 3rem)/.95 Georgia, var(--ui);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 2px 8px #2e1e14a6;
}
.play-panel .interlude-receipt {
  grid-area: receipt;
  color: #e0d1ab;
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.claim-code {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin-top: 8px;
  padding: 3px 7px;
  border: 1px dashed #c7ae7c94;
  border-radius: 5px;
  background: #292e24d9;
  color: #f8e4b6;
  font: 760 .84rem/1.45 ui-monospace, monospace;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.claim-code small { font: .77rem var(--ui); color: #dccdb1; letter-spacing: 0; }
.card-options { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 6px; margin-top: 8px; }
.blessing-card, .blessing-card-wrap {
  min-width: 0;
  width: 100%;
  border: 1px solid #8a9d7c70;
  border-radius: 7px;
  background: linear-gradient(115deg, #3d5040, #314032);
  color: #e4e4d2;
}
.blessing-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 6px;
  padding: 7px;
  text-align: left;
  transition: transform .13s, border-color .13s;
}
.blessing-card:nth-child(even), .blessing-card-wrap:nth-child(even) { background: linear-gradient(115deg, #464539, #39382f); border-color: #a7946b71; }
.blessing-card-wrap .blessing-card { border: 0; background: transparent; }
.blessing-card-wrap:focus-within, .blessing-card-wrap:hover { border-color: #c7aa75; }
.blessing-card-wrap > .target-options { margin: 0 7px 7px 36px; }
button.blessing-card:hover, .blessing-card.is-selected, .blessing-card[aria-pressed="true"] { transform: translateY(-1px); border-color: #d6b57f; }
.blessing-card .bless-icon { grid-area: 1 / 1 / 3 / 2; line-height: 1.2; font-size: 1.19rem; }
.blessing-card > .bless-icon + span { grid-area: 1 / 2 / 3 / 3; min-width: 0; }
.blessing-card strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .94rem; line-height: 1.28; }
.blessing-card .bless-description { display: block; color: #d2d6c0; font-size: .83rem; line-height: 1.38; }
.blessing-card .bless-tag { grid-area: 1 / 3 / 2 / 4; color: #edcf9a; font-size: .77rem; font-weight: 720; text-align: right; }
.blessing-card button { max-width: 100%; }
.target-options, .target-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.target-button, .target-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 30px;
  padding: 2px 6px;
  border: 1px solid #b1aa7b77;
  border-radius: 5px;
  background: #212e25;
  color: #ebdebd;
  font-size: .82rem;
  font-weight: 710;
}
.target-button img, .target-chip img { display: block; width: 17px; height: 17px; object-fit: contain; }
.target-button:hover, .target-chip:hover { border-color: #d6b57f; background: #455141; }
.rules-list { padding-left: 22px; color: #e2dbc4; }
.rules-list li + li { margin-top: 6px; }
.odds-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .875rem; }
.odds-table th, .odds-table td { padding: 6px 4px; border-bottom: 1px solid var(--rule); text-align: center; }
.odds-table th:first-child { text-align: left; }
.odds-title { margin-top: 13px; color: #eed0a0; font-size: 1rem; }
.stock-list { list-style: none; padding: 0; margin: 6px 0 0; }
.stock-list li { display: flex; justify-content: space-between; gap: 9px; border-bottom: 1px solid var(--rule); padding: 5px 0; font-size: .875rem; }
.stock-list span:first-child { overflow-wrap: anywhere; }
.stock-list span:last-child { flex-shrink: 0; color: #e6cc9d; }
.stock-theme { display: inline-block; margin-inline: 4px; padding: 0 4px; border: 1px solid #a58b655e; border-radius: 4px; color: #deca9f; font-size: .78rem; }
.host-grid { display: grid; gap: 8px; }
.host-round-limit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 5px 10px;
  align-items: center;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid #bd9f7060;
  border-radius: 6px;
  background: #26352a;
  color: #f0ddba;
  font-size: .9rem;
}
.host-round-limit > span { display: grid; gap: 2px; }
.host-round-limit p, .host-round-limit small { color: var(--muted); font-size: .83rem; }
.host-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 8px; }
.host-row label { display: grid; gap: 2px; color: #e3d8bf; font-size: .875rem; }
.host-row input, .host-symbol, .host-round-limit input { width: 100%; min-width: 0; color: #f4e1be; border: 1px solid #9e8a647a; border-radius: 5px; background: #26352a; padding: 6px; }
.host-row:has(.host-symbol) { grid-template-columns: minmax(0, 1fr) minmax(65px, .56fr) minmax(74px, .66fr); }
.host-symbol { font-size: .84rem; cursor: pointer; }
.host-symbol:focus-visible { outline: 2px solid #e5c98e; outline-offset: 3px; }
.host-form { margin-top: 10px; }
.pool-theme-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 8px 0 11px; }
.pool-theme-tab {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 46px;
  padding: 4px 1px;
  border: 1px solid #a18a636f;
  border-radius: 6px;
  background: #29372d;
  color: #e7dfc7;
  font-size: .78rem;
  font-weight: 710;
  text-align: center;
  overflow-wrap: anywhere;
}
.pool-theme-tab img { display: block; width: 25px; height: 25px; object-fit: contain; }
.pool-theme-tab:hover, .pool-theme-tab.is-selected, .pool-theme-tab[aria-selected="true"] {
  border-color: #d9b979;
  background: linear-gradient(#5e6346, #3a4a36);
  color: #ffebbb;
}
.pool-edit-title { margin: 4px 0 6px; color: #f2ddb4; font-size: 1rem; font-weight: 760; }
.pool-edit-panel { min-width: 0; }
.pool-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  margin: 4px 0 10px;
  padding: 4px 6px 6px;
  border: 1px solid #a58b6261;
  border-radius: 6px;
}
.pool-mode-toggle legend { padding-inline: 4px; color: #dfcda9; font-size: .84rem; }
.pool-mode-toggle label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #e5dcc2;
  font-size: .83rem;
  cursor: pointer;
}
.pool-mode-toggle label:has(:checked) { border-color: #b49a6c91; background: #3b4938; color: #f6e5be; }
.pool-mode-toggle input { flex: none; margin: 0; accent-color: #d0af72; }
.pool-edit-row.host-row {
  grid-template-columns: minmax(80px, 1.4fr) minmax(72px, .8fr) minmax(58px, .58fr) auto;
  align-items: end;
  gap: 4px 6px;
}
.pool-edit-row button, .pool-add-prize {
  min-height: 38px;
  padding: 3px 7px;
  border: 1px solid #aa916a83;
  border-radius: 5px;
  background: #2c3b30;
  color: #efdfb9;
  font-size: .84rem;
}
.pool-edit-row button:hover, .pool-add-prize:hover { background: #45543e; border-color: #d1b17a; }
.pool-add-prize { margin-top: 7px; }
.pool-weight-preview { display: block; margin: 4px 0 7px; color: #d4c5a3; font-size: .82rem; overflow-wrap: anywhere; }
.host-note { margin-bottom: 10px; }
.host-error { margin-top: 6px; color: #f2b6af; font-size: .875rem; }
.summary-total { color: #e8c991; font-weight: 800; margin-top: 10px; }
.dialog .gift-list { margin-top: 8px; }
.dialog details { margin-top: 12px; }
.dialog summary { cursor: pointer; color: #e8c991; }


@media (max-width: 740px) {
  .topbar, .arcade, .lobby { width: calc(100% - 36px); }
  .welcome-copy { padding-left: 0; }
  .welcome-step { gap: 8px; }
  .welcome-copy h1 { font-size: clamp(3.8rem, 10.6vw, 6rem); }
  .display-tray { width: 86%; }
  .stage { grid-template-columns: minmax(0, 1.35fr) minmax(235px, 1fr); gap: 13px; }
  .cabinet { padding-inline: 13px; }
  .intro h1 { font-size: clamp(2.2rem, 8.4vw, 4rem); }
  .play-panel { padding: 10px 11px; }
}
@media (max-width: 620px), (max-width: 740px) and (orientation: portrait), (max-width: 960px) and (pointer: coarse) {
  body { min-width: 0; }
  .topbar, .arcade, .lobby { width: calc(100% - 20px); }
  .topbar { position: relative; z-index: 22; flex-wrap: wrap; min-height: calc(50px + env(safe-area-inset-top)); gap: 6px; padding-top: env(safe-area-inset-top); }
  .brand { flex: none; gap: 6px; font-size: .94rem; letter-spacing: .08em; }
  .brand-mark { width: 24px; height: 24px; }
  .toolbar { flex-wrap: wrap; max-width: 100%; gap: 4px; }
  .toolbar .tool-button { min-height: 44px; min-width: 44px; justify-content: center; padding: 3px 5px; font-size: .76rem; white-space: nowrap; }
  .toolbar :is(.sound-glyph, .music-glyph) { display: none; }
  .toolbar .mobile-menu-button { display: inline-flex; }
  .toolbar-extras { display: none; }
  .toolbar-extras[data-open] {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(188px, 100%);
    gap: 5px;
    padding: 6px;
    border: 1px solid #c8ad76a0;
    border-radius: 8px;
    background: #26362b;
    box-shadow: 0 8px 20px #0a110cc4;
  }
  .arcade { max-width: 520px; }
  .lobby .tool-button { min-height: 44px; }
  .welcome-step { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 25px 0 36px; gap: 29px; }
  .welcome-copy h1 { font-size: clamp(3.7rem, 16.5vw, 5rem); }
  .welcome-copy p { margin-top: 14px; font-size: .93rem; }
  .welcome-actions { gap: 8px; margin-top: 17px; }
  .welcome-choice { flex-basis: 123px; min-height: 57px; padding-inline: 11px; }
  .welcome-figure { perspective: 800px; }
  .welcome-figure::before { inset-inline: 0; }
  .display-tray { width: min(76%, 300px); transform: rotateX(12deg) rotateY(-13deg) rotateZ(4deg); }
  .figure-reels img { height: clamp(35px, 10.8vw, 51px); }
  .selection-step { padding: 21px 0 14px; }
  .selection-header { gap: 8px; margin-bottom: 11px; }
  .selection-header p { font-size: .87rem; }
  .pk-room-option { gap: 2px 5px; padding-inline: 8px; }
  .pk-room-option strong { font-size: .86rem; }
  .pk-room-option small { font-size: .72rem; }
  .pk-gift-list { gap: 4px; }
  .pk-gift-list > * { padding: 3px 2px; }
  .pk-gift-list > * strong { font-size: .74rem; }
  .pk-gift-list > * :is(small, span) { font-size: .68rem; }
  .pk-hud { padding: 8px 9px; }
  .mode-switch { gap: 8px; }
  .mode-card { gap: 8px; padding: 8px; }
  .mode-card-title strong { font-size: clamp(1rem, 4.3vw, 1.37rem); letter-spacing: .01em; }
  .mode-chip { display: none; }
  .mode-illustration { padding: 5px; }
  .mini-reels, .mini-controls { column-gap: 3px; }
  .mode-card-description, .mode-card-action { font-size: .82rem; }
  .mode-card-action { padding-inline: 4px; }
  .machine::before { inset-inline: -8px; }
  .intro { display: block; margin: 11px 2px 9px; }
  .intro h1 { font-size: clamp(1.55rem, 6.8vw, 2.8rem); letter-spacing: .06em; }
  .intro > p { display: none; }
  .intro-title { gap: 4px 7px; }
  .passives { gap: 4px; }
  .passive-info-button { width: 44px; height: 44px; }
  .passive-icon { width: 39px; height: 39px; }
  .intro-mark { margin-left: 1px; width: 10px; height: 10px; border-radius: 3px; }
  .intro-mark::before, .intro-mark::after { content: none; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cabinet { --reel-inset: 5px; --reel-column-gap: 4px; --reel-row-gap: 4px; padding: 8px 8px 9px; border-radius: 13px; }
  .marquee { gap: 5px; }
  .machine-mode strong { font-size: .92rem; }
  .machine-mode span { font-size: .72rem; }
  .machine-score { min-width: 64px; gap: 4px; padding-inline: 5px; }
  .machine-score strong { font-size: 1.13rem; }
  .round-meter { gap: 7px; }
  .round-lights { gap: 3px; }
  .win-particles { --paper-lift-scale: .63; }
  .win-particles i { scale: .78; }
  .reel-well { margin-top: 7px; border-radius: 9px; }
  .core-reveal { gap: 5px; padding: 2px 6px 2px 2px; }
  .core-reveal-icon { width: 31px; height: 31px; }
  .core-reveal-copy strong { font-size: .74rem; }
  .core-reveal-copy small { font-size: .625rem; }
  .tile { height: clamp(56px, 16.6vw, 91px); border-radius: 5px; }
  .symbol { font-size: 2rem; }
  .result-bar { flex-wrap: wrap; min-height: 34px; gap: 3px 5px; margin: 3px 0; padding-block: 3px; }
  .utility { margin-top: 4px; }
  .utility-status { margin-top: 3px; }
  .blast-controls:has(button:disabled) { display: none; }
  .utility-button, .utility-skip { min-height: 44px; }
  .console { grid-template-columns: minmax(0, 1fr) 52px; gap: 6px; }
  .pull, .lever { min-height: 51px; }
  .pull { font-size: 1.02rem; padding: 4px 11px; }
  .lever { --arm-height: 26px; --mount-size: 22px; --knob-size: 16px; }
  .lever-mount { left: 35%; }
  .side { gap: 8px; }
  .play-desk:not(:has(:is(.score-action, .award-trigger, .award-draw, .award-interlude, .prize-view, .summary-next))) { display: none; }
  .play-desk + .ticket { order: 1; }
  .play-desk:has(:is(.award-trigger, .award-draw, .award-interlude)) .desk-head { display: none; }
  .desk-head, .ticket-head { min-height: 37px; padding: 5px 9px; }
  .desk-mark { width: 21px; height: 21px; }
  .play-panel { padding: 7px 8px 8px; }
  .prize-view { grid-template-columns: 54px minmax(0, 1fr); }
  .hero-gift { width: 54px; height: 54px; }
  .award-draw { grid-template-columns: 46px minmax(0, 1fr); gap: 7px; min-height: 75px; padding: 7px; }
  .award-mark { width: 46px; height: 46px; }
  .award-mark img { width: 35px; height: 35px; }
  .award-interlude { padding: 9px; }
  .interlude-count { gap: 6px; }
  .gift-area { padding-inline: 8px; }
  .gift-shelf {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(133px, 44%);
    gap: 6px;
    overflow-x: auto;
    margin: 4px 0;
    padding: 1px 1px 6px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }
  .gift-shelf > li { scroll-snap-align: start; }
  .gift-shelf:has(> :only-child) { grid-auto-columns: min(148px, 56%); }
  .gift-card-art { height: clamp(54px, 17vw, 79px); }
  .gift-shelf-empty { min-height: 45px; margin: 1px 0 4px; }
  .gift-shelf-empty img { width: 32px; height: 32px; }
  .award-trigger { grid-template-columns: 45px minmax(0, 1fr); gap: 7px; min-height: 67px; padding: 6px; }
  .award-trigger-art { width: 45px; height: 45px; }
  .award-trigger-art img { width: 36px; height: 36px; }
  .award-trigger-copy { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2px 4px; }
  .award-trigger-copy strong, .award-trigger-copy small { grid-column: 1; }
  .award-trigger-copy strong { font-size: .96rem; }
  .award-trigger-copy small { font-size: .76rem; line-height: 1.3; }
  .award-queue-count, .award-trigger-action { margin-top: 0; }
  .award-queue-count { grid-area: 1 / 2; justify-self: end; }
  .award-trigger-action { grid-area: 2 / 2; align-self: end; justify-self: end; padding-inline: 4px; font-size: .72rem; white-space: nowrap; }
  .ticket-actions { gap: 5px; margin-inline: 9px; }
  .ticket-actions button, .target-button, .dialog-dismiss, .close-dialog, .summary-next, .modal-action { min-height: 44px; }
  .dialog-dismiss, .close-dialog { min-width: 44px; }
  .core-dialog { padding: 13px; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .summary-dialog { padding: 10px; }
  .summary-content { padding: 8px 3px 7px 0; }
  .summary-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .summary-shelf:has(> :only-child) { grid-template-columns: minmax(0, 210px); }
  .summary-gift-card { padding: 5px; }
  .summary-gift-art { height: clamp(67px, 20vw, 101px); }
  .summary-claim { font-size: .75rem; }
  .core-dialog-intro { margin-bottom: 10px; }
  .core-dialog .card-options { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .core-dialog .blessing-card { min-height: 51px; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-rows: auto; gap: 5px; padding: 7px; }
  .core-dialog .blessing-card .bless-icon { grid-area: 1 / 1 / 3 / 2; width: 42px; height: 42px; }
  .core-dialog .blessing-card > .bless-icon + span { grid-area: 1 / 2 / 3 / 3; }
  .core-dialog .blessing-card strong { font-size: .94rem; }
  .core-dialog .blessing-card .bless-description { font-size: .84rem; }
  .core-dialog .blessing-card .bless-tag { grid-area: 1 / 3 / 2 / 4; }
  .core-dialog .core-tags { flex-direction: column; align-items: end; }
  .pool-edit-row.host-row { grid-template-columns: minmax(66px, 1fr) minmax(58px, .8fr) auto; align-items: end; }
  .pool-edit-row.host-row > :first-child { grid-column: 1 / -1; }
  .pool-edit-row :is(input, select, button), .pool-add-prize { min-height: 44px; }
}
@media (max-width: 410px) {
  .brand-mark { display: none; }
  .machine-mode span { display: none; }
}
@media (max-width: 355px) {
  .topbar { flex-wrap: wrap; }
  .brand { font-size: .825rem; letter-spacing: .025em; }
  .toolbar { gap: 2px; }
  .toolbar .tool-button { padding-inline: 3px; }
  .tool-button { padding-inline: 7px; }
  .dialog { padding: 17px 11px; }
  .marquee .round-lights { display: none; }
  .win-cue[data-grade="incredible"] .win-cue-word { letter-spacing: .025em; }
  .pool-theme-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px), (max-width: 960px) and (pointer: coarse) {
  html:has(#machinePage:not([hidden])) {
    --dock-button-height: 50px;
    --dock-padding: 7px;
    --dock-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    --dock-reserve: calc(var(--dock-button-height) + var(--dock-padding) + var(--dock-padding) + var(--dock-bottom) + 14px);
    scroll-padding-bottom: var(--dock-reserve);
  }
  body:has(#machinePage:not([hidden])) {
    --play-ink: #fff1d6;
    --play-muted: #c2d1c4;
    --play-brass: #f6c460;
    --play-line: #7da29658;
    background: radial-gradient(ellipse 103% 44% at 50% 12%, #174437 0, transparent 83%), #0a1b17;
  }
  body:has(#machinePage:not([hidden])) > .topbar {
    width: min(520px, 100% - 26px);
    min-height: calc(51px + env(safe-area-inset-top, 0px));
    border-bottom-color: #75a18a36;
  }
  body:has(#machinePage:not([hidden])) .brand {
    gap: 8px;
    color: var(--play-ink);
    font-size: 1rem;
    letter-spacing: .07em;
  }
  body:has(#machinePage:not([hidden])) .brand-mark {
    display: grid;
    width: 25px;
    height: 25px;
    border-color: #c695536f;
    border-radius: 8px;
    background: linear-gradient(145deg, #365649, #1e392f);
    color: #ffd585;
    box-shadow: inset 0 1px 0 #ffe1a524;
  }
  body:has(#machinePage:not([hidden])) .toolbar .mobile-menu-button {
    gap: 6px;
    padding-inline: 9px;
    border-color: #638c7864;
    border-radius: 12px;
    background: #1b362ea8;
    color: var(--play-ink);
    font-size: .78rem;
  }
  body:has(#machinePage:not([hidden])) .mobile-menu-button::before {
    width: 13px;
    height: 4px;
    background: radial-gradient(circle, #e6bf78 1.3px, transparent 1.5px) 0 center / 4.3px 4px repeat-x;
    content: "";
  }
  body:has(#machinePage:not([hidden]) .cabinet[data-frame-art]) .toolbar .mobile-menu-button {
    background-color: #172f28;
  }
  body:has(#machinePage:not([hidden])) .toolbar-extras[data-open] {
    width: min(224px, 100%);
    gap: 6px;
    padding: 8px;
    border-color: var(--play-line);
    border-radius: 14px;
    background: #172f27;
    box-shadow: 0 10px 24px #05110ccc;
  }
  body:has(#machinePage:not([hidden])) .toolbar-extras .tool-button {
    border-color: #6f93805e;
    border-radius: 9px;
    background: #254337;
    color: var(--play-ink);
  }
  .arcade {
    width: min(520px, 100% - 24px);
    padding-bottom: var(--dock-reserve, 15px);
  }
  .marquee .mobile-game-tool {
    display: inline-flex;
    min-height: 44px;
    flex-shrink: 0;
    justify-content: center;
    gap: 4px;
    padding: 4px 7px;
    border-color: var(--ink-edge, #779689);
    border-radius: 10px;
    background: var(--ink-utility, #214237);
    color: var(--play-ink);
    font-size: .79rem;
    white-space: nowrap;
  }
  .mobile-mods-count { color: var(--ink-highlight, #f2cb86); font-variant-numeric: tabular-nums; }
  .mobile-mods-art { display: inline-grid; place-items: center; width: 21px; height: 21px; }
  .mobile-mods-art img { max-width: 100%; max-height: 100%; }
  .mobile-game-tool:has(.mobile-mods-art:not([hidden])) .mobile-mods-label { display: none; }
  .machine { isolation: auto; }
  .machine::before { inset: 12% -6px -7px; }
  .machine:has(> .cabinet[data-frame-art])::before {
    background: radial-gradient(ellipse at 48% 68%, #62a48b44, transparent 72%);
  }
  .intro { position: relative; z-index: 8; display: block; margin: 0; }
  .intro-title { display: block; }
  .intro-title h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .intro > p, .intro .passives { display: none; }
  .stage {
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 9px;
  }
  .cabinet {
    --reel-inset: 6px;
    --reel-column-gap: 5px;
    --reel-row-gap: 5px;
    --phone-glass: #d7e9ce;
    --phone-glass-edge: #7ea994;
    --phone-panel: #193d31;
    --phone-hardware: #82724f;
    padding: 8px 10px 10px;
    border-radius: 19px;
  }
  .cabinet[data-frame-art] {
    background:
      radial-gradient(ellipse at 19% 0%, #4b85715c, transparent 61%) padding-box,
      repeating-linear-gradient(116deg, #c1d7ae05 0 1px, transparent 1px 4px) padding-box,
      linear-gradient(148deg, #234c3e, #163a30 32%, #133329 70%, #102b23) padding-box,
      linear-gradient(145deg, #978362, #b09a6a 18%, #405b4c 52%, #425f4d) border-box;
    box-shadow: inset 0 0 0 2px #16382c, inset 0 1px 0 #a4c4a34b, 0 10px 24px #04160dc9;
  }
  .cabinet[data-skin="cranberry"] { --phone-glass: #f1d9bc; --phone-glass-edge: #a86c5b; --phone-panel: #552b30; --phone-hardware: #ae7645; }
  .cabinet[data-skin="frost"] { --phone-glass: #dcf6ed; --phone-glass-edge: #7bb9c4; --phone-panel: #254b5b; --phone-hardware: #88b7bd; }
  .cabinet[data-skin="midnight"] { --phone-glass: #f1dfc2; --phone-glass-edge: #9694a5; --phone-panel: #292839; --phone-hardware: #9d8051; }
  .cabinet .marquee { min-height: 39px; gap: 7px; padding: 0 5px 5px; }
  .cabinet .machine-mode { display: none; }
  .cabinet .machine-score {
    min-width: 0;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #f1dfb9;
    font-size: .83rem;
    font-weight: 680;
  }
  .cabinet[data-skin] .machine-score { background: none; color: #f1dfb9; }
  .cabinet[data-skin] .machine-score strong {
    color: #ffd57b;
    font: 820 clamp(1.55rem, 7.5vw, 2.25rem)/1 var(--ui);
    letter-spacing: -.02em;
    text-shadow: 0 2px 10px #0e21176b;
  }
  .cabinet .round-meter { gap: 8px; }
  .cabinet .round-count { color: var(--play-ink); font-size: .87rem; font-weight: 750; font-variant-numeric: tabular-nums; }
  .cabinet .round-lights { display: none; }
  .cabinet[data-frame-art]::before { inset-block-start: -20px; border-width: 56px 13px 10px; }
  .cabinet[data-frame-art] .marquee { padding-top: 27px; }
  .cabinet[data-frame-art] .marquee::after {
    position: absolute;
    inset: auto 1px -3px;
    height: 1px;
    background: linear-gradient(90deg, #dfb46b93, #9bc0a35c 58%, transparent);
    content: "";
    pointer-events: none;
  }
  .cabinet[data-skin] .reel-well {
    margin-top: 5px;
    border-color: color-mix(in srgb, var(--phone-hardware) 62%, #162e28);
    border-radius: 13px;
    background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--phone-panel) 52%, #37443c), #122820 77%);
    box-shadow: inset 0 2px 7px #061b158c, inset 0 0 0 1px #cfdfb01d, 0 2px 5px #071811;
  }
  .cabinet[data-skin="cranberry"] .reel-well { border-radius: 14px 14px 6px 6px; background: radial-gradient(ellipse at 50% 0%, #633e35, #301d24 84%); }
  .cabinet[data-skin="frost"] .reel-well { border-radius: 5px 13px; background: radial-gradient(ellipse at 50% 0%, #326171, #142f39 83%); }
  .cabinet[data-skin="midnight"] .reel-well { background: radial-gradient(ellipse at 50% 0%, #353344, #171b28 76%); }
  .cabinet .tile { height: clamp(65px, 21.8vw, 109px); border-radius: 8px; }
  .cabinet .tile:nth-child(-n+3), .cabinet .tile:nth-child(n+7) { border-radius: 8px; }
  .cabinet[data-skin] .tile:where(:not(.win, .gold, .is-gold, .golden, .core-marked, .core-effect-target, .preview-nudge, .preview-blast, [data-symbol="wild"])) {
    border-color: color-mix(in srgb, var(--phone-glass) 64%, #a2a878);
    background:
      repeating-linear-gradient(155deg, #ebfff508 0 1px, transparent 1px 5px),
      radial-gradient(ellipse at 50% 36%, var(--phone-glass) 4%, var(--phone-glass) 30%, var(--phone-glass-edge) 100%);
    box-shadow: inset 0 1px 1px #fcffe7a8, inset 0 -4px 8px #214a3345, 0 2px 3px #06170e86;
  }
  .cabinet .tile:where(:not(.core-effect-target))::before, .cabinet .tile:where(:not(.core-effect-target))::after { border-color: #49493675; }
  .cabinet .symbol { width: min(74%, 88px); height: 79%; }
  .cabinet .symbol img { filter: drop-shadow(0 4px 2px #21382b48); }
  .cabinet .reel-roll-window { border-radius: 8px; }
  .win-feedback { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .win-feedback .win-cue-dock { padding: 8px 10px 5px; }
  .win-feedback .win-cue-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 8px;
    padding: 5px 10px;
  }
  .win-feedback .win-cue .win-cue-word { font-size: clamp(1.12rem, 6.7vw, 1.75rem); letter-spacing: .038em; }
  .win-feedback .win-cue-count {
    padding: 0 0 0 6px;
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, var(--cue-line) 47%, transparent);
    font-size: .75rem;
  }
  .win-feedback .score-pop-card { width: min(100%, 345px); min-height: 62px; gap: 8px; padding: 6px 8px; }
  .win-feedback .score-pop-card.has-character { grid-template-columns: clamp(48px, 14vw, 68px) minmax(0, 1fr); }
  .win-feedback .score-pop-character { height: clamp(48px, 14vw, 68px); padding-bottom: 5px; }
  .win-feedback .score-pop-character::after { height: 6px; }
  .win-feedback .score-pop-copy { gap: 2px; }
  .win-feedback .prize-character-name { font-size: .85rem; line-height: 1.24; overflow-wrap: anywhere; }
  .win-feedback .prize-rarity { gap: 2px 4px; padding: 1px 3px; flex-wrap: wrap; font-size: .69rem; white-space: normal; }
  .win-feedback .score-pop-copy .prize-pop-name { font-size: 1.08rem; }
  .win-feedback .prize-score-detail { font-size: .69rem; line-height: 1.26; overflow-wrap: anywhere; }
  .result-bar { min-height: 0; margin: 3px 0 6px; padding: 5px 2px 2px; color: var(--play-muted); font-size: .81rem; line-height: 1.4; }
  .cabinet .utility { margin-top: 8px; }
  .cabinet .utility:empty { margin: 0; }
  .round-feedback { --award-row-height: 134px; overflow-x: clip; }
  .round-feedback .score-pop-rolling { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .round-feedback .score-roll-window { --score-roll-row: 39px; }
  .installed-mods { display: none; }
  .passive-info-button { width: 44px; height: 44px; }
  .utility-status { margin-top: 2px; }
  .utility-note { font-size: .76rem; line-height: 1.35; }
  #machinePage[data-mode="cascade"] .utility:not(:has(.nudge-controls.is-armed)) { display: none; }
  #machinePage[data-mode="cascade"] .nudge-controls .utility-button { min-height: 44px; gap: 3px; font-size: .78rem; }
  .cabinet[data-skin] .nudge-controls .utility-button {
    min-height: 44px;
    gap: 5px;
    padding-inline: 0;
    border-color: color-mix(in srgb, var(--phone-hardware) 62%, #43806a);
    border-radius: 8px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--phone-panel) 78%, #6d947a), var(--phone-panel));
    color: var(--play-ink);
    font-size: .84rem;
    box-shadow: inset 0 1px 0 #f0e5ba28, 0 2px 3px #09181196;
  }
  .cabinet[data-skin] .nudge-controls .utility-button span[aria-hidden] { color: #ffd378; }
  .cabinet[data-skin] .nudge-controls .utility-button:not(:disabled):is(:hover, :focus-visible) { border-color: #e9c17c; filter: brightness(1.15); }
  .cabinet .console {
    position: fixed;
    z-index: 20;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--dock-bottom) + var(--screen-dock-lift, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(0, 1fr) 54px;
    grid-template-rows: var(--dock-button-height);
    gap: 7px;
    max-width: 520px;
    margin-inline: auto;
    padding: var(--dock-padding);
    border: 1px solid color-mix(in srgb, var(--phone-hardware) 72%, #335a4c);
    border-radius: 15px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--phone-panel) 84%, #53725f), #102b23 91%);
    box-shadow: inset 0 1px 0 #dde9b91f, 0 8px 22px #071710e0;
  }
  .cabinet .pull, .cabinet .lever { min-height: var(--dock-button-height); }
  .cabinet .pull { gap: 6px; padding: 6px 11px; border-radius: 10px; font-size: 1rem; letter-spacing: .055em; }
  .cabinet .console .pull:not(:disabled):is(:hover, :active) { transform: none; }
  .cabinet .console .pull:not(:disabled):active { filter: brightness(.92); }
  .cabinet[data-frame-art] .pull:not(:disabled, .is-award, .is-tool, .is-draft, .is-skip, .is-recap), .cabinet .pull.is-draft:not(:disabled) {
    border-color: #e8b854;
    background: repeating-linear-gradient(100deg, #a4540d0c 0 1px, transparent 1px 4px), linear-gradient(#ffdc86, #f2ad46 79%, #d99a40);
    box-shadow: inset 0 1px 0 #fff0be99, inset 0 -3px 0 #a660363b, 0 3px 8px #0a1a126b;
    color: #302014;
  }
  .cabinet .pull.is-tool:not(:disabled) {
    border-color: color-mix(in srgb, var(--phone-hardware) 54%, #536658);
    background: linear-gradient(155deg, color-mix(in srgb, var(--phone-panel) 83%, #101d17), #152a23);
    box-shadow: inset 0 1px 0 #e5e6bd19;
    color: var(--play-ink);
  }
  .cabinet .pull.is-tool .pull-mechanism { opacity: .66; }
  .cabinet .lever { border-radius: 10px; }
  .cabinet[data-frame-art] .lever { border-color: #a6895b8c; background: linear-gradient(140deg, #355442, #1a362b 68%, #14291f); }
  .cabinet .lever-mount { left: 37%; }
  .side { gap: 7px; }
  .cabinet-items { gap: 7px; padding: 8px; }
  .cabinet-item {
    border-color: color-mix(in srgb, var(--cabinet-accent) 34%, #315047);
    border-radius: 9px;
    background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--cabinet-accent) 19%, #24433a), #1a362e 66%, #19332a 90%);
    box-shadow: inset 0 1px 0 #d9c39315, 0 2px 5px #0a1d177d;
  }
  .cabinet-card { min-height: 104px; gap: 2px; padding: 4px 4px 6px; }
  .cabinet-figure { width: min(100%, 3.7rem); }
  .cabinet-figure::before {
    position: absolute;
    inset: auto 4% 3px;
    height: 7px;
    border: 1px solid color-mix(in srgb, var(--cabinet-accent) 38%, #29352a);
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--cabinet-accent) 36%, #393929), #0f1a13 86%);
    content: "";
    pointer-events: none;
  }
  .cabinet-figure img { position: relative; z-index: 1; }
  .cabinet-amount { z-index: 2; }
  .cabinet-name { font-size: .83rem; line-height: 1.23; }
  .cabinet-rarity { line-height: 1.15; }
  .side :is(.pk-hud, .play-desk) { display: none; }
  body[data-play-context="host"] .side .pk-hud:has([data-pk-results]) { display: block; }

  #machinePage:not([hidden]) ~ .dialog {
    width: min(480px, 100% - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 14px;
    border-color: #6a927a8c;
    border-radius: 18px;
    background: radial-gradient(ellipse at 12% 0%, #345844a8, transparent 64%), #19352b;
    color: var(--play-ink);
    box-shadow: inset 0 1px 0 #bbcdab24, 0 21px 46px #06140fc7;
  }
  #machinePage:not([hidden]) ~ .dialog::backdrop { background: #0a1a15b8; backdrop-filter: none; }
  #machinePage:not([hidden]) ~ .dialog :is(.close-dialog, .dialog-dismiss) {
    width: 44px;
    height: 44px;
    border-color: #76937c70;
    border-radius: 10px;
    background: #19372b;
    color: #ffebc1;
  }
  #machinePage:not([hidden]) ~ .dialog h2 { color: var(--play-ink); font-size: 1.33rem; line-height: 1.22; }
  #machinePage:not([hidden]) ~ .dialog :is(.skin-shop-message, .body-copy) { color: var(--play-muted); }
  #machinePage:not([hidden]) ~ .dialog .modal-action {
    border-color: #e2b359;
    border-radius: 10px;
    background: linear-gradient(#ffdc8e, #eeae51 84%);
    color: #342516;
    box-shadow: inset 0 1px 0 #fff4bd78;
  }
  #machinePage:not([hidden]) ~ .dialog .soft-action { border-color: #73978175; border-radius: 9px; background: #2a4a39; }
  #coreDialog .core-dialog-intro {
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 6px;
    margin-bottom: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--play-line);
  }
  #coreDialog .core-dialog-intro h2 { margin: 4px 0 5px; font-size: clamp(1.05rem, 6vw, 1.38rem); letter-spacing: .025em; }
  #coreDialog .core-dialog-intro p { color: var(--play-muted); font-size: .8rem; line-height: 1.35; }
  #coreDialog .dialog-dismiss { grid-area: 1 / 2; }
  #coreDialog .draft-skip-actions { margin-top: 2px; }
  #coreDialog .draft-skip-actions button { flex: 1 1 0; }
  #coreDialog .core-receipt { padding: 2px 5px; border-color: #bda2696b; background: #294536; color: #f5db9f; font-size: .74rem; }
  #coreDialog .core-capacity { color: #ded8b9; font-size: .8rem; }
  #coreDialog .card-options { margin-top: 0; gap: 7px; }
  #coreDialog .blessing-card-wrap {
    border-color: color-mix(in srgb, var(--core-tier-rim) 47%, #224238);
    border-radius: 11px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--core-tier-rim) 13%, #2a4d40), #264137 73%);
    box-shadow: inset 0 1px 0 #d3e4b716;
  }
  #coreDialog .blessing-card-wrap:is(:hover, :focus-within) { border-color: var(--core-tier-rim); }
  #coreDialog .blessing-card {
    min-height: 56px;
    grid-template-columns: 49px minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 7px;
    padding: 8px;
  }
  #coreDialog .blessing-card .bless-icon {
    grid-area: 1 / 1 / 4 / 2;
    width: 49px;
    height: 49px;
    border: 1px solid color-mix(in srgb, var(--core-tier-rim) 49%, #18382d);
    border-radius: 7px;
    background: #17382db8;
    box-shadow: inset 0 1px 0 #c1d5af1f;
  }
  #coreDialog .blessing-card > .bless-icon + span { display: contents; }
  #coreDialog .blessing-card strong { grid-area: 1 / 2 / 2 / 3; margin: 0; color: var(--play-ink); font-size: .94rem; }
  #coreDialog .blessing-card .bless-description { grid-area: 2 / 2 / 3 / -1; margin: 0; color: #d6e1ce; font-size: .81rem; line-height: 1.39; }
  #coreDialog .blessing-card .core-odds { grid-area: 3 / 2 / 4 / -1; margin: 0; padding: 2px 4px; border-radius: 3px; font-size: .73rem; }
  #coreDialog .bless-tag { margin-top: 0; flex-direction: row; }
  #coreDialog .core-tags :is(.core-duration-badge, .core-rarity-badge) { padding: 1px 3px; border-radius: 4px; font-size: .69rem; }
  #coreDialog .target-options { margin: 1px 8px 8px; padding: 4px; border-radius: 8px; background: #142e26; }
  #coreDialog .target-button { padding-inline: 5px; border-color: #73957d8c; border-radius: 7px; background: #294739; }
  #coreDialog .core-replacement-incoming, #coreDialog .core-replacement-option { border-color: #789b82a0; border-radius: 10px; background: #29483b; }

  #summaryDialog .summary-dialog-intro { padding-bottom: 7px; border-bottom-color: var(--play-line); }
  #summaryDialog .summary-content { padding: 8px 3px 8px 0; }
  #summaryDialog .score-recap {
    padding: 10px;
    border: 1px solid #88ad8b57;
    border-radius: 11px;
    background: radial-gradient(ellipse at 10% 0%, #5367498a, transparent 73%), #254437;
  }
  #summaryDialog .summary-count { margin: 0 0 2px; color: var(--play-ink); line-height: 1.24; }
  #summaryDialog .summary-count strong { color: #ffd47a; font-size: 1.57rem; font-variant-numeric: tabular-nums; }
  #summaryDialog .score-recap :is(.summary-empty, .panel-note) { min-height: 0; padding: 0; border: 0; background: none; color: var(--play-muted); font-size: .79rem; }
  #summaryDialog .summary-collection { margin-top: 9px; padding-top: 8px; border-top-color: var(--play-line); }
  #summaryDialog .summary-gift-card { border-radius: 9px; background: radial-gradient(ellipse at 48% 22%, #3a614e, #203d32 69%); }
  #summaryDialog .summary-footer { padding-top: 8px; border-top-color: var(--play-line); }
  #summaryDialog .summary-footer .modal-action { width: 100%; }
}
@media (max-width: 620px) and (min-height: 735px), (max-width: 960px) and (min-height: 735px) and (pointer: coarse) {
  .cabinet .tile { height: clamp(71px, 24vw, 118px); }
}
@media (max-width: 355px) {
  .cabinet .marquee { gap: 4px; padding-inline: 1px; }
  .cabinet .marquee .machine-score { display: grid; justify-items: center; gap: 1px; font-size: .71rem; line-height: 1; }
  .cabinet .marquee .machine-score strong { font-size: 1.34rem; }
  .cabinet .marquee .round-count { font-size: .73rem; }
  .marquee .mobile-game-tool { gap: 3px; padding-inline: 5px; font-size: .72rem; }
  .mobile-mods-art { width: 18px; height: 18px; }
  .marquee .cabinet-button { gap: 3px; padding-inline: 5px; }
  .marquee .cabinet-button-mark { display: none; }
}
@media (max-width: 620px) and (max-height: 650px), (max-width: 960px) and (max-height: 650px) and (pointer: coarse) {
  .cabinet[data-frame-art]::before { inset-block-start: -21px; border-top-width: 44px; }
  .cabinet[data-frame-art] .marquee { padding-top: 8px; }
  .cabinet .tile { height: clamp(54px, min(18.6vw, (100dvh - 370px) / 3), 88px); }
  .cabinet .utility { margin-top: 2px; }
  .round-feedback { --award-row-height: 88px; margin-bottom: 3px; }
  .round-feedback .result-bar { padding-block: 0; line-height: 1.18; }
  .round-feedback .win-feedback:not(:has(.prize-pop[hidden])) {
    grid-template-rows: 36px minmax(0, 1fr);
    align-self: stretch;
  }
  .round-feedback .win-cue-dock { padding: 1px 3px 2px; }
  .round-feedback .win-cue-banner { flex-wrap: nowrap; gap: 6px; padding: 3px 8px; }
  .round-feedback .win-cue .win-cue-word { font-size: clamp(1.3rem, 7.6vw, 1.75rem); }
  .round-feedback .win-cue:is([data-grade="incredible"], [data-grade="jackpot"]) .win-cue-word { font-size: clamp(1.16rem, 6.9vw, 1.48rem); }
  .round-feedback .win-cue-count { padding-inline: 6px 0; font-size: .76rem; }
  .round-feedback .prize-pop { padding: 1px 2px; }
  .round-feedback .score-pop-card { min-height: 0; gap: 5px; padding: 3px 6px; }
  .round-feedback .score-pop-card.has-character { grid-template-columns: clamp(36px, 12vw, 48px) minmax(0, 1fr); }
  .round-feedback .score-pop-character { height: clamp(38px, 12vw, 40px); }
  .round-feedback .score-pop-copy { gap: 2px 5px; }
  .round-feedback .score-pop-copy .prize-pop-name { font-size: 1.04rem; }
  .round-feedback .prize-score-notes { font-size: .68rem; }
  .round-feedback .score-pop-rolling { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .round-feedback .score-roll-window { --score-roll-row: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tile:is(.cascade-clearing, .cascade-falling) .symbol { animation: none !important; }
  .payline.is-awarded .payline-ray, .payline-point.is-awarded { animation: none !important; }
  .reel-well[data-core-phase="win"] .payline.is-current-line .payline-ray,
  .reel-well[data-core-phase="win"] .payline-point.is-current-line,
  .reel-well[data-core-phase="win"] .tile.line-hit-cell { animation: none !important; }
  .award-draw[data-phase="drawing"]::after, .award-draw[data-phase="revealed"] .award-mark { animation: none !important; }
  .lever.is-pulled .lever-arm { animation: none !important; }
  .win-cue-banner, .win-cue-banner::before, .win-cue-banner::after { animation: none !important; }
  .win-cue-banner::before, .win-cue-banner::after, .win-particles { display: none; }
  .core-reveal, .passives .passive-icon-item.is-activating .passive-info-button,
  :where(.reel-well)[data-core-effect] .tile.core-effect-target::after,
  .award-draw[data-core-effect="ribbon"]::before { animation: none !important; }
  .award-draw[data-core-effect="ribbon"]::before { display: none; }
  .is-torch-active .tile.torch-reroll::before { animation: none !important; }
  .prize-pop, .prize-pop.is-leaving, .prize-pop-card, .prize-pop-art, .prize-pop-ray { animation: none !important; }
  .prize-pop-burst, .prize-pop-ray::before { display: none; }
  .score-roll-track { animation: none !important; }
}

#machineCabinet .utility { position: relative; padding-bottom: 12px; }
#machineCabinet .utility .nudge-controls {
  padding-inline: calc(var(--reel-inset) + 1px);
  column-gap: var(--reel-column-gap);
}
#machineCabinet .utility .nudge-button:disabled {
  opacity: .78;
  filter: saturate(.64);
}
#machineCabinet .round-feedback {
  --award-row-height: 93px;
  --receipt-art-size: 77px;
  --receipt-inset: 6px;
  --receipt-gap: 12px;
  --receipt-name-size: clamp(19px, 5vw, 26px);
}
#machineCabinet .round-feedback .win-feedback {
  position: relative;
  isolation: isolate;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  justify-self: center;
  align-self: stretch;
  width: min(calc(100% - 24px), clamp(232px, 66vw, 292px));
  min-height: 0;
  padding: 0;
}
#machineCabinet .round-feedback .win-cue-dock {
  position: absolute;
  z-index: 2;
  inset-inline-start: calc(var(--receipt-inset) + var(--receipt-art-size) + var(--receipt-gap));
  inset-block-start: max(0px, calc((100% - var(--receipt-art-size)) / 2 + 7px));
  inset-inline-end: 0;
  padding: 0;
  justify-items: start;
  overflow: visible;
  container-type: normal;
}
#machineCabinet .round-feedback #winCue .win-cue-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  width: max-content;
  max-width: 100%;
  border: 0;
  border-image: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-highlight, #eed8a1);
  animation: none;
}
#machineCabinet .round-feedback #winCue .win-cue-banner::before,
#machineCabinet .round-feedback #winCue .win-cue-banner::after { content: none; }
#machineCabinet .round-feedback #winCue .win-cue-word {
  font-size: clamp(.72rem, 3.1vw, .91rem);
  letter-spacing: .035em;
  text-shadow: none;
}
#machineCabinet .round-feedback #winCue .win-cue-count {
  padding: 0 0 0 6px;
  border: 0;
  border-inline-start: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  color: var(--play-muted, #e5ddcb);
  font-size: .76rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
#machineCabinet #prizePop {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}
#machineCabinet #prizePop .score-pop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--receipt-gap);
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 var(--receipt-inset);
  appearance: none;
  opacity: 1;
  border: 0;
  border-image: none;
  background: none;
  box-shadow: none;
  color: var(--play-ink, var(--ink));
  text-align: start;
  animation: none;
}
#machineCabinet #prizePop .score-pop-card.has-character {
  grid-template-columns: var(--receipt-art-size) minmax(0, 1fr);
}
#machineCabinet #prizePop .score-pop-card::after { content: none; }
#machineCabinet #prizePop button.score-pop-card { pointer-events: auto; -webkit-tap-highlight-color: transparent; }
#machineCabinet #prizePop button.score-pop-card:disabled { cursor: default; pointer-events: none; }
#machineCabinet #prizePop button.score-pop-card:focus-visible { outline: 1px solid var(--play-brass, #efd399); outline-offset: -2px; }
#machineCabinet #prizePop .score-pop-character {
  width: var(--receipt-art-size);
  height: var(--receipt-art-size);
  max-height: 100%;
  padding-bottom: 0;
}
#machineCabinet #prizePop .score-pop-character::after { content: none; }
#machineCabinet #prizePop .score-pop-character img { animation: none; opacity: 1; }
#machineCabinet #prizePop .receipt-copy {
  align-self: start;
  min-width: 0;
  margin-top: calc((var(--award-row-height) - var(--receipt-art-size)) / 2 + 22px);
}
#machineCabinet #prizePop .prize-character-name {
  display: block;
  color: var(--ink-text, #fff2d1);
  -webkit-text-fill-color: currentColor;
  font-size: var(--receipt-name-size);
  font-weight: 780;
  line-height: 1.12;
  text-align: start;
  overflow-wrap: anywhere;
}
#machineCabinet #prizePop .prize-batch-link {
  display: block;
  margin-top: 3px;
  color: var(--play-muted, #dfd4b6);
  font-size: .72rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prize-details { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.prize-detail-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 5px;
  border-bottom: 1px solid #bfa97a55;
}
.prize-detail-item[data-selected] { outline: 1px solid #dcb77481; outline-offset: -1px; border-radius: 6px; }
.prize-detail-item strong { display: block; color: #fff0cf; overflow-wrap: anywhere; }
.prize-detail-item :is(p,small) { margin: 2px 0 0; color: #e1d9c1; font-size: .85rem; line-height: 1.38; }
.prize-detail-art { display: grid; place-items: center; width: 46px; height: 46px; }
.prize-detail-art img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 620px), (max-width: 960px) and (pointer: coarse) {
  #machineCabinet .round-feedback {
    --award-row-height: 116px;
    --receipt-art-size: 74px;
  }
}
@media (max-width: 620px) and (max-height: 650px), (max-width: 960px) and (max-height: 650px) and (pointer: coarse) {
  #machineCabinet .round-feedback {
    --award-row-height: 70px;
    --receipt-art-size: 62px;
    --receipt-gap: 9px;
  }
}
#coreDialog .draft-skip-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
#skipCoreDraft { grid-column: 1; }
#confirmSkipCore { grid-column: 2; }

@media (prefers-reduced-motion: no-preference) {
  #reelFrame[data-core-step="leaving"] .core-effect-target .symbol {
    animation: core-symbol-leave 120ms ease-in both;
  }
  #reelFrame[data-core-step="entering"] .core-effect-target .symbol {
    animation: core-symbol-enter 120ms ease-out both;
  }
}
@keyframes core-symbol-leave {
  to { opacity: .12; transform: translateY(-5px) scale(.92); }
}
@keyframes core-symbol-enter {
  from { opacity: .12; transform: translateY(5px) scale(.92); }
}

.core-dialog[data-replacing] .core-replacements {
  max-height: none;
  overflow: visible;
}
.core-dialog[data-replacing] .draft-skip-actions > :is(#skipCoreDraft, #confirmSkipCore) {
  display: none;
}
.core-dialog[data-replacing] .core-replacement-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

@media (max-width: 620px), (max-width: 960px) and (pointer: coarse) {
  #machinePage:not([hidden]) ~ :is(#coreDialog, #collectionCabinet) {
    --game-dialog-top: max(12px, env(safe-area-inset-top, 0px));
    --game-dialog-bottom: calc(max(var(--dock-bottom, 8px), env(safe-area-inset-bottom, 0px)) + 8px);
    inset-block: var(--game-dialog-top) var(--game-dialog-bottom);
    max-block-size: calc(100dvh - var(--game-dialog-top) - var(--game-dialog-bottom));
  }
}
