/* =====================================================
   TOP MAHJONG SOLITAIRE — Dutch civic tool aesthetic
   Inspired by Dutch design heritage (De Stijl restraint,
   civic-tool clarity). Sharp edges, Delft blue, klinker
   brick amber. Built for the Dutch senior audience.
   ===================================================== */

:root {
  /* Colour system */
  --c-bg:           #f5f1ea;          /* warm parchment, like old maps */
  --c-bg-soft:      #ebe6dc;
  --c-surface:      #ffffff;
  --c-surface-alt:  #faf7f1;
  --c-line:         #d8d2c4;          /* warm border */
  --c-line-soft:    #ece7dc;

  --c-ink:          #15212e;          /* main text, near-black */
  --c-ink-2:        #2c3a4a;
  --c-muted:        #5a6878;
  --c-mute-2:       #8a94a1;

  --c-blue:         #1a4d7a;          /* Delft blue, primary */
  --c-blue-dark:    #0f3354;
  --c-blue-deep:    #0a2540;          /* hero, footer */
  --c-blue-soft:    #e6eef5;
  --c-blue-tint:    #f0f5fa;

  --c-amber:        #c2410c;          /* klinker brick */
  --c-amber-dark:   #9a3409;
  --c-amber-soft:   #fef3eb;

  --c-success:      #166534;
  --c-warning:      #92400e;

  /* Typography */
  --font-display:   'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:      'Manrope', system-ui, -apple-system, sans-serif;

  /* Spacing & shape */
  --r-sm:    4px;
  --r-md:    6px;
  --r-lg:    8px;
  --shadow-sm: 0 1px 0 rgba(15, 33, 46, 0.04), 0 2px 8px rgba(15, 33, 46, 0.04);
  --shadow-md: 0 2px 0 rgba(15, 33, 46, 0.04), 0 8px 24px rgba(15, 33, 46, 0.06);
  --shadow-lg: 0 4px 0 rgba(15, 33, 46, 0.04), 0 18px 36px rgba(15, 33, 46, 0.08);

  /* Layout */
  --container: 1240px;
  --container-narrow: 980px;
  --container-text: 760px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--c-amber); }
ul, ol { list-style: none; }

::selection { background: var(--c-blue); color: #fff; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-blue-deep);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; color: #fff; }

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
  transition: opacity 0.18s ease;
}
.brand:hover { opacity: 0.82; }
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.brand-logo--footer {
  height: 42px;
  max-width: 220px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav ul {
  display: flex;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--c-ink-2);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4rem 0;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--c-amber);
  transition: width 0.22s ease;
}
.primary-nav a:hover { color: var(--c-blue-deep); }
.primary-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--c-blue-deep);
  color: #fff !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--c-blue-deep);
  transition: background 0.18s ease, transform 0.18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--c-blue-dark); color: #fff !important; }
.nav-cta::after { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2.25rem) clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--c-amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.18);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--c-blue);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.22em;
  background: rgba(194, 65, 12, 0.22);
  z-index: -1;
  border-radius: 1px;
}
.hero__title-sub {
  display: inline-block;
  font-size: 0.65em;
  color: var(--c-muted);
  font-weight: 500;
  margin-top: 0.4rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero__trust li {
  padding: 1rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--c-line);
}
.hero__trust li:last-child { border-right: none; }
.hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-blue-deep);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero__trust span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* =====================================================
   BUTTONS — sharp edges, civic tool feel
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-blue-deep);
  color: #fff;
  border-color: var(--c-blue-deep);
  box-shadow: 0 2px 0 var(--c-ink);
}
.btn--primary:hover {
  background: var(--c-blue-dark);
  color: #fff;
  box-shadow: 0 4px 0 var(--c-ink);
  transform: translateY(-1px);
}
.btn--primary:active {
  box-shadow: 0 1px 0 var(--c-ink);
}

.btn--ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue-deep);
}

.btn--large {
  padding: 1.05rem 1.85rem;
  font-size: 1.08rem;
  min-height: 56px;
}

/* =====================================================
   SECTIONS / METHOD PATTERN
   ===================================================== */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2.25rem);
  position: relative;
}
.section--alt {
  background: var(--c-surface-alt);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.section--game {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section__head {
  max-width: var(--container-text);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.tag__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-blue-deep);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.tag__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.section__intro {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* =====================================================
   GAME WRAPPER (the embedded game)
   ===================================================== */
.game-wrapper {
  max-width: var(--container);
  margin: 0 auto;
}

/* =====================================================
   METHOD (Spelregels — 01/02/03/04 numbered steps)
   ===================================================== */
.method {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
}
.method__item {
  background: var(--c-surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  transition: background 0.22s ease;
}
.method__item:hover {
  background: var(--c-surface-alt);
}
.method__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.method__item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.method__item p {
  color: var(--c-muted);
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}
.method__formula {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: var(--c-blue-tint);
  border-left: 3px solid var(--c-blue);
  font-family: 'Courier New', monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-blue-deep);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Visual example row with actual mahjong tile images */
.method__example {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  background: var(--c-blue-tint);
  border-left: 3px solid var(--c-blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.method__tile {
  width: 42px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 1px rgba(15, 33, 46, 0.18));
  flex-shrink: 0;
}
.method__tile--blocked {
  filter: grayscale(0.6) brightness(0.78) drop-shadow(0 2px 1px rgba(15, 33, 46, 0.14));
  opacity: 0.7;
}
.method__op {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
}
.method__result {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-blue-deep);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 0.38rem 0.7rem;
  border-radius: var(--r-sm);
  letter-spacing: -0.01em;
}
.method__caption {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* =====================================================
   STRATEGY TIPS GRID
   ===================================================== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tips-grid { grid-template-columns: 1fr; }
}
.tip-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.tip-card:hover {
  border-color: var(--c-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tip-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--c-amber);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 3px;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.tip-card h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}
.tip-card p {
  color: var(--c-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.about-text p {
  color: var(--c-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-panel {
  background: var(--c-blue-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, var(--c-amber) 50%);
  opacity: 0.3;
}
.about-panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-amber-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.spec-list {
  display: flex;
  flex-direction: column;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}
.spec-list > div:last-child { border-bottom: none; }
.spec-list dt {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: center;
}
.spec-list dd {
  color: #fff;
  font-weight: 500;
}

/* =====================================================
   HISTORY TIMELINE
   ===================================================== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
}
.history-item {
  background: var(--c-surface);
  padding: 1.75rem 1.5rem;
  transition: background 0.22s ease;
}
.history-item:hover {
  background: var(--c-blue-tint);
}
.history-item__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--c-amber);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--c-ink);
}
.history-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.history-item p {
  color: var(--c-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--c-line);
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: none;
}
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  user-select: none;
  transition: background 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-blue-tint); }
.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--c-blue);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}
.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-item__body {
  padding: 0 1.4rem 1.4rem;
  color: var(--c-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
  background: var(--c-blue-deep);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.final-cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}
.final-cta .btn--primary {
  background: var(--c-amber);
  border-color: var(--c-amber);
  box-shadow: 0 3px 0 var(--c-amber-dark);
}
.final-cta .btn--primary:hover {
  background: var(--c-amber-dark);
  border-color: var(--c-amber-dark);
  box-shadow: 0 5px 0 #6b2406;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--c-bg-soft);
  color: var(--c-ink-2);
  border-top: 1px solid var(--c-line);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2.25rem) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--c-ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-col a:hover { color: var(--c-blue-deep); }
.site-footer__legal {
  border-top: 1px solid var(--c-line);
  padding: 1.4rem clamp(1rem, 3vw, 2.25rem);
  text-align: center;
}
.site-footer__legal p {
  font-size: 0.86rem;
  color: var(--c-mute-2);
}

/* =====================================================
   MODAL
   ===================================================== */
.ms-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 33, 46, 0.55);
  backdrop-filter: blur(6px);
}
.ms-modal.is-visible { display: grid; }
.ms-modal__card {
  width: min(100%, 440px);
  padding: 2rem 2.25rem;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.ms-modal__card h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-blue-deep);
  margin-bottom: 0.6rem;
}
.ms-modal__card p {
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    padding: 1.25rem clamp(1rem, 3vw, 2.25rem) 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    transform: translateY(-100vh);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--c-line);
  }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
  }
  .primary-nav a::after { display: none; }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
  .method { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 38px; max-width: 180px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__trust { grid-template-columns: repeat(2, 1fr); }
  .hero__trust li:nth-child(2) { border-right: none; }
  .hero__trust li:nth-child(1),
  .hero__trust li:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
  }
  .footer-nav { grid-template-columns: 1fr; }
  .section__head h2 { font-size: 1.7rem; }
  .method__tile { width: 36px; height: 48px; }
  .method__op { font-size: 1.15rem; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .final-cta, .game-wrapper, .nav-toggle { display: none; }
  body { background: white; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================================
   RESPONSIVE FIX — mobile polish for Top Mahjong Solitaire
   Keeps the same visual system, but prevents horizontal overflow
   and improves header/hero/footer behaviour on phones.
   ===================================================== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-header,
.site-header__inner,
.hero,
.section,
.site-footer,
.final-cta {
  max-width: 100%;
}

.site-header__inner,
.brand,
.primary-nav {
  min-width: 0;
}

.hero__title,
.section__head h2,
.final-cta h2,
.ms-modal__card h2 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero__lead,
.section__intro,
.about-text p,
.tip-card p,
.history-item p,
.faq-item__body {
  text-wrap: pretty;
}

@media (max-width: 820px) {
  :root { --nav-h: 66px; }

  .site-header__inner {
    height: var(--nav-h);
    padding-inline: 0.9rem;
  }

  .brand-logo {
    height: 40px;
    max-width: min(58vw, 210px);
  }

  .primary-nav {
    z-index: 999;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    padding: 2.35rem 1rem 2.75rem;
  }

  .hero__eyebrow {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    border-radius: var(--r-md);
  }

  .hero__title {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .hero__lead {
    max-width: 34rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section--game {
    padding-top: 2rem;
  }

  .game-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 560px) {
  :root { --nav-h: 62px; }

  .site-header__inner {
    padding-inline: 0.8rem;
    gap: 0.65rem;
  }

  .brand-logo {
    height: 34px;
    max-width: min(54vw, 165px);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .hero {
    padding: 2rem 0.9rem 2.35rem;
  }

  .hero__eyebrow {
    font-size: 0.74rem;
    line-height: 1.35;
    padding: 0.45rem 0.7rem;
    margin-bottom: 1.15rem;
  }

  .hero__title {
    font-size: clamp(1.9rem, 9.4vw, 2.55rem);
    line-height: 1.04;
  }

  .hero__title-sub {
    font-size: 0.62em;
    margin-top: 0.25rem;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
  }

  .hero__actions {
    gap: 0.6rem;
    margin-bottom: 1.6rem;
  }

  .hero__actions .btn,
  .final-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust li {
    padding: 0.8rem 0.35rem;
  }

  .hero__trust span {
    font-size: 0.76rem;
  }

  .section {
    padding: 2.55rem 0.85rem;
  }

  .section__head {
    margin-bottom: 1.55rem;
  }

  .section__head h2 {
    font-size: clamp(1.55rem, 7.4vw, 2rem);
    line-height: 1.14;
  }

  .section__intro {
    font-size: 0.98rem;
  }

  .tag__label {
    letter-spacing: 0.12em;
  }

  .method__item,
  .tip-card,
  .history-item,
  .about-panel {
    padding: 1.25rem 1rem;
  }

  .faq-item summary {
    padding: 1rem;
    font-size: 1rem;
    align-items: flex-start;
  }

  .faq-item__body {
    padding: 0 1rem 1rem;
  }

  .site-footer__inner {
    padding-inline: 0.9rem;
  }

  .site-footer__legal {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    max-width: 145px;
  }

  .hero__title {
    font-size: 1.82rem;
  }

  .hero__trust strong {
    font-size: 1.25rem;
  }
}
