:root {
  --bg-deep: #0a0e1f;
  --bg-panel: #121832;
  --bg-glass: rgba(18, 24, 50, 0.72);
  --coral: #ff6b4a;
  --coral-soft: #ff8a70;
  --teal: #2de2c7;
  --gold: #f5c542;
  --gold-soft: #ffe08a;
  --violet: #7b5cff;
  --text: #eef1ff;
  --muted: #9aa3c7;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow-teal: 0 0 32px rgba(45, 226, 199, 0.35);
  --glow-coral: 0 0 28px rgba(255, 107, 74, 0.4);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: var(--bg-deep);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 7, 18, 0.92);
  backdrop-filter: blur(8px);
}

.age-overlay[hidden] {
  display: none;
}

.age-card {
  width: min(440px, 100%);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1a2148 0%, #0f1430 100%);
  border: 1px solid rgba(45, 226, 199, 0.25);
  box-shadow: var(--shadow), var(--glow-teal);
  text-align: center;
}

.age-card h2 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.age-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.age-no {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
}

.age-no:hover {
  color: var(--coral-soft);
}

.top-strip {
  background: linear-gradient(90deg, #1a1035, #2a1855 50%, #1a1035);
  border-bottom: 1px solid var(--line);
  color: rgba(238, 241, 255, 0.88);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.top-strip strong {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
}

.brand img {
  border-radius: 12px;
  box-shadow: var(--glow-teal);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chip-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.chip-counter svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge-18--footer {
  min-width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--coral) 0%, #e03d20 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--glow-coral);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 31, 0.55) 0%, rgba(10, 14, 31, 0.92) 78%),
    url("../images/gameimg1.webp") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 226, 199, 0.18), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(255, 107, 74, 0.15), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(45, 226, 199, 0.12);
  border: 1px solid rgba(45, 226, 199, 0.35);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  text-shadow: 0 0 40px rgba(45, 226, 199, 0.25);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: rgba(238, 241, 255, 0.82);
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, #e84525 100%);
  color: #fff;
  box-shadow: var(--glow-coral);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid rgba(45, 226, 199, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a820 100%);
  color: #1a1035;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-nav {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
}

.pill-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  width: fit-content;
  margin: 0 auto;
}

.pill-nav a {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.pill-nav a:hover,
.pill-nav a.is-active {
  background: rgba(45, 226, 199, 0.15);
  color: var(--teal);
}

.bonus-bar {
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.12), rgba(255, 107, 74, 0.08));
  border: 1px solid rgba(245, 197, 66, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bonus-bar h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.bonus-bar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.bonus-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.bonus-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.bonus-status {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.game-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #171d3f 0%, #10152e 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
  border-color: rgba(45, 226, 199, 0.35);
  transform: translateY(-4px);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.game-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
}

.game-card p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
}

.game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, #e84525 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: box-shadow 0.2s ease;
}

.game-link:hover {
  box-shadow: var(--glow-coral);
}

.game-link.is-shake {
  animation: shake 0.35s ease;
}

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

.host-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #151b3d 0%, #0e1228 100%);
  border: 1px solid rgba(123, 92, 255, 0.25);
}

.host-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--coral-soft);
}

.host-copy p {
  margin: 0 0 0.85rem;
  color: rgba(238, 241, 255, 0.78);
}

.host-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-glass);
  border: 1px solid rgba(45, 226, 199, 0.22);
  backdrop-filter: blur(10px);
}

.feature-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid rgba(45, 226, 199, 0.3);
}

.feature-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid rgba(245, 197, 66, 0.4);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
}

.leaderboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.12), rgba(18, 24, 50, 0.9));
  border: 1px solid rgba(123, 92, 255, 0.3);
}

.leaderboard h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-family: var(--font-display);
}

.leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leader-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.leader-list li:last-child {
  border-bottom: 0;
}

.leader-rank {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(45, 226, 199, 0.15);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
}

.leader-score {
  color: var(--gold-soft);
  font-weight: 600;
}

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 600;
}

.faq-item button::after {
  content: "+";
  color: var(--teal);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.faq-item.is-open button::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #070a16;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 28ch;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-address {
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-age-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 107, 74, 0.06);
  border-top: 1px solid rgba(255, 107, 74, 0.15);
  border-bottom: 1px solid rgba(255, 107, 74, 0.15);
}

.footer-age-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-disclaimer {
  padding: 1.75rem 0;
}

.footer-disclaimer p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.footer-disclaimer a {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom {
  padding: 1rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(154, 163, 199, 0.75);
}

.prose-page {
  max-width: 760px;
  padding: 3rem 0 4rem;
}

.prose-updated {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--teal);
}

.prose-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose-page h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
}

.prose-page p,
.prose-page li {
  color: rgba(238, 241, 255, 0.82);
}

.prose-page ul {
  padding-left: 1.2rem;
}

.game-page {
  padding: 2rem 0 3rem;
}

.game-page-header {
  margin-bottom: 1.25rem;
}

.game-page-header a {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-size: 0.9rem;
}

.game-page-header h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.game-page-header p {
  margin: 0;
  color: var(--muted);
}

.game-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}

.game-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
}

.games-page-grid {
  display: grid;
  gap: 2.5rem;
}

.games-page-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--teal);
}

.games-page-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .host-section,
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .chip-counter {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bonus-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bonus-actions {
    align-items: stretch;
  }
}
