:root {
  --dh-bg: #08121f;
  --dh-panel: rgba(7, 18, 31, 0.88);
  --dh-border: rgba(255, 255, 255, 0.16);
  --dh-ink: #f7f1df;
  --dh-soft: rgba(255, 255, 255, 0.76);
  --dh-accent: #ff8a3d;
  --dh-accent-2: #ffd166;
  --dh-correct: #39c97a;
  --dh-wrong: #ff5a67;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #16304d 0%, var(--dh-bg) 56%, #050b12 100%);
  color: var(--dh-ink);
  font-family: 'ProtestStrike-Regular', 'Arial Narrow Bold', sans-serif;
}

body {
  overflow: hidden;
}

#map {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #102846 0%, #08121f 100%);
}

.daily-habitat-shell {
  position: relative;
  z-index: 1000;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 108px 16px 20px;
  pointer-events: none;
}

/* Card-Hintergrund entfernt — die Erde mit dem Land soll voll sichtbar sein. */
.daily-habitat-card {
  width: min(820px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0 8px;
  pointer-events: none;
}
.daily-habitat-card > * { pointer-events: auto; }

/* Stats-Zeile fest oben — unter der Top-Menue-Bar (umgedreht zur normalen Layout-Position) */
.daily-habitat-topline {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.daily-habitat-badge {
  display: none; /* Modus-Badge ist redundant; Land-Name im Zentrum genuegt */
}

.daily-habitat-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.daily-habitat-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 6px;
  text-align: center;
}

.daily-habitat-stat strong {
  display: inline-block;
  font-family: 'RoadRage-Regular', Impact, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
}

.daily-habitat-stat span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Land-Name: gross, animiert eingeblendet wie der Tier-Name in den anderen Modi */
.daily-habitat-country {
  margin: 0 0 8px;
  font-family: 'RoadRage-Regular', Impact, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6),
               0 0 20px rgba(0, 0, 0, 0.4),
               0 8px 28px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}
.daily-habitat-country.is-animating {
  animation: countryStamp 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes countryStamp {
  0%   { transform: translateY(-18px) rotate(-6deg) scale(1.18); opacity: 0; }
  60%  { transform: translateY(2px)  rotate(-2deg) scale(0.98); opacity: 1; }
  100% { transform: translateY(0)    rotate(0)     scale(1);    opacity: 1; }
}

.daily-habitat-question {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.daily-habitat-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Buttons identisch zum Animal-Guess-Stil: rote Pille, weisse Border, weisse Schrift.
   Tier-Thumbnail gross, linksbuendig, schliesst mit der Pillen-Kurve ab. */
.daily-habitat-option {
  appearance: none;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 95, 86, 0.94), rgba(219, 56, 52, 0.96));
  color: #ffffff;
  min-height: 72px;
  padding: 4px 20px 4px 4px;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.daily-habitat-option-thumb {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.22);
}

.daily-habitat-option-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[dir="rtl"] .daily-habitat-option {
  padding: 4px 4px 4px 20px;
  justify-content: flex-end;
}
html[dir="rtl"] .daily-habitat-option-label { text-align: right; }

.daily-habitat-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 115, 106, 0.98), rgba(232, 70, 64, 0.98));
}

.daily-habitat-option.is-correct {
  border-color: rgba(199, 255, 220, 0.96);
  background: linear-gradient(180deg, rgba(36, 170, 99, 0.98), rgba(20, 122, 66, 0.98));
}

.daily-habitat-option.is-wrong {
  border-color: rgba(255, 218, 221, 0.96);
  background: linear-gradient(180deg, rgba(184, 43, 52, 0.98), rgba(118, 20, 28, 0.98));
}

.daily-habitat-option:disabled {
  cursor: default;
}

.daily-habitat-feedback {
  min-height: 0;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
}
.daily-habitat-feedback:empty {
  display: none;
}

.daily-habitat-feedback strong {
  color: var(--dh-ink);
}

.daily-habitat-feedback.is-correct strong {
  color: var(--dh-correct);
}

.daily-habitat-feedback.is-wrong strong {
  color: var(--dh-wrong);
}

.daily-habitat-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  background: rgba(3, 8, 14, 0.82);
  padding: 16px;
}

.daily-habitat-gate.is-visible {
  display: flex;
}

.daily-habitat-gate-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 26, 43, 0.98), rgba(7, 18, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.daily-habitat-gate-card h2 {
  margin: 0;
  font-family: 'RoadRage-Regular', Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.daily-habitat-gate-card p {
  margin: 12px 0 0;
  color: var(--dh-soft);
  font-size: 1rem;
}

.daily-habitat-gate-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.daily-habitat-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.daily-habitat-btn--primary {
  background: linear-gradient(135deg, var(--dh-accent), #ff5c40);
  color: #fff;
}

.daily-habitat-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dh-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
  .daily-habitat-shell {
    padding-top: 86px;
  }

  .daily-habitat-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-habitat-stats {
    justify-content: stretch;
  }

  .daily-habitat-stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .daily-habitat-options {
    grid-template-columns: 1fr;
  }
}
