/* Zahlenzucht (Modul 12) — Spezifische Stile fuer Layout, CreatureCard & SequenceTracker */

#screen-game {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 8px 14px 10px;
  gap: 8px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  background: var(--c-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--c-glass-b);
  border-radius: var(--r-l);
  min-height: 46px;
  flex-shrink: 0;
  z-index: 20;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hud-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hud .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--c-chalk);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hud .btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.fox-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-board);
  color: #38bdf8;
  font-size: 1.2rem;
  white-space: nowrap;
}

.fox-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.progress-track {
  width: 100%;
  max-width: 260px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.game-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 16px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.board-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.board-area .chalkboard {
  position: relative;
  margin: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  max-height: 100%;
  border: 4px solid #6b3f1a;
  box-shadow: var(--sh-depth);
}

.board-area .speech-bubble {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  pointer-events: none;
  opacity: 1;
}

.board-area .speech-bubble::before,
.board-area .speech-bubble::after {
  display: none;
}

.board-tag {
  font-family: var(--f-board);
  color: #7dd3fc;
  white-space: nowrap;
}

.board-instruction {
  color: var(--c-chalk);
  opacity: 0.9;
}

.interaction-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-l);
  padding: 16px;
  max-height: 100%;
}

.interaction-area .numpad-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interaction-area .numpad-section {
  margin: 0;
}

.interaction-area .action-bar {
  margin: 6px 0 0;
  width: 100%;
}

.hint-card {
  max-width: 420px;
  margin: var(--sp-m);
  background: linear-gradient(145deg, rgba(22, 12, 4, 0.97) 0%, rgba(40, 22, 8, 0.97) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--r-l);
  padding: var(--sp-l);
  text-align: center;
  box-shadow: var(--sh-gold), var(--sh-depth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hint-card h3 {
  font-family: var(--f-board);
  font-size: 1.4rem;
  color: #7dd3fc;
  margin: 0;
}

.hint-card p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--c-chalk);
  margin: 0;
}

.zz-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 12px;
}

.zz-creature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.zz-creature-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zz-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.zz-op-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  font-weight: 800;
  font-size: 1.05rem;
}

.zz-sequence-tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.zz-seq-node {
  min-width: 54px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  font-family: var(--f-board);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.zz-seq-target {
  background: rgba(244, 160, 32, 0.22);
  border-color: var(--c-gold);
  color: var(--c-gold-bright);
}

.zz-seq-target.is-solved {
  background: rgba(82, 196, 26, 0.25);
  border-color: var(--c-correct);
  color: #86efac;
}

.zz-seq-arrow {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.zz-visual-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.zz-dot {
  font-size: 1.25rem;
  line-height: 1;
}

.zz-dot-plus {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #fcd34d;
  font-weight: 700;
}

@media (max-width: 820px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    overflow-y: auto;
    align-items: start;
  }

  .board-area {
    height: auto;
  }

  .fox-badge span {
    display: none;
  }
}
