/* ============================================================
   PONSBET — acid-lime pixel casino
   Palette:
     --lime        #C8F000  brand acid lime (dominant)
     --lime-neon   #E3FF4F  neon glow / highlights
     --lime-pale   #F6FFD6  pale felt-tinted paper
     --felt        #55831B  table felt
     --felt-deep   #3E640F  floor shadow
     --ink         #15170C  glossy black
   Type: Press Start 2P (display/UI) · VT323 (body)
   ============================================================ */

:root {
  --lime: #c8f000;
  --lime-neon: #e3ff4f;
  --lime-pale: #f6ffd6;
  --felt: #55831b;
  --felt-deep: #3e640f;
  --ink: #15170c;
  --paper: #fdfff0;

  --px: "Press Start 2P", monospace;
  --body: "VT323", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------------- animated casino background ---------------- */

.bg-casino {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-sym {
  position: absolute;
  top: -12vh;
  font-family: var(--px);
  animation-name: symfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes symfall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(130vh) rotate(25deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-casino { display: none; }
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--px);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1px;
}

.topbar-logo img {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--px);
  font-size: 10px;
}

.topbar-nav a {
  text-decoration: none;
  padding: 6px 2px;
}

.topbar-nav a:hover { background: var(--lime); }

.topbar-nav .dot { color: var(--felt); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--px);
  font-size: 9px;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  background: var(--paper);
}

.chip-tag-square {
  width: 8px;
  height: 8px;
  background: var(--lime);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { background: var(--ink); } }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--px);
  font-size: 12px;
  padding: 16px 22px;
  border: 4px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 80ms, box-shadow 80ms;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }

.btn-primary { background: var(--lime); }

.btn-connect {
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 rgba(21, 23, 12, 0.35);
}

.btn-die {
  width: 12px;
  height: 12px;
  background: var(--ink);
  box-shadow: inset 4px 4px 0 var(--lime-neon);
}

/* ---------------- hero ---------------- */

.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--px);
  font-size: 11px;
  color: var(--felt);
  margin-bottom: 28px;
}

.wordmark {
  font-family: var(--px);
  font-size: clamp(40px, 9vw, 84px);
  letter-spacing: 2px;
  color: var(--ink);
  text-shadow:
    4px 4px 0 var(--lime),
    8px 8px 0 var(--felt);
  margin-bottom: 30px;
}

.hero-copy {
  font-size: 26px;
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-copy strong { background: var(--lime); padding: 0 4px; }
.hero-copy em { color: var(--felt); font-style: normal; font-weight: bold; }

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 44px;
}

/* ---------------- slot machine (signature) ---------------- */

.slot {
  display: inline-block;
  background: var(--ink);
  border: 4px solid var(--ink);
  padding: 14px 18px 12px;
  box-shadow: 8px 8px 0 var(--felt);
  margin-bottom: 40px;
}

.slot-top {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.slot-top span {
  width: 8px;
  height: 8px;
  background: var(--lime);
  animation: blink 1.2s steps(1) infinite;
}

.slot-top span:nth-child(2) { animation-delay: 0.4s; }
.slot-top span:nth-child(3) { animation-delay: 0.8s; }

.slot-window {
  display: flex;
  gap: 8px;
}

.reel {
  width: 64px;
  height: 76px;
  background: var(--lime-pale);
  border: 3px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--px);
  font-size: 30px;
  color: var(--ink);
  overflow: hidden;
}

.reel.spinning span { animation: reelshake 90ms steps(2) infinite; }

@keyframes reelshake {
  0% { transform: translateY(-4px); }
  100% { transform: translateY(4px); }
}

.reel.hit {
  background: var(--lime);
  border-color: var(--lime-neon);
}

.slot-msg {
  font-family: var(--px);
  font-size: 9px;
  color: var(--lime);
  margin-top: 12px;
  letter-spacing: 1px;
}

.slot.jackpot { animation: jackpot 300ms steps(2) 4; }

@keyframes jackpot {
  0% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
  100% { transform: translate(-3px, 3px); }
}

/* ---------------- steps + ticker ---------------- */

.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--px);
  font-size: 10px;
  margin-bottom: 34px;
}

.steps li:not(.steps-dot) {
  border: 3px solid var(--ink);
  padding: 10px 12px;
  background: var(--paper);
}

.steps-num { color: var(--felt); margin-right: 6px; }
.steps-dot { color: var(--felt); }

.hero-ticker {
  font-family: var(--px);
  font-size: 11px;
  color: var(--felt);
  margin-bottom: 18px;
}

.hero-scroll {
  font-size: 20px;
  color: var(--felt);
  animation: bob 1.4s steps(2) infinite;
}

@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------------- pixel casino floor ---------------- */

.floor { position: relative; }

.floor-sky {
  position: relative;
  height: 300px;
  background: linear-gradient(
    to bottom,
    var(--paper) 0%,
    var(--lime-pale) 30%,
    var(--lime-neon) 70%,
    var(--lime) 100%
  );
  overflow: hidden;
}

.glow-arc {
  position: absolute;
  left: 50%;
  bottom: -340px;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 6px solid var(--lime-neon);
  opacity: 0.8;
}

.puff {
  position: absolute;
  width: 90px;
  height: 26px;
  background: var(--lime-pale);
  box-shadow: 20px -14px 0 var(--lime-pale), -24px -8px 0 var(--lime-pale);
  opacity: 0.9;
  animation: drift 40s linear infinite;
}

.puff-1 { top: 18%; left: -10%; }
.puff-2 { top: 45%; left: 30%; animation-duration: 55s; animation-delay: -20s; }
.puff-3 { top: 28%; left: 70%; animation-duration: 48s; animation-delay: -35s; }

@keyframes drift {
  from { transform: translateX(-140px); }
  to { transform: translateX(110vw); }
}

.floor-scene {
  position: relative;
  height: 240px;
  background: var(--felt);
  border-top: 6px solid var(--felt-deep);
}

.spr {
  position: absolute;
  bottom: 0;
  image-rendering: pixelated;
}

.spr-cabinet { right: 6%; bottom: 10px; width: 176px; }
.spr-chips-a { left: 10%; bottom: 24px; width: 112px; }
.spr-chips-b { left: 30%; bottom: 20px; width: 70px; }
.spr-dice { left: 52%; bottom: 18px; width: 128px; }
.spr-cards { left: 68%; bottom: 22px; width: 98px; }

.floor-rail {
  height: 28px;
  background: var(--felt-deep);
  background-image: repeating-linear-gradient(
    90deg,
    var(--felt-deep) 0 24px,
    var(--felt) 24px 28px
  );
}

/* ---------------- shared section chrome ---------------- */

.section-title {
  font-family: var(--px);
  font-size: clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.title-chip {
  width: 16px;
  height: 16px;
  background: var(--lime);
  border: 3px solid currentColor;
  border-radius: 50%;
}

.section-sub {
  text-align: center;
  font-size: 24px;
  margin-bottom: 44px;
  opacity: 0.85;
}

/* ---------------- the pitch ---------------- */

.pitch {
  background: var(--ink);
  color: var(--lime-pale);
  padding: 72px 24px 80px;
}

.pitch .section-sub { color: var(--lime); opacity: 1; }

.pitch-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--ink);
  border: 4px solid var(--lime);
  padding: 26px 24px 28px;
  box-shadow: 8px 8px 0 var(--felt-deep);
}

.card-num {
  font-family: var(--px);
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--px);
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--lime-neon);
}

.card p { font-size: 23px; }
.card a { color: var(--lime); }

/* ---------------- games ---------------- */

.games {
  background: var(--lime);
  padding: 72px 24px 80px;
}

.games .section-sub { color: var(--ink); }

.games-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.cabinet {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 18px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 80ms;
}

.cabinet:hover { transform: translate(-2px, -2px); }

.cabinet-screen {
  background: var(--ink);
  border: 3px solid var(--felt);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-art {
  font-family: var(--px);
  font-size: 26px;
  color: var(--lime);
}

.cabinet h3 { font-family: var(--px); font-size: 13px; }

.cabinet p { font-size: 21px; min-height: 3em; }

.soon {
  font-family: var(--px);
  font-size: 9px;
  background: var(--ink);
  color: var(--lime);
  padding: 8px 10px;
  align-self: center;
}

.soon-open { background: var(--felt); color: var(--paper); }

.cabinet-empty { border-style: dashed; }

/* ---------------- faq ---------------- */

.faq {
  background: var(--lime-pale);
  padding: 72px 24px 88px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq details {
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.faq summary {
  font-family: var(--px);
  font-size: 12px;
  padding: 18px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--px);
  color: var(--felt);
}

.faq details[open] summary::after { content: "–"; }

.faq details[open] summary { background: var(--lime); }

.faq details p {
  padding: 16px 18px 20px;
  font-size: 23px;
}

/* ---------------- footer ---------------- */

.footer {
  background: var(--ink);
  color: var(--lime-pale);
}

.footer-banner {
  width: 100%;
  border-top: 6px solid var(--ink);
  border-bottom: 4px solid var(--lime);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 24px;
}

.footer-brand { font-family: var(--px); font-size: 10px; }
.footer-brand a { color: var(--lime); text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }

.footer-note { font-size: 20px; color: var(--felt); }

/* ---------------- responsive ---------------- */

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; justify-content: center; }
  .topbar-nav { order: 3; width: 100%; justify-content: center; }
  .hero { padding-top: 48px; }
  .reel { width: 52px; height: 64px; font-size: 24px; }
  .spr-cards { display: none; }
  .spr-dice { left: 46%; }
  .footer-row { justify-content: center; text-align: center; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puff, .hero-scroll, .chip-tag-square, .slot-top span { animation: none; }
  .reel.spinning span { animation: none; }
  .slot.jackpot { animation: none; }
}
