:root {
  --color-bg: #1a0a12;
  --color-bg-soft: #2a1220;
  --color-bg-card: rgba(53, 24, 40, 0.78);
  --color-surface: #351828;
  --color-emerald: #6b2d4a;
  --color-emerald-light: #8e4568;
  --color-gold: #c9a87c;
  --color-gold-light: #dfc9a8;
  --color-gold-muted: rgba(201, 168, 124, 0.18);
  --color-text: #f8f0f4;
  --color-text-muted: rgba(248, 240, 244, 0.72);
  --color-border: rgba(201, 168, 124, 0.22);
  --color-success: #4ade80;
  --color-danger: #f87171;
  --container-max: 1180px;
  --container-wide: 1320px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.32);
  --shadow-gold: 0 8px 32px rgba(201, 168, 124, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --header-height: 78px;
  --gradient-hero: linear-gradient(145deg, #120610 0%, #2a1220 38%, #351828 72%, #1a0a12 100%);
  --gradient-gold: linear-gradient(135deg, #c9a87c 0%, #dfc9a8 50%, #a88758 100%);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header {
  background: rgba(26, 10, 18, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}

.header--rail {
  height: var(--header-height);
}

.header__rail {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.header__brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: var(--shadow-gold);
}

.header__brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.header__brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.header__brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.header__rail-nav {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 2px;
}

.header__rail-link {
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.header__rail-link:hover,
.header__rail-link--active {
  color: var(--color-gold-light);
  background: var(--color-gold-muted);
}

.header__rail-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.header__rail-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.header__rail-login:hover {
  color: var(--color-gold-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.header__logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-gold);
}

.header__logo-text {
  display: none;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header__nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-gold-light);
  background: var(--color-gold-muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header__auth {
  display: none;
  gap: 8px;
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

.header__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.55);
  border: none;
  z-index: 998;
}

.header__backdrop.is-visible {
  display: block;
}

.header__mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: min(320px, 88vw);
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-soft);
  border-left: 1px solid var(--color-border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.header__mobile-menu.is-open {
  transform: translateX(0);
}

.header__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__mobile-link--active,
.header__mobile-link:hover {
  color: var(--color-gold-light);
}

button.header__mobile-link {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.header__mobile-cta {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

main {
  padding-top: var(--header-height);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn--primary {
  background: var(--gradient-gold);
  color: #1a1208;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.28);
}

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-gold-light);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--color-gold-muted);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section__badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__subtitle {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.hero {
  padding: 56px 0 72px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.12), transparent 45%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero__title em {
  color: var(--color-gold);
  font-style: normal;
}

.hero__text {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

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

.page-hero {
  padding: 64px 0 48px;
  background: var(--gradient-hero);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.page-hero__subtitle {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.page-hero__visual {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.game-section {
  padding: 56px 0 80px;
}

.game-frame {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.game-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.18);
}

.game-frame__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.game-frame__badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.game-frame__body {
  position: relative;
  background: #061009;
}

.game-frame__iframe {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  border: 0;
}

.game-launcher {
  width: 100%;
}

.game-launcher__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: #061009;
  cursor: pointer;
}

.game-launcher__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-launcher__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(6, 16, 9, 0.45);
  padding: 24px;
  text-align: center;
}

.game-launcher__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-text);
}

.game-launcher__note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 420px;
}

.game-launcher__play {
  min-width: auto;
  padding: 0;
  background: none;
  box-shadow: none;
}

.game-launcher__play:hover {
  transform: none;
  background: none;
}

.game-launcher__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #1a1208;
  font-size: 1.6rem;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.game-launcher__preview:hover .game-launcher__play-icon {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.35);
}

.game-launcher.is-active .game-launcher__preview {
  display: none;
}

.game-launcher__frame {
  display: none;
}

.game-launcher.is-active .game-launcher__frame {
  display: block;
}

.game-launcher.is-active .game-frame {
  margin-top: 0;
}

.game-launcher .game-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.game-launcher .game-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.features-grid {
  display: grid;
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-card__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card__body {
  padding: 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.feature-card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.stats-row {
  display: grid;
  gap: 18px;
}

.stat-card {
  padding: 24px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.stat-card__label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.content-block img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 36px 0 12px;
  color: var(--color-gold-light);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 10px 0 16px;
}

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

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item__question::after {
  content: "+";
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__question::after {
  content: "−";
}

.faq-item__answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--color-text-muted);
}

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

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-gold-light);
}

.contact-card p {
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 320px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.form-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-card__subtitle {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-note a {
  color: var(--color-gold);
  text-decoration: underline;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.auth-modal__form .checkbox-label {
  align-items: flex-start;
}

.auth-modal__form .checkbox-label a {
  color: var(--color-gold);
  text-decoration: underline;
}

.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  gap: 22px;
}

.pricing-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.pricing-card__period {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 22px;
}

.pricing-card__features li {
  padding: 8px 0;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card__features li::before {
  content: "✓ ";
  color: var(--color-gold);
}

.disclaimer-banner {
  padding: 18px 22px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.disclaimer-banner strong {
  color: var(--color-gold-light);
}

.footer {
  background: #061009;
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

.footer__brand p {
  color: var(--color-text-muted);
  margin-top: 14px;
  max-width: 340px;
  font-size: 0.92rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--color-gold-light);
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__compliance {
  padding: 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.footer__compliance p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer__compliance p:last-child {
  margin-bottom: 0;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.footer__badge {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold);
}

.footer__helplines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  padding: 26px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__helpline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.footer__helpline:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__helpline img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer__helpline-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(460px, 100%);
  padding: 32px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.is-visible .modal {
  transform: translateY(0);
}

.auth-modal {
  align-items: flex-start;
  padding: 16px;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .auth-modal {
    align-items: center;
    padding: 24px;
  }
}

.auth-modal__panel {
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  text-align: left;
  padding: 28px 24px 24px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.auth-modal__panel--wide {
  width: min(520px, 100%);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  transition: color var(--transition), background var(--transition);
}

.auth-modal__close:hover {
  color: var(--color-gold-light);
  background: var(--color-gold-muted);
}

.auth-modal__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 8px;
  padding-right: 36px;
}

.auth-modal__subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.auth-modal__form .form-group {
  margin-bottom: 14px;
}

.auth-modal__switch {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-modal__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-modal__link:hover {
  color: var(--color-gold-light);
}

button.header__rail-login {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gold-muted);
  color: var(--color-gold);
  font-size: 1.5rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.modal__text {
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  padding: 20px 22px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(120%);
  transition: transform var(--transition);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1 1 280px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.cookie-banner__text a {
  color: var(--color-gold);
  text-decoration: underline;
}

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

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.age-gate__card {
  width: min(480px, 100%);
  padding: 36px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.age-gate__text {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.age-gate__actions {
  display: grid;
  gap: 10px;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .header__auth {
    display: flex;
  }

  .header__burger,
  .header__backdrop,
  .header__mobile-menu {
    display: none;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .game-launcher .game-frame {
    padding-bottom: 83%;
  }
}

/* ===== Bosco Fior unique layout ===== */

.page-home,
.page-contact,
.page-inner {
  --header-height: 68px;
}

@media (min-width: 900px) {
  .page-home,
  .page-contact,
  .page-inner {
    --header-height: 78px;
  }

  .header__brand-text {
    display: flex;
  }

  .header__rail-nav {
    display: flex;
  }

  .header__rail-actions {
    display: flex;
  }
}

/* BLOCK 1 — Offset diagonal hero */
.offset-hero {
  position: relative;
  padding-bottom: 48px;
  background: var(--color-bg);
  overflow: hidden;
}

.offset-hero__visual {
  position: relative;
  width: 100%;
  max-height: 62vh;
  overflow: hidden;
}

.offset-hero__visual img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
}

.offset-hero__slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.offset-hero__body {
  display: grid;
  gap: 20px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.offset-hero__card {
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.offset-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.offset-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.offset-hero__title em {
  color: var(--color-gold);
  font-style: normal;
}

.offset-hero__text {
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.offset-hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.offset-hero__notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.offset-hero__notice-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--gradient-gold);
  color: #1a1208;
  border-radius: 50%;
}

.offset-hero__notice p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .offset-hero__body {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
    margin-top: -100px;
  }
}

/* BLOCK 2 — Triple ticker lanes */
.ticker-lanes {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  background: #120610;
  border-block: 1px solid var(--color-border);
  overflow: hidden;
}

.ticker-lanes__row {
  display: flex;
  gap: 40px;
  width: max-content;
  white-space: nowrap;
}

.ticker-lanes__row span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.ticker-lanes__row--left {
  animation: ticker-left 32s linear infinite;
}

.ticker-lanes__row--right {
  animation: ticker-right 28s linear infinite;
}

@keyframes ticker-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ticker-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* BLOCK 3 — Game dock */
.game-dock {
  padding: 72px 0;
  background: linear-gradient(180deg, #120610 0%, #351828 100%);
}

.game-dock__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.game-dock__lead {
  color: rgba(248, 240, 244, 0.72);
  margin-top: 12px;
}

.section__badge--light {
  color: var(--color-gold-light);
}

.section__title--light {
  color: var(--color-text);
}

.game-dock__tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.game-dock__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.game-dock__tab img {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.game-dock__tab.is-active {
  border-color: var(--color-gold);
  background: var(--color-gold-muted);
  color: var(--color-text);
}

.game-dock__player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.game-dock__player-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--color-border);
}

.game-dock__player-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.game-dock__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-dock__tags span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.game-dock__stage {
  padding: 16px;
  background: #0a0610;
}

.game-dock__stage .game-launcher__preview {
  border-radius: var(--radius-md);
}

.game-dock__stage .game-launcher.is-active .game-launcher__frame.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 704 / 430;
  padding-bottom: 0;
  min-height: 240px;
  background: #000;
}

.game-dock__stage .game-launcher.is-active .game-launcher__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .game-dock__stage .game-launcher.is-active .game-launcher__frame.game-frame {
    aspect-ratio: 420 / 348;
    min-height: 200px;
  }
}

/* BLOCK 4 — Feature strip */
.feature-strip {
  padding: 72px 0;
  background: var(--color-bg-soft);
}

.feature-strip__head {
  margin-bottom: 28px;
}

.feature-strip__track {
  display: grid;
  gap: 16px;
}

.feature-strip__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  min-height: 180px;
}

.feature-strip__card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.feature-strip__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-strip__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-strip__body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.feature-strip__card--fun,
.feature-strip__card--coins {
  direction: rtl;
}

.feature-strip__card--fun > *,
.feature-strip__card--coins > * {
  direction: ltr;
}

.feature-strip__card--social {
  border-color: rgba(201, 168, 124, 0.4);
}

.feature-strip__card--coins {
  background: linear-gradient(135deg, #351828, #1a0a12);
}

@media (min-width: 900px) {
  .feature-strip__track {
    grid-template-columns: 1fr 1fr;
  }

  .feature-strip__card--social,
  .feature-strip__card--premium {
    grid-column: span 1;
  }
}

/* BLOCK 5 — Zigzag panels */
.zigzag__item {
  display: grid;
  gap: 32px;
  padding: 56px 24px;
  align-items: center;
}

.zigzag__item--coins {
  background: var(--color-bg);
}

.zigzag__item--mission {
  background: var(--color-surface);
}

.zigzag__item--about {
  background: var(--color-bg-soft);
}

.zigzag__media img {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.zigzag__copy {
  max-width: 520px;
  margin: 0 auto;
}

.zigzag__copy p {
  color: var(--color-text-muted);
  margin: 14px 0 22px;
}

@media (min-width: 900px) {
  .zigzag__item {
    grid-template-columns: 1fr 1fr;
    padding: 72px 48px;
    max-width: var(--container-wide);
    margin: 0 auto;
  }

  .zigzag__item--reverse .zigzag__media {
    order: 2;
  }

  .zigzag__item--reverse .zigzag__copy {
    order: 1;
  }
}

/* BLOCK 6 — Explore timeline + mosaic */
.explore-section {
  background: var(--color-bg);
}

.explore-layout {
  display: grid;
  gap: 36px;
}

.explore-rail__steps {
  margin: 24px 0;
}

.explore-rail__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.explore-rail__steps span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  width: 32px;
}

.explore-rail__legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.explore-rail__legal a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
}

.explore-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.explore-cards__item {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 130px;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform var(--transition), border-color var(--transition);
}

.explore-cards__item:hover {
  transform: scale(1.02);
  border-color: var(--color-gold);
}

.explore-cards__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.explore-cards__item span {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.explore-cards__item--tall {
  grid-row: span 2;
  min-height: 100%;
}

.explore-cards__item--wide {
  grid-column: span 2;
}

.explore-cards__item--accent {
  background: linear-gradient(135deg, #6b2d4a, #351828);
  border-color: var(--color-gold);
}

@media (min-width: 900px) {
  .explore-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

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

/* BLOCK 7 — FAQ cards */
.faq-cards {
  padding: 72px 0;
  background: var(--color-surface);
}

.faq-cards__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.faq-cards__grid {
  display: grid;
  gap: 16px;
}

.faq-cards__item {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.faq-cards__item--highlight {
  background: linear-gradient(145deg, #351828, #1a0a12);
  border-color: var(--color-gold);
}

.faq-cards__n {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #1a1208;
  background: var(--gradient-gold);
  border-radius: 10px;
  margin-bottom: 14px;
}

.faq-cards__item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.faq-cards__item p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .faq-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* BLOCK 8 — Reach panel */
.reach-panel {
  display: grid;
  min-height: 420px;
}

.reach-panel__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(15%);
}

.reach-panel__body {
  padding: 40px 32px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reach-panel__body p {
  color: var(--color-text-muted);
  margin: 14px 0 20px;
}

.reach-panel__list {
  margin-bottom: 24px;
}

.reach-panel__list li {
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .reach-panel {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .reach-panel__map {
    min-height: 100%;
  }
}

/* BLOCK 9 — Compliance strip */
.compliance-strip {
  padding: 40px 0;
  background: #120610;
  border-top: 3px solid var(--color-gold);
}

.compliance-strip__inner {
  display: grid;
  gap: 20px;
  align-items: center;
}

.compliance-strip__inner img {
  border-radius: 14px;
  justify-self: start;
}

.compliance-strip blockquote {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  border: none;
}

.compliance-strip__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compliance-strip__badges span {
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .compliance-strip__inner {
    grid-template-columns: auto 1fr auto;
  }
}

.footer--columns {
  border-top: 1px solid var(--color-border);
}

/* Contact page */
.contact-hero {
  padding: 48px 0 32px;
  background: var(--gradient-hero);
}

.contact-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.contact-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.contact-hero__text {
  color: var(--color-text-muted);
  max-width: 560px;
}

.contact-hero__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .contact-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-map-section {
  position: relative;
  padding-bottom: 72px;
}

.contact-map-section__map {
  width: 100%;
  height: min(52vh, 480px);
  background: var(--color-surface);
}

.contact-map-section__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-section__overlay {
  display: grid;
  gap: 24px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.contact-org-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-org-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-org-card p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.contact-org-card__details li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-org-card__details a {
  color: var(--color-gold);
}

.contact-form-card {
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .contact-map-section__overlay {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    margin-top: -120px;
  }
}
