:root {
  --cell: 124px;
  --gold: #c9a44a;
  --gold-bright: #f0d27a;
  --gold-deep: #8a6a28;
  --metal-hi: #3a3a44;
  --metal-lo: #121218;
  --ink: #050508;
  --text: #f7efd8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

#app {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20,16,10,0.35), rgba(0,0,0,0.72));
}

.stage {
  position: relative;
  width: min(1200px, 98vw);
  height: min(760px, 97vh);
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr) auto;
  background:
    linear-gradient(165deg, #1c1c24 0%, #0b0b10 40%, #07070b 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,220,140,0.12),
    inset 0 0 120px rgba(0,0,0,0.55);
}
.stage__rim {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 20;
  border-radius: 10px;
  border: 3px solid transparent;
  background:
    linear-gradient(#0a0a0c, #0a0a0c) padding-box,
    linear-gradient(135deg, #f2d57a, #8a6a28 35%, #e8c56a 55%, #5a4518 100%) border-box;
  border: 3px solid transparent;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255,240,180,0.35);
}
.stage__glow {
  pointer-events: none;
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at 50% 20%, rgba(200,150,60,0.12), transparent 55%);
  z-index: 0;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 26px 4px;
  background:
    linear-gradient(180deg, rgba(40,36,28,0.55), rgba(10,10,14,0.15));
  border-bottom: 1px solid rgba(200,160,70,0.22);
}
.paylines {
  justify-self: start;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(240,210,122,0.7);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.brand { justify-self: center; text-align: center; }
.logo {
  height: 58px;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 16px rgba(0,0,0,0.65))
    drop-shadow(0 0 18px rgba(240,210,122,0.18));
}
.tag {
  margin-top: 1px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(240,210,122,0.35), 0 1px 2px #000;
}
.pot {
  justify-self: end;
  width: 52px; height: 52px;
  object-fit: contain;
  filter:
    drop-shadow(0 6px 10px rgba(0,0,0,0.55))
    drop-shadow(0 0 14px rgba(240,200,80,0.4));
  animation: potIdle 3.2s ease-in-out infinite;
}

/* ===== PLAYFIELD — fills middle band only (header/footer unchanged) ===== */
.playfield {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  height: 100%;
  margin: 6px auto;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background:
    radial-gradient(ellipse at 50% 42%, #24202c 0%, #121218 48%, #08080c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200,160,70,0.28),
    inset 0 0 60px rgba(0,0,0,0.65),
    0 8px 24px rgba(0,0,0,0.35);
}
.playfield__glass {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 8;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.06) 0%, transparent 28%, transparent 72%, rgba(255,255,255,0.03) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 22%);
  mix-blend-mode: screen;
}
.playfield__vignette {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 7;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.75);
}

.reels {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0 auto;
  height: calc(var(--cell) * 3);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0 8px;
  flex: 0 0 auto;
}
.reel {
  position: relative;
  overflow: hidden;
  height: calc(var(--cell) * 3);
  border-right: 1px solid rgba(200,160,70,0.12);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.22), transparent 18%, transparent 82%, rgba(0,0,0,0.22));
}
.reel:last-child { border-right: none; }
.reel.spinning .strip {
  filter: blur(3px) brightness(1.12) saturate(1.08);
  opacity: 0.88;
}

/* ===== ANTICIPATION (near-win tease from VOD) ===== */
.reel.anticipate {
  z-index: 4;
  box-shadow:
    inset 0 0 0 3px rgba(242, 210, 122, 0.95),
    inset 0 0 28px rgba(242, 210, 122, 0.28),
    0 0 26px rgba(242, 210, 122, 0.55);
  animation: antiPulse 0.55s ease-in-out infinite;
}
.reel.anticipate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 10px,
      rgba(255, 230, 140, 0.07) 10px 12px
    );
  mix-blend-mode: screen;
  animation: antiScan 0.35s linear infinite;
}
.reel.anticipate.spinning .strip {
  filter: blur(2.2px) brightness(1.22) saturate(1.2);
  opacity: 1;
}
.reel.locked .cell img {
  filter:
    drop-shadow(0 0 10px rgba(242, 210, 122, 0.35))
    drop-shadow(0 10px 12px rgba(0,0,0,0.5));
}
.playfield.anticipating {
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 122, 0.45),
    inset 0 0 70px rgba(120, 80, 10, 0.25),
    0 8px 24px rgba(0,0,0,0.35);
}

.rolling {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(8px);
  z-index: 10;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(180deg, #f0d27a, #c9a040);
  box-shadow: 0 0 18px rgba(242, 210, 122, 0.55), 0 4px 10px rgba(0,0,0,0.35);
  pointer-events: none;
}
.rolling.show { display: inline-flex; animation: rollIn 0.25s ease-out; }
.rolling span {
  width: 56px; height: 4px;
  border-radius: 4px;
  background: rgba(26,20,8,0.25);
  overflow: hidden;
  position: relative;
}
.rolling span::after {
  content: "";
  position: absolute; inset: 0;
  width: 40%;
  background: #1a1408;
  animation: rollBar 0.7s ease-in-out infinite;
}

.particles {
  position: absolute; inset: 0;
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}
.particles.show { opacity: 1; }
.particles i {
  position: absolute;
  top: 8%;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #fff6c8, #e0b84a);
  box-shadow: 0 0 8px rgba(242, 210, 122, 0.8);
  animation: confetti 1.2s ease-out forwards;
  transform: translateX(0);
}

/* Winning / near-win symbol boxes */
.cell.mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 3px solid var(--mark-color, rgba(242, 210, 122, 0.98));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--mark-color, #f2d27a) 70%, transparent),
    inset 0 0 16px color-mix(in srgb, var(--mark-color, #f2d27a) 22%, transparent);
  animation: winBox 0.55s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.cell.mark img {
  animation: winPulse 0.55s ease-in-out infinite;
  filter:
    drop-shadow(0 0 16px rgba(242,210,122,0.95))
    drop-shadow(0 12px 14px rgba(0,0,0,0.55));
}
.playfield.anticipating .cell.mark::after {
  border-color: rgba(255, 230, 120, 1);
  box-shadow:
    0 0 26px rgba(255,220,90,0.85),
    inset 0 0 14px rgba(255,220,90,0.2);
}

/* Drawn winning paylines (horizontal / diagonal / zigzag) */
.payline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
  overflow: visible;
}
.payline-svg polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(242,210,122,0.85));
  animation: paylinePulse 0.7s ease-in-out infinite;
  opacity: 0.95;
}
@keyframes paylinePulse {
  0%, 100% { opacity: 0.75; stroke-width: 3.5; }
  50% { opacity: 1; stroke-width: 5; }
}
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.cell {
  height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  padding: 8px 6px;
  position: relative;
}
.cell img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,0.55));
  user-select: none;
  pointer-events: none;
}

.hint {
  position: relative;
  z-index: 9;
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(247,239,216,0.4);
  min-height: 1.15em;
  text-shadow: 0 1px 2px #000;
}
.hint.win {
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(242,210,122,0.55), 0 1px 2px #000;
}
.hint.tryagain {
  color: #ffb4a0;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255,120,80,0.45), 0 1px 2px #000;
}
.playfield.tryagain {
  animation: tryShake 0.45s ease-out;
  box-shadow:
    inset 0 0 0 1px rgba(255,140,100,0.45),
    inset 0 0 50px rgba(80,20,10,0.35),
    0 8px 24px rgba(0,0,0,0.35);
}

.result-pop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(ellipse at center, rgba(20,8,6,0.55) 0%, rgba(0,0,0,0.72) 70%);
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.result-pop.show {
  opacity: 1;
  visibility: visible;
}
.result-pop__card {
  text-align: center;
  padding: 22px 42px 20px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(42,24,20,0.96), rgba(18,10,10,0.98));
  border: 1px solid rgba(255,170,120,0.55);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 18px 40px rgba(0,0,0,0.55),
    0 0 36px rgba(255,90,50,0.22);
  transform: scale(0.86) translateY(8px);
  animation: none;
}
.result-pop.show .result-pop__card {
  animation: resultPopIn 0.38s cubic-bezier(0.2, 1.2, 0.3, 1) forwards;
}
.result-pop__sub {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: #ff8f72;
  text-shadow: 0 0 12px rgba(255,90,50,0.45), 0 1px 2px #000;
  margin-bottom: 8px;
}
.result-pop__title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #ffe6d4;
  text-shadow:
    0 0 28px rgba(255,120,70,0.65),
    0 3px 0 rgba(0,0,0,0.55);
}
.result-pop.freespins .result-pop__card {
  border-color: rgba(242, 210, 122, 0.75);
  background: linear-gradient(180deg, rgba(48, 38, 14, 0.97), rgba(18, 14, 6, 0.98));
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 18px 40px rgba(0,0,0,0.55),
    0 0 40px rgba(242, 190, 80, 0.35);
}
.result-pop.freespins .result-pop__sub {
  color: #f2d27a;
  text-shadow: 0 0 14px rgba(242, 190, 80, 0.55), 0 1px 2px #000;
}
.result-pop.freespins .result-pop__title {
  color: #fff4d0;
  font-size: 40px;
  text-shadow:
    0 0 28px rgba(242, 190, 80, 0.7),
    0 3px 0 rgba(0,0,0,0.55);
}
@keyframes resultPopIn {
  from { transform: scale(0.72) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== FOOTER ===== */
.bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(200px, 0.95fr) minmax(480px, 1.7fr) minmax(190px, 0.95fr);
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  min-height: 112px;
  background:
    linear-gradient(180deg, #26262e 0%, #14141a 42%, #0c0c12 100%);
  border-top: 1px solid rgba(230,190,100,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,230,160,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}
.bar__metal {
  pointer-events: none;
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 2px,
      rgba(255,255,255,0.015) 2px 3px
    );
  opacity: 0.5;
}
.bar__left, .bar__mid, .bar__right {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.bar__mid {
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.bar__mid .stat { min-width: 0; }
.bar__mid .stat__v { font-size: 18px; }
.bar__mid .stat__k { font-size: 8px; }
.stat.win-stat { min-width: 88px; }
.stat.cost { min-width: 96px; }
.stat.cost .stat__v { min-width: 4.5em; }
.bar__right { justify-content: flex-end; gap: 8px; }
.bet-wrap { flex-shrink: 0; }

.icon-btn, .mini {
  border: 1px solid rgba(200,160,70,0.45);
  background:
    linear-gradient(180deg, #353540 0%, #1a1a22 100%);
  color: var(--gold-bright);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 3px 6px rgba(0,0,0,0.35);
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { filter: brightness(1.1); }
.icon-btn.muted { opacity: 0.35; }
.close-x { width: 30px; height: 30px; font-size: 12px; opacity: 0.55; }
.close-x:hover { opacity: 1; }

.round-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid #f0d27a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #1a1408;
  cursor: pointer;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #fff2c4, #e0b84a 50%, #9a7420 100%);
  box-shadow:
    0 4px 0 #5a4514,
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 4px 10px rgba(0,0,0,0.35);
}
.round-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #5a4514; }
.round-btn:disabled { filter: brightness(0.55); cursor: default; }

.stat { display: flex; flex-direction: column; gap: 1px; min-width: 96px; }
.stat.center { align-items: center; text-align: center; min-width: 78px; }
.stat__k {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(210,170,80,0.75);
  font-weight: 800;
  white-space: nowrap;
}
.stat__v {
  font-size: 20px;
  font-weight: 800;
  color: #fff8ea;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.55), 0 0 12px rgba(255,220,140,0.12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__v.gold { color: var(--gold-bright); }
.bet-wrap { display: flex; align-items: center; gap: 6px; }
.mini--cash {
  min-width: 78px;
  padding: 6px 8px;
  font-size: 9px;
  color: #9dffc0;
  border-color: rgba(100, 200, 140, 0.45);
}
.mini--insert {
  color: #f2d27a;
}
.mini--confirm {
  background: linear-gradient(180deg, #f0d27a, #b88928);
  color: #1a1408;
  border-color: #f2d57a;
  min-width: 120px;
  padding: 10px 16px;
  font-size: 12px;
}

.side-stack { display: flex; flex-direction: column; gap: 5px; }
.mini {
  min-width: 96px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.mini.active {
  background: linear-gradient(180deg, #f0d27a, #b88928);
  color: #1a1408;
  border-color: #f2d57a;
  box-shadow: 0 0 14px rgba(242,210,122,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}
.mini--turbo { color: #ff9a7a; }
.mini--turbo.active { color: #1a1408; }

.spin-orb {
  position: relative;
  width: 82px; height: 82px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 32% 28%, #fff6d0 0%, #efc35a 38%, #b88928 70%, #6a5210 100%);
  box-shadow:
    0 0 0 3px #f0d27a,
    0 0 0 5px rgba(90,70,20,0.85),
    0 8px 0 #4a3a10,
    0 14px 26px rgba(0,0,0,0.5),
    inset 0 2px 8px rgba(255,255,255,0.45),
    0 0 28px rgba(240,210,122,0.28);
}
.spin-orb__ring {
  position: absolute; inset: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}
.spin-orb__arrow {
  position: absolute; inset: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  box-shadow: -2px -2px 0 #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}
.spin-orb:hover:not(:disabled):not(.busy) {
  filter: brightness(1.07);
}
.spin-orb:active:not(:disabled):not(.busy) {
  transform: translateY(3px);
  box-shadow:
    0 0 0 3px #f0d27a,
    0 0 0 5px rgba(90,70,20,0.85),
    0 4px 0 #4a3a10,
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 2px 8px rgba(255,255,255,0.35);
}
.spin-orb:disabled, .spin-orb.busy {
  filter: brightness(0.58) saturate(0.8);
  cursor: default;
}
.spin-orb.busy .spin-orb__arrow {
  animation: spinArrow 0.7s linear infinite;
}

.modal {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal__card {
  width: min(440px, 92%);
  background: linear-gradient(180deg, #1c1c24, #101016);
  border: 1px solid rgba(200,160,70,0.5);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.modal__card h3 {
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.modal__card p, .modal__card li { line-height: 1.6; color: #ddd; }
.modal__card ul { margin: 12px 0 16px 18px; }

.buyin-modal { z-index: 50; }
.buyin-card { text-align: center; width: min(480px, 94%); }
.buyin-pocket {
  margin: 6px 0 4px;
  font-size: 14px;
  color: rgba(247, 239, 216, 0.75);
}
.buyin-pocket b { color: var(--gold-bright); font-size: 18px; }
.buyin-hint { margin-bottom: 14px; font-size: 13px; color: rgba(247,239,216,0.55); }
.buyin-presets {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 16px;
}
.buyin-presets .mini {
  min-width: 88px;
}
.buyin-presets .mini.active {
  background: linear-gradient(180deg, #f0d27a, #b88928);
  color: #1a1408;
}
.buyin-amount {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 8px 0 18px;
}
.buyin-amount .stat__v { font-size: 28px; }
.buyin-actions {
  display: flex; gap: 12px; justify-content: center; align-items: center;
}

@keyframes winPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes winBox {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes potIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes spinArrow {
  to { transform: rotate(405deg); }
}
@keyframes antiPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 3px rgba(242, 210, 122, 0.95),
      inset 0 0 24px rgba(242, 210, 122, 0.22),
      0 0 18px rgba(242, 210, 122, 0.4);
  }
  50% {
    box-shadow:
      inset 0 0 0 3px #fff2b0,
      inset 0 0 36px rgba(242, 210, 122, 0.4),
      0 0 34px rgba(242, 210, 122, 0.75);
  }
}
@keyframes antiScan {
  to { background-position: 0 22px; }
}
@keyframes rollIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes rollBar {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(220%); }
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 40px), 320px) rotate(220deg) scale(0.6);
  }
}
@keyframes tryShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 1100px) {
  .bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px 16px;
    min-height: 0;
  }
  .bar__left, .bar__mid, .bar__right { justify-content: center; flex-wrap: wrap; }
  .bar__mid { flex-wrap: wrap; row-gap: 10px; }
  .stage { grid-template-rows: 80px minmax(0, 1fr) auto; height: min(820px, 98vh); }
  .stat__v { font-size: 18px; }
  .spin-orb { width: 70px; height: 70px; }
  .logo { height: 48px; }
}
