html, body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.back-btn {
  background: #eee;
  color: #555;
  padding: 10px 16px;
  font-size: 16px;
}

.progress {
  font-size: 16px;
  color: #888;
}

/* ── Game Board ── */
.game-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  /* Fill remaining viewport height below header */
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
}

.zones-row {
  display: flex;
  gap: 10px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.season-zone {
  flex: 1;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: bold;
  border: 4px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.zone-icon {
  font-size: 36px;
}

.zone-label {
  font-size: 24px;
}

.zone-months {
  font-size: 13px;
  opacity: 0.65;
  font-weight: normal;
}

.zone-spring {
  background: #ffe4ec;
  color: #d6336c;
}
.zone-summer {
  background: #e0f4ff;
  color: #1c7ed6;
}
.zone-autumn {
  background: #fff3e0;
  color: #e8590c;
}
.zone-winter {
  background: #e8eaf6;
  color: #5c6bc0;
}

.season-zone.highlight {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
.zone-spring.highlight { border-color: #d6336c; }
.zone-summer.highlight { border-color: #1c7ed6; }
.zone-autumn.highlight { border-color: #e8590c; }
.zone-winter.highlight { border-color: #5c6bc0; }

.season-zone.correct {
  border-color: var(--color-correct);
  background: #d4edda;
  color: #2d7a3a;
  transform: scale(1.06);
}

.season-zone.wrong {
  border-color: var(--color-wrong);
  background: #fde2e2;
  color: #c0392b;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ── Draggable Image ── */
.image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 0 0 auto;
}

.drag-card {
  background: var(--color-card);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  cursor: grab;
  touch-action: none;
  transition: transform 0.3s ease, box-shadow 0.15s;
  z-index: 10;
  position: relative;
}

.drag-card.dragging {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 100;
  transition: box-shadow 0.1s;
}

.drag-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.drag-card .fallback {
  font-size: 16px;
  color: #bbb;
  text-align: center;
}

.prompt {
  font-size: 16px;
  color: #888;
  text-align: center;
  font-weight: bold;
  flex: 0 0 auto;
  padding: 2px 0;
}

/* ── Info Overlay ── */
.info-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 150;
  justify-content: center;
  align-items: center;
}

.info-overlay.show {
  display: flex;
}

.info-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  max-width: 340px;
  width: 85%;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.info-card .info-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
}

.info-card .info-word {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.info-card .info-season {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
}

.info-card .info-season.spring { color: #d6336c; }
.info-card .info-season.summer { color: #1c7ed6; }
.info-card .info-season.autumn { color: #e8590c; }
.info-card .info-season.winter { color: #5c6bc0; }

.info-card .info-month {
  font-size: 20px;
  color: #888;
  font-weight: bold;
}

/* ── Feedback ── */
.feedback {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 200;
}

.feedback.show {
  opacity: 1;
}

.feedback.correct {
  color: var(--color-correct);
}

.feedback.wrong {
  color: var(--color-wrong);
}

/* ── Result ── */
.result {
  text-align: center;
  padding: 40px 20px;
}

.result h2 {
  font-size: 36px;
  color: var(--color-primary);
}

.result .score {
  font-size: 24px;
  margin: 20px 0;
}

.result .candy-get {
  font-size: 64px;
  margin: 20px 0;
}

.result button {
  margin: 10px 8px;
  font-size: 18px;
}
