/**
 * L'Oreille Absolue - feuille de style
 *
 * @copyright (c) 2026 Kevicar
 * @license GNU General Public License, version 2 (GPL-2.0)
 */

#oa-root {
	--oa-violet: #7c5cff;
	--oa-teal: #00d4c8;
	--oa-ink: #1b1d2b;
	--oa-ink-2: #4a4f68;
	--oa-muted: #5f6680;
	--oa-line: #e5e7f0;
	--oa-card: #ffffff;
	--oa-soft: #f5f6fb;
	--oa-gold: #f5b700;
	--oa-silver: #a8b2c1;
	--oa-bronze: #cd7f32;
	--oa-ok: #12b886;
	--oa-warn: #f59f00;
	--oa-bad: #fa5252;
	--oa-radius: 14px;
	--oa-stage-bg: radial-gradient(1200px 500px at 10% -10%, rgba(124, 92, 255, 0.35), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(0, 212, 200, 0.25), transparent 60%), #11131f;
	/* Base verrouillée : taille et police indépendantes du thème du forum */
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 17px !important;
	line-height: 1.5 !important;
	color: var(--oa-ink) !important;
	background: transparent !important;
	color-scheme: light;
	-webkit-text-size-adjust: 100%;
	text-align: left;
	margin: 10px 0 20px;
}

/* ------------------------------------------------------------------ */
/* Verrouillage : neutralise les styles du thème à l'intérieur du jeu  */
/* ------------------------------------------------------------------ */

#oa-root *, #oa-root *::before, #oa-root *::after { font-family: inherit !important; letter-spacing: normal; }
#oa-root .icon, #oa-root .fa { font-family: FontAwesome !important; }
#oa-root h1, #oa-root h2, #oa-root h3, #oa-root h4 { font-family: inherit !important; font-weight: 800 !important; text-transform: none !important; border: 0 !important; padding: 0 !important; background: none !important; text-shadow: none; line-height: 1.25 !important; }
#oa-root p, #oa-root li, #oa-root dd, #oa-root dt, #oa-root td, #oa-root th, #oa-root label, #oa-root span, #oa-root small { font-size: inherit; }
#oa-root p { margin: 0 0 8px; line-height: 1.5; }
#oa-root a { color: #5b3fe0; text-decoration: none; background: none; border: 0; }
#oa-root a:hover { color: #3b22b8; text-decoration: underline; }
#oa-root a.oa-btn:hover, #oa-root a.oa-share-btn:hover, #oa-root .oa-tabs a:hover, #oa-root .oa-subtabs a:hover { text-decoration: none !important; }
#oa-root a.username-coloured { font-weight: 700; }
#oa-root table { width: 100%; border: 0 !important; background: transparent !important; font-size: 1em !important; }
#oa-root th { background: transparent !important; font-weight: 700 !important; }
#oa-root td { background-color: transparent; color: inherit; }
#oa-root input, #oa-root select, #oa-root button, #oa-root textarea { font-size: 1em !important; line-height: 1.3; text-transform: none; letter-spacing: normal; }
#oa-root input[type="text"], #oa-root select { color: #1b1d2b !important; background-color: #fff !important; border: 1px solid #ccd0e0 !important; border-radius: 10px; padding: 9px 12px !important; min-height: 44px; }
#oa-root img { max-width: 100%; }
#oa-root .oa-card { background-color: #ffffff !important; color: #1b1d2b !important; }
#oa-root .oa-card h2, #oa-root .oa-card h3 { color: #1b1d2b !important; }
#oa-root .oa-stage { color: #e9ebff !important; }
#oa-root .oa-stage h2, #oa-root .oa-stage h3 { color: #ffffff !important; }
#oa-root .oa-stage a:not(.oa-btn) { color: #8ff5ee; }

#oa-root *, #oa-root *::before, #oa-root *::after { box-sizing: border-box; }
#oa-root [hidden] { display: none !important; }
#oa-root .oa-muted { color: var(--oa-muted); }
#oa-root .oa-empty { color: var(--oa-muted); text-align: center; padding: 24px 8px; font-style: italic; }

/* ------------------------------------------------------------------ */
/* Barre supérieure                                                    */
/* ------------------------------------------------------------------ */

#oa-root .oa-topbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; margin-bottom: 14px; border-radius: var(--oa-radius);
	background: var(--oa-card); border: 1px solid var(--oa-line);
	box-shadow: 0 2px 10px rgba(27, 29, 43, 0.05);
}
#oa-root .oa-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--oa-ink) !important; }
#oa-root .oa-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
#oa-root .oa-brand-text strong { font-size: 1.35em; letter-spacing: -0.01em; }
#oa-root .oa-brand-text small { color: var(--oa-muted); font-size: 0.9em; }
#oa-root .oa-logo svg { display: block; filter: drop-shadow(0 4px 10px rgba(124, 92, 255, 0.35)); }

#oa-root .oa-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
#oa-root .oa-tabs a {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px;
	color: var(--oa-ink-2) !important; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s;
}
#oa-root .oa-tabs a:hover { background: var(--oa-soft); color: var(--oa-violet) !important; }
#oa-root .oa-tabs a.is-active { background: linear-gradient(135deg, var(--oa-violet), #5a3df0); color: #fff !important; box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35); }
#oa-root .oa-count { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--oa-bad); color: #fff; font-size: 0.8em; text-align: center; }

/* ------------------------------------------------------------------ */
/* Mise en page                                                        */
/* ------------------------------------------------------------------ */

#oa-root .oa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
#oa-root .oa-side { display: flex; flex-direction: column; gap: 16px; }
#oa-root .oa-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

#oa-root .oa-card {
	background: var(--oa-card); border: 1px solid var(--oa-line); border-radius: var(--oa-radius);
	padding: 16px 18px; box-shadow: 0 2px 10px rgba(27, 29, 43, 0.04);
}
#oa-root .oa-page { margin-bottom: 16px; }
#oa-root .oa-card h2, #oa-root .oa-card h3 { margin: 0 0 12px; color: var(--oa-ink); border: 0; font-family: inherit; text-transform: none; }
#oa-root .oa-card h2 { font-size: 1.45em !important; }
#oa-root .oa-card h3 { font-size: 1.15em !important; }
#oa-root .oa-page-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
#oa-root .oa-more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--oa-violet) !important; }
#oa-root .oa-alert { display: block; background: linear-gradient(135deg, #fff4e6, #ffe8cc); border-color: #ffd8a8; color: #d9480f !important; font-weight: 700; text-decoration: none !important; animation: oa-pulse 2s infinite; }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */

#oa-root .oa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none !important;
	transition: transform .12s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
}
#oa-root .oa-btn:active { transform: translateY(1px) scale(.98); }
#oa-root .oa-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#oa-root .oa-btn-primary { background: linear-gradient(135deg, var(--oa-violet), #5a3df0); color: #fff !important; box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35); }
#oa-root .oa-btn-primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(124, 92, 255, 0.5); }
#oa-root .oa-btn-accent { background: linear-gradient(135deg, var(--oa-teal), #00a3c4); color: #05202a !important; }
#oa-root .oa-btn-ghost { background: rgba(124, 92, 255, 0.08); color: var(--oa-violet) !important; border-color: rgba(124, 92, 255, 0.25); }
#oa-root .oa-btn-ghost:hover { background: rgba(124, 92, 255, 0.15); }
#oa-root .oa-btn-xl { padding: 14px 28px; font-size: 1.15em; }
#oa-root .oa-btn-sm { padding: 6px 12px; font-size: 0.92em; }

/* ------------------------------------------------------------------ */
/* Scène de jeu                                                        */
/* ------------------------------------------------------------------ */

#oa-root .oa-stage {
	position: relative; overflow: hidden; border-radius: 20px; padding: 24px;
	background: var(--oa-stage-bg); color: #e9ebff; min-height: 460px;
	box-shadow: 0 20px 50px rgba(17, 19, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	margin-bottom: 16px; scroll-margin-top: 20px;
}
#oa-root .oa-stage.is-busy { cursor: progress; }
#oa-root .oa-stage h2, #oa-root .oa-stage h3 { color: #fff; border: 0; font-family: inherit; text-transform: none; }
#oa-root .oa-stage .oa-muted { color: #a3a8c8; }
#oa-root .oa-stage .oa-btn-ghost { background: rgba(255, 255, 255, 0.06); color: #e9ebff !important; border-color: rgba(255, 255, 255, 0.14); }
#oa-root .oa-stage .oa-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

#oa-root .oa-hero { text-align: center; padding: 6px 0 14px; }
#oa-root .oa-hero h2 { font-size: 2.3em !important; margin: 6px 0 4px; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #c9bdff 40%, #8ff5ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
#oa-root .oa-hero p { margin: 0; color: #a3a8c8; font-size: 1.05em; }
#oa-root .oa-hero-wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 48px; }
#oa-root .oa-hero-wave span {
	width: 4px; border-radius: 4px; background: linear-gradient(var(--oa-teal), var(--oa-violet));
	height: calc(8px + 32px * (0.5 + 0.5 * sin(var(--i) * 0.6)));
	animation: oa-eq 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.07s); opacity: .85;
}
@supports not (height: calc(1px * sin(1))) { #oa-root .oa-hero-wave span { height: 24px; } }

#oa-root .oa-duel-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; background: rgba(245, 183, 0, 0.12); border: 1px solid rgba(245, 183, 0, 0.35); color: #ffe08a; }
#oa-root .oa-duel-banner .icon { font-size: 1.6em; }
#oa-root .oa-duel-banner strong { display: block; color: #fff; font-size: 1.1em; }

#oa-root .oa-label { font-size: 0.8em !important; text-transform: uppercase !important; letter-spacing: 0.12em; color: #a3a8c8 !important; margin: 16px 0 8px !important; }

#oa-root .oa-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#oa-root .oa-level {
	text-align: left; padding: 14px; border-radius: 14px; cursor: pointer; font: inherit; color: #e9ebff;
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex; flex-direction: column; gap: 6px; transition: all .15s;
}
#oa-root .oa-level:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
#oa-root .oa-level.is-selected { border-color: var(--lvl, var(--oa-teal)); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px var(--lvl, var(--oa-teal)), 0 10px 24px rgba(0, 0, 0, 0.3); }
#oa-root .oa-level-name { font-weight: 800; font-size: 1.15em; color: var(--lvl, #fff); }
#oa-root .oa-level-desc { font-size: 0.9em; color: #a3a8c8; line-height: 1.35; }
#oa-root .oa-level-mult { font-size: 0.8em; font-weight: 700; color: #fff; opacity: .8; }
#oa-root .oa-level-facile { --lvl: #51cf66; }
#oa-root .oa-level-moyen { --lvl: #4dabf7; }
#oa-root .oa-level-difficile { --lvl: #ff922b; }
#oa-root .oa-level-expert { --lvl: #ff6b9a; }
#oa-root .oa-setup.is-locked .oa-level:not(.is-selected), #oa-root .oa-setup.is-locked .oa-pill:not(.is-selected) { opacity: .35; pointer-events: none; }

#oa-root .oa-timbres { display: flex; flex-wrap: wrap; gap: 8px; }
#oa-root .oa-pill {
	padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
	background: rgba(255, 255, 255, 0.05); color: #e9ebff; border: 1px solid rgba(255, 255, 255, 0.12); transition: all .15s;
}
#oa-root .oa-pill:hover { background: rgba(255, 255, 255, 0.1); }
#oa-root .oa-pill.is-selected { background: linear-gradient(135deg, var(--oa-violet), #5a3df0); border-color: transparent; color: #fff; }

#oa-root .oa-start-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
#oa-root .oa-hint { text-align: center; color: #a3a8c8; font-size: 0.9em; margin: 14px 0 0; }
#oa-root .oa-guest { text-align: center; padding: 20px; }
#oa-root .oa-guest p { font-size: 1.1em; margin-bottom: 14px; }

#oa-root .oa-howto { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
#oa-root .oa-howto summary { cursor: pointer; font-weight: 700; color: #fff; }
#oa-root .oa-howto ol { margin: 10px 0 0 20px; line-height: 1.6; color: #cdd1ee; }

/* HUD */
#oa-root .oa-hud { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
#oa-root .oa-hud-item { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
#oa-root .oa-hud-item > span { display: block; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; color: #a3a8c8; }
#oa-root .oa-hud-item strong { font-size: 1.3em; color: #fff; font-variant-numeric: tabular-nums; }
#oa-root .oa-round-dots { display: flex; gap: 4px; margin-top: 6px; }
#oa-root .oa-rdot { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
#oa-root .oa-rdot.is-done { background: var(--oa-teal); }
#oa-root .oa-rdot.is-current { background: var(--oa-violet); box-shadow: 0 0 8px var(--oa-violet); }
#oa-root .oa-timer-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); margin-top: 6px; overflow: hidden; }
#oa-root .oa-timer-bar { height: 100%; background: linear-gradient(90deg, var(--oa-teal), var(--oa-violet)); transform-origin: left; transition: transform .25s linear; }
#oa-root .oa-hud-timer.is-urgent strong { color: #ff8787; animation: oa-blink 1s infinite; }
#oa-root .oa-hud-timer.is-urgent .oa-timer-bar { background: #ff6b6b; }

#oa-root .oa-level-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85em; font-weight: 700; background: #e9ecef; color: #495057; }
#oa-root .oa-level-badge[data-level="facile"] { background: rgba(81, 207, 102, 0.18); color: #2b8a3e; }
#oa-root .oa-level-badge[data-level="moyen"] { background: rgba(77, 171, 247, 0.18); color: #1864ab; }
#oa-root .oa-level-badge[data-level="difficile"] { background: rgba(255, 146, 43, 0.18); color: #d9480f; }
#oa-root .oa-level-badge[data-level="expert"] { background: rgba(255, 107, 154, 0.18); color: #c2255c; }
#oa-root .oa-stage .oa-hud .oa-level-badge { font-size: 0.75em; vertical-align: middle; }
#oa-root .oa-stage .oa-level-badge[data-level="facile"] { color: #8ce99a; }
#oa-root .oa-stage .oa-level-badge[data-level="moyen"] { color: #a5d8ff; }
#oa-root .oa-stage .oa-level-badge[data-level="difficile"] { color: #ffc078; }
#oa-root .oa-stage .oa-level-badge[data-level="expert"] { color: #ffa8c5; }

/* Zone d'écoute */
#oa-root .oa-listen-zone { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 20px; align-items: center; margin-bottom: 18px; }
#oa-root .oa-listen {
	grid-row: span 2; position: relative; width: 130px; height: 130px; border-radius: 50%; cursor: pointer; border: 0;
	background: radial-gradient(circle at 30% 30%, #9b82ff, var(--oa-violet) 45%, #4b2fd6);
	color: #fff; font: inherit; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25); transition: transform .15s, box-shadow .15s, filter .15s;
}
#oa-root .oa-listen .icon { font-size: 2.2em; }
#oa-root .oa-listen-text { font-size: 0.82em; line-height: 1.1; padding: 0 12px; text-align: center; }
#oa-root .oa-listen:hover:not(:disabled) { transform: scale(1.04); }
#oa-root .oa-listen:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; box-shadow: none; }
#oa-root .oa-listen-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(0, 212, 200, 0.0); pointer-events: none; }
#oa-root .oa-listen.is-playing .oa-listen-ring { border-color: rgba(0, 212, 200, 0.8); animation: oa-ring 1s ease-out infinite; }
#oa-root .oa-listen.is-loading { animation: oa-pulse 0.8s infinite; }
#oa-root .oa-plays { display: flex; align-items: center; gap: 10px; color: #a3a8c8; font-size: 0.9em; }
#oa-root .oa-dots { display: inline-flex; gap: 6px; }
#oa-root .oa-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
#oa-root .oa-dot.is-on { background: var(--oa-teal); box-shadow: 0 0 10px rgba(0, 212, 200, 0.7); }
#oa-root .oa-scope { width: 100%; height: 90px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); }

/* Réponse */
#oa-root .oa-answer { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: opacity .2s; }
#oa-root .oa-answer.is-locked { opacity: .5; pointer-events: none; }
#oa-root .oa-readout { text-align: center; margin-bottom: 10px; }
#oa-root .oa-readout-label { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.14em; color: #a3a8c8; }
#oa-root .oa-readout-main { display: flex; justify-content: center; align-items: baseline; gap: 6px; }
#oa-root .oa-freq { font-size: 3em; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-shadow: 0 0 24px rgba(124, 92, 255, 0.5); }
#oa-root .oa-unit { font-size: 1.2em; color: #a3a8c8; font-weight: 700; }
#oa-root .oa-note { display: inline-block; min-height: 1.4em; font-weight: 700; color: var(--oa-teal); font-size: 1.15em; }
#oa-root .oa-stage.is-captured .oa-freq { animation: oa-flash .6s; }

#oa-root .oa-slider-wrap { position: relative; margin: 8px 0 4px; }
#oa-root .oa-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; outline: none; cursor: pointer; margin: 10px 0;
	background: linear-gradient(90deg, #3b2b8f, var(--oa-violet) 35%, var(--oa-teal) 70%, #b8fff9); }
#oa-root .oa-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--oa-violet); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); cursor: grab; }
#oa-root .oa-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--oa-violet); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); cursor: grab; }
#oa-root .oa-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(0, 212, 200, 0.35); }
#oa-root .oa-slider-scale { display: flex; justify-content: space-between; color: #a3a8c8; font-weight: 700; padding: 0 4px; }

#oa-root .oa-fine { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 12px 0; }
#oa-root .oa-fine-btn { padding: 10px 4px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9em; color: #e9ebff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: background .12s; font-variant-numeric: tabular-nums; }
#oa-root .oa-fine-btn:hover { background: rgba(124, 92, 255, 0.3); }
#oa-root .oa-fine-btn:active { transform: scale(.96); }

#oa-root .oa-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 14px; }
#oa-root .oa-toggle .oa-switch { width: 30px; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); position: relative; transition: background .15s; }
#oa-root .oa-toggle .oa-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
#oa-root .oa-toggle.is-on .oa-switch { background: var(--oa-teal); }
#oa-root .oa-toggle.is-on .oa-switch::after { left: 16px; }
#oa-root .oa-mic-btn.is-on { background: rgba(250, 82, 82, 0.2) !important; border-color: rgba(250, 82, 82, 0.6) !important; }
#oa-root .oa-volume { display: inline-flex; align-items: center; gap: 4px; color: #a3a8c8; }
#oa-root .oa-volume input { width: 90px; accent-color: var(--oa-teal); }

#oa-root .oa-mic-panel { display: flex; gap: 18px; align-items: center; padding: 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(0, 212, 200, 0.25); }
#oa-root .oa-mic-panel.is-silent .oa-tuner-needle { opacity: .3; }
#oa-root .oa-tuner { position: relative; width: 160px; height: 90px; flex: none; }
#oa-root .oa-tuner-arc { position: absolute; inset: 0 0 -70px; border-radius: 50%; border: 6px solid transparent; border-top-color: rgba(255, 255, 255, 0.15);
	background: conic-gradient(from -45deg at 50% 50%, rgba(250, 82, 82, 0.35) 0 30deg, rgba(18, 184, 134, 0.6) 40deg 50deg, rgba(250, 82, 82, 0.35) 60deg 90deg, transparent 90deg) border-box;
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 59%); mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 59%); }
#oa-root .oa-tuner-needle { position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 80px; border-radius: 2px; background: #fff; transform-origin: 50% 100%; transition: transform .1s linear; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
#oa-root .oa-tuner-needle.is-in-tune { background: var(--oa-ok); box-shadow: 0 0 12px var(--oa-ok); }
#oa-root .oa-tuner span { position: absolute; bottom: -18px; font-size: 0.7em; color: #a3a8c8; }
#oa-root .oa-tuner-l { left: 0; } #oa-root .oa-tuner-c { left: calc(50% - 4px); } #oa-root .oa-tuner-r { right: 0; }
#oa-root .oa-mic-info { flex: 1; }
#oa-root .oa-mic-info strong { display: block; font-size: 1.3em; color: #fff; font-variant-numeric: tabular-nums; }
#oa-root .oa-mic-info p { font-size: 0.85em; color: #a3a8c8; margin: 6px 0 10px; }
#oa-root .oa-mic-meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 6px; }
#oa-root .oa-mic-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--oa-ok), var(--oa-warn), var(--oa-bad)); transform-origin: left; transform: scaleX(0); transition: transform .05s; }

#oa-root .oa-validate { display: flex; width: 100%; }
#oa-root .oa-kbd { text-align: center; font-size: 0.85em; color: #8a90b3; margin: 10px 0 0; }

/* Résultat de manche */
#oa-root .oa-round-result { margin-top: 18px; padding: 22px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); animation: oa-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
#oa-root .oa-rating { font-size: 2em; font-weight: 900; letter-spacing: -0.01em; }
#oa-root .oa-rating-perfect { color: #ffd43b; text-shadow: 0 0 22px rgba(255, 212, 59, 0.6); }
#oa-root .oa-rating-excellent { color: #69db7c; }
#oa-root .oa-rating-great { color: #8ce99a; }
#oa-root .oa-rating-good { color: #a5d8ff; }
#oa-root .oa-rating-fair { color: #ffc078; }
#oa-root .oa-rating-miss, #oa-root .oa-rating-timeout { color: #ff8787; }
#oa-root .oa-points { font-size: 2.6em; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
#oa-root .oa-points small { font-size: 0.4em; color: #a3a8c8; }
#oa-root .oa-octave-note, #oa-root .oa-hidden-note { color: #ffc078; font-weight: 600; margin: 4px 0 10px; }
#oa-root .oa-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
#oa-root .oa-result-grid > div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
#oa-root .oa-result-grid span { display: block; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.1em; color: #a3a8c8; }
#oa-root .oa-result-grid strong { display: block; font-size: 1.25em; color: #fff; font-variant-numeric: tabular-nums; }
#oa-root .oa-result-grid em { color: var(--oa-teal); font-style: normal; font-weight: 600; }
#oa-root .oa-gauge { position: relative; height: 44px; margin: 16px 6px 26px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); }
#oa-root .oa-gauge-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(18, 184, 134, 0), rgba(18, 184, 134, 0.35), rgba(18, 184, 134, 0)); }
#oa-root .oa-gauge-target { position: absolute; left: calc(50% - 1px); top: -4px; bottom: -4px; width: 2px; background: #fff; }
#oa-root .oa-gauge-answer { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; animation: oa-slide-in .6s ease-out; }
#oa-root .oa-gauge-min, #oa-root .oa-gauge-max { position: absolute; bottom: -20px; font-size: 0.75em; color: #a3a8c8; }
#oa-root .oa-gauge-min { left: 0; } #oa-root .oa-gauge-max { right: 0; }
#oa-root .oa-result-actions, #oa-root .oa-end-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* Fin de partie */
#oa-root .oa-end { text-align: center; animation: oa-pop .4s ease-out; }
#oa-root .oa-eyebrow { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.16em; color: #a3a8c8; }
#oa-root .oa-end-score { font-size: 4em; font-weight: 900; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(124, 92, 255, 0.6); }
#oa-root .oa-end-score small { font-size: 0.3em; color: #a3a8c8; }
#oa-root .oa-end-bar { height: 8px; max-width: 420px; margin: 8px auto 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
#oa-root .oa-end-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--oa-teal), var(--oa-violet)); animation: oa-grow 1.4s ease-out; }
#oa-root .oa-end-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
#oa-root .oa-end-stats > div { min-width: 130px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
#oa-root .oa-end-stats strong { display: block; font-size: 1.5em; color: #fff; }
#oa-root .oa-end-stats span { font-size: 0.8em; color: #a3a8c8; }
#oa-root .oa-end-rank { color: #ffe08a; font-weight: 700; }
#oa-root .oa-duel-box { margin: 12px auto; max-width: 520px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-weight: 700; font-size: 1.15em; }
#oa-root .oa-duel-box.is-won { background: rgba(18, 184, 134, 0.2); color: #8ce99a; }
#oa-root .oa-duel-box.is-lost { background: rgba(250, 82, 82, 0.15); color: #ffa8a8; }
#oa-root .oa-end-table { width: 100%; max-width: 640px; margin: 14px auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#oa-root .oa-end-table th { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.08em; color: #a3a8c8; padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
#oa-root .oa-end-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: #e9ebff; }
#oa-root .oa-end-table em { color: var(--oa-teal); font-style: normal; font-size: 0.9em; }
#oa-root .oa-row-perfect td:last-child strong { color: #ffd43b; }
#oa-root .oa-row-miss td:last-child strong, #oa-root .oa-row-timeout td:last-child strong { color: #ff8787; }
#oa-root .oa-end-share { margin: 16px 0; }
#oa-root .oa-end-share > span { display: block; font-weight: 700; margin-bottom: 8px; color: #fff; }

/* Toast et effets */
#oa-root .oa-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--oa-ink); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: all .25s; z-index: 5; max-width: 90%; text-align: center; }
#oa-root .oa-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
#oa-root .oa-toast.is-error { background: #ffe3e3; color: #c92a2a; }
#oa-root .oa-toast.is-warning { background: #fff3bf; color: #a35400; }
#oa-root .oa-burst { position: absolute; left: 50%; top: 45%; pointer-events: none; z-index: 4; }
#oa-root .oa-burst span { position: absolute; font-size: 22px; color: #ffd43b; text-shadow: 0 0 10px rgba(255, 212, 59, 0.7); animation: oa-burst 1.3s cubic-bezier(.1, .8, .3, 1) forwards; }
#oa-root .oa-burst span:nth-child(3n) { color: var(--oa-teal); }
#oa-root .oa-burst span:nth-child(3n+1) { color: #b197fc; }

/* ------------------------------------------------------------------ */
/* Bloc de partage                                                     */
/* ------------------------------------------------------------------ */

#oa-root .oa-share { display: flex; flex-direction: column; gap: 12px; background: linear-gradient(135deg, #ffffff, #f7f5ff); }
#oa-root .oa-share h3 { margin: 0 0 4px; }
#oa-root .oa-share h3 .icon { color: #e64980; }
#oa-root .oa-share p { margin: 0; color: var(--oa-muted); }
#oa-root .oa-share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#oa-root .oa-share .oa-share-row { justify-content: flex-start; }
#oa-root .oa-share-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 0.92em; color: #fff !important; text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); transition: transform .12s, box-shadow .12s, filter .12s;
}
#oa-root .oa-share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); filter: brightness(1.05); }
#oa-root .oa-share-btn .icon { font-size: 1.15em; }
#oa-root .oa-x-logo { font-size: 1.05em; line-height: 1; }
#oa-root .oa-share-whatsapp { background: #25d366; }
#oa-root .oa-share-email { background: #5c7cfa; }
#oa-root .oa-share-facebook { background: #1877f2; }
#oa-root .oa-share-messenger { background: linear-gradient(135deg, #00b2ff, #a033ff); }
#oa-root .oa-share-x { background: #000; }
#oa-root .oa-share-telegram { background: #229ed9; }
#oa-root .oa-share-linkedin { background: #0a66c2; }
#oa-root .oa-share-reddit { background: #ff4500; }
#oa-root .oa-share-copy { background: #495057; }
#oa-root .oa-share-copy.is-done { background: var(--oa-ok); }
#oa-root .oa-share-native { background: linear-gradient(135deg, var(--oa-violet), var(--oa-teal)); }

/* ------------------------------------------------------------------ */
/* Panneaux latéraux                                                   */
/* ------------------------------------------------------------------ */

#oa-root .oa-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#oa-root .oa-mini-stats > div { padding: 10px; border-radius: 10px; background: var(--oa-soft); text-align: center; }
#oa-root .oa-mini-stats strong { display: block; font-size: 1.2em; color: var(--oa-violet); font-variant-numeric: tabular-nums; }
#oa-root .oa-mini-stats span { font-size: 0.78em; color: var(--oa-muted); }

#oa-root .oa-toplist { list-style: none; margin: 0; padding: 0; }
#oa-root .oa-toplist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--oa-line); }
#oa-root .oa-toplist li:last-child { border-bottom: 0; }
#oa-root .oa-toplist-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#oa-root .oa-toplist-name small { display: block; color: var(--oa-muted); font-size: 0.8em; }
#oa-root .oa-toplist-score { font-weight: 800; color: var(--oa-ink) !important; font-variant-numeric: tabular-nums; }
#oa-root .oa-medal { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--oa-soft); font-weight: 800; color: var(--oa-ink-2); flex: none; font-size: 0.9em; }
#oa-root .oa-pos-1 .oa-medal { background: linear-gradient(135deg, #ffe066, var(--oa-gold)); color: #5c3c00; box-shadow: 0 3px 10px rgba(245, 183, 0, 0.45); }
#oa-root .oa-pos-2 .oa-medal { background: linear-gradient(135deg, #e9ecef, var(--oa-silver)); color: #343a40; }
#oa-root .oa-pos-3 .oa-medal { background: linear-gradient(135deg, #f4b67a, var(--oa-bronze)); color: #4a2400; }

#oa-root .oa-recent { list-style: none; margin: 0; padding: 0; }
#oa-root .oa-recent li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--oa-line); }
#oa-root .oa-recent li:last-child { border-bottom: 0; }
#oa-root .oa-recent small { grid-column: 1 / -1; color: var(--oa-muted); font-size: 0.78em; }

/* ------------------------------------------------------------------ */
/* Tableaux, classements, records                                      */
/* ------------------------------------------------------------------ */

#oa-root .oa-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 4px; border-radius: 12px; background: var(--oa-soft); width: fit-content; max-width: 100%; }
#oa-root .oa-subtabs a { padding: 7px 14px; border-radius: 9px; font-weight: 700; color: var(--oa-ink-2) !important; text-decoration: none !important; }
#oa-root .oa-subtabs a.is-active { background: #fff; color: var(--oa-violet) !important; box-shadow: 0 2px 8px rgba(27, 29, 43, 0.08); }
#oa-root .oa-subtabs-small a { padding: 5px 10px; font-size: 0.9em; }

#oa-root .oa-table-wrap { overflow-x: auto; }
#oa-root .oa-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
#oa-root .oa-table th { text-align: left; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oa-muted); padding: 8px 10px; border-bottom: 2px solid var(--oa-line); white-space: nowrap; }
#oa-root .oa-table td { padding: 10px; border-bottom: 1px solid var(--oa-line); vertical-align: middle; }
#oa-root .oa-table tbody tr:hover td { background: var(--oa-soft); }
#oa-root .oa-table .oa-num { text-align: right; }
#oa-root .oa-col-rank { width: 56px; }
#oa-root .oa-podium td { font-weight: 600; }
#oa-root .oa-podium.oa-pos-1 td { background: rgba(245, 183, 0, 0.08); }
#oa-root .oa-me td { box-shadow: inset 0 0 0 9999px rgba(124, 92, 255, 0.06); }
#oa-root .oa-me td:first-child { border-left: 3px solid var(--oa-violet); }
#oa-root .oa-stat-link { opacity: .5; }
#oa-root .oa-stat-link:hover { opacity: 1; }
#oa-root .oa-win { background: rgba(18, 184, 134, 0.1); color: #087f5b; }
#oa-root .oa-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(124, 92, 255, 0.12); color: var(--oa-violet) !important; font-size: 0.8em; font-weight: 700; }
#oa-root .oa-tag-muted { background: #f1f3f5; color: var(--oa-muted) !important; }
#oa-root .oa-result-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 0.85em; }
#oa-root .oa-result-tag.is-won { background: rgba(18, 184, 134, 0.15); color: #087f5b; }
#oa-root .oa-result-tag.is-lost { background: rgba(250, 82, 82, 0.12); color: #c92a2a; }
#oa-root .oa-result-tag.is-draw { background: #f1f3f5; color: var(--oa-ink-2); }

#oa-root .oa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
#oa-root .oa-kpis > div { padding: 14px; border-radius: 12px; background: var(--oa-soft); text-align: center; }
#oa-root .oa-kpis strong { display: block; font-size: 1.5em; color: var(--oa-violet); font-variant-numeric: tabular-nums; }
#oa-root .oa-kpis span { font-size: 0.82em; color: var(--oa-muted); }

#oa-root .oa-legends { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
#oa-root .oa-legend { padding: 14px; border-radius: 12px; background: linear-gradient(135deg, #1b1d2b, #2c2350); color: #fff; }
#oa-root .oa-legend span { display: block; font-size: 0.8em; color: #b8bce0; text-transform: uppercase; letter-spacing: 0.08em; }
#oa-root .oa-legend strong { display: block; font-size: 1.2em; margin: 4px 0; }
#oa-root .oa-legend strong a { color: #fff !important; }
#oa-root .oa-legend em { font-style: normal; color: #ffe066; font-weight: 800; font-size: 1.3em; }

#oa-root .oa-records-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#oa-root .oa-record-col h3 { margin-bottom: 6px; }

#oa-root .oa-player-head { display: flex; gap: 18px; align-items: center; }
#oa-root .oa-player-avatar img, #oa-root .oa-avatar-fallback { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(27, 29, 43, 0.15); }
#oa-root .oa-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 2.2em; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--oa-violet), var(--oa-teal)); }
#oa-root .oa-player-id h2 { margin-bottom: 4px; }

#oa-root .oa-hist { display: flex; flex-direction: column; gap: 8px; }
#oa-root .oa-hist-row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
#oa-root .oa-hist-label { font-size: 0.85em; color: var(--oa-ink-2); }
#oa-root .oa-hist-track { height: 14px; border-radius: 7px; background: var(--oa-soft); overflow: hidden; }
#oa-root .oa-hist-bar { display: block; height: 100%; border-radius: 7px; animation: oa-grow 1s ease-out; }
#oa-root .oa-hist-0 { background: linear-gradient(90deg, #ffd43b, #fab005); }
#oa-root .oa-hist-1 { background: #51cf66; }
#oa-root .oa-hist-2 { background: #94d82d; }
#oa-root .oa-hist-3 { background: #4dabf7; }
#oa-root .oa-hist-4 { background: #ffa94d; }
#oa-root .oa-hist-5 { background: #ff6b6b; }
#oa-root .oa-hist-count { text-align: right; font-weight: 700; }

/* Duels */
#oa-root .oa-duel-form { display: grid; grid-template-columns: 2.2fr 1.8fr 1fr auto; gap: 12px; align-items: end; }
#oa-root .oa-field label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 0.9em; }
#oa-root .oa-field input[type="text"], #oa-root .oa-field select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--oa-line); font: inherit; background: #fff; }
#oa-root .oa-input-row { display: flex; gap: 6px; }
#oa-root .oa-input-row .oa-btn { white-space: nowrap; flex: none; }
#oa-root .oa-error { padding: 10px 14px; border-radius: 10px; background: #fff5f5; border: 1px solid #ffc9c9; color: #c92a2a; margin-bottom: 12px; font-weight: 600; }
#oa-root .oa-duel-list { display: flex; flex-direction: column; gap: 10px; }
#oa-root .oa-duel-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--oa-line); background: var(--oa-soft); }
#oa-root .oa-duel-item.is-incoming { border-color: #ffd8a8; background: #fff9f0; }
#oa-root .oa-duel-players { font-weight: 700; font-size: 1.05em; }
#oa-root .oa-duel-meta { grid-column: 1; font-size: 0.85em; color: var(--oa-muted); }
#oa-root .oa-duel-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#oa-root .oa-vs { color: var(--oa-muted); font-weight: 400; font-size: 0.85em; margin: 0 4px; }

#oa-root .oa-versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; }
#oa-root .oa-versus-side { position: relative; padding: 20px; border-radius: 16px; background: var(--oa-soft); }
#oa-root .oa-versus-side.is-winner { background: linear-gradient(135deg, #fff9db, #ffec99); box-shadow: 0 8px 24px rgba(245, 183, 0, 0.25); }
#oa-root .oa-versus-name { font-size: 1.3em; font-weight: 800; }
#oa-root .oa-versus-score { font-size: 2.4em; font-weight: 900; color: var(--oa-violet); font-variant-numeric: tabular-nums; }
#oa-root .oa-versus-mid { display: flex; flex-direction: column; gap: 6px; align-items: center; }
#oa-root .oa-vs-big { font-size: 2em; font-weight: 900; color: var(--oa-muted); }
#oa-root .oa-crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 1.8em; }

/* ------------------------------------------------------------------ */
/* Version 1.1 : défi du jour, titres, séries, badges, entraînement    */
/* ------------------------------------------------------------------ */

#oa-root .oa-btn-gold { background: linear-gradient(135deg, #ffd43b, #f59f00) !important; color: #3d2800 !important; box-shadow: 0 6px 18px rgba(245, 159, 0, 0.4); }
#oa-root .oa-btn-gold:disabled { opacity: .4; }

#oa-root .oa-daily-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin: 0 0 18px; border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 212, 59, 0.16), rgba(245, 159, 0, 0.08)); border: 1px solid rgba(255, 212, 59, 0.4); }
#oa-root .oa-daily-card.is-done { background: rgba(18, 184, 134, 0.12); border-color: rgba(18, 184, 134, 0.45); }
#oa-root .oa-daily-icon { font-size: 2.4em; line-height: 1; animation: oa-spin-slow 12s linear infinite; }
#oa-root .oa-daily-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
#oa-root .oa-daily-text strong { font-size: 1.25em; color: #ffe066; }
#oa-root .oa-daily-text span { color: #e9ebff; }
#oa-root .oa-daily-text small { color: #c3c7e6; font-size: 0.88em; }
#oa-root .oa-daily-result { display: flex; flex-direction: column; text-align: right; }
#oa-root .oa-daily-result strong { color: #8ce99a; font-size: 1.1em; }
#oa-root .oa-daily-result span { color: #c3c7e6; font-size: 0.9em; }

#oa-root .oa-title-box { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(135deg, #f3f0ff, #e6fcf5); border: 1px solid #e5dbff; }
#oa-root .oa-title-name { display: block; font-weight: 900; font-size: 1.25em; color: #5b3fe0; }
#oa-root .oa-title-box small { color: var(--oa-muted); font-size: 0.85em; }
#oa-root .oa-progress { height: 10px; border-radius: 5px; background: rgba(27, 29, 43, 0.08); overflow: hidden; margin: 6px 0 4px; }
#oa-root .oa-progress span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--oa-teal), var(--oa-violet)); animation: oa-grow 1.2s ease-out; }
#oa-root .oa-title-maestro .oa-title-name, #oa-root .oa-title-diapason .oa-title-name { color: #b8860b; }
#oa-root .oa-title-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9em; background: linear-gradient(135deg, var(--oa-violet), #5a3df0); color: #fff !important; }
#oa-root .oa-title-chip.oa-title-sm { padding: 1px 8px; font-size: 0.75em; vertical-align: middle; opacity: .85; }
#oa-root .oa-title-chip.oa-title-maestro, #oa-root .oa-title-chip.oa-title-diapason { background: linear-gradient(135deg, #ffd43b, #f59f00); color: #3d2800 !important; }
#oa-root .oa-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9em; background: var(--oa-soft); color: var(--oa-ink-2); border: 1px solid var(--oa-line); }

#oa-root .oa-streak { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #fff4e6; border: 1px solid #ffd8a8; }
#oa-root .oa-streak strong { display: block; color: #d9480f; }
#oa-root .oa-streak small { color: #a5541a; font-size: 0.85em; }
#oa-root .oa-streak-flame { font-size: 1.8em; }
#oa-root .oa-streak.is-at-risk { animation: oa-pulse 1.6s infinite; border-color: #ff922b; }
#oa-root .oa-yesterday { margin: 10px 0 0; font-size: 0.92em; color: var(--oa-ink-2); }

#oa-root .oa-badge-feed { list-style: none; margin: 0; padding: 0; }
#oa-root .oa-badge-feed li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--oa-line); }
#oa-root .oa-badge-feed li:last-child { border-bottom: 0; }
#oa-root .oa-badge-feed strong { display: block; font-size: 0.95em; }
#oa-root .oa-badge-feed small { color: var(--oa-muted); font-size: 0.85em; }
#oa-root .oa-badge-feed-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
#oa-root .oa-badge-mini { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3em; background: #f1f3f5; border: 3px solid #ced4da; }

#oa-root .oa-tier-bronze { --tier: #cd7f32; --tier-bg: #fff4e6; }
#oa-root .oa-tier-silver { --tier: #98a2b3; --tier-bg: #f1f3f5; }
#oa-root .oa-tier-gold { --tier: #f5b700; --tier-bg: #fff9db; }
#oa-root .oa-tier-platinum { --tier: #7c5cff; --tier-bg: #f3f0ff; }
#oa-root .oa-tier-special { --tier: #e64980; --tier-bg: #fff0f6; }
#oa-root .oa-badge-mini[class*="oa-tier-"] { border-color: var(--tier); background: var(--tier-bg); }

#oa-root .oa-badges-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
#oa-root .oa-badges-score { min-width: 240px; text-align: right; }
#oa-root .oa-badges-score strong { font-size: 2em; color: #5b3fe0; }

#oa-root .oa-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
#oa-root .oa-badge-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#oa-root .oa-badge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border-radius: 16px;
	background: var(--tier-bg, #f8f9fa); border: 2px solid var(--tier, #dee2e6); transition: transform .15s, box-shadow .15s; }
#oa-root .oa-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 29, 43, 0.12); }
#oa-root .oa-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; font-size: 2em;
	background: #fff; border: 3px solid var(--tier, #dee2e6); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
#oa-root .oa-badge strong { font-size: 1em; color: #1b1d2b; }
#oa-root .oa-badge-desc { font-size: 0.86em; color: #4a4f68; line-height: 1.35; }
#oa-root .oa-badge-meta { font-size: 0.8em; color: var(--oa-muted); }
#oa-root .oa-tier-label { font-weight: 800; color: var(--tier); }
#oa-root .oa-badge-date { font-size: 0.8em; color: #2b8a3e; font-weight: 700; }
#oa-root .oa-badge.is-locked { background: #f8f9fa; border-color: #e9ecef; border-style: dashed; }
#oa-root .oa-badge.is-locked .oa-badge-icon { filter: grayscale(1); opacity: .35; border-color: #dee2e6; }
#oa-root .oa-badge.is-locked strong { color: #868e96; }
#oa-root .oa-badge.is-locked .oa-badge-date { color: #868e96; }
#oa-root .oa-badge.is-earned.oa-tier-platinum .oa-badge-icon, #oa-root .oa-badge.is-earned.oa-tier-gold .oa-badge-icon { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 0 18px var(--tier); }

#oa-root .oa-unlocks { margin: 16px auto; max-width: 640px; padding: 14px; border-radius: 16px; background: rgba(255, 212, 59, 0.1); border: 1px solid rgba(255, 212, 59, 0.35); }
#oa-root .oa-unlock-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 6px; }
#oa-root .oa-unlock { width: 170px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 2px solid var(--tier, #ffd43b); opacity: 0; animation: oa-unlock .7s cubic-bezier(.2, 1.5, .4, 1) forwards; }
#oa-root .oa-unlock .oa-badge-icon { width: 56px; height: 56px; font-size: 1.7em; background: rgba(255, 255, 255, 0.95); }
#oa-root .oa-unlock strong { color: #fff; }
#oa-root .oa-unlock small { color: #c3c7e6; font-size: 0.8em; line-height: 1.3; }
#oa-root .oa-stage .oa-more { color: #ffe066 !important; }
#oa-root .oa-training-stats { margin: 10px 0 0; color: #c3c7e6; }
#oa-root .oa-stage.is-training .oa-hud-item:nth-child(3) { opacity: .35; }

/* ------------------------------------------------------------------ */
/* Animations                                                          */
/* ------------------------------------------------------------------ */

@keyframes oa-eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes oa-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes oa-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
@keyframes oa-blink { 50% { opacity: .5; } }
@keyframes oa-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes oa-grow { from { width: 0; } }
@keyframes oa-flash { 0% { color: var(--oa-teal); transform: scale(1.08); } 100% { color: #fff; transform: scale(1); } }
@keyframes oa-slide-in { from { left: 50%; opacity: 0; } }
@keyframes oa-unlock { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes oa-spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes oa-burst { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	#oa-root *, #oa-root *::before, #oa-root *::after { animation: none !important; transition: none !important; }
	#oa-root .oa-unlock { opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1000px) {
	#oa-root .oa-layout { grid-template-columns: 1fr; }
	#oa-root .oa-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	#oa-root .oa-records-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
	#oa-root .oa-stage { padding: 16px; border-radius: 16px; }
	#oa-root .oa-levels { grid-template-columns: 1fr 1fr; }
	#oa-root .oa-hud { grid-template-columns: 1fr 1fr; }
	#oa-root .oa-fine { grid-template-columns: repeat(4, 1fr); }
	#oa-root .oa-listen-zone { grid-template-columns: 1fr; justify-items: center; }
	#oa-root .oa-listen { grid-row: auto; }
	#oa-root .oa-freq { font-size: 2.4em; }
	#oa-root .oa-mic-panel { flex-direction: column; }
	#oa-root .oa-two-cols, #oa-root .oa-records-grid { grid-template-columns: 1fr; }
	#oa-root .oa-duel-form { grid-template-columns: 1fr; }
	#oa-root .oa-duel-item { grid-template-columns: 1fr; }
	#oa-root .oa-duel-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
	#oa-root .oa-versus { grid-template-columns: 1fr; }
	#oa-root .oa-hide-sm { display: none; }
	#oa-root .oa-share-label { display: none; }
	#oa-root .oa-share-btn { padding: 11px; }
	#oa-root .oa-end-score { font-size: 3em; }
	#oa-root .oa-kbd { display: none; }
}

/* ================================================================== */
/* Version 1.2 : modes de jeu, quêtes, tournois, décors, thèmes        */
/* ================================================================== */

/* --- Modes de jeu --------------------------------------------------- */
#oa-root .oa-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#oa-root .oa-mode {
	display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer;
	padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04); color: #e9ebff !important; font: inherit;
	transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
}
#oa-root .oa-mode:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
#oa-root .oa-mode.is-selected { border-color: var(--oa-teal); background: rgba(0, 212, 200, 0.1); box-shadow: 0 0 0 1px var(--oa-teal), 0 10px 24px rgba(0, 0, 0, 0.3); }
#oa-root .oa-mode-ico { font-size: 1.6em; line-height: 1; }
#oa-root .oa-mode-name { font-weight: 800; font-size: 1.05em; color: #fff; }
#oa-root .oa-mode-desc { font-size: 0.86em; color: #a3a8c8; line-height: 1.35; }
#oa-root .oa-mode-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(0, 212, 200, 0.1); color: #8ff5ee; font-weight: 600; }
#oa-root .oa-setup.is-locked .oa-mode:not(.is-selected) { opacity: .35; pointer-events: none; }
#oa-root .oa-tournament-banner { background: rgba(124, 92, 255, 0.16); border-color: rgba(124, 92, 255, 0.45); color: #d0c4ff; }
#oa-root .oa-tournament-banner a { font-weight: 700; }
#oa-root .oa-banner-ico { font-size: 1.8em; }

#oa-root .oa-task {
	display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; padding: 12px 16px; border-radius: 14px;
	background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(0, 212, 200, 0.14)); border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 1.1em; color: #fff;
}
#oa-root .oa-task strong { color: #8ff5ee; }
#oa-root .oa-task-ico { font-size: 1.6em; }

/* Mode sans écoute (diapason) et lecture masquée (diapason, accordage) */
#oa-root .oa-stage.is-silent .oa-listen, #oa-root .oa-stage.is-silent .oa-plays { display: none; }
#oa-root .oa-stage.is-silent .oa-listen-zone { grid-template-columns: 1fr; }
#oa-root .oa-stage.is-blind .oa-readout-main, #oa-root .oa-stage.is-blind .oa-note { filter: blur(9px); user-select: none; }
#oa-root .oa-stage.is-blind .oa-readout-label::after { content: " 🙈"; }
#oa-root .oa-stage.is-blind [data-oa-mic-note], #oa-root .oa-stage.is-blind .oa-tuner { filter: blur(9px); }

/* Clavier « nommer la note » */
#oa-root .oa-keys-zone { margin: 4px 0 14px; }
#oa-root .oa-piano { position: relative; display: flex; justify-content: center; height: 170px; max-width: 520px; margin: 0 auto; }
#oa-root .oa-key { font: inherit; cursor: pointer; border: 0; transition: background .1s, transform .08s; }
#oa-root .oa-key-white {
	flex: 1; margin: 0 2px; border-radius: 0 0 10px 10px; background: linear-gradient(#ffffff, #e9ecf5); color: #2b2f45 !important;
	display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}
#oa-root .oa-key-black {
	position: absolute; top: 0; width: 9%; height: 60%; border-radius: 0 0 8px 8px; z-index: 2;
	background: linear-gradient(#2b2f45, #11131f); color: #fff !important; font-size: 0.72em; font-weight: 700;
	display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
#oa-root .oa-key-pc1 { left: calc(100% / 7 * 1 - 4.5%); }
#oa-root .oa-key-pc3 { left: calc(100% / 7 * 2 - 4.5%); }
#oa-root .oa-key-pc6 { left: calc(100% / 7 * 4 - 4.5%); }
#oa-root .oa-key-pc8 { left: calc(100% / 7 * 5 - 4.5%); }
#oa-root .oa-key-pc10 { left: calc(100% / 7 * 6 - 4.5%); }
#oa-root .oa-key:hover { transform: translateY(2px); }
#oa-root .oa-key.is-selected { background: linear-gradient(var(--oa-teal), #00a39a); color: #fff !important; }
#oa-root .oa-octaves { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; }
#oa-root .oa-octaves span { color: #a3a8c8; margin-right: 4px; }
#oa-root .oa-oct { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; }
#oa-root .oa-oct.is-selected { background: var(--oa-violet); border-color: var(--oa-violet); }

/* Mélodie */
#oa-root .oa-melody { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; }
#oa-root .oa-melody-label { width: 100%; text-align: center; color: #a3a8c8; font-size: 0.92em; }
#oa-root .oa-mchip { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); color: #e9ebff !important; }
#oa-root .oa-mchip.is-done { background: rgba(18, 184, 134, 0.2); border-color: rgba(18, 184, 134, 0.6); }
#oa-root .oa-mchip.is-current { background: var(--oa-violet); border-color: var(--oa-violet); color: #fff !important; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.35); }
#oa-root .oa-mchip:disabled { opacity: .4; cursor: default; }

#oa-root .oa-reveal { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); text-align: center; }
#oa-root .oa-mini-table { margin: 10px auto 0; max-width: 560px; border-collapse: collapse; }
#oa-root .oa-mini-table th, #oa-root .oa-mini-table td { padding: 6px 8px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; text-align: left; color: inherit !important; }
#oa-root .oa-mini-table em { color: #a3a8c8; font-style: normal; font-size: 0.9em; }

/* Duel en direct */
#oa-root .oa-live-duel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; padding: 8px 14px; border-radius: 12px; background: rgba(245, 183, 0, 0.1); border: 1px solid rgba(245, 183, 0, 0.3); color: #ffe08a; }
#oa-root .oa-live-duel strong { color: #fff; }
#oa-root .oa-live-duel .oa-progress { flex: 1 1 120px; margin: 0; background: rgba(255, 255, 255, 0.12); }
#oa-root .oa-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); animation: oa-live 1.6s infinite; }
@keyframes oa-live { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); } }
#oa-root .oa-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
#oa-root .oa-center { text-align: center; margin-top: 14px; }

/* Fin de partie : quêtes et carte de score */
#oa-root .oa-quest-done { margin: 14px auto; max-width: 560px; padding: 12px 16px; border-radius: 14px; background: rgba(18, 184, 134, 0.14); border: 1px solid rgba(18, 184, 134, 0.4); }
#oa-root .oa-quest-done ul { list-style: none; margin: 6px 0 0; padding: 0; }
#oa-root .oa-quest-done li { margin: 4px 0; }
#oa-root .oa-card-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 6px; }
#oa-root .oa-card-actions > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
#oa-root .oa-scorecard { width: 190px; height: 190px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

/* Carte « quêtes de la semaine » */
#oa-root .oa-small { font-size: 0.9em; }
#oa-root .oa-quests { list-style: none; margin: 0; padding: 0; }
#oa-root .oa-quests li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--oa-line); }
#oa-root .oa-quests li:last-child { border-bottom: 0; }
#oa-root .oa-quests li > div { flex: 1; min-width: 0; }
#oa-root .oa-quests strong { display: block; font-size: 0.95em; line-height: 1.3; }
#oa-root .oa-quests small { color: var(--oa-muted); }
#oa-root .oa-quests li.is-done strong { text-decoration: line-through; color: var(--oa-muted); }
#oa-root .oa-joker { display: block; color: #5f3dc4; }
#oa-root .oa-joker.is-used { color: var(--oa-muted); }

/* Décors de scène (débloqués par les badges) */
#oa-root .oa-skins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#oa-root .oa-skin-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; border: 2px solid var(--oa-line); background: #fff; color: var(--oa-ink) !important; font: inherit; font-weight: 700; font-size: 0.9em; cursor: pointer; }
#oa-root .oa-skin-btn.is-selected { border-color: var(--oa-violet); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25); }
#oa-root .oa-skin-btn:disabled { opacity: .5; cursor: not-allowed; }
#oa-root .oa-skin-btn small { color: var(--oa-muted); font-weight: 600; }
#oa-root .oa-skin-swatch { width: 100%; height: 34px; border-radius: 8px; }
#oa-root .oa-skin-prev-studio .oa-skin-swatch { background: linear-gradient(135deg, #2a1f5c, #11131f 60%, #0b3b48); }
#oa-root .oa-skin-prev-concert .oa-skin-swatch { background: radial-gradient(circle at 50% 0, #ffcf7a, #8b0f2a 45%, #2a0610); }
#oa-root .oa-skin-prev-vintage .oa-skin-swatch { background: linear-gradient(135deg, #6b4423, #2e1d10); }
#oa-root .oa-skin-prev-neon .oa-skin-swatch { background: linear-gradient(135deg, #ff00a8, #050510 45%, #00f0ff); }
#oa-root .oa-skin-prev-aurore .oa-skin-swatch { background: linear-gradient(135deg, #0a2540, #1fd1a5 45%, #7b4bff); }
#oa-root .oa-skin-prev-prestige .oa-skin-swatch { background: linear-gradient(135deg, #0d0d0d, #3a2c05 50%, #d4af37); }

#oa-root.oa-skin-concert { --oa-stage-bg: radial-gradient(700px 380px at 50% -10%, rgba(255, 207, 122, 0.45), transparent 60%), radial-gradient(900px 500px at 50% 120%, rgba(139, 15, 42, 0.8), transparent 70%), #1d0610; }
#oa-root.oa-skin-vintage { --oa-stage-bg: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 9px), radial-gradient(900px 500px at 20% -10%, rgba(255, 190, 120, 0.3), transparent 60%), linear-gradient(160deg, #4a2f18, #231509); }
#oa-root.oa-skin-neon { --oa-stage-bg: radial-gradient(800px 400px at 0% 0%, rgba(255, 0, 168, 0.35), transparent 60%), radial-gradient(800px 400px at 100% 100%, rgba(0, 240, 255, 0.35), transparent 60%), #050510; }
#oa-root.oa-skin-aurore { --oa-stage-bg: radial-gradient(900px 300px at 30% 0%, rgba(31, 209, 165, 0.45), transparent 60%), radial-gradient(800px 380px at 80% 10%, rgba(123, 75, 255, 0.4), transparent 60%), linear-gradient(#071a2e, #0a2540); }
#oa-root.oa-skin-prestige { --oa-stage-bg: radial-gradient(900px 400px at 50% -20%, rgba(212, 175, 55, 0.4), transparent 60%), linear-gradient(160deg, #141414, #050505); }
#oa-root.oa-skin-prestige .oa-hero h2 { background: linear-gradient(90deg, #fff6d5, #d4af37 50%, #fff6d5); -webkit-background-clip: text; background-clip: text; }

/* Application installable */
#oa-root .oa-install-card { background: linear-gradient(135deg, #f3f0ff, #e6fcf5) !important; }

/* Analyse pédagogique */
#oa-root .oa-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0; }
#oa-root .oa-tip-box { padding: 12px 14px; border-radius: 12px; background: var(--oa-soft); border: 1px solid var(--oa-line); }
#oa-root .oa-tip-big { display: block; font-size: 1.8em; margin: 4px 0 10px; }
#oa-root .oa-bias { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #4dabf7, #e9ecef 45%, #e9ecef 55%, #ff922b); margin: 6px 0 22px; }
#oa-root .oa-bias-mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--oa-ink); }
#oa-root .oa-bias-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--oa-violet); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, 0.3); }
#oa-root .oa-bias-l, #oa-root .oa-bias-r { position: absolute; top: 16px; font-size: 0.8em; color: var(--oa-muted); }
#oa-root .oa-bias-l { left: 0; }
#oa-root .oa-bias-r { right: 0; }
#oa-root .oa-tip-list { margin: 10px 0 0; padding: 0; list-style: none; }
#oa-root .oa-tip-list li { padding: 8px 12px; margin: 6px 0; border-radius: 10px; background: #fff9db; border: 1px solid #ffe066; }

/* Tournois */
#oa-root .oa-t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
#oa-root .oa-t-card { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--oa-line); background: var(--oa-soft); }
#oa-root .oa-t-card.is-open { background: linear-gradient(135deg, #f3f0ff, #ffffff); border-color: #d0bfff; }
#oa-root .oa-t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
#oa-root .oa-t-head strong { font-size: 1.1em; }
#oa-root .oa-t-meta { color: var(--oa-muted); font-size: 0.92em; margin: 4px 0; }
#oa-root .oa-t-hero.is-open { border-color: #d0bfff; background: linear-gradient(135deg, #f8f6ff, #ffffff) !important; }
#oa-root .oa-count-ok { background: var(--oa-ok); }

/* Records */
#oa-root .oa-mode-records { list-style: none; margin: 0; padding: 0; }
#oa-root .oa-mode-records li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--oa-line); }
#oa-root .oa-mode-records li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
#oa-root .oa-mode-records small { color: var(--oa-muted); }
#oa-root .oa-mode-records em { font-style: normal; font-weight: 800; font-size: 1.15em; color: var(--oa-violet); }
#oa-root .oa-seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
#oa-root .oa-season h3 { text-transform: capitalize !important; }

/* ================================================================== */
/* Thèmes saisonniers                                                  */
/* ================================================================== */

#oa-root .oa-logo { position: relative; }
#oa-root .oa-logo-theme { position: absolute; right: -8px; bottom: -6px; font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }

#oa-root .oa-season-banner {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin: -4px 0 14px; padding: 10px 16px; border-radius: var(--oa-radius);
	background: var(--oa-theme-banner, linear-gradient(135deg, #7c5cff, #00b8ad)); color: #fff !important; font-weight: 700;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
#oa-root .oa-season-icon { font-size: 1.6em; position: relative; z-index: 1; }
#oa-root .oa-season-msg { position: relative; z-index: 1; flex: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
#oa-root .oa-deco-toggle { position: relative; z-index: 1; font: inherit; font-size: 0.85em; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.15); color: #fff !important; cursor: pointer; }
#oa-root .oa-deco-toggle:hover { background: rgba(255, 255, 255, 0.28); }

/* Calque de décorations (scène de jeu et bandeau) */
#oa-root .oa-deco, #oa-root .oa-banner-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#oa-root .oa-stage > .oa-screen, #oa-root .oa-stage > .oa-toast { position: relative; z-index: 1; }
#oa-root .oa-deco span, #oa-root .oa-banner-deco span {
	position: absolute; top: -40px; left: calc(var(--i) * 5.6% - 3%);
	font-size: calc(14px + (var(--i) * 7 % 3) * 6px); opacity: .75; will-change: transform;
	animation: oa-fall calc(9s + var(--i) * 0.61s) linear infinite; animation-delay: calc(var(--i) * -1.37s);
}
#oa-root .oa-banner-deco span { font-size: 14px; opacity: .45; animation-duration: calc(6s + var(--i) * 0.4s); }
#oa-root .oa-deco span::before, #oa-root .oa-banner-deco span::before { content: var(--oa-sym1, "♪"); }
#oa-root .oa-deco span:nth-child(3n+2)::before, #oa-root .oa-banner-deco span:nth-child(3n+2)::before { content: var(--oa-sym2, "♫"); }
#oa-root .oa-deco span:nth-child(3n)::before, #oa-root .oa-banner-deco span:nth-child(3n)::before { content: var(--oa-sym3, "✦"); }
#oa-root.oa-no-deco .oa-deco, #oa-root.oa-no-deco .oa-banner-deco { display: none; }

@keyframes oa-fall {
	0% { transform: translate3d(0, -40px, 0) rotate(0deg); }
	50% { transform: translate3d(18px, 260px, 0) rotate(160deg); }
	100% { transform: translate3d(-12px, 620px, 0) rotate(340deg); }
}
@keyframes oa-rise {
	0% { transform: translate3d(0, 620px, 0) scale(.6); opacity: 0; }
	15% { opacity: .9; }
	80% { opacity: .8; }
	100% { transform: translate3d(14px, -40px, 0) scale(1.1); opacity: 0; }
}
@keyframes oa-fly {
	0% { transform: translate3d(-120px, 40px, 0) rotate(-8deg); }
	25% { transform: translate3d(25vw, -10px, 0) rotate(6deg); }
	50% { transform: translate3d(50vw, 50px, 0) rotate(-6deg); }
	75% { transform: translate3d(75vw, 0, 0) rotate(8deg); }
	100% { transform: translate3d(110vw, 40px, 0) rotate(-8deg); }
}
@keyframes oa-twinkle { 0%, 100% { transform: scale(.5); opacity: .15; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes oa-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* Noël : neige, rouge et or */
#oa-root.oa-theme-noel {
	--oa-sym1: "❄"; --oa-sym2: "❅"; --oa-sym3: "🎁";
	--oa-theme-banner: linear-gradient(135deg, #b3122e, #0f5132);
	--oa-stage-bg: radial-gradient(1000px 420px at 15% -10%, rgba(230, 57, 70, 0.45), transparent 60%), radial-gradient(900px 500px at 100% 110%, rgba(25, 135, 84, 0.45), transparent 60%), #0d1a14;
}
#oa-root.oa-theme-noel .oa-deco span { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, 0.7); opacity: .5; }
#oa-root.oa-theme-noel .oa-hero h2 { background: linear-gradient(90deg, #fff, #ffd6dc 40%, #f1c453); -webkit-background-clip: text; background-clip: text; }

/* Nouvel an : feux d'artifice et paillettes dorées */
#oa-root.oa-theme-nouvelan {
	--oa-sym1: "✨"; --oa-sym2: "✦"; --oa-sym3: "🎆";
	--oa-theme-banner: linear-gradient(135deg, #1b1446, #6a1b9a 60%, #c99700);
	--oa-stage-bg: radial-gradient(900px 400px at 50% -10%, rgba(245, 197, 24, 0.3), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(179, 136, 255, 0.35), transparent 60%), #0b0f2e;
}
#oa-root.oa-theme-nouvelan .oa-deco span { top: auto; bottom: 0; top: calc(var(--i) * 4.7% + 2%); color: #f5c518; animation: oa-twinkle calc(1.6s + var(--i) * 0.17s) ease-in-out infinite; animation-delay: calc(var(--i) * -0.29s); }
#oa-root.oa-theme-nouvelan .oa-banner-deco span { top: calc(var(--i) * 6% - 2%); animation: oa-twinkle calc(1.4s + var(--i) * 0.2s) ease-in-out infinite; }
#oa-root.oa-theme-nouvelan .oa-hero h2 { background: linear-gradient(90deg, #fff6d5, #f5c518 45%, #e0c3ff); -webkit-background-clip: text; background-clip: text; }

/* Pâques : œufs et fleurs qui montent, pastels */
#oa-root.oa-theme-paques {
	--oa-sym1: "🥚"; --oa-sym2: "🌷"; --oa-sym3: "🐣";
	--oa-theme-banner: linear-gradient(135deg, #f783ac, #63c38f);
	--oa-stage-bg: radial-gradient(900px 420px at 10% -10%, rgba(255, 143, 171, 0.45), transparent 60%), radial-gradient(800px 480px at 100% 110%, rgba(118, 200, 147, 0.45), transparent 60%), #2a1d3a;
}
#oa-root.oa-theme-paques .oa-deco span { top: auto; bottom: -40px; animation: oa-rise calc(10s + var(--i) * 0.5s) ease-in infinite; animation-delay: calc(var(--i) * -1.1s); }
#oa-root.oa-theme-paques .oa-banner-deco span { animation: oa-bob calc(2s + var(--i) * 0.2s) ease-in-out infinite; top: calc(var(--i) * 3% + 4px); }

/* Vacances d'été : soleil, palmiers, vagues */
#oa-root.oa-theme-vacances {
	--oa-sym1: "☀️"; --oa-sym2: "🌴"; --oa-sym3: "🐚";
	--oa-theme-banner: linear-gradient(135deg, #f59f00, #0096c7);
	--oa-stage-bg: radial-gradient(700px 360px at 85% -10%, rgba(255, 209, 102, 0.55), transparent 60%), linear-gradient(180deg, #023e8a 0%, #0077b6 60%, #00b4d8 100%);
}
#oa-root.oa-theme-vacances .oa-deco span { top: auto; bottom: -40px; animation: oa-rise calc(12s + var(--i) * 0.6s) linear infinite; animation-delay: calc(var(--i) * -1.3s); opacity: .4; }
#oa-root.oa-theme-vacances .oa-banner-deco span { animation: oa-bob calc(2.4s + var(--i) * 0.2s) ease-in-out infinite; top: calc(var(--i) * 3% + 2px); }

/* Halloween : chauves-souris, citrouilles, orange et violet */
#oa-root.oa-theme-halloween {
	--oa-sym1: "🦇"; --oa-sym2: "🎃"; --oa-sym3: "👻";
	--oa-theme-banner: linear-gradient(135deg, #ff7518, #5a189a);
	--oa-stage-bg: radial-gradient(900px 420px at 0% -10%, rgba(255, 117, 24, 0.4), transparent 60%), radial-gradient(900px 500px at 100% 110%, rgba(157, 78, 221, 0.45), transparent 60%), #130a1f;
}
#oa-root.oa-theme-halloween .oa-deco span { left: -60px; top: calc(var(--i) * 5% - 2%); animation: oa-fly calc(14s + var(--i) * 0.8s) linear infinite; animation-delay: calc(var(--i) * -1.9s); opacity: .45; }
#oa-root.oa-theme-halloween .oa-banner-deco span { left: -40px; top: calc(var(--i) * 3%); animation: oa-fly calc(9s + var(--i) * 0.5s) linear infinite; animation-delay: calc(var(--i) * -1.2s); }
#oa-root.oa-theme-halloween .oa-hero h2 { background: linear-gradient(90deg, #ffd8a8, #ff7518 45%, #d0a2ff); -webkit-background-clip: text; background-clip: text; }

/* Le thème saisonnier colore aussi le bouton principal */
#oa-root.oa-theme-noel .oa-stage .oa-btn-primary { background: linear-gradient(135deg, #e63946, #b3122e); box-shadow: 0 8px 22px rgba(230, 57, 70, 0.4); }
#oa-root.oa-theme-nouvelan .oa-stage .oa-btn-primary { background: linear-gradient(135deg, #c99700, #7b2cbf); }
#oa-root.oa-theme-paques .oa-stage .oa-btn-primary { background: linear-gradient(135deg, #f783ac, #63c38f); }
#oa-root.oa-theme-vacances .oa-stage .oa-btn-primary { background: linear-gradient(135deg, #f59f00, #0096c7); }
#oa-root.oa-theme-halloween .oa-stage .oa-btn-primary { background: linear-gradient(135deg, #ff7518, #7b2cbf); }

@media (max-width: 700px) {
	#oa-root .oa-modes { grid-template-columns: 1fr 1fr; }
	#oa-root .oa-piano { height: 140px; }
	#oa-root .oa-key-black { font-size: 0.6em; }
	#oa-root .oa-live-grid { grid-template-columns: 1fr; }
	#oa-root .oa-scorecard { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
	#oa-root .oa-deco span, #oa-root .oa-banner-deco span, #oa-root .oa-live-dot { animation: none !important; }
	#oa-root .oa-deco span { top: calc(var(--i) * 5%); }
}
#oa-root .oa-stage[data-mode="name"] .oa-kbd { display: none; }

/* ------------------------------------------------------------------ */
/* 1.2.1 : placement des blocs (réglé dans l'ACP)                       */
/* ------------------------------------------------------------------ */
#oa-root .oa-layout.oa-no-side { grid-template-columns: minmax(0, 1fr); }
#oa-root .oa-main > .oa-share { margin-top: 16px; }
#oa-root .oa-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
#oa-root .oa-below > .oa-share, #oa-root .oa-below > .oa-alert { grid-column: 1 / -1; }
#oa-root .oa-below > .oa-card, #oa-root .oa-side > .oa-card { margin: 0; }
/* Bloc de recommandation dans la colonne étroite : boutons compacts sur deux colonnes */
#oa-root .oa-side .oa-share .oa-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#oa-root .oa-side .oa-share .oa-share-btn { justify-content: center; padding: 7px 8px; font-size: 0.85em; min-width: 0; }
#oa-root .oa-side .oa-share .oa-share-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
