/* ============================================================
   PRIMEPASS — Play & Win  ·  Modern Premium UI  (v2)
   Trivia + Spin the Wheel. Inherits palette tokens from
   style.css (--gold = emerald, --cream, --bg-elev, …).
   Design language: frosted glass, gradient hairlines, soft
   glow, generous space, editorial type, fluid micro-motion.
   ============================================================ */

:root {
    --g-glass: linear-gradient(165deg, rgba(30,40,34,0.55), rgba(12,16,14,0.72));
    --g-glass-strong: linear-gradient(165deg, rgba(34,46,39,0.85), rgba(12,16,14,0.92));
    --g-hairline: rgba(246,231,184,0.12);
    --g-glow-emerald: 0 0 0 1px rgba(86,165,122,0.18), 0 24px 70px -30px rgba(86,165,122,0.55);
    --g-glow-gold: 0 0 0 1px rgba(212,180,106,0.22), 0 24px 70px -28px rgba(212,180,106,0.45);
    --g-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gold2: #d4b46a;
    --gold2-light: #f1dca0;
}

/* Shared inner-highlight + frosted treatment */
.game-hero, .quiz-card, .wheel-panel, .leaderboard, .stat-chip,
.season-prize, .badge-tile, .unlock-card, .artist-ctx, .mg-pass, .challenge-banner {
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}

/* Finger / hand cursor on everything clickable across the game pages */
button, a, summary, [role="button"],
.btn, .games-tabs a, .lb-tabs button, .quiz-opt, .spin-btn,
.wheel-hub, #wheelCanvas, .wheel-wrap, .fair-box summary,
.unlock-card a, .mg-pass a, .prize-modal-card a, .stat-chip {
    cursor: pointer;
}
button:disabled, .btn:disabled, .spin-btn:disabled, .quiz-opt:disabled {
    cursor: not-allowed;
}

/* ============================================================
   HERO
   ============================================================ */
.game-hero {
    position: relative;
    overflow: hidden;
    border-radius: clamp(24px, 3vw, 40px);
    padding: clamp(40px, 6.5vw, 88px);
    background:
        radial-gradient(120% 90% at 8% -10%, rgba(86,165,122,0.22), transparent 55%),
        radial-gradient(110% 120% at 100% 120%, rgba(212,180,106,0.16), transparent 52%),
        var(--g-glass-strong);
    border: 1px solid var(--g-hairline);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 60px 120px -50px rgba(0,0,0,0.85);
}
.game-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(40% 60% at 50% -20%, rgba(126,201,154,0.18), transparent 70%);
    mix-blend-mode: screen; pointer-events: none;
}
.game-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(246,231,184,0.045) 1px, transparent 1.4px);
    background-size: 26px 26px;
    opacity: 0.45; pointer-events: none;
    -webkit-mask-image: linear-gradient(160deg, #000 20%, transparent 80%);
    mask-image: linear-gradient(160deg, #000 20%, transparent 80%);
}
.game-hero > * { position: relative; z-index: 1; }
.game-hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 0.98; letter-spacing: -0.03em; margin: 14px 0 18px;
    background: linear-gradient(180deg, #fbf7ec 0%, #cdc6b3 130%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.game-hero .tagline { max-width: 640px; color: var(--text-soft); font-size: clamp(1rem, 1.3vw, 1.12rem); }

/* ---- Stat chips ---- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 4px; }
.stat-chip {
    position: relative;
    display: flex; flex-direction: column; gap: 3px;
    padding: 16px 22px; min-width: 116px;
    background: var(--g-glass);
    border: 1px solid var(--g-hairline);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.3s var(--g-ease), border-color 0.3s, box-shadow 0.3s;
}
.stat-chip:hover { transform: translateY(-3px); border-color: rgba(86,165,122,0.4); box-shadow: var(--g-glow-emerald); }
.stat-chip .v { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--cream); line-height: 1; }
.stat-chip .v.gold { background: linear-gradient(120deg, #7ec99a, #f1dca0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-chip .k { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* ---- Segmented tabs ---- */
.games-tabs { display: inline-flex; gap: 6px; padding: 6px; background: rgba(6,11,9,0.6); border: 1px solid var(--g-hairline); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.games-tabs a { padding: 10px 22px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); transition: all 0.3s var(--g-ease); }
.games-tabs a.active { background: linear-gradient(135deg, #7ec99a, #2d6e4f); color: #06120c; box-shadow: 0 10px 26px -10px rgba(86,165,122,0.7); }
.games-tabs a:not(.active):hover { color: var(--cream); }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-card {
    position: relative;
    background: var(--g-glass-strong);
    border: 1px solid var(--g-hairline);
    border-radius: clamp(20px, 2.6vw, 32px);
    padding: clamp(28px, 4.4vw, 52px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 40px 90px -45px rgba(0,0,0,0.8);
}
.quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.quiz-progress-track { flex: 1; height: 7px; min-width: 150px; border-radius: 999px; background: rgba(246,231,184,0.07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2d6e4f, #7ec99a); border-radius: 999px; transition: width 0.45s var(--g-ease); box-shadow: 0 0 12px rgba(126,201,154,0.5); }
.quiz-q-num { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.quiz-difficulty { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--g-hairline); color: var(--text-muted); background: rgba(6,11,9,0.4); }
.quiz-difficulty.easy { color: #9fe0b6; border-color: rgba(127,201,154,0.45); }
.quiz-difficulty.medium { color: #f4d8b3; border-color: rgba(230,176,107,0.45); }
.quiz-difficulty.hard { color: #f3c4c4; border-color: rgba(224,122,122,0.45); }

.quiz-question { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.22; color: var(--cream); margin: 8px 0 30px; letter-spacing: -0.01em; }
.quiz-options { display: grid; gap: 14px; }
@media (min-width: 620px) { .quiz-options { grid-template-columns: 1fr 1fr; } }
.quiz-opt {
    display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
    padding: 19px 22px;
    background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
    border: 1px solid var(--g-hairline); border-radius: 16px;
    color: var(--text-soft); font-size: 1rem; font-family: inherit; cursor: pointer;
    transition: transform 0.25s var(--g-ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.quiz-opt:hover:not(:disabled) { border-color: rgba(126,201,154,0.55); transform: translateY(-2px); color: var(--cream); box-shadow: var(--g-glow-emerald); }
.quiz-opt .letter { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: rgba(246,231,184,0.08); color: var(--gold-light); border: 1px solid var(--g-hairline); transition: all 0.25s var(--g-ease); }
.quiz-opt:hover:not(:disabled) .letter { background: rgba(126,201,154,0.18); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { border-color: var(--success); background: rgba(127,201,154,0.14); color: #d6f0de; }
.quiz-opt.correct .letter { background: var(--success); color: #06120c; }
.quiz-opt.wrong { border-color: var(--danger); background: rgba(224,122,122,0.14); color: #f3c4c4; }
.quiz-opt.wrong .letter { background: var(--danger); color: #2a0d0d; }
.quiz-opt.dim { opacity: 0.45; }

/* ---- Result ---- */
.quiz-result { text-align: center; padding: clamp(20px, 4vw, 44px) 0; }
.quiz-score-ring {
    width: 168px; height: 168px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; position: relative;
    background: conic-gradient(from -90deg, #7ec99a var(--pct, 0%), rgba(246,231,184,0.08) 0);
    filter: drop-shadow(0 12px 30px rgba(86,165,122,0.35));
    transition: background 0.8s var(--g-ease);
}
.quiz-score-ring::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #1a241e, #0c100e); }
.quiz-score-ring .inner { position: relative; z-index: 1; font-family: 'Playfair Display', serif; }
.quiz-score-ring .inner b { display: block; font-size: 2.8rem; color: var(--cream); line-height: 1; }
.quiz-score-ring .inner span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.reward-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }
.reward-pill { padding: 12px 22px; border-radius: 999px; background: linear-gradient(135deg, rgba(86,165,122,0.16), rgba(212,180,106,0.08)); border: 1px solid rgba(86,165,122,0.3); color: var(--gold-light); font-weight: 600; font-size: 0.92rem; }
.reward-pill b { color: var(--cream); }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: rgba(6,11,9,0.6); border: 1px solid var(--g-hairline); border-radius: 999px; }
.lb-tabs button { padding: 9px 18px; border: 0; background: none; cursor: pointer; border-radius: 999px; font-size: 0.8rem; font-weight: 600; font-family: inherit; color: var(--text-muted); transition: all 0.3s var(--g-ease); }
.lb-tabs button.active { background: linear-gradient(135deg, #7ec99a, #2d6e4f); color: #06120c; }
.lb-tabs button:not(.active):hover { color: var(--cream); }

.leaderboard { background: var(--g-glass); border: 1px solid var(--g-hairline); border-radius: clamp(18px, 2.4vw, 28px); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 30px 70px -40px rgba(0,0,0,0.7); }
.lb-row { display: grid; grid-template-columns: 46px 50px 1fr auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid rgba(246,231,184,0.05); transition: background 0.25s; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: rgba(126,201,154,0.05); }
.lb-row.me { background: rgba(86,165,122,0.12); box-shadow: inset 3px 0 0 var(--gold-light); }
.lb-rank { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text-muted); text-align: center; }
.lb-row.top .lb-rank { color: var(--gold-light); }
.lb-medal { font-size: 1.5rem; }
.lb-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; color: #06120c; background: linear-gradient(135deg, #7ec99a, #2d6e4f); border: 1px solid rgba(246,231,184,0.18); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.7); }
.lb-row.top .lb-avatar { background: linear-gradient(135deg, #f1dca0, #d4b46a); box-shadow: 0 8px 22px -8px rgba(212,180,106,0.7); }
.lb-name { color: var(--cream); font-weight: 600; min-width: 0; }
.lb-name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.03em; margin-top: 2px; }
.lb-badges { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.lb-badges span { font-size: 0.95rem; }
.lb-pts { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold-light); white-space: nowrap; text-align: right; }
.lb-pts span { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: block; }
.lb-empty { padding: 46px 24px; text-align: center; color: var(--text-muted); }

/* ---- Season prizes ---- */
.season-prizes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.season-prize { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; border: 1px solid var(--g-hairline); background: var(--g-glass); transition: transform 0.3s var(--g-ease), box-shadow 0.3s; }
.season-prize:hover { transform: translateY(-4px); box-shadow: var(--g-glow-emerald); }
.season-prize .pl { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.season-prize .pr { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--cream); margin: 10px 0 6px; }
.season-prize p { font-size: 0.84rem; color: var(--text-muted); margin: 0; }
.season-prize.gold { border-color: rgba(212,180,106,0.45); background: linear-gradient(165deg, rgba(212,180,106,0.16), rgba(12,16,14,0.75)); }
.season-prize.gold:hover { box-shadow: var(--g-glow-gold); }

/* ============================================================
   WHEEL
   ============================================================ */
.wheel-stage { display: grid; gap: 52px; align-items: center; }
@media (min-width: 940px) { .wheel-stage { grid-template-columns: minmax(0, 1fr) 380px; } }

.wheel-wrap { position: relative; width: min(460px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap::before {
    content: ''; position: absolute; inset: -26px; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(212,180,106,0.55), rgba(86,165,122,0.45), rgba(212,180,106,0.55), rgba(86,165,122,0.45), rgba(212,180,106,0.55));
    filter: blur(20px); opacity: 0.5; z-index: 0; animation: wheelaura 9s linear infinite;
}
@keyframes wheelaura { to { transform: rotate(360deg); } }
#wheelCanvas {
    position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
    box-shadow: 0 40px 100px -28px rgba(0,0,0,0.85), inset 0 0 0 9px rgba(6,11,9,0.65), inset 0 0 0 12px rgba(212,180,106,0.4), inset 0 0 0 13px rgba(246,231,184,0.12);
    transition: transform 5.5s cubic-bezier(0.16, 0.74, 0.10, 1);
}
.wheel-hub {
    position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; cursor: pointer;
    background: radial-gradient(circle at 35% 28%, #21302a, #0a0e0c);
    border: 2px solid rgba(212,180,106,0.55);
    box-shadow: 0 12px 34px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.08);
    font-family: 'Playfair Display', serif; color: var(--gold-light);
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
    transition: transform 0.25s var(--g-ease);
}
.wheel-hub:hover { transform: translate(-50%, -50%) scale(1.06); }
.wheel-pointer { position: absolute; z-index: 4; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--gold2-light); filter: drop-shadow(0 5px 7px rgba(0,0,0,0.6)); }

.wheel-panel { background: var(--g-glass-strong); border: 1px solid var(--g-hairline); border-radius: 28px; padding: 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 40px 90px -45px rgba(0,0,0,0.8); }
.spin-btn {
    width: 100%; padding: 19px; font-size: 1.06rem; font-weight: 700; letter-spacing: 0.03em; border: 0; border-radius: 18px; cursor: pointer;
    background: linear-gradient(135deg, #7ec99a 0%, #2d6e4f 100%); color: #06120c;
    box-shadow: 0 18px 44px -16px rgba(86,165,122,0.75), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.25s var(--g-ease), filter 0.25s, opacity 0.25s;
}
.spin-btn:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.08); }
.spin-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.prize-legend { display: grid; gap: 9px; margin-top: 24px; }
.prize-legend li { display: flex; align-items: center; gap: 11px; font-size: 0.84rem; color: var(--text-soft); list-style: none; }
.prize-legend .sw { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 8px rgba(0,0,0,0.4); }
.prize-legend .od { margin-left: auto; color: var(--text-muted); font-size: 0.74rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

.fair-box { margin-top: 22px; border: 1px solid var(--g-hairline); border-radius: 18px; background: rgba(6,11,9,0.45); overflow: hidden; }
.fair-box summary { cursor: pointer; padding: 15px 18px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); list-style: none; }
.fair-box summary::-webkit-details-marker { display: none; }
.fair-box[open] summary { border-bottom: 1px solid var(--g-hairline); }
.fair-body { padding: 16px 18px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.fair-body code { display: block; word-break: break-all; color: var(--text-soft); background: rgba(0,0,0,0.4); padding: 9px 11px; border-radius: 9px; margin: 4px 0 12px; font-size: 0.72rem; }

/* ---- Won-prize modal ---- */
.prize-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4,6,5,0.82); backdrop-filter: blur(8px); }
.prize-modal.show { display: flex; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.prize-modal-card {
    max-width: 460px; width: 100%; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(120% 80% at 50% -10%, rgba(86,165,122,0.22), transparent 60%), var(--g-glass-strong);
    border: 1px solid rgba(212,180,106,0.35); border-radius: 32px;
    padding: clamp(34px, 5vw, 56px); box-shadow: 0 60px 130px -40px rgba(0,0,0,0.85);
    animation: pop 0.45s var(--g-ease);
}
@keyframes pop { from { transform: scale(0.84) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.prize-modal-card .emoji { font-size: 3.4rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4)); }
.prize-modal-card h2 { margin: 16px 0 6px; font-size: 2.1rem; }
.prize-modal-card .pcode { display: inline-block; margin-top: 8px; padding: 11px 20px; border-radius: 12px; background: rgba(212,180,106,0.16); border: 1px dashed rgba(212,180,106,0.55); color: #f4d8b3; font-family: monospace; font-size: 1.15rem; letter-spacing: 0.1em; }

/* ---- MG pass cards ---- */
.mg-pass { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid rgba(212,180,106,0.4); border-radius: 18px; background: linear-gradient(120deg, rgba(212,180,106,0.12), rgba(86,165,122,0.06)); margin-bottom: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.mg-pass .ic { font-size: 1.7rem; }
.mg-pass .code { font-family: monospace; letter-spacing: 0.08em; color: #f4d8b3; font-size: 1.08rem; }
.mg-pass small { color: var(--text-muted); }

/* ---- Toast ---- */
.game-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 500; padding: 15px 26px; border-radius: 999px; opacity: 0; pointer-events: none; background: var(--g-glass-strong); border: 1px solid rgba(86,165,122,0.4); color: var(--cream); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8); transition: all 0.35s var(--g-ease); font-size: 0.9rem; }
.game-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Sign-in gate ---- */
.game-gate { text-align: center; max-width: 540px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) 0; }
.game-gate .ic { font-size: 3.2rem; margin-bottom: 18px; }

/* ---- Challenge banner ---- */
.challenge-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 17px 24px; margin-bottom: 22px; border: 1px solid rgba(86,165,122,0.4); border-radius: 18px; background: linear-gradient(120deg, rgba(86,165,122,0.14), rgba(212,180,106,0.07)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.challenge-banner .ic { font-size: 1.6rem; }
.challenge-banner b { color: var(--cream); }

/* ============================================================
   ARTIST CONTEXT  (film & television focus)
   ============================================================ */
.artist-context-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.artist-ctx { display: flex; flex-direction: column; overflow: hidden; background: var(--g-glass); border: 1px solid var(--g-hairline); border-radius: 26px; transition: transform 0.35s var(--g-ease), border-color 0.35s, box-shadow 0.35s; }
.artist-ctx:hover { transform: translateY(-6px); border-color: rgba(212,180,106,0.4); box-shadow: var(--g-glow-gold); }
.artist-ctx-photo { aspect-ratio: 4/3; background: #0a0e0c center/cover no-repeat; position: relative; }
.artist-ctx-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,16,14,0.95)); }
.artist-ctx-photo .ver { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(6,11,9,0.72); border: 1px solid rgba(86,165,122,0.4); color: var(--gold-light); padding: 5px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.artist-ctx-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.artist-ctx-body h3 { margin: 0 0 5px; font-size: 1.35rem; }
.artist-ctx-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.artist-ctx-body p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 16px; }
.artist-ach { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.artist-ach li { display: flex; gap: 9px; font-size: 0.82rem; color: var(--text-soft); }
.artist-ach li::before { content: '🎬'; flex-shrink: 0; font-size: 0.8rem; }
.artist-ctx-links { margin-top: auto; display: flex; gap: 16px; }
.artist-ctx-links a { font-size: 0.8rem; color: var(--gold-light); letter-spacing: 0.04em; transition: color 0.25s; }
.artist-ctx-links a:hover { color: var(--gold2-light); }

/* ============================================================
   BADGES  (medallions)
   ============================================================ */
.badge-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.badge-tile { text-align: center; padding: 26px 18px; border-radius: 22px; background: var(--g-glass); border: 1px solid var(--g-hairline); transition: transform 0.3s var(--g-ease), box-shadow 0.3s; }
.badge-tile.earned { border-color: rgba(86,165,122,0.4); background: linear-gradient(165deg, rgba(86,165,122,0.16), rgba(12,16,14,0.7)); }
.badge-tile.earned:hover { transform: translateY(-5px); box-shadow: var(--g-glow-emerald); }
.badge-tile .bi { font-size: 2.4rem; filter: grayscale(1) opacity(0.35); transition: filter 0.35s, transform 0.35s; display: inline-block; }
.badge-tile.earned .bi { filter: drop-shadow(0 6px 14px rgba(86,165,122,0.45)); }
.badge-tile.earned:hover .bi { transform: scale(1.12) rotate(-4deg); }
.badge-tile .bn { font-weight: 700; color: var(--cream); margin-top: 10px; font-size: 0.96rem; }
.badge-tile .bd { font-size: 0.76rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.badge-tile .chk { display: inline-block; margin-top: 10px; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.badge-tile.earned .chk { color: var(--gold-light); }
.badge-tile:not(.earned) .chk { color: var(--text-muted); }

/* ============================================================
   UNLOCKS  (progress rings)
   ============================================================ */
.unlock-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.unlock-card { position: relative; padding: 26px; border-radius: 24px; border: 1px solid var(--g-hairline); background: var(--g-glass); overflow: hidden; transition: transform 0.3s var(--g-ease), box-shadow 0.3s, border-color 0.3s; }
.unlock-card:hover { transform: translateY(-4px); }
.unlock-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.unlock-card .ui { font-size: 1.9rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)); border: 1px solid var(--g-hairline); }
.unlock-card h4 { margin: 4px 0 6px; font-size: 1.14rem; color: var(--cream); }
.unlock-card p { font-size: 0.84rem; color: var(--text-muted); margin: 0 0 18px; line-height: 1.5; }
.unlock-ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#7ec99a calc(var(--p,0) * 1%), rgba(246,231,184,0.08) 0); flex-shrink: 0; }
.unlock-ring span { width: 40px; height: 40px; border-radius: 50%; background: #0c100e; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--text-soft); }
.unlock-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; padding-top: 14px; border-top: 1px solid rgba(246,231,184,0.06); }
.unlock-foot .need { color: var(--text-muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.unlock-card.unlocked { border-color: rgba(86,165,122,0.4); background: linear-gradient(165deg, rgba(86,165,122,0.13), rgba(12,16,14,0.7)); }
.unlock-card.unlocked:hover { box-shadow: var(--g-glow-emerald); }
.unlock-card.unlocked .ui { background: linear-gradient(135deg, rgba(126,201,154,0.25), rgba(45,110,79,0.15)); border-color: rgba(86,165,122,0.4); }
.unlock-card.unlocked .unlock-foot a { color: var(--gold-light); font-weight: 600; }
.unlock-card.unlocked .unlock-ring span { color: var(--gold-light); }
.unlock-card.locked { opacity: 0.96; }
.unlock-card.locked::after { content: '🔒'; position: absolute; top: 22px; right: 24px; opacity: 0.45; font-size: 0.9rem; }
/* keep legacy bar selectors harmless if present */
.unlock-prog { display: none; }
