/* Purrennial site. Layout: a conservatory at dusk. Full-bleed painted scenes as bands,
   the game's own glass-and-gold UI for controls, art always anchored to the ground line. */
@font-face { font-family: 'Mochiy Pop One'; src: url(fonts/mochiy.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(fonts/nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0a211d;      /* deepest glasshouse shadow */
  --glass: #0f302a;      /* page ground */
  --pane: #16423a;       /* raised panels */
  --rule: #2b6157;       /* frames, hairlines */
  --ink: #f3f7f1;
  --soft: #b9d0c7;
  --sun: #ffd166;        /* the Play button */
  --sun-ink: #3a2600;
  --sakura: #ffb3cf;
  --mint: #9fe3c4;
  --display: 'Mochiy Pop One', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', Roboto, system-ui, sans-serif;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--glass); color: var(--ink); font: 600 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
p { margin: 0; }
a { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sakura); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 9vw, 104px); }
.band .wrap > * + * { margin-top: 18px; }
.eyebrow { font-weight: 900; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.band p { color: var(--soft); max-width: 60ch; }
.band p.eyebrow { color: var(--mint); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border-radius: 18px; border: 0; cursor: pointer;
  font: inherit; text-decoration: none; text-align: left; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease; }
.btn svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.btn b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.btn small { display: block; font-size: .8rem; font-weight: 700; opacity: .8; margin-top: 3px; }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 5px 0 #c9962b, 0 14px 30px rgba(0, 0, 0, .35); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c9962b, 0 18px 34px rgba(0, 0, 0, .4); }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9962b; }
.btn-glass { background: rgba(10, 33, 29, .72); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); backdrop-filter: blur(6px); }
.btn-glass:not(.is-soon):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--mint); }
.btn-mint { background: var(--mint); color: #0b3327; box-shadow: 0 4px 0 #5fb193; padding: 11px 18px; }
.btn-mint:active { transform: translateY(3px); box-shadow: 0 1px 0 #5fb193; }
.btn.is-soon { cursor: default; color: var(--soft); }

/* ---------- hero ---------- */
/* Wide screens: the key art fills the band, girls on the right, copy on the dusk-tinted left.
   Narrow screens: copy first, then the girls as a picture of their own. */
.hero { position: relative; overflow: hidden; background: var(--night) url(img/key-wide.webp) right 38% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10, 33, 29, .96) 0%, rgba(10, 33, 29, .9) 30%, rgba(10, 33, 29, .45) 50%, rgba(10, 33, 29, 0) 66%),
              linear-gradient(to top, var(--glass) 0, rgba(15, 48, 42, 0) 22%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 560px); padding-top: clamp(28px, 6vw, 72px); }
.hero-copy { display: grid; gap: 20px; justify-items: start; padding-bottom: clamp(56px, 9vw, 120px); }
.logo { width: min(420px, 78%); margin-left: -6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.3rem); max-width: 15ch; text-shadow: 0 2px 14px rgba(10, 33, 29, .6); }
.lede { font-size: 1.12rem; color: #e3efe9; max-width: 44ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.fine { font-size: .85rem; font-weight: 800; color: #cfe0d8; letter-spacing: .01em; }
.hero-key { display: none; }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petals i { position: absolute; top: -24px; width: 13px; height: 10px; border-radius: 80% 0 80% 0; background: var(--sakura); opacity: .75;
  animation: fall linear infinite; }
.petals i:nth-child(1) { left: 6%; animation-duration: 13s; animation-delay: -2s; }
.petals i:nth-child(2) { left: 17%; animation-duration: 17s; animation-delay: -9s; scale: .7; }
.petals i:nth-child(3) { left: 31%; animation-duration: 12s; animation-delay: -5s; }
.petals i:nth-child(4) { left: 44%; animation-duration: 19s; animation-delay: -14s; scale: .8; }
.petals i:nth-child(5) { left: 57%; animation-duration: 14s; animation-delay: -1s; }
.petals i:nth-child(6) { left: 68%; animation-duration: 16s; animation-delay: -11s; scale: .6; }
.petals i:nth-child(7) { left: 79%; animation-duration: 11s; animation-delay: -7s; }
.petals i:nth-child(8) { left: 88%; animation-duration: 18s; animation-delay: -4s; scale: .75; }
.petals i:nth-child(9) { left: 96%; animation-duration: 15s; animation-delay: -12s; }
@keyframes fall { to { transform: translate3d(-90px, 760px, 0) rotate(420deg); } }

/* ---------- how it plays ---------- */
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.play-copy > * + * { margin-top: 18px; }
.ladder { margin-top: 30px; background: var(--pane); border-radius: var(--r); padding: 20px 18px 18px; box-shadow: inset 0 0 0 2px var(--rule); }
.rungs { list-style: none; margin: 0; padding: 50px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rungs li { transform: translateY(calc(var(--i) * -9px)); text-align: center; font-size: .78rem; font-weight: 900; color: var(--soft); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.rungs img { width: min(100%, 76px); margin: 0 auto 6px; opacity: .45; filter: saturate(.6); transition: opacity .25s, filter .25s; }
.rungs li.done img { opacity: .8; filter: none; }
.rungs li.on { color: var(--ink); transform: translateY(calc(var(--i) * -9px - 6px)) scale(1.12); }
.rungs li.on img { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 209, 102, .7)); }
.try { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--rule); }
.try-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 9%; background: var(--night); box-shadow: 0 0 0 3px var(--sakura); }
.band .bubble { position: relative; background: var(--ink); color: #173a33; font-weight: 800; padding: 9px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.35; justify-self: start; }
.bubble::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: var(--ink); border-left: 0; }
.phone { margin: 0; border-radius: 34px; padding: 9px; background: #06140f; box-shadow: 0 0 0 2px var(--rule), 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(2deg); }
.phone img { border-radius: 26px; }

/* ---------- cast ---------- */
.band-cast { background: var(--night); }
.cast { list-style: none; padding: 0; margin: 34px 0 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cast li { background: var(--pane); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 -4px 0 var(--tint); display: flex; flex-direction: column; }
.cg { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.who { padding: 16px 16px 20px; display: grid; gap: 6px; }
.who h3 { font-size: 1.4rem; color: var(--tint); }
.band .who p { color: var(--soft); font-size: .9rem; line-height: 1.4; }
.band .who .quote { color: var(--ink); font-size: 1rem; font-weight: 800; font-style: italic; margin-block: 4px; }
.band .who .unlock { font-size: .78rem; font-weight: 900; letter-spacing: .04em; color: var(--tint); }
.narrow { max-width: 56ch; }

/* ---------- greenhouse ---------- */
.band-gh { position: relative; background: var(--night) url(img/bg-conservatory.webp) center / cover no-repeat; }
.band-gh::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night) 0, rgba(10, 33, 29, .86) 18%, rgba(10, 33, 29, .86) 82%, var(--glass) 100%); }
.gh-grid { position: relative; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.gh-grid > div > * + * { margin-top: 18px; }
.gh-shot { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 2px var(--rule), 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(-1.5deg); }
.grow { list-style: none; padding: 0; margin-block: 26px !important; display: flex; align-items: flex-end; gap: 10px; max-width: 420px; }
.grow li { flex: 1; text-align: center; font-size: .8rem; font-weight: 900; color: var(--soft); position: relative; }
.grow li:nth-child(1) img { width: 52%; } .grow li:nth-child(2) img { width: 78%; } .grow li:nth-child(3) img { width: 100%; }
.grow img { margin: 0 auto 6px; }
.grow li + li::before { content: "›"; position: absolute; left: -9px; bottom: 34px; font-size: 1.5rem; color: var(--sun); line-height: 1; }

/* ---------- more ---------- */
.more { margin: 30px 0 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.more > div { padding: 18px 0; border-top: 2px solid var(--rule); }
.more dt { font-family: var(--display); font-size: 1.05rem; color: var(--sakura); }
.more dd { margin: 6px 0 0; color: var(--soft); font-size: .97rem; }

/* ---------- downloads ---------- */
.band-dl { background: var(--night); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px !important; }
.dl-card { background: var(--pane); border-radius: var(--r); padding: 26px; box-shadow: inset 0 0 0 2px var(--rule); display: grid; gap: 18px; align-content: start; justify-items: start; min-width: 0; }
.dl-card h3 { font-size: 1.5rem; }
.dl-card .price { font-size: 1.6rem; font-weight: 900; color: var(--ink); margin: -8px 0 0; }
.steps { margin: 0; padding-left: 1.2em; color: var(--soft); font-size: .95rem; }
.steps li + li { margin-top: 6px; }
.band .steps-soon { font-size: .95rem; }
.band .hash { font-size: .72rem; color: #86a79c; word-break: break-all; line-height: 1.5; max-width: 100%; }
.hash span { font-weight: 900; letter-spacing: .08em; }
.hash code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 400; }
.facts { list-style: none; padding: 0; margin: 28px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; color: var(--soft); font-size: .92rem; }
.facts b { color: var(--ink); font-weight: 900; margin-right: 4px; }

/* ---------- footer ---------- */
.foot { background: var(--night); border-top: 2px solid var(--rule); padding-block: 22px; font-size: .88rem; color: var(--soft); }
.foot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot img { width: 44px; }
.foot p { flex: 1; min-width: 200px; }
.foot a { font-weight: 900; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { background-image: none; }
  .hero::before { display: none; }
  .hero-copy { padding-bottom: 24px; }
  .hero-key { display: block; width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .cta .btn { flex: 1 1 240px; }
  .play-grid, .gh-grid { grid-template-columns: 1fr; }
  .phone { width: min(74%, 290px); margin: 0 auto; }
  .gh-shot { width: min(86%, 360px); margin: 0 auto; }
  .dl { grid-template-columns: 1fr; }
  .dl-card { padding: 22px 18px; }
  .dl-card .btn { width: 100%; }
  .try { grid-template-columns: 56px minmax(0, 1fr); }
  .try-face { width: 56px; height: 56px; }
  .try .btn { grid-column: 1 / -1; justify-content: center; }
  .rungs { gap: 4px; }
  .rungs li { font-size: .68rem; }
}
@media (max-width: 520px) {
  .cast { grid-template-columns: 1fr; }
  .cast li { flex-direction: row; }
  .cast .cg { width: 42%; flex: none; aspect-ratio: auto; }
  .who { align-content: center; }
  .more { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals { display: none; }
  .btn, .rungs li, .rungs img { transition: none; }
}
.lost { width: 110px; }
/* per-item values live here, not in style attributes, so the page works under a strict CSP */
.rungs li:nth-child(1) { --i: 0; } .rungs li:nth-child(2) { --i: 1; } .rungs li:nth-child(3) { --i: 2; }
.rungs li:nth-child(4) { --i: 3; } .rungs li:nth-child(5) { --i: 4; } .rungs li:nth-child(6) { --i: 5; }
.cast li:nth-child(1) { --tint: #ffb3cf; } .cast li:nth-child(2) { --tint: #9fe3c4; }
.cast li:nth-child(3) { --tint: #ff9a5c; } .cast li:nth-child(4) { --tint: #c9b6ff; }
/* ---------- tablet callout ---------- */
.tablet { margin-top: 36px !important; background: var(--pane); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--rule); padding: 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 40px; align-items: center; }
.tablet-copy { display: grid; gap: 10px; }
.tablet h3 { font-size: 1.4rem; color: var(--sun); }
.tablet-modes { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.tablet-modes dt { font-family: var(--display); font-size: 1.05rem; color: var(--mint); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tablet-modes dt span { font: 900 .66rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #0b3327; background: var(--mint); padding: 4px 7px; border-radius: 999px; }
.tablet-modes dd { margin: 6px 0 0; color: var(--soft); font-size: .97rem; }
@media (max-width: 900px) { .tablet { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tablet { padding: 22px 18px; } .tablet-modes { grid-template-columns: 1fr; } }
/* ---------- linux card ---------- */
.dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.band .alt { font-size: .92rem; }
.steps code, .alt code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; background: var(--night); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
/* ---------- screenshots ---------- */
.shots { list-style: none; padding: 0; margin: 28px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 2px var(--rule), 0 14px 30px rgba(0, 0, 0, .35); }
@media (max-width: 620px) { .shots { grid-template-columns: 1fr; } }

/* ---------- get the game ---------- */
.dl-itch { box-shadow: inset 0 0 0 2px var(--sun); }
.dl-itch h3 { color: var(--sun); }
.band .dl-card p { max-width: none; }
.later { list-style: none; margin: 0; padding: 0; width: 100%; }
.later li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 2px solid var(--rule); }
.later li:first-child { border-top: 0; padding-top: 0; }
.later b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--soft); }
.later span { font-size: .9rem; color: #86a79c; }
.foot-row a + a { margin-left: 6px; }

/* ---------- text pages ---------- */
.page { padding-block: clamp(32px, 6vw, 64px) clamp(56px, 9vw, 96px); }
.page .wrap { max-width: 760px; }
.page .wrap > * + * { margin-top: 16px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: none; text-shadow: none; }
.page h2 { font-size: 1.35rem; color: var(--sakura); margin-top: 36px !important; }
.page p, .page li { color: var(--soft); max-width: 65ch; }
.page ul { margin: 0; padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.page .home { display: inline-block; }
.page .home img { width: 220px; }
.page .stamp { font-size: .85rem; color: #86a79c; }
/* ---------- questions ---------- */
.faq { margin-top: 28px !important; max-width: 820px; }
.faq details { border-top: 2px solid var(--rule); }
.faq details:last-child { border-bottom: 2px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-family: var(--display); font-size: 1.08rem; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--sun); }
.faq details[open] summary::after { content: "\2212"; }
.band .faq p { padding: 0 0 18px; max-width: 65ch; }
.wide-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px var(--rule), 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(1.2deg); }
@media (max-width: 1000px) { .play-grid { grid-template-columns: 1fr; } .wide-shot { transform: none; } }

/* ---------- changelog (filled from whatsnew.json by build.mjs) ---------- */
.log { display: grid; gap: 16px; }
.log-home { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px !important; align-items: start; }
.log-entry { background: var(--pane); border: 2px solid var(--rule); border-radius: var(--r); padding: 20px 22px; }
.log-entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.log-entry h2, .log-entry h3 { font-size: 1.1rem; color: var(--ink); margin: 0 !important; }
.log-v { display: inline-block; font-family: var(--body); font-weight: 900; font-size: .78rem; letter-spacing: .04em; color: var(--sun-ink); background: var(--sun); border-radius: 999px; padding: 1px 9px; margin-right: 6px; vertical-align: .15em; }
.log-entry time { font-size: .82rem; font-weight: 800; color: var(--mint); }
.log-entry ul { margin: 12px 0 0; padding-left: 1.15em; }
.log-entry li { color: var(--soft); font-size: .95rem; line-height: 1.5; }
.log-entry li + li { margin-top: 6px; }
.page .log { margin-top: 28px; }
.page .log-entry h2 { font-size: 1.2rem; }
.log-all { font-weight: 900; }
@media (max-width: 900px) { .log-home { grid-template-columns: 1fr; } }

/* playtest polish (20 Nov) */
.hero-copy { position: relative; z-index: 1; }   /* falling petals pass behind the words, not over them */
.petals { z-index: 0; }
img[loading="lazy"] { background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }   /* no empty outlines while a picture loads */
.rungs li[role="button"] { cursor: pointer; } .rungs li[role="button"]:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
.cta [hidden] { display: none; }

/* ---------- leaderboard (/leaderboard, filled by the Worker from the friends server) ---------- */
.lb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .lb-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-tabs a { text-align: center; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--pane); border: 2px solid var(--rule); color: var(--ink); font-weight: 800; text-decoration: none; }
.lb-tabs a:hover { border-color: var(--mint); }
.lb-tabs a[aria-current="page"] { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.lb-board { background: var(--pane); border: 2px solid var(--rule); border-radius: var(--r); padding: 18px clamp(14px, 3vw, 24px); }
.lb-board > * + * { margin-top: 12px; }
.lb-what { color: var(--mint) !important; font-weight: 800; }
.lb-empty { color: var(--soft); }
.lb-challenge { margin: 0 0 18px; padding: 16px 18px; border-radius: 18px; background: rgba(255,209,102,.1); border: 2px solid rgba(255,209,102,.55); }
.lb-challenge p { margin: 0 0 10px; } .lb-challenge p:last-child { margin: 0; }
.lb-dare { font-weight: 900; font-size: 1.15rem; color: var(--sun, #ffd166) !important; }
.lb-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.lb-list li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; background: rgba(0, 0, 0, .18); margin: 0 !important; color: var(--ink); }
.lb-rank { font-weight: 900; color: var(--soft); text-align: right; }
.lb-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-size: .78rem; font-weight: 700; color: var(--soft); }
.lb-score { font-weight: 900; color: var(--sun); font-variant-numeric: tabular-nums; }
.lb-top { box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .35); }
.lb-1 .lb-rank, .lb-2 .lb-rank, .lb-3 .lb-rank { color: var(--sun-ink); background: var(--sun); border-radius: 999px; text-align: center; padding: 1px 0; }
.lb-2 .lb-rank { background: #dfe7ea; } .lb-3 .lb-rank { background: #e8b07a; }
.lb-count { font-size: .9rem; }

/* ---------- home page refresh (21 Nov): leaderboard band, pets, gardens, screenshot zoom ---------- */
.hero-lb { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 209, 102, .14);
  box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .55); color: var(--sun); font-weight: 900; font-size: .92rem; text-decoration: none; }
.hero-lb:hover { background: rgba(255, 209, 102, .24); }

.band-lb { position: relative; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 209, 102, .16), transparent 60%), var(--night);
  border-block: 2px solid rgba(255, 209, 102, .35); }
.lb-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 6vw, 64px); align-items: center; }
.lb-home > * + * { margin-top: 0 !important; }
.lb-home-copy > * + * { margin-top: 18px; }
.band-lb h2 { color: var(--sun); }
.lb-today { box-shadow: 0 0 0 2px rgba(255, 209, 102, .45), 0 24px 60px rgba(0, 0, 0, .45); border-color: transparent; position: relative; }
.lb-today::before { content: "🏆"; position: absolute; top: -22px; right: 18px; font-size: 2.2rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.band .lb-today .lb-first { color: var(--ink); font-family: var(--display); font-size: 1.25rem; line-height: 1.35; padding: 22px 6px 8px; text-align: center; max-width: none; }
.band .lb-today .lb-sub { font-size: .9rem; text-align: center; max-width: none; }
.lb-today .lb-list li { padding: 10px 14px; }
.lb-more { font-weight: 900; font-size: .92rem; }
.lb-cta { margin-top: 6px; }

.heart { list-style: none; padding: 0; margin: 24px 0 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; color: var(--soft); font-size: .95rem; }
.heart li { border-top: 2px solid var(--rule); padding-top: 14px; }
.heart b { display: block; color: var(--sakura); font-family: var(--display); font-weight: 400; font-size: 1.02rem; margin-bottom: 4px; }

.pets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 64px); align-items: center; }
.pets-grid > div > * + * { margin-top: 18px; }
.pet-care { margin: 24px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pet-care > div { padding: 14px 0; border-top: 2px solid var(--rule); }
.pet-care dt { font-family: var(--display); font-size: 1rem; color: var(--mint); }
.pet-care dd { margin: 4px 0 0; color: var(--soft); font-size: .93rem; }
.pets-shot { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 2px var(--rule), 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(1.2deg); }
.gh-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

.more-h { margin-top: 44px !important; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--ink); }
.more-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more dd a { font-weight: 800; }
.shots .shot-wide { grid-column: 1 / -1; }
.band p.zoom-hint { font-size: .85rem; color: #86a79c; margin-top: 10px; }

/* screenshots open bigger (app.js); without scripts the link just opens the picture */
.zoom { display: block; cursor: zoom-in; border-radius: inherit; }
.zoom img { transition: transform .2s ease, filter .2s ease; }
.zoom:hover img { filter: brightness(1.06); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 14, 12, .88); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: clamp(12px, 3vw, 40px); padding-top: 64px; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(96vw, 1600px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 0 0 2px var(--rule), 0 30px 80px rgba(0, 0, 0, .6); cursor: zoom-out; }
.lightbox figcaption { color: var(--soft); font-size: .92rem; text-align: center; max-width: 70ch; }
.lightbox-x { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(10, 33, 29, .9); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); font: 900 1.5rem/1 var(--body); cursor: pointer; }
.lightbox-x:hover { box-shadow: inset 0 0 0 2px var(--mint); }

@media (max-width: 1000px) {
  .lb-home, .pets-grid { grid-template-columns: 1fr; }
  .lb-today { max-width: 520px; width: 100%; }
  .more-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gh-grid { grid-template-columns: 1fr; }
  .gh-shot { width: 100%; transform: none; }
  .pets-shot { transform: none; }
  .heart { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pet-care, .more-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } }
.lb-today > .lb-what { padding-right: 44px; }

/* Languages (i18n.mjs): the menu, and fonts and line breaking for Chinese, Japanese and Korean. The site's own fonts are
   Latin only, so those scripts use the device's fonts, listed per language. */
.langs { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 900; font-size: .82rem; }
.langs a { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .28); color: var(--ink); text-decoration: none; border: 1px solid var(--rule); }
.langs a:hover { background: rgba(0, 0, 0, .45); }
.langs a[aria-current] { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.hero > .langs { position: absolute; top: 14px; right: 16px; z-index: 5; justify-content: flex-end; max-width: calc(100% - 32px); }
.page .langs, .band .langs { justify-content: flex-end; }
.foot-langs { margin-top: 14px; }
.foot-langs .langs { justify-content: flex-start; }
:lang(ja) { --display: 'Mochiy Pop One', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', system-ui, sans-serif;
  --body: 'Nunito', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', system-ui, sans-serif; line-break: strict; }
:lang(ko) { --display: 'Mochiy Pop One', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --body: 'Nunito', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh-Hans) { --display: 'Mochiy Pop One', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
  --body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif; line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { line-height: 1.35; }
@media (max-width: 760px) { .hero > .langs { position: relative; top: auto; right: auto; justify-content: center; max-width: none; padding: 12px 16px 0; } }

/* tester feedback form (/tester-feedback, unlisted) */
.fb-form { display: grid; gap: 18px; }
.fb-form > label, .fb-form legend { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }
.fb-form small { font-weight: 600; color: var(--soft); }
.fb-form fieldset { border: 0; margin: 0; padding: 0; }
.fb-form legend { margin-bottom: 8px; }
.fb-form select, .fb-form input:not([type=radio]), .fb-form textarea { font: inherit; font-weight: 600; color: var(--ink); background: rgba(10, 33, 29, .72);
  border: 2px solid var(--rule); border-radius: 12px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.fb-form select:focus, .fb-form input:focus, .fb-form textarea:focus { outline: none; border-color: var(--mint); }
.fb-form textarea { resize: vertical; min-height: 84px; }
.fb-stars { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-stars label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(10, 33, 29, .72);
  box-shadow: inset 0 0 0 2px var(--rule); cursor: pointer; color: var(--ink); }
.fb-stars label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--mint); }
.fb-stars input { accent-color: var(--mint); margin: 0; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
