/* ==========================================================================
   RECHENDREIECKE — Modul 13 Theme Styles
   ========================================================================== */

.theme-rechendreieck {
  background-color: #101828;
  color: var(--c-chalk);
}

.theme-rechendreieck .intro-bg,
.theme-rechendreieck .levelup-bg {
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) blur(2px);
}

.theme-rechendreieck .fox-glow {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
}

.theme-rechendreieck .btn-start,
.theme-rechendreieck .btn-continue-big {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 14px 26px;
  font-family: var(--f-board);
  font-size: 1.25rem;
  cursor: pointer;
}

.theme-rechendreieck .board-panel {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.theme-rechendreieck .chalkboard-wrapper {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  flex: none;
  min-height: auto;
}

.theme-rechendreieck .chalkboard {
  min-height: auto;
  padding: 14px 18px;
  flex: none;
}

.theme-rechendreieck .numpad-section,
.theme-rechendreieck #next-task-section {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  max-width: 620px;
  margin: 6px auto 0;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}

.theme-rechendreieck .numpad-btn {
  width: 56px;
  height: 46px;
  font-size: 1.55rem;
}

/* ==================== TRIANGLE BOARD ==================== */
.rd-board {
  position: relative;
  width: 296px;
  height: 222px;
  margin: 4px auto 2px;
}

.rd-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rd-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 66px;
  height: 46px;
  padding: 0 10px;
  border-radius: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-family: var(--f-board);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rd-slot.is-inner {
  border-radius: 50%;
  min-width: 58px;
  height: 58px;
  background: radial-gradient(circle, #312e81, #1e1b4b);
  border-color: rgba(167, 139, 250, 0.55);
}

.rd-slot.is-outer {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: rgba(74, 242, 212, 0.45);
  color: #99f6e4;
}

.rd-slot.is-known {
  cursor: default;
  opacity: 0.96;
}

.rd-slot.is-hidden {
  border-style: dashed;
  border-color: #f4a020;
  color: #fde047;
}

.rd-slot.is-active {
  border-style: solid;
  border-color: #fde047;
  background: rgba(244, 160, 32, 0.28);
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 4;
}

.rd-slot.is-solved {
  border-style: solid;
  border-color: #52c41a;
  background: rgba(82, 196, 26, 0.28);
  color: #bbf7d0;
  cursor: default;
}

.rd-slot.is-wrong {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.3);
}

.rd-scaffold {
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(74, 242, 212, 0.12);
  border: 1.5px solid rgba(74, 242, 212, 0.45);
  color: #ccfbf1;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 480px) {
  .rd-board {
    width: 276px;
    height: 232px;
  }
  .rd-slot {
    min-width: 56px;
    height: 40px;
    font-size: 1.15rem;
  }
  .rd-slot.is-inner {
    min-width: 50px;
    height: 50px;
  }
}
