/* Stray Cat Days' pages: the game's own Matcha Oat colours, system fonts
   only, so the pages make no third-party requests, like the game. */
:root {
  --bg: #F7F2E7; --band: #EDE6D4; --card: #FCFAF4; --fg: #2B3A2E; --muted: #5E6A5F;
  --border: #E3DCCB; --accent: #3F6A44; --sage: #7FA77E; --wood: #A88B64;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans KR", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1C211D; --band: #252B26; --card: #2B322C; --fg: #EEF1EA; --muted: #AEB8AC;
    --border: #39413A; --accent: #A9CBA6; --sage: #7FA77E; --wood: #C4A77F; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--round); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

header { padding-top: max(18px, env(safe-area-inset-top, 0px)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 6px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px rgba(40,60,40,.18); }
.nav .right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav nav { display: flex; gap: 18px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--fg); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--band); }
.langs button { border: 0; background: none; color: var(--muted); font: 700 13px var(--round); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(40,60,40,.15); }
.langs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-block: 44px 44px; }
.hero > * { min-width: 0; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 5.8vw, 64px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 18px; text-wrap: balance; }
html[lang="zh-Hant"] .hero h1, html[lang="ja"] .hero h1, html[lang="ko"] .hero h1 { word-break: keep-all; letter-spacing: 0; line-height: 1.2; font-size: clamp(34px, 5vw, 54px); }
.hero .lede { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 36ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--sage); color: #1E3322; text-decoration: none; min-width: 190px; }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; letter-spacing: .3px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; }
.promise { font-size: 14px; color: var(--muted); margin: 0; }
.promise b { color: var(--fg); }
.nw { white-space: nowrap; }
.scene img { border-radius: 24px; border: 8px solid var(--card); box-shadow: 0 24px 50px rgba(40,60,40,.2); transform: rotate(-1.5deg); }

.strip { background: var(--band); }
.strip ul { list-style: none; margin: 0 auto; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-weight: 700; font-size: 15px; }
.strip li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

.days { padding-block: 72px 24px; }
.days h2, .cta h2 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; text-align: center; margin: 0 0 8px; text-wrap: balance; }
.days .sub { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 48ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { min-width: 0; }
.phone { border-radius: 28px; padding: 7px; background: #1F2420; box-shadow: 0 16px 34px rgba(40,60,40,.2); margin-bottom: 16px; }
.phone img { border-radius: 22px; aspect-ratio: 660 / 1434; object-fit: cover; width: 100%; }
.step .when { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.step h3 { font-weight: 800; font-size: 20px; line-height: 1.25; margin: 4px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.cta { text-align: center; padding-block: 40px 72px; }
.cta p { color: var(--muted); margin: 0 auto; max-width: 44ch; }

footer { border-top: 1px solid var(--border); padding-top: 26px; padding-bottom: max(30px, env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Privacy and support */
.doc { max-width: 720px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); }
.doc h1 { font-weight: 900; font-size: 34px; line-height: 1.2; margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 19px; margin: 36px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.doc .contact { display: inline-block; margin-top: 4px; padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 10px; font-weight: 700; background: var(--card); text-decoration: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
}
@media (max-width: 460px) {
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .nav nav { display: none; }
}

/* Korean breaks between words, not inside them. */
html[lang="ko"] body { word-break: keep-all; }
