/* ---------- Map ---------- */

.level-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 7vh, 60px);
  height: clamp(42px, 7vh, 60px);
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, #fff);
  font-size: clamp(1.5rem, 4.5vh, 2.2rem);
}

/* ---------- Clock ---------- */

.clock {
  display: block;
  width: min(220px, 60vw, 27vh);
  margin: 0 auto;
  user-select: none;
}

.clock.small { width: min(150px, 40vw, 20vh); }
.clock.interactive { touch-action: none; cursor: grab; }
.clock.interactive.dragging { cursor: grabbing; }

.clock .rim { fill: var(--c, var(--purple)); }
.clock .face { fill: #fff; }
.clock .tick { stroke: #B9BCCB; stroke-width: 1.5; stroke-linecap: round; }
.clock .tick.big { stroke: var(--ink); stroke-width: 3; }
.clock text { font-family: var(--font); font-size: 19px; font-weight: 800; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.clock .hand { stroke-linecap: round; }
.clock .hour { stroke: var(--purple); stroke-width: 9; }
.clock .minute { stroke: var(--pink); stroke-width: 6; }
.clock .pin { fill: var(--ink); }
.clock.correct .rim { fill: var(--green); }

.clock-fig { margin: 0; text-align: center; }
.clock-fig figcaption { margin-top: 2px; font-size: 1rem; font-weight: 800; color: color-mix(in srgb, var(--c) 70%, #000); }
.clock-pair { display: flex; justify-content: center; gap: 12px; }

.clock-steps { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }

.step-btn {
  padding: 4px 16px;
  border: 3px solid var(--c, var(--purple));
  border-radius: 999px;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c, var(--purple)) 50%, #000);
}

.step-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c, var(--purple)) 50%, #000); }
.step-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Day path & scene ---------- */

.c2-path {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.stop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  font-size: 1.05rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .1);
  opacity: .55;
}

.stop.now { opacity: 1; box-shadow: 0 0 0 4px var(--c); animation: pulse 1.2s ease-in-out infinite; }
.stop.ok, .stop.late { opacity: 1; }

.stop.ok::after, .stop.late::after {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.stop.ok::after { content: '✓'; background: var(--green); }
.stop.late::after { content: '!'; background: #FF8A6B; }

.c2-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: clamp(100px, 16vh, 160px);
  padding: 26px 20px 0;
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .08);
  overflow: hidden;
}

.period-morning { background: linear-gradient(#FFD27A, #FFF1C9 60%, #8EDB6E 60%, #5FC14A); }
.period-day { background: linear-gradient(#7FD3FF, #D4F4FF 60%, #8EDB6E 60%, #5FC14A); }
.period-afternoon { background: linear-gradient(#FFB88C, #FFE0B8 60%, #7DCB5E 60%, #4FA83E); }
.period-evening { background: linear-gradient(#B98CE0, #FFB6C9 60%, #6DB25A 60%, #46913A); }
.period-night { background: linear-gradient(#26305E, #4A5BA8 60%, #2F6B3A 60%, #1F5129); }
.period-stadium { background: linear-gradient(#7FD3FF, #D4F4FF 55%, #C0392B 55%, #C0392B 62%, #5FC14A 62%, #3E9B32); }

.scene-label {
  position: absolute;
  top: 8px;
  inset-inline-start: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  font-weight: 800;
}

.c2-hero {
  display: block;
  height: clamp(70px, 12.5vh, 130px);
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .25));
  user-select: none;
}

.c2-hero-box { display: block; }
.c2-hero-box.jump { animation: jump .7s cubic-bezier(.3, 1.5, .6, 1); }
.c2-hero-box.nod { animation: nod .8s ease-in-out; }

[dir=rtl] .c2-hero[data-face=right],
[dir=ltr] .c2-hero[data-face=left] { transform: scaleX(-1); }

.scene-emoji { margin-bottom: 12px; font-size: clamp(2.4rem, 7vh, 4rem); animation: bob 2.4s ease-in-out infinite; }

.c2-say {
  position: relative;
  margin: 12px auto 0;
  max-width: 640px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #fff;
  font-size: clamp(1rem, 4.2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .07);
}

.c2-say::before {
  content: '';
  position: absolute;
  top: -9px;
  inset-inline-start: 60px;
  width: 20px;
  height: 20px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
}

.c2-say small { font-size: .85em; opacity: .75; }
.tm { display: inline-block; padding: 0 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 20%, #fff); }

.c2-mission { margin-top: 10px; padding: 10px; border-top: 10px solid var(--c); }

.c2-choices .choice { font-size: clamp(1.2rem, 5vw, 1.9rem); line-height: 1.25; padding: 4px 6px; }
.c2-play .big-btn { margin-top: 10px; }
.c2-choices.n2 { grid-template-columns: repeat(2, 1fr); }
.c2-choices.n3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Seconds Olympics ---------- */

.stopwatch {
  width: fit-content;
  min-width: 220px;
  margin: 0 auto;
  padding: 14px 28px;
  border-radius: 28px;
  background: var(--ink);
  color: #7CFFB2;
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stopwatch.hidden-time { color: var(--yellow); animation: pulse 1s ease-in-out infinite; }

.big-emoji { font-size: clamp(2.8rem, 8vh, 4.5rem); text-align: center; line-height: 1.2; }
.c2-eq { font-size: clamp(1.4rem, 5.5vw, 2.4rem); }

.race { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 800; }
.race span { padding: 8px 18px; border-radius: 18px; background: color-mix(in srgb, var(--c) 15%, #fff); }

/* ---------- Hints ---------- */

.timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tl-point {
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.tl-jump {
  position: relative;
  padding: 0 10px 10px;
  border-bottom: 4px dashed var(--c);
  font-size: 1.1rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--c) 70%, #000);
}

/* ---------- Clock lab ---------- */

.lab-clock { padding: 10px; text-align: center; border-top: 10px solid var(--c); }
.lab-digital { margin-top: 4px; font-size: clamp(1.8rem, 5vh, 2.6rem); font-weight: 800; line-height: 1.2; color: color-mix(in srgb, var(--c) 70%, #000); }
.lab-say { margin: 0; font-size: 1.2rem; font-weight: 800; }
.lab-tips { margin-top: 10px; padding: 10px 14px; }
.lab-tips ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.lab-actions { display: flex; justify-content: center; gap: 10px; }
.lab-actions .big-btn { margin-top: 8px; font-size: 1.05rem; padding: 6px 16px; }

.end-emoji { font-size: clamp(3rem, 9vh, 4.5rem); margin-bottom: 10px; }
