@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Orbitron:wght@400;700;900&family=Exo+2:wght@400;600;800&display=swap');
*{box-sizing:border-box;margin:0;padding:0;}

:root {
  --neon-purple: #bf00ff;
  --neon-gold: #ffd700;
  --neon-pink: #ff00aa;
  --neon-cyan: #00f5ff;
  --neon-green: #00ff88;
  --dark: #06040f;
  --dark2: #0d0820;
  --dark3: #150d2e;
  --slot-item-h: 76px;
  --slot-font: 13px;
  --slot-label-font: 10px;
}

html {
  height: 100%;
  height: 100dvh;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.casino-wrap {
  font-family: 'Exo 2', sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #1a0535 0%, #06040f 60%);
  border-radius: 0;
  overflow: hidden;
  border: none;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
}

.casino-wrap::before {
  content:'';
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(150,0,255,0.015) 3px, rgba(150,0,255,0.015) 4px);
  pointer-events:none;
  z-index:0;
}

/* ===== HEADER ===== */
.casino-header {
  padding: 20px 24px 16px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #3a0a7a;
  background: linear-gradient(180deg, #1e0545 0%, #0d0820 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-change-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(191, 0, 255, 0.45);
  background: rgba(13, 8, 32, 0.85);
  color: #c080ff;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.lang-change-btn:hover {
  background: rgba(191, 0, 255, 0.25);
  box-shadow: 0 0 10px rgba(191, 0, 255, 0.4);
}

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lang-modal[hidden] {
  display: none;
}

.lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.lang-modal-box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 20px;
  border-radius: 14px;
  border: 2px solid #4a0a9a;
  background: linear-gradient(180deg, #1a0535 0%, #0d0820 100%);
  box-shadow: 0 0 40px rgba(191, 0, 255, 0.35);
}

.lang-modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #d8a8ff;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.lang-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-option {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid #3a1a6a;
  background: #0a0518;
  color: #e0c8ff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.lang-option:hover {
  border-color: #bf00ff;
  background: rgba(191, 0, 255, 0.2);
  transform: scale(1.02);
}

.header-glow {
  position:absolute;
  top:-40px; left:50%; transform:translateX(-50%);
  width:300px; height:80px;
  background: radial-gradient(ellipse, rgba(191,0,255,0.4) 0%, transparent 70%);
  pointer-events:none;
}

.casino-title {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  position: relative;
  background: linear-gradient(90deg, #ffd700, #ff00aa, #bf00ff, #00f5ff, #ffd700);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(191,0,255,0.8));
}

@keyframes titleShimmer {
  0%{background-position:0% center}
  100%{background-position:300% center}
}

.casino-subtitle {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  color: #9040d0;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ===== LIGHTS ===== */
.lights-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px 6px;
  background: var(--dark2);
  flex-wrap: wrap;
  position: relative;
  flex-shrink: 0;
}

.light {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1a0a3a;
  border: 1px solid #2a0a5a;
  transition: background 0.15s, box-shadow 0.15s;
}
.light.p  { background:#bf00ff; box-shadow:0 0 6px 2px #bf00ff, 0 0 14px #bf00ff; }
.light.g  { background:#ffd700; box-shadow:0 0 6px 2px #ffd700, 0 0 14px #ffd700; }
.light.c  { background:#00f5ff; box-shadow:0 0 6px 2px #00f5ff, 0 0 14px #00f5ff; }
.light.pk { background:#ff00aa; box-shadow:0 0 6px 2px #ff00aa, 0 0 14px #ff00aa; }

/* ===== SLOTS GRID ===== */
.slots-outer {
  padding: 12px 12px 10px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-content: center;
  width: 100%;
  overflow: hidden;
}

.slot-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow: visible;
}

.slot-col.shaking {
  overflow: hidden;
}

.slot-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 4px;
  position: relative;
  z-index: 6;
}

.slot-label-text {
  font-family: 'Orbitron', monospace;
  font-size: var(--slot-label-font);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8060b0;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.slot-help {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(191, 0, 255, 0.45);
  border-radius: 50%;
  background: rgba(191, 0, 255, 0.12);
  color: #c080ff;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  position: relative;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.slot-help:hover,
.slot-help:focus-visible {
  background: rgba(191, 0, 255, 0.35);
  border-color: #bf00ff;
  color: #fff;
  box-shadow: 0 0 8px rgba(191, 0, 255, 0.6);
  outline: none;
}

.slot-help-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(220px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(191, 0, 255, 0.45);
  background: #12082a;
  color: #d8b8ff;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(191, 0, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}

.slot-help-tip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #12082a;
}

.slot-help:hover .slot-help-tip,
.slot-help:focus-visible .slot-help-tip,
.slot-help.is-open .slot-help-tip {
  opacity: 1;
  visibility: visible;
}

.slot-window {
  background: #04020d;
  border: 1.5px solid #2d1060;
  border-radius: 8px;
  height: var(--slot-item-h);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slot-window::before {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.8) 0%,
    transparent 20%,
    transparent 80%,
    rgba(0,0,0,0.8) 100%);
  pointer-events:none;
  z-index:3;
}

.slot-window::after {
  content:'';
  position:absolute;
  left:0; right:0;
  top: 50%; transform:translateY(-50%);
  height: var(--slot-item-h);
  border-top: 1px solid rgba(191,0,255,0.2);
  border-bottom: 1px solid rgba(191,0,255,0.2);
  pointer-events:none;
  z-index:4;
}

.slot-track { position:absolute; top:0; left:0; right:0; z-index:2; }

.slot-item {
  height: var(--slot-item-h);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 6px 5px;
  text-align:center;
}

.slot-item span {
  font-size: var(--slot-font);
  font-weight: 700;
  color: #d8a8ff;
  line-height: 1.25;
  text-shadow: 0 0 6px rgba(191,0,255,0.5);
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-window.winner {
  border-color: #ffd700;
  box-shadow: 0 0 8px #ffd700, inset 0 0 8px rgba(255,215,0,0.1);
}
.slot-window.winner .slot-item span {
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700, 0 0 16px rgba(255,215,0,0.6);
}

@keyframes shakeSlot {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  12%  { transform: translate3d(-2px, -1px, 0) rotate(-0.8deg); }
  24%  { transform: translate3d(2px, 1px, 0) rotate(0.8deg); }
  36%  { transform: translate3d(-2px, 1px, 0) rotate(-0.8deg); }
  48%  { transform: translate3d(2px, -1px, 0) rotate(0.8deg); }
  64%  { transform: translate3d(-1px, 1px, 0) rotate(-0.5deg); }
  80%  { transform: translate3d(1px, -1px, 0) rotate(0.5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes shakeWrap {
  0%   { transform: translate3d(0, 0, 0); }
  15%  { transform: translate3d(-2px, 1px, 0); }
  30%  { transform: translate3d(2px, -1px, 0); }
  45%  { transform: translate3d(-1px, 1px, 0); }
  60%  { transform: translate3d(1px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.slot-col.shaking .slot-window {
  animation: shakeSlot 0.5s ease-in-out;
  will-change: transform;
}
.casino-wrap.shaking {
  animation: shakeWrap 0.45s ease-in-out;
  will-change: transform;
}

/* ===== JACKPOT BAR ===== */
.jackpot-bar {
  margin: 0 12px 8px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #0d0820, #1a0535, #0d0820);
  border: 1px solid #3a0a7a;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position:relative; overflow:hidden;
}

.jackpot-bar::before {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent 0%, rgba(191,0,255,0.07) 50%, transparent 100%);
  animation: jackpotSweep 2.5s linear infinite;
}
@keyframes jackpotSweep { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

.jackpot-label {
  font-family:'Orbitron',monospace;
  font-size:9px;
  color:#6030a0;
  letter-spacing:2px;
  text-transform:uppercase;
}

.jackpot-value {
  font-family:'Orbitron',monospace;
  font-size:15px;
  font-weight:900;
  color:#ffd700;
  text-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255,215,0,0.5);
  letter-spacing:2px;
}

.jackpot-odds {
  font-family:'Orbitron',monospace;
  font-size:9px;
  color:#9040d0;
  letter-spacing:1px;
}

/* ===== BUTTON AREA ===== */
.btn-area {
  padding: 6px 12px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  position:relative;
  z-index:1;
  flex-shrink: 0;
}

.spin-btn {
  font-family:'Orbitron',monospace;
  font-size:14px;
  font-weight:900;
  letter-spacing:3px;
  color:#000;
  background: linear-gradient(135deg, #ffd700 0%, #ff9500 50%, #ffd700 100%);
  background-size:200% auto;
  border: none;
  border-radius:40px;
  padding:14px 40px;
  cursor:pointer;
  text-transform:uppercase;
  transition:transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 0 14px rgba(255,215,0,0.6), 0 0 30px rgba(255,150,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: btnPulse 2s ease-in-out infinite;
  position:relative;
}
@keyframes btnPulse {
  0%,100%{box-shadow:0 0 14px rgba(255,215,0,0.6),0 0 30px rgba(255,150,0,0.3);}
  50%{box-shadow:0 0 24px rgba(255,215,0,0.9),0 0 50px rgba(255,150,0,0.6),0 0 70px rgba(255,215,0,0.2);}
}
.spin-btn:hover{transform:scale(1.06);}
.spin-btn:active{transform:scale(0.96);}
.spin-btn:disabled{opacity:0.5;cursor:not-allowed;transform:none;animation:none;}

.credits-box {
  font-family:'Orbitron',monospace;
  font-size:11px;
  color:#ffd700;
  text-shadow:0 0 8px rgba(255,215,0,0.6);
  letter-spacing:1px;
  background:#0d0820;
  border:1px solid #3a1a6a;
  border-radius:20px;
  padding:6px 14px;
}

/* ===== RESULT ===== */
.result-area {
  margin: 0 12px 12px;
  background: linear-gradient(180deg, #0a051a 0%, #04020d 100%);
  border: 1.5px solid #2a1060;
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 90px;
  max-height: min(38vh, 320px);
  position: relative;
  overflow: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.result-area::before {
  content:'';
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(191,0,255,0.012) 10px, rgba(191,0,255,0.012) 11px);
  pointer-events:none;
}

.result-placeholder {
  color:#3a1a6a;
  font-family:'Orbitron',monospace;
  font-size:11px;
  text-align:center;
  padding:16px 0;
  letter-spacing:3px;
  text-transform:uppercase;
}

.result-loading {
  color:#9060c0;
  font-family:'Orbitron',monospace;
  font-size:11px;
  text-align:center;
  padding:14px 0;
  letter-spacing:2px;
  animation:loadPulse 0.8s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.result-loading .loading-main { letter-spacing: 2px; }
.result-loading .loading-hint {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  color: #a080c0;
  animation: none;
  opacity: 0.85;
}
@keyframes loadPulse{0%,100%{opacity:0.3;text-shadow:none;}50%{opacity:1;text-shadow:0 0 10px #9060c0;}}

.result-content{display:none;position:relative;z-index:1;}
.result-content.visible{display:block;}

/* ===== FULLSCREEN RESULT MODAL ===== */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.result-modal[hidden] { display: none; }

.result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
}

.result-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #220650 0%, #06040f 70%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.result-modal-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(191,0,255,0.25);
  background: linear-gradient(180deg, rgba(13,8,32,0.96) 0%, rgba(6,4,15,0.7) 100%);
}

.result-modal-title {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8a8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-modal-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(191, 0, 255, 0.45);
  background: rgba(191, 0, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.result-modal-close:hover { transform: scale(1.04); background: rgba(191,0,255,0.28); }

.result-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14px 22px;
}

.result-modal-content {
  max-width: 980px;
  margin: 0 auto;
}

/* Sans-serif typography inside result modal (readability) */
.result-modal-box .ig-hero-badge,
.result-modal-box .ig-hero-name,
.result-modal-box .ig-panel-title,
.result-modal-box .ig-slot-label,
.result-modal-box .ig-slot-value,
.result-modal-box .ig-stat-label,
.result-modal-box .ig-stat-value,
.result-modal-box .share-label,
.result-modal-box .share-input,
.result-modal-box .share-copy-btn,
.result-modal-box .ig-prompt-copy {
  font-family: inherit;
}

.result-modal-box .share-label {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.result-modal-box .share-input {
  font-size: 14px;
}

.result-modal-box .share-copy-btn,
.result-modal-box .ig-prompt-copy {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— Infographic result —— */
.ig-hero {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(191,0,255,0.2);
}
.ig-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a0ff;
  background: rgba(191,0,255,0.15);
  border: 1px solid rgba(191,0,255,0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.ig-hero-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #ffd700, #ff00aa, #bf00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,0,170,0.35));
}
.ig-hero-tagline {
  font-size: 17px;
  font-weight: 600;
  color: #b8f0ff;
  text-shadow: 0 0 12px rgba(0,245,255,0.4);
  margin: 0 0 8px;
}
.ig-hero-edge {
  font-size: 13px;
  color: #e8d0ff;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.92;
}

.ig-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ig-stat {
  position: relative;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.ig-stat.gold { background: linear-gradient(145deg, rgba(255,215,0,0.12), rgba(255,100,0,0.08)); border-color: rgba(255,200,0,0.35); }
.ig-stat.cyan { background: linear-gradient(145deg, rgba(0,245,255,0.1), rgba(0,120,255,0.08)); border-color: rgba(0,245,255,0.3); }
.ig-stat.pink { background: linear-gradient(145deg, rgba(255,0,170,0.12), rgba(191,0,255,0.08)); border-color: rgba(255,0,170,0.3); }
.ig-stat.purple { background: linear-gradient(145deg, rgba(191,0,255,0.14), rgba(80,0,160,0.1)); border-color: rgba(191,0,255,0.35); }
.ig-stat-label {
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b8a0d8;
  margin-bottom: 4px;
}
.ig-stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.ig-ring {
  position: absolute;
  inset: auto -20px -20px auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(#bf00ff calc(var(--p) * 1%), rgba(255,255,255,0.06) 0);
  opacity: 0.35;
  pointer-events: none;
}

.ig-panel {
  background: rgba(13, 8, 32, 0.75);
  border: 1px solid rgba(191,0,255,0.22);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 0 16px rgba(0,0,0,0.3);
}
.ig-panel-wide { margin-bottom: 10px; }
.ig-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c8b0e8;
  margin: 0 0 10px;
}
.ig-panel-text {
  font-size: 15px;
  color: #ebe0f8;
  line-height: 1.65;
  margin: 0;
}
.ig-product-core {
  font-size: 16px;
  font-weight: 600;
  color: #f5eeff;
  line-height: 1.6;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.08);
  border-left: 3px solid #ffd700;
}
.ig-panel-sub {
  font-size: 13px;
  opacity: 0.92;
}
.ig-prompt-hint {
  font-size: 12px;
  color: #a080c8;
  margin: -4px 0 10px;
  line-height: 1.4;
}
.ig-prompt-panel .ig-prompt-box {
  width: 100%;
  min-height: 320px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(191, 0, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #ebe0f8;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}
.ig-prompt-copy {
  display: inline-block;
}
.ig-callout {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,245,255,0.08);
  border-left: 3px solid #00f5ff;
  font-size: 13px;
  color: #c8e8ff;
  line-height: 1.5;
}
.ig-callout span {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00f5ff;
  margin-bottom: 4px;
}
.ig-moat {
  font-style: italic;
  border-left: 3px solid #ffd700;
  padding-left: 12px;
}

.ig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ig-row .ig-panel { margin-bottom: 0; }

.ig-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 8px 4px 0;
}
.ig-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.ig-bar::before {
  content: '';
  display: block;
  width: 100%;
  max-width: 28px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ffd700, #ff00aa);
  box-shadow: 0 0 10px rgba(255,0,170,0.35);
}
.ig-bar span {
  font-size: 9px;
  color: #888;
  margin-top: 4px;
}
.ig-footnote {
  margin-top: 8px;
  font-size: 12px;
  color: #a98ad8;
}
.ig-footnote strong { color: #00f5ff; }
.ig-footnote-muted {
  font-size: 11px;
  color: #8878a8;
  margin-top: 4px;
}
.ig-bar[title] { cursor: help; }

.ig-unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.ig-unit-grid div {
  background: rgba(191,0,255,0.08);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.ig-unit-grid span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}
.ig-unit-grid strong {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: #fff;
}
.ig-donut {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#00f5ff calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-donut-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13,8,32,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #00f5ff;
}

.ig-price-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  min-height: 140px;
  padding-top: 8px;
}
.ig-price-col {
  flex: 1;
  max-width: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ig-price-bar {
  width: 100%;
  max-width: 48px;
  height: var(--h);
  min-height: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #bf00ff, #5500aa);
  margin-bottom: 8px;
}
.ig-price-label {
  font-size: 11px;
  color: #c8a8e8;
  line-height: 1.2;
  margin-bottom: 4px;
}
.ig-price-val {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  color: #ffd700;
}

.ig-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.ig-lane {
  background: rgba(0,245,255,0.06);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.ig-lane-icon { font-size: 28px; margin-bottom: 8px; }
.ig-lane-text { font-size: 12px; color: #d0c0f0; line-height: 1.45; }

.ig-risks { display: flex; flex-direction: column; gap: 8px; }
.ig-risk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,80,80,0.08);
  border-left: 3px solid #ff6b6b;
}
.ig-risk-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,80,80,0.25);
  color: #ffaaaa;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-risk-text { font-size: 13px; color: #e8c8c8; line-height: 1.45; }

.ig-timeline { display: flex; flex-direction: column; gap: 0; }
.ig-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-left: 2px solid rgba(191,0,255,0.35);
  margin-left: 11px;
  padding-left: 16px;
  position: relative;
}
.ig-step-dot {
  position: absolute;
  left: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bf00ff, #ff00aa);
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-step-text { font-size: 13px; color: #d8b8ff; line-height: 1.45; }

.ig-kpi-list { display: flex; flex-direction: column; gap: 8px; }
.ig-kpi-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.18);
}
.ig-kpi-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f5ff, #0088cc);
  color: #001018;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-kpi-body { flex: 1; min-width: 0; }
.ig-kpi-text {
  font-size: 13px;
  color: #d8c8f8;
  line-height: 1.45;
}
.ig-kpi-target {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
}
.ig-kpi-target-label {
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #80c8e0;
  flex-shrink: 0;
}
.ig-kpi-target-val {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #00f5ff;
  text-align: right;
  line-height: 1.3;
}
.ig-kpi-item--open .ig-kpi-text {
  opacity: 0.85;
}

.ig-share-panel .share-bar { margin-top: 4px; }

.ig-slots-panel {
  background: linear-gradient(145deg, rgba(20, 10, 45, 0.9), rgba(8, 5, 20, 0.85));
  border-color: rgba(255, 215, 0, 0.28);
}
.ig-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ig-slot-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(191, 0, 255, 0.35);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(191, 0, 255, 0.08);
}
.ig-slot-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b8a8d0;
  margin-bottom: 4px;
  line-height: 1.25;
}
.ig-slot-value {
  font-size: 12px;
  font-weight: 700;
  color: #ffe566;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .ig-slots-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-stats { grid-template-columns: repeat(2, 1fr); }
  .ig-stat-value { font-size: 15px; }
  .ig-hero-name { font-size: 24px; }
  .ig-row { grid-template-columns: 1fr; }
  .ig-bars { height: 90px; }
}

.result-hero {
  margin-bottom: 14px;
}

.result-hero-name {
  font-family:'Orbitron',monospace;
  font-size: 30px;
  font-weight: 900;
  background:linear-gradient(90deg,#ffd700,#ff00aa,#bf00ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  line-height: 1.1;
  filter:drop-shadow(0 0 8px rgba(255,0,170,0.35));
  margin-bottom: 6px;
}

.result-hero-tagline {
  font-size: 15px;
  font-weight: 800;
  color:#00f5ff;
  text-shadow:0 0 10px rgba(0,245,255,0.45);
  margin-bottom: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.result-card {
  grid-column: span 12;
  background: rgba(13, 8, 32, 0.72);
  border: 1px solid rgba(191,0,255,0.22);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.result-card-title {
  font-family:'Orbitron',monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a98ad8;
  margin-bottom: 8px;
}

.result-card-text {
  font-size: 14px;
  color: #d8b8ff;
  line-height: 1.65;
}

.result-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.result-pill {
  background: rgba(191,0,255,0.12);
  border: 1px solid rgba(191,0,255,0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #e0c8ff;
}

@media (min-width: 900px) {
  .result-card.half { grid-column: span 6; }
  .result-card.third { grid-column: span 4; }
}

@media (max-width: 720px) {
  .result-modal-body { padding: 14px 12px 18px; }
  .result-hero-name { font-size: 24px; }
  .result-hero-tagline { font-size: 14px; }
  .result-card-text { font-size: 13px; }
}

.result-tag {
  display:inline-block;
  background:linear-gradient(90deg,#bf00ff,#7700cc);
  border-radius:20px;
  padding:3px 12px;
  font-family:'Orbitron',monospace;
  font-size:9px;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:8px;
  text-shadow:0 0 6px rgba(255,255,255,0.5);
}

.result-name {
  font-family:'Orbitron',monospace;
  font-size:18px;
  font-weight:900;
  background:linear-gradient(90deg,#ffd700,#ff00aa,#bf00ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:4px;
  line-height:1.2;
  filter:drop-shadow(0 0 6px rgba(255,0,170,0.4));
}

.result-tagline {
  font-size:12px;
  font-weight:700;
  color:#00f5ff;
  text-shadow:0 0 8px rgba(0,245,255,0.5);
  margin-bottom:7px;
}

.result-desc {
  font-size:12px;
  color:#a080cc;
  line-height:1.65;
}

.result-metrics {
  display:flex;
  gap:6px;
  margin-top:10px;
  flex-wrap:wrap;
}

.metric-pill {
  background:rgba(191,0,255,0.1);
  border:1px solid rgba(191,0,255,0.3);
  border-radius:20px;
  padding:4px 10px;
  font-size:10px;
  color:#d080ff;
  text-shadow:0 0 4px rgba(191,0,255,0.4);
}

.share-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(191,0,255,0.2);
}

.share-label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  color: #6030a0;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.share-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.share-input {
  flex: 1;
  min-width: 140px;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  color: #c080ff;
  background: #04020d;
  border: 1px solid #3a1a6a;
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}

.share-input:focus {
  border-color: #bf00ff;
  box-shadow: 0 0 8px rgba(191,0,255,0.3);
}

.share-copy-btn {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #00f5ff, #bf00ff);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, opacity 0.15s;
}

.share-copy-btn:hover { transform: scale(1.04); }
.share-copy-btn.copied {
  background: linear-gradient(135deg, #00ff88, #00f5ff);
}

/* ===== WIN FLASH ===== */
.win-overlay {
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:10px;
  opacity:0;
}
.win-overlay.flash {
  animation:winFlash 0.4s ease-in-out 4;
}
@keyframes winFlash{
  0%,100%{opacity:0;background:transparent;}
  50%{opacity:1;background:radial-gradient(ellipse at 50% 50%,rgba(255,215,0,0.15),transparent 70%);}
}

/* ===== CORNER DECORATIONS ===== */
.corner {
  position:absolute;
  width:24px; height:24px;
  z-index:5;
  pointer-events:none;
}
.corner.tl{top:8px;left:8px;border-top:2px solid #bf00ff;border-left:2px solid #bf00ff;border-radius:4px 0 0 0;}
.corner.tr{top:8px;right:8px;border-top:2px solid #bf00ff;border-right:2px solid #bf00ff;border-radius:0 4px 0 0;}
.corner.bl{bottom:8px;left:8px;border-bottom:2px solid #bf00ff;border-left:2px solid #bf00ff;border-radius:0 0 0 4px;}
.corner.br{bottom:8px;right:8px;border-bottom:2px solid #bf00ff;border-right:2px solid #bf00ff;border-radius:0 0 4px 0;}

/* ===== SCANLINE ===== */
.scanline {
  position:absolute;
  left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(191,0,255,0.15),transparent);
  animation:scanMove 4s linear infinite;
  pointer-events:none;
  z-index:10;
}
@keyframes scanMove{0%{top:-2px}100%{top:100%}}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  :root {
    --slot-item-h: 72px;
    --slot-font: 12px;
    --slot-label-font: 9px;
  }

  .slots-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .casino-title {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .jackpot-value { font-size: 13px; }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  :root {
    --slot-item-h: 64px;
    --slot-font: 11.5px;
    --slot-label-font: 9px;
  }

  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .casino-wrap {
    flex: none;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .casino-header {
    padding: 14px 16px 12px;
  }

  .casino-title {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .casino-subtitle {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .lights-row {
    padding: 8px 10px 4px;
    gap: 4px;
  }

  .light {
    width: 8px;
    height: 8px;
  }

  .slots-outer {
    padding: 8px 10px;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .jackpot-bar {
    margin: 0 10px 6px;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    text-align: center;
  }

  .jackpot-label,
  .jackpot-odds {
    font-size: 8px;
  }

  .jackpot-value {
    font-size: 14px;
    width: 100%;
    text-align: center;
    order: -1;
  }

  .btn-area {
    position: sticky;
    bottom: 0;
    z-index: 25;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      180deg,
      rgba(6, 4, 15, 0) 0%,
      rgba(6, 4, 15, 0.94) 32%,
      #06040f 100%
    );
  }

  .spin-btn {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    font-size: 15px;
    min-height: 48px;
    touch-action: manipulation;
  }

  .result-area {
    margin: 0 10px max(12px, env(safe-area-inset-bottom, 0px));
    padding: 12px 14px;
    max-height: none;
    flex: 0 1 auto;
  }

  .result-name { font-size: 16px; }
  .result-desc,
  .result-tagline { font-size: 13px; }
  .metric-pill { font-size: 11px; }

  .share-row {
    flex-direction: column;
  }

  .share-copy-btn {
    width: 100%;
    padding: 12px;
    font-size: 10px;
  }

  .corner { width: 16px; height: 16px; }
}

/* ===== SMALL PHONE ===== */
@media (max-width: 380px) {
  :root {
    --slot-item-h: 58px;
    --slot-font: 11px;
  }

  .casino-title {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .slot-label-text {
    font-size: 8px;
  }
}

/* Short viewport (small phones, landscape) */
@media (max-width: 720px) and (max-height: 740px) {
  :root {
    --slot-item-h: 56px;
  }

  .casino-header {
    padding: 10px 14px 8px;
  }

  .casino-title {
    font-size: 16px;
  }

  .lights-row {
    padding: 6px 8px 2px;
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
  :root {
    --slot-item-h: 84px;
    --slot-font: 14px;
    --slot-label-font: 11px;
  }

  .slots-grid {
    gap: 10px;
  }
}
