/* Profile card looks and tiers, name effects, Runner Profile screen, revive screen, reward toast, daily board. */

/* ---------- equipped look on cards (a daily Top 10 tier sets bg / border / accent) ---------- */
.player-card.looked {
    background: var(--pc-bg, rgba(255, 255, 255, 0.035));
    border: 1.5px solid var(--pc-border, var(--line-soft));
}
.player-card.looked[data-tier]:not([data-tier=""]) { border-width: 2px; box-shadow: 0 0 10px color-mix(in srgb, var(--pc-border) 25%, transparent); }
.pc-tier { margin-left: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--pc-border); color: var(--pc-accent); letter-spacing: 0.18em; }
.t-gold { color: #ffd257; }
.t-silver { color: #dfe6f2; }
.t-bronze { color: #e0955a; }
#playerCard { cursor: pointer; transition: transform 0.12s, box-shadow 0.15s; }
#playerCard:hover { box-shadow: 0 0 26px color-mix(in srgb, var(--pc-border, #2ef9ff) 45%, transparent); }
.player-card .avatar svg { width: 100%; height: 100%; }
.player-card .avatar { color: var(--pc-accent, var(--cyan)); }
.pc-label:empty { display: none; }
.pc-label .pc-tier { margin-left: 0; }
.daily-claim { width: 100%; margin: -6px 0 14px; border-color: rgba(255, 210, 87, 0.5); color: var(--gold); }
.daily-claim.wait, .daily-claim.wait:disabled { opacity: 1; cursor: default; border-color: var(--line-soft); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- name effects (no flashing; reduced motion keeps a static version) ---------- */
.nfx { position: relative; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.nfx-glow { color: #f4fdff; text-shadow: 0 0 6px rgba(46, 249, 255, 0.9), 0 0 16px rgba(46, 249, 255, 0.55); }
.nfx-gradient, .nfx-glitch {
    background: linear-gradient(90deg, #2ef9ff, #b04dff, #ff2fb4, #ffd257, #2ef9ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: nfxShift 6s linear infinite;
}
.nfx-glitch { background-image: linear-gradient(90deg, #d8fbff, #9ad7ff, #e3b6ff, #b6fff0, #d8fbff); text-shadow: none; }
.nfx-glitch::before, .nfx-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 0;
    opacity: 0.55;
    clip-path: inset(0 0 100% 0);
    animation: nfxSlice 4s steps(1) infinite;
}
.nfx-glitch::before { text-shadow: -1.5px 0 #2ef9ff; }
.nfx-glitch::after { text-shadow: 1.5px 0 #ff2fb4; animation-delay: -2s; }
@keyframes nfxShift { to { background-position: 300% 0; } }
@keyframes nfxSlice {
    0%, 70% { clip-path: inset(0 0 100% 0); }
    74% { clip-path: inset(15% 0 60% 0); }
    80% { clip-path: inset(55% 0 20% 0); }
    86%, 100% { clip-path: inset(0 0 100% 0); }
}
body.reduced .nfx-glitch::before, body.reduced .nfx-glitch::after { display: none; }
.nfx-pulse { color: #ffe9fb; text-shadow: 0 0 6px rgba(255, 47, 180, 0.85), 0 0 14px rgba(176, 77, 255, 0.5); animation: nfxPulse 2.4s ease-in-out infinite; }
@keyframes nfxPulse { 50% { text-shadow: 0 0 3px rgba(255, 47, 180, 0.55), 0 0 6px rgba(176, 77, 255, 0.25); } }
.nfx-prismatic {
    background: linear-gradient(90deg, #ff5a5f, #ffae2b, #ffe14d, #4dffb4, #2ef9ff, #7da2ff, #c38bff, #ff5a5f);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
    animation: nfxShift 9s linear infinite;
}
body.reduced .nfx-pulse, body.reduced .nfx-gradient, body.reduced .nfx-glitch, body.reduced .nfx-prismatic { animation: none; }

/* ---------- profile screen ---------- */
.panel.xwide { width: min(820px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.prof-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.prof-head h2 { margin: 0; }
.prof-top { display: flex; align-items: stretch; gap: 12px; margin-bottom: 12px; }
.prof-top #btnProfRename { height: auto; }
.prof-top .player-card { flex: 1; margin: 0; min-width: 0; }
.prof-offline { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 77, 109, 0.12); color: var(--text); font-size: 13px; }
.stats4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.prof-sec { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 14px; }
.prof-sec h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.ms-count { color: var(--muted); font-family: var(--font-m); letter-spacing: 0.05em; margin-left: 6px; }
.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.claim-row p { margin: 0; font-size: 14px; }
/* pickers */
.pick-group { margin-top: 10px; }
.pick-group h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.pick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pick {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; min-height: 92px;
    border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); color: var(--text);
}
.pick:hover { border-color: rgba(46, 249, 255, 0.5); }
.pick[aria-checked=true] { border-color: var(--cyan); background: rgba(46, 249, 255, 0.1); box-shadow: inset 0 0 0 1px var(--cyan); }
.pick.locked { opacity: 0.55; }
.pick.locked:hover { border-color: var(--line-soft); }
.pk-name { font-size: 12px; font-weight: 700; text-align: center; }
.pk-state { font-family: var(--font-m); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.pick.equipped .pk-state { color: var(--ok); }
.pick[aria-checked=true]:not(.equipped) .pk-state { color: var(--cyan); }
.pv-icon { width: 34px; height: 34px; }
.pv-name { height: 34px; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.apply-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.apply-msg { margin-right: auto; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
    .pick-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- revive ---------- */
#btnRevive[hidden] { display: none; }
.rev-cards { text-align: center; color: var(--muted); font-size: 14px; margin: -4px 0 8px; }
.err.center { text-align: center; }

/* ---------- reward toast (bottom-left above the control guide, clear of the hazards ahead) ---------- */
#rewardToast {
    position: absolute; left: 20px; bottom: 64px; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px 10px 12px; max-width: 300px; border-radius: 12px;
    background: rgba(9, 7, 28, 0.86); border: 1px solid rgba(255, 210, 87, 0.6);
    box-shadow: 0 0 22px rgba(255, 210, 87, 0.25); opacity: 0; transform: translateX(-12px);
    transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
#rewardToast.show { opacity: 1; transform: none; }
.rt-pv { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.rt-pv svg { width: 36px; height: 36px; }
.rt-body { display: flex; flex-direction: column; min-width: 0; }
.rt-k { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); }
.rt-body strong { font-size: 15px; }
.rt-note { font-size: 11px; color: var(--muted); }
body.reduced #rewardToast { transform: none; }

/* ---------- daily leaderboard ---------- */
.lb-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: -6px 0 10px; color: var(--muted); font-size: 13px; }
.lb-sub b { color: var(--text); }
.lb-prizes { margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-soft); font-size: 13px; }
.lb-prizes summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.lb-prizes ul { margin: 8px 0 2px; padding-left: 18px; color: var(--muted); line-height: 1.5; }
.lb-prizes b { color: var(--text); }
