/* botf main styles — @james refactored fonts 09.06, don't touch woff paths */
/* FIXME: consolidate .glass-panel and .ui-glass later, low priority */
/* Taken from old MythicSlots codebase, some names kept on purpose */

/* Book of the Fallen Social Casino — Main Stylesheet */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-obsidian: #0f0f12;
  --bg-slate: #1a1a24;
  --accent-purple: #9d4edd;
  --accent-purple-deep: #8a2be2;
  --accent-gold: #d4af37;
  --accent-gold-bright: #ffd700;
  --accent-emerald: #2d6a4f;
  --text-silver: #e0e0e0;
  --text-muted: #d4d4d8;
  --glass-bg: rgba(15, 15, 18, 0.75);
  --border-gold: rgba(212, 175, 55, 0.5);
  --border-purple: rgba(157, 78, 221, 0.5);
  --shadow-glow: 0 0 20px rgba(157, 78, 221, 0.35);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.35);
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-height: 72px;
  --transition: 0.3s ease;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-silver);
  background-color: var(--bg-obsidian);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.site-header,
main,
.site-footer,
.cookie-banner,
.modal-overlay,
.mobile-overlay,
.mobile-panel {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent-gold-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text-silver);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-gold-bright),
    var(--accent-gold),
    var(--accent-purple)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}

.ornate-border {
  position: relative;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}

.ornate-border::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--border-purple);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-link img {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-silver);
  line-height: 1.2;
  display: none;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--text-silver);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-purple-deep),
    var(--accent-purple)
  );
  border-color: var(--accent-purple);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-purple);
  color: #fff;
}

.btn-secondary {
  border-color: var(--border-purple);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

.btn-login {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

/* Mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

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

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-slate);
  border-left: 1px solid var(--border-gold);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text-silver);
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  margin-top: 3rem;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--accent-gold);
}

.mobile-auth {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Main content */
main {
  padding-top: var(--header-height);
}

.section {
  padding: 3rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.4) 0%,
    rgba(15, 15, 18, 0.95) 100%
  );
  z-index: 1;
}

.hero-decor {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-decor--fog {
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 4rem 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1rem auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

/* Game section */
.iframe-section {
  padding: 3rem 0;
}

.iframe-wrapper {
  aspect-ratio: 1140 / 735;
  width: 100%;
  border: none;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.game-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 14;
  overflow: hidden;
}

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

.game-card__body {
  padding: 1.25rem;
}

.game-card h3 {
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card {
  padding: 1.5rem;
}

.review-card .stars {
  color: var(--accent-gold-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.review-author {
  font-weight: 600;
  color: var(--accent-gold);
}

/* Ancient Quests */
.quests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quest-item {
  padding: 1.25rem;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-emerald),
    var(--accent-purple)
  );
  border-radius: 4px;
  transition: width 1s ease;
}

/* Whispers feed */
.feed-list {
  list-style: none;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.feed-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-win {
  color: var(--accent-gold);
  font-weight: 600;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin: 0 auto 1rem;
}

/* Daily bonuses calendar */
.bonus-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.bonus-day {
  padding: 0.75rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}

.bonus-day.active {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.bonus-day .day-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-gold);
  display: block;
}

/* Hall of Champions */
.leaderboard {
  list-style: none;
}

.leaderboard li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.leaderboard .rank {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-gold);
  width: 32px;
}

.leaderboard .score {
  margin-left: auto;
  color: var(--accent-purple);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  list-style: none;
}

.faq-item {
  margin-bottom: 0.75rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text-silver);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition),
    padding var(--transition);
  padding: 0 1.25rem;
  color: var(--text-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

/* Disclaimer */
.disclaimer-block {
  padding: 2rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background: rgba(45, 106, 79, 0.1);
}

.disclaimer-block p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.disclaimer-block a {
  color: var(--accent-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-block a:hover,
.disclaimer-block a:focus-visible {
  color: var(--text-silver);
}

.site-footer a {
  color: var(--text-silver);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-gold-bright);
}

.footer-legal a {
  color: var(--accent-gold-bright);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text-silver);
}

.cookie-inner a {
  color: var(--accent-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-inner a:hover,
.cookie-inner a:focus-visible {
  color: var(--text-silver);
}

.disclaimer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Page content */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.page-content {
  padding: 2rem 0 4rem;
}

.page-content .content-block {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin: 2rem 0 1rem;
  color: var(--accent-gold);
}

.page-content h3 {
  margin: 1.5rem 0 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1rem 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: var(--text-silver);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text-silver);
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.form-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: rgba(157, 78, 221, 0.2);
  color: var(--accent-gold);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* Contact map */
.map-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 1;
  margin-bottom: 0;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card {
  padding: 2rem;
  text-align: center;
}

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

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

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

.pricing-features li::before {
  content: "ᚠ ";
  color: var(--accent-purple);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__body {
  padding: 1.25rem;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-slate);
  border-top: 1px solid var(--border-gold);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4,
.footer-col__title {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-silver);
  font-size: 0.875rem;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent-gold-bright);
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-legal p {
  margin-bottom: 0.75rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

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

.modal {
  background: var(--bg-slate);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--bg-slate);
  border-top: 1px solid var(--border-gold);
  padding: 1rem;
  transform: translateY(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}

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

.cookie-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

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

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

/* Decorative section images */
.section-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
}

.section-decor--left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
}

.section-decor--right {
  right: 0;
  top: 20%;
  width: 60px;
}

/* Tablet */
@media (min-width: 576px) {
  .logo-text {
    display: block;
  }
  .btn-login {
    display: inline-flex;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .hamburger {
    display: none;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .quests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-actions {
    flex-direction: row;
    justify-content: center;
  }
}

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

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

/* --- legacy / typo aliases, @tom said leave until QA pass 20.06 --- */
.pricin-card {
  /* typo kept, maps to pricing */
}
.hero-baner {
  position: relative;
}
.secton-dark {
  background: rgba(15, 15, 18, 0.6);
}
.card-fix-2026 {
  transform: translateZ(0);
} /* safari flicker fix */

/* mw- prefix = marketing widgets */
.mw-newsletterBlock {
  padding: 3rem 0;
}

.mw-newsletterInner {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.mw-newsletterForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mw-newsletterLegal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* game match quiz — added @sarah 11.06, deadline was tight */
.ui-quizWrapper {
  padding: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.quizProgress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.quizProgress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
  width: 25%;
  transition: width 0.35s ease;
}

.quizStep {
  display: none;
}
.quizStep.is-active {
  display: block;
}

.quizStep h3 {
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-size: 1.125rem;
}

.quizOptions {
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.quizOptionBtn {
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text-silver);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.quizOptionBtn:hover,
.quizOptionBtn:focus-visible {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.quizResult {
  display: none;
  text-align: center;
}

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

.quizResultCard {
  margin-top: 1rem;
  padding: 1.25rem;
  text-align: left;
}

.quizResultCard img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.quizNav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .mw-newsletterForm {
    flex-direction: row;
    align-items: stretch;
  }
  .mw-newsletterForm input[type="email"] {
    flex: 1;
  }
  .mw-newsletterForm .btn {
    white-space: nowrap;
  }
}

/* parallax sections — noticeable effect @mike 13.07 */
.mw-parallaxSection,
.cmz-parallaxSection {
  position: relative;
  overflow: hidden;
}

.mw-parallaxBg,
.cmz-parallaxBg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
}

.mw-parallaxBg__img,
.cmz-parallaxBg__img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

.mw-parallaxContent,
.cmz-parallaxContent {
  position: relative;
  z-index: 1;
}

/* scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-on-scroll.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-on-scroll.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* split content + image */
.cmz-splitSection {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

.cmz-splitSection__media img {
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  width: 100%;
}

.cmz-splitSection__text h2 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.team-card h3 {
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.team-card p {
  color: var(--accent-purple);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-card .team-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

.footer-badges a {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges a:hover {
  opacity: 1;
}

.footer-badges img {
  height: 32px;
  width: auto;
}

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

.content-illustration {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.content-illustration--spaced {
  margin-top: 12px;
}

.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse {
    animation: none;
  }
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.auth-panel__title,
.contact-form__title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-map__title {
  text-align: center;
  margin-top: 3rem;
}

.contact-hours {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.u-mt-2-5 {
  margin-top: 2.5rem;
}

.u-mt-3 {
  margin-top: 3rem;
}

.u-mt-1-5 {
  margin-top: 1.5rem;
}

.u-text-center {
  text-align: center;
}

.section-title--spaced {
  margin-top: 17px;
}

.page-content--no-top-pad {
  padding-top: 0;
}

.quest-progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.quest-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.quest-progress::-webkit-progress-value {
  background: linear-gradient(
    90deg,
    var(--accent-emerald),
    var(--accent-purple)
  );
  border-radius: 4px;
}

.quest-progress::-moz-progress-bar {
  background: linear-gradient(
    90deg,
    var(--accent-emerald),
    var(--accent-purple)
  );
  border-radius: 4px;
}

.cookie-banner[hidden] {
  display: none !important;
}
