.skill-boosters {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.15), transparent 50%);
}

.skill-boosters .skill-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-boosters .skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.skill-boosters .skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.6), rgba(129, 140, 248, 0.6));
}

.skill-boosters .skill-card h3 {
  font-weight: 700;
}

.skill-boosters .skill-card p {
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 0;
}

.modal-edu .modal-content {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.modal-edu .modal-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-edu .modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-edu .modal-title {
  font-weight: 700;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 0.75rem;
  font-size: 1.75rem;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
}

.feedback-message {
  min-height: 1.5rem;
  font-weight: 600;
}

.pattern-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 2rem;
}

.pattern-slot {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  display: grid;
  place-items: center;
  font-size: 2rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pattern-slot.drag-over {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(34, 197, 94, 0.1);
}

.pattern-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pattern-option {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
  display: grid;
  place-items: center;
  font-size: 2rem;
  cursor: grab;
  user-select: none;
}

.clock-face {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid rgba(148, 163, 184, 0.4);
  margin: 0 auto;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 6px;
}

.clock-hand.hour {
  width: 8px;
  height: 60px;
}

.clock-hand.minute {
  width: 6px;
  height: 90px;
  background: rgba(96, 165, 250, 0.9);
}

.clock-center {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(56, 189, 248, 0.9);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.clock-markers {
  position: absolute;
  inset: 12px;
}

.clock-markers::before,
.clock-markers::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 14px;
  background: rgba(148, 163, 184, 0.4);
}

.clock-markers::after {
  top: auto;
  bottom: 0;
}

.clock-markers span {
  position: absolute;
  width: 2px;
  height: 10px;
  background: rgba(148, 163, 184, 0.3);
  left: 50%;
  top: 0;
  transform-origin: center 100px;
  transform: translateX(-50%) rotate(var(--marker-angle, 0deg));
}

.ruler {
  position: relative;
  width: 100%;
  height: 80px;
  background: repeating-linear-gradient(
    to right,
    rgba(148, 163, 184, 0.4),
    rgba(148, 163, 184, 0.4) 2px,
    transparent 2px,
    transparent 20px
  );
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.ruler::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 20px,
    rgba(148, 163, 184, 0.12) 20px,
    rgba(148, 163, 184, 0.12) 40px
  );
}

.measure-item {
  position: absolute;
  top: 18px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.7), rgba(56, 189, 248, 0.7));
}

.measure-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

.range-output {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.9);
}

.numberline-area {
  margin: 1.5rem 0;
}

.numberline-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(96, 165, 250, 0.35));
}

.numberline-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.9);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  transform: translate(-50%, -50%);
  transition: left 0.2s ease;
}

.numberline-ticks {
  position: relative;
  height: 32px;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
  pointer-events: none;
}

.numberline-ticks span {
  position: absolute;
  left: var(--tick-position);
  transform: translateX(-50%);
}

.numberline-ticks span::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: rgba(148, 163, 184, 0.4);
  transform: translateX(-50%);
}

.fraction-board {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
}

.fraction-segment {
  flex: 1;
  min-height: 70px;
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.fraction-segment:hover,
.fraction-segment:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.9);
  outline: none;
}

.fraction-segment.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.7), rgba(129, 140, 248, 0.7));
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.25);
}

.coordinate-plane {
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.75);
  margin: 0 auto;
}

.coordinate-cell {
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.coordinate-cell.axis-x,
.coordinate-cell.axis-y {
  background: rgba(56, 189, 248, 0.1);
}

.coordinate-cell.origin {
  background: rgba(244, 114, 182, 0.18);
}

.coordinate-cell:hover,
.coordinate-cell:focus-visible {
  background: rgba(56, 189, 248, 0.18);
  outline: none;
}

.coordinate-cell.selected::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.9));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.transform-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.transform-option {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.transform-option:hover,
.transform-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.9);
  outline: none;
}

.transform-option.active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.45), rgba(129, 140, 248, 0.45));
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 8px 18px rgba(96, 165, 250, 0.25);
}

.transform-option.incorrect {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.state-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.state-option {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.state-option:hover,
.state-option:focus-visible {
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
}

.state-option.selected {
  border-color: rgba(96, 165, 250, 0.85);
}

.state-option.correct {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.2);
}

.state-option.incorrect {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(248, 113, 113, 0.12);
}

@media (max-width: 576px) {
  .clock-face {
    width: 180px;
    height: 180px;
  }
  .clock-hand.hour {
    height: 52px;
  }
  .clock-hand.minute {
    height: 76px;
  }
}