
:root {
  --midnight: #020418;
  --abyss: #0E5E6F;
  --cyan: #1BA3C6;
  --foam: #9AE6FF;
  --emerald: #1F7A3D;
  --clover: #2FA85A;
  --gold: #D98E04;
  --sun: #F2D16B;
  --ivory: #F4FFF7;

  --bg: #020418;
  --bg-elevated: #07101d;
  --surface: rgba(9, 17, 32, 0.84);
  --surface-strong: rgba(9, 17, 32, 0.96);
  --surface-alt: rgba(14, 24, 42, 0.92);
  --border: rgba(154, 230, 255, 0.14);
  --border-strong: rgba(154, 230, 255, 0.24);
  --text: #f4fff7;
  --muted: rgba(244, 255, 247, 0.74);
  --soft: rgba(244, 255, 247, 0.56);
  --danger: #f46f63;
  --success: #49cb77;
  --warning: #ffd369;

  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-soft: 24px;
  --container: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --theme-primary: #0E5E6F;
  --theme-secondary: #1BA3C6;
  --theme-accent: #9AE6FF;
  --theme-text: #EAFBFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(27, 163, 198, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(242, 209, 107, 0.12), transparent 22%),
    linear-gradient(180deg, #020418 0%, #050916 55%, #071020 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 1000;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 4, 24, 0.72);
  border-bottom: 1px solid rgba(154, 230, 255, 0.09);
}

.site-header__inner {
  width: min(calc(100% - 32px), 1280px);
  margin-inline: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 220px;
  max-width: 42vw;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  margin: auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

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

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--soft);
  background: rgba(9, 17, 32, 0.64);
  font-size: 0.84rem;
  font-weight: 600;
}

.theme-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-secondary), var(--theme-accent));
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #07111b;
  background: linear-gradient(135deg, var(--sun), #f6e3a1 100%);
  box-shadow: 0 14px 28px rgba(242, 209, 107, 0.18);
}

.button--secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(27, 163, 198, 0.24), rgba(154, 230, 255, 0.14));
  border-color: rgba(154, 230, 255, 0.18);
}

.button--ghost {
  color: var(--text);
  background: rgba(9, 17, 32, 0.38);
  border-color: var(--border);
}

.hero {
  padding: 72px 0 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero__eyebrow,
.section__eyebrow {
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  max-width: 12ch;
}

.hero p,
.page-hero p,
.section__copy,
.card p,
.faq-item p,
.legal-page p,
.legal-page li,
.account-grid p {
  color: var(--muted);
  margin-top: 0;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero__visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero__panel {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(154, 230, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.96), rgba(4, 10, 22, 0.92));
  box-shadow: var(--shadow);
}

.hero__panel--lockup {
  padding: 22px;
  min-height: 400px;
  display: grid;
  place-items: center;
}

.hero__panel--lockup::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(154, 230, 255, 0.08);
}

.hero__panel--lockup img {
  max-width: min(480px, 88%);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.38));
}

.hero__panel--collage {
  padding: 18px;
}

.hero__panel--collage img {
  border-radius: 22px;
  width: 100%;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.meta-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9, 17, 32, 0.62);
  border: 1px solid rgba(154, 230, 255, 0.12);
}
.meta-card span {
  display: block;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.notice-strip {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 16, 28, 0.8);
  border: 1px solid rgba(242, 209, 107, 0.16);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.notice-strip strong {
  color: var(--sun);
  min-width: 110px;
}

.section {
  padding: 42px 0;
}

.section--spacious {
  padding: 64px 0;
}

.section__header {
  max-width: 760px;
  margin-bottom: 26px;
}

.section__title {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.92), rgba(4, 9, 20, 0.98));
  border: 1px solid rgba(154, 230, 255, 0.10);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.18);
}

.card--glass {
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.74), rgba(5, 11, 20, 0.88));
  backdrop-filter: blur(18px);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(154,230,255,0), rgba(154,230,255,0.14), rgba(154,230,255,0));
}

.theme-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.theme-card__art {
  min-height: 250px;
  border-bottom: 1px solid rgba(154, 230, 255, 0.08);
}
.theme-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card__body,
.game-card__body {
  padding: 18px 20px 20px;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(154,230,255,0.1);
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-card h3,
.game-card h3,
.panel h3,
.faq-item h3,
.account-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.18;
}

.theme-card__footer,
.game-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding: 0 20px 22px;
}

.game-card__meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.95rem;
}

.game-card__meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(154,230,255,0.08);
  padding-top: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(154, 230, 255, 0.10);
  background: rgba(8, 16, 30, 0.62);
}
.stat-card span {
  display: block;
  color: var(--soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

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

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(154,230,255,0.08);
}
.feature-list strong {
  display: block;
  margin-bottom: 6px;
}

.page-hero {
  padding: 56px 0 20px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 26px;
  align-items: center;
}

.page-hero__visual {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(154,230,255,0.14);
  box-shadow: var(--shadow);
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.meta-row span {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(154,230,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.preview-shell {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8,16,30,0.96), rgba(4,9,20,0.98));
  border: 1px solid rgba(154,230,255,0.12);
  box-shadow: var(--shadow);
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.preview-side {
  display: grid;
  gap: 14px;
}

.panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(154,230,255,0.08);
}

.panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.panel th,
.panel td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(154,230,255,0.08);
  text-align: left;
  color: var(--muted);
}
.panel th {
  color: var(--soft);
  font-weight: 600;
  width: 42%;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.filter-select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 16, 30, 0.72);
  color: var(--text);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(154,230,255,0.08);
  background: rgba(8,16,30,0.72);
}

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.account-nav {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 106px;
  align-self: start;
}

.account-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(154,230,255,0.08);
  color: var(--muted);
  background: rgba(8,16,30,0.62);
  font-weight: 700;
}

.account-nav a:hover,
.account-nav a:focus {
  color: var(--text);
  border-color: rgba(154,230,255,0.18);
}

.account-sections {
  display: grid;
  gap: 18px;
}

.account-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(154,230,255,0.10);
  background: rgba(8,16,30,0.72);
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar span {
  display: block;
  width: var(--progress, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-accent));
}

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

.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(154,230,255,0.08);
  background: rgba(8,16,30,0.72);
}

.legal-grid {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(8,16,30,0.72);
  border: 1px solid rgba(154,230,255,0.08);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.legal-page h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.legal-page ul {
  padding-left: 18px;
}

.site-footer {
  padding: 34px 0 40px;
  border-top: 1px solid rgba(154,230,255,0.08);
  background: rgba(2, 4, 24, 0.9);
  margin-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-brand img {
  width: 220px;
  max-width: 100%;
}
.footer-note {
  color: var(--soft);
  font-size: 0.94rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 12px 24px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__panel {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(154,230,255,0.14);
  background: rgba(4, 9, 20, 0.96);
  box-shadow: 0 20px 60px rgba(0,0,0,0.34);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 4, 10, 0.78);
}
.age-modal.is-open {
  display: grid;
}
.age-modal__panel {
  width: min(100%, 540px);
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(8,16,30,0.98), rgba(3,8,18,0.98));
  border: 1px solid rgba(154,230,255,0.14);
  box-shadow: var(--shadow);
}
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  margin: 12px 0;
}
.checkbox-row input {
  margin-top: 6px;
}

.asset-missing {
  outline: 2px dashed rgba(244,111,99,0.7);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-atlantis {
  --theme-primary: #0E5E6F;
  --theme-secondary: #1BA3C6;
  --theme-accent: #9AE6FF;
  --theme-text: #EAFBFF;
}
.theme-savanna {
  --theme-primary: #A65B1B;
  --theme-secondary: #D98E04;
  --theme-accent: #F2C94C;
  --theme-text: #FFF7E8;
}
.theme-irish {
  --theme-primary: #1F7A3D;
  --theme-secondary: #2FA85A;
  --theme-accent: #F2D16B;
  --theme-text: #F4FFF7;
}

@media (max-width: 1024px) {
  .hero__grid,
  .page-hero__grid,
  .preview-grid,
  .grid--cards-4,
  .grid--cards-3,
  .grid--split,
  .account-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(154,230,255,0.12);
    background: rgba(4, 9, 20, 0.97);
    box-shadow: 0 18px 46px rgba(0,0,0,0.28);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
  .header-actions .theme-chip {
    display: none;
  }
  .brand img {
    width: 178px;
    max-width: 50vw;
  }
  .cookie-banner__panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 76px;
    gap: 12px;
  }
  .button {
    width: 100%;
  }
  .hero {
    padding-top: 38px;
  }
  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
  .hero__meta,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notice-strip {
    flex-direction: column;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .account-nav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
