/* ============================================================
   NORTAL PLAY — warm-playful preset
   CSS structure: reset → variables → typography → layout → components → decor → media
   ============================================================ */

/* ---- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea { font: inherit; }

/* ---- VARIABLES --------------------------------------------- */
:root {
  /* Palette — warm-playful */
  --bg-primary:    #FFF8F0;
  --bg-secondary:  #FFE8D6;
  --accent-1:      #FF6B6B;
  --accent-2:      #4ECDC4;
  --accent-3:      #FFD93D;
  --text-primary:  #2D2A26;
  --text-secondary:#6B6560;

  /* Typography */
  --font-heading: 'Fredoka', 'Quicksand', sans-serif;
  --font-body:    'Quicksand', sans-serif;

  /* Type scale (6 sizes, ratio ~1.25) */
  --text-xs:  0.75rem;   /* 12px */
  --text-sm:  0.875rem;  /* 14px */
  --text-base:1rem;      /* 16px */
  --text-lg:  1.25rem;   /* 20px */
  --text-xl:  1.563rem;  /* 25px */
  --text-2xl: 1.953rem;  /* 31px */
  --text-3xl: 2.441rem;  /* 39px */
  --text-4xl: clamp(2.2rem, 5vw, 3.5rem);

  /* Spacing scale (modular, base 8px) */
  --space-1:  0.5rem;    /* 8px  */
  --space-2:  1rem;      /* 16px */
  --space-3:  1.5rem;    /* 24px */
  --space-4:  2rem;      /* 32px */
  --space-5:  3rem;      /* 48px */
  --space-6:  4rem;      /* 64px */
  --space-7:  5rem;      /* 80px */
  --space-8:  7rem;      /* 112px — section_padding_y */

  /* Layout */
  --container:     1120px;   /* layout_signature.visual.container */
  --section-py:    7rem;     /* 112px — layout_signature.visual.section_padding_y */
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --radius-pill:   9999px;

  /* Elevation — soft-large (layout_signature.visual.elevation) */
  --shadow-sm:  0 2px 8px rgba(45, 42, 38, 0.08);
  --shadow-md:  0 6px 24px rgba(45, 42, 38, 0.10);
  --shadow-lg:  0 12px 40px rgba(45, 42, 38, 0.13);
  --shadow-xl:  0 20px 60px rgba(45, 42, 38, 0.16);

  /* Decor — generated images */
  --hero-bg-image: url('/assets/img/hero-art.jpg');
  --banner-mid-image: url('/assets/img/banner-mid.jpg');
  --banner-contact-image: url('/assets/img/banner-contact.jpg');
  --decor-object-image: url('/assets/img/decor-object.png');
  --pattern-bg-image: url('/assets/img/pattern-bg.jpg');

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.28s;
}

/* ---- TYPOGRAPHY -------------------------------------------- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-weight: 500;
  /* Grain overlay + generated pattern tile */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    var(--pattern-bg-image);
  background-repeat: repeat, repeat;
  background-size: 200px 200px, 512px 512px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  /* heading_case: sentence — normal casing */
  text-transform: none;
  /* heading_tracking: 0 */
  letter-spacing: 0;
}
h1 { font-size: var(--text-4xl); line-height: 1.15; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { max-width: 65ch; line-height: 1.65; }
p + p { margin-top: var(--space-2); }

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: var(--space-2);
}

/* ---- LAYOUT ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(var(--space-3), 4vw, var(--space-5));
  padding-right: clamp(var(--space-3), 4vw, var(--space-5));
}

/* Section base — centered heads, large padding */
section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
  overflow: hidden;
}
.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-head h2 {
  margin-bottom: var(--space-2);
}
.section-head p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-3);
  background: var(--accent-1);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--duration) var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

/* ---- NAVIGATION -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-4);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.site-logo__block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-1);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}
.site-logo:hover .site-logo__block { transform: scale(1.08) rotate(-4deg); }
.site-logo__mark { color: #fff; }
.site-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
}

/* Nav links — pill-buttons style */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--bg-secondary);
  color: var(--accent-1);
}
.nav-cta {
  background: var(--accent-1) !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: #e55a5a !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Burger */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--duration);
}
.nav-burger:hover { background: var(--bg-secondary); }
.nav-burger svg { pointer-events: none; }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 42, 38, 0.4);
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--bg-primary);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  overflow-y: auto;
}
.nav-drawer.is-open { display: block; }
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.nav-drawer__close:hover { background: var(--bg-secondary); }
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-drawer__links a {
  display: block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
  transition: background var(--duration);
}
.nav-drawer__links a:hover { background: var(--bg-secondary); color: var(--accent-1); }

/* ---- HERO -------------------------------------------------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--space-8) + 68px);
  padding-bottom: var(--space-8);
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(255,248,240,.82) 0%, rgba(255,248,240,.96) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  overflow: visible;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto var(--space-3);
  line-height: 1.55;
  font-weight: 600;
}
.hero__intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto var(--space-5);
  line-height: 1.65;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--accent-1);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration);
}
.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: #e55a5a;
}
.hero__cta:active { transform: translateY(-1px) scale(0.98); }

/* Mascot hero slot */
.mascot-hero {
  position: absolute;
  /* keep inside the viewport — a negative offset here caused horizontal scroll */
  right: 0;
  bottom: -20px;
  width: clamp(160px, 22vw, 260px);
  pointer-events: none;
  z-index: 3;
}
.mascot-hero img {
  width: 100%;
  height: auto;
}
/* No image fallback: slot takes no space */
.mascot-hero img[src=""], .mascot-hero img:not([src]) { display: none; }

/* ---- ABOUT ------------------------------------------------- */
.about { background: var(--bg-secondary); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-4), 6vw, var(--space-7));
  align-items: center;
}
.about__text h2 { margin-bottom: var(--space-4); }
.about__text p { color: var(--text-secondary); margin-bottom: var(--space-3); }
.about__text p:last-child { margin-bottom: 0; }

/* Mascot about slot — overlaps adjacent block */
.about__mascot {
  position: relative;
}
.about__mascot-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  /* mascot_overlap — can extend beyond column */
  margin-left: -24px;
}

/* ---- BLOB CURVE DIVIDER ------------------------------------ */
.divider-blob {
  position: relative;
  overflow: hidden;
  height: 80px;
  margin-top: -2px;
}
.divider-blob svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- FEATURED GAMES --------------------------------------- */
.featured-games { background: var(--bg-primary); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Game card — rounded-soft-shadow style */
.game-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  /* border_style: none */
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.game-card:active { transform: translateY(-2px) scale(0.99); }

.game-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-secondary);
}
.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* no lazy on first visible = set per usage */
}
.game-card__badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--accent-3);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.game-card__body {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.game-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.game-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}
.game-card__teaser {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-2);
  background: var(--accent-1);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  align-self: flex-start;
  transition: transform var(--duration) var(--ease-out), background var(--duration);
}
.game-card__link:hover {
  background: #e55a5a;
  transform: translateY(-2px);
}
.game-card__link:active { transform: scale(0.97); }

/* ---- ART BANNER ------------------------------------------- */
/* Only renders when .has-image is added by site-visuals */
.art-banner {
  display: none;
  width: 100%;
  aspect-ratio: 3/1;
  max-height: 420px;
  min-height: 300px;
  background-image: var(--banner-mid-image, linear-gradient(135deg, var(--bg-secondary), var(--accent-3) 60%, var(--accent-2)));
  background-size: cover;
  background-position: center;
  pointer-events: none;
  overflow: hidden;
}
.art-banner.has-image { display: block; }

.art-banner--contact {
  background-image: var(--banner-contact-image, linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%));
}

/* ---- REVIEWS ---------------------------------------------- */
.reviews { background: var(--bg-secondary); position: relative; overflow: visible; }
.reviews__disclaimer {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  justify-content: center;
}
.reviews__disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 107, 107, 0.12);
  color: var(--accent-1);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.review-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--duration) var(--ease-out);
}
.review-card:hover { transform: translateY(-4px); }
.review-quote {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}
.review-author {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: auto;
}

/* Mascot reviews slot — overlaps card row */
.mascot-reviews {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: clamp(120px, 16vw, 200px);
  pointer-events: none;
  z-index: 3;
}
.mascot-reviews img { width: 100%; height: auto; }
.mascot-reviews img[src=""], .mascot-reviews img:not([src]) { display: none; }

/* ---- FAQ -------------------------------------------------- */
.faq { background: var(--bg-primary); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--duration);
  gap: var(--space-2);
}
.faq-item summary:hover { color: var(--accent-1); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-1);
  transition: transform var(--duration) var(--ease-out);
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: var(--text-base);
}

/* ---- CONTACT ---------------------------------------------- */
.contact { background: var(--bg-secondary); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-4), 6vw, var(--space-7));
  align-items: start;
}
.contact__lead h2 { margin-bottom: var(--space-3); }
.contact__lead p { color: var(--text-secondary); max-width: 44ch; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
}
.contact-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  margin-bottom: 0.2rem;
}
.contact-item__value {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
}

/* ---- FOOTER ----------------------------------------------- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 248, 240, 0.75);
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 248, 240, 0.1);
  margin-bottom: var(--space-4);
}
.footer-brand .site-logo__text { color: var(--bg-primary); }
.footer-brand .site-logo__block { background: var(--accent-1); }
.footer-brand p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 248, 240, 0.6);
  max-width: 34ch;
}
.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--bg-primary);
  margin-bottom: var(--space-3);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-nav ul a {
  font-size: var(--text-sm);
  color: rgba(255, 248, 240, 0.6);
  transition: color var(--duration);
}
.footer-nav ul a:hover { color: var(--accent-3); }
.footer-social__icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 240, 0.08);
  color: rgba(255, 248, 240, 0.7);
  transition: background var(--duration), color var(--duration), transform var(--duration) var(--ease-out);
}
.social-link:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-3px);
}
.social-link:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}
.social-link svg { width: 20px; height: 20px; pointer-events: none; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 248, 240, 0.45);
}

/* ---- GAME PAGE -------------------------------------------- */
.game-header {
  padding-top: calc(var(--section-py) * 0.8);
  padding-bottom: calc(var(--section-py) * 0.8);
  background: var(--bg-secondary);
}
.game-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-7));
  align-items: start;
}
.game-header__logo {
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
  /* eager: visible without scroll */
  loading: eager;
}
.game-header__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.game-header__category {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.game-header h1 { margin-bottom: var(--space-1); }
.game-header__hook {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 52ch;
  font-weight: 600;
}
.game-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.meta-tag {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* Game description */
.game-description { background: var(--bg-primary); }
.game-description__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-6);
}
.desc-block h3 {
  font-size: var(--text-xl);
  color: var(--accent-1);
  margin-bottom: var(--space-2);
}
.desc-block p { color: var(--text-secondary); }

/* Play button */
.play-button-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: var(--accent-1);
  text-align: center;
}
.play-button-section h2 { color: #fff; margin-bottom: var(--space-2); }
.play-button-section p { color: rgba(255,255,255,0.85); margin: 0 auto var(--space-4); max-width: 44ch; }
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: #fff;
  color: var(--accent-1);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
}
.play-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 60px rgba(45, 42, 38, 0.22);
}
.play-btn:active { transform: scale(0.98); }

/* Game FAQ */
.game-faq { background: var(--bg-secondary); }

/* Related games */
.related-games { background: var(--bg-primary); }

/* ---- CATALOG PAGE ----------------------------------------- */
.catalog-header { background: var(--bg-secondary); text-align: center; }
.catalog-header h1 { margin-bottom: var(--space-3); }
.catalog-header__intro { max-width: 60ch; margin: 0 auto; color: var(--text-secondary); }
.catalog-header__intro p + p { margin-top: var(--space-2); }

.catalog-grid { background: var(--bg-primary); }
.catalog-outro { background: var(--bg-secondary); text-align: center; }
.catalog-outro p { max-width: 55ch; margin: 0 auto; color: var(--text-secondary); }

/* ---- LEGAL PAGE ------------------------------------------- */
.legal-title {
  background: var(--bg-secondary);
  padding-top: calc(var(--section-py) * 0.7);
  padding-bottom: calc(var(--section-py) * 0.7);
}
.legal-title h1 { margin-bottom: var(--space-2); }
.legal-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.legal-body {
  background: var(--bg-primary);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.legal-body__content {
  max-width: 720px;
}
.legal-body__content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.legal-body__content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.legal-body__content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.legal-body__content ul {
  list-style: disc;
  padding-left: var(--space-4);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
.legal-body__content a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- DECOR ------------------------------------------------- */

/* Blur orbs — full-page-fixed, 5 orbs, blob-morph animate */
.orbs-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  pointer-events: none;
  animation: blob-morph 12s ease-in-out infinite alternate;
}
.orb--1 {
  width: 420px; height: 420px;
  background: var(--accent-1);
  top: -80px; left: -100px;
  animation-delay: 0s;
  animation-duration: 14s;
}
.orb--2 {
  width: 520px; height: 520px;
  background: var(--accent-2);
  top: 30%; right: -120px;
  animation-delay: -4s;
  animation-duration: 16s;
}
.orb--3 {
  width: 380px; height: 380px;
  background: var(--accent-3);
  bottom: 10%; left: 20%;
  animation-delay: -8s;
  animation-duration: 11s;
}
.orb--4 {
  width: 300px; height: 300px;
  background: var(--accent-1);
  bottom: -60px; right: 30%;
  animation-delay: -2s;
  animation-duration: 18s;
}
.orb--5 {
  width: 460px; height: 460px;
  background: var(--accent-2);
  top: 55%; left: -80px;
  animation-delay: -6s;
  animation-duration: 15s;
}

@keyframes blob-morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1) translate(0, 0); }
  33%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: scale(1.06) translate(12px, -8px); }
  66%  { border-radius: 50% 60% 30% 60% / 40% 30% 70% 50%; transform: scale(0.96) translate(-10px, 14px); }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1.03) translate(6px, 4px); }
}

/* Particles — dots, 30 count, accent_3, slow-drift, hero zone */
.particles-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Dots implemented via ::before pseudo-elements and box-shadow cluster */
.particle-dots {
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: 0.55;
  pointer-events: none;
  animation: slow-drift 20s ease-in-out infinite;
  /* box-shadow creates the 30 dots */
  box-shadow:
    60px 40px 0 2px rgba(255,217,61,0.5),
    180px 90px 0 1px rgba(255,217,61,0.4),
    320px 60px 0 3px rgba(255,217,61,0.55),
    480px 130px 0 2px rgba(255,217,61,0.45),
    640px 50px 0 1px rgba(255,217,61,0.5),
    780px 110px 0 3px rgba(255,217,61,0.4),
    900px 80px 0 2px rgba(255,217,61,0.55),
    1050px 45px 0 1px rgba(255,217,61,0.45),
    80px 200px 0 2px rgba(255,217,61,0.4),
    240px 250px 0 3px rgba(255,217,61,0.5),
    400px 220px 0 1px rgba(255,217,61,0.45),
    570px 280px 0 2px rgba(255,217,61,0.55),
    720px 200px 0 3px rgba(255,217,61,0.4),
    860px 260px 0 1px rgba(255,217,61,0.5),
    1000px 230px 0 2px rgba(255,217,61,0.45),
    140px 350px 0 1px rgba(255,217,61,0.5),
    310px 380px 0 3px rgba(255,217,61,0.4),
    490px 360px 0 2px rgba(255,217,61,0.55),
    650px 400px 0 1px rgba(255,217,61,0.45),
    820px 340px 0 3px rgba(255,217,61,0.5),
    950px 390px 0 2px rgba(255,217,61,0.4),
    100px 460px 0 2px rgba(255,217,61,0.55),
    270px 480px 0 1px rgba(255,217,61,0.45),
    430px 500px 0 3px rgba(255,217,61,0.5),
    590px 450px 0 2px rgba(255,217,61,0.4),
    750px 490px 0 1px rgba(255,217,61,0.55),
    880px 460px 0 3px rgba(255,217,61,0.45),
    1020px 480px 0 2px rgba(255,217,61,0.5),
    160px 560px 0 1px rgba(255,217,61,0.4),
    500px 580px 0 2px rgba(255,217,61,0.45);
}

@keyframes slow-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(8px, -12px); }
  66%       { transform: translate(-6px, 10px); }
}

/* Underline swoosh — on section heading h2 */
.swoosh-underline {
  position: relative;
  display: inline-block;
}
.swoosh-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-1);
  border-radius: var(--radius-pill);
  /* slight wave via clip-path approximation */
  clip-path: ellipse(50% 4px at 50% 2px);
}

/* Blob-curve dividers between sections */
.blob-divider {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  margin-bottom: -2px;
  line-height: 0;
  pointer-events: none;
}
.blob-divider svg { width: 100%; height: 60px; display: block; }

/* Rounded media frames */
.rounded-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- COOKIE NOTICE ---------------------------------------- */
/* Position: bottom-left card */
.cookie-notice {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 500;
  width: min(360px, calc(100vw - 2 * var(--space-3)));
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-notice__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.cookie-notice__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}
.cookie-notice__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}
.cookie-notice__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-notice__link:hover { color: var(--accent-1); }
.cookie-notice__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  min-height: 44px;
  background: var(--accent-1);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background var(--duration), transform var(--duration);
  margin-left: auto;
}
.cookie-notice__btn:hover {
  background: #e55a5a;
  transform: translateY(-1px);
}
.cookie-notice__btn:active { transform: scale(0.97); }

/* ---- MEDIA QUERIES ---------------------------------------- */
/* 768px */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .game-description__grid { grid-template-columns: 1fr; }
  .game-header__inner { grid-template-columns: 1fr; }

  .orb { filter: blur(60px); }
  .orb--2 { width: 320px; height: 320px; }
  .orb--5 { display: none; }
}

/* 480px */
@media (max-width: 480px) {
  :root { --section-py: 4rem; }

  .games-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__mascot-img { margin-left: 0; max-width: 100%; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .game-description__grid { grid-template-columns: 1fr; }
  .game-header__inner { grid-template-columns: 1fr; }

  .mascot-hero { right: 0; width: 120px; }
  .mascot-reviews { right: 0; width: 90px; }

  .hero { padding-top: calc(var(--space-6) + 68px); padding-bottom: var(--space-6); }
  .hero__subtitle { font-size: var(--text-lg); }

  .orb--2, .orb--4, .orb--5 { display: none; }
  .orb { filter: blur(60px); opacity: 0.28; }

  .cookie-notice {
    bottom: var(--space-2);
    left: var(--space-2);
    right: var(--space-2);
    width: auto;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

/* 1440px */
@media (min-width: 1440px) {
  :root { --section-py: 8rem; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cookie-notice { transition: none; opacity: 1; transform: none; }
  .orb { animation: none; }
  .particle-dots { animation: none; }
  .decor-obj { animation: none !important; }
}

/* ---- SCATTERED DECOR OBJECTS (wooden star coins) ----------- */
.decor-objects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.decor-obj {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}
/* Individual coin placements — spread across viewport */
.decor-obj--1 { top: 12%;  left: 4%;   transform: rotate(18deg);  animation: decor-drift 14s ease-in-out infinite alternate; }
.decor-obj--2 { top: 28%;  right: 6%;  transform: rotate(-12deg); animation: decor-drift 18s ease-in-out infinite alternate-reverse; }
.decor-obj--3 { top: 55%;  left: 2%;   transform: rotate(35deg);  animation: decor-drift 11s ease-in-out infinite alternate; }
.decor-obj--4 { top: 70%;  right: 3%;  transform: rotate(-28deg); animation: decor-drift 16s ease-in-out infinite alternate-reverse; }
.decor-obj--5 { top: 42%;  left: 92%;  transform: rotate(8deg);   animation: decor-drift 20s ease-in-out infinite alternate; }
.decor-obj--6 { top: 85%;  left: 8%;   transform: rotate(-5deg);  animation: decor-drift 13s ease-in-out infinite alternate-reverse; }

@keyframes decor-drift {
  0%   { transform: translateY(0)    rotate(var(--r, 18deg)); }
  100% { transform: translateY(-18px) rotate(calc(var(--r, 18deg) + 12deg)); }
}

/* Mobile: hide heavy backgrounds to save bandwidth */
@media (max-width: 600px) {
  :root {
    --banner-mid-image: linear-gradient(135deg, var(--bg-secondary), var(--accent-3) 60%, var(--accent-2));
    --banner-contact-image: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
    --pattern-bg-image: none;
  }
  .decor-objects { display: none; }
}


/* ============================================================
   MAX TRUST EDITORIAL LAYER
   Theme-agnostic components (breadcrumbs, bylines, reference
   tables, source notes, editorial notes, contact block).
   Colours derive from the page's own text colour via color-mix,
   so this block adapts to light and dark presets alike.
   ============================================================ */

.mt-section { padding: 3rem 0; }
.mt-section > .container { position: relative; z-index: 2; }

.mt-h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; }
.mt-h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0 0 1rem; }
.mt-h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5rem; font-weight: 700; }

.mt-p, .mt-lead {
  line-height: 1.75;
  margin: 0 0 .85rem;
  opacity: .88;
}
.mt-lead { font-size: 1.02rem; max-width: 72ch; margin-bottom: 1.6rem; }
.mt-p { font-size: .95rem; }
.mt-p:last-child { margin-bottom: 0; }
.mt-after { font-size: .9rem; opacity: .8; margin-top: 1.5rem; }
.mt-fine { font-size: .78rem; opacity: .7; margin: .35rem 0 0; }
.mt-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .75;
  margin: 0 0 .5rem;
  font-weight: 700;
}

.mt-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mt-link:hover, .mt-link:focus-visible { opacity: .75; }

/* --- breadcrumbs --- */
.mt-crumbs-wrap { padding-top: 5.5rem; }
.mt-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .78rem;
  opacity: .75;
}
.mt-crumbs__i + .mt-crumbs__i::before { content: "\203A"; margin-right: .45rem; opacity: .6; }
.mt-crumbs__a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* --- byline --- */
.mt-byline {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  border-radius: 12px;
  max-width: 60ch;
}
.mt-byline__author { font-size: .9rem; font-weight: 600; margin: 0 0 .6rem; }
.mt-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .78rem;
  opacity: .85;
}
.mt-byline__k {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

/* --- reference table --- */
.mt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.mt-table th, .mt-table td {
  padding: .75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.mt-table tr:last-child th, .mt-table tr:last-child td { border-bottom: 0; }
.mt-table th { width: 38%; font-weight: 600; opacity: .8; }
.mt-caption {
  caption-side: bottom;
  padding-top: .7rem;
  font-size: .78rem;
  opacity: .7;
  text-align: left;
}

/* --- notes / cards --- */
.mt-note, .mt-card {
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  border-radius: 14px;
}
.mt-source { border-left: 3px solid color-mix(in srgb, currentColor 45%, transparent); }

/* --- two-column scope --- */
.mt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mt-list { list-style: none; display: grid; gap: .6rem; margin: 0; padding: 0; }
.mt-list li { position: relative; padding-left: 1.5rem; font-size: .92rem; line-height: 1.6; opacity: .9; }
.mt-list--yes li::before { content: "\2713"; position: absolute; left: 0; opacity: .8; }
.mt-list--no li::before { content: "\2014"; position: absolute; left: 0; opacity: .8; }

/* --- method steps --- */
.mt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mt-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  border-radius: 12px;
}
.mt-num { font-size: 1.4rem; font-weight: 800; opacity: .45; line-height: 1.2; }

/* --- taxonomy --- */
.mt-tax { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.mt-tax__i {
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .8rem;
  display: flex;
  gap: .5rem;
  align-items: baseline;
}
.mt-tax__n { font-weight: 700; }
.mt-tax__c { opacity: .7; }

/* --- FAQ --- */
.mt-faq-list { display: grid; gap: .6rem; max-width: 80ch; }
.mt-faq {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  padding: .9rem 1.15rem;
}
.mt-faq__q { cursor: pointer; font-weight: 600; font-size: .95rem; }
.mt-faq__a { margin-top: .6rem; font-size: .92rem; line-height: 1.7; opacity: .85; }

/* --- contact --- */
.mt-contact {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mt-contact .mt-p { font-size: .92rem; }

/* --- hero intro --- */
.mt-hero-intro { margin-top: 1.25rem; max-width: 62ch; }
.mt-hero-intro .mt-p { font-size: .95rem; }

/* --- prose --- */
.mt-prose { max-width: 74ch; }
.mt-prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.mt-prose p { line-height: 1.8; margin: 0 0 1rem; opacity: .88; font-size: .97rem; }
.mt-prose a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- footer NAP --- */
.mt-foot-nap { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.mt-foot-line { font-size: .8rem; line-height: 1.7; opacity: .8; margin: 0 0 .2rem; }
.mt-foot-k { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; opacity: .7; margin-right: .35rem; }
.mt-disclosure { margin-top: .9rem; font-size: .74rem; line-height: 1.7; opacity: .65; max-width: 95ch; }

@media (max-width: 900px) {
  .mt-cols, .mt-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mt-step { grid-template-columns: 1fr; gap: .5rem; }
  .mt-table th { width: 45%; }
  .mt-crumbs-wrap { padding-top: 4.5rem; }
}
