:root {
  --felt: #5a4228; --gold: #f2c230; --cream: #f1e7d0; --ink: #0d0906;
  --tilt: 46deg; --zoom: 1.14; --W: 390; --H: 844; --s: 1; --sy: 0;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #070504; overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--sans); color: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- stage: a fixed 390-wide portrait world, scaled to the screen */
#stage {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--W) * 1px); height: calc(var(--H) * 1px);
  transform: translate(-50%, -50%) scale(var(--s));
  overflow: hidden; overflow: clip;
  background:
    radial-gradient(ellipse 60% 14% at 50% 2%, rgba(255, 196, 120, .28), transparent 70%),
    radial-gradient(circle at 18% 6%, rgba(255, 170, 90, .18) 0 14px, transparent 30px),
    radial-gradient(circle at 82% 4%, rgba(255, 210, 140, .16) 0 10px, transparent 26px),
    radial-gradient(circle at 64% 9%, rgba(255, 120, 80, .12) 0 8px, transparent 22px),
    linear-gradient(#1a120b, #0d0906 40%);
}
#stage.framed { border-radius: 30px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }

#scene {
  position: absolute; left: calc((var(--W) - 390) / 2 * 1px); top: calc(var(--sy) * 1px);
  width: 390px; height: 844px;
  perspective: 760px; perspective-origin: 50% 18%;
  transform: scale(var(--zoom)); transform-origin: 50% 6%;
}
#table {
  position: absolute; left: -255px; top: -300px; width: 900px; height: 1200px;
  transform-origin: 50% 100%; transform: rotateX(var(--tilt)); transform-style: preserve-3d;
  background:
    radial-gradient(ellipse 60% 38% at 50% 64%, rgba(255, 224, 170, .17), transparent 70%),
    radial-gradient(ellipse 110% 75% at 50% 70%, transparent 45%, rgba(0, 0, 0, .55) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--felt);
}
#felt { position: absolute; inset: 0; width: 100%; height: 100%; }
#layer { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }

.print { fill: var(--cream); font-family: var(--serif); font-weight: 700; letter-spacing: 3px; }
.t1 { font-size: 44px; }
.t2 { font-size: 27px; letter-spacing: 2px; }
.t3 { font-size: 18px; letter-spacing: 5px; opacity: .45; }
.band { fill: none; stroke: var(--gold); stroke-width: 4; }
.ins { fill: var(--gold); font: 700 50px var(--serif); letter-spacing: 6px; }
.spot { fill: none; stroke: var(--gold); stroke-width: 4; }
.spot.thin { stroke-width: 1.5; opacity: .55; }
.side .spot { stroke-width: 3; }
.crown { fill: var(--gold); opacity: .8; }
.side-t { fill: var(--gold); font: 700 13px var(--sans); letter-spacing: 1.5px; opacity: .85; }
.side-t.big { font: 700 28px var(--serif); }
.spotring {
  position: absolute; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(255, 236, 170, .85), 0 0 30px rgba(242, 194, 48, .7); animation: mark 1.2s ease-in-out infinite;
}
.spot-mark { fill: rgba(242, 194, 48, .22); font: italic 700 46px var(--serif); }
.logo { fill: none; stroke: var(--gold); stroke-width: 4; }
.logo-t { fill: var(--gold); font: italic 700 66px var(--serif); }

/* ---------- dealer's chip rack (lies on the felt, tubes raised, front lip standing) */
.rack {
  position: absolute; left: 180px; top: 0; width: 540px; height: 118px;
  transform-style: preserve-3d;
  background: linear-gradient(#2a2420, #3b332c); border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, .55);
}
.tubes { position: absolute; inset: 0; transform-style: preserve-3d; }
.tube {
  position: absolute; top: 4px; width: 48px; height: 104px; border-radius: 24px 24px 6px 6px;
  transform: translateZ(30px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 28%, rgba(255, 255, 255, .28) 48%, transparent 66%, rgba(0, 0, 0, .6)),
    repeating-linear-gradient(180deg, var(--c) 0 4px, color-mix(in srgb, var(--c) 55%, #000) 4px 5px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .55) 9px 13px);
}
.tface {
  position: absolute; top: 62px; width: 48px; height: 48px; border-radius: 50%;
  transform-origin: 50% 100%; transform: rotateX(-90deg);
}
.rack-lip {
  position: absolute; left: -6px; right: -6px; bottom: 0; height: 18px;
  transform-origin: 50% 100%; transform: rotateX(-90deg);
  background: linear-gradient(#f4efe6, #bdb3a3); border-radius: 4px 4px 0 0;
}

/* ---------- shoe + discard holder */
.shoe {
  position: absolute; left: 608px; top: 150px; width: 120px; height: 150px;
  transform: rotateZ(25deg); transform-style: preserve-3d;
  border-radius: 10px; box-shadow: 0 16px 22px rgba(0, 0, 0, .55); background: rgba(0, 0, 0, .35);
}
.shoe-top {
  position: absolute; inset: 0; border-radius: 10px; transform: translateZ(44px); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 40%), rgba(18, 16, 20, .9);
  border: 2px solid rgba(255, 255, 255, .14);
}
.shoe-cards {
  position: absolute; left: 12px; right: 12px; top: 18px; bottom: 34px; border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 9px), #8e2a1b;
  box-shadow: inset 0 0 0 3px #e9e1d1; opacity: .75;
}
.shoe.glow .shoe-top { animation: shoeglow .9s ease-out; }
@keyframes shoeglow { 30% { box-shadow: 0 0 0 3px var(--gold), 0 0 40px var(--gold); } }
.shoe-front {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 44px;
  transform-origin: 50% 100%; transform: rotateX(-90deg); border-radius: 6px 6px 0 0;
  background: linear-gradient(#2c2a30, #121116); border: 2px solid rgba(255, 255, 255, .12);
}
.shoe-front::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 6px; border-radius: 3px; background: #000; }
.discard {
  position: absolute; left: 138px; top: 162px; width: 114px; height: 150px; border-radius: 10px;
  transform-style: preserve-3d;
  background: rgba(0, 0, 0, .22); border: 2px solid rgba(255, 255, 255, .14);
}
.discard-lip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  transform-origin: 50% 100%; transform: rotateX(-90deg);
  background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .06)); border-radius: 4px 4px 0 0;
}

/* ---------- cards */
.card { position: absolute; left: 0; top: 0; width: 100px; height: 140px; margin: -70px 0 0 -50px; transform-style: preserve-3d; will-change: transform; }
.ci { position: absolute; inset: 0; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 6px 12px rgba(0, 0, 0, .35);
}
.front { background: linear-gradient(160deg, #fffdf7, #f1ebdd); color: #161616; font-family: var(--serif); overflow: hidden; }
.front.red { color: #c0262d; }
.idx { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; align-items: center; line-height: .86; font-weight: 700; }
.idx b { font-size: 31px; letter-spacing: -2px; }
.idx i { font-style: normal; font-size: 25px; }
.idx.br { left: auto; top: auto; right: 6px; bottom: 6px; transform: rotate(180deg); }
.pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px; padding-left: 10px; padding-top: 6px; }
.court {
  position: absolute; left: 30px; right: 12px; top: 16px; bottom: 16px; border-radius: 5px;
  border: 2px solid currentColor; display: grid; place-items: center; text-align: center;
  font-size: 46px; font-weight: 700; line-height: .9;
  background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, currentColor 9%, transparent) 6px 7px);
}
.court small { display: block; font-size: 26px; }
.back {
  transform: rotateY(180deg); border: 5px solid #fbf6ea;
  background:
    radial-gradient(circle at 50% 50%, #fbf6ea 0 11px, transparent 12px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .2) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 2px, transparent 2px 10px),
    #a3301f;
}
.back::after { content: ''; position: absolute; inset: 4px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 4px; }
.cutcard { position: absolute; left: 0; top: 0; width: 104px; height: 140px; margin: -70px 0 0 -52px; border-radius: 6px; background: linear-gradient(#ffd84a, #f0b400); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }

/* ---------- hands */
.hand { position: absolute; left: 0; top: 0; width: 220px; height: 1000px; pointer-events: none; will-change: transform; }
.hand svg { display: block; }
.hand.shadow { filter: brightness(0) blur(6px); opacity: .3; height: 330px; overflow: hidden; }
.tapring { position: absolute; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid rgba(255, 236, 190, .55); pointer-events: none; }

/* ---------- chips */
.chip {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; color: var(--t, #fff); font: 800 15px/1 var(--sans); letter-spacing: -.02em;
  background:
    radial-gradient(circle, var(--c) 0 54%, transparent 55%),
    repeating-conic-gradient(var(--c) 0 32deg, #f6f0e2 32deg 45deg);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 45%, #000), 0 8px 8px rgba(0, 0, 0, .45);
}
.chip::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .55); }
.chip span { position: relative; }

/* ---------- billboards: things that stand up and face the camera */
.bb { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; }
.tag {
  transform: translate(-50%, -100%); white-space: nowrap;
  padding: 5px 14px 6px; border-radius: 999px; font: 800 27px/1 var(--sans); font-variant-numeric: tabular-nums;
  background: rgba(10, 8, 6, .86); border: 2px solid rgba(242, 194, 48, .65); color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.tag.bust { background: #b3261e; border-color: #ff8a80; }
.tag.bj { background: var(--gold); color: #2a1d00; border-color: #fff3c4; }
.tag.good { border-color: #6be28f; }
.float {
  transform: translate(-50%, -100%); white-space: nowrap; font: 900 46px/1 var(--sans); letter-spacing: .02em;
  color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 10px 26px rgba(0, 0, 0, .6);
}
.float.win { color: #8dffb0; }
.float.bj { color: var(--gold); font-size: 52px; }
.float.lose { color: #ff8a80; }
.marker {
  position: absolute; left: 0; top: 0; width: 190px; height: 200px; margin: -100px 0 0 -95px; border-radius: 22px;
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .9), 0 0 34px rgba(242, 194, 48, .5), inset 0 0 30px rgba(242, 194, 48, .25);
  animation: mark 1.2s ease-in-out infinite; opacity: 0;
}
@keyframes mark { 50% { opacity: .45; } 0%, 100% { opacity: 1; } }

/* ---------- HUD */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
.bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) / var(--s) + 10px) 14px 14px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}
.bank {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 16px 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(242, 194, 48, .45); box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.bank small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bank b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bank { position: relative; }
.net {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .2); color: #fff; pointer-events: none;
}
.net.up { color: #8dffb0; border-color: rgba(141, 255, 176, .5); }
.net.down { color: #ff8a80; border-color: rgba(255, 138, 128, .5); }
.bank.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(242, 194, 48, .5), 0 0 30px rgba(242, 194, 48, .5); } }
.bar-r { display: flex; gap: 8px; }
.icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); transition: transform .1s, border-color .2s;
}
.icon:active { transform: scale(.9); }
.icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.on { border-color: var(--gold); box-shadow: 0 0 14px rgba(242, 194, 48, .35); }
.icon.on svg { stroke: var(--gold); }
#sndBtn .off { display: none; }
#sndBtn.muted .on { display: none; }
#sndBtn.muted .off { display: inline; }

.dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 12px calc(env(safe-area-inset-bottom) / var(--s) + 14px);
  background: linear-gradient(transparent, rgba(8, 6, 4, .74) 40px, rgba(8, 6, 4, .93));
}
.status {
  text-align: center; font-weight: 700; font-size: 15px; letter-spacing: .03em; color: var(--cream);
  min-height: 20px; padding: 26px 0 12px; text-shadow: 0 1px 3px #000;
}
.status.pop { animation: spop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes spop { from { transform: translateY(6px) scale(.94); opacity: 0; } }
.status em { font-style: normal; color: var(--gold); }
.panel { display: none; min-height: 74px; }
.panel.on { display: grid; }
#betPanel { gap: 12px; }
.targets { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.tgt {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 7px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12); transition: border-color .2s, background .2s, transform .1s;
}
.tgt:active { transform: scale(.96); }
.tgt small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9b88f; }
.tgt b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tgt.on { border-color: var(--gold); background: rgba(242, 194, 48, .14); box-shadow: 0 0 16px rgba(242, 194, 48, .25); }
.tgt.on small { color: var(--gold); }
.chiprow { display: flex; justify-content: space-between; padding: 0 2px; }
.chip.hud { position: relative; margin: 0; width: 62px; height: 62px; font-size: 16px; transition: transform .12s, filter .2s; }
.chip.hud:active { transform: translateY(4px) scale(.93); }
.chip.hud:disabled { filter: grayscale(.85) brightness(.5); }
.row4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 8px; }
#playPanel { grid-template-columns: 1fr 1fr 1.25fr 1.25fr; gap: 8px; }
#insPanel { grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  --b1: #3a3530; --b2: #26221e; --b3: #120f0c;
  position: relative; overflow: hidden; height: 58px; border-radius: 16px;
  font: 800 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: 0 5px 0 var(--b3), 0 10px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .07s, box-shadow .07s, filter .25s, opacity .25s;
}
.btn.down { transform: translateY(4px); box-shadow: 0 1px 0 var(--b3), 0 4px 8px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:disabled { filter: grayscale(1) brightness(.5); opacity: .7; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn.act { height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-radius: 18px; font-size: 13px; }
.btn.act svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.hit { --b1: #34b862; --b2: #1d8a43; --b3: #0e5a29; }
.stand { --b1: #e0503f; --b2: #b02e24; --b3: #6e1812; }
.double, .deal { --b1: #f7cc4d; --b2: #d9a21b; --b3: #8a6306; color: #2a1d00; }
.split { --b1: #4689e3; --b2: #2a5fb0; --b3: #163870; }
.ghost { font-size: 12px; color: #e9dcc0; --b1: #3c342b; --b2: #2a241e; --b3: #14100c; }
.deal { font-size: 18px; letter-spacing: .12em; }
.deal::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -70%; } 100% { left: 140%; } }
.deal.ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 5px 0 var(--b3), 0 0 28px rgba(242, 194, 48, .75), inset 0 1px 0 rgba(255, 255, 255, .35); } }
.btn.hint { outline: 3px solid #fff; outline-offset: 3px; animation: hint 1s ease-in-out infinite; }
@keyframes hint { 50% { outline-color: rgba(255, 255, 255, .15); filter: brightness(1.2); } }
.ripple { position: absolute; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: rgba(255, 255, 255, .5); pointer-events: none; animation: ripple .55s ease-out forwards; }
@keyframes ripple { from { transform: scale(0); } to { transform: scale(5); opacity: 0; } }

/* ---------- intro */
#intro {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5;
  background: radial-gradient(ellipse at 50% 46%, rgba(13, 9, 6, .45), rgba(13, 9, 6, .94) 75%);
  transition: opacity .5s;
}
#intro.out { opacity: 0; pointer-events: none; }
.intro-in { display: grid; gap: 36px; justify-items: center; padding: 24px; margin-top: 40px; }
.title { font: 700 66px/1 var(--serif); color: var(--gold); text-align: center; text-shadow: 0 2px 0 #7a5a08, 0 14px 34px rgba(0, 0, 0, .7); }
.title small { display: block; font: 700 12px var(--sans); letter-spacing: .45em; color: var(--cream); text-transform: uppercase; margin-bottom: 14px; text-shadow: none; }
.title em { display: block; font-size: 23px; color: var(--cream); margin-top: 10px; text-shadow: none; }
.btn.big { height: 70px; padding: 0 48px; font-size: 19px; }
.fine { font-size: 12px; color: #a8977a; text-align: center; line-height: 1.7; }

/* ---------- menu sheet */
#menu { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .6); }
#menu[hidden] { display: none; }
.pays { border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 10px 2px 12px; }
.pays summary { font-weight: 600; cursor: pointer; color: var(--gold); }
.pays h3 { font-size: 14px; margin: 14px 0 6px; }
.pays h3 small { display: block; font-weight: 400; font-size: 11px; color: #a8977a; }
.pays table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pays td { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pays td:last-child { text-align: right; color: var(--gold); font-weight: 700; white-space: nowrap; }
.pays p { font-size: 12px; color: #a8977a; margin-top: 10px; line-height: 1.5; }
.sheet {
  width: 100%; display: grid; gap: 6px; padding: 22px 18px calc(env(safe-area-inset-bottom) / var(--s) + 18px);
  background: #1b150f; border-top: 1px solid rgba(242, 194, 48, .4); border-radius: 24px 24px 0 0;
  animation: sheet .35s cubic-bezier(.2, .9, .3, 1);
  max-height: 92%; overflow-y: auto;
}
@keyframes sheet { from { transform: translateY(100%); } }
.sheet h2 { font: 700 26px var(--serif); color: var(--gold); margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stats div { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stats small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a8977a; }
.tog { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-weight: 600; }
.tog small { display: block; font-weight: 400; font-size: 12px; color: #a8977a; margin-top: 2px; }
.tog input { display: none; }
.tog i { width: 50px; height: 30px; border-radius: 15px; background: #3a332b; position: relative; transition: background .2s; flex: none; }
.tog i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.tog input:checked + i { background: var(--gold); }
.tog input:checked + i::after { transform: translateX(20px); }
.sheet-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }

#rotate { position: fixed; inset: 0; z-index: 10; display: none; place-items: center; background: #0d0906; color: var(--cream); text-align: center; font-weight: 700; }
#rotate svg { display: block; width: 48px; height: 48px; margin: 0 auto 14px; fill: none; stroke: var(--gold); stroke-width: 1.6; animation: tilt 1.6s ease-in-out infinite; }
@keyframes tilt { 50% { transform: rotate(-90deg); } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) { #rotate { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  .deal::after, .deal.ready, .marker, .btn.hint { animation: none; }
}
