/* ==========================================================================
   Wonderchord — page skin. Loads AFTER style.css and softens everything.
   ========================================================================== */

body.wonderchord {
  --cream:      #fdf9f2;
  --cream-deep: #f6eee1;
  --ink:        #2b2440;
  --ink-soft:   #5c5379;
  --ink-faint:  #8b83a3;
  --red:        #e0518a;      /* friendly pink instead of signal red */
  --red-dark:   #c53c73;
  --amber:      #ffc24d;
  --line:       rgba(43, 36, 64, 0.12);
  --panel:      #ffffff;
  --radius:     20px;
}

body.wonderchord h1, body.wonderchord h2, body.wonderchord h3 { letter-spacing: -0.015em; }
body.wonderchord .btn { border-radius: 999px; }
body.wonderchord .card { border-radius: 20px; }
body.wonderchord .card-icon {
  background: linear-gradient(160deg, rgba(224,81,138,.15), rgba(255,194,77,.22));
  font-size: 1.5rem;
}
body.wonderchord .hero {
  background:
    radial-gradient(900px 420px at 82% -6%, rgba(255,194,77,.28), transparent 62%),
    radial-gradient(760px 400px at 6% 8%, rgba(224,81,138,.16), transparent 60%),
    radial-gradient(700px 380px at 50% 100%, rgba(109,193,235,.16), transparent 65%);
}

/* --- the rainbow instrument ---------------------------------------------- */
.wc-instrument {
  background: linear-gradient(178deg, #fffdf9, #f6ecdd);
  border: 1px solid rgba(43,36,64,.12);
  border-radius: 26px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  padding: 22px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.wc-pads {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 16px;
}
.wc-pad {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  aspect-ratio: 1; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 4px 0 rgba(43,36,64,.16), inset 0 -3px 8px rgba(0,0,0,.10), inset 0 3px 8px rgba(255,255,255,.7);
  transition: transform .09s ease, box-shadow .09s ease, filter .09s ease;
}
.wc-pad:hover { filter: brightness(1.06); }
.wc-pad[aria-pressed="true"] {
  transform: translateY(4px) scale(.97);
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 22px 4px currentColor, inset 0 3px 10px rgba(0,0,0,.2);
  filter: brightness(1.15) saturate(1.25);
}
@media (max-width: 480px) { .wc-pad { font-size: 1.25rem; } }

.wc-rainbow {
  position: relative; height: 148px; border-radius: 18px; overflow: hidden;
  display: flex; gap: 3px; padding: 8px;
  background: linear-gradient(180deg, #efe6f6, #e2d6ee);
  box-shadow: inset 0 2px 12px rgba(43,36,64,.22);
  cursor: pointer;
}
.wc-string {
  flex: 1; border-radius: 999px; background: currentColor;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.wc-string.lit {
  filter: brightness(1.5) saturate(1.4);
  transform: scaleY(1.06);
  box-shadow: 0 0 20px 3px currentColor;
}
.wc-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: rgba(43,36,64,.5);
  pointer-events: none; transition: opacity .35s;
}
.wc-rainbow.played .wc-hint { opacity: 0; }

.wc-voices { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.wc-voice {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  border-radius: 999px; padding: 9px 17px; font: inherit; font-size: .875rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft);
}
.wc-voice[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* --- song grid ------------------------------------------------------------ */
.song-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .song-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .song-grid { grid-template-columns: 1fr; } }
.song {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.song .emoji { font-size: 1.65rem; flex: none; line-height: 1; }
.song b { display: block; font-size: 1.02rem; }
.song span { display: block; font-size: .84rem; color: var(--ink-faint); margin-top: 2px; }

/* --- promise box ---------------------------------------------------------- */
.promise {
  background: var(--panel); border: 2px solid var(--red); border-radius: 22px; padding: 38px;
}
.promise h3 { margin-top: 0; }
.promise .check li::before { color: var(--red); }

/* --- worlds --------------------------------------------------------------- */
.worlds { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.worlds li {
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: .93rem;
  background: var(--panel); border: 1.5px solid var(--line); margin: 0;
}
.worlds li.now { background: var(--red); border-color: var(--red); color: #fff; }
