:root {
  --bg: #070709;
  --bg-soft: #111018;
  --bg-card: #161520;
  --gold: #f6c453;
  --neon: #00ffd5;
  --pink: #ff4ad7;
  --blue: #4ad2ff;
  --lime: #a2ff6b;
  --cream: #f4efe6;
  --text: #f7f2e8;
  --muted: #b8b1a6;
  --shadow: rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(246, 196, 83, 0.12), transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(0, 255, 213, 0.08), transparent 35%),
    linear-gradient(160deg, #070709 0%, #0e0c15 50%, #0a0b10 100%);
  min-height: 100vh;
}

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

section {
  padding: 96px 8vw;
  position: relative;
  scroll-margin-top: 120px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
}

.section-header h2 {
  font-family: "Bungee", cursive;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  margin: 0.4rem 0 1.6rem;
}

.btn {
  background: linear-gradient(120deg, var(--gold), #f2a84e);
  color: #18120a;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(246, 196, 83, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 28px rgba(246, 196, 83, 0.25);
}

.btn.secondary {
  background: linear-gradient(120deg, var(--neon), var(--blue));
  color: #041316;
  box-shadow: 0 12px 24px rgba(0, 255, 213, 0.2);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(247, 242, 232, 0.35);
  color: var(--text);
  box-shadow: none;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 74, 215, 0.2), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 213, 0.12), transparent 35%),
    linear-gradient(140deg, rgba(15, 13, 20, 0.9), rgba(8, 7, 10, 0.95));
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid > * {
  min-width: 0;
}

.hero-content h1 {
  font-family: "Bungee", cursive;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}

.hero-content .sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.meter-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  max-width: 420px;
}

.meter {
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--gold));
  width: 42%;
  transition: width 0.3s ease;
}

.meter-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.meter-controls {
  display: inline-flex;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-media {
  position: relative;
}

.hero-card {
  background: rgba(15, 14, 19, 0.8);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-mini {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 255, 213, 0.08);
  border: 1px solid rgba(0, 255, 213, 0.25);
  color: var(--neon);
  font-size: 0.9rem;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  animation: float 4s ease-in-out infinite;
}

.icon-1 {
  top: -10px;
  left: -10px;
}

.icon-2 {
  top: 40%;
  right: 12%;
  animation-delay: 1s;
}

.icon-3 {
  bottom: 18%;
  left: 18%;
  animation-delay: 2s;
}

.icon-4 {
  bottom: -20px;
  right: 40%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.letter-section {
  background: linear-gradient(120deg, rgba(246, 196, 83, 0.15), rgba(255, 255, 255, 0.02));
}

.letter-card {
  background: #f8f1df;
  color: #2b1a0e;
  border-radius: 20px;
  padding: 32px;
  max-width: 720px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.letter-card ul {
  padding-left: 20px;
}

.letter-card .btn {
  margin-top: 20px;
}

.stamp {
  position: absolute;
  right: 24px;
  top: 24px;
  border: 3px dashed #b12a2a;
  color: #b12a2a;
  padding: 10px 14px;
  border-radius: 50%;
  font-weight: 700;
  transform: scale(1.6) rotate(-10deg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.letter-card.approved .stamp {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confetti 2.6s linear forwards;
  z-index: 9999;
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.reason-lab {
  margin: 26px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.reason-board {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: rgba(12, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.reason-board::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 90deg,
    rgba(0, 255, 213, 0.35),
    rgba(246, 196, 83, 0.3),
    rgba(255, 74, 215, 0.35),
    rgba(0, 255, 213, 0.35)
  );
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.3s ease;
}

.reason-lab.active .reason-board::before {
  opacity: 0.75;
  animation: reason-spin 6s linear infinite;
}

.reason-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.reason-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--neon);
}

.reason-head h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.reason-display {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.reason-big {
  min-height: 150px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Bungee", cursive;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.reason-big.flash {
  animation: reason-flash 0.45s ease;
}

.reason-lab.active .reason-big {
  animation: reason-glow 1.6s ease-in-out infinite;
}

.reason-meters {
  display: grid;
  gap: 12px;
}

.reason-meter-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reason-meter-card p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.reason-ring {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bungee", cursive;
  font-size: 1.2rem;
  color: var(--text);
  background: conic-gradient(var(--neon) 0deg 230deg, rgba(255, 255, 255, 0.12) 230deg 360deg);
  transition: background 0.35s ease;
}

.reason-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.reason-bar div {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  transition: width 0.35s ease;
}

.reason-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.reason-ticker {
  margin: 0;
  font-weight: 600;
  color: var(--neon);
}

.reason-ticker.flash {
  animation: reason-ticker-flash 0.45s ease;
}

.reason-lab.active .reason-ticker {
  animation: reason-ticker-glow 2s ease-in-out infinite;
}

.reason-gallery {
  position: relative;
  min-height: 320px;
}

.reason-photo {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.reason-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-1 {
  width: 72%;
  top: 0;
  left: 0;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}

.photo-2 {
  width: 62%;
  top: 22%;
  right: 0;
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite;
}

.photo-3 {
  width: 66%;
  bottom: 0;
  left: 12%;
  transform: rotate(-1deg);
  animation: float 5.5s ease-in-out infinite;
}

@keyframes reason-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes reason-flash {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes reason-glow {
  0%, 100% {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: inset 0 0 40px rgba(0, 255, 213, 0.25);
  }
}

@keyframes reason-ticker-flash {
  0% {
    transform: translateY(4px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes reason-ticker-glow {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.info-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.info-card h3 {
  margin-top: 0;
}

.arc-section {
  background: linear-gradient(140deg, rgba(10, 20, 35, 0.8), rgba(9, 10, 14, 0.95));
}

.arc-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.arc-panel {
  background: rgba(4, 9, 20, 0.8);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-intro {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.arc-request h3 {
  margin: 16px 0 10px;
  font-size: 1.1rem;
}

.arc-output {
  margin-top: 10px;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 12px;
  background: rgba(0, 255, 213, 0.12);
  border: 1px solid rgba(0, 255, 213, 0.25);
  color: var(--neon);
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
  max-width: 100%;
}

.arc-animate {
  animation: arcPulse 0.4s ease;
}

@keyframes arcPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.arc-alert {
  margin-top: 18px;
  padding: 16px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 64, 64, 0.1);
  border: 2px solid rgba(255, 64, 64, 0.45);
  color: #ff4040;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-shadow: 0 6px 16px rgba(255, 64, 64, 0.35);
}

.arc-image img {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.arc-generator-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-preview {
  text-align: center;
}

.map-preview img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-name {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-random-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-random-box {
  margin-top: 16px;
  width: 300px;
  height: 200px;
  max-width: 100%;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.map-random-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.map-random-box.is-empty img {
  opacity: 0;
}

.arc-image-animate {
  animation: arcImagePulse 0.45s ease;
}

@keyframes arcImagePulse {
  0% {
    transform: scale(0.98);
    filter: saturate(0.8);
  }
  50% {
    transform: scale(1.03);
    filter: saturate(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-content: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel.dark {
  background: rgba(4, 9, 20, 0.8);
}

.panel.media {
  padding: 16px;
}

.panel-caption {
  margin-top: 12px;
  color: var(--muted);
}

.generator {
  margin-top: 18px;
}

.cseho-section {
  background: linear-gradient(120deg, rgba(8, 10, 16, 0.95), rgba(12, 10, 18, 0.95));
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0 30px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 24px,
      rgba(0, 0, 0, 0.2) 24px,
      rgba(0, 0, 0, 0.2) 48px
    );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 1;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 7, 9, 1), rgba(7, 7, 9, 0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(90deg, rgba(7, 7, 9, 0), rgba(7, 7, 9, 1));
}

.marquee-track {
  display: flex;
  gap: 18px;
  align-items: center;
  width: max-content;
  animation: marquee-right 28s linear infinite;
  padding: 0 6vw;
}

.marquee-item {
  flex: 0 0 auto;
  width: 240px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.4);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.chalkboard {
  background: #0d2916;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 28px;
  font-family: "Kalam", cursive;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.chalk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.chalk-item h3 {
  margin-top: 0;
}

.chalk-status {
  color: #d0f5c2;
}

.chalk-note {
  margin-top: 20px;
  color: #9dd5aa;
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(4deg);
  }
}

.roller-section {
  background: linear-gradient(120deg, rgba(10, 12, 20, 0.95), rgba(10, 20, 30, 0.8));
}

.roller-game {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roller-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.roller-game-header h3 {
  margin: 0;
}

.roller-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

#rollerGameCanvas {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #07090f;
  display: block;
  touch-action: none;
}

.roller-game-status {
  margin: 10px 0 0;
  color: var(--neon);
  font-weight: 600;
}

.roller-game-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
}

.gemini-section {
  background: linear-gradient(140deg, rgba(24, 8, 32, 0.9), rgba(10, 12, 30, 0.95));
}

.lounge {
  background: rgba(60, 20, 90, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lounge input {
  width: 100%;
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 10, 20, 0.6);
  color: var(--text);
}

.lounge-result {
  color: var(--blue);
}

.casino-section {
  background: linear-gradient(140deg, rgba(14, 10, 6, 0.95), rgba(10, 10, 14, 0.95));
}

.casino-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.avatar-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.avatar-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.avatar-btn.selected {
  background: linear-gradient(120deg, var(--gold), #f2a84e);
  color: #1a120a;
  border-color: transparent;
}

.chip-bank {
  background: rgba(246, 196, 83, 0.12);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(246, 196, 83, 0.2);
}

.chip-count {
  font-size: 1.8rem;
  font-weight: 700;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.casino-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meme-wall {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.meme-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meme-card img {
  filter: saturate(1.2) contrast(1.1);
}

.meme-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: "Bungee", cursive;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
}

.slot-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 14px;
}

.roulette {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--gold) 0deg 60deg,
    #c24b65 60deg 120deg,
    var(--neon) 120deg 180deg,
    #3a6dd6 180deg 240deg,
    #2f9d74 240deg 300deg,
    #f2a84e 300deg 360deg
  );
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roulette-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid var(--gold);
}

.bj-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bj-bet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bj-bet input {
  width: 110px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.stats-wall {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: 14px;
}

.certificate {
  margin-top: 28px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(246, 196, 83, 0.08);
  border: 1px solid rgba(246, 196, 83, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section {
  background: linear-gradient(120deg, rgba(246, 196, 83, 0.18), rgba(0, 255, 213, 0.08));
}

.cta-card {
  background: rgba(15, 12, 18, 0.8);
  padding: 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-card h2 {
  font-family: "Bungee", cursive;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.cta-response {
  color: var(--muted);
}

.site-footer {
  padding: 32px 8vw 48px;
  background: #050506;
  color: var(--muted);
  font-size: 0.9rem;
}

.panic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 245, 0.96);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.2s ease;
}

.panic-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 360px;
}

.panic-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: #777;
}

body.panic .panic-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.panic main,
body.panic header {
  filter: blur(6px) grayscale(0.9);
}

.meter-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.2s ease;
}

.meter-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.meter-popup-card {
  background: #0f0d12;
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.meter-popup-card img {
  border-radius: 16px;
  margin-bottom: 16px;
}

.meter-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
}

.roller-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1002;
  transition: opacity 0.2s ease;
}

.roller-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.roller-popup-card {
  background: #0d0f16;
  border-radius: 20px;
  padding: 26px;
  max-width: 420px;
  width: min(90vw, 420px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
}

.roller-popup-card.win {
  max-width: 460px;
  width: min(92vw, 460px);
}

.roller-popup-card h3 {
  margin-top: 0;
}

.roller-popup-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.casino-scene {
  position: relative;
  margin: 16px auto;
  width: 320px;
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(10, 10, 20, 0.9), rgba(18, 10, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.casino-scooter {
  position: absolute;
  bottom: 18px;
  left: -80px;
  width: 90px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.casino-door {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 100px;
  height: 120px;
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.95);
  border: 2px solid rgba(246, 196, 83, 0.7);
  box-shadow: 0 0 20px rgba(246, 196, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bungee", cursive;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.casino-scene.play .casino-scooter {
  animation: scooter-enter 2s ease-out forwards;
}

@keyframes scooter-enter {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  70% {
    transform: translateX(230px);
    opacity: 1;
  }
  100% {
    transform: translateX(260px) scale(0.9);
    opacity: 0.2;
  }
}

.bj-popup {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 6, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1003;
  transition: opacity 0.2s ease;
}

.bj-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.bj-popup-card {
  background: #0b0a12;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  width: min(92vw, 440px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.bj-jackpot-label {
  font-family: "Bungee", cursive;
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.bj-jackpot-label.pulse {
  animation: bj-pulse 0.45s ease;
}

.bj-popup-card.blast {
  animation: jackpot-blast 0.6s ease;
}

.bj-jackpot-value {
  font-family: "Bungee", cursive;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--neon);
  margin: 12px 0 20px;
  text-shadow: 0 0 18px rgba(0, 255, 213, 0.35);
}

.bj-jackpot-close {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bj-jackpot-close.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.money-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.money-piece {
  position: absolute;
  opacity: 0.9;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  animation-name: money-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes bj-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes jackpot-blast {
  0% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  40% {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 0 28px rgba(246, 196, 83, 0.55);
  }
  70% {
    transform: scale(1.12) rotate(1deg);
    box-shadow: 0 0 40px rgba(0, 255, 213, 0.4);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes money-fall {
  0% {
    transform: translate(0, 0) rotate(var(--spin));
    opacity: 0.9;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift), 110vh) rotate(calc(var(--spin) + 720deg));
    opacity: 0;
  }
}

@media (max-width: 900px) {
  section {
    padding: 80px 6vw;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-media {
    order: -1;
  }

  .reason-lab {
    grid-template-columns: 1fr;
  }

  .reason-gallery {
    position: relative;
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .reason-photo {
    position: relative;
    width: 100%;
    transform: none;
    animation: none;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .meter-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .roulette {
    width: 150px;
    height: 150px;
  }

  .marquee-item {
    width: 180px;
    height: 120px;
  }

  .casino-scene {
    width: 260px;
    height: 130px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media {
    width: 100%;
  }

  .hero-card {
    padding: 12px;
  }

  .hero-mini {
    font-size: 0.85rem;
  }

  .floating-icon {
    display: none;
  }

  .reason-display {
    grid-template-columns: 1fr;
  }

  .reason-meters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 70px 5vw;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .reason-big {
    min-height: 120px;
  }

  .reason-ring {
    width: 96px;
    height: 96px;
    font-size: 1rem;
  }

  .map-random-box {
    width: 100%;
    height: 180px;
  }

  .marquee-item {
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .reason-big {
    font-size: 1.1rem;
  }

  .marquee-item {
    width: 140px;
    height: 100px;
  }

  .casino-scene {
    width: 220px;
    height: 120px;
  }
}
