:root {
  --bg-deep: #060c1a;
  --bg-panel: #0d1a34;
  --bg-soft: #16284d;
  --accent: #ffc85e;
  --accent-strong: #ff9f1c;
  --text-main: #ecf2ff;
  --text-muted: #b2c1df;
  --line: rgba(255, 255, 255, 0.14);
  --success: #8fffba;
  --danger: #ff8a8a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-height: 82px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% -4%, rgba(255, 200, 94, 0.2), transparent 34%),
    radial-gradient(circle at 92% -8%, rgba(95, 173, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #060c1a 0%, #081126 45%, #0b1731 100%);
  line-height: 1.55;
}

body.age-gate-active {
  overflow: hidden;
}

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

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

p {
  margin: 0;
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2.7vw, 2rem);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffffff;
  color: #101010;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 1200;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(6, 13, 30, 0.9);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
}

.brand-name {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.55rem;
  color: #fff7e3;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav a {
  color: #d8e4ff;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent));
  color: #101010;
  box-shadow: 0 14px 26px rgba(255, 159, 28, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 20px 30px rgba(255, 159, 28, 0.42);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f3f7ff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(62px, 9vw, 110px);
  background:
    linear-gradient(120deg, rgba(4, 9, 22, 0.85), rgba(6, 14, 33, 0.72)),
    url("images/main-bg.jpg") center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -110px;
  background: rgba(255, 200, 94, 0.14);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -110px;
  bottom: -160px;
  background: rgba(110, 178, 255, 0.15);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.76rem;
  margin-bottom: 16px;
  color: #f6c265;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 760px;
  font-size: clamp(1.06rem, 2.3vw, 1.22rem);
  margin-top: 18px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-bullets {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 26, 52, 0.62);
  display: grid;
  gap: 10px;
}

.hero-bullets span {
  color: #d9e6ff;
  font-weight: 700;
}

.section {
  padding: clamp(46px, 7vw, 80px) 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 760px;
}

.section-head p {
  font-size: 1rem;
}

.about-grid,
.story-grid,
.footer-grid,
.policy-grid {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.statement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.statement-list li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: #d7e2f7;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-step {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.story-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 200, 94, 0.2);
  border: 1px solid rgba(255, 200, 94, 0.5);
  color: #ffd889;
  font-weight: 800;
  margin-bottom: 12px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 6px 10px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f2f7ff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 800;
  color: #f4f7ff;
}

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

.faq-item p {
  padding: 0 18px 16px;
}

.contact-wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1.05fr;
}

.contact-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.contact-box a {
  color: #ffd57f;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 0.92rem;
  color: #d8e4ff;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 10, 24, 0.68);
  color: #f3f6ff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(255, 200, 94, 0.7);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4em;
  color: var(--success);
  font-weight: 700;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.policy-card p {
  margin: 10px 0 16px;
}

.page-main {
  padding: clamp(36px, 7vw, 70px) 0 clamp(48px, 7vw, 80px);
}

.simple-hero {
  padding-bottom: 24px;
}

.simple-hero p {
  max-width: 760px;
  margin-top: 12px;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-top: 16px;
}

.legal-content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 20, 0.95);
  padding-top: 38px;
}

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

.footer-grid h3 {
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #d6e1f6;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

.footer-note {
  margin-top: 14px;
  color: #f6d490;
}

.footer-bottom {
  padding: 22px 0 26px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
}

.footer-bottom p {
  color: #c8d5f1;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 16, 0.84);
  transition: opacity 0.2s ease;
}

.age-gate.show {
  opacity: 1;
  pointer-events: auto;
}

.age-gate-card {
  max-width: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #0e1f44, #09142e);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.age-gate-card p {
  color: #d7e3ff;
}

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.games-catalog {
  display: grid;
  gap: 22px;
}

.game-shell {
  margin: 0;
  padding: 0;
}

.game-frame-wrap {
  width: 100%;
  margin: 0;
}

.game-frame-wrap iframe {
  border: 0;
  width: 100%;
  min-height: calc(100vh - 260px);
  background: #050b1f;
  display: block;
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-wrap,
  .about-grid,
  .story-grid,
  .policy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    width: min(280px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(7, 15, 34, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .hero-actions,
  .age-gate-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .age-gate-actions .btn {
    flex: 1 1 100%;
  }

  .game-frame-wrap iframe {
    min-height: calc(100vh - 230px);
  }
}

/* Sunny theme refresh */
:root {
  --bg-deep: #fff2bf;
  --bg-panel: #fff7db;
  --bg-soft: #ffe4a8;
  --accent: #ffd447;
  --accent-strong: #ff8d1a;
  --text-main: #3f2b14;
  --text-muted: #795e3f;
  --line: rgba(179, 112, 25, 0.32);
  --success: #2b8d43;
  --danger: #be3f29;
  --shadow: 0 16px 34px rgba(190, 124, 42, 0.24);
}

body {
  background:
    radial-gradient(circle at 10% -12%, rgba(255, 206, 68, 0.68), transparent 34%),
    radial-gradient(circle at 88% -10%, rgba(255, 169, 64, 0.46), transparent 32%),
    linear-gradient(180deg, #fff8df 0%, #ffefc2 44%, #ffe2a7 100%);
}

.site-header {
  border-bottom: 1px solid rgba(205, 129, 27, 0.45);
  background: rgba(255, 247, 213, 0.9);
}

.brand-logo {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(227, 162, 65, 0.42);
}

.brand-name {
  color: #de5b08;
}

.main-nav {
  margin-left: auto;
}

.main-nav a {
  color: #7a3400;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 171, 49, 0.3);
  color: #592300;
}

.menu-toggle {
  border-color: rgba(200, 119, 27, 0.4);
  background: rgba(255, 255, 255, 0.84);
  color: #6b2d00;
}

.header-play-btn {
  padding: 11px 22px;
  color: #511a00;
  background: linear-gradient(120deg, #ff7f11, #ffd347 60%, #fff0a3);
  border: 1px solid rgba(175, 80, 7, 0.34);
  box-shadow: 0 12px 24px rgba(255, 132, 26, 0.35);
  letter-spacing: 0.07em;
}

.header-play-btn:hover,
.header-play-btn:focus-visible {
  box-shadow: 0 18px 28px rgba(255, 132, 26, 0.42);
  transform: translateY(-2px);
}

.btn-primary {
  color: #4b1b00;
  background: linear-gradient(120deg, #ff8f1f, #ffd84e 72%);
  box-shadow: 0 12px 23px rgba(255, 143, 31, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 16px 28px rgba(255, 143, 31, 0.36);
}

.btn-ghost {
  border-color: rgba(203, 118, 29, 0.52);
  color: #6f2f00;
  background: rgba(255, 255, 255, 0.58);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(185, 104, 18, 0.85);
  background: rgba(255, 225, 164, 0.75);
}

.hero {
  background:
    linear-gradient(110deg, rgba(255, 245, 201, 0.72), rgba(255, 194, 82, 0.48)),
    url("images/main-bg.jpg") center / cover no-repeat;
}

.hero::before {
  background: rgba(255, 163, 38, 0.28);
}

.hero::after {
  background: rgba(255, 212, 92, 0.34);
}

.eyebrow {
  color: #bd4f00;
}

.hero-bullets {
  border: 1px solid rgba(194, 115, 29, 0.33);
  background: rgba(255, 246, 218, 0.82);
}

.hero-bullets span {
  color: #6f3908;
}

.section + .section {
  border-top: 1px solid rgba(201, 124, 35, 0.2);
}

.card,
.story-step,
.game-card,
.faq-item,
.contact-box,
.policy-card {
  border: 1px solid rgba(190, 116, 28, 0.28);
  background: rgba(255, 251, 236, 0.86);
}

.statement-list li {
  border: 1px solid rgba(186, 114, 30, 0.26);
  background: rgba(255, 252, 244, 0.94);
  color: #6c431a;
}

.story-step .step-index {
  background: rgba(255, 190, 56, 0.36);
  border-color: rgba(202, 120, 20, 0.56);
  color: #8d3f00;
}

.tag {
  border: 1px solid rgba(185, 109, 23, 0.35);
  color: #764000;
  background: rgba(255, 239, 194, 0.7);
}

.faq-item summary {
  color: #693106;
}

.contact-box a {
  color: #b64d00;
}

.field-label {
  color: #73400f;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(189, 114, 28, 0.34);
  background: rgba(255, 255, 255, 0.88);
  color: #4f3414;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(255, 152, 31, 0.72);
}

.site-footer {
  border-top: 1px solid rgba(188, 114, 25, 0.35);
  background: linear-gradient(180deg, rgba(255, 229, 152, 0.88), rgba(255, 196, 89, 0.95));
}

.footer-grid a {
  color: #6e3407;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #3f1f04;
}

.footer-note {
  color: #9d3f00;
}

.footer-bottom {
  border-top: 1px solid rgba(187, 111, 23, 0.34);
}

.footer-bottom p {
  color: #6e3c12;
}

.age-gate {
  background: rgba(128, 77, 21, 0.5);
}

.age-gate-card {
  border: 1px solid rgba(194, 114, 22, 0.44);
  background: linear-gradient(180deg, #fff4cb, #ffd98d);
}

.age-gate-card p {
  color: #734111;
}

.game-frame-wrap iframe {
  background: #ffe8ac;
}

@media (max-width: 760px) {
  .main-nav {
    border: 1px solid rgba(195, 116, 24, 0.4);
    background: rgba(255, 249, 231, 0.98);
  }

  .header-play-btn {
    padding: 9px 16px;
    font-size: 0.86rem;
  }
}
