/* =====================================================
   semaking · hub — styles
   ===================================================== */

:root {
  /* Color tokens */
  --bg: #060713;
  --bg-elev: #0b0d1b;
  --bg-tile: #0f1120;
  --bg-tile-hover: #151830;
  --border: #1c1f36;
  --border-strong: #2a2e4c;
  --text: #eef0fb;
  --text-dim: #9398b3;
  --text-mute: #626683;

  --primary: #00d9ff;
  --primary-dim: #0092ad;
  --accent: #a855f7;
  --accent-dim: #6d2db0;
  --gold: #f4b400;
  --gold-hi: #ffe28a;
  --gold-lo: #7a4e00;
  --live: #ef4444;
  --win: #22c55e;

  /* Layout tokens */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px -10px rgba(0, 217, 255, 0.12), 0 2px 8px -2px rgba(0, 0, 0, 0.5);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-slot: 'Rubik Mono One', 'Space Grotesk', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Slot machine dimensions (JS reads these) */
  --slot-symbol-h: 148px;
  --slot-window-h: 168px;
}

@media (max-width: 560px) {
  :root {
    --slot-symbol-h: 112px;
    --slot-window-h: 132px;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ============ BACKGROUND LAYERS ============ */

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.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 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

.bg-glow {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: glow-pulse 14s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-glow--cyan { background: var(--primary); top: -220px; left: -160px; }
.bg-glow--violet {
  background: var(--accent);
  bottom: -280px;
  right: -220px;
  opacity: 0.25;
  animation-delay: -4s;
}
.bg-glow--amber {
  background: var(--gold);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  opacity: 0.07;
  filter: blur(160px);
  animation: glow-pulse-centered 14s ease-in-out -7s infinite alternate;
}
@keyframes glow-pulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes glow-pulse-centered {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.12); }
}

/* ============ SHELL ============ */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px) 48px;
}

/* ============ REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO ============ */

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.hero__avatar {
  position: relative;
  width: clamp(110px, 17vw, 180px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 40px -8px rgba(0, 217, 255, 0.3);
  display: block;
  position: relative;
  z-index: 2;
}
.hero__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--primary) 30%, transparent 60%, var(--accent) 80%, transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  animation: ring-spin 10s linear infinite;
  opacity: 0.7;
}
.hero__ring--inner {
  inset: -2px;
  background: conic-gradient(from 180deg, transparent, var(--gold) 40%, transparent 70%);
  animation-duration: 6s;
  animation-direction: reverse;
  opacity: 0.3;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.hero__meta { min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #b8bdde 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(0, 217, 255, 0.18);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============ LIVE PILL ============ */

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 15px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.live-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-tile-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
.live-pill__count {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.live-pill__arrow {
  color: var(--text-mute);
  margin-left: 2px;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.live-pill:hover .live-pill__arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}
.live-pill[data-state="live"] {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), var(--bg-tile) 55%);
}
.live-pill[data-state="live"] .live-pill__dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
.live-pill[data-state="live"] .live-pill__label {
  color: var(--live);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.live-pill[data-state="offline"] .live-pill__dot { background: var(--text-mute); }
.live-pill[data-state="offline"] .live-pill__label { color: var(--text-dim); }
.live-pill[data-state="error"] .live-pill__label { color: var(--text-mute); font-style: italic; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ============ STAT CHIP ============ */

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-chip svg { color: var(--text-mute); }
.stat-chip__num { color: var(--text); font-weight: 600; }

/* ============ TILES ============ */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.tile {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--bg-tile) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 120px at var(--mx, 50%) var(--my, 50%), rgba(0, 217, 255, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.tile:hover {
  background: linear-gradient(180deg, var(--bg-tile-hover) 0%, var(--bg-elev) 100%);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 20px -10px rgba(0, 217, 255, 0.2);
}
.tile:hover::before { opacity: 1; }
.tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.tile > * { position: relative; z-index: 1; }

.tile__shine {
  position: absolute;
  top: -150%;
  left: -50%;
  width: 60%;
  height: 400%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(20deg) translateX(-100%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.tile:hover .tile__shine { transform: rotate(20deg) translateX(400%); }

.tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease-spring);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.tile:hover .tile__icon { border-color: var(--border-strong); transform: scale(1.06) rotate(-2deg); }

.tile__icon--kick {
  color: #53fc19;
  background: rgba(83, 252, 25, 0.08);
  border-color: rgba(83, 252, 25, 0.25);
}
.tile__icon--tg {
  color: #2aabee;
  background: rgba(42, 171, 238, 0.08);
  border-color: rgba(42, 171, 238, 0.25);
}
.tile__icon--vip {
  background: radial-gradient(circle at 40% 30%, rgba(251, 191, 36, 0.28), rgba(251, 191, 36, 0.04));
  border-color: rgba(251, 191, 36, 0.35);
}
.tile__icon--free {
  color: var(--primary);
  background: rgba(0, 217, 255, 0.06);
  border-color: rgba(0, 217, 255, 0.22);
}
.tile__icon--dragon {
  padding: 0;
  background: radial-gradient(circle at 50% 40%, #ffb92b 0%, #f4b400 45%, #8a5c00 100%);
  border: 1px solid rgba(255, 226, 138, 0.55);
  box-shadow:
    0 0 24px -4px rgba(244, 180, 0, 0.55),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.tile__icon--dragon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 11px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.tile__icon-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(244, 180, 0, 0.4), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.tile--dragon:hover .tile__icon-glow { opacity: 1; }

.tile__icon--install {
  color: var(--text-dim);
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.2);
}
.tile--install:hover .tile__icon--install { color: var(--accent); }

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tile__eyebrow {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.tile__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tile__sub {
  font-size: 13px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.tile__arrow {
  font-size: 18px;
  color: var(--text-mute);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease-spring);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tile:hover .tile__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.tile--kick { border-color: rgba(83, 252, 25, 0.22); }
.tile--kick:hover {
  border-color: rgba(83, 252, 25, 0.5);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(83, 252, 25, 0.25);
}
.tile--kick::before { background: radial-gradient(200px 120px at var(--mx, 50%) var(--my, 50%), rgba(83, 252, 25, 0.12), transparent 70%); }
.tile--kick:hover .tile__arrow { color: #53fc19; }

.tile--tg { border-color: rgba(42, 171, 238, 0.22); }
.tile--tg:hover {
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(42, 171, 238, 0.25);
}
.tile--tg::before { background: radial-gradient(200px 120px at var(--mx, 50%) var(--my, 50%), rgba(42, 171, 238, 0.12), transparent 70%); }
.tile--tg:hover .tile__arrow { color: #2aabee; }

.tile--vip {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.04) 0%, var(--bg-elev) 100%);
}
.tile--vip:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 28px -6px rgba(251, 191, 36, 0.35);
}
.tile--vip::before { background: radial-gradient(220px 140px at var(--mx, 50%) var(--my, 50%), rgba(251, 191, 36, 0.14), transparent 70%); }
.tile--vip:hover .tile__arrow { color: var(--gold); }

.tile--free { border-color: rgba(0, 217, 255, 0.22); }
.tile--free:hover {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(0, 217, 255, 0.3);
}

.tile--dragon {
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.06) 0%, var(--bg-tile) 45%, var(--bg-elev) 100%);
  border-color: rgba(244, 180, 0, 0.28);
}
.tile--dragon:hover {
  border-color: rgba(244, 180, 0, 0.55);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 32px -6px rgba(244, 180, 0, 0.4);
}
.tile--dragon::before { background: radial-gradient(220px 140px at var(--mx, 50%) var(--my, 50%), rgba(244, 180, 0, 0.16), transparent 70%); }
.tile--dragon:hover .tile__arrow { color: var(--gold-hi); }

.tile--install {
  background: transparent;
  border-style: dashed;
  border-color: rgba(168, 85, 247, 0.22);
}
.tile--install:hover {
  background: rgba(168, 85, 247, 0.04);
  border-style: solid;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(168, 85, 247, 0.25);
}
.tile--install::before { background: radial-gradient(200px 120px at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.1), transparent 70%); }
.tile--install:hover .tile__arrow { color: var(--accent); }

/* ============ SLOT MACHINE (premium cabinet) ============ */

.slot {
  position: relative;
  margin-bottom: clamp(40px, 6vw, 64px);
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.slot__cabinet {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 16px 22px 20px;
  border-radius: 26px;
  background:
    radial-gradient(150% 90% at 50% 0%, rgba(244, 180, 0, 0.1), transparent 55%),
    radial-gradient(130% 80% at 50% 100%, rgba(0, 217, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #1a1d32 0%, #0c0e1d 60%, #07081a 100%);
  border: 1px solid rgba(244, 180, 0, 0.2);
  box-shadow:
    0 40px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 60px -20px rgba(244, 180, 0, 0.18),
    0 0 80px -30px rgba(0, 217, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(244, 180, 0, 0.08);
  isolation: isolate;
}
.slot__cabinet::before {
  /* Gold-violet frame gradient border */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(244, 180, 0, 0.5), rgba(168, 85, 247, 0.3) 50%, rgba(0, 217, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.slot__cabinet::after {
  /* Inner rim highlight */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 0;
}

/* ----- Bulb strips (marching lights around top/bottom) ----- */
.slot__bulbs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  margin-bottom: 12px;
  position: relative;
}
.slot__bulbs--bottom { margin-bottom: 0; margin-top: 8px; }
.slot__bulbs span {
  flex: 1;
  aspect-ratio: 1;
  max-width: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6cf 0%, #ffc83d 40%, #8a5c00 100%);
  box-shadow:
    0 0 8px rgba(244, 180, 0, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  animation: bulb-march 1.2s steps(4) infinite;
}
.slot__bulbs span:nth-child(4n+1) { animation-delay: 0s; }
.slot__bulbs span:nth-child(4n+2) { animation-delay: -0.3s; }
.slot__bulbs span:nth-child(4n+3) { animation-delay: -0.6s; }
.slot__bulbs span:nth-child(4n+4) { animation-delay: -0.9s; }
@keyframes bulb-march {
  0%, 100% {
    background: radial-gradient(circle at 30% 30%, #fff6cf 0%, #ffc83d 40%, #8a5c00 100%);
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  }
  50% {
    background: radial-gradient(circle at 30% 30%, #cfd4ec 0%, #3a3f5c 60%, #1a1d30 100%);
    box-shadow: 0 0 2px rgba(244, 180, 0, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  }
}
.slot--jackpot .slot__bulbs span {
  animation: bulb-jackpot 0.3s steps(2) infinite !important;
}
@keyframes bulb-jackpot {
  0%, 100% { filter: brightness(1.5) saturate(1.3); }
  50% { filter: brightness(0.4); }
}

/* ----- LED display (WIN / STATUS text) ----- */
.slot__display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, #030513 0%, #06091c 100%);
  border: 1px solid rgba(244, 180, 0, 0.25);
  border-radius: 10px;
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(244, 180, 0, 0.05);
  font-family: var(--font-slot);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold-hi);
  text-shadow: 0 0 10px rgba(244, 180, 0, 0.7), 0 0 20px rgba(244, 180, 0, 0.3);
  position: relative;
  min-height: 32px;
}
.slot__display-text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.slot__display-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff5757, #ff0040 50%, #5a0010);
  box-shadow: 0 0 10px #ff0040, inset 0 -1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  animation: led-blink 1.1s ease-in-out infinite alternate;
  flex-shrink: 0;
}
.slot__display-led--r { animation-delay: -0.55s; }
@keyframes led-blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.slot--win .slot__display {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(34, 197, 94, 0.15), 0 0 20px rgba(34, 197, 94, 0.3);
}
.slot--win .slot__display-text {
  color: #7dffa3;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 24px rgba(34, 197, 94, 0.5);
}
.slot--jackpot .slot__display {
  border-color: rgba(244, 180, 0, 0.7);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.7), inset 0 0 24px rgba(244, 180, 0, 0.25), 0 0 30px rgba(244, 180, 0, 0.5);
}
.slot--jackpot .slot__display-text {
  color: #fff;
  text-shadow: 0 0 12px rgba(244, 180, 0, 1), 0 0 24px rgba(244, 180, 0, 0.8), 0 0 36px rgba(255, 61, 61, 0.5);
  animation: jackpot-pulse 0.4s ease-in-out 6;
}
@keyframes jackpot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ----- Slot body: window + side-mounted handle ----- */
.slot__body {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.slot__window {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  height: var(--slot-window-h);
  padding: 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, #04050c 0%, #0a0d1c 100%);
  border: 2px solid rgba(244, 180, 0, 0.22);
  overflow: hidden;
  box-shadow:
    inset 0 4px 20px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(0, 217, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}
.slot__divider {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(244, 180, 0, 0.3) 20%, rgba(244, 180, 0, 0.5) 50%, rgba(244, 180, 0, 0.3) 80%, transparent);
  box-shadow: 0 0 6px rgba(244, 180, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}
.slot__divider--1 { left: calc(33.33% - 1px); }
.slot__divider--2 { left: calc(66.66% - 1px); }

.slot__reel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 16%, transparent 84%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, #0d1020 0%, #070814 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.slot__reel::before,
.slot__reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  pointer-events: none;
  z-index: 2;
}
.slot__reel::before {
  top: 0;
  background: linear-gradient(180deg, #04050c 0%, transparent);
}
.slot__reel::after {
  bottom: 0;
  background: linear-gradient(0deg, #04050c 0%, transparent);
}

.slot__strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.slot__symbol {
  width: 100%;
  height: var(--slot-symbol-h);
  display: grid;
  place-items: center;
  font-family: var(--font-slot);
  font-size: 54px;
  line-height: 1;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(244, 180, 0, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.5);
  user-select: none;
  flex-shrink: 0;
}
.slot__symbol[data-s="7"] {
  color: #ff3d3d;
  text-shadow:
    0 0 18px rgba(255, 61, 61, 0.85),
    0 0 36px rgba(255, 61, 61, 0.35),
    0 2px 0 #000,
    2px 4px 0 rgba(0, 0, 0, 0.8);
  font-weight: 900;
  font-style: italic;
  -webkit-text-stroke: 1px rgba(255, 210, 140, 0.5);
}
.slot__symbol[data-s="BAR"] {
  font-size: 32px;
  letter-spacing: 0.12em;
  color: #ffe28a;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd34d 40%, #c07a00 75%, #ffe28a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(244, 180, 0, 0.6)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
  font-weight: 900;
}
.slot__symbol[data-s="💎"] { font-size: 48px; }
.slot__symbol[data-s="🍒"] { font-size: 48px; }
.slot__symbol[data-s="⭐"] { font-size: 50px; }
.slot__symbol[data-s="🔔"] { font-size: 48px; }

@media (max-width: 560px) {
  .slot__symbol { font-size: 42px; }
  .slot__symbol[data-s="BAR"] { font-size: 24px; }
  .slot__symbol[data-s="💎"],
  .slot__symbol[data-s="🍒"],
  .slot__symbol[data-s="🔔"] { font-size: 38px; }
  .slot__symbol[data-s="⭐"] { font-size: 40px; }
}

.slot__payline {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
  opacity: 0.4;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.5);
}
.slot--win .slot__payline {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--win) 20%, var(--win) 80%, transparent);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.9);
  animation: payline-pulse 0.4s ease-in-out 4;
}
.slot--jackpot .slot__payline {
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  box-shadow: 0 0 32px rgba(244, 180, 0, 1);
  opacity: 1;
  animation: payline-pulse 0.3s ease-in-out 8;
}
@keyframes payline-pulse {
  0%, 100% { transform: translateY(-50%) scaleY(1); }
  50% { transform: translateY(-50%) scaleY(4); }
}

.slot__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

/* ----- Handle (big lever) ----- */
.slot__handle {
  position: relative;
  width: 58px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  outline: none;
}
.slot__handle-mount {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 22px;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #9aa0c0 0%, #3a3e5a 60%, #2a2d42 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.slot__handle-mount::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #444, #111);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}
.slot__handle-arm {
  position: relative;
  width: 10px;
  height: calc(var(--slot-window-h) - 16px);
  margin-top: 14px;
  background:
    linear-gradient(90deg, #2c2f48 0%, #8a90b0 40%, #c5cbe8 50%, #8a90b0 60%, #2c2f48 100%);
  border-radius: 5px;
  box-shadow:
    inset 0 0 4px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  transition: transform 0.45s var(--ease-spring);
  will-change: transform;
}
.slot__handle-ball {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff9a9a 0%, #ff3d3d 40%, #8a0000 100%);
  box-shadow:
    inset 0 -5px 8px rgba(0, 0, 0, 0.5),
    inset 0 4px 5px rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(255, 61, 61, 0.55),
    0 0 22px rgba(255, 61, 61, 0.3);
  transition: box-shadow 0.2s var(--ease);
}
.slot__handle:hover .slot__handle-ball {
  box-shadow:
    inset 0 -5px 8px rgba(0, 0, 0, 0.5),
    inset 0 4px 5px rgba(255, 255, 255, 0.5),
    0 4px 22px rgba(255, 61, 61, 0.9),
    0 0 34px rgba(255, 61, 61, 0.5);
}
.slot__handle:focus-visible .slot__handle-arm {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 5px;
}
.slot__handle.is-pulling .slot__handle-arm {
  transform: rotate(42deg) scaleY(1.06);
}

/* ----- Controls row ----- */
.slot__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.slot__btn {
  flex: 1;
  padding: 14px 24px;
  border: 1px solid rgba(244, 180, 0, 0.4);
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(244, 180, 0, 0.14), transparent 60%),
    linear-gradient(180deg, #1a1d32 0%, #05081a 100%);
  color: var(--gold-hi);
  font-family: var(--font-slot);
  font-size: 16px;
  letter-spacing: 0.32em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(244, 180, 0, 0.06),
    0 4px 12px -4px rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 8px rgba(244, 180, 0, 0.6);
}
.slot__btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.slot__btn:hover .slot__btn-glow { transform: translateX(120%); }
.slot__btn:hover {
  border-color: rgba(244, 180, 0, 0.7);
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(244, 180, 0, 0.22), transparent 60%),
    linear-gradient(180deg, #22253d 0%, #0a0d20 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 24px rgba(244, 180, 0, 0.35),
    0 4px 12px -4px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}
.slot__btn:active { transform: translateY(1px); }
.slot__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.slot__btn-label { position: relative; z-index: 1; }

.slot__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.slot__hint kbd {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
@media (max-width: 420px) {
  .slot__hint { display: none; }
}

/* ----- Meta stats (3 columns) ----- */
.slot__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(244, 180, 0, 0.12);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.slot__meta-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.slot__meta-item + .slot__meta-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}
.slot__meta-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.slot__meta-value {
  font-family: var(--font-slot);
  font-size: 18px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.slot__meta-item--jackpot .slot__meta-value {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(244, 180, 0, 0.6);
}

/* ----- Bet controls (−/+) ----- */
.slot__meta-item--bet .slot__meta-value {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
  min-width: 44px;
  display: inline-block;
}
.slot__bet-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.slot__bet-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.18), rgba(0, 217, 255, 0.04));
  color: var(--primary);
  font-family: var(--font-slot);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: transform 120ms var(--ease-out), border-color 120ms, background 120ms, opacity 120ms;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.slot__bet-btn:hover:not(:disabled) {
  transform: scale(1.08);
  border-color: rgba(0, 217, 255, 0.7);
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0.08));
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.slot__bet-btn:active:not(:disabled) { transform: scale(0.94); }
.slot__bet-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.slot__confetti {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.slot__confetto {
  position: absolute;
  top: 30%;
  left: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

/* Mobile: compact slot */
@media (max-width: 560px) {
  .slot__cabinet { padding: 12px 14px 14px; max-width: 100%; }
  .slot__bulbs { margin-bottom: 8px; gap: 4px; }
  .slot__bulbs span { max-width: 8px; }
  .slot__display { padding: 8px 10px; font-size: 11px; min-height: 28px; margin-bottom: 10px; }
  .slot__body { grid-template-columns: 1fr 46px; gap: 8px; }
  .slot__window { padding: 8px; }
  .slot__handle { width: 46px; }
  .slot__handle-arm { width: 8px; }
  .slot__handle-ball { width: 24px; height: 24px; bottom: -10px; }
  .slot__btn { padding: 12px 18px; font-size: 14px; letter-spacing: 0.28em; }
  .slot__meta-value { font-size: 16px; }
  .slot__bet-btn { width: 22px; height: 22px; font-size: 13px; }
  .slot__meta { padding: 8px 6px; gap: 6px; }
  .slot__meta-label { font-size: 8px; letter-spacing: 0.14em; }
  .slot__meta-item--bet .slot__meta-value { min-width: 36px; font-size: 15px; }
  .slot__bet-row { gap: 4px; }
}

/* ============ FOOTER ============ */

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.foot__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot__copy { color: var(--text-dim); font-weight: 500; }
.foot__links {
  display: flex;
  gap: 8px;
}
.foot__links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-mute);
  background: var(--bg-tile);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.foot__links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -4px rgba(0, 217, 255, 0.4);
}

/* ============ MODAL ============ */

.modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 560px;
  width: calc(100% - 32px);
  color: var(--text);
}
.modal::backdrop {
  background: rgba(5, 6, 14, 0.75);
  backdrop-filter: blur(8px);
}
.modal[open] { animation: modal-in 0.22s var(--ease-out); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal__head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: inherit;
}
.modal__close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-tile-hover);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-tile);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps__num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.steps strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.steps p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.steps code {
  background: rgba(0, 217, 255, 0.08);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
}
.modal__hint {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: var(--radius);
  line-height: 1.55;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .hero__avatar { width: 100px; }
  .hero__actions { gap: 8px; }
  .tile { padding: 16px; gap: 12px; grid-template-columns: 48px 1fr auto; }
  .tile__icon { width: 48px; height: 48px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
