:root {
  color-scheme: dark;
  --paper: #171824;
  --ink: #f7f7fc;
  --muted: #bab9cc;
  --line: #39374e;
  --accent: #afaaff;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Noto Sans JP", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.homepage { width: min(100% - 96px, 1184px); margin-inline: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 31px; font-weight: 750; letter-spacing: -.065em; }
.brand img { width: 34px; height: 34px; display: block; }
.home-tools { display: flex; align-items: center; gap: 32px; }
.studio-shortcut { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.studio-shortcut:hover { text-decoration: underline; text-underline-offset: 5px; }
.language-options { display: flex; gap: 4px; align-items: center; }
.language-options a { display: inline-flex; min-height: 44px; min-width: 44px; padding: 10px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.language-options a[aria-current="true"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.language-options a:hover { color: var(--accent); }
.language-options a:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 110px 116px; }
.home-hero h1 { margin: 0; max-width: 11.8ch; font-size: clamp(52px, 5.7vw, 80px); font-weight: 650; line-height: 1.14; letter-spacing: -.06em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .home-hero h1 { font-size: clamp(42px, 4.7vw, 66px); max-width: 12ch; }
.intro { max-width: 460px; margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.availability { padding-left: 44px; border-left: 1px solid var(--line); min-width: 0; }
.availability h2 { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; font-weight: 500; }
.game-count { color: var(--accent); display: grid; min-width: 0; font-size: clamp(80px, 9.2vw, 132px); line-height: 1.3; font-weight: 450; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.game-count-total, .game-count-value { grid-area: 1 / 1; white-space: nowrap; }
.game-count-value[hidden] { display: none; }
.game-count.is-counting .game-count-total { opacity: 0; }
.availability p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; margin-bottom: 48px; background: #222232; color: #f7f7fc; }
.home-footer h2 { margin: 0; font-size: 24px; font-weight: 550; letter-spacing: -.04em; line-height: 1.5; }
.home-footer p { max-width: 530px; margin: 9px 0 0; color: #bab9cc; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.developer-link { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid #747586; padding: 10px 20px; border-radius: 3px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.developer-link:hover { background: #f7f7fc; color: #222232; }
@media (max-width: 960px) {
  .homepage { width: calc(100% - 64px); }
  .home-hero { gap: 32px; padding-block: 80px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .availability { padding-left: 28px; }
  .home-footer { padding: 32px; }
  .home-footer h2 { font-size: 22px; }
}
@media (max-width: 680px) {
  .homepage { width: calc(100% - 40px); }
  .home-header { min-height: 90px; gap: 12px; }
  .brand { font-size: 27px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .studio-shortcut { display: none; }
  .language-options { gap: 0; }
  .language-options a { font-size: 12px; padding-inline: 8px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 56px 48px; }
  .home-hero h1 { font-size: clamp(42px, 11.2vw, 66px); max-width: 12ch; }
  :lang(ja) .home-hero h1 { font-size: 40px; }
  .intro { margin-top: 24px; font-size: 16px; }
  .availability { padding: 24px 0 0; border-left: none; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; column-gap: 16px; }
  .availability h2 { grid-column: 1; }
  .game-count { grid-column: 2; grid-row: 1 / 3; font-size: clamp(52px, 15vw, 72px); }
  .availability p { grid-column: 1; margin-top: 6px; font-size: 13px; }
  .home-footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
  .home-footer h2 { font-size: 21px; }
  .home-footer p { font-size: 13px; }
}
@media (max-width: 359px) { .home-header { flex-wrap: wrap; padding-block: 20px; } }
.game-count[data-count-length="5"] { font-size: clamp(36px, 6vw, 88px); }
.game-count[data-count-length="6"], .game-count[data-count-length="7"] { font-size: clamp(28px, 4vw, 56px); }
.game-count[data-count-long="true"] { font-size: clamp(14px, 2vw, 28px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .availability { animation: home-enter 480ms ease-out both; }
  .availability { animation-delay: 90ms; }
  a { transition: color 160ms ease, background-color 160ms ease; }
}
@keyframes home-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.home-policy-links { display:flex; flex-wrap:wrap; gap:8px 24px; padding:20px 0; font-size:13px; }
.home-policy-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--muted,#b1afc2); text-decoration:underline; text-underline-offset:4px; }

/* The supplied master logo is displayed without recoloring or cropping. */
.hero-brand-logo { display:block; width:144px; height:144px; object-fit:contain; border-radius:20px; margin-bottom:28px; }
:lang(ko) .home-hero h1 { max-width: none; font-size:clamp(42px,5vw,64px); }
.brand img { width:48px; height:48px; object-fit:contain; border-radius:8px; }
@media(max-width:680px) { .hero-brand-logo { width:112px; height:112px; margin-bottom:24px; } .brand img { width:40px; height:40px; } }

.home-policy-links { flex-wrap:wrap; justify-content:center; }
.home-policy-links a[href^="mailto:"] { flex-basis:100%; justify-content:center; }
