* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: 'Fredoka', sans-serif;
  touch-action: manipulation;
}

body {
  background: linear-gradient(180deg, #60A5FA 0%, #93C5FD 50%, #A7F3D0 85%, #4ADE80 100%);
}

.sky-bg {
  background: linear-gradient(180deg, #60A5FA 0%, #93C5FD 50%, #A7F3D0 85%, #4ADE80 100%);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  animation: floatCloud linear infinite;
}

@keyframes floatCloud {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-340px);
  }
}

.pokemon-container {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  will-change: transform;
}

.pokemon-inner {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
  transition: transform 0.15s ease;
}

.pokemon-container:hover .pokemon-inner,
.pokemon-container:active .pokemon-inner {
  transform: scale(1.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #facc15;
  backdrop-filter: blur(8px);
}

/* Base-10 Blocks & Visual Manipulatives */
.rod {
  width: 16px;
  height: 74px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fb923c, #f59e0b);
  border: 2px solid #b45309;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
}

.rod-cross::after {
  content: '';
  position: absolute;
  inset: -4px 5px;
  border-right: 4px solid #dc2626;
  transform: rotate(18deg);
}

.unit {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fde047;
  border: 2px solid #ca8a04;
  position: relative;
}

.unit-cross::after {
  content: '';
  position: absolute;
  inset: -2px 6px;
  border-right: 4px solid #dc2626;
  transform: rotate(28deg);
}

.ten-frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 6px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #3b82f6;
}

.pokeball-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444 0 50%, #fff 50% 100%);
  border: 2px solid #1f2937;
  position: relative;
}

.pokeball-dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: white;
  border: 2px solid #1f2937;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.helper-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #bfdbfe;
  min-width: 92px;
}

.helper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grass-line {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.4));
}