/* Game 04 · Spintax Jackpot. Every rule is scoped under .g-spintax. */

.g-spintax .sx {
  --sx-gold: #FFC531;
  --sx-gold-l: #FFF1C2;
  --sx-rh: clamp(38px, 8.6cqh, 58px);   /* one reel row */
  --sx-rows: 2.6;                        /* rows visible in a reel window */
  --sx-chase: 1.8s;                      /* one lap of the bulb chase */
  --sx-f1: clamp(13px, 2cqw, 22px);      /* greeting + name */
  --sx-f3: clamp(11.5px, 1.5cqw, 17px);  /* opener */
  position: absolute; inset: 0; isolation: isolate; overflow: hidden; font-family: var(--font);
}
.g-spintax .sx::before,
.g-spintax .sx::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.g-spintax .sx::before { background: radial-gradient(60% 60% at 38% 52%, rgba(57, 255, 20, .10), transparent 70%); }
.g-spintax .sx::after {
  opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(70% 62% at 38% 50%, rgba(239, 68, 68, .24), transparent 72%),
              linear-gradient(transparent 60%, rgba(255, 176, 32, .08));
}
.g-spintax .sx.insane::after { opacity: 1; }

/* ── HUD ── */
.g-spintax .sx-jc b { color: var(--sx-gold); }
.g-spintax .sx-star { color: var(--sx-gold); font-size: 13px; }
.g-spintax .sx-tl { margin-right: 2px; }
.g-spintax .sx-tc b { text-transform: none; }
.g-spintax .sx-ins { display: none; color: #fff; background: var(--red); border-color: var(--ink); box-shadow: 2px 2px 0 #000; }
.g-spintax .insane .sx-ins { display: inline-flex; animation: sxPulse 1.1s ease-in-out infinite; }
.g-spintax .final .sx-tc { border-color: var(--red); }
.g-spintax .final .sx-tc b { color: #FF6B6B; }
.g-spintax .final .g-timer > i { background: var(--red); }
.g-spintax .g-timer > i { transform-origin: left; }
@keyframes sxPulse { 50% { transform: scale(1.07); } }

/* ── layout ── */
.g-spintax .sx-main {
  position: absolute; inset: 58px 18px 22px; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 27cqw, 310px); gap: clamp(14px, 2.2cqw, 28px); align-items: center;
}
.g-spintax .sx-mach { position: relative; justify-self: center; width: min(100%, 640px); touch-action: none; cursor: pointer; }

/* ── the machine ── */
.g-spintax .sx-cab {
  position: relative; padding: 16px 14px; background: var(--lime); border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 8px 8px 0 #000, inset 0 -5px 0 var(--lime-a);
}
.g-spintax .sx-in { position: relative; display: grid; gap: 12px; padding: 12px; background: var(--panel2); border: 3px solid var(--ink); border-radius: 16px; }

.g-spintax .sx-bulbs { position: absolute; left: 24px; right: 24px; height: 9px; display: flex; justify-content: space-between; pointer-events: none; }
.g-spintax .sx-bulbs.t { top: 2px; }
.g-spintax .sx-bulbs.b { bottom: 2px; }
.g-spintax .sx-bulbs i {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: #1F6D12;
  animation: sxBulb var(--sx-chase) linear infinite; animation-delay: calc(var(--i) * var(--sx-chase) / -16);
}
/* each bulb lights once per lap: at most ~2 times a second even in INSANE */
@keyframes sxBulb {
  0%, 22% { background: #FFF6B8; box-shadow: 0 0 7px 2px rgba(255, 240, 140, .85); }
  25%, 100% { background: #1F6D12; box-shadow: none; }
}
@keyframes sxBulbHot {
  0%, 30% { background: #FFD24A; box-shadow: 0 0 8px 3px rgba(255, 120, 60, .85); }
  33%, 100% { background: #7A1414; box-shadow: none; }
}
.g-spintax .insane { --sx-chase: .55s; }
.g-spintax .insane .sx-bulbs i { animation-name: sxBulbHot; background: #7A1414; }

.g-spintax .sx-mq { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 26px; }
.g-spintax .sx-ttl {
  font: 900 clamp(17px, 2.3cqw, 26px)/1 var(--font); letter-spacing: -.035em; text-transform: uppercase;
  color: var(--lime); text-shadow: 2px 2px 0 #000; font-variation-settings: 'opsz' 32; white-space: nowrap;
}
.g-spintax .sx-ttl em { font-style: normal; color: var(--sx-gold); }
.g-spintax .sx-mq-ins {
  display: none; padding: 3px 7px; font: 800 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--red); border: 2px solid var(--ink); border-radius: 7px; box-shadow: 2px 2px 0 #000; transform: rotate(-4deg);
}
.g-spintax .insane .sx-mq-ins { display: inline-block; }

/* the golden target */
.g-spintax .sx-tgt {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 10px 5px 5px;
  background: #17140A; border: 2px solid var(--sx-gold); border-radius: 11px; transition: box-shadow .2s;
}
.g-spintax .sx-tgt-l {
  flex: none; padding: 3px 7px; font: 800 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--sx-gold); border: 1.5px solid var(--ink); border-radius: 6px;
}
.g-spintax .sx-tgt-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(12px, 1.5cqw, 15px)/1.3 var(--font); color: var(--sx-gold); }
.g-spintax .sx-tgt-c i { font-style: normal; padding: 0 .35em; color: rgba(255, 197, 49, .45); }
.g-spintax .sx-tgt.two { box-shadow: 0 0 0 2px var(--sx-gold), 0 0 16px rgba(255, 197, 49, .5); }
.g-spintax .sx-tgt.hit { animation: sxJp 1.1s var(--ease); }
@keyframes sxJp { 0% { background: var(--sx-gold); transform: scale(1.06); } 100% { background: #17140A; transform: none; } }
.g-spintax .sx-tgt.hit .sx-tgt-c { animation: sxJpText 1.1s var(--ease); }
@keyframes sxJpText { 0% { color: var(--ink); } 100% { color: var(--sx-gold); } }

/* reels */
.g-spintax .sx-reels {
  position: relative; display: grid; grid-template-columns: 1fr 1fr 2.1fr; gap: 8px; padding: 8px 16px;
  background: var(--ink); border-radius: 12px; transition: box-shadow .4s;
}
.g-spintax .sx-reels::before,
.g-spintax .sx-reels::after { content: ''; position: absolute; top: 50%; border: 7px solid transparent; transform: translateY(-50%); }
.g-spintax .sx-reels::before { left: 1px; border-left-color: var(--lime); }
.g-spintax .sx-reels::after { right: 1px; border-right-color: var(--lime); }
.g-spintax .insane .sx-reels {
  background: repeating-linear-gradient(-45deg, #3A0C0C 0 10px, #150404 10px 20px); animation: sxHaz .9s linear infinite;
  box-shadow: 0 0 0 2px var(--red), 0 0 22px rgba(239, 68, 68, .45);
}
@keyframes sxHaz { to { background-position: 28.284px 0; } }
.g-spintax .insane .sx-cab { box-shadow: 8px 8px 0 #000, inset 0 -5px 0 var(--lime-a), 0 0 48px rgba(239, 68, 68, .4); }
.g-spintax .insane .sx-ttl { color: #FF6B6B; animation: sxWob .7s ease-in-out infinite; }
@keyframes sxWob { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg) scale(1.04); } }
.g-spintax .insane .sx-reels::before { border-left-color: #FF6B6B; }
.g-spintax .insane .sx-reels::after { border-right-color: #FF6B6B; }

.g-spintax .sx-reel {
  position: relative; min-width: 0; height: calc(var(--sx-rh) * var(--sx-rows)); overflow: hidden;
  background: #F5F5FB; border: 2px solid #34344A; border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
/* the drum's curve, then the highlighted window */
.g-spintax .sx-reel::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(10, 10, 15, .62), rgba(10, 10, 15, 0) 33%, rgba(10, 10, 15, 0) 67%, rgba(10, 10, 15, .62));
}
.g-spintax .sx-reel::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none;
  top: calc(50% - var(--sx-rh) / 2 - 1px); height: calc(var(--sx-rh) + 2px);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: rgba(57, 255, 20, .14);
}
.g-spintax .sx-reel.act { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 0 18px rgba(57, 255, 20, .5); }
.g-spintax .sx-reel.won { border-color: var(--sx-gold); box-shadow: 0 0 0 2px var(--sx-gold), 0 0 16px rgba(255, 197, 49, .45); }
.g-spintax .sx-strip { position: absolute; left: 0; right: 0; top: calc(50% - var(--sx-rh) / 2); will-change: transform; }
.g-spintax .sx-it {
  position: relative; height: var(--sx-rh); display: flex; align-items: center; justify-content: center; padding: 0 6px; text-align: center;
  font: 800 var(--sx-f1)/1.05 var(--font); letter-spacing: -.03em; color: var(--ink); border-bottom: 1px solid rgba(10, 10, 15, .1);
}
.g-spintax .sx-it span { overflow: hidden; }
.g-spintax .r2 .sx-it { font-size: var(--sx-f3); font-weight: 750; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.g-spintax .sx-it.gold { background: var(--sx-gold-l); color: #7A4B00; }
.g-spintax .sx-it.gold::before { content: '★'; position: absolute; top: 2px; left: 5px; font-size: 10px; line-height: 1; color: #C98A00; }
.g-spintax .sx-it.used { background: repeating-linear-gradient(-45deg, #FFD0D0 0 7px, #FFC0C0 7px 14px); color: #B91C1C; box-shadow: inset 4px 0 0 var(--red); }
.g-spintax .sx-it.used span { text-decoration: line-through 2px; }
.g-spintax .sx-it.used::before { content: none; }
.g-spintax .sx-it.used::after {
  content: 'Sent'; position: absolute; top: 3px; right: 4px; padding: 1px 4px; font: 800 8.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 4px;
}
.g-spintax .sx-auto {
  position: absolute; left: 6px; right: 6px; bottom: 5px; z-index: 4; height: 5px; border-radius: 3px; opacity: 0;
  background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); transform-origin: left;
}
.g-spintax .sx-reel.act .sx-auto { opacity: 1; }
.g-spintax .sx-auto.low { background: #FF6B6B; }

/* the message being assembled */
.g-spintax .sx-bub {
  position: relative; min-height: 46px; padding: 10px 58px 10px 14px; font: 650 clamp(13px, 1.65cqw, 17px)/1.35 var(--font); color: var(--ink);
  background: #E3FFD6; border: 2px solid var(--ink); border-radius: 14px 14px 4px 14px; box-shadow: 3px 3px 0 #000; transition: background-color .2s, border-color .2s;
}
.g-spintax .sx-ph {
  display: inline-block; padding: 0 5px; font: 700 .8em/1.45 var(--mono); color: #6B6B8A; vertical-align: 1px;
  background: rgba(10, 10, 15, .05); border: 1.5px dashed rgba(10, 10, 15, .32); border-radius: 6px;
}
.g-spintax .sx-ph.on {
  padding: 0 1px; font: inherit; color: var(--ink); vertical-align: baseline; border: 0; border-radius: 0;
  background: linear-gradient(transparent 58%, rgba(57, 255, 20, .8) 58%); animation: sxWord .3s var(--spring) both;
}
.g-spintax .sx-ph.on.gold { background: linear-gradient(transparent 58%, rgba(255, 197, 49, .95) 58%); }
@keyframes sxWord { from { transform: translateY(-6px); opacity: 0; } }
.g-spintax .sx-meta { position: absolute; right: 9px; bottom: 6px; font: 700 10.5px/1 var(--mono); color: #8A9A8A; }
.g-spintax .sx-ok { display: none; }
.g-spintax .sx-bub.sent .sx-meta { color: var(--lime-deep); }
.g-spintax .sx-bub.sent .sx-ok { display: inline; }
.g-spintax .sx-bub.dup { background: #FFDCDC; border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.g-spintax .sx-bub.dup .sx-ph.on { background: linear-gradient(transparent 58%, rgba(239, 68, 68, .45) 58%); }
.g-spintax .sx-stamp {
  position: absolute; top: -13px; right: -6px; padding: 2px 8px; font: 800 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: #fff; border: 2.5px solid var(--red); border-radius: 7px; transform: rotate(6deg);
  animation: sxStamp .35s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes sxStamp { from { transform: scale(2.6) rotate(18deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }

.g-spintax .sx-ctl { display: flex; justify-content: center; padding-bottom: 6px; }
.g-spintax .sx-spin {
  width: min(100%, 360px); min-height: 58px; padding: 10px 20px; gap: 12px; touch-action: none;
  font-size: clamp(18px, 2.2cqw, 22px); letter-spacing: .08em; text-transform: uppercase;
}
.g-spintax .sx-spin small { padding: 3px 6px; font: 700 10px/1.2 var(--mono); letter-spacing: .1em; border: 1.5px solid currentColor; border-radius: 6px; opacity: .65; }
.g-spintax .touch .sx-spin small { display: none; }
.g-spintax .sx-spin.wait { filter: brightness(.93); }

/* the lever (wide screens only) */
.g-spintax .sx-lever { display: none; position: absolute; right: -42px; top: 20%; width: 46px; height: 42%; padding: 0; background: none; border: 0; cursor: pointer; touch-action: none; }
.g-spintax .sx-lever::before {
  content: ''; position: absolute; left: 4px; bottom: 0; width: 24px; height: 34px;
  background: #2A2A3A; border: 2.5px solid var(--ink); border-left: 0; border-radius: 0 9px 9px 0;
}
.g-spintax .sx-lever i {
  position: absolute; left: 11px; bottom: 22px; width: 10px; height: calc(100% - 46px);
  background: linear-gradient(90deg, #E6E6F2, #A8A8BC); border: 2px solid var(--ink); border-radius: 5px; transform-origin: 50% 100%;
}
.g-spintax .sx-lever i::before {
  content: ''; position: absolute; left: 50%; top: -24px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFB4B4, var(--red) 58%, #B91C1C); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 #000;
}
.g-spintax .sx-lever.pull i { animation: sxPull .42s var(--ease); }
@keyframes sxPull { 40% { transform: scaleY(-.7); } 100% { transform: none; } }

/* ── the sent log ── */
.g-spintax .sx-log {
  align-self: stretch; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: rgba(15, 15, 24, .94); border: 2px solid var(--panel-line); border-radius: 18px; box-shadow: 5px 5px 0 #000;
}
.g-spintax .sx-log-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--panel-muted); }
.g-spintax .sx-log-h > b { color: var(--lime); }
.g-spintax .sx-log-h span b { font-size: 15px; letter-spacing: 0; color: var(--panel-text); font-variant-numeric: tabular-nums; }
.g-spintax .sx-odds { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 8px; padding: 10px; background: var(--panel2); border: 1.5px solid var(--panel-line); border-radius: 12px; }
.g-spintax .sx-odds-l { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); }
.g-spintax .sx-odds > b { font: 700 16px/1 var(--mono); color: var(--panel-text); font-variant-numeric: tabular-nums; }
.g-spintax .sx-odds .g-meter { grid-column: 1 / -1; height: 12px; }
.g-spintax .sx-list {
  position: relative; flex: 1; min-height: 0; margin: 0; padding: 2px 2px 0; list-style: none; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
}
.g-spintax .sx-empty { padding: 12px 4px; font: 600 12.5px/1.45 var(--font); color: var(--panel-muted); }
.g-spintax .sx-li {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 7px 9px;
  font: 600 13px/1.3 var(--font); color: var(--panel-text); background: var(--panel2); border: 1.5px solid var(--panel-line); border-radius: 10px;
}
.g-spintax .sx-li .n { font: 700 10.5px/1.65 var(--mono); color: var(--panel-muted); }
.g-spintax .sx-li .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-spintax .sx-li .ck { font: 700 10.5px/1.65 var(--mono); color: var(--lime); }
.g-spintax .sx-li.jp { border-color: var(--sx-gold); background: rgba(255, 197, 49, .12); }
.g-spintax .sx-li.jp .ck { color: var(--sx-gold); font-size: 13px; line-height: 1.3; }
.g-spintax .sx-li.warn { border-color: #FFB020; background: rgba(255, 176, 32, .1); }
.g-spintax .sx-li.dup { border-color: var(--red); background: rgba(239, 68, 68, .24); box-shadow: 0 0 0 2px var(--red); animation: sxDup .5s var(--ease); }
.g-spintax .sx-li.dup .t { -webkit-line-clamp: 4; }
.g-spintax .sx-li.dup .ck { color: #FF6B6B; }
.g-spintax .sx-li.in { animation: sxIn .38s var(--ease) both; }
@keyframes sxIn {
  from { opacity: 0; transform: translateX(-18px) scale(.94); max-height: 0; padding-top: 0; padding-bottom: 0; }
  to { max-height: 64px; }
}
@keyframes sxDup { 0% { transform: scale(1.06); } 30% { transform: translateX(-6px); } 55% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }

/* ── effects ── */
.g-spintax .sx-fly {
  position: absolute; z-index: 6; padding: 10px 58px 10px 14px; pointer-events: none; transform-origin: 0 0; overflow: hidden;
  font: 650 clamp(13px, 1.65cqw, 17px)/1.35 var(--font); color: var(--ink);
  background: #E3FFD6; border: 2px solid var(--ink); border-radius: 14px 14px 4px 14px; box-shadow: 3px 3px 0 #000;
}
.g-spintax .sx-coins { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.g-spintax .sx-coin {
  position: absolute; top: -36px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3B0, #FFC531 46%, #D99A00); border: 2px solid var(--ink); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18);
  animation: sxCoin var(--d, 1.2s) var(--dl, 0s) cubic-bezier(.45, 0, .85, .55) both;
}
.g-spintax .sx-coin::after { content: '★'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; line-height: 1; color: #A86F00; }
@keyframes sxCoin { to { transform: translate(var(--x, 0px), calc(100cqh + 80px)) rotate(var(--r, 360deg)); } }

.g-spintax .sx-rib {
  position: absolute; left: -6%; right: -6%; top: 38%; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 12px 8%; pointer-events: none; background: var(--red); border-block: 3px solid var(--ink); box-shadow: 0 7px 0 #000;
  animation: sxRib 1.8s var(--ease) both;
}
.g-spintax .sx-rib b { font: 900 clamp(30px, 6.4cqw, 60px)/1 var(--font); letter-spacing: -.045em; color: #fff; text-shadow: 3px 3px 0 var(--ink); font-variation-settings: 'opsz' 32; }
.g-spintax .sx-rib span {
  padding: 4px 9px; font: 700 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--sx-gold); border: 2px solid var(--ink); border-radius: 7px;
}
@keyframes sxRib {
  0% { transform: translateX(-110%) rotate(-4deg); }
  16%, 80% { transform: translateX(0) rotate(-4deg); }
  100% { transform: translateX(110%) rotate(-4deg); }
}
@keyframes sxRibFade { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }

/* ── wide: room for the lever ── */
@container (min-width: 900px) {
  .g-spintax .sx-lever { display: block; }
  .g-spintax .sx-mach { width: min(100% - 56px, 640px); }
}

/* ── phones: machine on top, log below ── */
@container (max-width: 700px) {
  .g-spintax .sx {
    --sx-rh: clamp(31px, 7cqh, 48px); --sx-rows: 2.45;
    --sx-f1: clamp(12.5px, 3.8cqw, 17px); --sx-f3: clamp(11px, 3.2cqw, 14px);
  }
  .g-spintax .g-hud { inset: 10px 10px auto; gap: 6px; }
  .g-spintax .g-hud-l, .g-spintax .g-hud-r { gap: 5px; }
  .g-spintax .g-chip { gap: 5px; padding: 5px 7px; font-size: 10px; letter-spacing: .06em; }
  .g-spintax .g-chip b { font-size: 13px; }
  .g-spintax .sx-tl { display: none; }
  .g-spintax .sx-main { inset: 50px 10px 14px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
  .g-spintax .sx-mach { width: min(100%, 560px); }
  .g-spintax .sx-cab { padding: 12px 8px; border-radius: 20px; box-shadow: 5px 5px 0 #000, inset 0 -4px 0 var(--lime-a); }
  .g-spintax .insane .sx-cab { box-shadow: 5px 5px 0 #000, inset 0 -4px 0 var(--lime-a), 0 0 30px rgba(239, 68, 68, .4); }
  .g-spintax .sx-bulbs { left: 16px; right: 16px; height: 7px; }
  .g-spintax .sx-bulbs.t { top: 1.5px; }
  .g-spintax .sx-bulbs.b { bottom: 1.5px; }
  .g-spintax .sx-bulbs i { width: 7px; height: 7px; border-width: 1px; }
  .g-spintax .sx-in { gap: 8px; padding: 8px; border-radius: 13px; }
  .g-spintax .sx-mq { min-height: 0; }
  .g-spintax .sx-ttl { font-size: 17px; }
  .g-spintax .sx-mq-ins { font-size: 9.5px; padding: 2px 6px; }
  .g-spintax .sx-tgt { gap: 7px; padding: 4px 8px 4px 4px; border-radius: 9px; }
  .g-spintax .sx-tgt-l { padding: 2px 5px; font-size: 9.5px; letter-spacing: .06em; }
  .g-spintax .sx-tgt-w { display: none; }
  .g-spintax .sx-tgt-c { font-size: 12px; }
  .g-spintax .sx-tgt-c i { padding: 0 .22em; }
  .g-spintax .sx-reels { grid-template-columns: 1fr 1fr 1.85fr; gap: 5px; padding: 5px 12px; border-radius: 10px; }
  .g-spintax .sx-reels::before, .g-spintax .sx-reels::after { border-width: 5px; }
  .g-spintax .sx-reel { border-radius: 6px; }
  .g-spintax .sx-it { padding: 0 3px; }
  .g-spintax .sx-it.gold::before { top: 1px; left: 3px; font-size: 8px; }
  .g-spintax .sx-it.used::after { top: 2px; right: 2px; padding: 0 3px; font-size: 7px; }
  .g-spintax .sx-auto { left: 4px; right: 4px; bottom: 3px; height: 4px; }
  .g-spintax .sx-bub { min-height: calc(2.7em + 14px); padding: 7px 40px 7px 10px; font-size: 13px; line-height: 1.35; box-shadow: 2px 2px 0 #000; }
  .g-spintax .sx-meta { right: 7px; bottom: 5px; font-size: 9.5px; }
  .g-spintax .sx-ok { display: none !important; }
  .g-spintax .sx-ctl { padding-bottom: 5px; }
  .g-spintax .sx-spin { min-height: 54px; padding: 8px 16px; font-size: 19px; border-radius: 14px; }
  .g-spintax .sx-fly { padding: 7px 40px 7px 10px; font-size: 13px; }
  .g-spintax .sx-log { gap: 7px; padding: 9px 10px; border-radius: 14px; box-shadow: 4px 4px 0 #000; }
  .g-spintax .sx-log-h { font-size: 10px; }
  .g-spintax .sx-log-h span b { font-size: 13px; }
  .g-spintax .sx-odds { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 0; background: none; border: 0; }
  .g-spintax .sx-odds-l { font-size: 9.5px; letter-spacing: .06em; }
  .g-spintax .sx-odds .g-meter { grid-column: 2; grid-row: 1; height: 9px; border-width: 1.5px; }
  .g-spintax .sx-odds > b { grid-column: 3; grid-row: 1; font-size: 13px; }
  .g-spintax .sx-list { gap: 5px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .g-spintax .sx-empty { padding: 4px; font-size: 12px; }
  .g-spintax .sx-li { gap: 7px; padding: 5px 8px; font-size: 12px; border-radius: 8px; }
  .g-spintax .sx-li .n, .g-spintax .sx-li .ck { font-size: 9.5px; line-height: 1.6; }
  .g-spintax .sx-li .t { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .g-spintax .sx-li.dup .t { white-space: normal; }
  .g-spintax .sx-rib { top: 30%; padding: 10px 8%; }
  .g-spintax .sx-rib span { font-size: 10px; }
  .g-spintax .sx-coin { width: 22px; height: 22px; }
}
/* short phones: drop the marquee title, keep the target */
@container (max-width: 700px) and (max-height: 600px) {
  .g-spintax .sx { --sx-rows: 2.2; --sx-rh: clamp(30px, 6.6cqh, 40px); }
  .g-spintax .sx-mq { display: none; }
  .g-spintax .sx-in { gap: 6px; }
  .g-spintax .sx-spin { min-height: 46px; }
}

/* ── reduced motion ── */
.g-spintax .rm .sx-bulbs i { animation: none; }
.g-spintax .rm .sx-bulbs i:nth-child(3n) { background: #FFF6B8; }
.g-spintax .rm.insane .sx-bulbs i:nth-child(3n) { background: #FFD24A; }
.g-spintax .rm .sx-ins, .g-spintax .rm .sx-ttl, .g-spintax .rm .sx-reels, .g-spintax .rm .sx-li.dup, .g-spintax .rm .sx-ph.on, .g-spintax .rm .sx-tgt.hit, .g-spintax .rm .sx-stamp { animation: none; }
.g-spintax .rm .sx-rib { animation: sxRibFade 1.8s linear both; transform: rotate(-4deg); }
.g-spintax .rm .sx-coin { animation-duration: 1.6s; animation-timing-function: linear; }
