@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/spielwiese/fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/spielwiese/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #e7f3d4;
  --panel: #fffaf3;
  --ink: #3a2418;
  --muted: #6b5344;
  --line: #ead9c4;
  --fox: #e37a2d;
  --meadow: #2f6b4f;
  --meadow-ink: #fffaf3;
  --crypt: #2b2233;
  --crypt-ink: #f3e3c3;
  --stories: #3b2f5c;
  --stories-ink: #fff3d6;
  --gold: #e8b86d;
  font-family: Nunito, ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(circle at 8% -8%, #fff6d8 0, transparent 42%), radial-gradient(circle at 100% 0, #cfe8f4 0, transparent 34%), linear-gradient(#f7fbff 0, var(--bg) 320px); color: var(--ink); line-height: 1.45; min-height: 100dvh; display: flex; flex-direction: column; font-weight: 700; }
a { color: inherit; }

.wrap { width: min(1040px, 100%); margin: 0 auto; padding: 0 16px; }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 36px 0 12px; }
.hero h1 { margin: 0; color: var(--fox); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 0.95; }
.hero h1 { display: flex; align-items: center; gap: 0.25em; }
.hero h1 .logo { width: 1.1em; height: 1.1em; border-radius: 0.26em; box-shadow: 0 6px 16px rgba(80, 50, 20, 0.2); flex: none; }
.hero p { margin: 8px 0 0; color: var(--ink); font-size: 1.2rem; font-weight: 700; max-width: 28em; }
.parents-btn {
  border: 0; cursor: pointer; background: var(--panel); color: var(--ink);
  font: inherit; font-weight: 800; border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 4px 0 #e7d3b0;
}
.parents-btn:hover, .parents-btn:focus-visible { transform: translateY(-1px); }


.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px 0 40px; }

.game {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(40, 25, 10, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game:hover, .game:focus-visible { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 18px 36px -18px rgba(40, 25, 10, 0.55); }
.game:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.game svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.game img.art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.game .text { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; }
.game h2 { margin: 0; font-size: 1.5rem; }
.game p { margin: 0; color: var(--muted); }
.game .meta { font-size: 0.9rem; }
.go {
  justify-self: start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.meadow .go { background: var(--meadow); color: var(--meadow-ink); }
.crypt .go { background: var(--crypt); color: var(--crypt-ink); }
.stories .go { background: var(--stories); color: var(--stories-ink); }
.dawn .go { background: #1c3a24; color: #e7f0dc; }
.watch .go { background: #2a2118; color: #f3e3c3; }
.bell .go { background: #5a1e1a; color: #f0dcae; }
.kogge .go { background: #7a2a22; color: #f6ead0; }
a.more-banner { text-decoration: none; box-sizing: border-box; }
h2.more-banner { margin: 0; }
.deep .go { background: #6a3a16; color: #f6dca0; }
.pixel .go { background: #24182a; color: #f0d9a8; }
.soul .go { background: #3a2418; color: #f6e2b8; }
.kiste .go { background: #8b5a34; color: #fffaf3; }
.ember .go { background: #6a2e14; color: #f8e6d8; }
.rules .go { background: #4a2c1c; color: #f6e2b8; }
.frenzy .go { background: #8a2420; color: #f8e6e0; }
.band { padding-top: 8px; padding-bottom: 0; }
.band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; }
.band p { margin: 6px 0 0; color: var(--muted); max-width: 36em; }
.games.experiment { padding-top: 14px; }
.battle .go { background: #6a1c18; color: #f8e6e0; }
.hours .go { background: #14241c; color: #d7f0c8; }
.plain { border-top: 6px solid var(--gold); }
.plain .go { background: var(--ink); color: var(--bg); }
#more { padding-top: 0; }
#more[hidden] { display: none; }

footer { margin-top: auto; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding-top: 16px; padding-bottom: 20px; color: var(--muted); font-size: 0.92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.legal { padding: 36px 0 48px; max-width: 46em; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 18px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal address { font-style: normal; }
.back { display: inline-block; margin-top: 24px; color: var(--muted); }
mark[data-fill] { background: #ffe08a; color: #2a1d14; padding: 0 4px; border-radius: 4px; }

@media (max-width: 720px) {
  .games { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}

/* The pictures move a little: stars twinkle, flames flicker, the sun turns, clouds and the butterfly drift. */
.game svg .tw { animation: card-twinkle 4s ease-in-out infinite; }
.game svg .flick { animation: card-flicker 1.8s ease-in-out infinite; }
.game svg .pulse { animation: card-pulse 3.2s ease-in-out infinite; }
.game svg .spin { animation: card-spin 40s linear infinite; }
.game svg .spin.slow { animation-duration: 90s; }
.game svg .drift { animation: card-drift 14s ease-in-out infinite; }
.game svg .drift.slow { animation-duration: 20s; }
.game svg .float { transform-box: fill-box; animation: card-float 3.4s ease-in-out infinite; }
.game svg .float.slow { animation-duration: 7s; }
@keyframes card-twinkle { 50% { opacity: 0.2; } }
@keyframes card-flicker { 0%, 100% { opacity: 1; } 40% { opacity: 0.78; } 70% { opacity: 0.92; } }
@keyframes card-pulse { 50% { opacity: 0.55; } }
@keyframes card-spin { to { transform: rotate(360deg); } }
@keyframes card-drift { 50% { transform: translateX(24px); } }
@keyframes card-float { 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
  .game svg * { animation: none !important; }
}

.banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: #12161c;
  color: #f4efe6;
  border: 1px solid #2a241c;
  min-height: 168px;
}
.banner svg { width: 100%; height: 100%; display: block; min-height: 168px; }
.banner-text { padding: 22px 26px; display: grid; align-content: center; gap: 8px; }
.banner .kicker { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; color: #e7b15a; font-size: 0.78rem; font-weight: 700; }
.banner h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #f7f1e6; }
.banner p { margin: 0; color: #c8bba8; }
.banner .go { justify-self: start; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: #1c3a24; color: #e7f0dc; font-weight: 700; }
.banner.frenzy { background: #140c0e; border-color: #3a1814; }
.banner.frenzy .go { background: #8a2420; color: #f8e6e0; }
@media (max-width: 720px) {
  .banner { grid-template-columns: 1fr; }
  .banner svg { max-height: 160px; object-fit: cover; }
}


.pvp {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #6a1c18;
  color: #f8e6e0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pvp span { font-weight: 500; opacity: 0.85; }
.pvp:hover, .pvp:focus-visible { filter: brightness(1.08); }

.more-wrap { padding: 0 0 36px; }
.more-banner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  text-align: left;
  border-radius: 26px;
  padding: 18px 22px;
  color: #fffaf3;
  font: inherit;
  background: linear-gradient(#d7a36e, #8b5a34);
  box-shadow: 0 7px 0 #6b4030;
}
.more-banner strong { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; }
.more-banner span { font-weight: 700; }
.more-banner[aria-expanded="true"] { box-shadow: 0 3px 0 #6b4030; transform: translateY(4px); }
#grown[hidden] { display: none; }

.sheet {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px;
  background: rgba(58, 36, 24, 0.28);
}
.sheet[hidden] { display: none; }
.paper {
  width: min(480px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.8), transparent 40%), linear-gradient(#fffaf3, #f3e6d4);
  box-shadow: 0 10px 0 #e7d3b0;
}
.paper h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--fox); }
.paper > p { margin: 0 0 16px; font-size: 1.15rem; line-height: 1.35; }
.feedback { display: grid; gap: 10px; margin: 4px 0 6px; padding-top: 14px; border-top: 2px dashed #e7d3b0; }
.feedback h3 { margin: 0; font-size: 1.3rem; color: var(--meadow); }
.feedback-row { display: grid; gap: 4px; font-size: 1.05rem; }
.feedback select, .feedback textarea {
  width: 100%; border: 2px solid #e7d3b0; border-radius: 16px; padding: 10px 12px;
  background: #fffaf3; color: var(--ink); font: inherit; font-weight: 700;
}
.feedback textarea { resize: vertical; min-height: 84px; }
.moods { display: flex; gap: 10px; }
.moods button {
  flex: 1; min-height: 52px; border: 2px solid #e7d3b0; border-radius: 999px;
  background: #fffaf3; font-size: 1.6rem; cursor: pointer;
}
.moods button[aria-pressed="true"] { border-color: var(--meadow); background: #dcebd9; }
.paper .meadow-go {
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px;
  background: var(--meadow); color: var(--meadow-ink); font: inherit; font-weight: 800; justify-self: stretch; text-align: center;
}
.paper .ghost { background: transparent; color: var(--ink); box-shadow: none; }
.feedback-status { margin: 0; min-height: 1.4em; font-size: 1.05rem; }
.paper .fine { margin: 8px 0 0; text-align: center; font-size: 0.95rem; color: #6b4634; }
.paper .fine a { color: inherit; }

.more-banner.archive {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 4px 0 #e7d3b0;
}
.more-banner.archive span { color: var(--muted); font-weight: 700; }
#archive[hidden] { display: none; }

#proto[hidden] { display: none; }
.proto-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-weight: 700; max-width: 40em; }

.dark .go { background: #10161c; color: #f0d9a8; }
.iron .go { background: #5b4a2c; color: #fbeed2; }
.front .go { background: #2c3a1c; color: #e4f2c8; }

/* The padding shorthands of .hero, .games, .more-wrap and .legal drop the side gutter of .wrap; restore it once the page is narrower than the wrap. */
@media (max-width: 1071px) {
  .hero, .games, .more-wrap, .legal { padding-left: 16px; padding-right: 16px; }
}
