/* 🎤 Make Your Own Song: the crazy elf's recording studio */
.sm-body { background: radial-gradient(circle at 50% 0, #4a1f6e, #12082a 60%) fixed, #12082a; }
.sm { max-width: 980px; margin: 0 auto; padding: 18px 16px 48px; color: #fff; }
.sm h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 10px; }
.sm h1 span { background: linear-gradient(90deg, #ffb13b, #ff6bd5, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 10px; }
.sm h2 b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffb13b; color: #1a0b33; font-size: 1.05rem; flex: none; }
.sm-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 8px 0 22px; }
.sm-elf { position: relative; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #ffb13b55, #b45cff33 60%, transparent 72%), #24104a; box-shadow: 0 0 0 3px #ffb13b66, 0 14px 34px #0009; }
.sm-elf-face { font-size: 4.6rem; animation: smbob 2.4s ease-in-out infinite; }
.sm-elf-mic { position: absolute; right: 10px; bottom: 14px; font-size: 2rem; transform: rotate(-18deg); }
@keyframes smbob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.sm-say { margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: #1a0b33; font-weight: 600; font-size: 1.08rem; line-height: 1.4; box-shadow: 0 8px 24px #0006; }
.sm-step { margin: 0 0 18px; padding: 18px; border-radius: 22px; background: #ffffff0c; border: 1px solid #ffffff1c; }
.sm-small { color: #d9c9f2; line-height: 1.45; margin: 8px 0 0; }
.sm-yesno { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.sm-big { display: inline-block; border: 0; border-radius: 18px; padding: 15px 22px; font-family: inherit; font-weight: 800; font-size: 1.15rem; cursor: pointer; color: #fff; }
.sm-yes { background: linear-gradient(135deg, #3ee08f, #19a96b); color: #04210f; box-shadow: 0 8px 22px #3ee08f44; }
.sm-plain { border: 0; background: none; color: #cdbbe8; font-family: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; padding: 8px; }
.sm-kid { margin: 12px 0 0; font-weight: 700; color: #ffe27a; }
.sm-dial { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-pick { display: grid; justify-items: center; gap: 4px; width: 104px; padding: 12px 6px; border-radius: 999px 999px 26px 26px; border: 2px solid #ffffff22;
  background: #24104a; color: #fff; font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.sm-pick span { font-size: 2.2rem; line-height: 1; }
.sm-pick small { font-weight: 500; font-size: .75rem; color: #cdbbe8; line-height: 1.2; text-align: center; }
.sm-pick:hover { transform: translateY(-3px); }
.sm-pick[aria-checked="true"] { border-color: #ffb13b; background: linear-gradient(160deg, #6b2fa3, #3a1a6e); box-shadow: 0 0 0 3px #ffb13b55, 0 10px 22px #0007; }
.sm-singers .sm-pick { width: 128px; }
.sm-field { display: grid; gap: 6px; margin: 0 0 12px; font-weight: 700; }
.sm-field input, .sm-field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 2px solid #4b3577; background: #1a0d33; color: #fff; font: inherit; font-weight: 500; }
.sm-field textarea { resize: vertical; min-height: 160px; line-height: 1.45; }
.sm-field input:focus, .sm-field textarea:focus { outline: none; border-color: #ffb13b; }
.sm-recipe { white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; padding: 14px; border-radius: 14px; background: #0d0620; border: 1px dashed #ffb13b88; color: #ffe9c4; font: .92rem/1.45 ui-monospace, Consolas, monospace; max-height: 260px; overflow: auto; }
.sm-gem { background: linear-gradient(135deg, #ffb13b, #ff6bd5); color: #1a0b33; box-shadow: 0 10px 26px #ff6bd555; }
.sm-gem:disabled { opacity: .55; cursor: not-allowed; }
.sm-how { margin: 14px 0 0; padding-left: 22px; line-height: 1.5; }
.sm-how li { margin: 4px 0; }
.sm-file { position: relative; overflow: hidden; margin-top: 12px; background: linear-gradient(135deg, #8b5cf6, #ff6bd5); }
.sm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sm-file:focus-within { outline: 3px solid #ffb13b; outline-offset: 3px; }
.sm-records { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sm-rec { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 20px; background: #ffffff0d; border: 1px solid #ffffff1c; text-align: center; min-width: 0; }
.sm-vinyl { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--lbl, #ffb13b) 0 22%, #111 23% 25%, #1c1c1c 26% 100%), #111;
  box-shadow: inset 0 0 0 6px #000, inset 0 0 0 7px #333, 0 10px 24px #000a; position: relative; }
.sm-vinyl::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: repeating-radial-gradient(circle, #ffffff10 0 1px, transparent 1px 4px); }
.sm-vinyl::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #12082a; position: relative; }
.sm-rec.is-playing .sm-vinyl { animation: smspin 2s linear infinite; }
.sm-lbl { position: absolute; width: 46%; height: 46%; border-radius: 50%; object-fit: cover; z-index: 1; box-shadow: 0 0 0 2px #111; }
.sm-vinyl::after { z-index: 2; }
.sm-elfnote { margin: 0 0 6px; padding: 12px 16px; border-radius: 16px; background: #fff; color: #1a0b33; font-weight: 600; line-height: 1.45; }
@keyframes smspin { to { transform: rotate(360deg); } }
.sm-rec-t { font-weight: 800; overflow-wrap: anywhere; }
.sm-rec-btns { display: flex; gap: 8px; }
.sm-rec-btns button { border: 0; border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; background: #2a1a4a; color: #fff; }
.sm-rec-btns .sm-play { background: linear-gradient(135deg, #ff6bd5, #8b5cf6); }
/* 🏆 Top 10 board */
.sm-crown { margin: 10px 0 14px; background: linear-gradient(135deg, #ffd23f, #ffb13b); color: #1a0b33; box-shadow: 0 10px 26px #ffd23f55; }
.sm-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sm-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; }
.sm-place { font-weight: 900; font-size: 1.15rem; color: #ffd23f; text-align: center; }
.sm-row.is-first .sm-place { font-size: 1.8rem; }
.sm-row-plates { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.sm-plate { flex: 1 1 240px; min-width: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 16px; background: #24104a; border: 2px solid #ffffff1c; position: relative; }
.sm-row.is-first .sm-plate { border-color: #ffd23f; background: linear-gradient(135deg, #4a2a7a, #2a1450); box-shadow: 0 0 0 3px #ffd23f44, 0 10px 24px #0008; }
.sm-plate img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.sm-plate-t { font-weight: 800; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sm-plate-n { font-size: .9rem; color: #ffb3e9; font-weight: 700; }
.sm-plate-btns { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 6px; }
.sm-plate-btns button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #3a2266; color: #fff; font-size: 1.05rem; cursor: pointer; }
.sm-plate-btns .sm-like.is-liked { background: linear-gradient(135deg, #ff6bd5, #8b5cf6); box-shadow: 0 0 12px #ff6bd588; }
.sm-pickmore { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.sm-pickmore select { width: 100%; min-width: 0; max-width: 100%; padding: 8px 10px; border-radius: 10px; border: 2px solid #4b3577; background: #1a0d33; color: #fff; font: inherit; }
.sm-reset { border: 0; background: none; color: #cdbbe8; text-decoration: underline; font: inherit; cursor: pointer; padding: 6px; }
.sm-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media (max-width: 700px) {
  .sm-hero { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .sm-elf { width: 104px; height: 104px; }
  .sm-elf-face { font-size: 3.6rem; }
  .sm-pick { width: calc(33.33% - 8px); min-width: 0; }
  .sm-singers .sm-pick { width: calc(50% - 6px); }
  .sm-big { width: 100%; text-align: center; box-sizing: border-box; }
}
@media (max-width: 700px) { .sm-row { grid-template-columns: 30px minmax(0, 1fr); gap: 6px; } .sm-place { font-size: .95rem; } .sm-plate { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 8px; column-gap: 8px; } .sm-plate img { width: 44px; height: 44px; } .sm-plate-btns button { width: 36px; height: 36px; font-size: .95rem; } .sm-plate-t { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .sm-elf-face, .sm-rec.is-playing .sm-vinyl { animation: none; } .sm-pick { transition: none; } }
