/* The pages of yugma.dsonix.com that are not the game: the home page (written by tools/make-home.js),
   the privacy policy and the support page. The game's own neutral look. No image files, no fonts to
   download, no scripts. */
:root { --bg: #f6f0e4; --bg-2: #ece2d0; --card: #fffdf8; --text: #2a2118; --muted: #6f6352; --accent: #8f600c; --gold: #d9a441; --line: rgba(70, 50, 20, .16); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #10131f; --bg-2: #181c2c; --card: #1a1e30; --text: #f3ecdf; --muted: #bba78f; --accent: #e3b04b; --gold: #e3b04b; --line: rgba(255, 220, 160, .14); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 56px; }
header.top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
header.top a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: 20px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14.5px; }
header.top nav a { padding: 10px 2px; } /* tall enough to tap */
.mark { width: 44px; height: 44px; flex: none; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
p, li { color: var(--muted); }
p strong, li strong { color: var(--text); }
ul { padding-left: 22px; }
.updated { margin: 0 0 22px; font-size: 14px; }
footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- the home page ---------- */
.wrap.wide { max-width: 980px; }
.home h2 { font-size: 22px; margin: 54px 0 14px; border: 0; padding: 0; text-align: center; }
.home section > p { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero { text-align: center; padding: 10px 0 6px; }
.hero h1 { margin: 14px 0 0; font-size: 56px; letter-spacing: .12em; color: var(--accent); line-height: 1.1; }
.hero .sub { margin: 4px auto 0; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hero .lead { max-width: 560px; margin: 18px auto 0; font-size: 19px; line-height: 1.55; color: var(--text); }
.tile { display: block; width: 64px; height: auto; aspect-ratio: 3 / 4; border-radius: 8px; box-shadow: 0 3px 0 rgba(120, 96, 50, .55), 0 10px 22px rgba(60, 40, 10, .18); }
/* five tiles, one from each theme, spread like a hand of cards */
.fan { display: flex; justify-content: center; padding: 18px 0 30px; }
.fan .tile { width: 92px; margin: 0 -9px; }
.fan .tile:nth-child(1) { rotate: -14deg; translate: 0 16px; }
.fan .tile:nth-child(2) { rotate: -7deg; translate: 0 4px; }
.fan .tile:nth-child(3) { z-index: 1; }
.fan .tile:nth-child(4) { rotate: 7deg; translate: 0 4px; }
.fan .tile:nth-child(5) { rotate: 14deg; translate: 0 16px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.button { display: inline-grid; justify-items: center; min-width: 210px; padding: 13px 26px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 18px;
  color: var(--text); background: var(--card); border: 1px solid var(--line); }
.button small { font-weight: 500; font-size: 12.5px; opacity: .8; }
.button.primary { color: #2a1c05; background: linear-gradient(180deg, #f3cf7a, #d9a441); border-color: transparent; box-shadow: 0 8px 24px rgba(217, 164, 65, .3); }
.button:focus-visible, .store:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.cards b { display: block; margin-bottom: 3px; color: var(--text); }
.cards span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.themes li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.themes .tiles { display: flex; gap: 6px; flex: none; }
.themes .tile { width: 40px; border-radius: 6px; box-shadow: 0 2px 0 rgba(120, 96, 50, .55); }
.themes .about { display: grid; gap: 1px; min-width: 0; }
.themes .about b { color: var(--text); font-size: 17px; }
.themes .about span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.themes .about i { justify-self: start; margin-top: 5px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--accent); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.steps { max-width: 640px; margin: 0 auto; padding-left: 24px; }
.steps li { margin-bottom: 10px; }
.steps b { color: var(--text); }
.download { text-align: center; margin-top: 54px; padding: 8px 20px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.download h2 { margin-top: 26px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.store { display: inline-grid; justify-items: start; min-width: 190px; padding: 9px 22px; border-radius: 13px; text-decoration: none; text-align: left; line-height: 1.25;
  color: #fff; background: #17120c; border: 1px solid #17120c; }
.store small { font-size: 11.5px; opacity: .85; }
.store b { font-size: 19px; letter-spacing: .01em; }
.store.soon { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.download .fine { font-size: 13.5px; margin: 10px auto 20px; }
@media (prefers-color-scheme: dark) { .store { background: #f3ecdf; border-color: #f3ecdf; color: #17120c; } .store.soon { background: transparent; color: var(--muted); border-color: var(--line); } }
@media (max-width: 520px) {
  .hero h1 { font-size: 44px; }
  .fan .tile { width: 66px; margin: 0 -7px; }
  .button { min-width: 0; width: 100%; }
  .themes li { gap: 12px; padding: 12px; }
  .themes .tile { width: 34px; }
}
