/* Charte graphique issue du logo : nuit étoilée bleu royal/indigo, or brillant, joyaux rose magenta, contours violets, éclats cyan. */
:root {
  --night: #0a0838; --indigo: #251a86; --royal: #3a3fe0; --sky: #5fd4ff;
  --gold: #ffd23f; --gold-light: #fff3a0; --gold-dark: #c97900;
  --magenta: #ff3fa4; --magenta-dark: #b0126b; --purple: #3b0a6e; --violet: #7a2cff;
  --ink: 0 3px 0 rgba(59, 10, 110, .9);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; position: fixed; inset: 0; width: 100%; background: #05041f; overflow: hidden; font-family: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', Arial, sans-serif; color: #fff; touch-action: none; }

/* Scène logique 540x960, mise à l'échelle par ui.js (variable --s) */
#stage { position: fixed; left: 0; top: 0; width: 540px; height: 960px; transform: scale(var(--s, 1)); transform-origin: 0 0; overflow: hidden; background: var(--night); }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; }
.screen.active { display: flex; animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: 0; transform: scale(1.03); } }
.hidden { display: none !important; }

/* Fond « nuit magique » (nom + menu) avec étoiles scintillantes et rayons */
#screen-name, #screen-signin, #screen-menu { background:
  radial-gradient(ellipse at 50% 28%, rgba(122, 44, 255, .75) 0%, transparent 55%),
  radial-gradient(circle at 50% 120%, rgba(255, 63, 164, .55) 0%, transparent 55%),
  linear-gradient(#2a1f9f, #150f66 55%, #0a0838); }
#screen-name::before, #screen-signin::before, #screen-menu::before, #screen-name::after, #screen-signin::after, #screen-menu::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 12% 18%, #fff, transparent), radial-gradient(2px 2px at 30% 8%, var(--gold-light), transparent),
    radial-gradient(3px 3px at 78% 14%, #fff, transparent), radial-gradient(2px 2px at 90% 30%, var(--sky), transparent),
    radial-gradient(2px 2px at 6% 46%, var(--gold-light), transparent), radial-gradient(3px 3px at 94% 58%, #fff, transparent),
    radial-gradient(2px 2px at 20% 72%, var(--sky), transparent), radial-gradient(3px 3px at 70% 84%, var(--gold-light), transparent),
    radial-gradient(2px 2px at 48% 94%, #fff, transparent), radial-gradient(2px 2px at 60% 40%, var(--gold-light), transparent);
  animation: twinkle 2.6s ease-in-out infinite; }
#screen-name::after, #screen-signin::after, #screen-menu::after { background-position: 37px 53px; transform: scale(1.15); animation-duration: 3.7s; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.screen > * { position: relative; z-index: 1; }

/* Logo */
.logo { border-radius: 19%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(255, 210, 63, 0.18)); }
.logo.big { width: 400px; margin-top: 90px; animation: bob 2.6s ease-in-out infinite; }
.logo.small { width: 150px; margin-top: 8px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(-1.5deg) scale(1.02); } }
.tagline { font-size: 28px; margin: 14px 0 34px; font-weight: 800; color: var(--gold-light); text-shadow: var(--ink), 0 0 10px rgba(255, 63, 164, 0.32); letter-spacing: .5px; }
#name-form { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 380px; }
#name-form label { font-size: 22px; font-weight: 800; text-shadow: var(--ink); }
#name-input { width: 100%; font-size: 32px; text-align: center; padding: 12px; border-radius: 20px; border: 5px solid var(--gold); background: #fff8e6; color: var(--purple); font-weight: 800; outline: none; box-shadow: 0 0 0 4px var(--purple), 0 0 13px rgba(255, 210, 63, 0.24); user-select: text; font-family: inherit; }
#name-input:focus { box-shadow: 0 0 0 4px var(--purple), 0 0 19px rgba(255, 63, 164, 0.36); }

/* Boutons : or brillant, contour violet, halo */
.btn { font: inherit; font-weight: 800; font-size: 30px; border: 4px solid var(--purple); border-radius: 22px; padding: 8px 34px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(#ffe46b, var(--gold) 45%, #f59a00); color: #5a2a00; text-shadow: 0 2px 0 rgba(255, 255, 255, .7);
  box-shadow: 0 6px 0 var(--purple), 0 0 0 3px var(--gold-light) inset, 0 8px 13px rgba(255, 210, 63, 0.18); transition: transform .1s, box-shadow .1s, filter .15s; }
.btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: shine 3.2s infinite; pointer-events: none; }
@keyframes shine { 0%, 65% { left: -80%; } 100% { left: 140%; } }
.btn:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple), 0 0 0 3px var(--gold-light) inset; }
.btn.green { background: linear-gradient(#8bff6a, #2fc92b 50%, #159a2a); color: #fff; text-shadow: var(--ink); box-shadow: 0 6px 0 var(--purple), 0 0 0 3px #d6ffb8 inset, 0 8px 13px rgba(60, 255, 90, 0.16); }
.btn.magenta, .btn.red { background: linear-gradient(#ff8ad0, var(--magenta) 50%, var(--magenta-dark)); color: #fff; text-shadow: var(--ink); box-shadow: 0 6px 0 var(--purple), 0 0 0 3px #ffd0ec inset, 0 8px 13px rgba(255, 63, 164, 0.2); }
.btn.blue { background: linear-gradient(#9fe6ff, #3aa0ff 50%, #2a50d8); color: #fff; text-shadow: var(--ink); box-shadow: 0 6px 0 var(--purple), 0 0 0 3px #dff6ff inset, 0 8px 13px rgba(95, 212, 255, 0.2); }
.btn.orange { background: linear-gradient(#ffcf6b, #ff9a1a 50%, #e25a00); color: #fff; text-shadow: var(--ink); }
.btn.round { width: 62px; height: 62px; padding: 0; border-radius: 50%; font-size: 26px; background: linear-gradient(#9fe6ff, #3a6bff 55%, #2a1fb0); color: #fff; text-shadow: var(--ink); box-shadow: 0 5px 0 var(--purple), 0 0 0 3px #bfe8ff inset, 0 6px 10px rgba(95, 212, 255, 0.2); }
.btn.round.red { background: linear-gradient(#ff8ad0, var(--magenta) 55%, var(--magenta-dark)); box-shadow: 0 5px 0 var(--purple), 0 0 0 3px #ffd0ec inset, 0 6px 10px rgba(255, 63, 164, 0.22); }
.btn.round.off { filter: grayscale(1) brightness(.75); }
.btn.small { font-size: 18px; padding: 8px 16px; }
#btn-leaderboard { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
#name-form .btn { font-size: 36px; padding: 10px 56px; animation: pulse 1.6s ease-in-out infinite; }

/* Menu des niveaux */
.profile { display: flex; gap: 24px; align-items: center; margin: 2px 0 8px; font-size: 26px; font-weight: 800; background: linear-gradient(rgba(59, 10, 110, .85), rgba(21, 15, 102, .85)); padding: 4px 28px; border-radius: 30px; border: 3px solid var(--gold); box-shadow: 0 0 11px rgba(255, 210, 63, 0.18); }
#player-name { color: var(--gold-light); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: var(--ink); }
#level-grid { display: grid; grid-template-columns: repeat(4, 112px); gap: 12px; margin-top: 4px; }
.level { position: relative; height: 108px; border: 4px solid var(--purple); border-radius: 24px; background: linear-gradient(#ff8ad0, var(--magenta) 55%, var(--magenta-dark)); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 6px 0 var(--purple), 0 0 0 3px var(--gold) inset, 0 0 10px rgba(255, 63, 164, 0.22); font-weight: 800; font-family: inherit; transition: transform .12s; animation: popin .5s backwards; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes popin { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
.level:hover { transform: translateY(-4px) scale(1.06) rotate(-1deg); }
.level:active { transform: translateY(3px); }
.level .num { font-size: 30px; text-shadow: var(--ink); line-height: 1; }
.level img { width: 34px; height: 34px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 2px 0 var(--purple); }
.level .best { font-size: 15px; color: var(--gold-light); text-shadow: var(--ink); }
.level.done { background: linear-gradient(#ffe46b, var(--gold) 50%, #f59a00); color: #5a2a00; box-shadow: 0 6px 0 var(--purple), 0 0 0 3px #fff6c4 inset, 0 0 12px rgba(255, 210, 63, 0.28); }
.level.done .num { text-shadow: 0 2px 0 #fff; }
.level.done .best { color: var(--purple); text-shadow: none; }
.level.current::before { content: ''; position: absolute; inset: -7px; border-radius: 30px; border: 3px solid var(--sky); box-shadow: 0 0 22px var(--sky), inset 0 0 8px rgba(95, 212, 255, 0.2); animation: ringpulse 1.3s ease-in-out infinite; pointer-events: none; }
@keyframes ringpulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.level.locked { background: linear-gradient(#5a54b8, #2c2780); cursor: not-allowed; box-shadow: 0 6px 0 var(--purple), 0 0 0 3px #7f78d6 inset; }
.level.locked:hover { transform: none; }
.level.locked img { opacity: .3; filter: grayscale(1); }
.level.locked .num { opacity: .7; }
.level .lock { position: absolute; top: 6px; right: 8px; font-size: 18px; }
.menu-actions { display: flex; gap: 14px; align-items: center; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* Écran de jeu */
#screen-game { background: var(--night); }
#canvas { position: absolute; inset: 0; width: 540px; height: 960px; touch-action: none; z-index: 0; }
.hud { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; z-index: 2; }
.hud > * { pointer-events: auto; }
.pill { display: flex; align-items: center; gap: 10px; padding: 4px 22px 4px 12px; border: 4px solid var(--gold); border-radius: 28px; background: linear-gradient(var(--violet), var(--purple)); color: #fff; font-size: 36px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 0 11px rgba(255, 210, 63, 0.2); text-shadow: var(--ink); }
.pill.lvl-pill { font-size: 20px; padding: 4px 16px; margin-top: 6px; border-color: var(--sky); box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 9px rgba(95, 212, 255, 0.24); }
.pill.small { position: absolute; left: 14px; top: 98px; font-size: 18px; padding: 2px 14px; z-index: 2; }
.pill.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.25); } }
.ball-icon { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #ffb3e0 18%, var(--magenta) 55%, var(--magenta-dark)); border: 3px solid var(--gold); box-shadow: 0 0 12px var(--magenta); }
.hud-buttons { margin-left: auto; display: flex; flex-direction: column; gap: 10px; }
.hud-buttons .btn { width: 54px; height: 54px; font-size: 22px; }
.controls { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 12px; pointer-events: none; z-index: 2; }
.controls .btn { pointer-events: auto; }
.hint { position: absolute; bottom: 8px; left: 90px; right: 90px; text-align: center; font-size: 15px; color: #fff; text-shadow: var(--ink); pointer-events: none; z-index: 2; }
#tech-banner { position: absolute; top: 170px; left: 50%; display: flex; align-items: center; gap: 12px; padding: 8px 24px 8px 10px; border-radius: 34px; background: linear-gradient(var(--violet), var(--purple)); border: 4px solid var(--gold); box-shadow: 0 0 15px rgba(255, 210, 63, 0.28); font-size: 24px; font-weight: 800; animation: banner 3.2s forwards; pointer-events: none; white-space: nowrap; z-index: 3; text-shadow: var(--ink); }
#tech-banner img { width: 46px; height: 46px; background: #fff; border-radius: 12px; padding: 5px; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -30px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 18%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.popup { position: absolute; z-index: 4; font-size: 44px; font-weight: 800; color: var(--gold-light); text-shadow: 0 4px 0 var(--purple), 0 0 20px var(--magenta); pointer-events: none; animation: popup 1.1s forwards; white-space: nowrap; }
@keyframes popup { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.3); } 25% { opacity: 1; transform: translate(-50%, -10px) scale(1.25) rotate(-4deg); } 100% { opacity: 0; transform: translate(-50%, -80px) scale(1); } }

/* Fenêtres */
.modal { position: absolute; inset: 0; background: radial-gradient(circle, rgba(10, 8, 56, .45), rgba(5, 4, 31, .82)); display: flex; align-items: center; justify-content: center; z-index: 10; }
.panel { width: 440px; background: linear-gradient(#4b44f0, var(--indigo) 60%, #170f6a); border: 6px solid var(--gold); border-radius: 30px; padding: 26px 22px; text-align: center; box-shadow: 0 0 0 5px var(--purple), 0 10px 0 5px var(--purple), 0 0 33px rgba(255, 63, 164, 0.24); animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); position: relative; }
@keyframes pop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.panel h2 { margin: 0 0 8px; font-size: 42px; color: var(--gold-light); text-shadow: 0 4px 0 var(--purple), 0 0 22px var(--magenta); }
.panel p { font-size: 20px; margin: 8px 0; }
.panel .row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.panel .row .btn { font-size: 20px; padding: 8px 16px; }
.stars { font-size: 60px; letter-spacing: 6px; min-height: 76px; filter: drop-shadow(0 0 14px var(--gold)); }
.stars span { display: inline-block; animation: starpop .5s cubic-bezier(.3, 2, .5, 1); }
@keyframes starpop { from { transform: scale(0) rotate(-180deg); } }
.score-big { font-size: 72px; font-weight: 800; color: var(--gold); text-shadow: 0 5px 0 var(--purple), 0 0 14px rgba(255, 210, 63, 0.36); line-height: 1.1; }
.score-big small { font-size: 26px; }
#leaderboard-list { text-align: left; font-size: 24px; font-weight: 800; padding-left: 36px; min-height: 120px; }
#leaderboard-list li { margin: 6px 0; }
#leaderboard-list li span { float: right; color: var(--gold); }

/* Adaptation tablette / téléphone : le menu défile si l'écran est court, cibles tactiles confortables */
#screen-menu { overflow-y: auto; overflow-x: hidden; touch-action: pan-y; justify-content: flex-start; padding-bottom: 20px; scrollbar-width: none; }
#screen-menu::-webkit-scrollbar { display: none; }
#screen-menu > .modal { position: fixed; }
.hint { bottom: 12px; left: 20px; right: 20px; }
@media (hover: none) { .btn:hover { transform: none; filter: none; } .level:hover { transform: none; } }

/* Plein écran, toutes orientations */
#stage.wide #level-grid { grid-template-columns: repeat(5, 112px); }
#stage.short .logo.big { width: 230px; margin-top: 16px; }
#stage.short .tagline { margin: 6px 0 14px; font-size: 22px; }
#stage.short .logo.small { width: 84px; margin-top: 4px; }
#stage.short .level { height: 96px; }
#stage.short .menu-actions { margin-top: 10px; }
#stage.wide .hud { left: 24px; right: 24px; }
.hud-buttons { flex-direction: column; }
#stage.wide.short .hud-buttons { flex-direction: row; }
@media (hover: none) { #btn-full, #btn-full-menu { display: inline-block; } }

/* ?clean=1 : captures promotionnelles sans bandeau ni texte d'aide */
#stage.clean #tech-banner, #stage.clean .hint { display: none !important; }

/* Menu de 200 niveaux : titres de dizaines, défilement */
#level-grid .world { grid-column: 1 / -1; margin: 10px 0 0; padding: 2px 16px; justify-self: start; font-size: 20px; font-weight: 800; color: var(--gold-light); text-shadow: var(--ink); background: rgba(59, 10, 110, .55); border-radius: 14px; }
#stage.wide #level-grid { grid-template-columns: repeat(5, 112px); }

/* texte réservé aux moteurs de recherche et lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* connexion Google + classement */
#signin-box { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 380px; max-width: 90%; position: relative; z-index: 1; }
.btn.google { display: flex; align-items: center; gap: 12px; background: #fff; color: #3c4043; border: 4px solid var(--gold); border-radius: 40px; padding: 10px 24px; font-size: 21px; white-space: nowrap; font-weight: 800; font-family: inherit; box-shadow: 0 5px 0 var(--purple); cursor: pointer; animation: pulse 1.8s ease-in-out infinite; }
.btn.google:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--purple); }
.linkbtn { background: none; border: 0; color: #fff; font-family: inherit; font-size: 20px; font-weight: 800; text-decoration: underline; text-shadow: var(--ink); cursor: pointer; padding: 6px; }
.signin-msg { min-height: 22px; margin: 0; color: #ffd6d6; font-weight: 800; text-shadow: var(--ink); text-align: center; }
.signin-note { color: #e6dcff; text-align: center; font-size: 15px; text-shadow: var(--ink); }
#leaderboard-list { max-height: 52vh; overflow-y: auto; }
#leaderboard-list li.me { background: rgba(255, 210, 63, .45); border-radius: 10px; }

/* profil : proposer la création d'un compte aux joueurs invités */
.prof-cloud { margin-top: 12px; padding-top: 10px; border-top: 3px dashed rgba(122, 74, 170, .35); text-align: center; color: var(--purple); }
.prof-cloud p { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.prof-cloud .btn.google { margin: 0 auto; font-size: 19px; animation: none; }
.prof-cloud .signin-msg { color: #b02a2a; text-shadow: none; }

/* classement verrouillé jusqu'au niveau 10, message temporaire, avatars du classement */
.side-btn.locked { filter: grayscale(.85) brightness(.85); }
.side-btn.locked .ico::after { content: '🔒'; position: absolute; top: -8px; right: -8px; font-size: 22px; filter: none; }
.toast { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 30; padding: 10px 20px; border-radius: 22px; background: rgba(28, 10, 66, .92); border: 3px solid var(--gold); color: #fff; font-weight: 800; font-size: 20px; text-align: center; max-width: 86%; pointer-events: none; animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
#leaderboard-list li { display: flex; align-items: center; gap: 8px; }
#leaderboard-list li span { margin-left: auto; float: none; }
.lb-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 24%; border: 2px solid var(--gold); flex: none; }

/* classement : podium des 3 premiers, liste 4-10, page complète */
.rank-podium { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; margin: -4px auto 0; }
.rank-podium > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rank-podium .pd { position: absolute; transform: translateX(-50%); width: 36%; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; }
.rank-podium .pd.p1 { left: 50%; bottom: 66%; } .rank-podium .pd.p2 { left: 20%; bottom: 53%; } .rank-podium .pd.p3 { left: 84%; bottom: 37.5%; }
.rank-podium .pd em { font-style: normal; font-weight: 800; font-size: 15px; color: var(--purple); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.rank-podium .pd small { font-size: 13px; font-weight: 800; color: #b06a00; }
.rank-podium .pd.p1 .lb-av { width: 58px; height: 58px; border-color: #ffc21a; box-shadow: 0 0 0 3px #fff3a0, 0 0 14px rgba(255, 194, 26, .8); }
.lb-av.lg { width: 48px; height: 48px; border-width: 3px; }
.lb-av.ini { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(#8c5cff, #4a22b8); color: #fff; font-weight: 800; font-size: 20px; }
.rank-podium .pd.hidden { display: none; }
#leaderboard-list { min-height: 0; max-height: none; overflow: visible; margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 20px; }
#leaderboard-list li { gap: 10px; }
#leaderboard-list li.empty, #ranking-list li.empty { justify-content: center; color: var(--purple); }
.rk { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 14px; background: var(--purple); color: #fff; font-size: 16px; flex: none; }
#leaderboard-list .nm, #ranking-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-lb-more { display: block; margin: 12px auto 4px; font-size: 22px; padding: 8px 34px; }
#btn-lb-more.hidden { display: none; }
#leaderboard .panel-inner { max-height: 74vh; overflow-y: auto; }

#screen-ranking { background: linear-gradient(#2a1190, #4a22b8 55%, #7a45e8); justify-content: flex-start; padding: 16px 14px; }
.ranking-head { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; }
.ranking-head h2 { margin: 0; font-size: 30px; color: #fff3a0; text-shadow: var(--ink); }
.ranking-me { margin: 10px 0 6px; font-weight: 800; color: #fff; text-shadow: var(--ink); min-height: 22px; }
#ranking-list { width: 100%; max-width: 560px; flex: 1; overflow-y: auto; margin: 0 0 8px; padding: 0; list-style: none; font-size: 21px; font-weight: 800; color: var(--purple); background: #fff6e0; border: 5px solid var(--gold); border-radius: 22px; }
#ranking-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 2px dashed rgba(122, 74, 170, .25); }
#ranking-list li span:last-child { margin-left: auto; color: #b06a00; white-space: nowrap; font-size: 18px; }
#ranking-list li.me { background: rgba(255, 210, 63, .55); }
#ranking-list li:nth-child(1) .rk { background: #f5b800; } #ranking-list li:nth-child(2) .rk { background: #9aa6b8; } #ranking-list li:nth-child(3) .rk { background: #c4742c; }
#leaderboard-list li .nm, #ranking-list li .nm { flex: 1; min-width: 0; }
#leaderboard-list li span:last-child { margin-left: auto; white-space: nowrap; font-size: 15px; float: none; }
#leaderboard-list li { padding: 4px 6px; border-radius: 12px; }

.more-levels { grid-column: 1 / -1; justify-self: center; margin: 10px 0 18px; }
