@font-face { font-family: "Outfit"; src: url("../assets/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("../assets/outfit-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0420; --panel: rgba(24, 12, 58, .82); --line: rgba(255, 255, 255, .12); --txt: #f5f1ff; --muted: #b9add8;
  --pink: #ff4d8d; --violet: #8b5cff; --cyan: #4dd8ff; --yellow: #ffd43b; --green: #51e08a; --red: #ff4d6d; --blue: #4dabff;
  --grad: linear-gradient(100deg, #ff4d8d, #ff9f43 45%, #ffd43b);
  --radius: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; overscroll-behavior: none; }
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }

.screen { position: fixed; inset: 0; display: none; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.screen.active { display: flex; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) clamp(14px, 4vw, 40px) 12px; }
.topbar.solid { background: rgba(11, 4, 32, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 20px rgba(255, 77, 141, .45); }
.brand.small { font-size: 17px; font-weight: 800; }
.top-actions { display: flex; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); font-weight: 700; font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .15s; white-space: nowrap; }
.chip:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.chip.accent { background: linear-gradient(100deg, #8b5cff, #4dd8ff); border-color: transparent; color: #0b0420; }

/* ---------- Accueil ---------- */
#home { background: #0b0420; }
.home-bg { position: fixed; inset: -4%; background: url("../assets/bg-home.jpg") center/cover; animation: drift 28s ease-in-out infinite alternate; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 4, 32, .55), rgba(11, 4, 32, .35) 35%, rgba(11, 4, 32, .93) 88%), radial-gradient(ellipse at 20% 40%, rgba(11, 4, 32, .7), transparent 60%); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
#homefx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px clamp(18px, 6vw, 90px) calc(30px + env(safe-area-inset-bottom)); max-width: 1100px; }
.kicker { display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.hero h1 { margin: 16px 0 14px; font-size: clamp(44px, 8.4vw, 104px); line-height: .96; font-weight: 900; letter-spacing: -.035em; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(255, 120, 80, .45)); }
.lead { max-width: 560px; font-size: clamp(16px, 2vw, 20px); line-height: 1.45; color: #e7defc; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.btn { padding: 13px 22px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); font-weight: 800; font-size: 16px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .17); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #2a0a1e; border-color: transparent; box-shadow: 0 10px 34px rgba(255, 100, 100, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:hover { box-shadow: 0 14px 44px rgba(255, 100, 100, .6), inset 0 1px 0 rgba(255, 255, 255, .5); background: var(--grad); }
.btn.big { padding: 18px 34px; font-size: 20px; border-radius: 20px; }
.btn.big.primary { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.btn.ghost { background: rgba(11, 4, 32, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.wide { display: block; width: 100%; margin-top: 10px; }
.btn.danger { color: #ff8ea3; }
.player-card { display: flex; align-items: center; gap: 14px; align-self: flex-start; padding: 10px 16px; border-radius: 16px; background: rgba(11, 4, 32, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; }
.lvl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #8b5cff, #4dd8ff); color: #0b0420; font-weight: 900; font-size: 18px; }
.xpbar { width: 130px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 5px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cff, #4dd8ff); border-radius: 4px; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.features li { padding: 14px 16px; border-radius: 18px; background: rgba(11, 4, 32, .55); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; line-height: 1.35; color: var(--muted); }
.features b { display: block; color: #fff; font-size: 16px; margin-bottom: 3px; }

/* ---------- Liste des morceaux ---------- */
#songs { background: radial-gradient(ellipse at 15% 0%, #2a1260 0%, transparent 55%), radial-gradient(ellipse at 90% 20%, #5a1548 0%, transparent 50%), #0b0420; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px clamp(14px, 4vw, 40px) 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pill.ok { border-color: rgba(81, 224, 138, .5); color: #9ff0bf; }
.pill.warn { border-color: rgba(255, 212, 59, .5); color: #ffe38a; }
button.pill:hover { background: rgba(255, 255, 255, .16); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46vw, 210px), 1fr)); gap: clamp(10px, 2vw, 20px); padding: 16px clamp(14px, 4vw, 40px) calc(40px + env(safe-area-inset-bottom)); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a0d3d; border: 1px solid var(--line); text-align: left; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s; animation: cardIn .5s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 50px rgba(139, 92, 255, .45); border-color: rgba(255, 255, 255, .35); }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 13px 12px; background: linear-gradient(180deg, transparent, rgba(11, 4, 32, .92) 55%); }
.card h3 { font-size: 17px; font-weight: 800; line-height: 1.1; }
.card p { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .stars { margin-top: 6px; font-size: 15px; letter-spacing: 1px; color: rgba(255, 255, 255, .25); }
.card .stars b { color: var(--yellow); font-weight: 400; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(11, 4, 32, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge.l1 { color: #9ff0bf; } .badge.l2 { color: #9be7ff; } .badge.l3 { color: #ffe38a; } .badge.l4 { color: #ffb38a; } .badge.l5 { color: #ff8ea3; }
.card.add { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); text-align: center; padding: 16px; font-weight: 800; }
.card.add span { font-size: 44px; display: block; }
.card.add small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ---------- Fenêtres ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(6, 2, 20, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.overlay.open { display: flex; animation: fadeIn .2s; }
.panel { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 24px; border-radius: 26px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); animation: pop .3s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes pop { from { transform: translateY(20px) scale(.94); opacity: 0; } }
.panel.narrow { width: min(380px, 100%); text-align: center; }
.panel h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-weight: 800; z-index: 2; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.4; }

.song-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-right: 36px; }
.song-head img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.song-head h2 { font-size: 24px; line-height: 1.05; }
.opt { margin-top: 14px; }
.opt > label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, .3); }
.seg button { padding: 10px 6px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); transition: all .15s; line-height: 1.15; }
.seg button small { display: block; font-weight: 500; font-size: 11px; opacity: .8; margin-top: 2px; }
.seg button.on { background: linear-gradient(135deg, #8b5cff, #c44dff); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 255, .45); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.best { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 212, 59, .1); border: 1px solid rgba(255, 212, 59, .25); font-size: 14px; font-weight: 700; color: #ffe38a; }
.row { display: flex; gap: 10px; margin-top: 18px; }
.row .btn { flex: 1; }
.row .btn.primary { flex: 2; }
select, input[type=range] { width: 100%; }
select { padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid var(--line); font: inherit; font-weight: 600; }

/* Réglages */
.settings h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin: 22px 0 8px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { padding: 14px 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 2px solid transparent; text-align: left; font-weight: 800; font-size: 15px; line-height: 1.2; transition: all .15s; }
.choice button span { font-size: 26px; display: block; margin-bottom: 4px; }
.choice button small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.choice button.on { border-color: var(--pink); background: rgba(255, 77, 141, .14); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-weight: 600; font-size: 15px; }
.line > div { flex: 1; min-width: 0; }
.line small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; line-height: 1.3; }
.line input[type=range] { width: 46%; flex: none; accent-color: var(--pink); }
.line .val { min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 50px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .18); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--pink); }
.switch.on::after { transform: translateX(22px); }
.note-box { padding: 12px 14px; border-radius: 14px; background: rgba(77, 216, 255, .09); border: 1px solid rgba(77, 216, 255, .25); font-size: 13px; line-height: 1.45; color: #cdefff; margin-top: 8px; }
.note-box.warn { background: rgba(255, 212, 59, .09); border-color: rgba(255, 212, 59, .3); color: #ffeeb0; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #51e08a, #ffd43b, #ff4d6d); transition: width .06s; }
pre.log { max-height: 160px; overflow: auto; font-size: 11px; background: rgba(0, 0, 0, .4); padding: 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; color: #cfc5ee; }

/* Accordeur */
.tuner-note { font-size: 92px; font-weight: 900; line-height: 1; margin: 12px 0 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tuner-bar { position: relative; height: 16px; border-radius: 8px; background: linear-gradient(90deg, #ff4d6d, #ffd43b 35%, #51e08a 50%, #ffd43b 65%, #ff4d6d); }
.tuner-bar b { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: rgba(255, 255, 255, .6); }
.tuner-bar i { position: absolute; top: -7px; left: 50%; width: 10px; height: 30px; margin-left: -5px; border-radius: 5px; background: #fff; box-shadow: 0 0 14px #fff; transition: left .1s; }
.tuner-msg { margin: 14px 0; font-weight: 800; font-size: 18px; min-height: 24px; }
.tuner-strings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tuner-strings button { padding: 12px 0; border-radius: 14px; font-weight: 900; font-size: 17px; color: #12062e; }
.tuner-strings small { display: block; font-size: 11px; font-weight: 700; opacity: .7; }

/* ---------- Jeu ---------- */
#game { background: #0b0420; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pause-btn { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; border-radius: 50%; background: rgba(11, 4, 32, .6); border: 1px solid var(--line); font-size: 14px; font-weight: 900; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#game .overlay { position: absolute; }

/* Résultats */
.result { text-align: center; overflow: hidden; }
.result .rtitle { font-size: 15px; font-weight: 700; color: var(--muted); }
.result .rstars { font-size: clamp(40px, 11vw, 62px); letter-spacing: 4px; margin: 6px 0 2px; color: rgba(255, 255, 255, .16); }
.result .rstars span { display: inline-block; }
.result .rstars span.on { color: var(--yellow); text-shadow: 0 0 26px rgba(255, 212, 59, .8); animation: starIn .6s cubic-bezier(.2, .9, .3, 1.6) both; }
@keyframes starIn { from { transform: scale(3) rotate(-40deg); opacity: 0; } }
.result .verdict { font-size: 30px; font-weight: 900; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result .rscore { font-size: clamp(46px, 13vw, 68px); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.newbest { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #2a0a1e; font-weight: 900; font-size: 13px; letter-spacing: .06em; animation: breathe 1s infinite; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.stats div { padding: 10px 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); font-size: 12px; color: var(--muted); font-weight: 600; }
.stats b { display: block; font-size: 22px; color: #fff; font-weight: 900; }
.judges { display: flex; justify-content: center; gap: 14px; font-size: 13px; font-weight: 700; margin-top: 10px; flex-wrap: wrap; }
.xpgain { margin-top: 12px; font-weight: 800; color: var(--cyan); }
.confetti { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }

/* Divers */
.loader { text-align: center; font-weight: 700; }
.spin { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .15); border-top-color: var(--pink); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
#toast { position: fixed; z-index: 50; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); max-width: min(92vw, 520px); padding: 13px 20px; border-radius: 16px; background: rgba(24, 12, 58, .96); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 15px; line-height: 1.35; opacity: 0; pointer-events: none; transition: all .3s; box-shadow: 0 16px 50px rgba(0, 0, 0, .6); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .top-actions .chip { padding: 8px 11px; font-size: 13px; }
  .brand.small { display: none; }
  .panel { padding: 20px 16px; border-radius: 22px; }
  .song-head img { width: 76px; height: 76px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features li { font-size: 12px; padding: 11px 12px; } .features b { font-size: 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .features { display: none; }
  .hero h1 { font-size: clamp(34px, 9vh, 60px); margin: 8px 0; }
}
@media (prefers-reduced-motion: reduce) { .home-bg, .btn.big.primary { animation: none; } }

/* Joueurs */
.player-card { text-align: left; cursor: pointer; transition: transform .15s, background .15s; }
.player-card:hover { transform: translateY(-2px); background: rgba(40, 20, 90, .7); }
.player-card .lvl { font-size: 22px; }
.player-card .swap { color: var(--muted); font-size: 12px; margin-left: 6px; }
.plist { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.prow { display: flex; gap: 6px; }
.pmain { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 2px solid transparent; text-align: left; font-size: 16px; }
.pmain small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.prow.on .pmain { border-color: var(--pink); background: rgba(255, 77, 141, .14); }
.pav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #8b5cff, #4dd8ff); font-size: 24px; flex: none; }
.pdel { width: 44px; border-radius: 14px; background: rgba(0, 0, 0, .28); opacity: .7; }
.sub { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin: 20px 0 8px; text-align: left; }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatars button { aspect-ratio: 1; border-radius: 12px; background: rgba(0, 0, 0, .28); font-size: 22px; border: 2px solid transparent; }
.avatars button.on { border-color: var(--pink); background: rgba(255, 77, 141, .18); }
input[type=text] { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: #fff; font: inherit; font-weight: 700; font-size: 16px; }
input[type=text]:focus { outline: 2px solid var(--pink); }
.lb { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.lb label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lb div { display: grid; grid-template-columns: 30px 1fr auto; padding: 4px 0; font-weight: 700; font-size: 14px; }
.lb div.me { color: var(--yellow); }
.badge.new { left: auto; right: 10px; background: linear-gradient(100deg, #ff4d8d, #8b5cff); color: #fff; }
.brand span i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge.rock { left: auto; right: 10px; background: linear-gradient(100deg, #ff3b3b, #ff9f1a); color: #1a0505; }

/* Calibrage des LED */
.cal-grid { display: grid; gap: 2px; margin: 14px 0 6px; }
.cal-grid span { font-size: 10px; color: var(--muted); text-align: center; align-self: center; }
.cal-grid button { min-width: 0; height: 36px; padding: 0; border-radius: 6px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); }
.cal-grid button.done { background: rgba(81, 224, 138, .35); border-color: #51e08a; }
.cal-grid button:active { background: #ffd43b; }
.cal-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 10px 0; }
.cal-bar i { display: block; height: 100%; background: var(--grad); }
.cal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cal-row .btn { flex: 1; padding: 12px 8px; font-size: 15px; }
