/* Echo Chamber pad styles ("skins"), recreated from the user's sample sheet (art/pad-skins-samples.jpg).
   Each one is drawn with CSS from the pad's own color (--c, plus lighter --hi and darker --lo), so it works for every color
   and every board size. The active skin is set with data-skin="..." on the board. */

/* 1. Glow Classic: rounded glowing square */
[data-skin="glow"] .face { border-radius: 20%;
  background: radial-gradient(circle at 50% 40%, var(--hi), var(--c) 65%);
  box-shadow: inset 0 0 0 calc(var(--pad) * .025) var(--hi), inset 0 0 calc(var(--pad) * .12) rgba(255, 255, 255, .35); }

/* 2. Light Pads: glossy glowing dome in a dark socket */
[data-skin="light"] .face { inset: 5%; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #fff 0, var(--hi) 16%, var(--c) 52%, var(--lo) 100%);
  box-shadow: 0 0 0 calc(var(--pad) * .035) #0d1229, 0 0 0 calc(var(--pad) * .05) var(--lo); }

/* 3. Neon Ring: bright ring with a dark center */
[data-skin="neon-ring"] .face { inset: 6%; border-radius: 50%; background: radial-gradient(circle, #0a0d20 55%, var(--lo) 100%);
  border: calc(var(--pad) * .07) solid var(--c);
  box-shadow: 0 0 calc(var(--pad) * .07) var(--c), inset 0 0 calc(var(--pad) * .1) var(--c); }

/* 4. Frosted Glass: soft, matte, slightly grainy square */
[data-skin="frosted"] .face { border-radius: 18%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 85%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), inset 0 calc(var(--pad) * -.05) calc(var(--pad) * .1) rgba(0, 0, 0, .15); }

/* 5. Ripple Touch: concentric rings */
[data-skin="ripple"] .face { inset: 5%; border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, var(--hi) 0 6%, transparent 6% 21%, var(--c) 21% 27%, transparent 27% 34%), #090c1f;
  border: calc(var(--pad) * .045) solid var(--c); box-shadow: 0 0 calc(var(--pad) * .06) var(--c), inset 0 0 calc(var(--pad) * .08) var(--lo); }

/* 6. Hex Pads: glowing hexagon with a bright rim */
[data-skin="hex"] .face { clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); background: var(--hi); }
[data-skin="hex"] .face::before { content: ""; position: absolute; inset: 6%; clip-path: inherit;
  background: radial-gradient(circle at 50% 38%, var(--hi), var(--c) 55%, var(--lo)); }

/* 7. Liquid Glow: soft wobbly blob */
[data-skin="liquid"] .face { inset: 4%; border-radius: 44% 56% 42% 58% / 56% 42% 58% 44%;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--c) 30%, #fff), var(--c) 55%, var(--lo));
  box-shadow: inset 0 0 calc(var(--pad) * .1) rgba(255, 255, 255, .4); }
[data-skin="liquid"] .face::before { content: ""; position: absolute; left: 18%; top: 14%; width: 34%; height: 20%; border-radius: 50%;
  background: rgba(255, 255, 255, .45); filter: blur(2px); transform: rotate(-18deg); }

/* 8. Piano Disc: colored button in a silver metal ring */
[data-skin="piano"] .face { inset: 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--hi) 0, transparent 30%),
    radial-gradient(circle closest-side, var(--c) 0, var(--c) 58%, var(--lo) 72%, #1b1f2b 74%, transparent 76%),
    conic-gradient(#f2f4f8, #7d8492, #e3e6ec, #5f6573, #f2f4f8, #8a909c, #f2f4f8);
  box-shadow: 0 calc(var(--pad) * .02) calc(var(--pad) * .05) rgba(0, 0, 0, .6); }

/* 9. Triangle Light: rounded triangle */
[data-skin="triangle"] .face {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,12 91,85 9,85' stroke='%23000' stroke-width='16' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,12 91,85 9,85' stroke='%23000' stroke-width='16' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  background: linear-gradient(180deg, var(--hi), var(--c) 55%, var(--lo)); }
[data-skin="triangle"] .lbl { top: 10%; }

/* 10. Crystal Square: faceted square gem */
[data-skin="crystal"] .face { inset: 3%; border-radius: 12%;
  background: conic-gradient(from 45deg, var(--hi) 0 25%, var(--c) 25% 50%, var(--lo) 50% 75%, color-mix(in srgb, var(--c) 80%, #000) 75%);
  box-shadow: inset 0 0 0 calc(var(--pad) * .025) var(--hi); }
[data-skin="crystal"] .face::before { content: ""; position: absolute; inset: 27%; border-radius: 8%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, #fff), var(--c)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* 11. Gemstone: round cut jewel */
[data-skin="gem"] .face { inset: 4%; border-radius: 50%;
  background: conic-gradient(from 22.5deg, var(--hi), var(--c), var(--lo), var(--c), var(--hi), var(--c), var(--lo), var(--c), var(--hi), var(--c), var(--lo), var(--c), var(--hi), var(--c), var(--lo), var(--c), var(--hi));
  box-shadow: inset 0 0 0 calc(var(--pad) * .02) var(--hi); }
[data-skin="gem"] .face::before { content: ""; position: absolute; inset: 27%;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 35%, #fff), var(--c) 60%, var(--hi)); }

/* 12. Pulse Wave: sound-wave bars in a glowing circle */
[data-skin="pulse"] .face { inset: 5%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, #060918) 55%, color-mix(in srgb, var(--c) 60%, #060918));
  border: calc(var(--pad) * .035) solid var(--c); box-shadow: 0 0 calc(var(--pad) * .07) var(--c); }
[data-skin="pulse"] .face::before { content: ""; position: absolute; inset: 18%; background: var(--hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23000'%3E%3Crect x='4' y='44' width='4' height='12' rx='2'/%3E%3Crect x='13' y='36' width='4' height='28' rx='2'/%3E%3Crect x='22' y='26' width='4' height='48' rx='2'/%3E%3Crect x='31' y='38' width='4' height='24' rx='2'/%3E%3Crect x='40' y='14' width='4' height='72' rx='2'/%3E%3Crect x='49' y='6' width='4' height='88' rx='2'/%3E%3Crect x='58' y='18' width='4' height='64' rx='2'/%3E%3Crect x='67' y='32' width='4' height='36' rx='2'/%3E%3Crect x='76' y='24' width='4' height='52' rx='2'/%3E%3Crect x='85' y='38' width='4' height='24' rx='2'/%3E%3Crect x='94' y='45' width='4' height='10' rx='2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23000'%3E%3Crect x='4' y='44' width='4' height='12' rx='2'/%3E%3Crect x='13' y='36' width='4' height='28' rx='2'/%3E%3Crect x='22' y='26' width='4' height='48' rx='2'/%3E%3Crect x='31' y='38' width='4' height='24' rx='2'/%3E%3Crect x='40' y='14' width='4' height='72' rx='2'/%3E%3Crect x='49' y='6' width='4' height='88' rx='2'/%3E%3Crect x='58' y='18' width='4' height='64' rx='2'/%3E%3Crect x='67' y='32' width='4' height='36' rx='2'/%3E%3Crect x='76' y='24' width='4' height='52' rx='2'/%3E%3Crect x='85' y='38' width='4' height='24' rx='2'/%3E%3Crect x='94' y='45' width='4' height='10' rx='2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* 13. Star Burst: glowing orb with a four-point star */
[data-skin="star"] .face { inset: 5%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 3%, var(--hi) 12%, var(--c) 42%, var(--lo) 85%);
  box-shadow: inset 0 0 0 calc(var(--pad) * .02) var(--hi), inset 0 0 calc(var(--pad) * .12) rgba(0, 0, 0, .4); }
[data-skin="star"] .face::before { content: ""; position: absolute; inset: 14%;
  clip-path: polygon(50% 0, 55% 45%, 100% 50%, 55% 55%, 50% 100%, 45% 55%, 0 50%, 45% 45%);
  background: radial-gradient(circle, #fff 20%, color-mix(in srgb, var(--c) 30%, #fff) 70%); }

/* 14. Orbit Ring: glossy orb with a thin orbit and little moons (earned in Arcade) */
[data-skin="orbit"] .face { inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--hi), var(--c) 55%, var(--lo)); }
[data-skin="orbit"] .face::before { content: ""; position: absolute; inset: -14%; border-radius: 50%;
  border: calc(var(--pad) * .015) solid var(--c); opacity: .85; }
[data-skin="orbit"] .face::after { content: ""; position: absolute; inset: -16%; border-radius: 50%; animation: orbit 9s linear infinite;
  background: radial-gradient(circle at 50% 3%, var(--hi) 0 3.5%, transparent 4%), radial-gradient(circle at 97% 50%, var(--hi) 0 3%, transparent 3.5%),
    radial-gradient(circle at 18% 85%, var(--hi) 0 3%, transparent 3.5%), radial-gradient(circle at 82% 85%, var(--hi) 0 2.5%, transparent 3%); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* 15. Wave Form: square with flowing waves (earned in Arcade) */
[data-skin="wave"] .face { border-radius: 16%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C20 26 35 50 55 38 S85 26 100 34 V100 H0Z' fill='%23fff' opacity='.18'/%3E%3Cpath d='M0 58 C18 46 38 70 58 56 S86 48 100 56 V100 H0Z' fill='%23fff' opacity='.16'/%3E%3Cpath d='M0 78 C22 68 40 88 62 76 S88 70 100 78 V100 H0Z' fill='%23000' opacity='.18'/%3E%3C/svg%3E") center / 100% 100%,
    linear-gradient(180deg, var(--hi), var(--c) 50%, var(--lo));
  box-shadow: inset 0 0 0 calc(var(--pad) * .02) var(--hi); }

/* High contrast: keep the style, but make lit pads unmistakable. */
body.contrast .pad.lit::before { content: ""; position: absolute; inset: -6%; border: 4px solid #fff; border-radius: 22%; z-index: 4; }

/* ---- Shop pads (user spec, 2026-10-21) ---- */
/* Neon Fretboard: dark rosewood with glowing strings, a fret wire and an inlay dot in the pad's color. */
[data-skin="fretboard"] .face { border-radius: 10%;
  background:
    radial-gradient(circle at 50% 50%, var(--hi) 0 7%, transparent 7.5%),
    linear-gradient(90deg, transparent 47%, rgba(230, 230, 240, .55) 47% 53%, transparent 53%),
    repeating-linear-gradient(180deg, transparent 0 13%, var(--c) 13% 15.5%, transparent 15.5% 16.6%),
    linear-gradient(90deg, #2a1610, #3b2016 50%, #2a1610);
  box-shadow: inset 0 0 0 calc(var(--pad) * .025) var(--c), inset 0 0 calc(var(--pad) * .12) rgba(0, 0, 0, .6); }
/* Glass Ukulele: see-through body outline with a sound hole and strings. */
[data-skin="glass-uke"] .face { inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .55) 0 17%, var(--hi) 17.5% 20%, transparent 20.5%),
    repeating-linear-gradient(90deg, transparent 0 41%, rgba(255, 255, 255, .5) 41% 42%, transparent 42% 46%),
    radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 18%, transparent) 70%);
  border: calc(var(--pad) * .03) solid var(--hi); box-shadow: inset 0 0 calc(var(--pad) * .1) color-mix(in srgb, var(--c) 60%, transparent); }
/* Retro Synth Keys: a chunky keycap with a white key face and a glowing colored stripe. */
[data-skin="synth-keys"] .face { border-radius: 12%;
  background: linear-gradient(180deg, #f2efe6 0 62%, #d8d3c4 62% 70%, var(--c) 70% 84%, #1b1d27 84%);
  box-shadow: inset 0 calc(var(--pad) * -.03) 0 rgba(0, 0, 0, .35), 0 0 0 calc(var(--pad) * .02) #111; }
[data-skin="synth-keys"] .lbl { color: #1b1d27; text-shadow: none; top: -12%; }
/* Gold Record (Golden Notes): a black vinyl disc with grooves and a label in the pad's color, gold rim. */
[data-skin="gold-record"] .face { inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, #111 0 5%, var(--c) 5.5% 30%, #e7c25a 30.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #141414 0 1.6%, #262626 1.6% 2.4%), #111;
  box-shadow: 0 0 0 calc(var(--pad) * .03) #e7c25a, inset 0 0 calc(var(--pad) * .12) rgba(255, 255, 255, .12); }
/* Aurora (Golden Notes): a slowly shifting northern-lights glow tinted by the pad's color. */
[data-skin="aurora"] .face { border-radius: 30%;
  background: linear-gradient(130deg, var(--c), #6ef0c8, #7b6bff, var(--hi), var(--c)); background-size: 300% 300%;
  animation: aurora 7s ease-in-out infinite; box-shadow: inset 0 0 calc(var(--pad) * .15) rgba(255, 255, 255, .35); }
@keyframes aurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
