
:root {
  color-scheme: light;
  --ink: #174753;
  --paper: #fbf7ea;
  --mint: #afe1db;
  --lime: #dcf65d;
  --coral: #ff8c70;
  --width: min(100% - 4rem, 1320px);
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #0d514a; outline-offset: 4px; }
.wrap { width: var(--width); margin-inline: auto; }
.skip { position: absolute; padding: 0.8rem 1rem; left: -120%; background: var(--paper); z-index: 5; }
.skip:focus { left: 1rem; top: 1rem; }
.mast { position: relative; z-index: 1; background: var(--mint); }
.mast nav, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { flex-shrink: 0; display: block; }
.brand img { width: clamp(6.7rem, 11vw, 9.4rem); }
.nav-links { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.7rem); }
.nav-links a, footer a { font-size: 1rem; font-weight: 750; text-decoration: none; }
.nav-links a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { background: var(--mint); overflow: hidden; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 12% 38% -41% -36%; background: #d0f0e9; border-radius: 50%; transform: rotate(-13deg); }
.hero-grid { min-height: clamp(570px, 54vw, 730px); display: grid; grid-template-columns: 0.94fr 1.06fr; align-items: center; gap: 2rem; padding-block: 1.8rem 3.8rem; }
.hero-copy { z-index: 1; }
h1, h2 { font-weight: 900; letter-spacing: -.056em; margin: 0; line-height: .99; text-wrap: balance; }
h1 { font-size: clamp(4.1rem, 8.4vw, 8.6rem); }
h1 em { color: #0d514a; font-style: normal; }
h2 { font-size: clamp(2.6rem, 5.5vw, 5.6rem); }
p { font-size: clamp(1.04rem, 1.5vw, 1.34rem); line-height: 1.45; }
.description { max-width: 33ch; margin: 1.45rem 0 1.6rem; font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: .75rem; border-radius: 1.05rem; padding: .85rem 1.2rem; border: 2px solid var(--ink); box-shadow: 0 4px var(--ink); font-size: 1.08rem; text-decoration: none; font-weight: 850; background: var(--lime); }
.button:hover { background: #e6f899; translate: 0 -2px; }
.button span { font-size: .88em; }
.launch { margin: 1.1rem 0 0; font-size: .94rem; font-weight: 700; }
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: clamp(.4rem, 1.15vw, 1rem);
  align-items: center;
}
.hero-board {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 4px solid var(--paper);
  border-radius: clamp(.9rem, 2vw, 1.9rem);
  box-shadow: 0 16px 30px #17475324;
}
.explorer {
  grid-row: 1;
  width: 100%;
  height: auto;
  align-self: end;
  margin-bottom: clamp(1rem, 4vw, 3.4rem);
  filter: drop-shadow(0 10px 8px #17475333);
}
.explorer.boy { grid-column: 1; }
.explorer.girl { grid-column: 3; }
.island-views {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 1rem;
  align-items: center;
  width: 100%;
}
.island-views .land {
  width: 100%;
  border: 4px solid var(--paper);
  border-radius: clamp(1rem, 2.2vw, 1.7rem);
  box-shadow: 0 14px 34px #17475324;
}
.section { padding: clamp(3.8rem, 9vw, 8rem) 0; scroll-margin-top: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7.5rem); }
.split p { max-width: 43ch; }
.play { background: var(--paper); }
.screens { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 1.3rem; }
.screens img { border: 5px solid #fffdf1; border-radius: 1.75rem; box-shadow: 0 14px 32px #10282729; rotate: -4deg; }
.screens img + img { rotate: 5deg; margin-top: 2rem; }
.trailer { background: #174753; color: var(--paper); }
.trailer .wrap { width: min(var(--width), 1030px); }
.trailer h2 { margin-bottom: 1.7rem; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: var(--ink); border-radius: clamp(.85rem, 3vw, 1.9rem); }
.trailer :focus-visible { outline-color: var(--lime); }
.islands { background: #87d9ed; }
.atlas { grid-template-columns: 1.15fr .85fr; }
.atlas-img { width: min(100%, 372px); border: 5px solid var(--paper); border-radius: 1.6rem; box-shadow: 0 14px 34px #1028272b; justify-self: center; }
.island-list { display: flex; flex-wrap: wrap; gap: .54rem; list-style: none; padding: 0; margin-block: 1.55rem 0; }
.island-list li { border: 1.5px solid #11343a2e; background: #fbf7ea90; border-radius: 99px; padding: .33em .74em; font-weight: 730; }
.support { background: #fff8dd; }
.support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
details { border-bottom: 1px solid #17475350; padding: .8em 0; }
details p { margin-bottom: 0; font-size: 1rem; }
summary { font-size: 1.13rem; font-weight: 750; cursor: pointer; }
footer { background: var(--ink); color: var(--paper); }
@media(max-width: 760px){
  :root { --width: min(100% - 2rem, 660px); }
  .mast nav, footer .wrap { min-height: 68px; }
  .nav-links { gap: .8rem; }
  .nav-links a, footer a { font-size: .88rem; }
  .nav-play { display: none; }
  .hero-grid, .split, .support-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.75rem; padding-block: 1.6rem 1.9rem; }
  h1 { font-size: clamp(3.65rem, 12.1vw, 5.8rem); }
  .description { margin-block: 1.05rem 1.14rem; }
  .scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr) minmax(0, 1fr);
    width: min(100%, 435px);
    margin-inline: auto;
  }
  .hero-board { border-width: 3px; }
  .explorer { margin-bottom: clamp(.55rem, 3.8vw, 1.45rem); }
  .screens { margin-inline: .45rem; gap: .9rem; }
  .screens img { border-width: 4px; border-radius: 1.3rem; }
  .support-grid { gap: 1.2rem; }
}
@media(max-width: 400px){
  .hero-grid { gap: 1.15rem; padding-top: 1.25rem; }
  .description { margin-block: .85rem .9rem; }
  .launch { margin-top: .8rem; }
  .nav-links { gap: .65rem; }
}
@media(max-width: 350px){
  .mast nav { gap: .4rem; }
  .brand img { width: 5rem; }
  .nav-links a { font-size: .8rem; white-space: nowrap; }
  .nav-links { gap: .42rem; }
}
@media(prefers-reduced-motion: reduce){ *, *::before, *::after { scroll-behavior: auto !important; } }

/* Each language links directly to its own static page. */
.language-menu { position: relative; flex: 0 0 auto; }
.language-menu > summary {
  display: flex;
  align-items: center;
  gap: .45em;
  list-style: none;
  border: 1.5px solid var(--ink);
  padding: .42em .76em;
  border-radius: 100vmax;
  white-space: nowrap;
  font-size: .95rem;
  line-height: 1.25;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu[open] > summary { background: var(--paper); }
.language-menu ul {
  position: absolute;
  inset-block-start: calc(100% + .55rem);
  inset-inline-end: 0;
  z-index: 3;
  min-width: 12.45rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  border: 1px solid #17475330;
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 14px 30px #17475328;
}
.language-menu li a {
  display: block;
  padding: .56rem .7rem;
  border-radius: .6rem;
  text-decoration: none;
  white-space: nowrap;
}
.language-menu li a:hover, .language-menu li a:focus-visible { background: #d0f0e9; }
.language-menu li a[aria-current="page"] { background: var(--lime); }
.app-language { margin: .18rem 0 0; font-size: .86rem; font-weight: 600; }
html[lang="de"] h1 { font-size: clamp(3.6rem, 6.4vw, 7.4rem); }
html[lang="ja"] h1, html[lang="ko"] h1 {
  font-size: clamp(2.8rem, 5.15vw, 5.9rem);
  letter-spacing: -.055em;
  line-height: 1.14;
}
html[lang="ja"] h2, html[lang="ko"] h2 {
  font-size: clamp(2rem, 4.25vw, 4.8rem);
  line-height: 1.14;
}
@media (max-width: 760px) {
  .language-menu > summary { font-size: .85rem; }
  .language-menu > summary svg { width: 15px; height: 15px; }
  .nav-links > a { white-space: nowrap; }
  html[lang="de"] h1 { font-size: clamp(3.18rem, 11vw, 5.75rem); }
  html[lang="ja"] h1, html[lang="ko"] h1 { font-size: clamp(2.05rem, 8.2vw, 4.1rem); }
}
@media (max-width: 380px) {
  .nav-links > a { font-size: .8rem; }
  .nav-links { gap: .42rem; }
}

@media (max-width: 440px) {
  .language-menu > summary { position: relative; justify-content: center; width: 42px; height: 42px; padding: 0; }
  .language-menu > summary svg { width: 18px; height: 18px; }
  .language-menu > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.explorer-gallery {
  background: #fff8dd;
  text-align: center;
}
.explorer-gallery h2 {
  font-size: clamp(2.65rem, 5.35vw, 5.25rem);
  color: #174753;
}
.explorer-gallery p {
  margin: .9rem auto 0;
  max-width: 42ch;
  font-weight: 600;
}
.explorer-pairs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.explorer-pair {
  --sky: #d7d5ee;
  --ground: #b2aae0;
  flex: 0 0 calc((100% - 3.2rem) / 5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 4%;
  min-width: 0;
  aspect-ratio: 1.04;
  padding: clamp(.55rem, 1.8vw, 1.35rem) clamp(.45rem, 1.15vw, .95rem) clamp(.5rem, 1.25vw, 1rem);
  overflow: hidden;
  background: radial-gradient(ellipse 74% 35% at 50% 94%, var(--ground) 69%, transparent 70%), var(--sky);
  border: 1px solid #17475318;
  border-radius: clamp(.9rem, 2.1vw, 1.65rem);
}
.explorer-pair:nth-child(2) { --sky: #c3e9e6; --ground: #9fd8d0; }
.explorer-pair:nth-child(3) { --sky: #f9ddaa; --ground: #edc47f; }
.explorer-pair:nth-child(4) { --sky: #bfe5f2; --ground: #99d2e8; }
.explorer-pair:nth-child(5) { --sky: #e4efaf; --ground: #c5d984; }
.explorer-pair img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 2px #17475330);
}
@media (max-width: 1050px) {
  .explorer-pair { flex-basis: calc((100% - 1.6rem) / 3); max-width: 15.5rem; }
}
@media (max-width: 540px) {
  .explorer-pairs { gap: .6rem; }
  .explorer-pair { flex-basis: calc((100% - .6rem) / 2); }
}
