:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg-strong: #111;
  --fg: #222;
  --fg-body: #555;
  --fg-intro: #666;
  --fg-nav: #777;
  --fg-muted: #999;
  --fg-faint: #b0b0b0;
  --fg-faintest: #c4c4c4;
  --line: #eee;
  --line-pill: #e5e5e5;
  --underline: #ccc;
  --selection: #e7e7e7;
  --icon-ring: rgba(0, 0, 0, 0.06);
  --icon-shadow: rgba(0, 0, 0, 0.08);
  --tile-ring: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* Follows the system setting. Soft charcoal rather than pure black. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1c1f;
    --fg-strong: #f3f4f5;
    --fg: #e6e7e9;
    --fg-body: #b8babd;
    --fg-intro: #a9abaf;
    --fg-nav: #9a9ca0;
    --fg-muted: #84878b;
    --fg-faint: #6c6f73;
    --fg-faintest: #5a5d61;
    --line: #2c2e32;
    --line-pill: #3a3c41;
    --underline: #55585d;
    --selection: #3a3c41;
    --icon-ring: rgba(255, 255, 255, 0.08);
    --icon-shadow: rgba(0, 0, 0, 0.35);
    --tile-ring: rgba(255, 255, 255, 0.14);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
::selection { background: var(--selection); }

.page {
  width: min(760px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--fg-strong);
}

.logo img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 21.875%; /* matches the tile's rx 7/32 */
  box-shadow: 0 0 0 1px var(--tile-ring);
}

nav { display: flex; gap: 28px; font-size: 14px; color: var(--fg-nav); }
nav a:hover { color: var(--fg); }

main { padding: 96px 0 120px; }

.intro h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1.3px;
}

.intro p {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-intro);
}

.intro .en { margin-top: 6px; font-size: 14px; color: var(--fg-muted); }

.en { color: var(--fg-muted); }

section + section { margin-top: 88px; }

h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg-muted);
}

h2 span { margin-left: 4px; color: var(--fg-faintest); }

.games { list-style: none; margin: 0; padding: 0; }

.game {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.game:last-child { border-bottom: 0; }

.game img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--icon-ring), 0 6px 18px var(--icon-shadow);
}

.game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 4px;
}

.game h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.title-en {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-body);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5a524;
}

.game p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-body);
}

.game .en { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--fg-muted); }
.game .meta { margin-top: 10px; font-size: 13px; color: var(--fg-muted); }

#contact p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-body); }

.email {
  font-size: 17px;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 5px;
}

.email:hover { text-decoration-color: var(--fg); }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-nav);
}

.company { color: var(--fg-muted); }
.company p { margin: 0; }
.company .en { margin-top: 6px; font-size: 11px; color: var(--fg-faint); }

.footer-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}


@media (max-width: 600px) {
  .page { width: calc(100% - 48px); }
  header { padding-top: 28px; padding-bottom: 24px; gap: 16px; }
  .logo { font-size: 19px; gap: 10px; }
  .logo img { width: 40px; height: 40px; }
  nav { gap: 20px; font-size: 13px; }
  main { padding: 64px 0 88px; }
  .intro h1 { font-size: 32px; letter-spacing: -1px; }
  .intro p { font-size: 16px; }
  section + section { margin-top: 64px; }
  .game { grid-template-columns: 72px 1fr; gap: 18px; padding: 28px 0; }
  .game img { width: 72px; height: 72px; border-radius: 16px; }
  .game-head { padding-top: 0; flex-direction: column; align-items: flex-start; }
  .game h3 { font-size: 18px; }
  .title-en { display: block; margin: 2px 0 0; font-size: 13px; }
  .game p { font-size: 14px; }
  footer { padding-bottom: 24px; font-size: 11px; }
}
