:root {
  --ink: #0a0b0a;
  --ink-2: #111513;
  --ink-3: #18201b;
  --ivory: #f3efe6;
  --ivory-dim: rgba(243, 239, 230, 0.64);
  --ivory-faint: rgba(243, 239, 230, 0.3);
  --green: #24935d;
  --green-hi: #5fd394;
  --green-deep: #0e3825;
  --red: #d2302e;
  --red-hi: #f0554f;
  --red-deep: #6e1214;
  --line: rgba(95, 211, 148, 0.28);
  --win: var(--green-hi);
  --lose: var(--red-hi);
  --serif: Fraunces, "Cooper", Georgia, serif;
  --sans: Nunito, "Avenir Next Rounded", "SF Pro Rounded", system-ui, sans-serif;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--ivory); }
body { font-family: var(--sans); font-size: 15px; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* film grain + vignette, so it reads like a photograph rather than a render */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(8, 10, 9, 0.55) 100%); }

kbd {
  font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  display: inline-block; min-width: 1.9em; padding: 2px 5px; margin-left: 6px; text-align: center;
  border: 1px solid currentColor; border-radius: 5px; opacity: 0.6; vertical-align: 1px;
}

/* ------------------------------------------------------------ buttons */
.btn-line, .btn-solid, .btn-text, .btn-icon {
  cursor: pointer; background: none; border: 1.5px solid transparent; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s, transform .15s var(--ease);
}
.btn-line { padding: 9px 18px; border-color: rgba(243, 239, 230, 0.22); color: var(--ivory); background: rgba(8, 10, 9, 0.35); }
.btn-line:hover:not(:disabled) { border-color: var(--green-hi); color: var(--green-hi); }
.btn-solid { padding: 10px 20px; background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 6px 18px -8px rgba(210, 48, 46, 0.8); }
.btn-solid:hover:not(:disabled) { background: var(--red-hi); border-color: var(--red-hi); }
.btn-solid:active:not(:disabled), .btn-line:active:not(:disabled) { transform: translateY(1px); }
.btn-text { padding: 6px 0; color: var(--ivory-dim); }
.btn-text:hover:not(:disabled) { color: var(--green-hi); }
.btn-icon { width: 38px; height: 38px; display: grid; place-items: center; border-color: rgba(243, 239, 230, 0.22); color: var(--ivory-dim); }
.btn-icon:hover { color: var(--green-hi); border-color: var(--green-hi); }
button:disabled { opacity: 0.32; cursor: default; }
.small { padding: 7px 13px; font-size: 12.5px; }
.wide { width: 100%; }
.big { padding: 13px 24px; font-size: 15px; }
button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 10, 9, 0.72), rgba(8, 10, 9, 0));
  animation: drop .9s var(--ease) both .2s;
}
.topbar > * { pointer-events: auto; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 25px; font-weight: 600; letter-spacing: -0.01em; color: var(--ivory); }
.brand-name .dot { color: var(--red); font-style: normal; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.purse { display: flex; flex-direction: column; align-items: flex-end; padding: 0 18px 0 8px; margin-right: 6px; border-right: 1px solid var(--line); line-height: 1; }
.purse-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: 5px; }
.purse-value { font-family: var(--serif); font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; transition: color .6s; }
.purse-value.up { animation: up 1s var(--ease); }
.purse-value.down { animation: down 1s var(--ease); }
@keyframes up { 0%, 40% { color: var(--green-hi); } }
@keyframes down { 0%, 30% { color: var(--lose); } }
.account { display: flex; align-items: center; gap: 9px; }
.account .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: none; }
.account.guest .dot { display: block; animation: pulse 2.4s ease-in-out infinite; }
.account:not(.guest) .txt { text-transform: none; letter-spacing: 0.04em; font-size: 13px; }
@keyframes pulse { 50% { opacity: 0.25; } }
.cashier { color: var(--green-hi); border-bottom: 1px solid var(--line); padding: 4px 0; margin-right: 12px; }
#btn-sound .cross { display: none; }
#btn-sound.muted .wave { display: none; }
#btn-sound.muted .cross { display: block; }

/* ------------------------------------------------------------ floor prompts */
.prompt {
  position: fixed; left: 50%; bottom: 118px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; cursor: pointer;
  background: rgba(8, 10, 9, 0.86); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ivory);
  animation: rise .35s var(--ease);
}
.prompt kbd { margin: 0; font-style: normal; font-size: 11px; color: var(--green-hi); opacity: 1; border-color: var(--green); padding: 3px 7px; }
.prompt:hover { border-color: var(--green); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.help {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-dim);
  transition: opacity 1.2s;
}
.help kbd { margin: 0 2px 0 0; }
.help .sep { width: 1px; height: 12px; background: var(--line); }
.help.fade { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------ table panels */
.table-panel {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 8;
  width: min(880px, calc(100vw - 32px));
  background: rgba(8, 10, 9, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  padding: 16px 22px 18px;
  animation: panelIn .5s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.tp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(95, 211, 148, 0.22); }
.tp-head h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1; }
.tp-head p { margin: 6px 0 0; font-size: 11.5px; letter-spacing: 0.08em; color: var(--ivory-dim); }
.tp-row { display: flex; align-items: center; gap: 22px; }
.tp-row.play { justify-content: center; }
.tp-bet { display: flex; flex-direction: column; min-width: 92px; padding-left: 18px; border-left: 1px solid rgba(95, 211, 148, 0.22); }
.tp-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.tp-amount { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.tp-actions { display: flex; gap: 8px; margin-left: auto; }
.tp-actions.wide { margin: 0 auto; gap: 12px; }

.chip-rack { display: flex; gap: 8px; }
.chip-rack.disabled { opacity: 0.4; pointer-events: none; }
.chip {
  --base: #333; --accent: #eee;
  width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative;
  background:
    radial-gradient(circle, #ece4d0 0 13px, var(--base) 13.5px 15px, transparent 15.5px),
    repeating-conic-gradient(var(--accent) 0 14deg, var(--base) 14deg 60deg);
  box-shadow: inset 0 0 0 3px var(--base), 0 2px 0 rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.4);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.chip span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--base); }
.chip:hover { transform: translateY(-3px); }
.chip:active { transform: translateY(0); }
.selectable .chip.on { transform: translateY(-5px); box-shadow: inset 0 0 0 3px var(--base), 0 0 0 2px var(--ink), 0 0 0 3px var(--green-hi), 0 8px 14px rgba(0,0,0,.5); }

.rl-history-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(95, 211, 148, 0.14); }
.rl-history { display: flex; gap: 5px; flex-wrap: wrap; }
.rl-num { min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; border: 1px solid transparent; border-radius: 50%; }
.rl-num.red { background: #8f201c; }
.rl-num.black { background: #141316; border-color: rgba(237,228,208,.18); }
.rl-num.green { background: #1f6a4b; }
.rl-num:first-child { outline: 1px solid var(--green-hi); outline-offset: 2px; }
.rl-empty { font-size: 12px; color: var(--ivory-faint); font-style: italic; font-family: var(--serif); }

/* ------------------------------------------------------------ floating tags over the felt */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 4px 10px; font-family: var(--serif); font-size: 17px; font-weight: 500; font-variant-numeric: lining-nums;
  background: rgba(8, 10, 9, 0.82); border: 1px solid var(--line); border-radius: 999px; color: var(--ivory);
  opacity: 0; transition: opacity .3s, color .3s, border-color .3s;
}
.tag.in { opacity: 1; }
.tag.dealer { color: var(--ivory-dim); }
.tag.win { color: var(--win); border-color: var(--green); }
.tag.lose { color: var(--lose); border-color: rgba(184, 87, 77, .5); }
.tag.active { outline: 1px solid var(--green-hi); outline-offset: 3px; }

/* ------------------------------------------------------------ result banner */
.banner {
  position: fixed; left: 50%; top: 22%; transform: translate(-50%, 0); z-index: 9; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 300px; text-align: center;
  opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.banner.show { opacity: 1; transform: translate(-50%, -8px); }
.b-rule { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--green), transparent); }
.b-title { font-family: var(--serif); font-style: italic; font-size: 54px; font-weight: 500; line-height: 1.05; text-shadow: 0 2px 30px rgba(0,0,0,.8); }
.b-sub { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ivory-dim); text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.banner.win .b-title { color: var(--green-hi); }
.banner.lose .b-title { color: var(--ivory); }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  padding: 10px 18px; background: rgba(237, 228, 208, 0.96); color: var(--ink);
  font-size: 13.5px; letter-spacing: 0.02em; max-width: min(520px, 90vw); text-align: center;
  border-radius: 999px; font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 9, 0); transition: background .25s; }
.modal.open { background: rgba(8, 10, 9, 0.62); }
.modal-card {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 34px 28px; opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; border-color: transparent; }
.m-eyebrow { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.modal-card h3 { margin: 8px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.05; }
.m-lede { margin: 0 0 22px; color: var(--ivory-dim); line-height: 1.55; font-size: 14.5px; }
.m-lede b { color: var(--ivory); font-weight: 500; }
.m-form { display: flex; flex-direction: column; gap: 14px; }
.m-form label { display: flex; flex-direction: column; gap: 6px; }
.m-form label span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ivory-dim); }
.m-form input {
  font: inherit; font-size: 16px; color: var(--ivory); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 9px; outline: none; border-radius: 0;
}
.m-form input:focus { border-bottom-color: var(--green-hi); }
.m-error { min-height: 18px; margin: 0; color: var(--lose); font-size: 13px; }
.m-switch { margin: 18px 0 0; font-size: 13px; color: var(--ivory-dim); text-align: center; }
.m-switch .btn-text { margin-left: 6px; color: var(--green-hi); }
.m-fine { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(95, 211, 148, .16); font-size: 11.5px; color: var(--ivory-faint); text-align: center; }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0 18px; background: rgba(95, 211, 148, .18); border: 1px solid rgba(95, 211, 148, .18); }
.m-stats div { background: var(--ink-2); padding: 12px 14px; }
.m-stats dt { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ivory-dim); }
.m-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------ tailor */
.wardrobe {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 12; width: min(430px, 100vw);
  display: flex; flex-direction: column;
  background: rgba(8, 10, 9, 0.94); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .55s var(--ease);
}
.wardrobe.open { transform: none; }
.wd-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 84px 26px 18px; }
.wd-head h2 { margin: 6px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 38px; line-height: 1; }
.wd-head p { margin: 0; font-size: 13px; color: var(--ivory-dim); }
.wd-tabs { display: flex; gap: 22px; padding: 0 26px; border-bottom: 1px solid rgba(95, 211, 148, .22); }
.wd-tab { background: none; border: 0; cursor: pointer; padding: 12px 0 11px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ivory-dim); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.wd-tab:hover { color: var(--ivory); }
.wd-tab.on { color: var(--green-hi); border-bottom-color: var(--green-hi); }
.wd-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.wd-item { display: flex; align-items: center; gap: 16px; padding: 13px 26px; cursor: pointer; border-left: 2px solid transparent; transition: background .2s; }
.wd-item:hover { background: rgba(237, 228, 208, 0.04); }
.wd-item.trying { background: rgba(95, 211, 148, 0.09); border-left-color: var(--green-hi); }
.wd-text { flex: 1; min-width: 0; }
.wd-name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.wd-note { font-size: 12.5px; color: var(--ivory-dim); margin-top: 3px; }
.wd-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wd-state { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.wd-short { font-size: 10.5px; color: var(--ivory-faint); }
.wd-foot { padding: 14px 26px 20px; font-size: 12px; color: var(--ivory-faint); border-top: 1px solid rgba(95, 211, 148, .16); }

.sw { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(95, 211, 148, .3); background: #1a1612; border-radius: 12px; overflow: hidden; }
.sw-suit { background: linear-gradient(to bottom, var(--c) 0 64%, var(--t) 64%); position: relative; overflow: hidden; }
.sw-suit i { position: absolute; left: 50%; top: 0; width: 12px; height: 20px; transform: translateX(-50%); background: #eee6d4; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sw-suit.pat-pinstripe { background: repeating-linear-gradient(to right, transparent 0 5px, rgba(225,222,215,.4) 5px 6px) 0 0 / 100% 64% no-repeat, linear-gradient(to bottom, var(--c) 0 64%, var(--t) 64%); }
.sw-suit.pat-tweed { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 4px) 0 0 / 100% 64% no-repeat, linear-gradient(to bottom, var(--c) 0 64%, var(--t) 64%); }
.sw-suit.pat-sequin { background: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.6px) 0 0 / 5px 5px, linear-gradient(to bottom, var(--c) 0 64%, var(--t) 64%); }
.sw-suit.pat-velvet { background: radial-gradient(ellipse at 30% 20%, rgba(255,140,120,.35), transparent 60%) 0 0 / 100% 64% no-repeat, linear-gradient(to bottom, var(--c) 0 64%, var(--t) 64%); }
.sw-tone { background: radial-gradient(circle at 50% 58%, var(--c) 0 13px, transparent 13.5px), radial-gradient(circle at 50% 46%, var(--h) 0 14px, transparent 14.5px), #1a1612; }
.sw-icon { color: var(--ivory-faint); }
.sw-icon svg { width: 38px; height: 38px; }
.sw-icon.metal svg { filter: drop-shadow(0 0 4px rgba(226, 192, 132, .5)); }

/* ------------------------------------------------------------ intro */
.intro {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(8, 10, 9, 0.55), rgba(8, 10, 9, 0.92) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(0.9); backdrop-filter: blur(3px) saturate(0.9);
  transition: opacity .9s var(--ease);
}
.intro.gone { opacity: 0; pointer-events: none; }
.intro-card { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 1.1s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
body.ready .intro-card { opacity: 1; transform: none; }
.intro-mark { width: 104px; height: 104px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.intro-mark .spin { transform-origin: 50px 50px; animation: chipspin 26s linear infinite; }
@keyframes chipspin { to { transform: rotate(360deg); } }
.intro h1 {
  margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(68px, 10vw, 128px); line-height: 0.9; letter-spacing: -0.02em;
}
.intro h1 .dot { color: var(--red); font-style: normal; }
.intro-tag { margin: 14px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--ivory-dim); }
.intro-tag em { color: var(--green-hi); font-weight: 500; }
.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.intro-actions .btn-solid, .intro-actions .btn-line { padding: 15px 30px; font-size: 15.5px; }
.intro-stripe { display: flex; gap: 6px; margin-top: 40px; }
.intro-stripe i { width: 22px; height: 4px; border-radius: 2px; background: var(--red); }
.intro-stripe i:nth-child(even) { background: var(--green); }
.intro-fine { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 12.5px; color: var(--ivory-faint); }
.intro-loading { margin-top: 18px; font-size: 13px; color: var(--ivory-faint); }
body.ready .intro-loading { display: none; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .brand-name { font-size: 21px; }
  .topbar-right { gap: 6px; }
  .purse { padding: 0 10px 0 0; margin-right: 0; }
  .purse-value { font-size: 20px; }
  #btn-account .txt { display: none; }
  #btn-account { padding: 10px 12px; }
  #btn-account .dot { display: block; }
  .btn-line { padding: 9px 11px; }
  .cashier { position: fixed; top: 64px; right: 16px; }
  .help { display: none; }
  .table-panel { bottom: 10px; padding: 12px 14px 14px; }
  .tp-head p { display: none; }
  .tp-row { flex-wrap: wrap; gap: 12px; }
  .chip-rack { width: 100%; justify-content: space-between; }
  .chip { width: 40px; height: 40px; }
  .tp-actions { flex-wrap: wrap; }
  .tp-actions kbd, .tp-head kbd { display: none; }
  .wardrobe { top: auto; height: 58vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line); transform: translateY(102%); }
  .wd-head { padding: 18px 16px 10px; }
  .wd-head h2 { font-size: 28px; }
  .wd-tabs, .wd-item, .wd-foot { padding-left: 16px; padding-right: 16px; }
  .wd-tabs { gap: 16px; overflow-x: auto; }
  .intro h1 { font-size: 64px; }
  .intro-tag { font-size: 17px; }
  .b-title { font-size: 40px; }
  .prompt { bottom: 40px; }
}

/* ------------------------------------------------------------ market extras */
.wd-tabs { overflow-x: auto; scrollbar-width: none; gap: 18px; }
.wd-tabs::-webkit-scrollbar { display: none; }
.wd-tab { white-space: nowrap; flex: none; }
.wd-filter { display: flex; align-items: center; gap: 6px; padding: 12px 26px 6px; }
.wd-chip { cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(243, 239, 230, 0.16); background: none; color: var(--ivory-dim); }
.wd-chip:hover { color: var(--ivory); }
.wd-chip.on { background: var(--green-deep); border-color: var(--green); color: var(--green-hi); }
.wd-count { margin-left: auto; font-size: 11.5px; color: var(--ivory-faint); }
.wd-empty { padding: 30px 26px; color: var(--ivory-faint); font-style: italic; font-family: var(--serif); }
.rar { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; vertical-align: 3px; font-family: var(--sans); font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid currentColor; opacity: 0.85; }
.rar-house { display: none; }
.rar-fine { color: var(--ivory-faint); }
.rar-rare { color: var(--green-hi); }
.rar-legend { color: #e2b955; }
.rar-wheel { color: #fff; background: var(--red); border-color: var(--red); opacity: 1; }
@media (max-width: 760px) { .wd-filter { padding: 10px 16px 4px; } }

/* ------------------------------------------------------------ lucky wheel */
.wheel-btn { display: flex; align-items: center; gap: 8px; }
.wheel-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: none; }
.wheel-btn.ready { border-color: rgba(210, 48, 46, 0.6); }
.wheel-btn.ready .dot { display: block; animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 8px var(--red); }
.wheel-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(6, 7, 6, 0); transition: background .25s; }
.wheel-modal.open { background: rgba(6, 7, 6, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.wheel-card {
  position: relative; display: grid; grid-template-columns: auto 300px; align-items: center; gap: 36px;
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
  padding: 34px 38px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 80px -30px #000;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wheel-modal.open .wheel-card { opacity: 1; transform: none; }
.wheel-stage { position: relative; width: min(440px, 70vh, calc(100vw - 80px)); aspect-ratio: 1; }
#wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); will-change: transform; }
.wheel-pointer {
  position: absolute; left: 50%; top: 0.5%; width: 34px; height: 44px; margin-left: -17px; transform-origin: 50% 20%;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6));
}
.wheel-pointer::after { content: ""; position: absolute; left: 50%; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #f3efe6; }
.wheel-pointer.flick { animation: flick .12s ease-out; }
@keyframes flick { 40% { transform: rotate(-14deg); } }
.wheel-result {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85); min-width: 62%; padding: 16px 22px;
  text-align: center; border-radius: 18px; background: rgba(10, 11, 10, .92); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.wheel-result.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wheel-result.big { border-color: #e2b955; box-shadow: 0 0 60px -10px rgba(226, 185, 85, .6); }
.wr-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 40px; line-height: 1.05; color: var(--green-hi); }
.wheel-result.big .wr-title { color: #f0cf78; }
.wr-sub { margin-top: 6px; font-size: 13px; color: var(--ivory-dim); }
.wheel-side h3 { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 36px; line-height: 1; }
.wheel-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 18px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.wheel-credits div { background: var(--ink-2); padding: 11px 14px; }
.wheel-credits dt { font-size: 11px; font-weight: 700; color: var(--ivory-dim); }
.wheel-credits dd { margin: 3px 0 0; white-space: nowrap; font-family: var(--serif); font-size: 22px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
#wheel-spin small { font-size: 11px; font-weight: 600; opacity: .75; margin-left: 6px; }
.wheel-buy { margin-top: 10px; }
.wheel-buy em { font-style: normal; font-size: 10.5px; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: var(--green-deep); color: var(--green-hi); }
.wheel-odds { margin-top: 18px; font-size: 13px; color: var(--ivory-dim); }
.wheel-odds summary { cursor: pointer; font-weight: 700; color: var(--ivory); }
.wheel-odds table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.wheel-odds td { padding: 5px 0; border-bottom: 1px solid rgba(243, 239, 230, .07); }
.wheel-odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ivory); }
.wheel-odds p { margin: 10px 0 0; font-size: 11.5px; color: var(--ivory-faint); }
@media (max-width: 760px) {
  .wheel-card { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; justify-items: center; }
  .wheel-stage { width: min(78vw, 46vh); }
  .wheel-side { width: 100%; }
  .wheel-side h3 { font-size: 28px; }
  .wheel-btn { padding: 9px 11px; }
}

/* ------------------------------------------------------------ slot machines */
.slot {
  --s-bg: #111; --s-bg2: #222; --s-frame: #c9a35a; --s-accent: #d2302e; --s-ink: #f3efe6; --s-glow: #ffd27a;
  position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 66px 18px 14px; overflow-y: auto;
  --s-metal: linear-gradient(160deg, #fff3c4, #c98f2c 22%, #6a430c 48%, #e8b955 70%, #7a4e0c);
  background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0), rgba(0,0,0,.45)), var(--s-room, none) center / cover no-repeat, #050505;
  opacity: 0; transition: opacity .35s var(--ease);
}
.slot.open { opacity: 1; }
.slot-cab {
  position: relative; width: min(1040px, 100%, calc((100vh - 420px) * 1.25 + 64px));
  display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 16px;
  border-radius: 30px; color: var(--s-ink); isolation: isolate;
  background:
    radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--s-glow) 26%, transparent), transparent 60%),
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--s-accent) 18%, transparent), transparent 55%),
    linear-gradient(180deg, var(--s-bg2), var(--s-bg) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(0,0,0,.6), 0 50px 120px -30px rgba(0,0,0,.95), 0 0 140px -40px var(--s-glow);
  transform: translateY(14px) scale(.985); transition: transform .45s var(--ease), box-shadow .6s;
}
/* the cast-metal rim round the whole cabinet */
.slot-cab::before {
  content: ''; position: absolute; inset: -7px; z-index: -1; border-radius: 36px; padding: 7px;
  background: var(--s-metal);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6);
}
.slot.open .slot-cab { transform: none; }
.slot.free .slot-cab { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 50px 120px -30px rgba(0,0,0,.95), 0 0 160px -10px var(--s-glow); }
.slot.free .slot-cab::before { animation: rimglow 1.6s ease-in-out infinite alternate; }
@keyframes rimglow { from { filter: brightness(1); } to { filter: brightness(1.45) drop-shadow(0 0 10px var(--s-glow)); } }
.slot[data-game="glasshouse"] { --s-metal: linear-gradient(160deg, #f6dfa6, #a9813a 25%, #3d2a0c 50%, #c9a35a 72%, #4a3410); }
.slot[data-game="express"] { --s-metal: linear-gradient(160deg, #ffffff, #b8bec8 22%, #3a3f48 48%, #e6e9ee 70%, #5a606b); }

.slot-head > * { min-width: 0; }
.slot-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--s-frame) 28%, transparent); }
.slot-club { justify-self: end; white-space: nowrap; }
.slot-bonus { justify-self: end; }
.slot-bonus { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 99px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.3)); border: 1px solid color-mix(in srgb, var(--s-glow) 45%, transparent); box-shadow: 0 0 26px -8px var(--s-glow), inset 0 1px 0 rgba(255,255,255,.08); }
.slot-bonus img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px var(--s-glow)); animation: bonusbob 2.4s ease-in-out infinite; }
.slot-bonus span { padding: 3px 8px; border-radius: 6px; background: var(--s-accent); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.slot[data-game="glasshouse"] .slot-bonus span { color: #06140d; }
.slot-bonus b { font-size: 13px; font-weight: 800; white-space: nowrap; }
@keyframes bonusbob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.slot-name { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 34px); line-height: 1; letter-spacing: -0.01em; }
.slot-tagline { margin-top: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--s-ink) 60%, transparent); }
.slot[data-game="lanterns"] .slot-name { font-style: italic; font-weight: 700; background: linear-gradient(180deg, #fff3c4, #f3cf72 45%, #b47a1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a0505); }
.slot[data-game="glasshouse"] .slot-name { font-weight: 500; font-style: italic; color: #eef7e8; text-shadow: 0 0 22px rgba(159, 240, 184, .35); }
.slot[data-game="express"] .slot-name { font-family: var(--sans); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(18px, 1.9vw, 26px); background: linear-gradient(180deg, #fff, #c9ced6 50%, #6c7380); -webkit-background-clip: text; background-clip: text; color: transparent; }

.slot-club { text-align: right; padding: 8px 16px; border-radius: 16px; background: rgba(0,0,0,.45); border: 1px solid color-mix(in srgb, var(--s-frame) 45%, transparent); }
.slot-club span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); }
.slot-club b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 26px; color: #ffe08a; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 200, 90, .45); }

.slot-jps { display: flex; gap: 8px; min-height: 40px; }
.slot-jps .jp { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.slot-jps .jp span { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.slot-jps .jp b { font-family: var(--serif); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
.jp-mini span, .jp-mini b { color: #5fd394; }
.jp-minor span, .jp-minor b { color: #7fd0e8; }
.jp-major span, .jp-major b { color: #ff6b5e; }
.jp-grand { background: linear-gradient(180deg, rgba(243, 207, 114, .2), rgba(0,0,0,.4)) !important; border-color: rgba(243, 207, 114, .5) !important; }
.jp-grand span, .jp-grand b { color: #ffe08a; }
.ladder { flex: 1; display: flex; gap: 6px; }
.ladder span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; font-weight: 900; font-size: 15px; background: rgba(0,0,0,.4); color: rgba(238, 247, 232, .4); border: 1px solid rgba(255,255,255,.06); transition: all .25s var(--ease); }
.ladder span.past { color: rgba(159, 240, 184, .6); }
.ladder span.on { color: #06140d; background: linear-gradient(180deg, #c9f7d6, #5fd394); border-color: #9ff0b8; box-shadow: 0 0 24px -4px #5fd394; transform: translateY(-2px); }
.rails { flex: 1; display: flex; align-items: center; gap: 8px; }
.rails span { padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.4); font-weight: 800; font-size: 13px; color: rgba(241,241,238,.45); border: 1px solid rgba(255,255,255,.08); }
.rails span.on { color: #fff; background: rgba(210, 48, 46, .85); border-color: #ff6b5e; }
.rails.plain span { color: rgba(241,241,238,.75); }
.rails.plain b { color: #ffd27a; }
.rails em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }

/* the reels sit behind a metal bezel, bolted at the corners */
.slot-screen { position: relative; padding: 10px; border-radius: 22px; background: var(--s-metal); box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 18px 40px -16px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.4); }
#slot-canvas { display: block; width: 100%; aspect-ratio: 5 / 4; cursor: pointer; border-radius: 13px; background: #000; box-shadow: 0 0 0 2px rgba(0,0,0,.75); }
.slot-screen::after { content: ''; position: absolute; inset: 10px; border-radius: 13px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 10px 30px rgba(0,0,0,.6), inset 0 -10px 30px rgba(0,0,0,.6); }
.bolt { position: absolute; width: 7px; height: 7px; border-radius: 50%; z-index: 1; background: radial-gradient(circle at 35% 30%, #fff, #9a9a9a 45%, #333); box-shadow: 0 1px 1px rgba(0,0,0,.6); }
.bolt.tl { top: 2px; left: 12px; } .bolt.tr { top: 2px; right: 12px; } .bolt.bl { bottom: 2px; left: 12px; } .bolt.br { bottom: 2px; right: 12px; }

.slot-status { min-height: 22px; text-align: center; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--s-ink) 78%, transparent); }
.slot-status b { color: var(--s-glow); }
.slot-status .mult { display: inline-block; padding: 1px 8px; margin-left: 4px; border-radius: 99px; background: var(--s-accent); color: #06140d; font-weight: 900; }
.pips { display: inline-flex; gap: 5px; vertical-align: -1px; margin: 0 2px; }
.pips i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--s-glow); }
.pips i.on { background: var(--s-glow); box-shadow: 0 0 10px var(--s-glow); }

.slot-deck { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.28)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(0,0,0,.5); }
.slot-deck .btn-line { border-color: color-mix(in srgb, var(--s-frame) 40%, transparent); }
.deck-left, .deck-right { display: flex; align-items: center; gap: 10px; }
.deck-right { justify-content: flex-end; }
.slot-small { padding: 7px 13px; font-size: 12.5px; }
.slot-small.on { border-color: var(--s-glow); color: var(--s-glow); }
.slot-stake { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.stake-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: var(--s-ink); font-size: 20px; font-weight: 700; }
.stake-btn:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.stake-btn:disabled { opacity: .3; cursor: default; }
.stake-read { min-width: 116px; text-align: center; line-height: 1.05; }
.stake-read b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stake-read small { font-size: 10.5px; color: color-mix(in srgb, var(--s-ink) 50%, transparent); }
.slot .tp-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--s-ink) 55%, transparent); }
.slot-winbox { min-width: 140px; text-align: center; line-height: 1.05; padding: 6px 14px; border-radius: 14px; background: rgba(0,0,0,.45); box-shadow: inset 0 2px 8px rgba(0,0,0,.6); }
.slot-winbox b { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--s-glow); font-variant-numeric: tabular-nums; display: inline-block; }
.slot-winbox.pop b { animation: winpop .5s var(--ease); }
@keyframes winpop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.slot-spin {
  --spin-a: var(--red-hi); --spin-b: var(--red); --spin-c: var(--red-deep);
  position: relative; width: 84px; height: 84px; margin: -18px 0 -18px 4px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff;
  border: 0; background: radial-gradient(circle at 40% 28%, var(--spin-a), var(--spin-b) 55%, var(--spin-c));
  box-shadow: 0 0 0 4px rgba(0,0,0,.55), 0 0 0 8px color-mix(in srgb, var(--s-frame) 75%, #000), 0 14px 30px -8px rgba(0,0,0,.9), 0 0 36px -6px var(--spin-b), inset 0 -5px 0 rgba(0,0,0,.25), inset 0 3px 0 rgba(255,255,255,.25);
  transition: transform .15s var(--ease), filter .2s;
}
.slot-spin:hover { filter: brightness(1.1); }
.slot:not(.spinning) .slot-spin::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--spin-a); opacity: 0; animation: spinring 2.2s ease-out infinite; }
@keyframes spinring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.slot[data-game="glasshouse"] .slot-spin { --spin-a: #c9f7d6; --spin-b: #2f9e63; --spin-c: #0c4a2a; }
.slot[data-game="express"] .slot-spin { --spin-a: #ff8a7e; --spin-b: #c0221f; --spin-c: #4a0808; }
.slot[data-game="lanterns"] .slot-spin { --spin-a: #ffd08a; --spin-b: #d8361f; --spin-c: #5a0a0a; }
.slot-spin:active { transform: scale(.95); }
.slot.spinning .slot-spin svg { animation: spinicon .7s linear infinite; }
@keyframes spinicon { to { transform: rotate(360deg); } }

.slot-card { position: absolute; inset: 10px; border-radius: 13px; display: grid; place-items: center; z-index: 3; cursor: pointer; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,.82)); opacity: 0; transition: opacity .22s; }
.slot-card.in { opacity: 1; }
.sc-inner { text-align: center; transform: scale(.85); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); padding: 20px; }
.slot-card.in .sc-inner { transform: none; }
.sc-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: 1; background: linear-gradient(180deg, #fffbe6, var(--s-glow) 50%, color-mix(in srgb, var(--s-glow) 50%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(0,0,0,.6)); }
.sc-amount { margin-top: 10px; font-family: var(--sans); font-weight: 900; font-size: clamp(40px, 7.5vw, 84px); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px var(--s-glow), 0 4px 0 rgba(0,0,0,.6); }
.sc-sub { margin-top: 10px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.78); }
.sc-tap { margin-top: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.slot-card.big .sc-title, .slot-card.jackpot .sc-title { font-size: clamp(42px, 8vw, 88px); }
.slot-card.jackpot .sc-title { background: linear-gradient(180deg, #fff, #ffe08a 45%, var(--red)); -webkit-background-clip: text; background-clip: text; }
.slot-card.tag-mini .sc-title { background: linear-gradient(180deg, #e6fff0, #5fd394); -webkit-background-clip: text; background-clip: text; }
.slot-card.tag-minor .sc-title { background: linear-gradient(180deg, #e6f7ff, #7fd0e8); -webkit-background-clip: text; background-clip: text; }
.slot-card.tag-major .sc-title { background: linear-gradient(180deg, #ffe6e2, #ff6b5e); -webkit-background-clip: text; background-clip: text; }

.slot-info { position: absolute; inset: 10px; border-radius: 13px; z-index: 4; overflow-y: auto; padding: 22px 26px 30px; background: color-mix(in srgb, var(--s-bg) 94%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slot-info h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; }
.slot-info h4 { margin: 22px 0 4px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.pt-meta { margin: 6px 0; font-size: 13.5px; color: color-mix(in srgb, var(--s-ink) 72%, transparent); }
.pt-meta b { color: var(--s-glow); }
.pt-specials { display: flex; gap: 14px; margin: 14px 0 4px; }
.pt-specials div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pt-specials img { width: 54px; height: 54px; }
.pt-rules { margin: 10px 0 14px; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: color-mix(in srgb, var(--s-ink) 85%, transparent); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pt-sym { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.3); }
.pt-sym img { width: 58px; height: 58px; flex: none; }
.pt-sym b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.pt-sym span { display: block; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pt-sym em { display: inline-block; width: 18px; font-style: normal; font-weight: 900; color: var(--s-glow); }
.pt-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-top: 8px; }
.pt-lines svg { width: 100%; }
.pt-lines rect { fill: rgba(255,255,255,.08); }
.pt-lines rect.on { fill: var(--s-glow); }
.pt-lines text { font: 800 7px var(--sans); fill: rgba(255,255,255,.5); text-anchor: middle; }

@media (max-width: 760px) {
  .slot { padding: 64px 8px 8px; }
  .slot-cab { padding: 12px; border-radius: 22px; width: 100%; }
  .slot-deck { grid-template-columns: 1fr 1fr; }
  .deck-left { order: 3; }
  .deck-right { order: 4; }
  .slot-club b { font-size: 20px; }
  .slot-jps .jp { flex-direction: column; align-items: center; gap: 0; padding: 6px; }
  .slot-head { grid-template-columns: 1fr auto; }
  .slot-bonus { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .slot-spin { margin: 0; }
}

/* ------------------------------------------------------------ cashier */
.store-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; }
.store-test { color: #e8b955; }
.store-sec { margin: 4px 0 18px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(95, 211, 148, .12); transition: border-color .3s; }
.store-sec.focus { border-color: rgba(210, 48, 46, .55); box-shadow: 0 0 30px -14px var(--red); }
.store-sec h4 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 18px; display: flex; align-items: baseline; justify-content: space-between; }
.store-sec h4 small { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ivory-dim); }
.store-spins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.store-pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px 12px;
  border-radius: 14px; cursor: pointer; color: var(--ivory); font: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1);
  transition: transform .15s var(--ease), border-color .2s, background .2s;
}
.store-pack:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(95, 211, 148, .6); background: linear-gradient(180deg, rgba(95, 211, 148, .14), rgba(255,255,255,.02)); }
.store-pack:disabled { opacity: .4; cursor: default; }
.store-pack.busy { border-color: var(--green-hi); animation: packbusy .8s ease-in-out infinite alternate; }
@keyframes packbusy { to { background: rgba(95, 211, 148, .16); } }
.store-pack b { font-family: var(--serif); font-weight: 600; font-size: 22px; font-variant-numeric: lining-nums tabular-nums; }
.store-pack.spin b { font-size: 28px; color: #ffd27a; }
.store-pack span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-dim); }
.store-pack em { margin-top: 6px; padding: 4px 12px; border-radius: 99px; font-style: normal; font-weight: 800; font-size: 13.5px; background: var(--red); color: #fff; }
.store-pack i { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; background: #e8b955; color: #1a1205; }
.store-adult { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; margin-top: 8px; }
.store-adult input { flex: none; margin-top: 1px; }
.store-adult a, .m-fine a, .intro-fine a { color: var(--green-hi); }
.store-adult input { width: 18px; height: 18px; accent-color: var(--green); }
.store-limit { margin: 8px 0 0; font-size: 12.5px; color: var(--ivory-dim); }
.store-recent { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; color: var(--ivory-dim); }
.store-recent li { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); }
.store-recent time { text-align: right; }
.modal-card:has(.store-sec) { width: min(580px, 100%); }
