/* RAPZODY V15.36 — NOUVEL ACCUEIL DU JEU (hub.js : renderHubMenu)
   Maquette « Ma carrière » : scène de concert, carte Ma carrière, 4 tuiles, pass de saison.
   Mêmes polices que le jeu (Inter). Téléphone d'abord ; sur ordinateur, la même colonne centrée. */

.ha { --red: #ff202b; --gold: #ffc23a; position: relative; min-height: 100dvh; overflow: clip; background: #050507; color: #fff; font-family: Inter, system-ui, sans-serif; }
.ha-scene { position: absolute; left: 0; right: 0; top: 0; height: min(78vw, 640px); max-height: 640px; overflow: hidden; }
.ha-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .9; }
.ha-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,.1) 30%, rgba(5,5,7,.35) 62%, #050507 100%), radial-gradient(70% 60% at 25% 35%, rgba(5,5,7,.55), transparent 70%); }
.ha-in { position: relative; z-index: 1; width: min(520px, 100%); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
@media (min-width: 700px) { .ha-scene { height: 620px; } }

/* en-tête */
.ha-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ha-me { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.ha-avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 3px solid var(--red); box-shadow: 0 0 22px rgba(255,32,43,.55); background: radial-gradient(circle at 50% 35%, #3a0a0e, #120405); }
.ha-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.7); transform-origin: 50% 10%; }
.ha-lvl { display: grid; gap: 7px; min-width: 0; }
.ha-lvl b { font: 900 19px/1 Inter, sans-serif; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-lvl small { color: #b9b9c1; font-size: 12px; font-weight: 700; margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-lvl i { display: block; width: 120px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.ha-lvl em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff202b, #ff5a5f); box-shadow: 0 0 10px rgba(255,32,43,.8); }
.ha-tools { display: flex; gap: 8px; }
.ha-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,10,12,.65); color: #fff; cursor: pointer; backdrop-filter: blur(6px); font: 800 18px/1 Inter, sans-serif; }
.ha-icon svg { width: 24px; height: 24px; }
.ha-icon[disabled] { opacity: .45; cursor: not-allowed; }

/* logo actuel du jeu, couronne au-dessus */
.ha-brand { position: relative; display: grid; justify-items: center; margin: 4vw 0 0; padding-bottom: 10px; }
.ha-crown svg { width: 58px; height: 44px; filter: drop-shadow(0 0 12px rgba(255,194,58,.65)); }
.ha-logo { margin: 2px 0 0; font: italic 900 clamp(60px, 17vw, 92px)/.9 Inter, sans-serif !important; letter-spacing: -.055em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.ha-logo b { color: var(--red); text-shadow: 0 0 34px rgba(255,32,43,.55); }

/* Ma carrière */
.ha-career { position: relative; overflow: hidden; margin-top: min(16vw, 120px); min-height: 200px; border-radius: 22px; padding: 22px 20px;
    border: 1px solid rgba(255,32,43,.55); background: linear-gradient(105deg, rgba(14,6,8,.96) 40%, rgba(60,8,12,.75)); box-shadow: 0 0 40px rgba(255,32,43,.22), inset 0 1px 0 rgba(255,255,255,.06); }
.ha-mic { position: absolute; right: -6px; top: -8px; height: 128%; width: auto; max-width: 46%; object-fit: cover; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; }
.ha-career-txt { position: relative; display: grid; gap: 8px; max-width: 64%; }
.ha-career h2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 900 25px/1.1 Inter, sans-serif; letter-spacing: -.01em; }
.ha-cr svg { width: 38px; height: 29px; filter: drop-shadow(0 0 8px rgba(255,32,43,.6)); }
.ha-career p { margin: 0; color: #d2d2d8; font-size: 15px; line-height: 1.4; }
.ha-career small { color: #9a9aa3; font-size: 12.5px; font-weight: 700; }
.ha-play { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 240px); min-height: 54px; margin-top: 6px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(180deg, #ff3a44, #c4111b); color: #fff; font: 900 21px/1 Inter, sans-serif; box-shadow: 0 8px 26px rgba(255,32,43,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.ha-play svg { width: 24px; height: 24px; }
.ha-play:active, .ha-tile:active, .ha-pass:active { transform: scale(.985); }

/* tuiles */
.ha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ha-tile { position: relative; display: grid; justify-items: center; align-content: end; gap: 6px; min-height: 160px; padding: 14px 10px 16px; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,32,43,.45); background: radial-gradient(90% 70% at 50% 30%, rgba(255,32,43,.22), transparent 70%), linear-gradient(180deg, #17080a, #0b0507);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px rgba(255,32,43,.12); color: #fff; text-decoration: none; font: inherit; cursor: pointer; }
.ha-tile:hover { border-color: rgba(255,90,95,.8); }
.ha-art { display: grid; place-items: center; width: 100%; height: 96px; }
.ha-art svg { height: 100%; width: auto; max-width: 130px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.ha-tile b { font: 900 19px/1.1 Inter, sans-serif; letter-spacing: -.01em; text-align: center; }

/* pass de saison */
.ha-pass { position: relative; overflow: hidden; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 12px; align-items: center; width: 100%; padding: 16px 16px 14px; border-radius: 20px; cursor: pointer; text-align: left; font: inherit; color: #fff;
    border: 1.5px solid rgba(255,194,58,.85); background: linear-gradient(100deg, #140f06 30%, #3a1a06 70%, #5a0f0f); box-shadow: 0 0 30px rgba(255,194,58,.18); }
.ha-pass-bg { position: absolute; right: -30px; top: -40px; width: 170px; transform: rotate(14deg); opacity: .55; pointer-events: none; }
.ha-pass-bg img { width: 100%; border-radius: 12px; border: 2px solid rgba(255,194,58,.6); -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 85%); mask-image: linear-gradient(200deg, #000 35%, transparent 85%); }
.ha-pass-crown svg { width: 50px; height: 38px; filter: drop-shadow(0 0 10px rgba(255,194,58,.6)); }
.ha-pass-txt { position: relative; display: grid; gap: 4px; min-width: 0; }
.ha-pass-txt b { color: var(--gold); font: 900 21px/1.1 Inter, sans-serif; letter-spacing: .02em; }
.ha-pass-txt small { color: #e6e1d2; font-size: 13.5px; }
.ha-pass-bar { display: block; height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.ha-pass-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd978, #f5b52e); box-shadow: 0 0 10px rgba(255,194,58,.7); }
.ha-pass-lvl { color: #cfcab8; font-size: 13px; font-weight: 700; } .ha-pass-lvl b { color: #fff; }
.ha-pass-cta { position: relative; grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 10px 14px; border-radius: 12px;
    background: linear-gradient(180deg, #ffd978, #f5b52e); color: #1a1200; font: 900 14px/1 Inter, sans-serif; box-shadow: 0 6px 18px rgba(255,194,58,.35); }
.ha-pass-cta svg { width: 16px; height: 16px; }
@media (min-width: 420px) { .ha-pass-cta { position: absolute; right: 14px; bottom: 14px; margin: 0; } .ha-pass-txt { padding-right: 0; } .ha-pass { padding-bottom: 16px; } .ha-pass-lvl { padding-right: 190px; } }

/* réglages */
.ha-sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); }
.ha-sheet { position: fixed; z-index: 81; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); max-height: 85dvh; overflow: auto; display: grid; gap: 8px;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #111114; border: 1px solid rgba(255,255,255,.1); }
.ha-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ha-sheet-head b { font: 900 19px/1 Inter, sans-serif; }
.ha-row { display: grid; gap: 3px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #18181d; color: #fff; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.ha-row span { font-weight: 800; font-size: 15px; } .ha-row small { color: #9a9aa3; font-size: 12.5px; }
.ha-row[disabled] { opacity: .5; }
.ha-ver { margin: 6px 0 0; text-align: center; color: #6f6f78; font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
    .ha-crown svg { animation: haGlow 2.8s ease-in-out infinite; }
    @keyframes haGlow { 50% { filter: drop-shadow(0 0 20px rgba(255,194,58,.9)); } }
}

/* V15.36 : tuiles illustrées (Mode carrière, Mode label, Classement), couleur par mode */
.ha-tile { --tc: 255,32,43; border-color: rgba(var(--tc), .55); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px rgba(var(--tc), .16); }
.t-gold { --tc: 255,194,58; } .t-green { --tc: 46,214,110; }
.ha-tile--img { padding: 0; align-content: stretch; grid-template-rows: minmax(0, 1fr) auto; background: #08080a; }
.ha-tile--img img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 560 / 413; object-fit: cover; }
.ha-tile--img b { display: block; width: 100%; margin-top: -34px; padding: 30px 8px 14px; position: relative; text-shadow: 0 2px 12px rgba(0,0,0,.9);
    background: linear-gradient(180deg, transparent, rgba(6,6,8,.92) 55%); }
.ha-tile--img:hover { border-color: rgba(var(--tc), .9); }
