:root {
  --green: #64c499;
  --green-dark: #3d9a73;
  --peach: #f4e4d4;
  --ink: #1a2e28;
  --muted: #4a5f58;
  --white: #fff;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(26, 46, 40, 0.12);
  --radius: 22px;
  --font: "Nunito", system-ui, sans-serif;
  --display: "DynaPuff", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--peach);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* Portail */
.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
  background:
    radial-gradient(ellipse at top, #fff8f0 0%, var(--peach) 55%, #e8c9a8 100%);
}
.portal-brand { width: min(280px, 70vw); margin-bottom: 12px; }
.portal h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  margin: 0 0 8px;
}
.portal .lead {
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 40px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 28px;
  justify-content: center;
}
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
}
.choice {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
}
.choice:hover, .choice:focus-visible {
  transform: translateY(-4px);
  border-color: var(--green);
  outline: none;
}
.choice img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 36px;
}
.choice h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.choice p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.choice.is-disabled {
  filter: grayscale(1) saturate(0.15);
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  border-color: #ccc;
}
.choice .soon {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}
.portal-foot { margin-top: 48px; font-size: 0.85rem; color: var(--muted); }

/* App chrome */
.top {
  background: var(--green);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 16px;
}
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.hero {
  text-align: center;
  padding: 36px 0 12px;
}
.hero .logo { width: min(320px, 80vw); margin: 0 auto 20px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}
.hero p { max-width: 40rem; margin: 0 auto 20px; color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--green-dark);
}
.btn:hover { filter: brightness(1.05); }
.btn-note { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

.slide-block { margin: 28px 0 40px; }
.slide-block h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 14px;
}
.slideshow {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}
.slideshow img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.slideshow img.is-on { display: block; }
.slideshow-portrait,
.phone-slides {
  position: relative;
  width: min(260px, 78vw);
  max-width: 260px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  aspect-ratio: auto;
}
.phone-slides img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: static;
}
.phone-slides img.is-on { display: block; }
.slide-nav {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slide-nav button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.slide-nav button.is-on { background: #fff; }
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,.4);
  color: #fff;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 48px;
}
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-family: var(--display);
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.card ul { margin: 0; padding-left: 1.2rem; }

.world {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 28px;
  box-shadow: var(--shadow);
}
.world h2 { font-family: var(--display); margin: 8px 0 12px; }
.world .tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.world-pic {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}
.world-pic img,
.world-art {
  display: block;
  width: 200px;
  max-width: 70vw;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}
.world .lore { font-size: 1.05rem; }
.minigame {
  background: #f4faf7;
  border-left: 4px solid var(--green);
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
}
.chapters h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
}
.chapter {
  margin: 0 0 14px;
}
.chapter strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.chapter ul { margin: 0; padding-left: 1.2rem; }

.legal {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 28px 48px;
  margin: 24px 0 48px;
  box-shadow: var(--shadow);
}
.legal h1 { font-family: var(--display); }
.legal h2 { margin-top: 1.8em; }
.legal h3 { margin-top: 1.2em; }
.legal h4 { margin-top: 1em; }
.legal hr { border: 0; border-top: 1px solid #e6d5c4; margin: 2em 0; }

footer {
  background: var(--ink);
  color: #d7ece4;
  padding: 28px 0;
  font-size: 0.92rem;
}
footer a { color: var(--green); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
