/* Murmelwahn – website. No external fonts or scripts. */
:root {
  --bg: #170b33;
  --bg2: #231048;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f1ff;
  --muted: #c9bde6;
  --violet: #7f54e0;
  --teal: #14b3bd;
  --orange: #ff8c33;
  --gold: #ffd652;
  --gold-deep: #db8519;
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #4a2190 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #0f4f68 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Language: show only the chosen one. */
html[data-lang="de"] [lang="en"]:not(html), html[data-lang="en"] [lang="de"]:not(html) { display: none !important; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 11, 51, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: #fff; }
.langs { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--violet); color: #fff; }

/* Buttons: plastic like the game */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 18px; text-decoration: none; color: #fff;
  font-weight: 900; font-size: 18px; line-height: 1.2;
  background: linear-gradient(#ffad66, var(--orange) 55%, #e6741d);
  box-shadow: 0 6px 0 #a3501a, 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 #a3501a, 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn small { display: block; font-weight: 700; font-size: 13px; opacity: .9; }
.btn.violet { background: linear-gradient(#a684f2, var(--violet) 55%, #6440c4); box-shadow: 0 6px 0 #3f2788, 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn.violet:hover { box-shadow: 0 4px 0 #3f2788, 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.apple { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("shots/menu.jpg") center / cover no-repeat;
  filter: blur(3px) saturate(1.1); opacity: .35; transform: scale(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 11, 51, .2), var(--bg) 96%);
}
.hero .wrap { text-align: center; }
.claim {
  display: inline-block; margin: 0 0 18px; padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(var(--gold), var(--gold-deep)); color: #4a2306;
  font-weight: 900; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 214, 82, .45);
}
.hero h1 {
  margin: 0 auto 8px; max-width: 900px;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.08; font-weight: 900; letter-spacing: -0.01em;
  background: linear-gradient(#fff6d6, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(219, 133, 25, .35));
}
.hero .logo { width: min(560px, 86vw); height: auto; margin: 28px auto 10px; filter: drop-shadow(0 10px 30px rgba(255, 170, 60, .35)); }
.hero .lead { max-width: 720px; margin: 12px auto 28px; color: var(--muted); font-size: 19px; }
.ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 48px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 8px; text-align: center;
}
.stat b { display: block; font-size: 30px; line-height: 1.1; color: var(--gold); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 700; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 10px; font-weight: 900; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 6px 0 6px; font-size: 21px; }
.feature p { margin: 0; color: var(--muted); }
.feature .emoji { font-size: 34px; }

/* Trailer */
.trailer {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 2px solid rgba(255, 214, 82, .6); box-shadow: 0 0 40px rgba(127, 84, 224, .5);
  background: #0b0520 url("trailer_poster.jpg") center / cover no-repeat; cursor: default;
}
.trailer.ready { cursor: pointer; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer .overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: linear-gradient(180deg, rgba(10, 4, 30, .25), rgba(10, 4, 30, .7));
}
.trailer .play {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(#ffad66, var(--orange)); box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  position: relative;
}
.trailer .play::after {
  content: ""; position: absolute; left: 36px; top: 27px;
  border-left: 30px solid #fff; border-top: 19px solid transparent; border-bottom: 19px solid transparent;
}
.trailer .note { max-width: 520px; margin: 0 auto; font-size: 14px; color: #e6dcff; display: none; }
.trailer .soon { font-size: 22px; font-weight: 900; margin: 0; display: none; }
.trailer.ready .note { display: block; }
.trailer.pending .soon { display: block; }
.trailer.pending .play { opacity: .5; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.world { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 4 / 3; }
.world img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.world:hover img { transform: scale(1.06); }
.world .badge {
  position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--teal); font-size: 12px; font-weight: 900; font-style: normal;
}
.world > span:last-child {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 12px; border-radius: 999px;
  background: rgba(23, 11, 51, .82); border: 1px solid rgba(255, 214, 82, .7); font-weight: 900; font-size: 15px;
}

/* Modes */
.mode { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-bottom: 44px; }
.mode:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.mode:nth-child(even) .shot { order: 2; }
.mode .shot img { border-radius: 18px; border: 2px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.mode h3 { font-size: 26px; margin: 0 0 6px; }
.mode .count { color: var(--gold); font-weight: 900; }
.mode p { color: var(--muted); margin: 8px 0; }
.mode ul { color: var(--muted); padding-left: 20px; margin: 8px 0 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Free vs full */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.version h3 { margin-top: 0; font-size: 24px; }
.version ul { padding-left: 20px; color: var(--muted); margin: 0; }
.version li { margin: 4px 0; }
.version.full { border-color: rgba(255, 214, 82, .6); box-shadow: 0 0 30px rgba(255, 214, 82, .15); }
.price { font-size: 34px; font-weight: 900; color: var(--gold); margin: 0 0 8px; }

/* Plain pages */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.page h2 { font-size: 24px; margin: 34px 0 8px; }
.page h3 { font-size: 18px; margin: 18px 0 4px; }
.page p, .page li { color: var(--muted); }
.page .meta { color: var(--muted); margin: 0; }
.page .wrap { max-width: 860px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 800; color: var(--text); }
details p { margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
footer .mada { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
footer .mada img { height: 34px; width: auto; }
footer nav { display: flex; gap: 18px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer nav a:hover { color: #fff; }

/* Small screens */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .mode, .mode:nth-child(even) { grid-template-columns: 1fr; }
  .mode:nth-child(even) .shot { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a.opt { display: none; }
  .g2, .g3, .versions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world img, .btn { transition: none; }
}
