:root {
  color-scheme: dark;
  --background: #0d101c;
  --foreground: #f7f7ff;
  --muted: #bdc2d8;
  --blue: #adc1ff;
  --violet: #bdb3ff;
  --line: #353a51;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.65;
  word-break: keep-all;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
em { font-style: normal; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(70rem, calc(100% - clamp(2rem, 10vw, 8rem)));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .6em 1em;
  background: var(--background);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }

.masthead-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.masthead-inner { min-height: 4.625rem; }
.brand img { width: clamp(6rem, 12vw, 8rem); height: auto; }
nav { display: flex; gap: 1rem clamp(1rem, 4vw, 2.25rem); flex-wrap: wrap; }
.masthead nav { align-items: center; column-gap: clamp(.65rem, 3vw, 1.5rem); }
.language-links { display: flex; align-items: center; gap: .55rem; padding-inline-start: .65rem; border-inline-start: 1px solid var(--line); }
.language-links a { font-size: .875rem; white-space: nowrap; }
.language-links [aria-current="page"] { color: var(--foreground); font-weight: 750; }

nav a {
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  padding-block: .5em;
}

nav a:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: .25em; }

.studio { padding-block: clamp(3.75rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); }

.eyebrow {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.studio h1 {
  margin-top: .85rem;
  font-size: clamp(3.15rem, 9.1vw, 7.5rem);
  font-weight: 820;
  letter-spacing: -.085em;
  line-height: 1.02;
}

.studio h1 em { color: var(--blue); }
html[lang="ja"] { word-break: normal; }
html[lang="ja"] .studio h1 { font-size: clamp(2.25rem, 7.4vw, 6rem); letter-spacing: -.065em; }

.intro {
  margin-top: 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.games-title {
  margin-bottom: clamp(1.35rem, 4vw, 2.5rem);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -.065em;
  line-height: 1.1;
}

.feature {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #171a2b;
}

.feature-copy { padding: clamp(1.6rem, 5vw, 4rem); align-self: center; }
.feature-copy .eyebrow { color: var(--violet); letter-spacing: .08em; }

.feature h3 {
  margin-top: .4rem;
  font-size: clamp(2.125rem, 5.3vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: 1.07;
}

.feature h3 em { color: var(--violet); }

.feature + .feature {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.feature-lost-alien { --violet: #8ee3ce; }

.feature-lost-alien .feature-art {
  background:
    repeating-linear-gradient(90deg, transparent 0 3.99rem, #ffffff09 4rem 4.06rem),
    radial-gradient(ellipse at 50% 52%, #305654 0%, #203337 53%, #121b28 100%);
}

.feature-lost-alien .feature-art img { border-color: #688c8a; }

.pitch {
  margin-block: 1.4rem .65rem;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.18;
}

.description { max-width: 25rem; color: var(--muted); }

.example {
  width: fit-content;
  margin-top: 1.7rem;
  padding: .8rem 1rem .95rem;
  background: #101320;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.example p { color: var(--muted); font-size: .875rem; }
.example-row, .dice-pair { display: flex; align-items: center; gap: .45rem; }
.example-row { gap: .65rem; margin-top: .4rem; }
.equals { color: var(--muted); }
.solution { font-size: .9375rem; }
.solution strong { color: #ffd17d; }

.die {
  position: relative;
  display: block;
  width: 1.8rem;
  aspect-ratio: 1;
  border: 1px solid #ffd17d;
  border-radius: .35rem;
  color: #ffe4aa;
  background: #302619;
}

.die i {
  position: absolute;
  width: .25rem;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.die i:first-child { top: 28%; left: 28%; }
.die i:last-child { top: 72%; left: 72%; }

.feature-art {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  background:
    repeating-linear-gradient(90deg, transparent 0 3.99rem, #ffffff09 4rem 4.06rem),
    radial-gradient(ellipse at 50% 52%, #3a3159 0%, #201e38 53%, #121526 100%);
}

.feature-art img {
  width: min(100%, 16.5rem);
  height: auto;
  border: 1px solid #777191;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem #080812b3;
}

.footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: 1.3rem 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer small { font-size: .875rem; }

@media (max-width: 43rem) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { border-top: 1px solid var(--line); }
  .feature-art img { width: min(100%, 13rem); }
}

@media (max-width: 23rem) {
  .masthead-inner { padding-block: .65rem; }
  .studio h1 { font-size: 2.65rem; }
  .feature-copy { padding-inline: 1.1rem; }
}
