:root {
  --forest: #173b36;
  --forest-2: #24554d;
  --forest-3: #dcebe4;
  --cream: #f7f1e4;
  --paper: #fffdf7;
  --ink: #20312d;
  --muted: #66756f;
  --sun: #ffd166;
  --orange: #e9683b;
  --orange-dark: #b74725;
  --sky: #3b82a0;
  --line: #d8d5c9;
  --danger: #a93232;
  --shadow: 0 18px 50px rgba(23, 59, 54, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 209, 102, .2), transparent 30rem),
    linear-gradient(180deg, #fbf7ed 0%, var(--cream) 100%);
  color: var(--ink);
  font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: white; border-radius: .7rem; }
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: .65rem max(1rem, calc((100vw - 1180px) / 2));
  padding-left: max(1rem, calc((100vw - 1180px) / 2));
  padding-right: max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(247, 241, 228, .92);
  border-bottom: 1px solid rgba(23, 59, 54, .09);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 16px; box-shadow: 0 6px 16px rgba(23, 59, 54, .18); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.brand small { color: var(--muted); margin-top: .28rem; font-size: .75rem; }
.topbar-actions { display: flex; align-items: center; gap: .65rem; }
.status-chip, .profile-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  border: 1px solid rgba(23, 59, 54, .14);
  border-radius: 999px;
  background: rgba(255, 253, 247, .8);
  cursor: pointer;
}
.status-chip { padding: .6rem .8rem; color: var(--muted); font-size: .82rem; }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #d49b2f; box-shadow: 0 0 0 4px rgba(212, 155, 47, .15); }
.status-chip.online .status-dot { background: #2d9569; box-shadow: 0 0 0 4px rgba(45, 149, 105, .15); }
.status-chip.offline .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(233, 104, 59, .15); }
.profile-button { padding: .32rem .8rem .32rem .35rem; font-weight: 750; }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; background: var(--forest-3); border-radius: 50%; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 8rem; }
.view { animation: fade-in .28s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: stretch; }
.hero-copy { padding: clamp(1rem, 4vw, 3.2rem) 0; }
.eyebrow { margin: 0 0 .5rem; color: var(--orange-dark); font-weight: 850; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--forest); line-height: 1.08; }
h1 { max-width: 820px; margin-bottom: 1rem; font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.045em; }
h2 { margin-bottom: .6rem; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.025em; }
h3 { color: var(--forest); font-size: 1.15rem; }
.hero-copy > p:not(.eyebrow), .page-heading > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .dialog-actions, .game-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--forest); color: white; box-shadow: 0 8px 20px rgba(23, 59, 54, .2); }
.button.primary:hover { background: var(--forest-2); }
.button.secondary { background: var(--paper); border-color: rgba(23, 59, 54, .17); color: var(--forest); }
.button.danger { color: var(--danger); background: #fff4f3; border-color: #f2c7c3; }
.button.wide { width: 100%; }

.daily-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: var(--forest);
  border-radius: 34px;
  box-shadow: var(--shadow);
  color: white;
}
.daily-card::before { content: ""; position: absolute; inset: auto -12% -30% 25%; height: 70%; border-radius: 50%; background: rgba(255, 209, 102, .12); }
.daily-card .eyebrow { color: var(--sun); }
.daily-card h2 { position: relative; color: white; font-size: clamp(2rem, 4vw, 3.2rem); }
.daily-card p { position: relative; color: rgba(255,255,255,.78); }
.daily-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 1.5rem; border-radius: 20px; background: rgba(255,255,255,.12); font-size: 2rem; }
.daily-meta { position: absolute; left: clamp(1.5rem, 4vw, 2.6rem); right: clamp(1.5rem, 4vw, 2.6rem); bottom: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.7); font-size: .8rem; }

.section-block { margin-top: 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading.compact { align-items: center; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.game-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid rgba(23, 59, 54, .12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(23, 59, 54, .06);
  cursor: pointer;
  text-align: left;
}
.game-card:hover { border-color: rgba(23, 59, 54, .3); transform: translateY(-2px); box-shadow: var(--shadow); }
.game-card .game-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--forest-3); font-size: 1.8rem; }
.game-card:nth-child(2) .game-icon { background: #fff0cf; }
.game-card:nth-child(3) .game-icon { background: #f9ddd3; }
.game-card h3 { margin: .2rem 0 .35rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.game-card .game-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--forest-2); font-size: .82rem; font-weight: 800; }
.difficulty-pill { padding: .25rem .55rem; border-radius: 999px; background: var(--cream); color: var(--muted); }

.two-column { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(23, 59, 54, .12); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 28px rgba(23, 59, 54, .05); }
.trip-panel { position: relative; overflow: hidden; background: #f4e2c5; }
.trip-panel .large-emoji { float: right; margin: -.6rem -.2rem .5rem 1rem; font-size: 4rem; }
.trip-panel p:not(.eyebrow) { color: #675b4c; }

.page-heading { margin: 1.5rem 0 2.4rem; }
.page-heading h1 { margin-bottom: .8rem; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.leaderboard-filters { display: grid; gap: .75rem; margin-bottom: 1rem; }
.leaderboard-filter-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: .65rem; }
.leaderboard-filter-group > strong { padding-top: .65rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.leaderboard-filter-group .filter-row { margin-bottom: 0; }
.filter { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; white-space: nowrap; }
.filter.active { background: var(--forest); border-color: var(--forest); color: white; }
.leaderboard-list { display: grid; gap: .5rem; }
.leader-row { display: grid; grid-template-columns: 34px 44px 1fr auto; align-items: center; gap: .7rem; padding: .7rem .3rem; border-bottom: 1px solid rgba(23, 59, 54, .08); }
.leader-row:last-child { border: 0; }
.leader-rank { color: var(--muted); font-weight: 850; text-align: center; }
.leader-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest-3); }
.leader-name { display: grid; }
.leader-name small { color: var(--muted); }
.leader-score { color: var(--forest); font-weight: 900; font-variant-numeric: tabular-nums; }
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.privacy-note { margin: 1rem; color: var(--muted); text-align: center; font-size: .86rem; }

.trip-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trip-option { position: relative; display: grid; gap: .25rem; place-items: center; min-height: 180px; padding: 1rem; border: 2px solid transparent; border-radius: var(--radius); background: var(--paper); cursor: pointer; box-shadow: 0 8px 28px rgba(23, 59, 54, .06); }
.trip-option:hover, .trip-option.selected { border-color: var(--forest-2); }
.trip-option.recommended::before { content: "Family favourite"; position: absolute; top: -.65rem; padding: .3rem .7rem; border-radius: 999px; background: var(--orange); color: white; font-size: .7rem; font-weight: 850; }
.trip-option span { font-size: 3rem; }
.trip-option strong { color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.trip-option small { color: var(--muted); }
.trip-progress-panel { margin-top: 1rem; }
.progress-track { overflow: hidden; height: .7rem; margin: 1.2rem 0; border-radius: 99px; background: var(--forest-3); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--forest-2), #52a77c); transition: width .3s ease; }
.trip-details { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .85rem; }
.trip-details span { padding: .35rem .65rem; border-radius: 999px; background: var(--cream); }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.profile-card { position: relative; display: grid; place-items: center; min-height: 180px; padding: 1rem; border: 2px solid transparent; border-radius: var(--radius); background: var(--paper); cursor: pointer; box-shadow: 0 8px 28px rgba(23, 59, 54, .05); }
.profile-card.active { border-color: var(--orange); }
.profile-card .profile-avatar { width: 70px; height: 70px; margin-bottom: .6rem; font-size: 2rem; }
.profile-card strong { color: var(--forest); font-size: 1.05rem; }
.profile-card small { color: var(--muted); }
.active-label { position: absolute; top: .7rem; right: .7rem; padding: .2rem .5rem; border-radius: 99px; background: #e7f5eb; color: #28704f; font-size: .7rem; font-weight: 850; }
.account-panel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }

.dialog { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; }
.dialog::backdrop { background: rgba(13, 35, 32, .62); backdrop-filter: blur(4px); }
.dialog-card { position: relative; width: min(92vw, 480px); max-height: 90vh; overflow-y: auto; padding: 2rem; border: 0; border-radius: 26px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.dialog-close { position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 1.5rem; }
.dialog-card label, .dialog-card fieldset { display: grid; gap: .45rem; margin: 1rem 0; border: 0; padding: 0; color: var(--forest); font-weight: 800; }
.dialog-card input, .dialog-card select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: .45rem; }
.avatar-choice { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid transparent; border-radius: 14px; background: var(--cream); cursor: pointer; font-size: 1.35rem; }
.avatar-choice.selected { border-color: var(--orange); background: #fff5e5; }
.form-error { min-height: 1.4em; color: var(--danger); }
.celebration-card { text-align: center; }
.celebration-stars { font-size: 2rem; }
.score-badge { display: grid; place-items: center; width: 170px; height: 170px; margin: 1.3rem auto; border-radius: 50%; background: var(--forest); color: white; box-shadow: inset 0 0 0 8px rgba(255,255,255,.1); }
.score-badge strong { font-family: Georgia, serif; font-size: 3.5rem; line-height: 1; }
.score-badge span { max-width: 100px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.game-shell { max-width: 900px; margin: 0 auto; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.back-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.game-stat-row { display: flex; gap: .5rem; }
.game-stat { min-width: 76px; padding: .45rem .7rem; border-radius: 12px; background: var(--paper); text-align: center; }
.game-stat small { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.game-stat strong { color: var(--forest); font-variant-numeric: tabular-nums; }
.game-heading { text-align: center; }
.game-heading h1 { margin-bottom: .35rem; font-size: clamp(2rem, 6vw, 3.5rem); }
.game-heading p { color: var(--muted); }
.difficulty-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1rem 0; }

.sudoku-board { --size: 9; display: grid; grid-template-columns: repeat(var(--size), 1fr); width: min(88vw, 580px); aspect-ratio: 1; margin: 1.2rem auto; border: 3px solid var(--forest); background: var(--forest); gap: 1px; }
.sudoku-cell { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; background: var(--paper); color: var(--forest); font-size: clamp(1.15rem, 4vw, 2rem); font-weight: 800; cursor: pointer; }
.sudoku-cell.given { background: #e7eee8; color: var(--ink); cursor: default; }
.sudoku-cell.selected { background: #ffe6a8; }
.sudoku-cell.related:not(.selected) { background: #f4eedf; }
.sudoku-cell.box-right { border-right: 4px solid var(--forest); }
.sudoku-cell.box-bottom { border-bottom: 4px solid var(--forest); }
.sudoku-cell.error { color: var(--danger); background: #ffe0dc; animation: shake .2s ease; }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.number-pad { display: grid; grid-template-columns: repeat(var(--pad-size, 9), 1fr); gap: .4rem; width: min(94vw, 650px); margin: 1rem auto; }
.number-pad button { min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest); font-size: 1.15rem; font-weight: 850; cursor: pointer; }
.keyboard-hint { margin: -.35rem auto .75rem; color: var(--muted); text-align: center; font-size: .82rem; }

.word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.word-board { --size: 10; display: grid; grid-template-columns: repeat(var(--size), 1fr); width: min(86vw, 620px); aspect-ratio: 1; margin: 0 auto; gap: 3px; }
.letter-cell { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 7px; background: var(--paper); color: var(--forest); box-shadow: inset 0 0 0 1px var(--line); font-size: clamp(.72rem, 2.5vw, 1.25rem); font-weight: 900; cursor: pointer; }
.letter-cell.start { background: var(--sun); }
.letter-cell.found { background: #bfe6d1; box-shadow: inset 0 0 0 2px #3b956a; }
.word-list { padding: 1rem; border-radius: var(--radius); background: var(--paper); }
.word-list h3 { margin-bottom: .6rem; }
.word-list ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.word-list li { padding: .25rem .45rem; border-radius: 8px; font-weight: 750; }
.word-list li.found { color: var(--muted); text-decoration: line-through; background: var(--forest-3); }

.sudoku-board.size-4 { grid-template-columns: repeat(4, 1fr); }
.sudoku-board.size-6 { grid-template-columns: repeat(6, 1fr); }
.sudoku-board.size-9 { grid-template-columns: repeat(9, 1fr); }
.number-pad.pad-4 { grid-template-columns: repeat(5, 1fr); }
.number-pad.pad-6 { grid-template-columns: repeat(7, 1fr); }
.number-pad.pad-9 { grid-template-columns: repeat(5, 1fr); }
.word-board.size-8 { grid-template-columns: repeat(8, 1fr); }
.word-board.size-10 { grid-template-columns: repeat(10, 1fr); }
.word-board.size-12 { grid-template-columns: repeat(12, 1fr); }
.word-board.size-14 { grid-template-columns: repeat(14, 1fr); }

.cruise-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; width: min(96vw, 680px); margin: 1rem auto; }
.cruise-rules span { display: grid; padding: .65rem; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-align: center; }
.cruise-rules strong { color: var(--forest); font-size: .82rem; }
.cruise-rules small { color: var(--muted); font-size: .7rem; }
.cruise-board { display: grid; width: min(92vw, 650px); aspect-ratio: 1; margin: 1rem auto; gap: 3px; padding: 4px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.cruise-board.size-5 { grid-template-columns: repeat(5, 1fr); }
.cruise-board.size-6 { grid-template-columns: repeat(6, 1fr); }
.cruise-board.size-8 { grid-template-columns: repeat(8, 1fr); }
.cruise-board.size-10 { grid-template-columns: repeat(10, 1fr); }
.cruise-cell { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 7px; color: rgba(255,255,255,.92); font-size: clamp(.78rem, 3.2vw, 1.8rem); font-weight: 950; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cruise-cell.ship { outline: 3px solid rgba(255,255,255,.88); outline-offset: -5px; }
.cruise-cell.auto-water { color: rgba(255,255,255,.38); text-shadow: none; font-size: clamp(.65rem, 2vw, 1rem); font-weight: 750; }
.cruise-cell.manual-water { color: rgba(255,255,255,.96); }
.cruise-cell.starter { filter: saturate(.8); cursor: default; }
.cruise-cell.error { box-shadow: inset 0 0 0 4px #a93232; }
.cruise-cell.region-0 { background: #6f63c5; }
.cruise-cell.region-1 { background: #c99c24; }
.cruise-cell.region-2 { background: #43a66f; }
.cruise-cell.region-3 { background: #d96b8b; }
.cruise-cell.region-4 { background: #2d9ab0; }
.cruise-cell.region-5 { background: #db7f45; }
.cruise-cell.region-6 { background: #78b84e; }
.cruise-cell.region-7 { background: #ad6ab4; }
.cruise-cell.region-8 { background: #447eb7; }
.cruise-cell.region-9 { background: #b66545; }
.cruise-help { margin: .7rem auto; color: var(--muted); text-align: center; }

.memory-board { display: grid; grid-template-columns: repeat(4, minmax(52px, 110px)); justify-content: center; gap: .65rem; margin: 1.5rem auto; }
.memory-board.cols-4 { grid-template-columns: repeat(4, minmax(52px, 110px)); }
.memory-board.cols-6 { grid-template-columns: repeat(6, minmax(44px, 95px)); }
.memory-card { position: relative; aspect-ratio: 1; border: 0; border-radius: 17px; background: var(--forest); color: transparent; box-shadow: 0 7px 16px rgba(23, 59, 54, .18); cursor: pointer; font-size: clamp(1.5rem, 5vw, 2.8rem); transform-style: preserve-3d; transition: transform .25s ease, background .25s ease; }
.memory-card::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.65); font-size: 1.4rem; }
.memory-card.flipped, .memory-card.matched { background: var(--paper); color: inherit; transform: rotateY(180deg); }
.memory-card.flipped::after, .memory-card.matched::after { display: none; }
.memory-card.matched { background: #cdebd9; box-shadow: inset 0 0 0 2px #55a67b; }

.toast-region { position: fixed; z-index: 80; right: 1rem; bottom: calc(5.6rem + env(safe-area-inset-bottom)); display: grid; gap: .5rem; }
.toast { max-width: min(360px, calc(100vw - 2rem)); padding: .8rem 1rem; border-radius: 13px; background: var(--forest); color: white; box-shadow: var(--shadow); animation: toast-in .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.bottom-nav { position: fixed; z-index: 25; left: 50%; bottom: max(.8rem, env(safe-area-inset-bottom)); display: flex; gap: .3rem; width: min(620px, calc(100% - 1.2rem)); padding: .45rem; border: 1px solid rgba(23,59,54,.12); border-radius: 22px; background: rgba(255,253,247,.95); box-shadow: 0 16px 50px rgba(23,59,54,.2); backdrop-filter: blur(16px); transform: translateX(-50%); }
.bottom-nav a { display: grid; flex: 1; place-items: center; min-height: 52px; padding: .3rem; border-radius: 15px; color: var(--muted); font-size: .67rem; font-weight: 750; text-decoration: none; }
.bottom-nav a span { font-size: 1.15rem; }
.bottom-nav a.active { background: var(--forest); color: white; }

:focus-visible { outline: 3px solid #e68a35; outline-offset: 3px; }

@media (max-width: 820px) {
  .hero, .two-column, .game-grid.large { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 1rem; }
  .daily-card { min-height: 310px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 150px; }
  .word-layout { grid-template-columns: 1fr; }
  .word-list ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar { min-height: 64px; }
  .brand small, .status-chip span:last-child, .profile-button > span:last-child { display: none; }
  .brand img { width: 42px; height: 42px; }
  main { width: min(100% - 1rem, 1180px); padding-top: 1.2rem; }
  h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .trip-options { grid-template-columns: 1fr; }
  .trip-option { grid-template-columns: auto 1fr; place-items: center start; min-height: 100px; text-align: left; }
  .trip-option span { grid-row: 1 / 3; }
  .account-panel { align-items: stretch; flex-direction: column; }
  .leader-row { grid-template-columns: 28px 40px 1fr auto; gap: .45rem; }
  .game-topline { align-items: flex-start; }
  .game-stat-row { gap: .25rem; }
  .game-stat { min-width: 62px; padding: .38rem .4rem; }
  .number-pad { --pad-size: 5 !important; }
  .leaderboard-filter-group { grid-template-columns: 1fr; gap: .25rem; }
  .leaderboard-filter-group > strong { padding-top: 0; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; }
  .dialog-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
