@font-face { font-family: 'Grandstander'; font-weight: 500; font-display: swap; src: url('/fonts/Grandstander_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Grandstander'; font-weight: 700; font-display: swap; src: url('/fonts/Grandstander_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Grandstander'; font-weight: 800; font-display: swap; src: url('/fonts/Grandstander_800ExtraBold.ttf') format('truetype'); }

:root {
  --sand: #E8DBBE;
  --card: #D8C495;
  --card-soft: #EFE4C9;
  --ink: #5C3D23;
  --outline: #4C1C0C;
  --muted: #6B6355;
  --amber: #E8A33D;
  --grass: #7A9B5C;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Grandstander', 'Trebuchet MS', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--outline); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-weight: 800; color: var(--outline); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, 880px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* header / footer */
.site-header { border-bottom: 1px solid rgba(76, 28, 12, .18); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 0; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--outline); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { font-weight: 700; text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid rgba(76, 28, 12, .18); font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 800; color: var(--outline);
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--outline);
  background: linear-gradient(#FDDB66, #FDCE52 40%, #FDBC40 60%, #FA8A24);
  box-shadow: 0 2px 0 rgba(76, 28, 12, .35);
}
.btn:hover { filter: brightness(1.05); }
.btn-quiet { background: var(--card-soft); box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* hero + sections */
.hero { text-align: center; padding: 36px 0 12px; }
.hero img.logo { width: min(300px, 70%); margin-bottom: 8px; }
.hero .tagline { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.lede { font-size: 1.15rem; max-width: 36em; margin-inline: auto; }
.card {
  background: var(--card-soft); border: 1px solid rgba(76, 28, 12, .25);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 14px rgba(76, 28, 12, .12);
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.game-card { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.game-card img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.game-card h3 { margin: 0 0 4px; }
.game-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: center; }
.steps img { width: 64px; flex: none; }
.features { padding-left: 1.2em; }
.features li { margin-bottom: .45em; }
.pets { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-end; }
.pets img { height: 120px; width: auto; }
.pets-sm img { height: 88px; }
.cta { text-align: center; margin-top: 40px; }
.small { font-size: .9rem; color: var(--muted); }
.note { background: rgba(122, 155, 92, .18); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
details { background: var(--card-soft); border: 1px solid rgba(76, 28, 12, .25); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
main { padding-bottom: 8px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
@media (min-width: 700px) { body { font-size: 18px; } .hero { padding-top: 56px; } }

/* how-to-play carousel (the app's own cards) */
.howto { max-width: 440px; margin-inline: auto; }
.howto-track { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 22px; }
.howto-track::-webkit-scrollbar { display: none; }
.howto-track:focus-visible { outline: 3px solid var(--grass); outline-offset: 4px; }
.howto-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.howto-slide img { display: block; width: 100%; height: auto; border-radius: 20px; filter: drop-shadow(0 4px 10px rgba(76, 28, 12, .18)); }
.howto-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.howto-controls .btn { min-width: 92px; padding: 10px 18px; }
.howto-controls .btn:disabled { opacity: .4; cursor: default; filter: none; }
.howto-controls[hidden] { display: none; }
.howto-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.howto-dot { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; background: rgba(76, 28, 12, .22); cursor: pointer; }
.howto-dot[aria-current="true"] { background: var(--amber); width: 26px; }
.howto-dot:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .howto-track { scroll-behavior: auto; } }
