/* Enchanted Zoo landing page. Same purple and gold as the game, system fonts only
   (no font downloads, so nothing is loaded from other servers). */
:root {
  --purple: #5b2a92;
  --deep: #3a1760;
  --night: #2a1446;
  --gold: #ffd94a;
  --gold-dark: #b8901a;
  --cream: #fff6d0;
  --paper: #fffaf0;
  --ink: #2c1a40;
  --soft: #6b5a80;
  --green: #4f9c38;
  --line: #eadff5;
  font-family: 'Trebuchet MS', Verdana, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }

/* Keyboard users always see where they are. */
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-color: var(--purple); box-shadow: 0 0 0 7px var(--gold); }
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--deep);
  font-weight: bold;
}
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; color: var(--deep); }
h2 { font-size: clamp(26px, 4vw, 38px); text-align: center; }
h3 { font-size: 20px; }

.ic { width: 1.3em; height: 1.3em; vertical-align: -0.3em; flex: none; }
.ic.big { width: 64px; height: 64px; }
.ic.huge { width: 120px; height: 120px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: var(--deep);
  color: var(--cream);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { color: var(--cream); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 5px 0 var(--gold-dark);
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn.big { font-size: 24px; padding: 16px 34px; }
.btn.small { font-size: 16px; padding: 7px 18px; box-shadow: 0 3px 0 var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 3px var(--cream); }
.btn.off { background: #e6dcef; color: var(--soft); box-shadow: 0 5px 0 #c4b5d4; cursor: default; }
.btn.off:active { transform: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 860px);
  padding: 64px max(24px, 5vw);
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(42, 20, 70, 0.92) 0%, rgba(58, 23, 96, 0.7) 40%, rgba(58, 23, 96, 0) 75%);
}
.hero-text { position: relative; z-index: 2; max-width: 620px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  color: var(--cream);
  letter-spacing: 2px;
  text-shadow: 0 4px 0 var(--deep), 0 0 30px var(--gold);
}
.lead { font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 12px; }
.lead.small { font-size: 17px; opacity: 0.85; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------------------------------------------------------------- sections */
main > section { padding: 64px max(16px, 4vw); scroll-margin-top: 56px; }
.grid { display: grid; gap: 24px; margin: 28px 0 0; }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.area {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 0 var(--line), 0 8px 24px rgba(58, 23, 96, 0.08);
}
.area img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.area h3 { display: flex; align-items: center; gap: 8px; margin: 14px 16px 4px; }
.area p { margin: 0 16px 18px; color: var(--soft); }

.safe { background: #f3ecfa; }
.point { text-align: center; padding: 8px 12px; }
.point h3 { margin-top: 10px; }
.point p { margin: 0; color: var(--soft); }

/* ---------------------------------------------------------------- roadmap */
.intro { text-align: center; max-width: 640px; margin: 0 auto; color: var(--soft); font-size: 18px; }
.goals { list-style: none; padding: 0; margin: 40px 0 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.goals::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 40px;
  border-top: 5px dotted #cdb9e2;
}
.goal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.goal .what { width: 100%; height: 100%; }
.goal .badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--gold);
}
.goal .badge .ic { width: 52px; height: 52px; }
.goal .what {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 4px 0 var(--line);
}
.goal .what p { margin: 0 0 8px; }
.goal .state { font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); display: flex; align-items: center; gap: 6px; }
.goal .need { font-weight: bold; color: var(--deep); margin: 6px 0 0 !important; }
.goal .bar { height: 18px; border-radius: 9px; background: #efe6f7; overflow: hidden; margin-top: 10px; }
.goal .bar i { display: block; height: 100%; min-width: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--gold), #ffb03a); }
.goal.now .badge { box-shadow: 0 0 0 6px rgba(255, 217, 74, 0.35); }
.goal.now .what { box-shadow: 0 4px 0 var(--gold-dark); border: 3px solid var(--gold); }
.goal.done .badge { border-color: var(--green); }
.goal.done .state { color: var(--green); }
.goal.locked .badge { border-color: #cdb9e2; filter: grayscale(0.6); opacity: 0.8; }
.goal.locked .state { color: var(--soft); }
.goal.locked .what { background: #fbf8fe; }

/* ---------------------------------------------------------------- zookeeper */
.keeper { background: linear-gradient(#fff3c4, var(--paper)); }
.keeper h2 { font-size: clamp(32px, 5vw, 48px); }
.job {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 6px 0 var(--gold-dark);
}
.job img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.job h3 { display: flex; align-items: center; gap: 8px; margin: 14px 16px 4px; }
.job p { margin: 0 16px 18px; color: var(--soft); }
.cta.center { justify-content: center; margin-top: 32px; text-align: center; }

/* ---------------------------------------------------------------- why */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  padding: 28px;
  margin: 0 auto 48px;
  max-width: none;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, #8e3fb8, var(--deep) 80%);
  box-shadow: 0 8px 0 var(--night), 0 16px 40px rgba(58, 23, 96, 0.25);
}
.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px 16px;
  border-radius: 20px;
  background: rgba(255, 246, 208, 0.08);
  border: 3px solid rgba(255, 217, 74, 0.55);
  text-align: center;
  color: var(--cream);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}
.stats .ic {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--gold);
}
.stats b {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  margin-top: 6px;
  color: var(--gold);
  text-shadow: 0 4px 0 var(--night), 0 0 24px rgba(255, 217, 74, 0.45);
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
.reason {
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 4px 0 var(--line), 0 8px 24px rgba(58, 23, 96, 0.06);
}
.reason h3 { margin-top: 10px; }
.reason p { margin: 0; color: var(--soft); }
.reason.story { background: var(--deep); }
.reason.story h3 { color: var(--gold); }
.reason.story p { color: var(--cream); }

/* ---------------------------------------------------------------- gallery */
.gallery { padding-left: 0 !important; padding-right: 0 !important; background: var(--night); }
.gallery h2 { color: var(--cream); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 28px;
}
.shots figure { position: relative; margin: 0; overflow: hidden; }
.shots figure:first-child { grid-column: span 2; grid-row: span 2; }
.shots img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figure:first-child img { aspect-ratio: auto; }
.shots figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(42, 20, 70, 0.85));
  color: var(--cream);
  font-weight: bold;
  font-size: 17px;
}

/* ---------------------------------------------------------------- creators */
.creators {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 48px;
  background: #e8f6ff;
}
.side-pic { width: 100%; border-radius: 22px; border: 5px solid #fff; box-shadow: 0 12px 32px rgba(58, 23, 96, 0.2); }
.creators h2 { text-align: left; }
.creators p { font-size: 18px; }

dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 5px solid var(--gold);
  border-radius: 22px;
  padding: 8px 24px 20px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgba(42, 20, 70, 0.7); }
dialog h2 { text-align: left; font-size: 26px; padding-right: 36px; }
dialog h3 { margin-top: 18px; }
dialog ul, dialog ol { padding-left: 22px; margin: 0; }
dialog li { margin-bottom: 6px; }
.close-row { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 0; }
.close {
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--deep);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------------------------------------- make a wish */
.wish {
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 246, 208, 0.08);
  border: 2px dashed rgba(255, 217, 74, 0.6);
}
.wish label { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: bold; color: var(--gold); }
.wish .hint { margin: 4px 0 10px; font-size: 16px !important; opacity: 0.85; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.idea {
  font: inherit;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.wish textarea {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  font: inherit;
  font-size: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

/* ---------------------------------------------------------------- support */
.support {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 48px;
  background: var(--deep);
  color: var(--cream);
}
.support h2 { color: var(--cream); text-align: left; }
.support p { font-size: 18px; }
.support .fine { font-size: 14px; opacity: 0.75; margin-top: 18px; }

footer {
  padding: 28px 16px 36px;
  text-align: center;
  color: var(--soft);
  font-size: 15px;
}
footer p { margin: 4px 0; }
footer .made { font-size: 17px; font-weight: bold; color: var(--deep); margin-bottom: 10px; }
footer .made .ic { color: #ff6f91; }

/* ---------------------------------------------------------------- 404 */
.lost {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding: 48px 16px;
  overflow: hidden;
  background: var(--night);
}
.lost-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.55; }
.lost-card {
  position: relative;
  max-width: 620px;
  padding: 32px 28px;
  border-radius: 28px;
  border: 5px solid var(--gold);
  background: var(--paper);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lost .code { margin: 0; font-size: clamp(64px, 14vw, 120px); font-weight: bold; line-height: 1; color: var(--purple); text-shadow: 0 5px 0 var(--gold); }
.lost h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 12px; }
.lost p { font-size: 18px; color: var(--soft); }
.lost .btn.ghost { color: var(--deep); box-shadow: inset 0 0 0 3px var(--deep); }
.tracks { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.tracks .ic { width: 34px; height: 34px; }
.tracks .ic:nth-child(1) { transform: rotate(-20deg) translateY(8px); opacity: 0.5; }
.tracks .ic:nth-child(2) { transform: rotate(-10deg); opacity: 0.75; }
.tracks .ic:nth-child(3) { transform: rotate(0deg) translateY(-8px); }

/* ---------------------------------------------------------------- FAQ */
.faq-list { max-width: 900px; margin: 28px auto 0; }
.faq details {
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 var(--line);
}
.faq summary {
  padding: 18px 22px;
  font-size: 19px;
  font-weight: bold;
  color: var(--deep);
  cursor: pointer;
  list-style-position: inside;
}
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 17px; color: #4d3d63; }

/* ---------------------------------------------------------------- privacy banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 20px;
  border: 4px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(42, 20, 70, 0.35);
  font-size: 15px;
}
.consent p { margin: 0; }
.consent-buttons { display: flex; gap: 10px; flex: none; }
.consent .btn[data-consent="no"] { background: #efe6f7; box-shadow: 0 3px 0 #cdb9e2; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .consent { flex-direction: column; align-items: stretch; text-align: left; }
  .consent-buttons .btn { flex: 1; justify-content: center; }
}

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px 56px; }
.legal h1 { font-size: 36px; }
.legal h2 { text-align: left; font-size: 22px; margin-top: 1.6em; }
.todo { background: #fff3c4; border: 2px dashed var(--gold-dark); border-radius: 12px; padding: 12px 16px; }
.fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* ---------------------------------------------------------------- model licence */
.legal.licence { max-width: 1040px; }
.licence h1 span, .licence h2 span { color: var(--soft); font-weight: normal; }
.two, .clauses > li { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.licence [lang='de'] { color: #4a3a5e; }
.licence h2 [lang='de'], .licence label [lang='de'] { color: var(--soft); }
.parties span[lang='de'] { display: block; margin-top: 8px; }
.todo span[lang='de'] { display: block; margin-top: 4px; }
.clauses { padding: 0; margin: 0; list-style: none; counter-reset: clause; }
.clauses > li { counter-increment: clause; padding: 14px 0; border-top: 2px solid var(--line); }
.clauses h3 { margin: 0 0 6px; font-size: 18px; }
.clauses h3::before { content: counter(clause) '. '; }
.clauses p { margin: 0 0 8px; }
.clauses ol { padding-left: 22px; margin: 0 0 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.fields .wide { grid-column: 1 / -1; }
.licence-form label { font-weight: bold; }
.fields label span { font-weight: normal; }
.licence-form input:not([type='checkbox']) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  font-weight: normal;
  color: var(--ink);
  background: #fff;
  border: 2px solid #cdb9e2;
  border-radius: 12px;
}
.licence-form.checked input:invalid { border-color: #c0392b; background: #fff1ef; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: normal !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--purple); }
.check span[lang='de'] { display: block; }
.send-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.btn.ghost-dark { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 3px var(--deep); }
.fine span[lang='de'] { display: block; margin-top: 6px; }
@media (max-width: 760px) {
  .two, .clauses > li, .fields { grid-template-columns: 1fr; gap: 10px; }
  .two { gap: 0; }
}
@media print {
  .top, footer, .skip, .send-row, #licence-note, .no-print, .consent { display: none !important; }
  .legal.licence { max-width: none; padding: 0; }
  .licence { font-size: 11pt; }
  .licence h1 { font-size: 20pt; margin-top: 0; }
  .licence h2 { font-size: 14pt; }
  .clauses > li { break-inside: avoid; gap: 18px; padding: 8px 0; }
  .two, .clauses > li, .fields { grid-template-columns: 1fr 1fr; }
  .licence-form input:not([type='checkbox']) { border: 0; border-bottom: 1px solid #888; border-radius: 0; padding: 4px 0; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .goals { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
  .goals::before { left: 39px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 5px dotted #cdb9e2; }
  .goal { flex-direction: row; align-items: stretch; gap: 20px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots figure:first-child { grid-row: span 1; }
  .creators, .support { grid-template-columns: 1fr; gap: 28px; }
  .grid.four, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 260px; text-align: center; justify-content: center; }
  .hero::before { background: linear-gradient(180deg, rgba(42, 20, 70, 0.92) 0%, rgba(58, 23, 96, 0.75) 55%, rgba(58, 23, 96, 0) 85%); }
  .cta { justify-content: center; }
  .top nav a:not(.btn) { display: none; }
  .support, .creators { text-align: center; }
  .support h2, .creators h2 { text-align: center; }
  .wish { text-align: left; }
  .ic.huge { width: 88px; height: 88px; }
}
@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr; }
  .shots figure:first-child { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.four, .grid.three { grid-template-columns: 1fr; }
  .stats { padding: 16px; gap: 10px; }
  .stats li:last-child { grid-column: 1 / -1; }
  .safe .grid.four { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .ic.big { width: 52px; height: 52px; }
  .goal { gap: 12px; }
  .goal .badge { width: 60px; height: 60px; border-width: 4px; }
  .goal .badge .ic { width: 36px; height: 36px; }
  .goals::before { left: 27px; }
  .btn.big { font-size: 20px; padding: 14px 26px; }
}
