:root {
  font-family:
    ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  color: #073d9d;
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 4px solid #ff008c;
  outline-offset: 5px;
}
button {
  min-height: 46px;
  border: 0;
  background: #edf7ff;
  color: #0645a7;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 800;
}
button:hover {
  filter: brightness(1.05);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4vw;
  gap: 20px;
  position: relative;
  z-index: 3;
}
.logo {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 1000;
  letter-spacing: -3px;
  text-decoration: none;
  color: #0085ff;
  text-shadow:
    0 2px #fff,
    0 5px #0033ad,
    0 8px 8px #a8d5ff;
  transform: rotate(-5deg);
  position: relative;
}
.logo-dot {
  position: absolute;
  width: 12px;
  height: 18px;
  background: #ff009e;
  border-radius: 70% 30% 70% 30%;
  right: -18px;
  top: 0;
  transform: rotate(28deg);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.head-actions a {
  font-weight: 900;
  padding: 12px;
}
.head-actions button {
  font-size: 14px;
}
.stage {
  position: relative;
  max-width: 1600px;
  margin: auto;
  min-height: 740px;
  height: calc(100svh - 170px);
  max-height: 1050px;
  isolation: isolate;
}
.hero-copy {
  position: absolute;
  left: 7%;
  top: 10%;
  width: 37%;
  z-index: 2;
  pointer-events: none;
}
.hero-copy > * {
  pointer-events: auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #156db2;
}
h1 {
  font-size: clamp(54px, 6.7vw, 110px);
  line-height: 0.99;
  letter-spacing: -5px;
  margin: 22px 0;
  color: #0086fa;
  text-shadow:
    0 3px #37c9ff,
    0 6px #0045d4,
    0 10px 12px #c2ddff;
  transform: rotate(-3deg);
  font-weight: 1000;
}
h1 em {
  font-style: normal;
  color: #ff0094;
  text-shadow:
    0 3px #ff91d9,
    0 6px #bd0066,
    0 10px 15px #ffd4ed;
}
.hero-copy p {
  max-width: 340px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: #416795;
}
.hero-copy .hint {
  font-size: 13px;
  font-weight: 500;
}
.gloss {
  position: relative;
  border: 2px solid #ffffffab;
  border-radius: 42% 38% 36% 32% / 36% 42% 43% 41%;
  color: white;
  text-shadow: 0 3px 2px #0004;
  box-shadow:
    inset 0 5px 5px #ffffffa6,
    inset 0 -8px 8px #0002,
    0 8px 0 var(--edge),
    0 17px 19px var(--shadow);
  background:
    radial-gradient(ellipse at 28% 12%, #fff9, transparent 29%),
    linear-gradient(165deg, var(--light), var(--base) 60%, var(--dark));
  transition: transform 0.18s;
  overflow: visible;
}
.gloss:before {
  content: "";
  position: absolute;
  left: 15%;
  top: 7px;
  width: 42%;
  height: 9px;
  border-radius: 50%;
  background: #fff8;
  transform: rotate(-4deg);
}
.gloss:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 25px;
  background: var(--base);
  border-radius: 0 0 70% 80%;
  bottom: -14px;
  right: 20%;
  box-shadow: inset -3px -3px 4px #0002;
  z-index: -1;
}
.gloss:hover {
  transform: translateY(-3px) rotate(-1deg);
}
.gloss:active {
  transform: translateY(4px);
}
.pink {
  --light: #ff63ce;
  --base: #ff008e;
  --dark: #d50072;
  --edge: #a90059;
  --shadow: #ff008e30;
}
.yellow {
  --light: #ffe967;
  --base: #ffca00;
  --dark: #ff9c00;
  --edge: #e79300;
  --shadow: #ffbc0040;
}
.cyan {
  --light: #45efff;
  --base: #00baff;
  --dark: #008be9;
  --edge: #006cc4;
  --shadow: #00baff35;
}
.purple {
  --light: #c269ff;
  --base: #9d00ff;
  --dark: #7000cb;
  --edge: #5100aa;
  --shadow: #9000ff30;
}
.reveal {
  font-size: 21px;
  padding: 20px 33px;
  margin-top: 14px;
}
.theatre {
  position: absolute;
  right: 0;
  top: 0;
  width: 67%;
  height: 86%;
  overflow: hidden;
}
.character {
  position: absolute;
  width: 73%;
  aspect-ratio: 1;
  right: 9%;
  bottom: 1%;
  isolation: isolate;
}
.character img,
.character video,
.character #veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.character video {
  z-index: 1;
}
.character #veil {
  z-index: 2;
  touch-action: none;
  cursor: grab;
}
.character #veil:active {
  cursor: grabbing;
}
#weather {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.paint-ground {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 2%;
  height: 60px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 7px #46357822);
}
.paint-ground i {
  display: block;
  position: absolute;
  bottom: 0;
  width: 65%;
  height: 55px;
  border-radius: 60% 40% 52% 48%;
  background:
    radial-gradient(ellipse at 40% 10%, #fff9, transparent 28%),
    linear-gradient(#ff53c1, #ff008c 75%, #a8006e);
  box-shadow: inset 0 4px 4px #fff9;
  transform: rotate(-5deg);
}
.paint-ground i:nth-child(2) {
  left: 35%;
  bottom: -10px;
  width: 58%;
  height: 42px;
  background:
    radial-gradient(ellipse at 30% 12%, #fff9, transparent 30%),
    linear-gradient(#2eefff, #00aeff 75%, #007bdc);
  transform: rotate(6deg);
}
.paint-ground i:nth-child(3) {
  left: 12%;
  bottom: -16px;
  width: 38%;
  height: 35px;
  background:
    radial-gradient(ellipse at 30% 10%, #fff, transparent 27%),
    linear-gradient(#ffe65b, #ffc000 80%, #ff9c00);
}
.world-nav {
  position: absolute;
  bottom: 35px;
  left: 15%;
  right: 10%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  z-index: 5;
}
.world-nav button {
  width: 30%;
  height: 100px;
  font-size: clamp(20px, 2.3vw, 32px);
  transform: rotate(-3deg);
}
.world-nav button:nth-child(2) {
  transform: rotate(2deg);
}
.world-nav button:nth-child(3) {
  transform: rotate(-2deg);
}
.world-nav span {
  font-size: 55px;
  position: absolute;
  top: -40px;
  left: 40%;
  text-shadow: 0 5px 3px #0003;
}
.intro-tools {
  position: absolute;
  right: 5%;
  bottom: 165px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 6;
  font-size: 12px;
}
.intro-tools button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 40px;
  background: white;
  border: 1px solid #ddeafa;
}
.intro-tools label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.prototype {
  text-align: center;
  color: #57708d;
  font-size: 12px;
  padding: 0 20px;
}
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  padding: 16px;
}
footer button {
  background: none;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 32px;
  padding: 28px;
  max-width: 1040px;
  width: calc(100% - 32px);
  max-height: 92svh;
  box-shadow: 0 25px 100px #00246b40;
  color: #073d9d;
}
dialog::backdrop {
  background: #00224b55;
  backdrop-filter: blur(8px);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 15px 0;
}
.swatch {
  width: 46px;
  padding: 0;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #bdd1ee;
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 4px #063e9d;
}
.draw-area {
  position: relative;
  max-width: 590px;
  margin: auto;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 20px #1232;
  border-radius: 10px;
  overflow: hidden;
}
.draw-area img,
.draw-area canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.draw-area img {
  object-fit: contain;
  background: white;
}
.draw-area canvas {
  touch-action: none;
  mix-blend-mode: multiply;
  cursor: crosshair;
}
.discover-stage {
  height: min(46svh, 460px);
  display: grid;
  place-items: center;
}
.discover-stage video {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.clip-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}
.center {
  text-align: center;
}
.treasure-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px auto;
}
.treasure-form input {
  border: 2px solid #d3c1ff;
  border-radius: 18px;
  padding: 15px;
  max-width: 100%;
  text-transform: uppercase;
}
.chest {
  font-size: 100px;
  display: block;
  line-height: 1.4;
}
.gift {
  background: linear-gradient(120deg, #edfaff, #fff0fb);
  border-radius: 24px;
  padding: 24px;
  margin: 20px 0;
  font-size: 22px;
}
.parent-copy {
  max-width: 700px;
  line-height: 1.7;
}
.parent-copy h3 {
  margin-bottom: 4px;
}
#status {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #063e9d;
  color: white;
  border-radius: 16px;
  padding: 12px 22px;
  z-index: 20;
  max-width: 90%;
  display: none;
}
#status.show {
  display: block;
}
.nav-land {
  animation: land 0.85s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}
.nav-land:nth-child(2) {
  animation-delay: 0.12s;
}
.nav-land:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes land {
  0% {
    translate: 0 150px;
    scale: 0.8;
  }
  70% {
    translate: 0 -10px;
    scale: 1.04 0.93;
  }
  100% {
    translate: 0 0;
    scale: 1;
  }
}
@media (max-width: 720px) {
  header {
    padding: 20px;
    gap: 10px;
  }
  .head-actions {
    gap: 3px;
  }
  .head-actions button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .head-actions a {
    font-size: 13px;
    padding: 8px;
  }
  .stage {
    height: auto;
    min-height: 720px;
  }
  .hero-copy {
    left: 7%;
    top: 15px;
    width: 87%;
  }
  h1 {
    font-size: 52px;
    letter-spacing: -3px;
    max-width: 380px;
    margin: 16px 0;
  }
  .hero-copy p {
    font-size: 15px;
    max-width: 240px;
  }
  .reveal {
    font-size: 17px;
    padding: 16px 25px;
  }
  .hero-copy .hint {
    max-width: 145px;
    font-size: 11px;
  }
  .theatre {
    top: 245px;
    width: 100%;
    height: 335px;
    right: 0;
  }
  .character {
    width: 83%;
    right: -15%;
    bottom: 0;
  }
  .paint-ground {
    left: 2%;
    right: 2%;
  }
  .intro-tools {
    bottom: 135px;
    left: 5%;
    right: 5%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .world-nav {
    bottom: 25px;
    left: 5%;
    right: 5%;
    gap: 14px;
  }
  .world-nav button {
    height: 82px;
    font-size: 17px;
    width: 32%;
    padding: 12px 5px;
  }
  .world-nav span {
    font-size: 40px;
    top: -30px;
  }
  .prototype {
    font-size: 11px;
  }
  footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  dialog {
    padding: 18px;
    border-radius: 22px;
  }
  .panel-head h2 {
    font-size: 25px;
  }
  .toolbar button {
    padding: 10px 12px;
  }
  .toolbar .swatch {
    padding: 0;
  }
  .intro-tools label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body.reduced * {
  animation: none !important;
  transition: none !important;
}

.discover-stage {
  display: block;
}
.discover-stage video {
  display: block;
  max-height: 100%;
  min-height: 0;
}
.clip-title {
  margin: 12px 0;
}
.discover-stage + .clip-title + .toolbar {
  justify-content: center;
}

.confirm-dialog {
  max-width: 460px;
  padding: 30px;
}
.confirm-dialog p {
  font-size: 22px;
  line-height: 1.4;
}

.pink {
  --light: #ff20b1;
}
.yellow {
  --light: #ffdb00;
}
.cyan {
  --light: #00d5ff;
}
.purple {
  --light: #a91aff;
}
.gloss {
  background:
    radial-gradient(ellipse at 28% 7%, #ffffff99, transparent 19%),
    linear-gradient(165deg, var(--light), var(--base) 60%, var(--dark));
}

.memory-choice {
  border: 2px solid #dbeaff;
  border-radius: 20px;
  padding: 18px;
  margin: 24px 0;
}
.memory-choice label {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.memory-choice input {
  width: 22px;
  height: 22px;
}
.memory-choice p {
  font-size: 14px;
}
.parent-copy h4 {
  font-size: 18px;
  margin: 25px 0 0;
}
.parent-copy a {
  color: #0051bd;
  overflow-wrap: anywhere;
}

.panel-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
  padding: 4px 0;
}

.treasure-chest {
  position: relative;
  width: 240px;
  height: 200px;
  margin: 12px auto 25px;
  perspective: 650px;
  filter: drop-shadow(0 12px 10px #53288533);
}
.chest-body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 105px;
  border: 9px solid #ffbf00;
  border-radius: 12px 12px 30px 30px;
  background:
    radial-gradient(ellipse at 35% 14%, #e284ff, transparent 25%),
    linear-gradient(130deg, #a600ff, #7f00df 65%, #3f009f);
  box-shadow:
    inset 0 5px 3px #fff9,
    inset -7px -10px 8px #34007966,
    0 4px 0 #d77a00;
}
.chest-body i,
.chest-lid i {
  position: absolute;
  left: 23px;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, #ff9c00, #fff06c 40%, #ffb500 80%);
  box-shadow: 2px 0 2px #30156d55;
}
.chest-body i:nth-child(2),
.chest-lid i:nth-child(2) {
  left: auto;
  right: 23px;
}
.chest-body b {
  position: absolute;
  left: calc(50% - 19px);
  top: 12px;
  width: 38px;
  height: 42px;
  background: linear-gradient(135deg, #ffef65, #ffad00);
  border-radius: 8px 8px 14px 14px;
  box-shadow: 0 3px 0 #a96300;
}
.chest-body b:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 10px;
  height: 11px;
  background: #531271;
  border-radius: 50%;
}
.chest-body b:after {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 6px;
  height: 11px;
  background: #531271;
  border-radius: 2px;
}
.chest-lid {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 100px;
  border: 9px solid #ffbf00;
  border-radius: 85px 85px 8px 8px;
  background:
    radial-gradient(ellipse at 35% 20%, #f6b1ff, transparent 28%),
    linear-gradient(155deg, #c000ff, #7c00d8);
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1.3, 0.6, 1);
  z-index: 3;
  box-shadow:
    inset 0 5px 4px #fff9,
    0 3px 0 #c47b00;
  overflow: hidden;
}
.chest-inside {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 85px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(#fff291, #ffe300 40%, #a55800 75%);
  box-shadow: 0 0 0 8px #ffcf00;
}
.treasure-chest.is-open .chest-lid {
  transform: rotateX(-100deg) translateY(-4px);
}
.chest-body span {
  position: absolute;
  left: 60px;
  top: -9px;
  width: 18px;
  height: 45px;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(90deg, #00afff, #51e6ff 45%, #008de5);
  box-shadow: inset 2px 0 2px #fff8;
}
.treasure-chest.is-open {
  filter: drop-shadow(0 12px 10px #53288533) drop-shadow(0 0 18px #ffe76666);
}

#paint-film {
  position: absolute;
  width: 110%;
  height: auto;
  left: -5%;
  bottom: -7%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 6px #46357816);
}
#paint-film[hidden] {
  display: none;
}

html[lang="de"] noscript [lang="en"],
html[lang="en"] noscript [lang="de"] {
  display: none;
}
noscript p,
.load-failure {
  margin: 20px auto;
  padding: 18px;
  max-width: 720px;
  border: 3px solid #ff009d;
  border-radius: 20px;
  background: white;
}

.qr-notice {
  max-width: 720px;
  margin: 20px auto;
  padding: 18px;
  border-radius: 20px;
  background: #edf9ff;
  text-align: center;
}
