:root {
  --cream: #f5ebe0;
  --cream-deep: #efe2d3;
  --pink: #e8b4b8;
  --pink-deep: #dd9aa0;
  --green: #a8c3a0;
  --green-deep: #8fb085;
  --ink: #6b5b4f;
  --ink-soft: #9a8b7d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

/* ===== Screens ===== */
.screen { position: fixed; inset: 0; display: none; }
.screen.is-active { display: block; }

/* ===== Startseite ===== */
#screen-start {
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fbf3ea, var(--cream));
  padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 24px);
}
#screen-start.is-active { display: flex; }
.start-inner { text-align: center; max-width: 420px; width: 100%; }
.kittens { font-size: clamp(40px, 12vw, 64px); margin-bottom: 8px; }
.kitten { display: inline-block; margin: 0 4px; }
.title { font-size: clamp(34px, 11vw, 52px); font-weight: 800; letter-spacing: .5px; }
.tagline { color: var(--ink-soft); margin: 6px 0 32px; font-size: 16px; }

.mode-buttons { display: flex; flex-direction: column; gap: 16px; }
.btn {
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 19px; font-weight: 700; color: #fff;
  padding: 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10); transition: transform .12s ease, filter .12s ease;
}
.btn small { font-size: 12px; font-weight: 600; opacity: .9; }
.btn:active { transform: scale(.97); filter: brightness(.97); }
.btn-pink { background: var(--pink); }
.btn-green { background: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--cream-deep); }

.sound-toggle {
  position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 18px;
  background: #fff; border: none; border-radius: 50%; width: 46px; height: 46px;
  font-size: 20px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* ===== Spielfeld ===== */
.field { position: absolute; inset: 0; overflow: hidden; }
.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 12px;
  font-size: 15px; color: var(--ink); pointer-events: none;
}
.hud strong { font-size: 18px; }
.hud-hearts { letter-spacing: 2px; font-size: 16px; }
.pause-btn {
  position: absolute; z-index: 5;
  top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.7); border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 16px; cursor: pointer;
}

/* ===== Pfote ===== */
.paw {
  position: absolute; width: 84px; height: 84px;
  transform: translate(-50%, -50%) scale(1); transform-origin: center;
  background: none; border: none; padding: 0; cursor: pointer;
  will-change: transform; touch-action: none;
}
.paw-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.12)); }

/* ===== Overlays ===== */
.overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107,91,79,.28); backdrop-filter: blur(3px);
  padding: 24px;
}
.overlay[hidden] { display: none; }
.card {
  background: var(--cream); border-radius: 24px; padding: 28px 24px;
  width: 100%; max-width: 340px; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}
.card h2 { font-size: 26px; margin-bottom: 6px; }
.result, .result-best { color: var(--ink-soft); font-size: 15px; }
.result strong, .result-best strong { color: var(--ink); font-size: 20px; }
