/* Player Zero — one stylesheet for every generated page.
   Appearance follows the OS unless the visitor picks Light or Dark (data-theme). */

:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --surface: #fbfaf7;
  --surface-2: #ebe7df;
  --ink: #18150f;
  --muted: #5b554b;
  --line: #d8d2c6;
  --rule: #18150f;
  --accent: #2a55d6;
  --accent-ink: #ffffff;
  --status: #c8891a;

  /* The KEYCERTO stage stays dark in both themes, like its key art. */
  --keycerto-bg: #0b0907;
  --keycerto-ink: #f3ede2;
  --keycerto-muted: #b9ae9b;
  --keycerto-line: #2e271e;
  --keycerto-accent: #d8b66c;
  --keycerto-accent-ink: #15100a;

  --meloom-bg: #f4ecdd;
  --meloom-ink: #2a2219;
  --meloom-muted: #655746;
  --meloom-line: #ddcfb7;
  --meloom-accent: #2d5694;
  --meloom-accent-ink: #ffffff;

  --page: 1200px;
  --gutter: 40px;
  --radius: 4px;
  --sans: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
}
/* Han characters need a font for their own language, or Japanese and Chinese render in Korean glyph forms. */
:lang(ja) { --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(zh-TW) { --sans: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12100e;
    --surface: #1a1714;
    --surface-2: #221e1a;
    --ink: #ece6dc;
    --muted: #a89f91;
    --line: #2e2923;
    --rule: #ece6dc;
    --accent: #8fa8ff;
    --accent-ink: #12100e;
    --status: #e0a73a;
    --meloom-bg: #1d1b25;
    --meloom-ink: #f1ebe1;
    --meloom-muted: #bdb4a7;
    --meloom-line: #36323f;
    --meloom-accent: #a9c6f2;
    --meloom-accent-ink: #121722;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12100e;
  --surface: #1a1714;
  --surface-2: #221e1a;
  --ink: #ece6dc;
  --muted: #a89f91;
  --line: #2e2923;
  --rule: #ece6dc;
  --accent: #8fa8ff;
  --accent-ink: #12100e;
  --status: #e0a73a;
  --meloom-bg: #1d1b25;
  --meloom-ink: #f1ebe1;
  --meloom-muted: #bdb4a7;
  --meloom-line: #36323f;
  --meloom-accent: #a9c6f2;
  --meloom-accent-ink: #121722;
}

/* Tone: the palette a section speaks in. Products carry their own. */
:root,
.tone {
  --t-bg: var(--surface-2);
  --t-ink: var(--ink);
  --t-muted: var(--muted);
  --t-line: var(--line);
  --t-accent: var(--accent);
  --t-accent-ink: var(--accent-ink);
  --t-display: var(--sans);
}
.tone { background: var(--t-bg); color: var(--t-ink); }
.tone-keycerto {
  --t-bg: var(--keycerto-bg);
  --t-ink: var(--keycerto-ink);
  --t-muted: var(--keycerto-muted);
  --t-line: var(--keycerto-line);
  --t-accent: var(--keycerto-accent);
  --t-accent-ink: var(--keycerto-accent-ink);
  --t-display: var(--serif);
  color-scheme: dark;
}
.tone-meloom {
  --t-bg: var(--meloom-bg);
  --t-ink: var(--meloom-ink);
  --t-muted: var(--meloom-muted);
  --t-line: var(--meloom-line);
  --t-accent: var(--meloom-accent);
  --t-accent-ink: var(--meloom-accent-ink);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body:lang(ko) { word-break: keep-all; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--t-accent); }
:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; }
::selection { background: var(--t-accent); color: var(--t-accent-ink); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--bg); }

.page { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 32px; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* -------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: calc(var(--page) + 2 * var(--gutter));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}
/* Each appearance shows its own approved original, unaltered: never a tile, filter or recolour. */
.brand { flex: none; display: block; line-height: 0; }
.brand img { width: auto; height: 48px; }
.brand .brand-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .brand-light { display: none; }
  :root:not([data-theme="light"]) .brand .brand-dark { display: block; }
}
:root[data-theme="dark"] .brand .brand-light { display: none; }
:root[data-theme="dark"] .brand .brand-dark { display: block; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-settings { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.setting-label { font-size: 13px; color: var(--muted); }
#appearance {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 8px; min-height: 34px; cursor: pointer;
}
#appearance option { background: var(--surface); color: var(--ink); }
/* One compact language menu: the current language shows, the others open below it as plain links. */
.lang-menu { position: relative; margin-left: 6px; font-size: 14px; }
.lang-menu summary {
  display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; list-style: none; white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; margin-top: -4px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lang-menu[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface-2); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 6;
  min-width: 11rem; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgb(0 0 0 / .14);
}
.lang-menu li a, .lang-menu li span { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 2px; color: var(--ink); text-decoration: none; white-space: nowrap; font-family: var(--sans); }
.lang-menu li a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu [aria-current] { font-weight: 600; }
.lang-menu [aria-current]::after { content: "\2713"; color: var(--accent); }

/* -------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 40px;
}
.footer-copy { margin: 0; }
.footer-links { position: relative; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Several accounts share one footer menu. It opens upward, anchored to the footer links, so it never runs off the page. */
.social-menu summary { display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer; list-style: none; }
.social-menu summary::-webkit-details-marker { display: none; }
.social-menu summary::after { content: "+"; color: var(--accent); }
.social-menu[open] summary { color: var(--ink); }
.social-menu[open] summary::after { content: "\2212"; }
.social-menu summary:hover { color: var(--ink); }
.social-menu ul {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5;
  min-width: 12rem; max-width: 100%; max-height: 60vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgb(0 0 0 / .14);
}
.social-menu li a { display: block; padding: 8px 12px; border-radius: 2px; color: var(--ink); white-space: nowrap; }
.social-menu li a:hover { background: var(--surface-2); text-decoration: none; }

/* ------------------------------------------------------------- shared */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--t-accent); border-radius: var(--radius);
  background: var(--t-accent); color: var(--t-accent-ink);
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: filter .15s, background-color .15s, color .15s;
}
.button:hover { color: var(--t-accent-ink); filter: brightness(1.08); }
.button-secondary { background: transparent; color: var(--t-ink); border-color: var(--t-line); border-color: color-mix(in srgb, var(--t-ink) 32%, transparent); }
.button-secondary:hover { color: var(--t-ink); background: color-mix(in srgb, var(--t-ink) 8%, transparent); filter: none; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--t-line); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .3em; overflow-wrap: anywhere; }
.text-link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; font-size: 14px; color: var(--t-muted); }
.meta .status { display: inline-flex; align-items: center; gap: 7px; color: var(--t-ink); }
.meta .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-accent); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; border-top: 1px solid var(--t-line); }
.facts div { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--t-line); }
.facts dt { font-size: 13px; color: var(--t-muted); }
.facts dd { margin: 0; font-weight: 600; }

.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0; }
.body-copy p { max-width: 40em; font-size: 17px; line-height: 1.75; }
.body-copy p:last-child { margin-bottom: 0; }
.placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 32px; font-weight: 700; }
.notice { padding: 14px 16px; margin: 0 0 28px; border-left: 2px solid var(--t-accent); background: color-mix(in srgb, var(--t-ink) 6%, transparent); font-size: 14px; }
/* Official accounts by platform name only, one short row however many there are. */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.social-links a { font-weight: 600; }

.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channels li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.channel-label { grid-row: span 2; padding-top: 2px; font-size: 14px; color: var(--muted); }
.channels a { font-size: 17px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.channels a:hover { color: inherit; text-decoration: underline; }
.channel-note { font-size: 13.5px; color: var(--muted); }

.contact-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 56px; padding: 44px 0 56px; border-top: 1px solid var(--line); }
.contact-block h2 { font-size: 20px; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- home */

/* Featured product: copy aligned to the page grid, key art bleeding to the right edge. */
.feature {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--page) * .42))
    [art-start] minmax(0, calc(var(--page) * .58))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  border-bottom: 1px solid var(--t-line);
  overflow: hidden;
}
.feature-copy { grid-column: content-start / art-start; grid-row: 1; align-self: center; padding: 32px 48px 32px 0; }
.feature-plain .feature-copy { grid-column: content-start / content-end; padding: 44px 0 48px; max-width: 40rem; }
.feature-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--t-accent); }
.feature-name { font-family: var(--t-display); font-size: clamp(44px, 4.4vw, 62px); font-weight: 400; line-height: 1; letter-spacing: .06em; margin: 0 0 14px; }
.feature-summary { margin: 0; font-size: 20px; line-height: 1.45; }
.feature-tagline { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--t-muted); max-width: 30em; }
.feature-facts { margin: 20px 0 0; max-width: 30em; font-size: 14px; line-height: 1.55; }
.feature-facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--t-line); }
.feature-facts div:last-child { border-bottom: 1px solid var(--t-line); }
.feature-facts dt { color: var(--t-muted); }
.feature-facts dd { margin: 0; }
.feature-copy .button { margin-top: 22px; background: transparent; color: var(--t-ink); }
.feature-copy .button:hover { background: var(--t-accent); color: var(--t-accent-ink); filter: none; }
.feature-art { grid-column: art-start / full-end; grid-row: 1; align-self: center; position: relative; }
.feature-art img { width: 100%; max-height: 620px; object-fit: cover; object-position: 0 38%; }
/* Soft edges let the art sit in the stage instead of on it. */
.feature-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--t-bg) 0, transparent 28px),
    linear-gradient(180deg, var(--t-bg) 0, transparent 24px, transparent calc(100% - 32px), var(--t-bg) 100%);
}

.lineup { padding-top: 26px; padding-bottom: 56px; }
.lineup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--rule); }
.lineup-head h2 { font-size: 18px; line-height: 28px; letter-spacing: -.01em; }
.lineup-head .text-link { font-size: 14px; }
.lineup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.lineup-item a { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 20px; align-items: center; height: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lineup-item a:hover { color: inherit; }
.lineup-item a:hover .lineup-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.lineup-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--surface-2); }
.lineup-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lineup-item a:hover .lineup-art img { transform: scale(1.03); }
.lineup-initial { display: grid; place-items: center; height: 100%; font-size: 28px; font-weight: 700; color: var(--muted); }
.lineup-text { min-width: 0; }
.lineup-kind { margin: 0; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lineup-name { margin-top: 2px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.lineup-summary { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.lineup-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.lineup-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.lineup-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status); }
.lineup-status.status-released::before { background: #3f9b5b; }
.lineup-empty { padding: 20px 0; margin: 0; }

.company { border-top: 1px solid var(--line); }
.company-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; padding-top: 44px; padding-bottom: 56px; }
.company h2 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 14px; }
.company-about p { font-size: 17px; line-height: 1.7; max-width: 30em; margin-bottom: 14px; }

/* -------------------------------------------------- products & about */

.page-intro { padding: 56px 0 36px; max-width: 46rem; }
.page-intro h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; }

.catalog { margin-bottom: 8px; border-top: 2px solid var(--rule); }
.catalog-item {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.catalog-item:last-child { border-bottom: 0; }
.catalog-art { display: block; overflow: hidden; border-radius: 2px; background: var(--surface-2); }
.catalog-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.catalog-summary { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.catalog-copy h2 { font-size: 38px; line-height: 1.05; margin-bottom: 10px; }
.catalog-copy h2 a { text-decoration: none; }
.catalog-tagline { font-size: 19px; line-height: 1.45; margin-bottom: 18px; }
.catalog-copy .body-copy p { font-size: 15.5px; color: var(--muted); }
.catalog-copy .facts { margin: 22px 0 24px; }

.about-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px 64px; padding-bottom: 56px; }
.about-facts { margin: 0; border-top: 1px solid var(--line); align-self: start; }
.about-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--muted); font-size: 14px; }
.about-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.about-onward { margin: 32px 0 0; }

.support-social { margin-top: 4px; }
.support-social .social-links { font-size: 17px; }

/* -------------------------------------------------------------- detail */

.product-hero { padding: 28px 0 64px; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; font-size: 14px; color: var(--t-muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.product-hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.product-summary { margin-bottom: 12px; font-size: 15px; color: var(--t-muted); }
.product-hero h1 { font-family: var(--t-display); font-size: clamp(50px, 7.4vw, 100px); line-height: .98; letter-spacing: -.03em; margin-bottom: 20px; }
.product-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; margin: 0; max-width: 24em; }
.product-hero-side .facts { margin-bottom: 24px; }
.hero-media video, .hero-media img { width: 100%; border-radius: var(--radius); background: #000; }
.hero-media video { aspect-ratio: 16 / 9; }
.hero-art img { aspect-ratio: 12 / 5; object-fit: cover; background: var(--t-bg); }
.hero-media figcaption { margin-top: 12px; font-size: 14px; color: var(--t-muted); }

.block { padding: 64px 0; border-top: 1px solid var(--line); }
.product-hero + .wrap > .block:first-child { border-top: 0; }
.block > h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.025em; margin-bottom: 28px; }
.block-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 56px; }
.block-split > h2 { margin: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.mode-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.mode-list:not(.mode-list-pictured) .mode { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mode h3 { font-size: 22px; margin-bottom: 8px; }
.mode p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feature-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-list h3 { font-size: 19px; margin-bottom: 8px; }
.feature-list p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.gallery img { width: 100%; border-radius: var(--radius); }
/* Phone screenshots keep one size however many there are, and wrap rather than squeeze. */
.gallery-portrait { grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); }
.gallery-portrait img { aspect-ratio: 9 / 16; object-fit: cover; border: 4px solid #1a1816; border-radius: 22px; }
.gallery a { display: block; }
.gallery figcaption { margin-top: 10px; font-size: 14px; text-align: center; color: var(--muted); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; font-size: 22px; font-weight: 400; line-height: 1.1; color: var(--accent); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0; padding: 0 40px 20px 0; color: var(--muted); }

.product-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; }
.product-contact h2 { font-size: 24px; }

/* ------------------------------------------------------------- support */

.support-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 64px; padding-bottom: 56px; }
.support-mail .muted { margin-bottom: 4px; font-size: 14px; }
.support-mail > a { display: inline-block; margin-bottom: 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.support-mail > a:hover { color: inherit; text-decoration: underline; }
.support-mail p:last-child { color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; align-content: start; }
.support-product { padding: 18px 0 22px; border-top: 2px solid var(--rule); scroll-margin-top: 24px; }
.support-product h2 { font-size: 22px; margin-bottom: 6px; }
.support-product p { color: var(--muted); font-size: 15px; }
.link-stack { display: grid; justify-items: start; gap: 8px; }
.support-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 64px; padding: 44px 0 64px; border-top: 1px solid var(--line); }
.support-notes h2 { font-size: 20px; letter-spacing: -.01em; }
.support-notes p { color: var(--muted); }
.checklist { margin: 0; padding-left: 1.2em; }
.checklist li { margin: 6px 0; }

/* --------------------------------------- pages written by tool/build.py */

.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.03em; margin-bottom: 14px; }
.page-head .lead { font-size: 18px; }
.page-head .notice { margin: 20px 0 0; max-width: 46rem; }
.section { margin: 32px 0; }
.section > h2 { font-size: 22px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.link-list { padding-left: 22px; }
.link-list li { margin: 8px 0; }
.prose { max-width: 760px; padding: 16px 0 56px; }
.prose h1 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.8; }
.prose a { overflow-wrap: anywhere; }
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); }
.page > .crumb { margin: 32px 0 0; }
.hero { padding: 80px 0 100px; text-align: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.hero .lead { margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.card-link { display: block; padding-bottom: 20px; text-decoration: none; }
.card-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.card-link h3, .card-link p, .card-meta { margin-left: 20px; margin-right: 20px; }
.card-meta { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; }
.product { margin: 40px 0; }
.game-stage { position: relative; aspect-ratio: var(--game-ratio, 16 / 9); background: #111; border-radius: var(--radius); overflow: hidden; }
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------- product accents */

.lineup-keycerto .lineup-name, .catalog-keycerto h2 { font-family: var(--serif); letter-spacing: .05em; font-weight: 600; }
.lineup-keycerto .lineup-art, .catalog-keycerto .catalog-art { background: var(--keycerto-bg); }
.lineup-meloom .lineup-art, .catalog-meloom .catalog-art { background: #f6efdf; }
.tone-keycerto h1 { letter-spacing: .04em; font-weight: 600; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .lineup-item a { grid-template-columns: 152px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .header-inner { gap: 24px; }
  .setting-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .catalog-item { grid-template-columns: 1fr; }
  .product-hero-top { grid-template-columns: 1fr; align-items: start; }
  .about-body, .support-main, .support-notes, .company-inner, .contact-block { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .feature { grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; }
  .feature-art { grid-column: full-start / full-end; grid-row: 1; }
  .feature-art img { max-height: none; }
  .feature-art::after { background: linear-gradient(180deg, transparent calc(100% - 40px), var(--t-bg) 100%); }
  .feature-copy, .feature-plain .feature-copy { grid-column: content-start / content-end; grid-row: 2; padding: 20px 0 32px; }
  .feature-plain .feature-copy { grid-row: 1; padding-top: 36px; }
  .lineup-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; padding-bottom: 0; }
  .brand img { height: 42px; }
  .site-settings { gap: 8px; }
  .lang-menu { margin-left: 0; }
  .site-nav { order: 3; flex: 1 0 100%; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); overflow-x: auto; }
  .site-nav a { padding: 11px 12px; font-size: 14.5px; }
  .site-nav a:first-child { padding-left: 0; }
  .feature-name { font-size: clamp(38px, 11vw, 48px); }
  .feature-summary { font-size: 18px; }
  .feature-tagline { font-size: 15px; }
  .feature-facts { font-size: 13.5px; }
  .feature-facts div { grid-template-columns: 6.5em minmax(0, 1fr); }
  .lineup { padding-top: 24px; padding-bottom: 44px; }
  .lineup-item a { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .lineup-name { font-size: 18px; }
  .lineup-summary { font-size: 14px; }
  .company-inner { padding-top: 36px; padding-bottom: 44px; gap: 36px; }
  .channels li { grid-template-columns: 1fr; }
  .channel-label { grid-row: auto; padding: 0; font-size: 13px; }
  .actions .button { flex: 1 1 auto; }
  .catalog-item { padding: 28px 0; }
  .catalog-copy h2 { font-size: 32px; }
  .page-intro { padding: 36px 0 28px; }
  .product-hero { padding-bottom: 44px; }
  .crumb { margin-bottom: 28px; }
  .product-hero-top { margin-bottom: 28px; gap: 24px; }
  .block { padding: 44px 0; }
  .block-split { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .gallery-portrait img { border-width: 3px; border-radius: 14px; }
  .gallery figcaption { font-size: 12.5px; }
  .mode-list-pictured { gap: 24px; }
  .about-facts div { grid-template-columns: 100px minmax(0, 1fr); }
  .footer-inner { flex-direction: column; padding-top: 20px; }
  .social-menu ul { right: auto; left: 0; }
}

@media (max-width: 370px) {
  .brand img { height: 38px; }
  .site-nav a { padding: 11px 9px; font-size: 14px; }
  .lang-menu summary { padding: 5px 7px; gap: 6px; }
  #appearance { padding: 5px 4px; }
  .lineup-item a { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lineup-item a:hover .lineup-art img { transform: none; }
}

/* Genuine app views, kept separate so every country can be inspected. */
.country-showcase { padding-top: 36px; padding-bottom: 40px; }
.country-showcase header { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.country-showcase header > div:first-child { max-width:760px; }
.country-kicker { font-size:14px; font-weight:700; letter-spacing:.04em; margin:0 0 8px; }
.country-showcase h2 { font-size:clamp(24px,3vw,34px); margin-bottom:12px; }
.country-lead { margin:0; color:var(--t-muted); max-width:68ch; }
.home-country-showcase { border-top:1px solid var(--line); padding-bottom:48px; }
.country-grid { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
.country-grid li { min-width:0; }
.country-grid a { display:block; border:1px solid var(--t-line); border-radius:10px; overflow:hidden; background:var(--surface); }
.country-grid img { width:100%; height:auto; aspect-ratio:9/16; object-fit:contain; }
.country-grid figcaption { margin-top:10px; display:flex; flex-wrap:wrap; column-gap:8px; align-items:baseline; font-size:14px; }
.country-grid figcaption span { color:var(--t-muted); font-size:13px; }
.country-note { margin:16px 0 0; font-size:13px; color:var(--t-muted); }
.hero-country-showcase { padding-top:30px; padding-bottom:28px; }
.hero-country-showcase .country-kicker { display:none; }
.hero-country-showcase .country-lead { max-width:78ch; }
.overview-video { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; }
.overview-video h2 { margin-bottom:20px; }
.overview-video p { max-width:42ch; color:var(--muted); }
.overview-video figure { max-width:360px; }
.overview-video video { width:100%; height:auto; display:block; background:#111827; border-radius:6px; }
.overview-video figcaption { margin-top:12px; font-size:13px; color:var(--muted); }
@media(max-width:720px) {
 .country-showcase header { display:block; }
 .country-showcase header .actions { margin-top:20px; }
 .country-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; }
 .country-grid figcaption { display:block; }
 .country-grid figcaption span { display:block; }
 .overview-video { grid-template-columns:1fr; gap:24px; }
 .overview-video figure { max-width:360px; margin:auto; }
}

.lineup-country-art { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; width:100%; height:100%; }
.lineup-art .lineup-country-art img { object-fit:contain; }
