/*! © 2026 Dr. Oluwaseun Ogunmola · Dr. Ogunmola GameLabs · All rights reserved. Free to play at https://gamelabs.ogunmola.com.ng · Not licensed for re-hosting, copying or reuse. Terms: https://gamelabs.ogunmola.com.ng/terms/ · ref GL-CAROL-C2S7 */
/* Carol Chimes: warm festive crimson, pine & gold palette on top of kidkit.css */
body {
  --accent: #FFD166;
  --accent-deep: #D99A00;
  --bg1: #FCEBE8;
  --bg2: #FFFDF8;
}

.kk-mascot svg { border-radius: 50%; }

/* Soft winter sparkle backdrop (off when reduced motion is preferred) */
body::before {
  content: "";
  position: fixed;
  inset: -90px 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: .65;
  background-image:
    radial-gradient(circle, #FFD166 0 2px, transparent 2.6px),
    radial-gradient(circle, #FFFFFF 0 2px, transparent 2.5px);
  background-size: 130px 130px, 76px 76px;
  background-position: 0 0, 38px 46px;
  animation: cc-drift 16s linear infinite;
}
@keyframes cc-drift { to { transform: translateY(90px); } }
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .cc-bell.target, .cc-bell.ringing, .cc-bars.playing i { animation: none !important; }
}

/* Song Picker */
.cc-pick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.cc-pick-head .kk-prompt { margin: 0; text-align: left; }
.cc-badge-count {
  font-size: .875rem;
  font-weight: 600;
  background: #FFF6D8;
  border: 2px solid #F0D27A;
  color: #7A4B00;
  padding: 5px 12px;
  border-radius: 999px;
}
.cc-song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}
.cc-song-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  min-height: 82px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid #F0D5D1;
  box-shadow: 0 3px 0 #EED1CC;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease;
}
.cc-song-card:hover { transform: translateY(-2px); border-color: #D62828; }
.cc-song-card.done { background: #FFFDF2; border-color: #E9A91A; }
.cc-song-ico { font-size: 1.55rem; line-height: 1; }
.cc-song-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.cc-song-meta { font-size: .8rem; color: var(--ink-soft); }
.cc-song-done { position: absolute; top: 10px; right: 12px; font-size: 1.2rem; }

/* Play the Bells stage */
.cc-song-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.cc-song-heading { display: flex; flex-direction: column; text-align: left; }
.cc-song-heading strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.cc-song-heading span { font-size: .85rem; color: var(--ink-soft); }

.cc-controls, .cc-tool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.cc-demo-btn { background: #1A7F37; color: #FFFFFF; border-color: #115E27; box-shadow: 0 3px 0 #115E27; }
.cc-demo-btn:hover { background: #156A2D; }
.cc-voice-btn.on { background: #102D5A; color: #FFFFFF; border-color: #102D5A; }

/* Lyrics strip */
.cc-lyrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin: 6px auto 8px;
  max-width: 560px;
}
.cc-syl {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 4px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #EADFC8;
  color: var(--ink-soft);
}
.cc-syl.done { background: #E9F7EF; border-color: #A7DFB9; color: #1B7034; }
.cc-syl.now {
  background: #FFD166;
  border-color: #D99A00;
  color: #102D5A;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(217, 154, 0, .28);
}

/* Treble Staff */
.cc-staff-wrap {
  background: #FFFFFF;
  border: 2px solid #EADFC8;
  border-radius: 18px;
  padding: 6px 8px 4px;
  max-width: 540px;
  margin: 0 auto 10px;
  box-shadow: 0 3px 0 #F1E6D2;
}
.cc-staff-svg { width: 100%; height: auto; display: block; }

/* Progress Bar */
.cc-prog-wrap {
  height: 8px;
  max-width: 520px;
  margin: 6px auto 12px;
  background: #F1E4E1;
  border-radius: 999px;
  overflow: hidden;
}
.cc-prog-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2A9D4B, #FFD166);
  border-radius: 999px;
  transition: width 180ms ease;
}

/* Handbell Rack */
.cc-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 8px;
  max-width: 640px;
  margin: 10px auto 8px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7EC 100%);
  border: 2px solid #EADFC8;
  border-radius: 22px;
  box-shadow: 0 6px 18px -12px rgba(16, 45, 90, .25);
}
.cc-rack.count-5 { max-width: 480px; }
.cc-rack.count-6 { max-width: 540px; }

.cc-bell {
  position: relative;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 10px 4px 8px;
  min-height: 98px;
  border-radius: 16px;
  border: 2px solid #EFE4D2;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 0 #E5D6BD;
  transition: transform 90ms ease, box-shadow 90ms ease, border-color 140ms ease, background 140ms ease;
}
.cc-bell:hover { transform: translateY(-2px); border-color: var(--bell-c, #D62828); }
.cc-bell:active, .cc-bell.ringing, .cc-bell.demo-lit {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 1px 0 var(--bell-d, #9B1B1B);
  background: #FFF9E6;
  border-color: var(--bell-c, #D62828);
}
.cc-bell.ringing .cc-bell-svg, .cc-bell.demo-lit .cc-bell-svg {
  animation: cc-shake 280ms ease;
}
.cc-bell.target {
  border-color: #D99A00;
  background: #FFF6D0;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .75), 0 4px 0 #D99A00;
  animation: cc-glow 1.1s ease-in-out infinite;
}
@keyframes cc-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .55), 0 4px 0 #D99A00; }
  50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, .95), 0 4px 0 #D99A00; }
}
@keyframes cc-shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  60% { transform: rotate(12deg); }
  100% { transform: rotate(0deg); }
}

.cc-bell-svg {
  width: clamp(36px, 9vw, 48px);
  height: auto;
  transform-origin: 50% 10%;
  display: block;
}
.cc-bell-labels { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.cc-note-let { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #102D5A; }
.cc-note-sol { font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.cc-key-hint {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: #94A3B8;
}

.cc-live-msg {
  margin: 8px auto 0;
  min-height: 1.5em;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
.cc-live-msg.good { color: #1B7034; }
.cc-live-msg.hint { color: #B45309; }

/* Mystery Clip & Rhythm Card */
.cc-clip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  max-width: 420px;
  margin: 0 auto 6px;
  background: linear-gradient(160deg, #102D5A 0%, #1F4B8A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 22px -12px rgba(16, 45, 90, .5);
}
.cc-meter-title { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: #FFD166; }
.cc-clip-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cc-clip-card .kk-btn.ghost { background: rgba(255,255,255,.14); color: #FFFFFF; border-color: rgba(255,255,255,.32); }
.cc-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 34px; }
.cc-bars i {
  display: block;
  width: 8px;
  height: 10px;
  border-radius: 4px;
  background: #FFD166;
}
.cc-bars.playing i { animation: cc-eq 650ms ease-in-out infinite alternate; }
.cc-bars.playing i:nth-child(2) { animation-delay: 120ms; }
.cc-bars.playing i:nth-child(3) { animation-delay: 240ms; }
.cc-bars.playing i:nth-child(4) { animation-delay: 90ms; }
.cc-bars.playing i:nth-child(5) { animation-delay: 190ms; }
@keyframes cc-eq {
  from { height: 8px; opacity: .65; }
  to { height: 32px; opacity: 1; }
}

.cc-opt-ico { font-size: 1.7rem; line-height: 1; display: inline-block; }
.cc-sig { font-family: var(--display); font-size: 2rem; font-weight: 700; color: #102D5A; }

/* Echo slots */
.cc-echo-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 10px;
}
.cc-echo-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  color: #64748B;
}
.cc-echo-dot.filled { border-style: solid; }

/* Carol Decoder Parchment Card */
.cc-parchment {
  background: linear-gradient(180deg, #FFFDF4 0%, #FFF4D6 100%);
  border: 2px solid #E9C46A;
  border-radius: 18px;
  padding: 14px 18px;
  max-width: 520px;
  margin: 0 auto 6px;
  box-shadow: 0 4px 0 #EED79B;
}
.cc-parch-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9A5B00;
  background: #FFE8A3;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.cc-parch-clue {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  color: #102D5A;
}

/* Badge Ribbon on Results Screen */
.cc-badges {
  margin: 14px auto 4px;
  background: #FFF9EE;
  border: 2px solid #F0D27A;
  border-radius: 18px;
  padding: 12px;
  max-width: 480px;
}
.cc-badges-title { margin: 0 0 8px; font-weight: 700; color: #7A4B00; }
.cc-badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cc-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  background: #FFFFFF;
  border: 2px dashed #D8C7A6;
  filter: grayscale(1);
  opacity: .42;
}
.cc-badge.on {
  border: 2px solid #D99A00;
  background: #FFF3C4;
  filter: none;
  opacity: 1;
}

.cc-quick-label { font-size: .875rem; font-weight: 600; color: var(--ink-soft); width: 100%; text-align: center; }

@media (max-width: 520px) {
  .cc-rack { gap: 5px; padding: 10px 6px; }
  .cc-rack.count-7, .cc-rack.count-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cc-rack.count-9 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cc-bell { min-height: 82px; padding: 8px 2px 6px; }
  .cc-key-hint { display: none; }
}
