/* Unicorn Regenboog Race - pages on cauldron.one
   Self-contained: no external fonts, scripts or trackers. */

:root {
  --sky-1: #4aa8f5;
  --sky-2: #9fd3ff;
  --sky-3: #e6f4ff;
  --bg: #f6fbff;
  --card: #ffffff;
  --ink: #241d4a;
  --muted: #4d4775;
  --line: rgba(36, 29, 74, 0.1);
  --pink: #c72a6c;
  --pink-soft: #ffd6e8;
  --purple: #6a3fd1;
  --purple-soft: #e6dcff;
  --mint-soft: #d4f7e6;
  --yellow-soft: #fff1bf;
  --blue-soft: #d6ecff;
  --orange-soft: #ffe0c7;
  --gold: #f5b700;
  --dark: #15110f;
  --maxw: 1160px;
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(36, 40, 90, 0.35);
  --rainbow: linear-gradient(90deg, #ff5f8f, #ffb13d, #ffe04d, #5fdc9a, #4fb3ff, #9a7bff);
  --outline: 0 2px 0 #3b2a8f, 2px 0 0 #3b2a8f, -2px 0 0 #3b2a8f, 0 -2px 0 #3b2a8f, 2px 2px 0 #3b2a8f, -2px 2px 0 #3b2a8f, 2px -2px 0 #3b2a8f, -2px -2px 0 #3b2a8f, 0 5px 0 #3b2a8f, 0 12px 26px rgba(40, 40, 120, 0.35);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--purple); }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--round); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ---------- Language handling ----------
   Content exists in both languages; the inactive one is hidden.
   Index: English shows by default, even without JS.
   Privacy (.both-nojs): without JS both languages stay visible. */
html:not([data-lang="nl"]) body [lang="nl"] { display: none !important; }
html[data-lang="nl"] body [lang="en"] { display: none !important; }
html.both-nojs:not(.js) body [lang="nl"] { display: revert !important; }

/* ---------- Top bar (back to cauldron.one + language pill) ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
}
.home-link {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 5px 12px 5px 5px; border-radius: 999px;
}
.home-link img { width: 26px; height: 26px; border-radius: 8px; }
.home-link:hover { color: var(--ink); background: #fff; }

.lang {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.lang button {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang button[aria-pressed="true"] { background: var(--purple); color: #fff; }
html:not(.js) .lang { display: none; }

/* ---------- Sky + clouds ---------- */
.sky {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.cloud {
  position: absolute; pointer-events: none;
  width: 220px; height: 70px; border-radius: 999px; background: #fff; opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(60, 110, 180, 0.18));
  animation: float 26s linear infinite alternate;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud::before { width: 100px; height: 100px; top: -50px; left: 36px; }
.cloud::after { width: 76px; height: 76px; top: -34px; right: 36px; }
.c1 { top: 16%; left: -40px; transform: scale(0.8); }
.c2 { top: 8%; right: 6%; transform: scale(0.55); animation-duration: 34s; opacity: 0.75; }
.c3 { bottom: 18%; left: 58%; transform: scale(0.7); animation-duration: 30s; opacity: 0.8; }
@keyframes float { from { translate: -20px 0; } to { translate: 40px 0; } }

.cloud-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none;
  background:
    radial-gradient(60px 50px at 5% 100%, var(--bg) 98%, transparent),
    radial-gradient(90px 70px at 18% 100%, var(--bg) 98%, transparent),
    radial-gradient(70px 55px at 32% 100%, var(--bg) 98%, transparent),
    radial-gradient(110px 80px at 48% 100%, var(--bg) 98%, transparent),
    radial-gradient(80px 60px at 64% 100%, var(--bg) 98%, transparent),
    radial-gradient(100px 75px at 80% 100%, var(--bg) 98%, transparent),
    radial-gradient(70px 55px at 95% 100%, var(--bg) 98%, transparent);
}

/* ---------- Hero ---------- */
.hero { padding: 104px 0 120px; }
.hero-rainbow {
  position: absolute; left: 50%; top: 56%; width: min(1200px, 150vw);
  translate: -50% -50%; opacity: 0.55; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, 0.78); border-radius: 999px; padding: 6px 14px;
  margin: 0 0 18px;
}
.hero-kicker::before {
  content: ""; width: 26px; height: 8px; border-radius: 4px; background: var(--rainbow);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 18px; font-weight: 800; color: #fff;
  text-shadow: var(--outline);
}
.hero h1 .accent { display: block; color: #fff3b0; }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; margin: 0 0 26px;
  color: var(--ink); background: rgba(255, 255, 255, 0.7); padding: 14px 18px; border-radius: 16px;
}
.game-name { font-weight: 800; }

.device {
  position: relative; padding: 12px; border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #efe6ff);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: rotate(-2deg);
}
.device img { border-radius: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.device::after {
  content: ""; position: absolute; inset: -8px; border-radius: 36px; z-index: -1;
  background: var(--rainbow); filter: blur(18px); opacity: 0.55;
}

/* ---------- Store badges (text only, no official logos) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark); color: #fff; border-radius: 14px; padding: 9px 18px 9px 14px;
  min-height: 56px; line-height: 1.15; cursor: default;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.badge svg { flex: none; }
.badge small { display: block; font-size: 0.72rem; opacity: 0.85; letter-spacing: 0.02em; }
.badge strong { display: block; font-size: 1.12rem; font-family: var(--round); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 20px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 12px;
}
.section-title {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 auto 18px; max-width: 20em; font-weight: 800;
}
.section-intro { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto clamp(32px, 5vw, 56px); font-size: 1.08rem; }

.rainbow-rule { height: 6px; width: 90px; border-radius: 3px; background: var(--rainbow); margin: 0 auto 22px; }

/* Story */
.story {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.story-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; border: 1px solid var(--line);
}
.story-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.wishlist { list-style: none; margin: 0; padding: 0; }
.wishlist li {
  position: relative; padding: 8px 0 8px 30px; border-top: 1px dashed var(--line); color: var(--muted);
  font-family: var(--round);
}
.wishlist li:first-child { border-top: 0; }
.wishlist li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--rainbow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 4' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 4' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.story-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 18px; }
.story-text p { font-size: 1.1rem; color: var(--muted); margin: 0 0 16px; }
.story-text .sign { font-family: var(--round); font-weight: 700; color: var(--ink); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature.gold { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.feature.gold h3 { font-size: 1.45rem; }
.feature.gold p { font-size: 1.08rem; max-width: 34em; }
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature.gold { grid-column: auto; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; box-shadow: 0 10px 30px -20px rgba(36, 40, 90, 0.35);
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature .ico {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--tint, var(--blue-soft));
}
.feature h3 { margin: 0 0 8px; font-size: 1.22rem; line-height: 1.2; }
.feature p { margin: 0; color: var(--muted); }
.feature.gold {
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, #fff8dc, #ffffff 60%) padding-box,
    var(--rainbow) border-box;
}

/* Promise */
.promise-band { background: linear-gradient(180deg, var(--bg), #efe8ff 30%, #ffeaf4 100%); }
.promise {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.promise li {
  background: rgba(255, 255, 255, 0.85); border-radius: 18px; padding: 20px 16px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px -22px rgba(36, 40, 90, 0.5);
}
.promise .no {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--pink);
}
.promise strong { display: block; font-family: var(--round); font-size: 1.08rem; }
.promise span.sub { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.promise-note { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 42em; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.shot { margin: 0; }
.shot .frame {
  border-radius: 18px; padding: 8px; background: #fff; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.shot img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 10px; font-family: var(--round); }
.shots-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* Coming soon */
.coming {
  text-align: center; border-radius: 28px; padding: clamp(36px, 6vw, 60px) 24px;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
  position: relative; overflow: hidden;
}
.coming h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; text-shadow: var(--outline); }
.coming p { color: var(--ink); background: rgba(255, 255, 255, 0.75); display: inline-block; padding: 8px 16px; border-radius: 12px; margin: 0 0 24px; }
.coming .badges { justify-content: center; }
.coming .cloud { top: auto; bottom: 18px; left: 3%; right: auto; transform: scale(0.5); }
.coming > :not(.cloud) { position: relative; z-index: 1; }

/* ---------- Privacy page ---------- */
.page-hero { padding: 96px 0 110px; text-align: center; }
.page-hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.05; margin: 0 0 12px;
  text-shadow: var(--outline);
}
.page-hero p { margin: 0 auto; display: inline-block; color: var(--ink); background: rgba(255, 255, 255, 0.78); padding: 8px 16px; border-radius: 12px; }

.doc { max-width: 780px; margin: 0 auto; padding: 8px 24px 40px; }
html:not(.js) .doc article + article { margin-top: 64px; padding-top: 48px; border-top: 3px dashed var(--line); }
.doc h2 { font-size: 1.9rem; margin: 0 0 6px; }
.doc h3 { font-size: 1.25rem; margin: 34px 0 8px; }
.doc p, .doc li { color: #342d5c; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }
.summary {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px 24px; margin: 20px 0 8px; position: relative; overflow: hidden;
}
.summary::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--rainbow); }
.summary p { margin: 6px 0 12px; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px; }
.summary li { padding-left: 26px; position: relative; font-weight: 600; }
.summary li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%23157a4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.contact-box { background: var(--blue-soft); border-radius: 16px; padding: 16px 20px; }
.contact-box p { margin: 4px 0; }
.lang-jump { text-align: center; margin: 0 0 8px; }
html.js .lang-jump { display: none; }

/* ---------- Footer ---------- */
footer {
  background: var(--dark); color: rgba(255, 255, 255, 0.75); text-align: center;
  padding: 56px 24px; margin-top: clamp(40px, 6vw, 80px);
}
footer img { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px; }
footer .name { color: #fff; font-weight: 700; letter-spacing: 0.02em; }
footer .copy { font-size: 0.86rem; margin-top: 8px; }
footer a { color: #fff; }
footer a:hover { color: #ffd6e8; }
footer nav { margin-top: 12px; font-size: 0.92rem; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 88px 0 110px; }
  .hero-grid, .story { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .device { max-width: 560px; margin: 0 auto; transform: rotate(-1deg); }
  .story-card { order: 2; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 12px; }
  .home-link span { display: none; }
  .home-link { padding: 5px; }
  .shots { grid-template-columns: 1fr; }
  .doc { padding: 8px 16px 32px; }
  .badge { flex: 1 1 200px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feature { transition: none; }
}
