:root {
  color-scheme: light;
  --ink: #232122;
  --muted: #68686d;
  --line: #ded2bc;
  --paper: #fbf0dd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
main { flex: 1 0 auto; }
.header { height: 108px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
}
.brand img { object-fit: contain; }
.brand-symbol { width: 44px; height: 44px; }
.brand-wordmark { width: 164px; height: auto; }
.contact-link { font-size: 14px; padding-block: 10px; }
.contact-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.showcase {
  padding-top: 12px;
  /* On short screens the hero shrinks so the game picker stays in view. */
  width: min(100%, max(560px, calc((100vh - 270px) * 16 / 9)));
  width: min(100%, max(560px, calc((100svh - 270px) * 16 / 9)));
  margin-inline: auto;
}
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050b17;
  border-radius: 3px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 240ms ease;
}
.hero-slide.is-active { opacity: 1; }
.mesugaki-art {
  background-image: url("assets/mesugaki-logo.png"), url("assets/mesugaki-background.png");
  background-image:
    image-set(url("assets/mesugaki-logo.webp") type("image/webp"), url("assets/mesugaki-logo.png") type("image/png")),
    image-set(url("assets/mesugaki-background.webp") type("image/webp"), url("assets/mesugaki-background.png") type("image/png"));
  background-size: 220% auto;
  background-position: -4.57% -1.66%, left top;
  background-repeat: no-repeat;
}
.hero-status {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  border-radius: 2px;
  padding: 5px 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .6px;
}
.game-picker {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 30px 0 48px;
}
.game-choice {
  width: 200px;
  max-width: calc(50% - 12px);
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.thumbnail {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #050b17;
  border-radius: 2px;
  outline: 1px solid transparent;
  outline-offset: 4px;
  opacity: .58;
  transition: opacity 160ms ease, outline-color 160ms ease;
}
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.game-choice.is-active .thumbnail { opacity: 1; outline-color: var(--ink); }
.game-choice:hover .thumbnail { opacity: 1; }
.game-label { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.6; }
.coming-soon { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; letter-spacing: .7px; white-space: nowrap; }
.site-footer {
  display: grid;
  gap: 4px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row h2 { font-size: 14px; font-weight: 500; margin: 0; }
.email-address { padding: 5px 0; border: 0; background: none; font-size: 14px; overflow-wrap: anywhere; }
.footer-meta { font-size: 13px; }
.footer-meta p { margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { padding-block: 4px; }
.email-address:hover,
.footer-links a:hover,
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* EULA */
.legal { padding-block: 8px 88px; }
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.legal-kicker { margin: 0; font-size: 13px; letter-spacing: .6px; color: var(--muted); }
.legal-title { padding-block: 44px 36px; }
.legal-title h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.legal-meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; align-items: start; }
.toc { position: sticky; top: 28px; font-size: 13.5px; line-height: 1.5; }
.toc-title { margin: 0 0 10px; font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding-block: 4px; }
.toc a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-body { line-height: 1.8; }
.legal-body p { margin: 0 0 16px; }
.legal-body section { padding-top: 20px; scroll-margin-top: 24px; }
.legal-body h2 { margin: 16px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.legal-body h2 .num { display: inline-block; min-width: 1.7em; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.3em; }
.legal-body li { margin-bottom: 8px; }
.legal-body ol.alpha { padding-left: 0; list-style: none; counter-reset: alpha; }
.legal-body ol.alpha li { position: relative; padding-left: 2.2em; counter-increment: alpha; }
.legal-body ol.alpha li::before { content: "(" counter(alpha, lower-alpha) ")"; position: absolute; left: 0; color: var(--muted); }
.legal-body a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.game-choice:focus-visible { outline: 0; }
.game-choice:focus-visible .thumbnail { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 8px; padding: 10px; background: var(--ink); color: white; z-index: 20; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .legal-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 760px) {
  .legal-layout { display: block; }
  .toc { display: none; }
  .legal-title { padding-block: 32px 16px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header { height: 86px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-wordmark { width: 132px; height: auto; }
  .brand { font-size: 24px; }
  .contact-link { font-size: 14px; }
  .showcase { padding-top: 4px; }
  .hero-status { top: 10px; right: 10px; padding: 3px 7px; }
  .game-picker { gap: 18px; padding-block: 25px 36px; }
  .game-choice { width: 164px; max-width: calc(50% - 9px); }
  .game-label { margin-top: 10px; }
  .coming-soon { margin-top: 4px; }
  .site-footer { padding-block: 22px 30px; }
  .footer-row { align-items: flex-start; gap: 14px; }
  .footer-meta { align-items: center; }
  .footer-row h2 { padding-top: 5px; white-space: nowrap; }
  .email-address { text-align: right; }
  .legal { padding-bottom: 56px; }
  .legal-body h2 { font-size: 17px; }
}
@media print {
  .header, .site-footer, .legal-bar, .toc, .skip { display: none; }
  body { background: none; }
  .legal-layout { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
