/* FELLUMIRA – Website Stylesheet
   Warmer, ungefaehrlicher Zauberwald: dunkles Waldgruen, gluehendes Orange
   (Bruzzel) und leuchtendes Türkis (Fjella) als Akzentfarben. */

:root {
  --forest-dark: #0f1f18;
  --forest: #17301f;
  --forest-light: #234433;
  --cream: #f6efe0;
  --ember: #ff8a3d;
  --ember-glow: #ffb35c;
  --teal: #4fd6c4;
  --teal-glow: #8ff0e1;
  --text-soft: #d9e5d9;
  --max-width: 1100px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(90deg, rgba(7, 24, 17, .06), rgba(7, 24, 17, .36) 36%, rgba(7, 24, 17, .36) 64%, rgba(7, 24, 17, .06)),
    url('../bilder/bg-treehouse-frame-wide-v2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-soft);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 2026 visual refresh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 22, 15, .04), rgba(8, 22, 15, .32));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(15, 47, 34, .08) 0%, rgba(5, 15, 10, .1) 56%, rgba(3, 10, 7, .28) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ember-glow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 242, 230, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 48, 31, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest-dark);
}

.logo .logo-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo .logo-wordmark {
  height: 58px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-dark);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.82;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--ember);
}

.main-nav .ext-icon {
  font-size: 0.8em;
  opacity: 0.7;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(23, 48, 31, 0.15);
  border-radius: 999px;
  padding: 3px;
  margin-left: 4px;
}

.lang-switch a {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--forest-dark);
  opacity: 0.7;
  font-weight: 600;
}

.lang-switch a.active {
  background: var(--ember);
  color: #fff;
  opacity: 1;
}

@media (max-width: 640px) {
  .logo {
    gap: 10px;
  }
  .logo .logo-icon {
    width: 42px;
    height: 42px;
  }
  .logo .logo-wordmark {
    height: 40px;
    max-width: 130px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(248, 242, 230, 0.98);
    border-bottom: 1px solid rgba(23, 48, 31, 0.08);
    padding: 8px 24px 18px;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 8px 0;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: 90px 0 clamp(140px, 22vw, 280px);
  overflow: hidden;
  background-size: cover;
  min-height: min(760px, 82vh);
  display: flex;
  align-items: center;
  background-position: center 42%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 183, 91, .08), transparent 30%),
    linear-gradient(90deg, rgba(8, 22, 15, .88) 0%, rgba(8, 22, 15, .48) 48%, rgba(8, 22, 15, .14) 76%),
    linear-gradient(180deg, rgba(8, 22, 15, .18) 45%, var(--forest-dark) 100%);
}

.hero-kicker,
.section-eyebrow {
  display: block;
  color: var(--ember-glow);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .73rem;
  font-weight: 800;
}

.hero-kicker { margin-bottom: 14px; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-ghost {
  color: var(--cream);
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(10, 28, 19, .35);
  backdrop-filter: blur(8px);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(255, 138, 61, 0.35);
}

.hero .wordmark {
  max-width: 380px;
  width: 70%;
  margin: 0 auto 6px;
}

.hero .wordmark-text {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  line-height: 1.1;
  color: var(--cream);
  background: linear-gradient(120deg, var(--ember-glow) 0%, var(--cream) 45%, var(--teal-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(255, 179, 92, 0.3);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--cream);
  margin: 0 0 14px;
  font-weight: 600;
}

.hero .container.align-left {
  text-align: left;
}

.hero .tagline-single {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--cream);
  opacity: 0.95;
  margin: 0;
  max-width: 560px;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-soft);
}

.badge {
  display: inline-block;
  background: rgba(79, 214, 196, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal-glow);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-glow));
  color: var(--forest-dark);
  box-shadow: 0 6px 20px rgba(255, 138, 61, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-glow);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Sections */

section {
  padding: clamp(68px, 8vw, 104px) 0;
}

section .section-eyebrow { text-align: center; margin-bottom: 8px; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--cream);
  text-align: center;
  margin-bottom: 8px;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-soft);
  opacity: 0.9;
}

/* Character cards */

.characters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.character-card {
  background: var(--forest-light);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.character-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 3px solid var(--ember);
}

.character-card.fjella img {
  border-color: var(--teal);
}

.character-card h3 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 1.3rem;
}

.character-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  opacity: 0.9;
}

/* Follow / social */

.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-card {
  background: var(--forest-light);
  border-radius: var(--radius);
  padding: 20px 26px;
  min-width: 160px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-card .status {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--teal-glow);
  opacity: 0.85;
}

/* About / world */

.about-section {
  padding: 38px 0 90px;
}

.about-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(42px, 6vw, 72px) clamp(22px, 5vw, 62px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 164, 84, .18), transparent 24%),
    radial-gradient(circle at 86% 38%, rgba(79, 214, 196, .14), transparent 28%),
    linear-gradient(145deg, rgba(35, 68, 51, .98), rgba(12, 31, 22, .98));
  border: 1px solid rgba(255, 211, 146, .15);
  box-shadow: 0 35px 90px rgba(3, 12, 7, .55), inset 0 1px rgba(255, 255, 255, .08);
}

.about-heading { position: relative; max-width: 680px; margin: 0 auto; }
.about-character {
  position: absolute;
  right: -38px;
  top: 8px;
  width: clamp(130px, 18vw, 215px);
  filter: drop-shadow(0 18px 25px rgba(0,0,0,.3));
  transform: rotate(3deg);
  z-index: 2;
  clip-path: inset(0 0 0 8px);
}

.about-ranko {
  position:absolute;
  left:-36px;
  top:12px;
  width:clamp(145px,20vw,235px);
  height:240px;
  overflow:hidden;
  z-index:1;
  opacity:.72;
  border-radius:0 50% 50% 0;
  -webkit-mask-image:linear-gradient(90deg,#000 48%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 48%,transparent 100%);
}
.about-ranko img { width:100%; height:100%; object-fit:cover; object-position:58% center; }

.about-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2px 2px at 92% 24%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 82%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 88%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(2px 2px at 50% 6%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(120px 120px at 12% 90%, rgba(143, 240, 225, 0.18), transparent 70%),
    radial-gradient(140px 140px at 90% 10%, rgba(255, 179, 92, 0.15), transparent 70%);
}

.about-title {
  position: relative;
  text-align: center;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--cream);
  margin: 0 0 12px;
}

.about-intro {
  position: relative;
  text-align: center;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  color: var(--text-soft);
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.about-card {
  text-align: left;
  padding: 30px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease;
}
.about-card:hover { transform: translateY(-5px); border-color: rgba(255,179,92,.3); }

.about-icon {
  width: 54px;
  height: 54px;
  margin: 0 0 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--ember-glow));
}

.about-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--cream);
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

.about-closing {
  position: relative;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--cream);
}

.about-cta-wrap {
  position: relative;
  text-align: center;
}

.about-cta {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  box-shadow: 0 12px 26px rgba(255, 179, 92, 0.25);
}

.about-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Two visual expressions */
.styles-section {
  position:relative;
  background:linear-gradient(180deg,rgba(5,17,11,.62),rgba(10,31,22,.42));
}
.style-showcase { display:grid; grid-template-columns:1fr; gap:20px; max-width:1000px; margin:0 auto; }
.style-world {
  position:relative;
  min-height:430px;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:clamp(30px,5vw,58px);
  border-radius:32px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 28px 70px rgba(0,0,0,.38);
}
.style-world-soft {
  background:
    radial-gradient(circle at 80% 42%,rgba(255,188,107,.2),transparent 34%),
    linear-gradient(125deg,#503021 0%,#2b211b 54%,#17251d 100%);
}
.style-world-vivid {
  background:
    radial-gradient(circle at 18% 45%,rgba(87,217,193,.18),transparent 36%),
    linear-gradient(235deg,#153f34 0%,#152d25 52%,#151e18 100%);
}
.style-copy { position:relative; z-index:3; width:52%; }
.style-world-vivid .style-copy { margin-left:auto; }
.style-number { display:block; position:absolute; top:-50px; left:-12px; font-family:Georgia,serif; font-size:6rem; line-height:1; color:rgba(255,255,255,.045); }
.style-label { color:var(--ember-glow); font-size:.7rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.style-world-vivid .style-label { color:var(--teal-glow); }
.style-copy h3 { color:var(--cream); font-family:Georgia,serif; font-size:clamp(1.6rem,3vw,2.35rem); line-height:1.16; margin:9px 0 16px; }
.style-copy p { color:var(--text-soft); margin:0; max-width:500px; }
.style-characters { position:absolute; z-index:2; width:48%; top:2%; bottom:-6%; display:flex; align-items:flex-end; justify-content:center; }
.style-characters-soft { right:-1%; }
.style-characters-vivid { left:-1%; }
.style-characters img { position:relative; width:58%; height:94%; object-fit:contain; filter:drop-shadow(0 20px 22px rgba(0,0,0,.42)); }
.style-characters img + img { width:53%; margin-left:-19%; transform:translateY(7%); }
.style-characters-vivid img:first-child { z-index:2; }
.style-characters-vivid img + img { z-index:1; }
.style-bridge { display:flex; align-items:center; justify-content:center; gap:14px; color:rgba(246,239,224,.62); text-transform:uppercase; letter-spacing:.15em; font-size:.67rem; }
.style-bridge span { width:70px; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.25)); }
.style-bridge span:last-child { transform:scaleX(-1); }
.styles-closing { text-align:center; max-width:660px; margin:34px auto 0; color:var(--cream); font-family:Georgia,serif; font-size:1.15rem; font-style:italic; }

/* Places */
.places-section { background: linear-gradient(180deg, rgba(6,18,12,.28), rgba(6,18,12,.68)); }
.place-comparisons { display:grid; gap:34px; }
.place-comparison { padding:clamp(24px,4vw,40px); border-radius:30px; background:rgba(8,27,19,.9); border:1px solid rgba(255,255,255,.1); box-shadow:0 26px 65px rgba(0,0,0,.36); }
.place-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:24px; }
.place-heading > div { flex:0 0 auto; }
.place-heading span { color:var(--ember-glow); font-size:.68rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.place-heading h3 { margin:3px 0 0; color:var(--cream); font-family:Georgia,serif; font-size:clamp(1.55rem,3vw,2.15rem); }
.place-heading p { max-width:520px; margin:0; color:var(--text-soft); font-size:.92rem; }
.place-views { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.place-view { position:relative; margin:0; overflow:hidden; min-height:330px; border-radius:22px; background:#10251b; border:1px solid rgba(255,255,255,.1); }
.place-view img { width:100%; height:330px; object-fit:cover; transition:transform .5s ease; }
.place-view:hover img { transform:scale(1.025); }
.place-view figcaption { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 18px; background:linear-gradient(90deg,rgba(255,179,92,.1),rgba(79,214,196,.08)); }
.place-view figcaption strong { color:var(--cream); font-family:Georgia,serif; }
.place-view figcaption span { color:var(--text-soft); opacity:.74; font-size:.75rem; text-align:right; }
.place-view-book { border-color:rgba(255,179,92,.22); }
.place-view-vivid { border-color:rgba(79,214,196,.22); }

/* Magic and values */
.magic-story {
  padding: clamp(34px,6vw,66px);
  border-radius:32px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:clamp(30px,6vw,70px);
  background:rgba(8,27,19,.9);
  border:1px solid rgba(143,240,225,.14);
  box-shadow:0 30px 80px rgba(0,0,0,.38);
}
.magic-copy .section-eyebrow, .family-copy .section-eyebrow { text-align:left; }
.magic-copy h2, .family-copy h2 { text-align:left; font-family:Georgia,serif; font-size:clamp(1.8rem,3.5vw,2.6rem); line-height:1.18; margin:10px 0 20px; }
.magic-copy p { color:var(--text-soft); margin:0 0 14px; }
.magic-values { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.magic-values div { display:flex; flex-direction:column; justify-content:center; min-height:120px; padding:20px; border-radius:20px; background:linear-gradient(145deg,rgba(79,214,196,.12),rgba(255,179,92,.08)); border:1px solid rgba(255,255,255,.08); }
.magic-values strong { color:var(--cream); font-family:Georgia,serif; font-size:1.15rem; }
.magic-values span { color:var(--text-soft); opacity:.8; font-size:.82rem; }

/* Parents and children */
.family-panel { position:relative; min-height:470px; display:flex; align-items:center; overflow:hidden; border-radius:32px; padding:clamp(34px,6vw,68px); background:linear-gradient(110deg,#f7edda 0%,#e8f3ec 100%); box-shadow:0 30px 80px rgba(0,0,0,.38); }
.family-copy { width:64%; position:relative; z-index:2; }
.family-copy h2 { color:var(--forest-dark); }
.family-copy p { color:#405348; font-size:1.02rem; }
.family-panel > img { position:absolute; right:-3%; bottom:-12%; width:40%; max-height:115%; object-fit:contain; filter:drop-shadow(0 22px 25px rgba(20,48,33,.22)); }
.family-tags { display:flex; flex-wrap:wrap; gap:9px; margin:24px 0 28px; }
.family-tags span { padding:7px 13px; border-radius:999px; color:#294737; background:rgba(255,255,255,.72); border:1px solid rgba(23,48,31,.1); font-size:.82rem; font-weight:700; }

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-character { width:105px; right:-24px; top:12px; opacity:.72; }
  .about-ranko { width:105px; height:150px; left:-22px; top:18px; opacity:.42; }
  .about-heading { padding-right: 40px; }
  .hero { min-height: 640px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(8,22,15,.9), rgba(8,22,15,.35)), linear-gradient(180deg, transparent 45%, var(--forest-dark)); }
  .place-heading { align-items:flex-start; flex-direction:column; gap:10px; }
  .place-views { grid-template-columns:1fr; }
  .magic-story { grid-template-columns:1fr; }
  .magic-values { grid-template-columns:1fr 1fr; }
  .family-panel { min-height:620px; align-items:flex-start; }
  .family-copy { width:100%; }
  .family-panel > img { width:58%; right:-10%; opacity:.72; }
  .style-world { min-height:610px; align-items:flex-start; }
  .style-copy, .style-world-vivid .style-copy { width:100%; margin:0; }
  .style-characters { width:88%; height:58%; top:auto; bottom:-3%; left:6%; right:auto; opacity:.88; }
}

@media (max-width: 480px) {
  .magic-values { grid-template-columns:1fr; }
  .family-panel > img { width:72%; opacity:.32; }
}

@media (max-width: 900px) {
  body {
    background-image:
      linear-gradient(rgba(8, 27, 19, .78), rgba(8, 27, 19, .78)),
      url('../bilder/bg-treehouse-frame-v1.png');
    background-position: center center;
    background-size: auto 100vh;
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(217, 229, 217, 0.7);
}

.site-footer a {
  color: rgba(217, 229, 217, 0.8);
  margin: 0 10px;
}

.legal-note {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Legal pages */

.legal-page {
  padding: 70px 0 90px;
}

.legal-page h1 {
  color: var(--cream);
  margin-bottom: 6px;
}

.legal-page h2 {
  text-align: left;
  font-size: 1.2rem;
  margin-top: 34px;
  color: var(--ember-glow);
}

.legal-page p, .legal-page li {
  color: var(--text-soft);
}

.placeholder {
  background: rgba(255, 138, 61, 0.14);
  border: 1px dashed var(--ember);
  color: var(--ember-glow);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}

/* Entdeckerwald – empty foundation for future content */
.explorer-page { background:var(--forest-dark); min-height:100vh; }
.explorer-page::before, .explorer-page::after { display:none; }
.explorer-page .main-nav a[aria-current="page"] { color:var(--ember); opacity:1; }
.explorer-hero { position:relative; padding:0; height:clamp(300px,48vw,650px); overflow:hidden; background:#10251b; }
.explorer-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,22,15,.08) 38%,rgba(8,22,15,.92) 100%); }
.explorer-hero img { width:100%; height:100%; object-fit:cover; object-position:center 42%; }
.explorer-stage {
  position:relative;
  min-height:clamp(760px,105vh,1180px);
  padding:clamp(55px,8vw,100px) 24px;
  background-color:#0d2118;
  background-image:linear-gradient(90deg,rgba(7,24,17,.08),rgba(7,24,17,.32) 36%,rgba(7,24,17,.32) 64%,rgba(7,24,17,.08)),url('../bilder/bg-treehouse-frame-wide-v2.png');
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  background-attachment:fixed;
}
.explorer-content { position:relative; z-index:2; width:min(760px,60vw); min-height:clamp(620px,82vh,920px); margin:0 auto; }
.explorer-footer { background:#0a1912; }
@media (max-width:900px) {
  .explorer-stage { background-image:linear-gradient(rgba(8,27,19,.5),rgba(8,27,19,.5)),url('../bilder/bg-treehouse-frame-v1.png'); background-size:auto 100%; background-position:center top; background-attachment:scroll; }
  .explorer-content { width:min(620px,88vw); }
}

/* 4 Gewinnt gegen Bruzzel */

.c4-game,
.ws-game,
.mm-game,
.ls-game,
.mc-game {
  position: relative;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(24, 46, 34, 0.6), rgba(9, 22, 16, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ws-game,
.mm-game,
.ls-game,
.mc-game {
  margin-top: clamp(80px, 10vw, 120px);
}

.c4-intro {
  max-width: 560px;
  margin: 0 auto 28px;
}

.c4-intro h2 {
  margin-bottom: 10px;
}

.c4-difficulty {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.c4-token-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
  width: fit-content;
}

.c4-token-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.c4-token-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.c4-token-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.c4-token-btn:hover {
  transform: translateY(-1px);
}

.c4-token-btn.is-active {
  border-color: var(--ember-glow);
  box-shadow: 0 0 0 2px rgba(255, 179, 92, 0.25);
}

.c4-diff-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.c4-diff-btn:hover {
  color: var(--cream);
}

.c4-diff-btn.is-active {
  background: var(--ember);
  color: var(--forest-dark);
}

.c4-table {
  display: grid;
  grid-template-columns: min(190px, 40vw) 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}

.c4-bruzzel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: min(190px, 40vw);
}

.c4-speech-bubble {
  position: relative;
  background: var(--cream);
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  min-height: 2.6em;
}

.c4-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
}

.c4-bruzzel-img {
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.c4-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.c4-status {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.c4-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 7 / 6;
  padding: 10px;
  border-radius: 26px;
  background:
    repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.07) 0px, rgba(0, 0, 0, 0.07) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 9px),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(160deg, var(--forest-light), var(--forest) 55%, var(--forest-dark));
  border: 1px solid rgba(255, 214, 150, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 214, 150, 0.16),
    0 22px 46px rgba(0, 0, 0, 0.45),
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 -2px 5px rgba(255, 255, 255, 0.04),
    inset 0 0 0 6px rgba(15, 31, 24, 0.32);
}

.c4-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E");
  background-position: top 3px left 3px, top 3px right 3px, bottom 3px right 3px, bottom 3px left 3px;
  background-size: 22px 22px, 22px 22px, 22px 22px, 22px 22px;
}

.c4-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(1.6px 1.6px at 1.5% 50%, rgba(255, 225, 170, 0.55), transparent 60%),
    radial-gradient(1.6px 1.6px at 98.5% 35%, rgba(255, 225, 170, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 45% 1.5%, rgba(255, 225, 170, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 98.5%, rgba(255, 225, 170, 0.4), transparent 60%);
}

.c4-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.c4-cell::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(10, 26, 18, 0.92) 0%, rgba(6, 16, 11, 0.96) 70%, rgba(4, 10, 7, 0.98) 100%);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.65),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(143, 240, 225, 0.14);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.c4-board.is-thinking .c4-cell,
.c4-board.is-over .c4-cell {
  cursor: default;
}

.c4-disc {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c4-disc[data-state="player"] {
  transform: scale(1);
  background: var(--teal) url('../bilder/spielstein-pluffo-v1.png') center / cover no-repeat;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 5px 5px -3px rgba(0, 0, 0, 0.4);
}

.c4-disc[data-state="bruzzel"] {
  transform: scale(1);
  background: var(--ember) url('../bilder/spielstein-ranko-v1.png') center / cover no-repeat;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 5px 5px -3px rgba(0, 0, 0, 0.4);
}

.c4-board[data-token="ranko"] .c4-disc[data-state="player"] {
  background-image: url('../bilder/spielstein-ranko-v1.png');
}

.c4-board[data-token="ranko"] .c4-disc[data-state="bruzzel"] {
  background-image: url('../bilder/spielstein-pluffo-v1.png');
}

.c4-cell.is-win .c4-disc {
  box-shadow: 0 0 0 3px var(--cream), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.c4-cell:not(.is-filled):hover::before {
  background: radial-gradient(circle at 50% 42%, rgba(255, 196, 120, 0.4) 0%, rgba(10, 26, 18, 0.85) 72%, rgba(6, 16, 11, 0.94) 100%);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 196, 120, 0.4),
    0 0 12px rgba(255, 179, 92, 0.28);
}

.c4-restart {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 179, 92, 0.25);
}

.c4-restart:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .c4-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .c4-bruzzel {
    order: 2;
    width: min(140px, 55vw);
  }
  .c4-board-wrap {
    order: 1;
  }
}

/* Waldwesen suchen mit Pilko */

.ws-intro {
  max-width: 560px;
  margin: 0 auto 28px;
}

.ws-intro h2 {
  margin-bottom: 10px;
}

.ws-difficulty {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.ws-diff-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ws-diff-btn:hover {
  color: var(--cream);
}

.ws-diff-btn.is-active {
  background: var(--teal);
  color: var(--forest-dark);
}

.ws-table {
  display: grid;
  grid-template-columns: min(190px, 40vw) 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}

.ws-pilko {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: min(190px, 40vw);
}

.ws-speech-bubble {
  position: relative;
  background: var(--cream);
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  min-height: 2.6em;
}

.ws-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
}

.ws-pilko-img {
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.ws-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.ws-status {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.ws-placement-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 18px;
}

.ws-ship-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.ws-ship-info {
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
}

.ws-ship-info span {
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 4px;
}

.ws-placement-actions {
  display: flex;
  gap: 8px;
}

.ws-rotate-btn,
.ws-auto-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.ws-rotate-btn:hover,
.ws-auto-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ws-boards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 30px);
}

.ws-board-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ws-board-title {
  margin: 0;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 700;
}

.ws-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 6px),
    linear-gradient(160deg, #123b3a, #0c2a2c 55%, #081d1f);
  border: 1px solid rgba(180, 240, 225, 0.2);
  box-shadow:
    0 0 0 1px rgba(180, 240, 225, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.4),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ws-cell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.ws-cell::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 5px;
  background: rgba(6, 22, 22, 0.55);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease;
}

.ws-board-enemy .ws-cell {
  cursor: pointer;
}

.ws-board-enemy.is-thinking .ws-cell,
.ws-board-enemy.is-over .ws-cell,
.ws-board-enemy.is-placement .ws-cell {
  cursor: default;
}

.ws-board-enemy .ws-cell:not([data-shot]):hover::before {
  background: radial-gradient(circle at 50% 45%, rgba(255, 196, 120, 0.4) 0%, rgba(6, 22, 22, 0.7) 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.4);
}

.ws-board-own .ws-cell.preview-valid::before {
  background: rgba(143, 240, 225, 0.35);
  box-shadow: inset 0 0 0 1px rgba(143, 240, 225, 0.6);
}

.ws-board-own .ws-cell.preview-invalid::before {
  background: rgba(255, 122, 90, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 90, 0.6);
}

/* Wesen-Grafik: liegt über den Zellen, spannt genau die belegten Felder */
.ws-wesen-overlay {
  position: relative;
  z-index: 3;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}

.ws-wesen-overlay.is-found {
  filter: drop-shadow(0 0 8px rgba(255, 196, 120, 0.75)) saturate(0.7) brightness(0.8);
  opacity: 0.9;
}

/* Fund-Markierung: liegt über allem, auch über der Wesen-Grafik */
.ws-shot-mark {
  position: absolute;
  z-index: 4;
  inset: 28%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.ws-shot-mark[data-shot="miss"] {
  opacity: 1;
  transform: scale(1);
  background: radial-gradient(circle, rgba(225, 248, 244, 0.95), rgba(150, 210, 205, 0.4) 70%, transparent 100%);
  box-shadow: 0 0 0 2px rgba(180, 230, 225, 0.55);
}

.ws-shot-mark[data-shot="hit"] {
  opacity: 1;
  transform: scale(1);
  background: radial-gradient(circle, var(--ember-glow), var(--ember) 70%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ws-restart {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 179, 92, 0.25);
}

.ws-restart:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .ws-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ws-pilko {
    order: 2;
    width: min(140px, 55vw);
  }
  .ws-board-wrap {
    order: 1;
  }
  .ws-board {
    width: min(300px, 84vw);
  }
}

/* Memory gegen Fjella */

.mm-intro {
  max-width: 560px;
  margin: 0 auto 28px;
}

.mm-intro h2 {
  margin-bottom: 10px;
}

.mm-difficulty {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.mm-diff-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mm-diff-btn:hover {
  color: var(--cream);
}

.mm-diff-btn.is-active {
  background: var(--teal);
  color: var(--forest-dark);
}

.mm-table {
  display: grid;
  grid-template-columns: min(190px, 40vw) 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}

.mm-fjella {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: min(190px, 40vw);
}

.mm-speech-bubble {
  position: relative;
  background: var(--cream);
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  min-height: 2.6em;
}

.mm-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
}

.mm-fjella-img {
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.mm-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.mm-score {
  margin: 0;
  color: var(--ember-glow);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.mm-status {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.mm-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

.mm-board[data-pairs="16"] {
  grid-template-columns: repeat(8, 1fr);
  max-width: 680px;
}

.mm-card {
  position: relative;
  aspect-ratio: 3 / 2;
  perspective: 800px;
  cursor: pointer;
}

.mm-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.mm-card.is-flipped .mm-card-inner,
.mm-card.is-matched .mm-card-inner {
  transform: rotateY(180deg);
}

.mm-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.mm-card-face.is-back {
  background-image: url('../bilder/memory-kartenrueckseite.png');
}

.mm-card-face.is-front {
  transform: rotateY(180deg);
}

.mm-card:not(.is-flipped):not(.is-matched):hover .mm-card-face.is-back {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 196, 120, 0.5);
}

.mm-card.is-matched .mm-card-face.is-front {
  filter: saturate(0.7) brightness(0.92);
}

.mm-card.is-matched {
  cursor: default;
}

.mm-card.is-matched.is-matched-player .mm-card-face.is-front {
  box-shadow: 0 0 0 2px var(--teal-glow), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.mm-card.is-matched.is-matched-fjella .mm-card-face.is-front {
  box-shadow: 0 0 0 2px var(--ember-glow), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.mm-board.is-locked .mm-card:not(.is-flipped):not(.is-matched) {
  cursor: default;
}

.mm-restart {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 179, 92, 0.25);
}

.mm-restart:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .mm-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .mm-fjella {
    order: 2;
    width: min(140px, 55vw);
  }
  .mm-board-wrap {
    order: 1;
  }
  .mm-board[data-pairs="16"] {
    grid-template-columns: repeat(4, 1fr);
    width: min(360px, 92vw);
  }
}

/* Mancala gegen Moora */

.mc-intro {
  max-width: 560px;
  margin: 0 auto 28px;
}

.mc-intro h2 {
  margin-bottom: 10px;
}

.mc-difficulty {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.mc-diff-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mc-diff-btn:hover {
  color: var(--cream);
}

.mc-diff-btn.is-active {
  background: #b98a52;
  color: var(--forest-dark);
}

.mc-table {
  display: grid;
  grid-template-columns: min(190px, 40vw) 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}

.mc-moora {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(190px, 40vw);
}

.mc-speech-bubble {
  position: relative;
  background: var(--cream);
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  min-height: 2.6em;
}

.mc-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
}

.mc-moora-img {
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.mc-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mc-status {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.mc-board {
  display: grid;
  grid-template-columns: minmax(46px, 68px) repeat(6, 1fr) minmax(46px, 68px);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 2.6 / 1;
  padding: 12px;
  border-radius: 22px;
  background:
    repeating-linear-gradient(97deg, rgba(0, 0, 0, 0.08) 0px, rgba(0, 0, 0, 0.08) 1px, transparent 1px, transparent 5px),
    linear-gradient(160deg, #4a3820, #2c2011 55%, #1c140a);
  border: 1px solid rgba(184, 138, 82, 0.28);
  box-shadow:
    0 0 0 1px rgba(184, 138, 82, 0.14),
    0 20px 42px rgba(0, 0, 0, 0.4),
    inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mc-pit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5c4426, #33240f 72%);
  box-shadow: inset 0 4px 9px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mc-pit.is-player {
  cursor: pointer;
}

.mc-pit.is-player:hover {
  box-shadow: inset 0 4px 9px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(184, 138, 82, 0.55), 0 0 14px rgba(184, 138, 82, 0.3);
}

.mc-board.is-locked .mc-pit.is-player,
.mc-pit.is-player.is-empty {
  cursor: default;
}

.mc-pit.is-empty {
  opacity: 0.55;
}

.mc-pit.is-opponent {
  cursor: default;
}

.mc-pit.is-last-move {
  box-shadow: inset 0 4px 9px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 196, 120, 0.55), 0 0 14px rgba(255, 196, 120, 0.3);
}

.mc-store.is-last-move {
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 196, 120, 0.55), 0 0 16px rgba(255, 196, 120, 0.3);
}

.mc-store {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 20px;
  background: linear-gradient(165deg, #4d3a20, #26190d);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.3);
  color: var(--cream);
  padding: 8px 4px;
}

.mc-store-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  text-align: center;
}

.mc-store-count {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
}

.mc-restart {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 179, 92, 0.25);
}

.mc-restart:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .mc-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .mc-moora {
    order: 2;
    width: min(140px, 55vw);
  }
  .mc-board-wrap {
    order: 1;
  }
  .mc-board {
    grid-template-columns: minmax(38px, 52px) repeat(6, 1fr) minmax(38px, 52px);
    aspect-ratio: 2.1 / 1;
  }
}

/* Pilkos Leuchtspur */

.ls-intro {
  max-width: 560px;
  margin: 0 auto 28px;
}

.ls-intro h2 {
  margin-bottom: 10px;
}

.ls-difficulty {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.ls-diff-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ls-diff-btn:hover {
  color: var(--cream);
}

.ls-diff-btn.is-active {
  background: var(--ember-glow);
  color: var(--forest-dark);
}

.ls-table {
  display: grid;
  grid-template-columns: min(190px, 40vw) 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}

.ls-pilko {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(190px, 40vw);
}

.ls-speech-bubble {
  position: relative;
  background: var(--cream);
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  min-height: 2.6em;
}

.ls-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
}

.ls-pilko-img {
  width: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.ls-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ls-score {
  margin: 0;
  color: var(--ember-glow);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.ls-status {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.ls-board {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 5px),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(160deg, var(--forest-light), var(--forest) 55%, var(--forest-dark));
  border: 1px solid rgba(255, 214, 150, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 214, 150, 0.14),
    0 22px 46px rgba(0, 0, 0, 0.42),
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 6px rgba(15, 31, 24, 0.3);
}

.ls-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 35 C11 23 9 11 21 5' stroke='%23e2c48c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M11 29 q6 -4 4 -10' stroke='%23e2c48c' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3Ccircle cx='21' cy='5' r='1.8' fill='%23e2c48c' opacity='0.6'/%3E%3C/svg%3E");
  background-position: top 4px left 4px, top 4px right 4px, bottom 4px right 4px, bottom 4px left 4px;
  background-size: 24px 24px, 24px 24px, 24px 24px, 24px 24px;
  transform: rotate(0deg);
}

.ls-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(1.6px 1.6px at 1.5% 50%, rgba(255, 225, 170, 0.5), transparent 60%),
    radial-gradient(1.6px 1.6px at 98.5% 35%, rgba(255, 225, 170, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 45% 1.5%, rgba(255, 225, 170, 0.4), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 98.5%, rgba(255, 225, 170, 0.35), transparent 60%);
}

.ls-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: radial-gradient(circle at 38% 32%, #24402f, #142418 75%);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.2s ease, transform 0.15s ease;
}

.ls-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.ls-cell .ls-label {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--cream);
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ls-cell .ls-spark {
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, var(--ember-glow) 60%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(255, 196, 120, 0.55);
  animation: ls-spark-pulse 2.2s ease-in-out infinite;
}

@keyframes ls-spark-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.ls-cell .ls-obstacle {
  width: 54%;
  height: 40%;
  border-radius: 40% 40% 50% 50%;
  background: linear-gradient(160deg, #5c4a34, #362a1c);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.ls-cell.is-obstacle {
  cursor: default;
  background: radial-gradient(circle at 38% 32%, #1c2a1f, #0e150f 75%);
}

.ls-cell.is-start {
  background: radial-gradient(circle at 40% 35%, rgba(255, 224, 170, 0.55), #2b3f2a 70%);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 214, 150, 0.5);
}

.ls-cell.is-goal {
  background: radial-gradient(circle at 40% 35%, rgba(200, 170, 255, 0.4), #2a2540 70%);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(200, 170, 255, 0.5);
}

.ls-cell.is-path {
  background: radial-gradient(circle at 40% 35%, rgba(255, 214, 150, 0.65), rgba(143, 240, 197, 0.35) 75%);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 214, 150, 0.6), 0 0 10px rgba(255, 196, 120, 0.35);
}

.ls-cell.is-current {
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 246, 216, 0.85), 0 0 16px rgba(255, 214, 150, 0.55);
}

.ls-cell.is-invalid {
  animation: ls-shake 0.3s ease;
}

@keyframes ls-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.ls-board.is-finished .ls-cell {
  cursor: default;
}

.ls-restart {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest-dark);
  background: linear-gradient(120deg, var(--teal-glow), var(--ember-glow));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 179, 92, 0.25);
}

.ls-restart:hover {
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .ls-cell .ls-spark {
    animation: none;
  }
}

@media (max-width: 640px) {
  .ls-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ls-pilko {
    order: 2;
    width: min(140px, 55vw);
  }
  .ls-board-wrap {
    order: 1;
  }
}
