/* Sit. Stay. Mahjong! website
   Colours come from the app (TileArt.kt Palette, Kit.kt Ui): a dark teal park,
   ivory tiles, one gold accent. Secondary text is ivory at reduced opacity
   rather than a second hue, as in the app. */

:root {
  --teal-950: #0b181c;
  --teal-900: #0f1f23;
  --teal-800: #122429;
  --teal-700: #16292f;
  --teal-600: #24434d;
  --muted: #9db4ba;
  --ivory: #f7f1e1;
  --ivory-lit: #fffbf0;
  --ivory-dim: rgba(247, 241, 225, 0.78);
  --ivory-faint: rgba(247, 241, 225, 0.56);
  --gold: #ffc107;
  --gold-soft: #ffd659;
  --on-gold: #1b2a1f;
  --ink: #1b2a3a;
  --tile-edge: #cec1a1;
  --tile-edge-2: #b6a886;
  --tile-border: #7e7154;
  --panel: rgba(18, 36, 41, 0.88);
  --panel-edge: rgba(255, 255, 255, 0.12);
  --soft: rgba(255, 255, 255, 0.07);

  --r-panel: 24px;
  --r-button: 18px;
  --r-group: 16px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--teal-900);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 35, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { color: var(--ivory); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 12px;
  color: var(--ivory-dim); text-decoration: none; font-weight: 650; font-size: 0.97rem; white-space: nowrap;
}
.site-nav a:hover { color: var(--ivory); background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--ivory); background: var(--soft); }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .site-nav { margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding: 4px var(--gutter) 8px; }
  .site-nav a { padding: 6px 10px; font-size: 0.93rem; }
}

/* ---------- Buttons and store badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-button);
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--on-gold); }
.btn-soft { background: rgba(255, 255, 255, 0.1); color: var(--ivory); }
.btn-soft:hover { background: rgba(255, 255, 255, 0.16); color: var(--ivory); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Store badges: placeholders until launch. See README "Launch day". */
.store-badge { display: block; height: 52px; width: auto; }
.store-badge img { height: 52px; width: auto; }
.coming-soon-note { color: var(--ivory-dim); font-size: 0.97rem; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(15, 31, 35, 0) 0%, rgba(15, 31, 35, 0.25) 55%, rgba(15, 31, 35, 0.8) 100%),
    linear-gradient(180deg, rgba(15, 31, 35, 0.4) 0%, rgba(15, 31, 35, 0.1) 40%, var(--teal-900) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 104px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.18); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ivory-dim); max-width: 34em; margin-bottom: 28px; }

.hero-art { position: relative; aspect-ratio: 1 / 0.9; max-width: 600px; width: 100%; justify-self: center; }
.hero-art .mascot { position: absolute; left: 0; bottom: 0; width: 70%; filter: drop-shadow(10px 18px 22px rgba(0, 0, 0, 0.45)); }
.hero-art .tile { position: absolute; --w: clamp(64px, 9.4vw, 112px); }
.hero-art .t1 { right: 26%; top: 2%; transform: rotate(-9deg); }
.hero-art .t2 { right: 2%; top: 14%; transform: rotate(6deg); }
.hero-art .t3 { right: 14%; top: 44%; transform: rotate(-4deg); }
.hero-art .t4 { right: -2%; top: 70%; transform: rotate(10deg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 300px; order: -1; margin-bottom: -16px; }
  .hero .wrap { padding-top: 24px; }
}

/* ---------- Tiles, drawn like the app's (ivory face, two edge layers) ---------- */
.tile {
  --w: 96px;
  width: var(--w); aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ivory-lit), var(--ivory));
  border: max(2px, calc(var(--w) / 50)) solid var(--tile-border);
  border-radius: calc(var(--w) * 0.14);
  box-shadow:
    calc(var(--w) * 0.05) calc(var(--w) * 0.05) 0 var(--tile-edge),
    calc(var(--w) * 0.1) calc(var(--w) * 0.1) 0 var(--tile-edge-2),
    calc(var(--w) * 0.12) calc(var(--w) * 0.18) calc(var(--w) * 0.22) rgba(0, 0, 0, 0.4);
}
.tile img { width: 84%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--teal-800); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ivory-dim); font-size: 1.12rem; }
.kicker { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }

.panel {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r-panel);
  padding: clamp(20px, 3vw, 32px);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.muted { color: var(--ivory-dim); }
.center-text { text-align: center; }
.spaced { margin-top: clamp(32px, 5vw, 56px); }
.faq-more { margin-top: 20px; }
.small { font-size: 0.93rem; }

/* Facts strip */
.facts { margin-top: -28px; position: relative; z-index: 2; }
.facts dl {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r-panel); overflow: hidden;
}
.facts dl > div { padding: 20px 16px; text-align: center; border-left: 1px solid var(--panel-edge); }
.facts dl > div:first-child { border-left: 0; }
.facts dt { font-size: 0.92rem; color: var(--ivory-dim); }
.facts dd { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 850; color: var(--ivory); line-height: 1.1; }
.facts dl > div { display: flex; flex-direction: column-reverse; gap: 4px; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { border-left: 0; border-top: 1px solid var(--panel-edge); }
  .facts dl > div:nth-child(-n+2) { border-top: 0; }
  .facts dl > div:nth-child(even) { border-left: 1px solid var(--panel-edge); }
  .facts dl > div:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-weight: 850; font-size: 1.1rem;
}
.steps h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.steps p { color: var(--ivory-dim); }

/* Try-a-board demo */
.demo { position: relative; }
.demo-board {
  --tw: clamp(54px, 15vw, 76px);
  position: relative; margin: 8px auto 0;
  width: calc(var(--tw) * 4.4);
  height: calc(var(--tw) * 4.4);
}
.demo-board .tile {
  --w: var(--tw);
  position: absolute; padding: 0; cursor: pointer; font: inherit;
  transition: transform 0.15s ease, opacity 0.25s ease, filter 0.2s ease;
}
.demo-board .tile[aria-disabled="true"] { cursor: default; filter: brightness(0.62) saturate(0.7); }
.demo-board .tile[aria-pressed="true"] {
  outline: 4px solid var(--gold); outline-offset: 1px;
  transform: translateY(-4px);
}
.demo-board .tile.is-hint { outline: 4px solid #4fc3f7; outline-offset: 1px; }
.demo-board .tile.is-gone { opacity: 0; transform: scale(0.85); visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
.demo-status { min-height: 3.4em; text-align: center; margin: 18px 0 10px; color: var(--ivory-dim); }
.demo-status strong { color: var(--ivory); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.demo-actions .btn { min-height: 44px; padding: 10px 18px; }
.demo noscript p { text-align: center; }

/* Difficulty cards */
.diff-card h3 { display: flex; align-items: center; gap: 10px; }
.diff-swatches { display: flex; gap: 6px; margin-bottom: 14px; }
.diff-swatches span { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, 0.25); }
.sw-herding { background: #0072b2; }
.sw-sporting { background: #e69f00; }
.sw-terrier { background: #009e73; }
.sw-toy { background: #cc79a7; }
.sw-none { background: var(--ivory); }
.diff-card p { color: var(--ivory-dim); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--panel-edge); font-weight: 650; font-size: 0.95rem; }

/* Screens gallery */
.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px;
  overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory;
}
.screens figure { margin: 0; scroll-snap-align: start; }
.phone {
  border-radius: 34px; padding: 9px; background: #0a1417;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 720 / 1560; object-fit: cover; background: var(--teal-700); }
.screens figcaption { margin-top: 12px; font-weight: 700; text-align: center; }
.screens figcaption span { display: block; font-weight: 500; color: var(--ivory-dim); font-size: 0.93rem; }

/* Collection */
.dog-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dog-strip li { list-style: none; container-type: inline-size; }
.dog-strip .tile { --w: 92cqi; margin: 0 auto; }
.dog-strip figure, .award-row figure { margin: 0; text-align: center; }
.dog-strip figcaption { margin-top: 12px; font-size: 0.85rem; font-weight: 700; color: var(--ivory-dim); line-height: 1.25; }
.dog-strip .locked .tile { background: var(--teal-600); border-color: rgba(255, 255, 255, 0.18); }
.dog-strip .locked img { opacity: 0.9; }
@media (max-width: 760px) { .dog-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ul.dog-strip { padding: 0; margin: 0; }

.award-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.award-row img { width: 100%; max-width: 120px; margin: 0 auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); }
.award-row figcaption { font-size: 0.85rem; font-weight: 700; margin-top: 6px; line-height: 1.25; }
.award-row figcaption span { display: block; color: var(--ivory-faint); font-weight: 600; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.feature-list li::before {
  content: ""; width: 22px; height: 22px; margin-top: 4px; border-radius: 7px;
  background: var(--gold); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat;
}
.feature-list strong { display: block; }
.feature-list span { color: var(--ivory-dim); }
:root {
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6' cy='9' rx='2.3' ry='3'/%3E%3Cellipse cx='10' cy='5' rx='2.3' ry='3'/%3E%3Cellipse cx='14.5' cy='5' rx='2.3' ry='3'/%3E%3Cellipse cx='18.5' cy='9' rx='2.3' ry='3'/%3E%3Cpath d='M12.2 10.5c-3 0-6.7 4.6-6.7 7.4 0 2 1.6 2.9 3.4 2.9 1.5 0 2.2-.8 3.3-.8s1.8.8 3.3.8c1.8 0 3.4-.9 3.4-2.9 0-2.8-3.7-7.4-6.7-7.4z'/%3E%3C/svg%3E");
}

.book-card { overflow: hidden; padding: 0; }
.book-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.book-card .body { padding: clamp(20px, 3vw, 28px); }

/* Rewards: shop scenes */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.scenes figure { margin: 0; }
.scenes img { border-radius: var(--r-group); aspect-ratio: 300 / 560; object-fit: cover; object-position: center top; border: 1px solid var(--panel-edge); }
.scenes figcaption { font-weight: 700; margin-top: 8px; font-size: 0.95rem; }
.scenes figcaption span { color: var(--ivory-faint); font-weight: 600; }
.shop-mascot { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.shop-mascot img { width: 120px; flex: none; filter: drop-shadow(6px 10px 12px rgba(0, 0, 0, 0.4)); }

/* Daily */
.streaks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; list-style: none; padding: 0; }
.streaks li { width: 104px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.streaks img { width: 96px; margin: 0 auto 4px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); }

/* Mascot */
.mascot-feature img { width: min(360px, 80%); margin: 0 auto; filter: drop-shadow(14px 22px 26px rgba(0, 0, 0, 0.45)); }

/* Free and fair */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2a1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Giving back banner */
.give {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: linear-gradient(120deg, #1c3a42, #122a30); border: 1px solid rgba(255, 193, 7, 0.32);
}
.give img { width: 140px; }
.give blockquote { margin: 0 0 8px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 750; line-height: 1.35; }
@media (max-width: 860px) {
  .give { grid-template-columns: 1fr; text-align: left; }
  .give img { width: 110px; }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r-group); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 750; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; color: var(--ivory-dim); }
.faq .answer ul, .faq .answer ol { margin: 0 0 1em; padding-left: 1.2em; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .store-row { justify-content: center; margin-top: 24px; }
.cta-final img.mascot { width: 180px; margin: 0 auto 12px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); position: relative; }
.page-hero p.lede { color: var(--ivory-dim); font-size: 1.15rem; max-width: 40em; }
.page-hero .with-art { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.page-hero .with-art img { width: 170px; }
@media (max-width: 640px) { .page-hero .with-art { grid-template-columns: 1fr; } .page-hero .with-art img { width: 120px; order: -1; } }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--ivory-dim); }
.prose strong { color: var(--ivory); }
.prose .summary { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 28px); }
.prose .summary h2 { margin-top: 0; }

.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.toc a { display: block; padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--panel-edge); color: var(--ivory); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.toc a:hover { background: rgba(255, 255, 255, 0.12); }

/* Owner placeholders: deliberately loud so none ship by accident. */
.placeholder {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  border: 1.5px dashed var(--gold); background: rgba(255, 193, 7, 0.12); color: var(--gold-soft);
  font-weight: 700; font-style: normal;
}

.pledge {
  margin: 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-panel);
  background: linear-gradient(120deg, #1c3a42, #122a30); border: 1px solid rgba(255, 193, 7, 0.32);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 800; line-height: 1.3;
}
.pledge p { margin: 0; }

.shelters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.shelters li { background: var(--panel); border: 1px dashed rgba(255, 193, 7, 0.45); border-radius: var(--r-group); padding: 20px; }
.shelters h3 { font-size: 1.05rem; margin-bottom: 6px; }
.shelters p { color: var(--ivory-dim); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) { .shelters { grid-template-columns: 1fr; } }

.total {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.total .amount { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 850; line-height: 1; }
@media (max-width: 640px) { .total { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: var(--r-group); border: 1px solid var(--panel-edge); }
table { width: 100%; border-collapse: collapse; min-width: 420px; background: var(--panel); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--panel-edge); }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ivory-dim); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); border-top: 1px solid var(--panel-edge); padding: 48px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ivory-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ivory-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer p { color: var(--ivory-faint); font-size: 0.93rem; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--panel-edge); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* 404 */
.not-found { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.not-found img { width: 200px; margin: 0 auto 16px; }
