/* AnimaSky - a sky-and-meadow landing page. No build step, no external requests. */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/Baloo2-Latin.woff2") format("woff2"),
       url("/assets/fonts/Baloo2-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Latin.woff2") format("woff2"),
       url("/assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Italic-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "Noto Arabic"; src: url("/assets/fonts/NotoSansArabic-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Devanagari"; src: url("/assets/fonts/NotoSansDevanagari-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Bengali"; src: url("/assets/fonts/NotoSansBengali-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto SC"; src: url("/assets/fonts/NotoSansSC-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Noto JP"; src: url("/assets/fonts/NotoSansJP-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Inter Cyrillic"; src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  /* sky */
  --sky-50: #f3faff;
  --sky-100: #e0f2ff;
  --sky-200: #bfe4fc;
  --sky-300: #8fd0fa;
  --sky-500: #3fa9ec;
  --sky-600: #2385cf;
  --sky-700: #1a6aab;
  /* meadow */
  --meadow-50: #f1fae9;
  --meadow-100: #def3cf;
  --meadow-300: #a8e08a;
  --meadow-500: #5cbf4a;
  --meadow-600: #3d9a30;
  --meadow-700: #2b7a35;
  /* accents */
  --sun: #ffc94a;
  --sun-hover: #ffd66e;
  --sun-ink: #c27a00;      /* sun hue dark enough for large text on white (3.4:1) */
  --blossom: #ff8fb1;
  --blossom-600: #d9467a;
  --blossom-50: #fff0f5;
  --peach: #ffb27a;
  --cream: #fffaf0;
  --paper: #fff;
  /* ink */
  --ink: #1e3450;
  --ink-soft: #465a74;
  --ink-deep: #152539;
  --on-ink: #dfe8f5;
  --on-ink-soft: #b8c7dc;
  --line: #d6e3ef;

  --font-display: "Baloo 2", "Nunito Sans", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3.5rem;
  --section-pad: clamp(3.5rem, 7.5vw, 6.5rem);
  /* radii */
  --radius: 1.5rem;
  --radius-sm: 0.9rem;
  --radius-xs: 0.6rem;
  --radius-pill: 999px;
  /* shadows, one rule per purpose:
     - soft (1px --line border + --shadow-soft/--shadow): every card you read - facts, features, creatures, FAQ;
     - ink sticker (2px --ink border + hard --shadow-ink): only what you press or what floats over a picture -
       buttons, the map banner, the map's panels. */
  --shadow: 0 0.25rem 0 rgba(30, 52, 80, 0.06), 0 1.25rem 2.5rem -1rem rgba(30, 52, 80, 0.25);
  --shadow-soft: 0 0.125rem 0 rgba(30, 52, 80, 0.04), 0 0.75rem 2rem -1rem rgba(30, 52, 80, 0.3);
  --shadow-lift: 0 0.25rem 0 rgba(30, 52, 80, 0.06), 0 1.4rem 2.6rem -1rem rgba(30, 52, 80, 0.34);
  --shadow-ink: 0 0.25rem 0 var(--ink);
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bar-h: 4.25rem;
}
html:lang(ar) { --font-display: "Noto Arabic", "Nunito Sans", sans-serif; --font-body: "Noto Arabic", "Nunito Sans", sans-serif; }
html:lang(hi) { --font-display: "Noto Devanagari", "Nunito Sans", sans-serif; --font-body: "Noto Devanagari", "Nunito Sans", sans-serif; }
html:lang(bn) { --font-display: "Noto Bengali", "Nunito Sans", sans-serif; --font-body: "Noto Bengali", "Nunito Sans", sans-serif; }
html:lang(zh-Hans) { --font-display: "Noto SC", "Nunito Sans", sans-serif; --font-body: "Noto SC", "Nunito Sans", sans-serif; }
html:lang(ja) { --font-display: "Noto JP", "Nunito Sans", sans-serif; --font-body: "Noto JP", "Nunito Sans", sans-serif; }
html:lang(ru) { --font-display: "Inter Cyrillic", "Nunito Sans", sans-serif; --font-body: "Inter Cyrillic", "Nunito Sans", sans-serif; }

/* Scales type and layout up gently on large and 4K screens. */
html { font-size: clamp(100%, 0.35vw + 0.8rem, 137.5%); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); -webkit-text-size-adjust: 100%; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--sky-700); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
::selection { background: var(--sun); color: var(--ink); }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace; }

:focus-visible { outline: 3px solid var(--sky-700); outline-offset: 3px; border-radius: var(--radius-xs); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0.6rem; text-decoration: none; font-weight: 800;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 48rem; }

/* ---------------- buttons ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  padding: 0.85rem 1.35rem 0.75rem; border-radius: var(--radius-pill); border: 2px solid var(--ink);
  text-decoration: none; color: var(--ink); background: var(--paper); cursor: pointer;
  box-shadow: var(--shadow-ink); text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0.375rem 0 var(--ink); }
.button:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }
.button:active { transform: translateY(0.2rem); box-shadow: 0 0.05rem 0 var(--ink); }
.button.sun { background: var(--sun); }
.button.sun:hover { background: var(--sun-hover); }
.button.white { background: rgba(255, 255, 255, 0.94); }
.button.big { font-size: 1.2rem; padding: 1.05rem 1.6rem 0.95rem; }
.button.small { font-size: 0.95rem; padding: 0.6rem 1rem 0.5rem; box-shadow: 0 0.2rem 0 var(--ink); }
.icon { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- explore-a-world banner (links the 3D map, website/map) ---------------- */
.explore {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 20rem; margin-top: var(--space-7);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 0.35rem 0 var(--ink), var(--shadow);
  color: #fff; text-decoration: none; background: linear-gradient(#5aa7dc, #9fd3f2);
}
.explore-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.explore::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 50, 90, 0.78), rgba(20, 50, 90, 0.35) 55%, transparent 80%); }
.explore:hover .explore-art { transform: scale(1.04); }
.explore-copy { display: grid; gap: 0.6rem; justify-items: start; padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 36rem; }
.explore-kicker { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
.explore-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; text-shadow: 0 0.15rem 0 rgba(20, 50, 90, 0.35); }
.explore-lead { font-weight: 600; font-size: 1.05rem; line-height: 1.5; text-shadow: 0 0.1rem 0.6rem rgba(15, 40, 75, 0.7); }
.explore .button { margin-top: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .explore-art { transition: none; } }

/* ---------------- top bar ---------------- */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(30, 52, 80, 0.08);
  box-shadow: 0 0.5rem 1.5rem -1.25rem rgba(30, 52, 80, 0.35);
}
.bar-inner { height: 100%; width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto; display: flex; align-items: center; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
/* the horizontal logo lockup (assets/branding/logo.svg, 9:2) */
.brand-logo { display: block; height: 3.25rem; width: auto; transition: transform 0.3s var(--ease-pop); }
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.04); }
.bar-nav { display: flex; gap: 0.25rem; margin-inline: auto; }
.bar-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-pill); transition: background-color 0.15s, color 0.15s;
}
.bar-nav a:hover { background: var(--sky-100); color: var(--sky-700); }
.bar-nav a:focus-visible { border-radius: var(--radius-pill); outline-offset: 1px; }
.bar-actions { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.bar-nav + .bar-actions { margin-inline-start: 0; }
.lang {
  font: 700 0.9rem/1.2 var(--font-body); color: var(--ink);
  /* Own chevron beside the label; the native one sits at the far edge of the widest option. */
  appearance: none; -webkit-appearance: none; field-sizing: content;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%231e3450' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 0.75rem;
  border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 0.55rem 2.1rem 0.55rem 0.9rem; cursor: pointer;
  transition: border-color 0.15s;
  max-width: min(13rem, 36vw); text-overflow: ellipsis;
}
[dir="rtl"] .lang { background-position: left 0.8rem center; padding: 0.55rem 0.9rem 0.55rem 2.1rem; }
.lang:hover { border-color: var(--ink); }
.lang:focus-visible { outline: 3px solid var(--sky-700); outline-offset: 2px; border-radius: var(--radius-pill); }
@media (max-width: 62rem) { .bar-nav { display: none; } }
@media (max-width: 32rem) {
  .bar-inner { gap: 0.5rem; }
  .brand-logo { height: 2.6rem; }
  .bar-actions .button { display: none; }
  .lang { max-width: 30vw; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(34rem, min(52vw, 100svh - var(--bar-h)));
  display: flex; align-items: flex-start;
  background: linear-gradient(#5aa7dc, #9fd3f2);
}
.hero-art { position: absolute; inset: 0; z-index: -3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero::before {
  /* keeps the headline readable over bright sky without dimming the picture */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 70% at 15% 25%, rgba(20, 60, 110, 0.42), transparent 70%),
    linear-gradient(to bottom, rgba(20, 60, 110, 0.25), transparent 45%);
}
.hero-copy {
  width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto;
  padding: clamp(2rem, 7vw, 6rem) 0 clamp(7rem, 14vw, 12rem);
  color: #fff;
}
.hero-copy > * { max-width: 36rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
}
.badge .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--meadow-500); box-shadow: 0 0 0 0.2rem rgba(92, 191, 74, 0.3); }
.hero h1 { margin-top: 1rem; font-size: clamp(2.5rem, 6.2vw, 5.25rem); font-weight: 800; line-height: 0.98; text-shadow: 0 0.15rem 0 rgba(20, 50, 90, 0.35), 0 0.4rem 1.6rem rgba(20, 50, 90, 0.35); max-width: 44rem; }
.hero h1 span { display: block; }
.hero h1 .h1-bottom { color: var(--sun); }
.hero-lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.3vw + 0.6rem, 1.3rem); font-weight: 600; line-height: 1.5; text-shadow: 0 0.1rem 0.8rem rgba(15, 40, 75, 0.7), 0 0 0.2rem rgba(15, 40, 75, 0.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; font-weight: 700; font-size: 0.95rem; text-shadow: 0 0.1rem 0.6rem rgba(15, 40, 75, 0.8); }

.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(3rem, 7vw, 7rem); z-index: 1; }
.hill-back { fill: var(--meadow-300); opacity: 0.9; }
.hill-front { fill: var(--cream); }

/* drifting clouds: pure CSS, stopped when motion is reduced */
.hero-clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-clouds .cloud { position: absolute; fill: #fff; opacity: 0.85; filter: drop-shadow(0 0.4rem 0.6rem rgba(40, 90, 150, 0.18)); }
.cloud.c1 { width: clamp(7rem, 14vw, 15rem); top: 6%; left: 58%; animation: drift 70s linear infinite alternate; }
.cloud.c2 { width: clamp(5rem, 9vw, 10rem); top: 22%; left: 78%; opacity: 0.7; animation: drift 90s linear infinite alternate-reverse; }
.cloud.c3 { width: clamp(4rem, 7vw, 8rem); top: 3%; left: 88%; opacity: 0.6; animation: drift 110s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-3vw); } to { transform: translateX(6vw); } }

/* falling blossom petals */
.petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.petals .k {
  position: absolute; top: -5%; width: 0.8rem; height: 0.55rem; border-radius: 80% 0 80% 0;
  background: var(--blossom); opacity: 0; animation: petal 14s linear infinite;
}
.petals .k:nth-child(1) { left: 55%; animation-delay: 0s; }
.petals .k:nth-child(2) { left: 70%; animation-delay: 3s; background: #ffc2d4; animation-duration: 17s; }
.petals .k:nth-child(3) { left: 85%; animation-delay: 6s; }
.petals .k:nth-child(4) { left: 40%; animation-delay: 9s; background: #fff; animation-duration: 16s; }
.petals .k:nth-child(5) { left: 92%; animation-delay: 1.5s; background: #ffc2d4; animation-duration: 19s; }
.petals .k:nth-child(6) { left: 63%; animation-delay: 11s; }
.petals .k:nth-child(7) { left: 78%; animation-delay: 7.5s; background: var(--sun); animation-duration: 15s; }
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translate(-6vw, 50vh) rotate(260deg); }
  92% { opacity: 0.9; }
  100% { transform: translate(-3vw, 95vh) rotate(520deg); opacity: 0; }
}

/* scroll parallax where the browser supports scroll-driven animation */
@supports (animation-timeline: scroll()) {
  .hero-art img { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero-clouds { animation: rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes sink { to { transform: translateY(12vh) scale(1.04); } }
  @keyframes rise { to { transform: translateY(-14vh); } }
}

/* ---------------- highlights ---------------- */
.highlights { position: relative; z-index: 2; margin-top: -2rem; padding-inline: var(--gutter); }
.pills {
  list-style: none; margin: 0 auto; padding: 0; max-width: 62rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.pills li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.7rem; min-width: 0;
}
/* numbers use the deeper tone of each accent so they keep 3:1 on white */
.pills b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--sky-600); padding-top: 0.2rem; }
.pills li:nth-child(2) b { color: var(--meadow-600); }
.pills li:nth-child(3) b { color: var(--sun-ink); }
.pills li:nth-child(4) b { color: var(--blossom-600); }
.pills span { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
@media (max-width: 50rem) { .pills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) {
  .pills { gap: 0.6rem; }
  .pills li { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.7rem 0.85rem 0.8rem; }
  .pills b { font-size: 1.9rem; }
  .pills span { font-size: 0.9rem; }
}

/* ---------------- sections ---------------- */
.section { padding-block: var(--section-pad); position: relative; }
.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky-700);
  background: var(--sky-100); padding: 0.3rem 0.8rem 0.15rem; border-radius: var(--radius-pill);
}
.section h2 { margin-top: 0.8rem; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
.lead { margin-top: 1rem; font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.2rem); color: var(--ink-soft); max-width: 42rem; }
.section-head.center .lead { margin-inline: auto; }
.sub { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 3.5rem 0 1.2rem; }
.fine { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* world */
.world { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.features {
  list-style: none; padding: 0; margin: var(--space-7) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4);
}
.features li {
  background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s ease;
}
.features li:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-lift); }
.feat-icon { width: 3.25rem; height: 3.25rem; padding: 0.4rem; border-radius: var(--radius-sm); background: var(--sky-50); }
.features li:nth-child(2) .feat-icon { background: #f4f0ff; }
.features li:nth-child(3) .feat-icon { background: var(--meadow-50); }
.features li:nth-child(4) .feat-icon { background: #fff6e0; }
@media (max-width: 36rem) {
  .features { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 2rem; }
  .features li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; padding: 1.1rem 1.15rem 1.2rem; }
  .features li .feat-icon { grid-row: span 2; }
  .features h3 { margin-top: 0.15rem; font-size: 1.2rem; }
}
.features h3 { font-size: 1.35rem; margin-top: 0.6rem; }
.features p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.98rem; }

.gallery {
  margin-top: var(--space-8); display: grid; gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
}
.shot { margin: 0; }
.shot a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; background: var(--sky-200); transition: box-shadow 0.3s ease; }
.shot a:hover { box-shadow: var(--shadow-lift); }
.shot a:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.shot a:hover img { transform: scale(1.05); }
.shot a::after {
  content: ""; position: absolute; right: 0.7rem; top: 0.7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgba(255,255,255,0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3450' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.2s;
}
.shot a:hover::after, .shot a:focus-visible::after { opacity: 1; transform: none; }
.shot figcaption { font-weight: 700; font-size: 0.95rem; line-height: 1.4; margin-top: 0.6rem; padding-inline: 0.3rem; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img { height: 100%; aspect-ratio: auto; }
.gallery .wide a { height: calc(100% - 2.2rem); }
.shot-note { margin: 1.5rem auto 0; max-width: 46rem; font-size: 0.9rem; color: var(--ink-soft); text-align: center; text-wrap: balance; }
@media (max-width: 62rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; grid-row: auto; }
  .gallery .wide img { aspect-ratio: 16 / 9; height: auto; }
  .gallery .wide a { height: auto; }
}

/* creatures */
.creatures { background: linear-gradient(var(--sky-50), var(--sky-100)); }
.creatures::before, .towns::before, .download::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2.4rem; height: 2.5rem;
  background: inherit; -webkit-mask: radial-gradient(1.6rem 1.6rem at 50% 100%, #000 98%, transparent) 0 0 / 3rem 100% repeat-x;
  mask: radial-gradient(1.6rem 1.6rem at 50% 100%, #000 98%, transparent) 0 0 / 3rem 100% repeat-x;
}
.creatures::before { background: var(--sky-50); }
.critters {
  list-style: none; padding: 0; margin: var(--space-7) 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4);
}
@media (max-width: 62rem) { .critters { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 36rem) { .critters { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } .critters span { font-size: 0.9rem; } }
@media (max-width: 22.5rem) { .critters { grid-template-columns: repeat(2, 1fr); } }
.critters li {
  background: var(--paper); border-radius: var(--radius); padding: 0.6rem 0.6rem 0.8rem; text-align: center;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); transition: transform 0.25s var(--ease-pop), box-shadow 0.25s ease;
}
.critters li:hover { transform: translateY(-0.35rem) rotate(-1.5deg); box-shadow: var(--shadow-lift); }
.critters li:nth-child(even):hover { transform: translateY(-0.35rem) rotate(1.5deg); }
.critters img { border-radius: calc(var(--radius) - 0.4rem); aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--sky-100); }
.critters span, .people span, .buildings span, .evolve-steps span {
  display: inline-block; margin-top: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}

.evolve {
  margin-top: var(--space-8); background: var(--paper); border-radius: calc(var(--radius) * 1.3); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 2rem; align-items: center;
}
.evolve h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.evolve-copy p { margin-top: 0.6rem; color: var(--ink-soft); }
.evolve-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.evolve-steps li { position: relative; text-align: center; }
.evolve-steps img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 0.3rem solid var(--sun); background: var(--sky-100); }
.evolve-steps li:nth-child(2) img { border-color: var(--peach); }
.evolve-steps li:nth-child(3) img { border-color: var(--blossom); }
.evolve-steps li + li::before {
  content: ""; position: absolute; left: -1.85rem; top: calc(50% - 1.6rem); width: 1.5rem; height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3450' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 50rem) { .evolve { grid-template-columns: 1fr; } .evolve-steps { gap: 1.6rem; } .evolve-steps li + li::before { left: -1.45rem; width: 1.2rem; } }

.verbs { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.verb { border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.verb p { color: var(--ink-soft); }
.verb svg { width: 3rem; height: 3rem; }
.verb h3 { font-size: 1.6rem; margin-top: 0.5rem; }
.verb p { margin-top: 0.35rem; }
.verb.catch { background: var(--blossom-50); }
.verb.battle { background: #fff7de; }
.verb.breed { background: var(--meadow-50); }
@media (max-width: 50rem) { .verbs { grid-template-columns: 1fr; } }

/* towns */
.towns { background: var(--meadow-50); }
.towns::before { background: var(--meadow-50); }
.towns-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.shot.feature a { border: 0.35rem solid #fff; }
@media (max-width: 60rem) { .towns-grid { grid-template-columns: 1fr; } }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.people li { text-align: center; }
.people img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius) / 36% 36% var(--radius) var(--radius);
  background: var(--sky-200); box-shadow: var(--shadow-soft); border: 0.3rem solid #fff;
}
@media (max-width: 44rem) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 26rem) { .people { grid-template-columns: repeat(2, 1fr); } }
.buildings {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1.5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(13rem, 24vw, 18rem); gap: var(--space-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--meadow-500) transparent;
}
.buildings li { scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.5rem 0.8rem; text-align: center; box-shadow: var(--shadow-soft); }
.buildings img { border-radius: calc(var(--radius) - 0.4rem); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
@media (min-width: 80rem) { .buildings { margin-inline: 0; padding-inline: 0; } }

/* together */
.together { background: linear-gradient(var(--cream), var(--sky-50)); }
.mp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
@media (max-width: 54rem) { .mp-cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.card h3 { font-size: 1.55rem; }
.card > p:not(.card-tag):not(.fine) { margin-top: 0.6rem; }
.card > .button { margin-top: 1.25rem; }
.card-tag { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meadow-700); margin-bottom: 0.3rem; }
.steps { margin: 0.9rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.7rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--sky-100); color: var(--sky-700); font-family: var(--font-display); font-weight: 800;
  display: grid; place-items: center; padding-top: 0.15rem; line-height: 1;
}
.code {
  margin: 1rem 0 0; background: var(--ink-deep); color: #e8f1ff; border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #4a6286 transparent; font-size: 0.88rem; line-height: 1.6; white-space: pre;
}

.server {
  margin: 2rem auto 0; max-width: 46rem; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.server-head { display: flex; align-items: center; gap: 0.6rem; }
.server h3 { font-size: 1.45rem; }
.server-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #8aa0bd; flex-shrink: 0; }
.server.live .server-dot { background: #6fe06a; box-shadow: 0 0 0 0.25rem rgba(111, 224, 106, 0.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 0.5rem rgba(111, 224, 106, 0.05); } }
.server .fine { color: #c5d3e6; }
.server-name { margin-top: 0.6rem; font-weight: 700; color: var(--sun); }
.address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
.address { font-size: clamp(1rem, 2.5vw, 1.3rem); background: rgba(255,255,255,0.1); padding: 0.55rem 0.9rem; border-radius: 0.7rem; word-break: break-all; }
.server .button { border-color: #fff; box-shadow: 0 0.2rem 0 #0b1626; }
.copy-state { font-weight: 700; color: var(--meadow-300); }

/* mods */
.mods { background: var(--cream); }
.mods-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 60rem) { .mods-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--meadow-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.mod-file { margin: 0; background: var(--ink-deep); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; transform: rotate(1deg); }
.mod-file figcaption { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1rem; background: var(--ink); color: #c5d3e6; font-size: 0.85rem; }
@media (max-width: 60rem) { .mod-file { transform: none; } }
.mod-file figcaption code { margin-left: 0.5rem; }
.file-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--blossom); }
.file-dot + .file-dot { background: var(--sun); }
.file-dot + .file-dot + .file-dot { background: var(--meadow-500); }
.mod-file .code { margin: 0; border-radius: 0; padding: 1.2rem 1.4rem 1.4rem; font-size: 0.86rem; }
.code .k { color: #8fd0fa; }
.code .s { color: #b8ec9e; }
.code .n { color: #ffc94a; }

/* download */
.download { background: linear-gradient(var(--sky-300), var(--sky-100) 70%, var(--cream)); }
.download::before { background: var(--sky-300); }
.download .kicker { background: var(--paper); }
.download .lead { color: var(--ink); }
.download-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-5); margin-top: var(--space-7); align-items: start;
  grid-template-areas: "files how" "reqs how";
}
.downloads { grid-area: files; }
.howto { grid-area: how; }
.reqs { grid-area: reqs; }
@media (max-width: 58rem) { .download-grid { grid-template-columns: 1fr; grid-template-areas: "files" "how" "reqs"; } }
.reqs dl { margin: 0.9rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.reqs dt { font-weight: 800; }
.reqs dd { margin: 0; }

/* faq */
.faq { background: var(--cream); }
.qa { margin-top: 2.2rem; display: grid; gap: 0.75rem; }
.qa { max-width: 52rem; margin-inline: auto; }
.qa details { background: var(--paper); border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: border-color 0.15s; }
.qa details:hover, .qa details[open] { border-color: var(--sky-300); }
.qa summary:focus-visible { border-radius: var(--radius-sm); outline-offset: 2px; }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3.2rem 1rem 1.25rem; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--sky-100); color: var(--sky-700); display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; padding-top: 0.1rem;
  transition: rotate 0.2s, background-color 0.15s;
}
.qa summary:hover::after { background: var(--sky-200); }
.qa details[open] summary::after { rotate: 45deg; }
.qa details p { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }

/* footer */
.foot { position: relative; background: var(--ink); color: var(--on-ink); padding: 3.5rem 0 2.5rem; margin-top: var(--space-8); }
.foot-hills { position: absolute; left: 0; right: 0; top: -2.4rem; width: 100%; height: 2.5rem; fill: var(--ink); }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2rem; align-items: start; }
@media (max-width: 54rem) { .foot-inner { grid-template-columns: 1fr; } }
.foot-brand { display: grid; align-items: center; gap: 0.2rem; }
.foot-logo { display: block; height: 3.5rem; width: auto; }
.foot-brand p { margin-top: 0.6rem; }
/* the EN/DE guide links under the tagline, readable on ink */
.foot-guides { font-size: 0.95rem; }
.foot-brand a { color: var(--sky-300); font-weight: 700; }
.foot-brand a:hover { color: #fff; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.4rem 1.5rem; }
.foot-nav a { color: #fff; font-weight: 700; text-decoration: none; padding-block: 0.15rem; }
.foot-nav a:hover { text-decoration: underline; }
.foot-fine p { font-size: 0.9rem; color: var(--on-ink-soft); }
.foot-fine p + p { margin-top: 0.5rem; }
.foot :focus-visible { outline-color: var(--sun); }

/* lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0;
  color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 26, 44, 0.9); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 4rem 4.5rem 1.5rem; display: grid; justify-items: center; gap: 0.9rem; max-width: 100%; }
/* site.js sets the picture's width to the fitted size (110rem cap, 9rem kept for buttons and caption)
   and its background to the thumbnail over the blurred placeholder while the full image loads. */
.lightbox picture {
  display: block; max-width: min(100%, 110rem); aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.5); background: var(--sky-200) center / cover no-repeat;
}
.lightbox img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.lightbox img.is-loading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lightbox img { transition: none; } }
.lightbox figcaption { font-weight: 700; text-align: center; }
.lb-btn {
  position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,0.12);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,0.28); }
.lb-btn svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:focus-visible { outline-color: var(--sun); }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-close { right: 1rem; top: 1rem; }
@media (max-width: 40rem) {
  .lightbox figure { padding: 4.5rem 0.75rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
  .lb-prev { left: calc(50% - 3.5rem); }
  .lb-next { right: calc(50% - 3.5rem); }
}

/* phones */
@media (max-width: 40rem) {
  .hero { min-height: auto; }
  .hero-art img { object-position: 60% 70%; }
  .hero::before { background: linear-gradient(to bottom, rgba(20, 60, 110, 0.55), rgba(20, 60, 110, 0.25) 60%, transparent); }
  .hero-cta .button { flex: 1 1 100%; }
  .petals .k:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .petals { display: none; }
}


/* screenshot placeholders: build-site-images.py inlines a tiny blurred image and the average colour
   as the <img> background, shown until the picture paints over it (width/height keep the layout) */
.lqip { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-art img.lqip { background-position: 50% 70%; }
