@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #5D6474; /* darkened from #6B7280 — WCAG AA on off-white bg */
  --primary: #2F6E6C; /* darkened from #3A7D7B — passes AA on white, off-white, and light teal */
  --primary-light: #EAF4F4;
  --primary-dark: #2D6260;
  --accent: #E08D79;
  --gold: #E5B769;
  --border: #E8E4DD;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; } /* % not px — respects user browser font-size settings */
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Skip navigation (screen readers / keyboard users) ── */
.skip-nav {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-nav:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto; overflow: visible;
  padding: 0.6rem 1.25rem; background: var(--primary); color: #fff;
  z-index: 9999; font-size: 1rem; font-weight: 600; text-decoration: none;
  border-radius: 0 0 6px 0; box-shadow: var(--shadow);
}

/* ── Focus styles (keyboard navigation) ── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,110,108,0.2);
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 0.75rem 1.75rem; border-radius: 5px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { filter: brightness(0.92); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg); color: var(--primary-dark); }

/* ── Nav ── */
nav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--text); font-weight: 700;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 1px; }
.nav-cta {
  padding: 0.45rem 1.1rem; background: var(--primary);
  color: #fff !important; border-radius: 4px;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text); padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px);
    left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-top: 0.25rem; }
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 0;
  background: linear-gradient(180deg, #F7F4EF 0%, #ECF5F3 48%, #DCEFEC 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center;
  max-width: 720px;
  padding-bottom: clamp(160px, 19vw, 280px); /* clears the skyline below */
}
.hero-skyline {
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: clamp(130px, 18vw, 250px);
  object-fit: cover; object-position: center bottom;
  display: block; z-index: 0; pointer-events: none; user-select: none;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  color: var(--primary); font-weight: 600; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px; background: var(--primary);
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title .amp { color: var(--primary); }
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted);
  margin-bottom: 0.75rem; font-style: italic; font-family: 'Playfair Display', serif;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem;
  max-width: 520px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-col { position: relative; }
.hero-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 15%;
  border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.13);
}
.hero-img-badge {
  position: absolute; bottom: -1.25rem; left: -1.25rem;
  background: #fff; border-radius: 10px; padding: 0.9rem 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-img-badge span { font-size: 1.2rem; }

/* ── About photo ── */
.about-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 10px; box-shadow: var(--shadow);
}
.about-img-placeholder {
  background: var(--primary-light); border-radius: 10px; aspect-ratio: 4/5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--primary); font-size: 0.85rem; gap: 0.5rem;
  overflow: hidden; position: relative;
}
.about-img-placeholder img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Feature image (service pages) ── */
.feature-img-wrap { margin: 2.5rem 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.feature-img-wrap img { width: 100%; height: 380px; object-fit: cover; display: block; }
.feature-img-caption {
  font-size: 0.8rem; color: var(--text-muted); text-align: center;
  padding: 0.5rem; background: #fff; border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-col { order: -1; }
  .hero-img { aspect-ratio: 16/9; }
  .hero-img-badge { bottom: -1rem; left: 1rem; }
}

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 1.02rem; }

/* ── Services grid ── */
.services { padding: 5rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem; transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }
.learn-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 1.25rem; font-size: 0.88rem; font-weight: 600; color: var(--primary);
}
.learn-more:hover { gap: 0.55rem; }

/* ── About teaser ── */
.about-teaser { padding: 5rem 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text .chip {
  display: inline-block; padding: 0.3rem 0.85rem; background: var(--primary-light);
  color: var(--primary); border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.75; }
.about-text-center { max-width: 680px; margin: 0 auto; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-placeholder { max-width: 320px; margin: 0 auto; }
}

/* ── CTA Banner ── */
.cta-banner { background: var(--primary); padding: 5rem 2rem; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.92); margin-bottom: 2rem; font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto; } /* 0.78 failed AA on teal */

/* ── Page header ── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4.5rem 0 3.5rem; color: #fff;
}
.page-header .chip {
  display: inline-block; padding: 0.3rem 0.85rem; background: rgba(0,0,0,0.2); /* darker chip bg for AA contrast */
  color: #fff; border-radius: 20px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 580px; } /* 0.8 was ~4.4:1, below AA */

/* ── Content pages ── */
.page-content { padding: 5rem 0; }
.content-block { max-width: 720px; }
.content-block h2 { color: var(--primary); margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 1.25rem; font-size: 1.02rem; line-height: 1.8; color: var(--text-muted); }
.content-block ul, .content-block ol { margin: 0.5rem 0 1.5rem 1.5rem; }
.content-block li { margin-bottom: 0.6rem; color: var(--text-muted); line-height: 1.65; }
.content-block strong { color: var(--text); font-weight: 600; }

/* ── Feature cards ── */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem;
  border-left: 4px solid var(--primary);
}
.feature-card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.1rem; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Highlight box ── */
.highlight-box {
  background: var(--primary-light); border-radius: 10px; padding: 2rem 2.5rem;
  margin: 2rem 0; border-left: 4px solid var(--primary);
}
.highlight-box p { color: var(--primary-dark); margin: 0; font-size: 1rem; }

/* ── Stat badges ── */
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; margin: 2rem 0; }
.stat-badge { text-align: center; }
.stat-badge .number {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  color: var(--primary); font-weight: 700; display: block;
}
.stat-badge .label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.45rem; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 1rem; /* ≥16px stops iOS force-zoom on focus */
  background: #fff; color: var(--text); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,125,123,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2rem; }
.contact-info h2 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; font-size: 0.92rem; color: var(--text-muted); }
.contact-item-icon { font-size: 1.1rem; margin-top: 0.05rem; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Office cards ── */
.office-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.office-highlight { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; text-align: center; }
.office-highlight .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.office-highlight p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) { .office-highlights { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer { background: var(--text); color: rgba(255,255,255,0.65); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h2 {
  color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0;
  display: flex; justify-content: space-between; font-size: 0.82rem;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.65); } /* 0.45 was ~4.1:1 on charcoal, below AA */
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ── Form submit states ── */
.form-success {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 2rem 2.5rem;
}
.form-success h2 { color: var(--primary-dark); margin-bottom: 0.6rem; font-size: 1.4rem; outline: none; }
.form-success p { color: var(--text); margin-bottom: 1.5rem; }
.form-error { color: #B3261C; font-weight: 500; margin-top: 1rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Play: neighborhood game (desktop only) ── */
.game-section { padding: 5rem 0; background: #fff; }
.game-shell {
  display: grid; grid-template-columns: auto 1fr; gap: 3rem;
  align-items: start; justify-content: center; max-width: 860px; margin: 0 auto;
}

.game-board {
  display: inline-flex; flex-direction: column; gap: 5px;
  padding: 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px;
}
.game-row { display: flex; gap: 5px; }

.game-cell {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 2px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 7px;
  font-family: 'Inter', sans-serif; color: var(--text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.game-cell:hover:not(:disabled) { border-color: var(--primary); }
.game-cell:disabled { cursor: default; }
.cell-icon { font-size: 1.25rem; line-height: 1; }
.cell-label {
  font-size: 0.5rem; font-weight: 600; line-height: 1; text-align: center;
  letter-spacing: 0.01em; color: var(--text-muted);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Service tiles — icon + label, tinted */
.game-cell.is-service { background: #CFE0F5; border-color: #6F9BD4; }
.game-cell.is-service .cell-label { color: #123E73; }
.game-cell.is-home { background: #FBE0B8; border-color: #DDA23C; }
.game-cell.is-home .cell-label { color: #7A4A0C; }

/* Visited services — dimmed + check; not relying on color alone */
.game-cell.is-visited { opacity: 0.55; }
.game-cell.is-visited::after {
  content: '✓'; position: absolute; font-size: 0.7rem; font-weight: 700;
  color: #123E73; transform: translate(16px, -16px);
}
.game-cell.is-visited { position: relative; }

/* Buildings — blocked. Distinguished by a hatched pattern + glyph, not just color */
.game-cell.is-building {
  background:
    repeating-linear-gradient(45deg, #CBC7C0 0 4px, #BAB5AC 4px 8px);
  border-color: #A39E93; color: #46423A;
}
.game-cell.is-building .cell-icon { font-size: 0.9rem; opacity: 0.7; }
.game-cell.is-building .cell-label { color: #46423A; }

/* Walker — strong ring (shape, not just color) marks "you are here" */
.game-cell.is-walker {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--primary), 0 2px 8px rgba(47,110,108,0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .game-cell.is-walker { animation: walker-pulse 1.8s ease-in-out infinite; }
  @keyframes walker-pulse {
    0%, 100% { box-shadow: inset 0 0 0 3px var(--primary), 0 2px 8px rgba(47,110,108,0.25); }
    50%      { box-shadow: inset 0 0 0 3px var(--primary), 0 0 0 4px rgba(47,110,108,0.18); }
  }
}

.game-board.is-won { border-color: var(--primary); box-shadow: 0 4px 24px rgba(47,110,108,0.18); }

/* Side panel */
.game-status {
  font-size: 0.98rem; line-height: 1.55; color: var(--text);
  background: var(--bg); border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 0.85rem 1.1rem; margin-bottom: 1.25rem;
  min-height: 3.2em;
}
.game-score {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.game-score-num {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  font-weight: 700; color: var(--primary);
}
.game-score-sep { color: var(--border); }

.game-legend-heading {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.game-legend { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.legend-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0; font-size: 0.92rem; color: var(--text);
}
.legend-icon {
  width: 1.6rem; height: 1.6rem; flex: 0 0 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 6px; font-size: 1rem;
}
.legend-item[data-id="home"] .legend-icon { background: #FBF1DC; }
.legend-text { flex: 1; }
.legend-state { color: var(--primary); font-weight: 700; }
.legend-item.is-done .legend-text { color: var(--text-muted); text-decoration: line-through; }

/* Daily header */
.game-daily-label {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.85rem; font-size: 0.82rem;
}
.game-date {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.game-daily-sep { color: var(--border); }
.game-streak { color: var(--accent); font-weight: 600; }

/* Result panel */
.game-result {
  margin-top: 0.5rem; padding: 1.1rem 1.25rem;
  background: var(--primary-light); border: 1px solid #CFE6E5; border-radius: 10px;
}
.game-result-medal {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.game-result-emoji { font-size: 1.5rem; }
.game-result-text { font-size: 0.92rem; color: var(--text); margin-bottom: 0.35rem; }
.game-result-streak { font-size: 0.92rem; font-weight: 600; color: var(--accent); margin-bottom: 0.85rem; }
.game-share-box {
  width: 100%; margin: 0.85rem 0; padding: 0.6rem 0.75rem;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; line-height: 1.5;
  color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 6px; resize: none;
}
.game-result-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.game-result-actions .btn { font-size: 0.88rem; padding: 0.55rem 1.1rem; }

.game-help { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 1rem 0 0; }

/* Desktop-only: the game leans on keyboard play, so it is hidden on small screens */
@media (max-width: 900px) {
  .game-section { display: none; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* Visually hidden but available to screen readers (and keyboard focus) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ── Booking (Calendly) page ── */
.booking-section { margin-bottom: 3rem; }
.booking-embed {
  min-width: 320px;
  /* Calendly's inline widget fills its container, so the container needs a
     definite height. 700px suits the desktop calendar layout. */
  height: 700px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  /* Calendly stacks vertically on narrow screens and needs more height */
  .booking-embed { height: 1040px; }
}
.booking-fallback {
  background: var(--primary-light); border-radius: 10px;
  padding: 2rem 2.5rem; border-left: 4px solid var(--primary);
  max-width: 720px;
}
.booking-fallback p { color: var(--primary-dark); margin: 0 0 1.25rem; }
.booking-alt { margin-top: 3rem; }
.booking-alt a { text-decoration: underline; }
