:root {
  /* 3c「サンド × ネイビー × ライム」 */
  --ground: #F7F4EE;      /* sand */
  --ground-dot: #E2DCCF;
  --paper: #FFFFFF;
  --ink: #1F2638;
  --muted: #656578;
  --navy: #2B3A5C;
  --navy-dark: #1F2A45;
  --lime: #9CCB3B;
  --lime-tint: #D8EDA4;
  --coral: #E86A4A;        /* 朱印, stars, accents (graphics / large text) */
  --coral-ink: #C2502F;    /* coral that carries small white text (4.5:1) */
  --line: #E2DCCF;
  --tint: #EEE9DD;
  --sage: #A7B5AF;
  --coin: #F7D675;
  --coin-edge: #C9A227;
  --up: #3E8E41;
  --on-navy: #FFFFFF;
  --on-navy-soft: rgba(255, 255, 255, .85);
  --on-navy-faint: rgba(255, 255, 255, .3);
  --on-navy-glass: rgba(255, 255, 255, .1);
  --drop: rgba(0, 0, 0, .28);

  /* legacy names (minigames, share cards) mapped onto the palette */
  --red: var(--coral);
  --red-dark: #B9451E;
  --blue: var(--navy);
  --blue-dark: var(--navy-dark);
  --yellow: #FFC531;
  --yellow-dark: #D9A114;
  --green: var(--up);
  --green-dark: #2E6B31;
  --tint-yellow: #FFF2B8;
  --tint-red: #FBE1D9;
  --tint-blue: #DCE3EF;
  --tint-green: var(--lime-tint);
  --tint-purple: #EFE3FF;
  --tint-orange: #FFE8C2;
  --frame: var(--line);

  /* rarity plates (提供割合 marks, the 採用通知 badge): each carries white text at ≥ 4.5:1
     (UR 8.6, SSR 5.3, SR 11.3, R 5.3, N 5.7) — R is a darker green than --up (4.1:1) for that */
  --tier-ur: #5B3A8C;
  --tier-ssr: #B9451E;
  --tier-sr: var(--navy);
  --tier-r: #2F7A33;
  --tier-n: var(--muted);

  --radius-xl: 20px;
  --radius-l: 16px;
  --radius-m: 14px;
  --radius-s: 10px;
  --border: 2px solid var(--navy);
  --border-thick: 3px solid var(--navy);
  --lift: 0 4px 0 var(--navy);
  --lift-s: 0 3px 0 var(--navy);
  --lift-l: 0 6px 0 var(--navy);
  --lift-drop: 0 4px 0 var(--drop);
  --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 8px, rgba(255, 255, 255, .03) 8px 16px);
  --marker: linear-gradient(transparent 58%, var(--lime-tint) 58%);

  --font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', system-ui, sans-serif;
  --fs-caption: 12px;   /* never smaller */
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-lead: 17px;
  --fs-title: 26px;
  --fs-display: 40px;
  --fs-instruction: 44px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px;
  --target: 48px;
  --motion-fast: 80ms;
  --motion-focus: 140ms;
  --motion-page: 200ms;
  --app-max: 1240px;
  --side: 420px;
  /* Claude Design, 2026-10-26: muted country accents and quiet work rows. */
  --work-tint: #F2F4F8;
  --soft-lime: #EEF5DD;
  --country-jp: #5A6FA0; --country-us: #5F7DA6; --country-gb: #7A5E86;
  --country-de: #6F7378; --country-fr: #8C93C2; --country-it: #8EA05A;
  --country-ca: #CF8A58; --country-cn: #A34F60; --country-in: #D49B47; --country-br: #4F9E7E;
}

/* envelope-v2: creative country stationery, scoped to the pack and its letter. */
:root {
  --stationery-navy: var(--navy); --stationery-dark: var(--navy-dark);
  --stationery-seal: var(--red-dark); --stationery-ground: var(--ground); --stationery-tint: var(--tint);
}
.pack[data-country=us], .koufu[data-country=us] {
  --stationery-navy: #243D60;
  --stationery-dark: #172B46;
  --stationery-seal: #A45135;
  --stationery-ground: #F7F5EE;
  --stationery-tint: #E7E5D8;
}
.pack[data-country=cn], .koufu[data-country=cn] {
  --stationery-navy: #553E42;
  --stationery-dark: #38262A;
  --stationery-seal: #AD3E2D;
  --stationery-ground: #FBF5E9;
  --stationery-tint: #EFE1C8;
}
.pack[data-country=de], .koufu[data-country=de] {
  --stationery-navy: #354C49;
  --stationery-dark: #223532;
  --stationery-seal: #885821;
  --stationery-ground: #F3F4ED;
  --stationery-tint: #DEE5DA;
}
.pack[data-country=in], .koufu[data-country=in] {
  --stationery-navy: #35504D;
  --stationery-dark: #233C38;
  --stationery-seal: #925E2F;
  --stationery-ground: #FFF8E9;
  --stationery-tint: #EFE2C6;
}
.pack[data-country=gb], .koufu[data-country=gb] {
  --stationery-navy: #443E5D;
  --stationery-dark: #2B263E;
  --stationery-seal: #954B48;
  --stationery-ground: #F8F4EC;
  --stationery-tint: #E9DFD2;
}
.pack[data-country=fr], .koufu[data-country=fr] {
  --stationery-navy: #38526B;
  --stationery-dark: #233A50;
  --stationery-seal: #A55349;
  --stationery-ground: #FCF8F1;
  --stationery-tint: #ECE2D8;
}
.pack[data-country=it], .koufu[data-country=it] {
  --stationery-navy: #48564B;
  --stationery-dark: #2F3B32;
  --stationery-seal: #995331;
  --stationery-ground: #FBF5E9;
  --stationery-tint: #E9DFC9;
}
.pack[data-country=ca], .koufu[data-country=ca] {
  --stationery-navy: #3B5057;
  --stationery-dark: #273B42;
  --stationery-seal: #964C3E;
  --stationery-ground: #F7F6EF;
  --stationery-tint: #E0E5DE;
}
.pack[data-country=br], .koufu[data-country=br] {
  --stationery-navy: #315C52;
  --stationery-dark: #1D4138;
  --stationery-seal: #875D1E;
  --stationery-ground: #FCF7E8;
  --stationery-tint: #E8E3C7;
}

* { box-sizing: border-box; }
:root { color-scheme: light; font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(var(--ground-dot) 1.4px, transparent 1.4px) 0 0 / 22px 22px, var(--ground); }
a { color: var(--navy); text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
header, main, footer { width: min(100% - 40px, 880px); margin-inline: auto; }
header { position: relative; margin-block: 30px 22px; padding: 26px 34px 30px; border-radius: var(--radius-xl); color: var(--on-navy); background: var(--hatch), var(--navy); }
.back { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--on-navy-faint); border-radius: 99px; color: var(--on-navy); font-size: .875rem; font-weight: 700; text-decoration: none; }
header a:focus-visible { outline-color: var(--paper); }
.version { float: right; padding: 8px 0 8px 16px; color: var(--on-navy-soft); font-size: .75rem; font-variant-numeric: tabular-nums; }
.brand { margin: 30px 0 8px; font-size: 1.1rem; font-weight: 900; letter-spacing: .06em; }
.brand span { color: var(--lime); }
h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.5; font-weight: 900; }
.intro { margin: 10px 0 0; font-size: .9rem; color: var(--on-navy-soft); }
main { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { min-width: 0; padding: 26px 28px; border: var(--border); border-radius: var(--radius-l); background: var(--paper); }
.about-game, .updates { grid-column: 1 / -1; }
.author { grid-column: 1 / -1; }
h2 { display: table; margin: 0 0 18px; background: linear-gradient(transparent 62%, var(--lime-tint) 62%); font-size: 1rem; line-height: 1.55; font-weight: 900; }
.about-game p { margin: 0; font-size: .9rem; }
.author-name { margin: 0 0 18px; font-size: 1.3rem; font-weight: 900; }
.author-name span { display: inline-block; margin-left: 8px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.author-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.author-links a { display: grid; grid-template-columns: 1fr auto; padding: 12px 16px; border-radius: var(--radius-s); background: var(--ground); font-weight: 700; text-decoration: none; }
.author-links a:hover { background: var(--tint); }
.author-links a span { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; font-weight: 500; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; }
.release-version { padding: 2px 12px; border-radius: 99px; background: var(--lime-tint); font-size: .85rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.release-list p { margin: 0; font-size: .9rem; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 20px 30px; color: var(--muted); font-size: .75rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) {
  header, main, footer { width: calc(100% - 28px); }
  header { margin-top: 14px; padding: 18px 20px 24px; }
  .brand { margin-top: 24px; }
  .card { padding: 22px 20px; }
  .author-links { grid-template-columns: 1fr; }
  .author-name span { display: block; margin-left: 0; margin-top: 4px; }
}
