html.game-viewport, .game-viewport body {
  overflow: hidden;
  overscroll-behavior: none;
}
.game-viewport body {
  position: fixed;
  inset: 0;
  min-height: 0;
}
.game-viewport body #main {
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  overflow: clip;
}
.game-viewport .poker-screen {
  height: min(100%, 920px);
  min-height: 0;
}
body.arcade-view { background: radial-gradient(ellipse at 50% 10%, #302a39, #0e1016 76%); }
.arcade-view > .topbar { display: none; }
.arcade-screen {
  --arcade-ink: #f6dab0;
  --arcade-accent: #d9a85b;
  --arcade-shadow: #3b2a27;
  --arcade-panel: #25242f;
  --arcade-border: #786541;
  width: min(100%, 506px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: linear-gradient(154deg, #211e29, #181921 65%);
  box-shadow: 0 8px 70px #070810;
}
.arcade-screen[data-game="baccarat"] { --arcade-accent: #7addc0; --arcade-border: #4a806d; }
.arcade-screen[data-game="keno28"] { --arcade-accent: #9cc6ff; --arcade-border: #435f92; }
.arcade-screen[data-game="sevenupdown"] { --arcade-accent: #e8a9fa; --arcade-border: #7f548f; }
.arcade-header {
  grid-row: 1;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: calc(5px + var(--content-safe-top)) 13px 2px 5px;
  background: var(--topbar-bg);
  border-bottom: 1px solid #ffffff20;
}
.arcade-header .table-back { width: 38px; height: 40px; }
.arcade-heading h1 {
  font: 700 clamp(1.45rem, 6vw, 1.88rem)/.95 "Barlow Condensed", sans-serif;
  color: #fbf6f0;
}
.arcade-heading small, .arcade-balance small, .arcade-arena small {
  display: block;
  margin-top: 2px;
  color: #c1bdcd;
  font-size: .72rem;
}
.arcade-head-tools { display: flex; align-items: center; gap: 6px; }
.arcade-sound {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #13121861;
  color: #d0c6d6;
}
.arcade-sound[aria-pressed="true"] { color: var(--arcade-accent); }
.arcade-balance {
  min-width: 87px;
  padding: 4px 10px;
  border: 1px solid #ceae594d;
  background: #15131aca;
  border-radius: 28px;
  text-align: right;
}
.arcade-balance strong { color: var(--arcade-ink); font-size: .97rem; font-variant-numeric: tabular-nums; }
.arcade-tools { grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; padding: 4px 12px 2px; }
.arcade-tools[hidden] { display: none; }
.arcade-tools button {
  min-height: 30px; padding: 0 10px; background: #292831; color: #d7cfde;
  border: 1px solid #64617470; border-radius: 20px; font-size: .73rem; font-weight: 670;
}
.arcade-content, .arcade-gate { grid-row: 3; min-height: 0; overflow: hidden; overflow: clip; }
.arcade-content { display: grid; align-content: start; gap: 8px; padding: 7px 12px 10px; }
.arcade-gate {
  align-self: center;
  display: grid;
  gap: 11px;
  max-width: 360px;
  text-align: center;
  padding: 20px;
  margin-inline: auto;
}
.arcade-gate p { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.arcade-arena {
  border: 1px solid var(--arcade-border);
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 50%, #50452d, #272631 68%);
  box-shadow: inset 0 0 0 3px #ffffff06;
}
.arcade-round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d1c8d9;
  font-size: .76rem;
  font-weight: 650;
}
.arcade-round strong, .keno-clock strong { color: var(--arcade-accent); font-variant-numeric: tabular-nums; }
.arcade-result {
  min-height: 24px;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #f2dfb6;
  font-size: .83rem;
  font-weight: 690;
}
.arcade-hand {
  min-width: 0;
  padding: 10px 7px;
  border-radius: 10px;
  background: #12172366;
  border: 1px solid #ffffff27;
}
.arcade-hand[data-winner="true"] { border-color: #f3cc6e; box-shadow: 0 0 18px #e4bb5945; }
.arcade-hand h2 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; color: #d5e9df; font-size: .87rem;
}
.arcade-hand h2 strong {
  color: #edf4d5; background: #21282dbd; padding: 3px 8px; border-radius: 9px; font-size: .81rem;
}
.arcade-hand > div {
  min-height: clamp(51px, 17vw, 80px); display: flex; align-items: center; justify-content: center; gap: 3px;
}
.arcade-hand .playing-card {
  flex: 0 1 48px; width: min(31%, 53px); border-radius: 5px;
  box-shadow: 0 2px 7px #1119; container-type: inline-size;
}
.arcade-hand .card-corner { inset: 3px auto auto 4px; font-size: clamp(.67rem, 26cqw, .88rem); }
.arcade-hand .card-corner small { font-size: .72em; }
.arcade-hand .card-corner.opposite { inset: auto 4px 3px auto; }
.arcade-hand .card-pip { font-size: clamp(1rem, 58cqw, 1.75rem); }
.arcade-hand .card-back > span { font-size: .9rem; width: 64%; margin: auto; }
.baccarat-arena, .dragon-arena {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px;
  padding: 10px; background: radial-gradient(ellipse,#20644d,#132b29 95%);
}
.baccarat-content {
  display: flex;
  flex-direction: column;
}
.baccarat-content > :not(.baccarat-arena) { flex: none; }
.baccarat-arena {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  max-height: 430px;
  grid-template-rows: minmax(36px, 1fr) auto;
  padding: 42px 12px 12px;
  overflow: hidden;
  border-color: #988354;
  background: radial-gradient(ellipse at 50% 37%, #265d4f, #152e29 83%);
}
.baccarat-dealer {
  grid-column: 1 / -1;
  background: url("assets/casino/baccarat.webp") center / contain no-repeat;
}
.baccarat-arena .arcade-hand { z-index: 1; }
.baccarat-result {
  position: absolute;
  z-index: 5;
  inset: 10px 12px auto;
  min-height: 24px;
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  font-weight: 750;
  line-height: 1.2;
  pointer-events: none;
  text-shadow: 0 1px 4px #061713, 0 1px 2px #061713;
}
.baccarat-result span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.baccarat-arena .card-back {
  background: #19263e url("assets/casino/baccarat-compass.png") center / 100% 100% no-repeat;
}
.baccarat-arena .card-back::before, .baccarat-arena .card-back > span { display: none; }
.baccarat-arena .arcade-hand > div { padding-inline: 4px; }
.baccarat-arena [data-side="player"] h2 { color: #b5d8ff; }
.baccarat-arena [data-side="banker"] h2 { color: #ffc4c5; }
.baccarat-arena[data-renderer="3d"] {
  background: #171c20;
  box-shadow: inset 0 0 10px #071012;
}
.baccarat-arena[data-renderer="3d"] .arcade-hand { background: transparent; }
.baccarat-arena[data-renderer="3d"] .baccarat-dealer { background: none; }
.baccarat-arena[data-renderer="3d"] .playing-card { opacity: 0; }
.baccarat-arena[data-renderer="3d"] .baccarat-dealer > *,
.baccarat-arena[data-renderer="3d"] .baccarat-flight { visibility: hidden; }
.baccarat-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.baccarat-canvas[hidden] { visibility: hidden; }
.baccarat-arena[data-renderer="2d"] {
  border: 1px solid #8b7954;
  background:
    radial-gradient(ellipse at 42% 27%, #3578669c, transparent 59%),
    radial-gradient(ellipse at 50% 42%, #185849, #0a302a 77%, #072520);
  box-shadow: inset 0 0 0 4px #302c2a, inset 0 0 0 5px #9c8357,
    inset 0 0 0 7px #182d29, inset 0 3px 22px 8px #051611b3, 0 4px 9px #100e1738;
}
.baccarat-arena[data-renderer="2d"]::before,
.baccarat-arena[data-renderer="2d"]::after {
  content: ""; position: absolute; pointer-events: none;
}
.baccarat-arena[data-renderer="2d"]::before {
  inset: 7px; border-radius: 8px;
  background: url("assets/casino/baccarat-baize.webp") repeat;
  background-size: 64px; mix-blend-mode: soft-light; opacity: .4;
}
.baccarat-arena[data-renderer="2d"]::after {
  inset: 9px; border: 1px dashed #cdbd815c; border-radius: 7px;
}
.baccarat-arena[data-renderer="2d"] .baccarat-dealer {
  display: grid; grid-template: minmax(0, 1fr) / 1fr 1.7fr 1fr;
  align-items: center; justify-items: center; background: none; min-height: 0;
}
.baccarat-stack {
  height: min(48%, 55px); aspect-ratio: .9;
  background: center / contain no-repeat; filter: drop-shadow(2px 4px 2px #02151080);
}
.baccarat-stack.sapphire { background-image: url("assets/casino/baccarat-sapphire.webp"); }
.baccarat-stack.claret { background-image: url("assets/casino/baccarat-claret.webp"); }
.baccarat-shoe {
  position: relative;
  inset-block-start: -4px;
  height: min(100%, 168px);
  aspect-ratio: 984 / 971;
  max-width: 100%;
}
.baccarat-shoe::before, .baccarat-shoe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/casino/baccarat-shoe.webp") center / 100% 100% no-repeat;
}
.baccarat-shoe::before { z-index: 1; filter: drop-shadow(3px 5px 3px #04191180); }
.baccarat-shoe::after {
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 46% 100%, 46% 82.5%, 5.2% 74.5%, 0 90%);
}
.baccarat-feed, .baccarat-reverse {
  background: #19263e url("assets/casino/baccarat-compass.png") center / 100% 100% no-repeat;
}
.baccarat-feed {
  position: absolute; z-index: 2; width: 36%; aspect-ratio: .72; left: 5%; bottom: 9%;
  clip-path: inset(63% 0 0 round 6%);
  border-radius: 6%; transform: rotate(11deg); box-shadow: 0 1px 2px #060e10b3;
}
.baccarat-arena[data-dealing] .baccarat-feed { visibility: hidden; }
.baccarat-arena[data-renderer="2d"] .arcade-hand {
  background: linear-gradient(155deg,#0a242426,#08251f55);
  border-color: #d8c98a4a; border-radius: 13px;
}
.baccarat-arena[data-renderer="2d"] .arcade-hand[data-winner="true"] {
  border-color: #e5c779; box-shadow: inset 0 0 12px #e8cb7950, 0 0 7px #e8cb792a;
}
.baccarat-arena[data-renderer="2d"] .arcade-hand h2 {
  font-family: Georgia, serif; font-size: .98rem; font-weight: 600;
}
.baccarat-arena[data-renderer="2d"] .playing-card:not(.card-back) {
  background: linear-gradient(135deg,#fffef5 15%,#f3f0e6 72%,#e6dfd1);
}
.baccarat-pips { position: absolute; inset: 0; color: var(--ink); }
.baccarat-pips i {
  position: absolute; transform: translate(-50%,-50%); line-height: 1;
  font: normal clamp(6px,25cqw,15px)/1 Georgia,serif;
}
.baccarat-pips .inverted { transform: translate(-50%,-50%) rotate(180deg); }
.baccarat-court {
  width: 49%; height: 64%; display: grid; align-content: center; justify-items: center;
  border: 1px double #b29765; color: var(--ink); line-height: 1.12;
  font-size: clamp(10px,31cqw,18px);
}
.baccarat-flight {
  position: absolute; z-index: 4; pointer-events: none; transform-origin: 50% 53%;
}
.baccarat-flight .playing-card, .baccarat-reverse {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 5px;
}
.baccarat-flight .playing-card { container-type: inline-size; box-shadow: none; }
.baccarat-curl {
  position: absolute; right: 0; bottom: 0; width: 58%; height: 45%;
  transform-origin: bottom right; clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: inherit;
  background: linear-gradient(135deg, #31424b 41%, #fcf4dc 52%, #ded6bf 68%, #878374 98%);
}
.baccarat-flight .card-corner { font-size: clamp(.67rem,26cqw,.88rem); }
.baccarat-flight .card-pip { font-size: clamp(1rem,58cqw,1.75rem); }
.dragon-arena {
  padding-block: 16px;
  background: linear-gradient(115deg, #30294d, #67382b);
}
.dragon-arena .playing-card { flex-basis: 65px; width: min(50%, 65px); }
.arcade-pad-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.arcade-pad-grid button, .keno-numbers button, .keno-specials button, .roulette-board button,
.roulette-outside button, .keno-rounds button {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  color: #fbf4ef;
  background: linear-gradient(#43404e,#272632);
  font-weight: 730;
}
.arcade-pad-grid button, .keno-specials button {
  display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 45px; padding: 2px;
}
.arcade-pad-grid button small, .keno-specials button small { color: #e0c7ab; font-size: .71rem; }
.arcade-pad-grid button b { color: #ffe29a; font-size: .69rem; white-space: nowrap; }
.arcade-pad-grid button[data-side="player"], .arcade-pad-grid button[data-side="dragon"] {
  background: linear-gradient(#354770,#232f50);
}
.arcade-pad-grid button[data-side="banker"], .arcade-pad-grid button[data-side="tiger"] {
  background: linear-gradient(#763e4e,#492b3d);
}
.arcade-pad-grid button[data-side="tie"], .arcade-pad-grid button[data-side="seven"] {
  background: linear-gradient(#516848,#294436);
}
.arcade-road {
  display: grid; gap: 9px; padding: 11px;
  background: #252631; border: 1px solid #534e5c; border-radius: 12px;
}
.arcade-road h2 { color: #e2d9e7; font-size: .84rem; }
.arcade-road-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 3px; }
.arcade-road-grid span {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  background: #171822; border: 1px solid #484452; border-radius: 50%;
  font-size: .72rem; font-weight: 750;
}
.arcade-road [data-side="player"], .arcade-road [data-side="dragon"] { --outcome: #8eb3f4; }
.arcade-road [data-side="banker"], .arcade-road [data-side="tiger"] { --outcome: #f69a9e; }
.arcade-road [data-side="tie"] { --outcome: #a6d984; }
.arcade-road-grid span[data-side] { color: var(--outcome); border-color: var(--outcome); }
.arcade-road-legend { display: flex; justify-content: space-between; gap: 4px; }
.arcade-road-legend span { display: flex; align-items: center; gap: 4px; color: #d8cddc; font-size: .7rem; }
.arcade-road-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--outcome); }
.arcade-screen .arcade-pad-grid button[aria-pressed="true"] {
  background: linear-gradient(#ae895a, #765436);
  color: #fff;
}
.arcade-screen .arcade-pad-grid button:is([data-side="player"], [data-side="dragon"])[aria-pressed="true"] {
  background: linear-gradient(#618ac4, #3c659d);
}
.arcade-screen .arcade-pad-grid button:is([data-side="banker"], [data-side="tiger"])[aria-pressed="true"] {
  background: linear-gradient(#cf7183, #9c465a);
}
.arcade-screen .arcade-pad-grid button:is([data-side="tie"], [data-side="seven"])[aria-pressed="true"] {
  background: linear-gradient(#84a76c, #527d4c);
}
.arcade-screen .keno-rounds button[aria-pressed="true"],
.arcade-screen .roulette-outside button[aria-pressed="true"] {
  background: linear-gradient(#b5905a, #80603d);
  color: #fff;
}
.arcade-screen .keno-numbers button[aria-pressed="true"] {
  background: linear-gradient(#729edc, #426cab);
  color: #fff;
}
.arcade-screen .keno-specials button[aria-pressed="true"] {
  background: linear-gradient(#b186c3, #7e5895);
  color: #fff;
}
.arcade-screen .arcade-chip-tray button[aria-pressed="true"] {
  filter: brightness(1.55) saturate(1.15);
}
.arcade-dock {
  grid-row: 4;
  display: grid;
  gap: 6px;
  padding: 4px 12px calc(8px + var(--content-safe-bottom));
  border-top: 1px solid #a291b340;
  background: linear-gradient(140deg,#33313c,#23232d);
}
.arcade-dock-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
  font-size: .74rem;
  min-height: 18px;
}
.arcade-dock-meta span { color: #c9bfce; overflow-wrap: anywhere; }
.arcade-dock-meta strong { color: #f8deaa; white-space: nowrap; }
.arcade-chip-tray { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.arcade-chip-tray button {
  display: grid;
  place-items: center;
  min-width: 39px;
  min-height: 34px;
  padding: 2px 6px;
  border: 0;
  border-radius: 40px;
  color: #f5e7d9;
  background: radial-gradient(circle,#525670 55%,#242737 58%);
  font-size: .71rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.arcade-chip-tray button:nth-child(2n) { background: radial-gradient(circle,#874d61 55%,#3b2635 58%); }
.arcade-chip-tray button:nth-child(3n) { background: radial-gradient(circle,#3d6e67 55%,#223a39 58%); }
.arcade-actions { display: grid; grid-template-columns: minmax(70px, .75fr) 1.65fr; gap: 6px; }
.arcade-actions .button { min-height: 43px; padding: 5px 8px; border-radius: 11px; }
.arcade-actions.baccarat-actions { grid-template-columns: auto auto minmax(0, 1fr); }
.arcade-screen .baccarat-actions .auto-control[aria-pressed="true"] { color: #1e190e; background: #f0c672; }
.game-stage-dock > button { width: 100%; min-height: 45px; }
.roulette-game, .keno-game { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.roulette-betting { grid-template-rows: auto minmax(0,1fr) auto; align-content: stretch; }
.keno-betting { grid-template-rows: auto auto minmax(0,4fr) minmax(0,2fr); align-content: stretch; }
.roulette-board, .keno-numbers, .keno-specials { grid-auto-rows: minmax(0,1fr); }
.arcade-screen[data-game="roulette101"] {
  --pocket-red: #ad252c;
  --pocket-black: #16171b;
  --pocket-green: #13684e;
}
.arcade-screen[data-game="roulette101"] [data-tone="red"] { --pocket-fill: var(--pocket-red); }
.arcade-screen[data-game="roulette101"] [data-tone="black"] { --pocket-fill: var(--pocket-black); }
.arcade-screen[data-game="roulette101"] [data-tone="green"] { --pocket-fill: var(--pocket-green); }
.roulette-hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  padding: 10px 13px;
  background:
    radial-gradient(ellipse at 40% 27%, #292932, #19191f 64%, #141419);
  border-color: #45454e;
  box-shadow: inset 0 1px 0 #ffffff0c;
}
.roulette-viewfinder {
  --lens-height: clamp(49px, 8.65dvh, 64px);
  --lens-gap: 7px;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--lens-gap);
  container-type: size;
}
.roulette-lens {
  position: relative;
  z-index: 1;
  width: min(96cqw, 386px);
  height: var(--lens-height);
  flex: none;
  display: grid;
  padding: 4px;
  border: 1px solid #54545e;
  border-radius: 15px;
  background: linear-gradient(155deg, #474750, #24242d 52%, #32323a);
  box-shadow: 0 3px 8px #0a0a0e80, inset 0 1px 0 #ffffff10;
  pointer-events: none;
}
.roulette-lens::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--lens-gap) - 1px);
  left: calc(50% - .5px);
  width: 1px;
  height: var(--lens-gap);
  background: #9d7b49;
}
.roulette-lens-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #131318;
  border-radius: inherit;
  background: #232634;
}
.roulette-lens-window::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #11111654, transparent 18% 82%, #11111654);
}
.roulette-lens-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 40%;
  border-inline: 1px solid #c6a16a;
  box-shadow: inset 0 2px #c6a16a, inset 0 -2px #927345;
  background: linear-gradient(#edc28222, #ae88531a);
}
.roulette-lens-strip {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 140%;
  display: flex;
  transform: translateX(calc(-50% + var(--lens-shift, 0%)));
}
.roulette-lens-strip span {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  border-inline-end: 1px solid #17171e;
  background: linear-gradient(145deg, #ffffff13, transparent 52%, #00000026), var(--pocket-fill);
  color: #f7f4ec;
  font: 700 clamp(1.42rem, 8cqw, 2rem)/1 "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #100c14;
}
.arcade-wheel {
  --wheel-size: min(100cqw, max(0px, calc(100cqh - var(--lens-height) - var(--lens-gap))), 430px);
  position: relative;
  flex: none;
  width: var(--wheel-size);
  height: var(--wheel-size);
}
.roulette-wheel-flat {
  position: absolute;
  inset: 0;
  background: url("assets/casino/roulette-graphite.webp?v=33") center / contain no-repeat;
}
.arcade-wheel-rotor {
  position: absolute;
  /* The 620px dial sits concentrically inside the 800px case artwork. */
  inset: 11.25%;
  border-radius: 50%;
  background: url("assets/casino/roulette-dial.webp?v=33") center / cover no-repeat;
  rotate: var(--parked-angle);
}
.arcade-wheel-rotor.is-spinning { animation: roulette-loop .88s linear infinite; }
@keyframes roulette-loop {
  from { rotate: var(--parked-angle); }
  to { rotate: calc(var(--parked-angle) + 360deg); }
}
.roulette-wheel-labels {
  position: absolute;
  inset: 0;
  color: #fff6e6;
  font: 700 clamp(8px, 3.25cqw, 14px)/1 "Barlow Condensed", sans-serif;
  text-shadow: 0 1px 1.5px #0a090d, 0 0 2px #0a090d;
}
.roulette-wheel-labels::before {
  content: "";
  position: absolute;
  inset: 0;
  --pocket-edge: calc(-1 * var(--pocket-angle) / 2);
  background:
    radial-gradient(closest-side, #08070950 73%, transparent 85%, #ffffff18 96%, #10101550 98%),
    repeating-conic-gradient(from var(--pocket-edge), #0b090dc9 0 .35deg, #ffffff25 .35deg .65deg, transparent .65deg var(--pocket-angle)),
    conic-gradient(from var(--pocket-edge), var(--wheel-colors));
  mask-image: radial-gradient(closest-side, transparent 71%, black 72% 97.5%, transparent 98%);
}
.roulette-wheel-labels span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3.4%;
  transform: rotate(var(--mark-angle));
}
.roulette-wheel-labels b {
  line-height: 1;
}
.arcade-wheel-marker {
  z-index: 1;
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 3.6%;
  height: 9.6%;
  background: linear-gradient(90deg, #936d41, #e8c98a 47%, #cc9b58 51%, #936d41);
  clip-path: polygon(20% 0, 80% 0, 100% 24%, 50% 100%, 0 24%);
}
.roulette-readout strong, .dice-arena strong {
  display: block; color: var(--arcade-ink); font: 700 2.2rem/.98 "Barlow Condensed", sans-serif;
}
.roulette-readout {
  display: grid;
  grid-template: auto auto / auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.roulette-readout small { color: #d7c19a; font-size: .68rem; }
.roulette-readout strong {
  grid-area: 1 / 1 / 3 / 2;
  display: grid; place-items: center;
  min-width: 1.7em; height: 1.35em; padding: 0 4px;
  border: 1px solid #ae9366; border-radius: 7px;
  background: var(--pocket-fill, var(--pocket-black)); color: #fff0d6;
  font-size: 1.75rem; font-variant-numeric: tabular-nums;
}
.roulette-readout .arcade-result { justify-items: start; min-height: 0; color: #eee7d9; }
.arcade-recent-pockets {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #695655;
  background: #292531;
  border-radius: 12px;
}
.arcade-recent-pockets h2, .keno-upcoming h2 { font-size: .85rem; }
.arcade-recent-pockets > div { display: flex; align-items: center; gap: 4px; min-height: clamp(27px, 8vw, 37px); }
.arcade-recent-pockets p { color: var(--muted); font-size: .76rem; }
.arcade-recent-pockets span {
  display: grid;
  place-items: center;
  width: clamp(27px, 8vw, 37px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pocket-fill);
  border: 1px solid #726473;
  font-size: .76rem;
  font-weight: 740;
}
.arcade-select { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: #d7c8d8; }
.arcade-select select {
  flex: 1; min-width: 0; min-height: 33px; padding: 4px 7px; font-size: .82rem;
  color: #f5e8ed; background: #2e2b39; border: 1px solid #635565; border-radius: 8px;
}
.roulette-board, .roulette-outside {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px;
}
.roulette-bet-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 7px;
}
.roulette-zero {
  display: grid;
  place-content: center;
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: var(--pocket-fill);
  color: #fff6e6;
  line-height: 1.05;
}
.roulette-zero small { color: #ffdfa0; font-size: .61rem; }
.roulette-board button {
  min-height: 34px; padding: 2px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.roulette-board button small { color: #ffdfa0; font-size: .61rem; }
.roulette-board button[data-tone] { background: var(--pocket-fill); }
.arcade-screen :is(.roulette-board button, .roulette-zero)[data-tone="red"][aria-pressed="true"] {
  background: #e25459;
}
.arcade-screen :is(.roulette-board button, .roulette-zero)[data-tone="black"][aria-pressed="true"] {
  background: #50525d;
}
.arcade-screen .roulette-zero[aria-pressed="true"] { background: #2aab76; }
.roulette-outside { grid-template-columns: repeat(3,minmax(0,1fr)); }
.roulette-outside button { min-height: 36px; padding: 2px; font-size: .74rem; }
body[data-view="classic7s"] {
  background: #e4d8d0;
}
.arcade-screen[data-game="classic7s"] {
  --pastel-ink: #272f54;
  --pastel-cream: #fff6eb;
  --pastel-coral: #ee6547;
  --muted: #615d74;
  color: var(--pastel-ink);
  color-scheme: light;
  background:
    radial-gradient(ellipse 34% 13% at -4% 24%, #bce0d6a8 0 68%, transparent 70%),
    radial-gradient(ellipse 38% 16% at 104% 76%, #d9c9f090 0 70%, transparent 72%),
    radial-gradient(ellipse at 48% 22%, #fffbf5, #f5e9df 78%);
  box-shadow: 0 8px 60px #6f51472e;
}
.pastel-header {
  background: var(--topbar-bg);
  grid-row: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
  place-items: center;
  gap: 5px 8px;
  padding: calc(8px + var(--content-safe-top)) 14px 2px;
}
.pastel-header h1 {
  color: var(--text);
  font-size: clamp(1.35rem, 6.25vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
  white-space: nowrap;
}
.pastel-round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #fffaf4;
  border-radius: 14px;
  background: linear-gradient(155deg, #fffaf4, #efdfd3);
  box-shadow: inset 0 -2px #cfb7a73b, 0 3px 7px #71514427;
  font-size: 1.32rem;
  font-weight: 820;
  color: var(--pastel-ink);
}
.pastel-header .language-compact { grid-area: 1 / 3; color: var(--text); }
.pastel-header [data-casino="rules"] { grid-area: 1 / 4; }
.pastel-round .icon { width: 20px; height: 20px; }
.pastel-balance {
  grid-area: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  min-width: min(100%, 212px);
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #777da7;
  background: linear-gradient(177deg, #48537b, #272d50);
  box-shadow: inset 0 1px #adb5da7a, 0 4px 10px #28234327;
  white-space: nowrap;
}
.pastel-balance .icon { color: #ffbd9b; }
.pastel-balance small { margin: 0; color: #f4e7e2; font-size: .72rem; }
.pastel-balance strong { color: #fff9ef; font-size: clamp(.95rem, 4vw, 1.22rem); }
.pastel-tools {
  justify-content: center;
  gap: 6px;
  padding: 4px 12px 0;
}
.pastel-tools button {
  min-height: 23px;
  padding-inline: 8px;
  border: 1px solid #ded1df;
  background: #f6edf8;
  color: #413b62;
  font-size: .68rem;
}
.pastel-dock {
  grid-row: 4;
  display: grid;
  grid-auto-rows: max-content;
  gap: 6px;
  padding: 2px 12px calc(9px + var(--content-safe-bottom));
}
.pastel-status {
  display: grid;
  place-items: center;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 690;
  line-height: 1.2;
  text-align: center;
}
.pastel-primary {
  width: 100%;
  min-height: clamp(43px, 7.3dvh, 59px);
  padding: 4px 9px;
  border: 1px solid #ff936e;
  border-radius: 30px;
  background: linear-gradient(176deg, #ff956c 0%, #f87953 36%, #e95334 98%);
  box-shadow: inset 0 2px #ffd8b999, inset 0 -4px #bb3d2938, 0 4px 10px #9c4f373e;
  color: #fffaf0;
  font-size: clamp(.98rem, 4.95vw, 1.38rem);
  font-weight: 850;
  text-shadow: 0 2px #9d362147;
}
.pastel-primary:active:not(:disabled), .fruit-step:active:not(:disabled) { transform: translateY(1px); }
.pastel-primary > span { margin-inline-end: 2px; font-family: sans-serif; }
.fruit-content {
  grid-template-rows: clamp(47px, 10.2dvh, 92px) minmax(0,1fr) auto;
  align-content: stretch;
  gap: 0;
  padding: 1px 11px 3px;
}
.slots-marquee {
  position: relative;
  width: 86%;
  margin-inline: auto;
  margin-bottom: -9px;
  border: 2px solid #e1cce9;
  border-radius: 50% 50% 12% 12% / 92% 92% 12% 12%;
  background:
    radial-gradient(circle at 10% 68%, #fff6cc 0 3px, #ffb56d 6px, transparent 10px),
    radial-gradient(circle at 90% 68%, #fff6cc 0 3px, #ffb56d 6px, transparent 10px),
    radial-gradient(ellipse at 50% 80%, #dec7e6, #a79bc9 86%);
  box-shadow: inset 0 3px #fff7eeab, inset 0 -6px #6d4d9729;
}
.fruit-crown {
  position: absolute;
  inset: -16% 10% 5%;
  background: url("assets/casino/fruit-crown.webp") center bottom / contain no-repeat;
  filter: drop-shadow(0 3px 3px #68402849);
}
.slots-cabinet {
  z-index: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px;
  gap: 4px;
  padding: 7px 8px 3px;
  border: 2px solid #737aa2;
  border-radius: clamp(17px, 6vw, 26px);
  background: linear-gradient(135deg, #616c9b, #272d55 70%, #444c7c);
  box-shadow: inset 0 3px #c5c9e78a, inset 0 -3px #1a1c39, 0 5px 8px #4834593d;
}
.slots-window {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
  min-height: 0;
  overflow: hidden;
  border: 2px solid #282b4e;
  border-radius: 15px;
  background: #242944;
  isolation: isolate;
}
.slots-window::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 33.333% 0;
  border: 2px solid #ff7953;
  border-radius: 9px;
  box-shadow: 0 0 7px #ff925b75, inset 0 0 5px #ff9f6b52;
}
.slots-window[data-win="true"]::after {
  border-color: #ffa354;
  box-shadow: 0 0 14px #ff9e4bee, inset 0 0 9px #ff9e4b83;
}
.slots-reel {
  display: grid;
  grid-template-rows: repeat(3,minmax(0,1fr));
  gap: 1px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #d8bea9;
}
.slots-cell {
  display: grid;
  place-items: center;
  container-type: size;
  min-height: 0;
  background: linear-gradient(154deg, #fff8ef, #efddcd);
  box-shadow: inset 0 1px #fffef8c2, inset 0 -2px 9px #9a736113;
}
.fruit-symbol {
  display: block;
  width: min(96cqh, 92cqw, 135px);
  aspect-ratio: 1;
  background: url("assets/casino/fruit-symbols.webp") calc(var(--symbol) * 100% / 6) 0 / 700% 100% no-repeat;
}
.slots-motion-strip {
  grid-row: 1 / -1;
  display: grid;
  height: calc(100% * 10 / 3);
  grid-template-rows: repeat(10,minmax(0,1fr));
  animation: fruit-roll .47s linear infinite;
  animation-delay: calc(var(--reel) * -.1s);
  filter: blur(.6px);
}
@keyframes fruit-roll {
  from { transform: translateY(-70%); }
  to   { transform: translateY(0); }
}
.slots-stops { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); place-items: center; }
.slots-stops i {
  width: 26px;
  height: 5px;
  border-radius: 8px;
  background: #ffe7af;
  box-shadow: 0 0 8px #ff9958;
}
.slots-stops button {
  min-width: 48px;
  min-height: 22px;
  padding: 0 4px;
  border: 1px solid #919ac4;
  border-radius: 7px;
  background: #353c64;
  color: #fff2de;
  font-size: .67rem;
}
.fruit-payout {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 7px 4px 0;
  padding: 2px 8px;
  border: 2px solid #dcd0ed;
  border-radius: 24px;
  background: #fff6eb;
  box-shadow: inset 0 1px #fff, 0 2px 5px #4b3b5924;
}
.fruit-payout > span {
  padding: 4px 7px;
  border-radius: 12px;
  background: #373e69;
  color: #fff5ee;
  font-size: .69rem;
  font-weight: 760;
}
.fruit-example { display: flex; align-items: center; justify-content: center; }
.fruit-example .fruit-symbol { width: min(28px, 32%); }
.fruit-payout > strong { color: #af3b25; font-size: clamp(.86rem, 4vw, 1.12rem); white-space: nowrap; }
.fruit-stake {
  display: grid;
  grid-template-columns: 40px minmax(68px,1fr) 40px;
  gap: 10px;
  align-items: center;
  justify-self: center;
  text-align: center;
  padding: 3px 5px;
  border: 1px solid #fff9ef;
  border-radius: 25px;
  background: #f8e8d9;
  box-shadow: inset 0 1px #fff, 0 2px 6px #855b4730;
}
.fruit-stake div { display: grid; line-height: 1; }
.fruit-stake small { font-size: .61rem; color: var(--muted); }
.fruit-stake strong { font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.fruit-step {
  display: grid;
  place-items: center;
  height: 33px;
  padding: 0;
  border: 1px solid #ff9979;
  border-radius: 20px;
  background: linear-gradient(#ff9778, #ee684a);
  box-shadow: inset 0 1px #ffd3af;
  color: #fffaf1;
  font-size: 1.26rem;
  font-weight: 740;
}
.fruit-actions { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 8px; }
.fruit-actions .pastel-round { background: linear-gradient(#faf0ff, #ddcfee); border-color: #f5ecff; }
.arcade-screen .fruit-actions .pastel-round[aria-pressed="true"] {
  background: #dad3f2;
  border-color: #9580bc;
  color: #272f54;
}
body[data-view="luckydrop"] {
  background: #15151b;
}
.arcade-screen[data-game="luckydrop"] {
  --pin-bg: #15151b;
  --pin-panel: #22242e;
  --pin-line: #44434a;
  --pin-gold: #f4cb77;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #f5f3f5;
  background: var(--pin-bg);
  color-scheme: dark;
}
.pin-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px 36px;
  align-items: center;
  gap: 8px;
  padding: calc(5px + var(--content-safe-top)) 12px 5px;
  background: var(--topbar-bg);
  border-bottom: 1px solid #363946;
}
.pin-header h1 {
  margin: 0;
  flex-shrink: 0;
  font:
    700 clamp(1.18rem, 5.2vw, 1.65rem)/1 "Barlow Condensed",
    sans-serif;
}
.pin-tool,
.pin-header .language-compact {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--pin-line);
  border-radius: 10px;
  background: #282a34;
  color: var(--pin-gold);
}
.pin-header .pin-tool {
  font-size: 1.2rem;
  font-weight: 750;
}
.pin-title {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 7px;
}
.pin-feedback {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e1cfad;
  font-size: .7rem;
}
.pin-stage {
  min-height: 0;
  margin: 2px 0;
  display: grid;
  place-items: center;
  container-type: size;
}
.pin-cabinet {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--board-ratio)));
  aspect-ratio: var(--board-ratio);
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  border-radius: 7% 7% 5% 5%;
  background: var(--pin-bg) url("assets/casino/pachinko-arched-cabinet.webp") center/100% 100% no-repeat;
}
.pin-light-bank {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pin-lamp {
  position: absolute;
  width: 1.95%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffe3a2 4%, #de9b49 34%, #915124 66%, #443019 84%);
  box-shadow: 0 0 0 .24cqw #403222, 0 .22cqw .2cqw .25cqw #080706;
}
.pin-lamp.pin-lens {
  border-radius: 100cqw;
  aspect-ratio: auto;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pin-cabinet.is-flashing .pin-light-bank {
    animation: pin-bezel-chase 960ms ease-in-out infinite;
    animation-delay: calc(var(--phase) * -240ms);
  }
  .pin-cabinet.is-flashing .pin-lamp {
    background: radial-gradient(ellipse at 42% 38%, #fff9da 12%, #ffe498 39%, #ffc24f 68%, #b16c25 90%);
    box-shadow: 0 0 0 .22cqw #8e6230, 0 0 1.05cqw .32cqw #ffbf58, 0 0 2.1cqw .5cqw #ff9e356b;
  }
  .pin-cabinet.is-flashing .pin-lens {
    opacity: 1;
  }
}
@keyframes pin-bezel-chase {
  0%, 100% { opacity: .32; }
  48%, 60% { opacity: 1; }
}
.pin-peg, .pin-rail, .pin-guard, .pin-ball, .pin-spinner, .pin-reels, .pin-spring {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pin-peg, .pin-ball, .pin-spinner, .pin-spring { aspect-ratio: 1; border-radius: 50%; }
.pin-spring {
  z-index: 1;
  background: linear-gradient(135deg, #f6da95, #ad7435 44%, #50341f 77%, #e4ab56);
  box-shadow: 0 .52cqw .65cqw #09080cdd, inset 0 0 0 .28cqw #e6b85d;
}
.pin-spring b,
.pin-spring span {
  position: absolute;
  border-radius: 50%;
}
.pin-spring b {
  inset: 14%;
  background:
    radial-gradient(circle, #ffedb4 0 24%, #cb933d 30%, #39261a 36%, transparent 41%),
    repeating-conic-gradient(from 22.5deg, #6b451f 0deg 25deg, #e9b65d 38deg 54deg, #6b451f 76deg 90deg);
  box-shadow: inset 0 0 0 .24cqw #fff2ad99;
}
.pin-spring span {
  inset: 4%;
  opacity: 0;
  border: .45cqw solid #ffcf67;
  box-shadow: 0 0 1.15cqw #ff9e38, inset 0 0 .65cqw #ffd176;
}
.pin-peg {
  background: radial-gradient(circle at 36% 25%, #fff 0 9%, #e5e5e8 19%, #9e9fa8 36%, #575964 51%, #1b1920 67%, #90867a 85%, #d2b778);
  box-shadow: .16cqw .65cqw .65cqw #121015, .12cqw .28cqw .12cqw #392a21;
}
.pin-rail, .pin-guard {
  transform: translate(-50%, -50%) rotate(var(--tilt));
  border-radius: 5cqw;
  background: linear-gradient(#ffffd1, #f4d68d 13%, #b68442 27%, #d3994e 50%, #9b682d 74%, #63421d 88%, #cfab66);
}
.pin-rail {
  box-shadow: inset 0 0 0 .3cqw #e3bc73, 0 .8cqw .75cqw #0d0c10c9;
}
.pin-rail::before, .pin-rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: .68cqw;
  width: 1.15cqw;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, white 8%, #b7b5af 28%, #53505a 62%, #18161b);
  box-shadow: 0 .2cqw .25cqw #392b1a;
}
.pin-rail::after { left: auto; right: .68cqw; }
.pin-ejector {
  background: linear-gradient(#eec17a, #ad682e 18%, #392824 39% 68%, #a36935 86%, #edbb66);
  box-shadow: inset 0 0 0 .24cqw #edba68, 0 .7cqw .9cqw #0f0b0bd9;
}
.pin-ejector b {
  position: absolute;
  inset: 28% 18%;
  border-radius: 2cqw;
  background: repeating-linear-gradient(105deg, #ffd781 0 17%, #9e582b 22% 31%);
  box-shadow: 0 0 .65cqw #ffb246b3, inset 0 .22cqw #ffebb568;
}
.pin-guard {
  transform: translate(-50%, -50%) scaleX(var(--flip));
  border-radius: 0;
  background: linear-gradient(100deg, #74502a, #deac62 28%, #f5d79a 52%, #ab783a 78%, #5c4225);
  clip-path: polygon(62% 0, 89% 3%, 100% 9%, 80% 25%, 68% 48%, 75% 67%, 100% 90%,
    89% 97%, 65% 100%, 43% 98%, 21% 83%, 5% 64%, 0 46%, 8% 26%, 35% 6%);
}
.pin-guard::before, .pin-guard::after {
  content: "";
  position: absolute;
  width: 37%;
  aspect-ratio: 1;
  right: 16%;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fffbef, #b4adb1 38%, #4b4347 69%);
}
.pin-guard::after { top: auto; bottom: 5%; }
.pin-spinner {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff1be 8%, #bd8b48 26%, #604421 49%, #dfae5b 75%, #fbdead 87%, #865a26);
  box-shadow: 0 .9cqw 1cqw #101016, inset 0 0 0 .35cqw #dbc795;
}
.pin-spinner b {
  width: 87%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 55%, #fff0b366 62%, #412a11aa 68%, #daab60 71%),
    repeating-conic-gradient(from 2deg, #ffdf91 0deg, #edc174 3deg, #785224 6deg, #ad7833 20deg, #d5a251 37deg, #60401e 39deg, #daa95a 40deg);
}
.pin-spinner::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f5e9d3, #817d80, #d2c7ba, #79767a, #f5e9d3);
  box-shadow: inset 0 0 0 .35cqw #d2bca4, 0 .65cqw .8cqw #473021;
}
.pin-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75cqw;
  padding: .65cqw;
  border-radius: 3.4cqw;
  background: #1c1717;
  overflow: hidden;
}
.pin-reels > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 2.1cqw;
  background: linear-gradient(#ac8e61, #e6cba1 13%, #f5e1b8 46%, #efdbb8 64%, #bd9b6a 97%);
  box-shadow: inset 0 0.5cqw 1cqw #3f3529;
}
.pin-reels .fruit-symbol {
  width: 94%;
  filter: drop-shadow(0 0.4cqw 0.35cqw #62481d80);
}
.pin-reels .pin-reel-strip {
  align-self: start;
  display: grid;
  width: 100%;
  height: 400%;
  grid-template-rows: repeat(4, 1fr);
  place-items: center;
}
.pin-pocket {
  position: absolute;
  z-index: 3;
  width: 5%;
  transform: translateX(-50%);
  text-align: center;
  filter: drop-shadow(.15cqw .8cqw .7cqw #0b0a0dd9);
  --cup-metal: linear-gradient(128deg, #efe1c2 0%, #c8ac7f 9%, #73634c 22%, #9b8769 54%, #675541 80%, #423c33);
}
.pin-pocket[data-pocket="1"] {
  --cup-metal: linear-gradient(135deg, #ffe6ab, #d6a45f 17%, #95612a 40%, #c4924f 69%, #694420 93%);
}
.pin-pocket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.55cqw;
  width: 282%;
  height: 9.8cqw;
  transform: translateX(-50%);
  border-radius: 15% 15% 22% 22% / 19% 19% 75% 75%;
  background: var(--cup-metal);
  box-shadow: inset .35cqw .52cqw .48cqw #fff4cba6, inset -.4cqw -.7cqw .65cqw #36271ecc;
}
.pin-pocket[data-pocket="1"]::before {
  width: 325%;
  border-radius: 15% / 24%;
  background:
    radial-gradient(circle at 12% 17%, #f5ece2 .35cqw, #68616a .6cqw, transparent .76cqw),
    radial-gradient(circle at 88% 17%, #f5ece2 .35cqw, #68616a .6cqw, transparent .76cqw),
    var(--cup-metal);
}
.pin-opening {
  display: block;
  position: relative;
  width: var(--pin-mouth);
  height: 3.8cqw;
  margin-inline: auto;
  border-radius: 12% 12% 23% 23% / 23% 23% 80% 80%;
  background: linear-gradient(#0e0c10, #282024 64%, #5d4d35);
  box-shadow: 0 0 0 .43cqw #f2d9a4, inset .3cqw .65cqw .55cqw #060508, 0 .35cqw .2cqw .4cqw #735939;
}
.pin-pocket:not([data-pocket="1"])::after, .pin-pocket small {
  position: absolute;
  top: 5.1cqw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4cqw;
}
.pin-pocket:not([data-pocket="1"])::after {
  content: "";
  width: 70%;
  height: .78cqw;
  background: #ffe2a1;
  box-shadow: 0 0 .55cqw .15cqw #d99a46;
}
.pin-pocket small {
  width: max-content;
  max-width: 12cqw;
  padding: .12cqw .6cqw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: .22cqw solid #eec47f;
  background: #58401f;
  color: #ffebc6;
  font-size: 2.15cqw;
  font-weight: 750;
  line-height: 1.1;
}
.pin-arrows {
  position: absolute;
  bottom: 6.1cqw;
  left: 50%;
  transform: translateX(-50%);
}
.pin-arrows::before, .pin-arrows::after {
  content: "";
  display: block;
  width: 5.2cqw;
  height: 2.75cqw;
  background: linear-gradient(#ffdc8e, #d79947);
  clip-path: polygon(0 18%, 12% 0, 50% 57%, 88% 0, 100% 18%, 50% 100%);
}
.pin-ball {
  z-index: 2;
  inset: 0 auto auto 0;
  transform: translate(var(--ball-x, 0), var(--ball-y, 0)) translate(-50%, -50%) scale(var(--ball-scale, 1));
  opacity: var(--ball-opacity, 1);
  will-change: transform, opacity;
  background: radial-gradient(circle at 32% 25%, #fff4cc 0 5%, #ffcb70 14%, #ff9c32 33%, #ff751b 56%, #cc480b 80%, #8b2b0a);
  box-shadow: 0 0 0.8cqw #ff8d2d99, 0 0.7cqw 0.8cqw #190900b3;
}
.pin-ball::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border-left: .32cqw solid #ffe2a966;
  border-right: .3cqw solid #8f2a075e;
  transform: rotate(var(--ball-angle, 0rad));
}
.pin-ball[data-pocket-entry] {
  z-index: 4;
  clip-path: inset(0 0 var(--ball-clip, 0%) 0);
}
.pin-console {
  margin: 3px 7px 0;
  padding: 5px 10px calc(5px + var(--content-safe-bottom));
  display: grid;
  gap: 4px;
  border: 1px solid #49454a;
  border-radius: 16px 16px 0 0;
  background: var(--pin-panel);
}
.pin-settings,
.pin-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pin-settings label {
  color: #cdc9c3;
  font-size: 0.73rem;
  font-weight: 620;
}
.pin-settings label:first-child {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 6px;
  min-width: 0;
}
.pin-settings output {
  color: var(--pin-gold);
  font-variant-numeric: tabular-nums;
}
.pin-settings input {
  grid-column: 1/-1;
  width: 100%;
  margin: 0;
  height: 23px;
  accent-color: var(--pin-gold);
}
.pin-settings label:last-child {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  border-left: 1px solid var(--pin-line);
  padding-left: 9px;
}
.pin-settings select {
  width: auto;
  min-width: 3.4em;
  border: 1px solid #696052;
  border-radius: 7px;
  padding: 6px 3px;
  background: #302c2b;
  color: var(--pin-gold);
  font-weight: 700;
}
.pin-actions .pin-tool {
  width: 38px;
  height: 39px;
}
.pin-actions [data-casino="pin-launch"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #eaca86;
  background: linear-gradient(#f7d78e, #d7a755);
  color: #2b2218;
  font-weight: 750;
  box-shadow: inset 0 -2px #b08a4a;
}
.pin-actions button:active {
  transform: translateY(1px);
}
@media (max-height: 550px) and (orientation: landscape) {
  .arcade-screen[data-game="luckydrop"] {
    width: min(100%, 880px);
    grid-template-columns: minmax(0, 1fr) minmax(210px, 36%);
    grid-template-rows: auto 1fr auto;
  }
  .pin-header {
    grid-area: 1/2;
  }
  .pin-stage {
    grid-area: 1/1/4/2;
  }
  .pin-console {
    grid-area: 3/2;
  }
}
@media (max-height: 580px) {
  .pastel-header { padding-top: calc(5px + var(--content-safe-top)); gap: 3px 7px; }
  .pastel-dock { gap: 4px; }
  .fruit-content { padding-inline: 8px; }
  .fruit-content { gap: 0; }
}
.keno-arena {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 11px; background: radial-gradient(at 25% 15%,#334f85,#292744 95%);
}
.keno-game .keno-arena {
  flex-direction: column;
  justify-content: center;
  gap: clamp(5px, 1.5dvh, 12px);
  text-align: center;
}
.keno-game .keno-clock { text-align: center; }
.keno-game .keno-ball, .keno-game .keno-equation strong {
  width: clamp(30px, 9.5vw, 47px);
  font-size: clamp(1rem, 4.1vw, 1.4rem);
}
.keno-upcoming { display: grid; gap: 6px; }
.keno-upcoming > div {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px 12px; gap: 8px;
  border: 1px solid #535474; background: #292b40; border-radius: 9px;
}
.keno-upcoming > div small { display: block; color: #c0c5e1; margin-top: 2px; font-size: .72rem; }
.keno-upcoming .button { min-height: 34px; padding-block: 4px; }
.keno-clock { text-align: right; }
.keno-clock strong { font-size: 1.35rem; }
.keno-equation { display: flex; align-items: center; gap: 4px; margin-top: 6px; white-space: nowrap; }
.keno-equation i { font-style: normal; color: #dddbea; }
.keno-ball {
  display: grid; place-items: center; width: 30px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(at 28% 22%,#b9def7,#3e6da5 65%,#253c77);
  font-weight: 760; color: white; text-shadow: 0 1px 2px #0a182f;
}
.keno-equation strong {
  display: grid; place-items: center; width: 33px; aspect-ratio: 1; font-size: 1.25rem;
  border-radius: 8px; color: #2c2432; background: #f8d77a;
}
.keno-rounds, .keno-numbers, .keno-specials { display: grid; gap: 4px; }
.keno-rounds { grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.keno-rounds button { min-height: 39px; padding: 2px; font-size: clamp(.61rem, 2.8vw, .69rem); font-variant-numeric: tabular-nums; }
.keno-numbers { grid-template-columns: repeat(7,minmax(0,1fr)); }
.keno-numbers button { min-height: 39px; padding: 1px; background: linear-gradient(#374f80,#252c4e); }
.keno-specials { grid-template-columns: repeat(4,minmax(0,1fr)); }
.keno-specials button { font-size: .76rem; background: linear-gradient(#5a406e,#3d2c52); }
.dice-arena {
  min-height: 100px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: radial-gradient(ellipse,#583967,#2a243c);
}
.dice-faces { display: flex; gap: 6px; }
.dice-faces span {
  display: grid; place-items: center; width: clamp(43px, 14vw, 60px); aspect-ratio: 1;
  border-radius: 11px; background: linear-gradient(#f1e3f9,#c5afd9); color: #483557;
  font-size: 2.44rem; box-shadow: 0 4px 0 #9173a9, 0 5px 11px #120f1b;
}
.dice-options-1 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dice-options-2 { grid-template-columns: repeat(6,minmax(0,1fr)); }
.dice-options-2 button { font-size: .71rem; }
.arcade-rooms h2 { margin-block: 5px; font-size: 1.2rem; }
.baccarat-tables { display: grid; gap: 6px; }
.baccarat-tables button, .arcade-rooms li {
  display: grid; text-align: left; gap: 3px; padding: 9px 11px;
  border: 1px solid #5a6272; border-radius: 9px;
  background: #30353d; min-height: 46px;
}
.baccarat-tables small, .arcade-rooms li small { color: #c0c7d8; }
.baccarat-tables button > strong, .arcade-rooms li > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arcade-rooms ul, .arcade-history ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.arcade-rooms ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.arcade-room-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.arcade-room-pages { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .75rem; }
.arcade-room-pages button { min-height: 34px; padding: 3px 9px; }
.arcade-history { margin-bottom: 12px; }
.arcade-history h3 { margin-bottom: 6px; }
.arcade-history li, .arcade-paytable div {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #5952616b; font-size: .83rem;
}
.arcade-paytable dd { margin: 0; color: #f0cf91; }
@media (max-width: 375px), (max-height: 695px) {
  .arcade-content { gap: 5px; padding-block: 5px; }
  .arcade-chip-tray button { min-height: 30px; min-width: 35px; }
  .roulette-board button { min-height: 31px; }
  .keno-numbers button { min-height: 34px; }
}
@media (max-height: 580px) {
  .baccarat-arena { padding: 38px 8px 12px; gap: 4px; grid-template-rows: minmax(20px, 1fr) auto; }
  .baccarat-result { inset-block-start: 8px; font-size: 1rem; }
  .baccarat-shoe { inset-block-start: -2px; }
  .baccarat-arena .arcade-hand { padding-block: 6px; }
  .roulette-hero { gap: 6px; padding-block: 6px; }
  .arcade-recent-pockets { gap: 4px; padding-block: 7px; }
  .keno-game .keno-arena { flex-direction: row; justify-content: space-between; }
  .keno-upcoming { gap: 4px; }
  .keno-upcoming > div { padding-block: 4px; }
  .arcade-pad-grid button, .keno-specials button { min-height: 35px; }
  .keno-numbers button { min-height: 32px; }
  .dice-arena { min-height: 87px; }
}
@media (prefers-reduced-motion: reduce) {
  .slots-motion-strip { animation: none; }
}

/* Blackjack shares the charcoal panels, gold trim and condensed headings of the lobby. */
body[data-view="blackjack"] { background: #15151b; }
.arcade-screen[data-game="blackjack"] {
  --card-color: #605039;
  --card-shadow: #272426;
  width: min(100%, 780px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #19191f;
  color: var(--text);
}
.bj-header, .bj-tools, .bj-deal, .bj-result, .bj-balance, .bj-header-tools, .bj-insurance {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bj-header {
  padding: calc(9px + var(--content-safe-top)) 16px 9px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
}
.bj-header .table-back { width: 40px; height: 40px; }
.bj-header h1 { white-space: nowrap; font: 700 clamp(1.35rem, 4.7vw, 2rem)/1 "Barlow Condensed", system-ui, sans-serif; }
.bj-header-tools { margin-left: auto; gap: 2px; }
.bj-balance {
  gap: 8px; padding: 5px 12px; border: 1px solid #66543b; border-radius: 14px;
  background: #232125; color: var(--gold);
}
.bj-balance small, .bj-balance strong { display: block; }
.bj-balance small { color: var(--muted); font-size: .68rem; }
.bj-balance strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.bj-tools { padding: 8px clamp(12px, 3vw, 22px); gap: 6px; }
.bj-tools > span { margin-right: auto; color: var(--muted); font-size: .82rem; }
.bj-tools button {
  min-height: 34px; padding: 3px 12px; border: 1px solid #524b46;
  border-radius: 22px; color: #eadbc0; background: #252328;
}
.bj-stage {
  position: relative;
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  margin: 0 clamp(10px, 3vw, 22px) 10px;
  border: 1px solid #706049; border-radius: var(--radius);
  background: radial-gradient(ellipse at 55% 5%, #3a3536, transparent 75%), #242328;
  box-shadow: inset 0 0 0 4px #d9b47408;
}
.bj-welcome {
  position: relative; isolation: isolate; overflow: hidden; display: flex;
  min-height: 100%; align-items: center; padding: clamp(18px, 4vw, 36px);
}
.bj-welcome > div { width: 56%; z-index: 1; }
.bj-welcome h2 {
  font: 700 clamp(2.1rem, 7.8vw, 4rem)/1.02 "Barlow Condensed", system-ui, sans-serif;
  color: var(--gold-light); text-wrap: balance;
}
.bj-welcome p { margin-top: 10px; max-width: 21ch; color: #d6cfc1; font-size: .92rem; }
.bj-welcome img {
  position: absolute; right: 1%; top: 50%; transform: translateY(-50%) rotate(5deg);
  width: 43%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 12px #09090c66);
}
.bj-table {
  position: relative;
  min-height: 100%; display: flex; flex-direction: column; justify-content: space-evenly;
  gap: 12px; padding: clamp(12px, 3vw, 24px);
}
.bj-table h2 {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  color: #eee6d7; font: 650 .94rem/1.25 system-ui, sans-serif;
}
.bj-table h2 strong {
  font-size: .82rem; padding: 2px 7px; border-radius: 6px;
  color: var(--gold-light); background: #15151bd9; border: 1px solid #625743;
}
.bj-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; margin: 9px auto; }
.bj-cards .playing-card { width: clamp(45px, 14.5vw, 77px); }
.bj-cards .playing-card + .playing-card { margin-left: -10px; }
.bj-cards .card-corner { font-size: .85rem; }
.bj-cards .card-corner small { font-size: .64rem; }
.bj-cards .card-pip { font-size: 1.8rem; }
.bj-table-line { display: flex; align-items: center; gap: 10px; color: #cbb892; font-size: .76rem; }
.bj-table-line::before, .bj-table-line::after { content: ""; height: 1px; flex: 1; background: #9c82574f; }
.bj-hands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bj-hands[data-count="1"] { grid-template-columns: 1fr; }
.bj-hand { border-radius: 12px; padding: 9px 5px; text-align: center; border: 1px solid #ffffff15; background: #13131852; }
.bj-hand[data-active="true"] { border-color: #b0945e; background: #6f5e3e22; }
.bj-hand[data-result="Win"], .bj-hand[data-result="Blackjack"], .bj-hand[data-result="Even money"] {
  border-color: #c5a15a; background: linear-gradient(145deg, #6b533b45, #241f1b52);
}
.bj-hand[data-result="Bust"] { border-color: #9b5554; background: #6e303022; }
.bj-hand small { display: inline-flex; align-items: center; gap: 4px; color: #d0c7b7; font-size: .75rem; }
.bj-hand small .icon { width: 14px; height: 14px; }
.bj-hands:not([data-count="1"]) .playing-card { width: clamp(34px, 10vw, 56px); }
.bj-hands:not([data-count="1"]) .card-pip { font-size: 1.2rem; }
.bj-hands:not([data-count="1"]) .card-corner.opposite { display: none; }
.bj-extras { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: #d6cfbf; }
.bj-console {
  display: grid; gap: 10px; padding: 14px clamp(14px, 3vw, 24px) calc(14px + var(--content-safe-bottom));
  background: var(--topbar-bg); border-top: 1px solid var(--line);
}
.bj-console h2, .bj-rulebook h3 { font-weight: 700; font-size: 1rem; }
.bj-console small, .bj-deal span { color: var(--muted); }
.bj-stakes, .bj-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bj-stakes button, .bj-actions button, .bj-console select, .bj-console input {
  padding: 8px; min-height: 40px; border: 1px solid #524f55; border-radius: 9px;
  background: #2c2c35; color: var(--text); font: inherit;
}
.bj-stakes button, .bj-actions button { flex: 1 1 auto; font-size: .88rem; font-weight: 650; }
.bj-stakes button[aria-pressed="true"] { border-color: var(--gold); background: #453c30; color: var(--gold-light); }
.bj-side-inputs { display: flex; gap: 10px; }
.bj-side-inputs label { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px;
  font-size: .8rem; color: var(--muted); min-width: 0; }
.bj-side-inputs select { max-width: 100%; }
.bj-deal, .bj-result { justify-content: space-between; }
.bj-deal b { color: var(--text); }
.bj-deal .primary { min-width: 48%; }
.bj-actions .primary, .bj-console .button.primary { background: var(--gold); color: #211c12; border: 1px solid #ebc579; }
.bj-console button:disabled, .bj-header button:disabled { opacity: .42; }
.bj-insurance { justify-content: space-between; color: var(--muted); font-size: .87rem; }
.bj-insurance input { width: 5.5rem; }
.bj-result strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bj-rulebook { display: grid; gap: 15px; }
.bj-rulebook h3 { margin-bottom: 5px; color: var(--gold-light); }
.bj-rulebook .bj-extras { margin-top: 6px; justify-content: start; }
@media (max-width: 600px) and (min-height: 650px) {
  .bj-welcome { flex-direction: column-reverse; justify-content: center; gap: clamp(10px, 3vh, 30px); padding: 20px; }
  .bj-welcome > div { width: 100%; text-align: center; }
  .bj-welcome h2 { font-size: clamp(1.75rem, 7.5vw, 2.8rem); }
  .bj-welcome p { max-width: none; margin-top: 6px; }
  .bj-welcome img { position: static; transform: rotate(4deg); width: 68%; height: clamp(120px, 28vh, 290px); }
}
@media (max-width: 400px) {
  .bj-header { gap: 4px; padding-inline: 4px 8px; }
  .bj-header-tools .arcade-sound, .bj-header-tools .language-compact { width: 32px; }
  .bj-header h1 { font-size: 1.18rem; }
  .bj-balance { padding-inline: 8px; }
  .bj-side-inputs label { display: grid; grid-template-columns: 1fr; }
  .bj-side-inputs select { padding-block: 4px; min-height: 34px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .arcade-screen[data-game="blackjack"] { width: min(100%, 980px); grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto minmax(0, 1fr); }
  .bj-header, .bj-tools { grid-column: 1 / -1; }
  .bj-stage { grid-column: 1; grid-row: 3; margin-right: 6px; }
  .bj-console { grid-column: 2; grid-row: 3; align-self: start; max-height: 100%; overflow: auto; align-content: start; gap: 6px; }
}
@media (pointer: coarse), (max-width: 600px) {
  .bj-header :is(.table-back, .language-compact, .arcade-sound),
  .bj-tools button, .bj-console :is(button, select, input) {
    min-height: 44px;
    min-width: 44px;
  }
  .bj-header h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .bj-console :is(select, input) { font-size: 16px; }
  .bj-stage[data-phase="player"] + .bj-console .bj-actions {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bj-actions [data-value="hit"], .bj-actions [data-value="stand"] { grid-column: span 3; }
  .bj-actions :is([data-value="double"], [data-value="split"], [data-value="surrender"]) { grid-column: span 2; }
  .bj-actions button { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .bj-balance > .icon { display: none; }
}
.bj-shoe {
  position: absolute; top: 12px; right: 12px; width: 27px; height: 37px;
  border: 1px solid #a58a5c; border-radius: 5px; transform: rotate(9deg);
  background: repeating-linear-gradient(45deg, #ffffff0a 0 2px, transparent 2px 5px), #252328;
  box-shadow: 2px 2px 0 #6b5c45, 4px 4px 0 #27252b;
  pointer-events: none;
}
.bj-flight {
  position: absolute; z-index: 4; pointer-events: none; transform-origin: center;
  filter: drop-shadow(0 6px 6px #09080b45); will-change: transform, opacity;
}
.bj-flight > .playing-card, .bj-flight-back, .bj-flight-back > .playing-card {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
}
.bj-flight-back { display: block; }
.bj-flight .card-pip { font-size: 1.8rem; }
.bj-flight .card-corner { font-size: .85rem; }
.bj-flight .card-corner small { font-size: .64rem; }
.bj-flight .card-back::before { background-color: #353039; }
.arcade-screen[data-game="blackjack"][data-motion="dealing"] .bj-extras {
  visibility: hidden;
}
.bj-balance strong { display: block; transform-origin: right center; }
.arcade-screen[data-game="blackjack"][data-motion]:not([data-motion=""]) .bj-console {
  min-height: 136px;
}
.bj-progress { height: 3px; border-radius: 3px; overflow: hidden; background: #f3ca711a; }
.bj-progress span {
  display: block; width: 35%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ad8249, #ffdf94);
  animation: bj-progress 1.1s ease-in-out infinite alternate;
}
@keyframes bj-progress {
  from { transform: translateX(-80%); }
  to { transform: translateX(285%); }
}
@media (prefers-reduced-motion: reduce) {
  .bj-progress span { animation: none; }
}

.arcade-screen.practice-arcade {
  --practice-accent: #efbd79;
  --practice-muted: #c0b7b9;
  --practice-border: #ffffff22;
  width: min(100%, 980px);
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(150deg, #232027, #15151b 73%);
  color: #fff7ec;
}
.practice-arcade[data-game="classic-dice"] { --practice-accent: #8ae2bb; }
.practice-arcade[data-game="limbo"] { --practice-accent: #e6b4f5; }
.practice-arcade[data-game="hilo"] { --practice-accent: #ffaaae; }
.practice-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.practice-header .table-back { flex: 0 0 40px; height: 42px; }
.practice-header h1 {
  margin: 0 auto 0 0;
  font: 700 clamp(26px, 7vw, 43px)/.98 "Barlow Condensed", Barlow, sans-serif;
  overflow-wrap: anywhere;
}
.practice-header > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.practice-arcade button[data-practice-action] {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--practice-border);
  border-radius: 9px;
  background: #ffffff0a;
  color: #fff7ec;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.practice-arcade button:focus-visible, .practice-arcade input:focus-visible { outline: 2px solid var(--practice-accent); outline-offset: 3px; }
.practice-arcade button[data-practice-action]:disabled { opacity: .45; cursor: default; }
.practice-arcade button[data-practice-action][aria-pressed="true"] {
  color: var(--practice-accent);
  border-color: var(--practice-accent);
  background: #ffffff10;
}
.practice-bank {
  align-self: flex-start;
  padding: 7px 11px;
  background: #ffffff09;
  border: 1px solid var(--practice-border);
  border-radius: 9px;
}
.practice-bank span { display: flex; gap: 10px; align-items: baseline; }
.practice-bank b { color: var(--practice-accent); font-variant-numeric: tabular-nums; }
.practice-bank small, .practice-console small { color: var(--practice-muted); }
.practice-field {
  --result-light: var(--practice-accent);
  position: relative;
  flex: 1 0 195px;
  min-height: min(29dvh, 225px);
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--practice-border);
  border-radius: 14px;
  background: linear-gradient(130deg,#15151be6,#17141cb3 56%,#14141c59), var(--practice-art) center 58% / cover;
  isolation: isolate;
}
.practice-field[data-phase="win"] { --result-light: #a9ebc2; border-color: #7cbd9b; }
.practice-field[data-phase="loss"] { --result-light: #f099a2; border-color: #b87881; }
.practice-display {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px;
  text-align: center;
}
.practice-display span, .practice-cards > div > span:first-child { font-size: 13px; color: #f7e2d3; }
.practice-display span { text-shadow: 0 1px 9px #000; }
.practice-display strong {
  color: var(--practice-accent);
  font: 700 clamp(48px, 13vw, 105px)/.9 "Barlow Condensed", Barlow, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 25px #000a;
}
.practice-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(#f1c79719 1px, transparent 1px) center / 100% 20%,
    linear-gradient(90deg,#f1c79717 1px, transparent 1px) center / 12.5% 100%;
}
.practice-dice-track {
  width: 82%;
  align-self: start;
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}
.practice-dice-track span {
  position: absolute;
  top: 0;
  width: 100%;
  height: 8px;
  border-radius: 20px;
  background: linear-gradient(90deg,var(--practice-accent) 0 var(--threshold),#b37b81 var(--threshold) 100%);
}
.practice-dice-track[data-direction="over"] span {
  background: linear-gradient(90deg,#b37b81 0 var(--threshold),var(--practice-accent) var(--threshold) 100%);
}
.practice-dice-track i {
  position: absolute;
  top: -5px;
  left: var(--roll);
  width: 7px;
  height: 18px;
  border: 1px solid #17171f;
  border-radius: 7px;
  background: var(--result-light);
  box-shadow: 0 0 12px var(--result-light);
  transform: translateX(-50%);
}
.practice-cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  padding: 14px;
  perspective: 760px;
}
.practice-cards > div { display: grid; justify-items: center; gap: 8px; }
.practice-cards .playing-card { width: clamp(63px, 20vw, 96px); height: auto; aspect-ratio: 2 / 3; }
.practice-console { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--practice-border); border-radius: 14px; background: #24212a; }
.practice-console fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.practice-console legend { margin: 0 0 7px; padding: 0; color: var(--practice-muted); font-size: 13px; }
.practice-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.practice-options:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-options button { min-width: 0; overflow-wrap: anywhere; }
.practice-options button small { display: block; margin-top: 4px; }
.practice-range { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-top: 8px; font-size: 13px; }
.practice-range input { grid-column: 1 / -1; width: 100%; margin: 0; height: 28px; accent-color: var(--practice-accent); }
.practice-range output { color: var(--practice-accent); font-weight: 700; }
.practice-metrics { display: flex; flex-wrap: wrap; gap: 8px 19px; padding-block: 4px; }
.practice-metrics > span { display: grid; gap: 2px; }
.practice-metrics b { font-variant-numeric: tabular-nums; }
.practice-arcade button.practice-primary {
  min-height: 47px;
  border-color: var(--practice-accent);
  background: var(--practice-accent);
  color: #211723;
  font-size: 16px;
}
.practice-settlement { display: grid; gap: 6px; font-size: 14px; }
.practice-settlement > strong { color: var(--practice-accent); font-size: 22px; }
.practice-settlement > span { color: var(--practice-muted); }
.practice-history { display: grid; gap: 6px; }
.practice-history section { display: grid; grid-template-columns: minmax(70px, auto) 1fr; gap: 4px 12px; padding: 9px; border-bottom: 1px solid #ffffff25; overflow-wrap: anywhere; }
.practice-history small { grid-column: 2; opacity: .8; }
@media (min-width: 700px) {
  .arcade-screen.practice-arcade {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr);
    grid-template-rows: auto auto minmax(295px, 1fr);
    padding: 24px;
    gap: 14px;
    align-content: start;
  }
  .practice-header { grid-column: 1 / -1; }
  .practice-bank { grid-column: 1 / -1; justify-self: start; }
  .practice-console { align-self: start; }
}

.practice-field::after {
  position: absolute;
  inset: -10%;
  content: "";
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 52%, var(--result-light), transparent 66%);
  opacity: 0;
}
.practice-field[data-settling]::after { animation: practice-result-glow 630ms ease-out both; }
.practice-field[data-settling] .practice-display strong { animation: practice-number-arrive 410ms cubic-bezier(.15,.85,.25,1) both; }
.practice-console[data-settling] .practice-settlement { animation: practice-result-arrive 260ms ease-out both; }
.practice-field[data-phase="win"] .practice-display strong { color: var(--result-light); }
.practice-field[data-phase="loss"] .practice-display strong { color: #ffd4d8; }
.practice-field[data-reveal]:not([data-reveal=""]) {
  border-color: color-mix(in srgb, var(--practice-accent), transparent 53%);
}
.practice-revealing {
  padding: 10px 0;
  min-height: 103px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: #fff5ea;
}
.practice-revealing::after {
  content: "";
  width: 66px;
  height: 3px;
  border-radius: 4px;
  background: var(--practice-accent);
  transform-origin: left;
  animation: practice-reveal-progress 740ms cubic-bezier(.24,.62,.36,1) both;
}
.practice-arcade[data-game="hilo"] .practice-revealing::after { animation-duration: 510ms; }
.practice-arcade[data-game="limbo"] .practice-revealing::after { animation-duration: 780ms; }
@keyframes practice-reveal-progress {
  from { transform: scaleX(.16); opacity: .38; }
  to { transform: scaleX(1); opacity: .95; }
}
@keyframes practice-result-glow {
  0% { opacity: .24; transform: scale(.65); }
  100% { opacity: 0; transform: scale(1.35); }
}
@keyframes practice-number-arrive {
  from { opacity: .55; transform: scale(.87); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes practice-result-arrive {
  from { opacity: .55; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The flight trail stays in view below the live multiplier. */
.practice-arcade[data-game="crash"] .practice-field {
  display: block;
  background:
    linear-gradient(115deg, #0c1023f2, #1f1926db 48%, #1d1a2494),
    var(--practice-art) center 58% / cover;
}
.practice-arcade[data-game="crash"] .practice-display {
  position: absolute;
  inset: max(14px, 12%) 10px auto;
}
.practice-arcade[data-game="crash"] .practice-field[data-phase="loss"][data-settling] .practice-chart {
  animation: practice-flight-impact 340ms ease-out both;
}
@keyframes practice-flight-impact {
  25% { transform: translate(3px, 1px); }
  46% { transform: translate(-2px, 1px); }
  68% { transform: translate(1px, 0); }
}

/* The animated dice are decorative. The precise roll lands on the numbered track. */
.practice-arcade[data-game="classic-dice"] .practice-field {
  grid-template-rows: minmax(0, 1fr) auto;
}
.practice-dice-center {
  min-height: 0;
  width: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
}
.practice-dice-track { margin-bottom: clamp(10px, 3vw, 23px); }
.practice-field[data-settling] .practice-dice-track i { animation: practice-dice-land 370ms cubic-bezier(.18,.8,.3,1) both; }
@keyframes practice-dice-land {
  from { left: 50%; opacity: .4; transform: translate(-50%, -6px); }
  to { left: var(--roll); opacity: 1; transform: translate(-50%, 0); }
}
.practice-dice-pair {
  --die-size: clamp(43px, 12vw, 69px);
  --die-depth: calc(var(--die-size) / 2);
  display: flex;
  gap: clamp(23px, 9vw, 60px);
  perspective: 460px;
}
.practice-die-travel {
  --die-angle: 1;
  --die-start: 23deg;
  animation: practice-die-travel 730ms cubic-bezier(.18,.59,.25,1) both;
}
.practice-die-travel:nth-child(2) {
  --die-angle: -1;
  --die-start: 55deg;
  animation-duration: 650ms;
  animation-delay: 54ms;
}
.practice-die {
  width: var(--die-size);
  height: var(--die-size);
  position: relative;
  transform-style: preserve-3d;
  animation: practice-die-tumble 730ms ease-out both;
}
.practice-die-travel:nth-child(2) .practice-die { animation-duration: 650ms; animation-delay: 54ms; }
.practice-die-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid: repeat(3, 1fr) / repeat(3, 1fr);
  place-items: center;
  padding: 12%;
  border: 1px solid #9fecd0c7;
  border-radius: 13%;
  background: linear-gradient(142deg, #4b9c85, #173e39 55%, #0c2421);
  box-shadow: 0 0 8px #6fdbb355, inset 0 0 7px #b8ffdb77;
  backface-visibility: hidden;
}
.practice-die-face:nth-child(1) { transform: translateZ(var(--die-depth)); }
.practice-die-face:nth-child(2) { transform: rotateY(90deg) translateZ(var(--die-depth)); }
.practice-die-face:nth-child(3) { transform: rotateY(180deg) translateZ(var(--die-depth)); }
.practice-die-face:nth-child(4) { transform: rotateY(-90deg) translateZ(var(--die-depth)); }
.practice-die-face:nth-child(5) { transform: rotateX(90deg) translateZ(var(--die-depth)); }
.practice-die-face:nth-child(6) { transform: rotateX(-90deg) translateZ(var(--die-depth)); }
.practice-die-face i {
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #effce3;
  box-shadow: 0 1px 3px #0a2b1d;
}
.practice-die-face[data-face="1"] i,
.practice-die-face[data-face="3"] i:nth-child(2),
.practice-die-face[data-face="5"] i:last-child { grid-area: 2 / 2; }
.practice-die-face:not([data-face="1"]) i:first-child { grid-area: 1 / 1; }
.practice-die-face:is([data-face="2"],[data-face="3"]) i:last-child { grid-area: 3 / 3; }
.practice-die-face:is([data-face="4"],[data-face="5"],[data-face="6"]) i:nth-child(2) { grid-area: 1 / 3; }
.practice-die-face:is([data-face="4"],[data-face="5"],[data-face="6"]) i:nth-child(3) { grid-area: 3 / 1; }
.practice-die-face:is([data-face="4"],[data-face="5"],[data-face="6"]) i:nth-child(4) { grid-area: 3 / 3; }
.practice-die-face[data-face="6"] i:nth-child(5) { grid-area: 2 / 1; }
.practice-die-face[data-face="6"] i:nth-child(6) { grid-area: 2 / 3; }
@keyframes practice-die-travel {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--die-angle) * -48px), -35px, -50px);
  }
  20% { opacity: 1; }
  63% { transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes practice-die-tumble {
  from { transform: rotateX(var(--die-start)) rotateY(calc(var(--die-angle) * 26deg)); }
  39% { transform: rotateX(174deg) rotateY(calc(var(--die-angle) * 205deg)) rotateZ(25deg); }
  68% { transform: rotateX(291deg) rotateY(calc(var(--die-angle) * 304deg)) rotateZ(-18deg); }
  to { transform: rotateX(390deg) rotateY(calc(var(--die-angle) * 392deg)) rotateZ(calc(var(--die-angle) * 15deg)); }
}

.practice-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.practice-orbit i {
  position: absolute;
  width: min(53%, 240px);
  max-height: 91%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #e4b9fa49;
  box-shadow: inset 0 0 20px #9c68e93d, 0 0 24px #b568e840;
  transform: rotate(-20deg) scaleY(.78);
}
.practice-orbit i:nth-child(2) {
  width: min(70%, 320px);
  --turn: 35deg;
  border-color: #ffce8e45;
  transform: rotate(var(--turn)) scaleY(.78);
}
.practice-orbit i:nth-child(3) {
  width: min(84%, 394px);
  --turn: 82deg;
  border-color: #ecd9fa26;
  transform: rotate(var(--turn)) scaleY(.82);
}
.practice-field[data-reveal="draw"] .practice-orbit i { animation: practice-orbit-charge 780ms ease-in-out both; }
.practice-field[data-reveal="draw"] .practice-orbit i:nth-child(2) { animation-delay: 55ms; }
.practice-field[data-reveal="draw"] .practice-orbit i:nth-child(3) { animation-delay: 110ms; }
@keyframes practice-orbit-charge {
  0% { opacity: .25; transform: rotate(var(--turn, -20deg)) scale(.72, .54); }
  58% {
    opacity: 1;
    border-color: #f6d4ff;
    box-shadow: inset 0 0 28px #a665ec8f, 0 0 28px #f2bef2af;
    transform: rotate(calc(var(--turn, -20deg) + 135deg)) scale(1.08, .87);
  }
  100% { opacity: .63; transform: rotate(calc(var(--turn, -20deg) + 230deg)) scale(1, .79); }
}

.practice-card-flip {
  filter: drop-shadow(0 4px 15px #f591ae50);
  animation: practice-card-deal 500ms cubic-bezier(.17,.72,.3,1) both;
}
.practice-card-turn {
  display: grid;
  transform-style: preserve-3d;
  animation: practice-card-turn 500ms cubic-bezier(.3,.05,.32,1) both;
}
.practice-card-turn > div {
  grid-area: 1 / 1;
  backface-visibility: hidden;
}
.practice-card-turn > div + div { transform: rotateY(180deg); }
@keyframes practice-card-deal {
  0% { opacity: .15; transform: translate(24px, -20px) rotate(9deg) scale(.84); }
  22% { opacity: 1; }
  100% { transform: translate(0) rotate(0) scale(1); }
}
@keyframes practice-card-turn {
  from { transform: rotateY(180deg); }
  15% { transform: rotateY(162deg); }
  to { transform: rotateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .practice-arcade *, .practice-arcade *::after { animation-duration: .001s !important; }
}
