/* ======================== B0X3 v126 - social: menu chip, call / friend / challenge cards, profile and share pages ========================
   Same language as the v125 lobby (.lb-*): Teko titles, Oswald text, gold accents, dark glass cards. */

/* ---- round badge: the boxer's glove colour ---- */
.sc-avatar {
    --h: 356;
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, hsl(var(--h) 90% 66%), hsl(var(--h) 78% 40%) 62%, hsl(var(--h) 70% 22%));
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), 0 3px 10px rgba(0, 0, 0, .35);
}
.sc-avatar::after { content: "\1F94A"; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.sc-avatar.sm { width: 34px; height: 34px; }
.sc-avatar.sm::after { font-size: 17px; }
.sc-avatar.lg { width: 84px; height: 84px; }
.sc-avatar.lg::after { font-size: 44px; }

/* ---- menu chip: who I am, friends online ---- */
.menu-profile:empty { display: none; }
.menu-profile { display: flex; justify-content: center; margin: 10px 0 0; }
.sc-chip {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px; padding: 6px 14px 6px 7px;
    border-radius: 999px; background: rgba(12, 14, 20, .66); border: 1px solid rgba(255, 255, 255, .14);
    color: #fff; text-decoration: none; font-family: "Oswald", sans-serif; transition: background .15s, border-color .15s;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sc-chip:hover { background: rgba(255, 255, 255, .1); border-color: rgba(240, 192, 64, .55); }
.sc-chip:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; }
.sc-chip-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.sc-chip-name { font-family: "Teko", sans-serif; font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-chip-sub { font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, .62); letter-spacing: .03em; white-space: nowrap; }
.sc-chip.live .sc-chip-sub { color: #9ff0bf; }
.sc-chip.live .sc-chip-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3be07f; vertical-align: middle; }
.sc-chip-go { font-family: "Teko", sans-serif; font-size: 30px; line-height: .6; opacity: .6; }

/* ---- cards and notices at the bottom of the screen ---- */
.sc-stack {
    position: fixed; z-index: 4000; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
    width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
    font-family: "Oswald", sans-serif;
}
.sc-card {
    pointer-events: auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av text" "act act";
    gap: 10px 12px; align-items: center; padding: 12px; border-radius: 16px; color: #fff;
    background: linear-gradient(160deg, #1e2230, #0a0b10);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    animation: scIn .32s cubic-bezier(.2, .9, .25, 1.15) both;
}
@keyframes scIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
.sc-card .sc-avatar { grid-area: av; }
.sc-text { grid-area: text; min-width: 0; }
.sc-title { font-family: "Teko", sans-serif; font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-sub { font-size: 14.5px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.sc-actions { grid-area: act; display: flex; gap: 8px; }
.sc-btn {
    flex: 1 1 0; min-height: 48px; padding: 6px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08); color: #fff; font-family: "Teko", sans-serif; font-weight: 600; font-size: 22px;
    letter-spacing: .12em; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .1s, filter .15s, background .15s;
}
.sc-btn:hover { filter: brightness(1.12); }
.sc-btn:active { transform: scale(.97); }
.sc-btn:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; }
.sc-btn.yes { background: linear-gradient(180deg, #2fd673, #19a653); border-color: #36e27c; color: #04140a; }
.sc-btn.no { background: rgba(232, 36, 42, .2); border-color: rgba(255, 110, 115, .55); color: #ffd3d5; }
.sc-btn.quiet { flex: 0 0 auto; background: none; border-color: transparent; color: rgba(255, 255, 255, .55); font-size: 17px; }
/* an incoming call: the badge rings */
.sc-call-in { border-color: rgba(59, 224, 127, .55); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 0 rgba(59, 224, 127, .5); animation: scIn .32s cubic-bezier(.2, .9, .25, 1.15) both, scPulse 1.2s ease-out .3s infinite; }
.sc-call-in .sc-avatar { animation: scShake 1.2s ease-in-out infinite; }
@keyframes scPulse { 0% { box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 0 rgba(59, 224, 127, .5); } 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 14px rgba(59, 224, 127, 0); } }
@keyframes scShake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
.sc-call-out .sc-avatar { animation: scBob 1s ease-in-out infinite; }
@keyframes scBob { 50% { transform: translateY(-3px); } }
.sc-toast {
    align-self: center; max-width: 100%; padding: 10px 16px; border-radius: 999px; background: rgba(10, 11, 16, .94);
    border: 1px solid rgba(240, 192, 64, .45); color: #fff; font-size: 15px; line-height: 1.3; text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5); animation: scIn .25s ease both; transition: opacity .4s, transform .4s;
}
.sc-toast.out { opacity: 0; transform: translateY(8px); }
@media (max-height: 420px) and (orientation: landscape) {
    .sc-stack { left: auto; right: max(10px, env(safe-area-inset-right)); transform: none; width: min(400px, 52vw); top: max(8px, env(safe-area-inset-top)); }
    .sc-card { grid-template-columns: auto 1fr auto; grid-template-areas: "av text act"; padding: 9px; gap: 10px; }
    .sc-actions { flex-direction: column; gap: 6px; }
    .sc-btn { min-height: 40px; font-size: 19px; padding: 4px 10px; }
    .sc-title { font-size: 22px; }
    .sc-sub { font-size: 13px; }
    .sc-avatar { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-card, .sc-call-in, .sc-call-in .sc-avatar, .sc-call-out .sc-avatar, .sc-toast { animation: none !important; }
}

/* ======================== pages: /profile and /share ======================== */
.pg {
    --gold: #f0c040;
    min-height: 100vh; min-height: 100dvh; margin: 0; color: #f2f2f6;
    background: radial-gradient(120% 70% at 50% 0%, #1b2850 0%, #0b0d15 55%, #07080c 100%) fixed, #07080c;
    font: 16px/1.5 "Oswald", system-ui, sans-serif;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: var(--gold); }
.pg-skip { position: absolute; left: -999px; }
.pg-skip:focus { left: 12px; top: 12px; z-index: 5; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; }
.pg-top {
    position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    background: rgba(7, 8, 12, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.pg-back { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88) !important; text-decoration: none; letter-spacing: .12em; font-size: 15px; }
.pg-back:hover { background: rgba(255, 255, 255, .12); }
.pg-brand { font: 700 34px/1 "Teko", sans-serif; letter-spacing: .14em; color: var(--gold) !important; text-decoration: none; }
.pg-nav { justify-self: end; display: flex; gap: 6px; }
.pg-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; color: rgba(255, 255, 255, .75); text-decoration: none; letter-spacing: .1em; font-size: 14px; }
.pg-nav a[aria-current="page"] { background: rgba(240, 192, 64, .14); color: var(--gold); }
.pg-main { width: min(880px, 100%); margin: 0 auto; padding: 16px max(14px, env(safe-area-inset-right)) 48px max(14px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.pg-h1 { margin: 6px 0 0; font: 700 clamp(34px, 6vw, 50px)/1 "Teko", sans-serif; letter-spacing: .1em; }
.pg-lead { margin: 0; color: rgba(255, 255, 255, .7); font-size: 17px; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pg-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: 16px; background: rgba(12, 14, 20, .76); border: 1px solid rgba(255, 255, 255, .1); }
.pg-card h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 23px/1 "Teko", sans-serif; letter-spacing: .16em; color: rgba(255, 255, 255, .82); }
.pg-card p { margin: 0; }
.pg-hint { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .56); }
.pg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px;
    border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff;
    font: 600 21px/1 "Teko", sans-serif; letter-spacing: .12em; cursor: pointer; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, transform .1s;
}
.pg-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.pg-btn:active { transform: scale(.98); }
.pg-btn:focus-visible, .pg-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pg-btn[disabled] { opacity: .5; cursor: default; }
.pg-btn.gold { background: var(--gold); border-color: var(--gold); color: #141414 !important; }
.pg-btn.gold:hover { background: #ffd35a; }
.pg-btn.red { background: linear-gradient(100deg, #e8242a, #c0181e); border-color: #ff5a5f; }
.pg-btn.blue { background: rgba(26, 95, 255, .3); border-color: rgba(90, 140, 255, .65); }
.pg-btn.danger { background: none; border-color: rgba(255, 110, 115, .5); color: #ffb3b6; }
.pg-btn.small { min-height: 40px; padding: 4px 12px; font-size: 18px; }
.pg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-row > .pg-btn { flex: 1 1 140px; }
.pg-input { width: 100%; min-height: 48px; padding: 6px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 600 22px/1 "Teko", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.pg-input::placeholder { color: rgba(255, 255, 255, .32); }
.pg-msg:empty { display: none; }
.pg-msg { padding: 9px 12px; border-radius: 10px; font-size: 15px; background: rgba(59, 224, 127, .12); border: 1px solid rgba(59, 224, 127, .4); color: #c9f7dc; }
.pg-msg[data-kind="error"] { background: rgba(232, 36, 42, .16); border-color: rgba(232, 36, 42, .45); color: #ffc9cb; }
.pg-foot { margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); text-align: center; font-size: 14px; color: rgba(255, 255, 255, .5); }
.pg [hidden] { display: none !important; }

/* the boxer card */
.pf-card {
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px;
    border-radius: 18px; border: 1px solid rgba(240, 192, 64, .35);
    background: linear-gradient(120deg, rgba(232, 36, 42, .22), rgba(26, 95, 255, .18) 70%), rgba(12, 14, 20, .85);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.pf-card::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 180%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); pointer-events: none; }
.pf-name { font: 700 clamp(34px, 7vw, 52px)/.95 "Teko", sans-serif; letter-spacing: .08em; overflow-wrap: anywhere; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.pf-rec b { color: var(--gold); font-weight: 600; }
.pf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 13px; letter-spacing: .06em; background: rgba(255, 255, 255, .08); }
.pf-tag.on { background: rgba(59, 224, 127, .14); color: #9ff0bf; }
.pf-tag.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3be07f; }
.pf-code {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
    border: 1px dashed rgba(240, 192, 64, .55); background: rgba(0, 0, 0, .25);
}
.pf-code-val { font: 600 clamp(22px, 5vw, 30px)/1 "Teko", sans-serif; letter-spacing: .2em; color: var(--gold); user-select: all; overflow-wrap: anywhere; }
.pf-friends { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-friend { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 7px 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pf-friend .who { min-width: 0; }
.pf-friend .nm { font: 600 21px/1 "Teko", sans-serif; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-friend .st { font-size: 13px; color: rgba(255, 255, 255, .55); }
.pf-friend .st.on { color: #9ff0bf; }
.pf-friend .acts { display: flex; gap: 6px; }
.pf-friend .pg-btn { min-height: 40px; padding: 4px 12px; font-size: 18px; }
.pf-empty { padding: 10px 2px; color: rgba(255, 255, 255, .55); font-size: 15px; }
.pf-names { display: grid; grid-template-columns: 1fr 1fr 82px; gap: 8px; }
.pf-names select { min-height: 46px; padding: 4px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: #151821; color: #fff; font: 600 19px/1 "Teko", sans-serif; letter-spacing: .08em; }
.pf-stored { margin: 0; padding-left: 18px; font-size: 14px; color: rgba(255, 255, 255, .66); }

/* share page */
.sh-qr { display: grid; place-items: center; padding: 12px; border-radius: 16px; background: #fff; align-self: center; }
.sh-qr canvas { display: block; image-rendering: pixelated; }
.sh-link { display: flex; gap: 8px; align-items: center; }
.sh-link input { flex: 1 1 auto; min-width: 0; font: 400 15px/1 "Oswald", sans-serif; letter-spacing: .02em; text-transform: none; }
.sh-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-tabs .pg-btn[aria-pressed="true"] { background: rgba(240, 192, 64, .2); border-color: var(--gold); color: var(--gold); }
.sh-preview { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }

@media (max-width: 700px) {
    .pg-grid { grid-template-columns: 1fr; }
    .pg-nav a { padding: 6px 8px; font-size: 13px; }
    .pg-brand { font-size: 28px; }
    .pf-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .pf-meta { justify-content: center; }
    .sh-preview { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 380px) {
    .pg-top { grid-template-columns: auto 1fr; }
    .pg-brand { display: none; }
    .pf-names { grid-template-columns: 1fr 1fr; }
    .pf-names select:last-child { grid-column: span 2; }
}
@media (max-height: 420px) and (orientation: landscape) {
    .pg-top { position: static; }
    .pg-main { padding-top: 10px; }
    .pg-h1 { font-size: 32px; }
}

/* ======================== v128: login, rating, ranking ======================== */
/* menu chip: LOG IN for a newcomer, rating and rank for a boxer, a level slot for Progress.js */
.sc-chip-lvl:empty, .sc-chip-rank:empty { display: none; }
.sc-chip-lvl { margin-left: -4px; }
.sc-chip-rank {
    padding: 3px 9px; border-radius: 999px; background: rgba(240, 192, 64, .14); border: 1px solid rgba(240, 192, 64, .4);
    color: var(--gold, #f0c040); font: 600 17px/1 "Teko", sans-serif; letter-spacing: .08em; white-space: nowrap;
}
.sc-chip.guest { background: linear-gradient(100deg, rgba(240, 192, 64, .95), rgba(255, 211, 90, .95)); border-color: #ffd35a; color: #141414; }
.sc-chip.guest .sc-chip-sub { color: rgba(20, 20, 20, .72); }
.sc-chip.guest .sc-avatar { display: none; }
.sc-chip.guest { padding-left: 16px; }
.sc-chip.guest:hover { background: #ffd35a; }

/* newcomer: two clear choices */
.pf-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-choice { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(12, 14, 20, .8); border: 1px solid rgba(255, 255, 255, .12); }
.pf-choice.new { border-color: rgba(240, 192, 64, .45); background: linear-gradient(140deg, rgba(232, 36, 42, .2), rgba(12, 14, 20, .85) 60%); }
.pf-choice h2 { margin: 0; font: 700 30px/1 "Teko", sans-serif; letter-spacing: .12em; }
.pf-choice p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.pf-choice .pg-btn { width: 100%; }
.pf-or { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .45); font-size: 13px; letter-spacing: .14em; }
.pf-or::before, .pf-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.pf-pk-icon { font-size: 20px; line-height: 1; }

/* member: logged in line, rating and stats */
.pf-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-radius: 14px; background: rgba(59, 224, 127, .08); border: 1px solid rgba(59, 224, 127, .3); }
.pf-session .t { font-size: 15px; color: #c9f7dc; }
.pf-session .t b { color: #fff; font-weight: 600; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-stat { padding: 10px 8px; border-radius: 12px; background: rgba(12, 14, 20, .76); border: 1px solid rgba(255, 255, 255, .1); text-align: center; min-width: 0; }
.pf-stat .v { font: 700 34px/1 "Teko", sans-serif; letter-spacing: .04em; color: #fff; }
.pf-stat .v.gold { color: var(--gold); }
.pf-stat .k { font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.pf-delta { font: 600 18px/1 "Teko", sans-serif; letter-spacing: .04em; margin-left: 4px; }
.pf-delta.up { color: #3be07f; } .pf-delta.down { color: #ff7a7e; }
.pf-progress:empty { display: none; }

/* fight history */
.pf-hist { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-hist li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.pf-hist .res { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font: 700 22px/1 "Teko", sans-serif; }
.pf-hist .res.W { background: rgba(59, 224, 127, .18); color: #3be07f; }
.pf-hist .res.L { background: rgba(232, 36, 42, .2); color: #ff7a7e; }
.pf-hist .res.D { background: rgba(255, 255, 255, .1); color: #ddd; }
.pf-hist .opp { min-width: 0; }
.pf-hist .opp .nm { font: 600 19px/1.05 "Teko", sans-serif; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hist .opp .sub { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.pf-hist .chg { font: 600 20px/1 "Teko", sans-serif; letter-spacing: .04em; }
.pf-hist .chg.up { color: #3be07f; } .pf-hist .chg.down { color: #ff7a7e; } .pf-hist .chg.none { color: rgba(255, 255, 255, .4); font-size: 15px; }

/* passkeys list */
.pf-pks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-pks li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 12px; border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pf-pks .nm { font: 600 19px/1.05 "Teko", sans-serif; letter-spacing: .07em; }
.pf-pks .sub { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.pf-warn { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; background: rgba(240, 192, 64, .12); border: 1px solid rgba(240, 192, 64, .45); color: #ffe7a3; }

/* ranking page */
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.rk-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 16px 16px 10px 10px; text-align: center; min-width: 0;
    background: rgba(12, 14, 20, .8); border: 1px solid rgba(255, 255, 255, .12); }
.rk-pod.p1 { border-color: rgba(240, 192, 64, .7); background: linear-gradient(180deg, rgba(240, 192, 64, .22), rgba(12, 14, 20, .85)); padding-top: 22px; }
.rk-pod.p2 { border-color: rgba(200, 210, 225, .55); }
.rk-pod.p3 { border-color: rgba(205, 127, 50, .6); }
.rk-pod .place { font: 700 40px/.9 "Teko", sans-serif; }
.rk-pod.p1 .place { color: var(--gold); font-size: 52px; }
.rk-pod.p2 .place { color: #d6dde8; } .rk-pod.p3 .place { color: #e0a060; }
.rk-pod .nm { width: 100%; font: 600 20px/1.05 "Teko", sans-serif; letter-spacing: .06em; overflow-wrap: anywhere; }
.rk-pod .rt { font: 600 24px/1 "Teko", sans-serif; color: var(--gold); letter-spacing: .06em; }
.rk-pod.empty { opacity: .45; }
.rk-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.rk-table th { padding: 0 10px; text-align: left; font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); font-weight: 400; }
.rk-table th.n, .rk-table td.n { text-align: right; }
.rk-table td { padding: 8px 10px; background: rgba(255, 255, 255, .045); border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rk-table td:first-child { border-left: 1px solid rgba(255, 255, 255, .07); border-radius: 11px 0 0 11px; font: 700 22px/1 "Teko", sans-serif; color: rgba(255, 255, 255, .7); width: 44px; }
.rk-table td:last-child { border-right: 1px solid rgba(255, 255, 255, .07); border-radius: 0 11px 11px 0; }
.rk-table .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-table .who .nm { font: 600 20px/1 "Teko", sans-serif; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-table .rt { font: 600 22px/1 "Teko", sans-serif; color: var(--gold); letter-spacing: .05em; }
.rk-table tr.me td { background: rgba(240, 192, 64, .12); border-color: rgba(240, 192, 64, .45); }
.rk-table .wl { font-size: 14px; color: rgba(255, 255, 255, .65); white-space: nowrap; }
.rk-you { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 3; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(240, 192, 64, .6); background: rgba(24, 20, 8, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.rk-you .place { font: 700 30px/1 "Teko", sans-serif; color: var(--gold); }
.rk-you .nm { font: 600 21px/1 "Teko", sans-serif; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rk-you .rt { font: 600 24px/1 "Teko", sans-serif; color: var(--gold); }
.rk-empty { padding: 26px 16px; border-radius: 16px; text-align: center; background: rgba(12, 14, 20, .76); border: 1px dashed rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
.rk-empty b { display: block; font: 700 30px/1.1 "Teko", sans-serif; letter-spacing: .1em; color: #fff; margin-bottom: 6px; }

@media (max-width: 700px) {
    .pf-welcome { grid-template-columns: 1fr; }
    .pf-stats { grid-template-columns: repeat(2, 1fr); }
    .rk-table .hide-s { display: none; }
    .rk-pod .nm { font-size: 17px; }
}
@media (max-height: 420px) and (orientation: landscape) {
    .rk-podium { grid-template-columns: repeat(3, 1fr); }
    .rk-pod { padding: 8px 6px; }
    .rk-pod .place { font-size: 32px; } .rk-pod.p1 .place { font-size: 38px; }
    .pf-stat .v { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .sc-chip { transition: none; } }

.sc-chip-emblem:empty { display: none; }
.sc-chip-emblem { display: inline-flex; margin-right: -4px; }
.sc-chip-emblem svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* v128: rank bar and fight stats on /profile */
.pf-rankbar { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(12, 14, 20, .8); border: 1px solid rgba(255, 255, 255, .12); }
.pf-emblem svg { display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.pf-rankname { font: 700 34px/1 "Teko", sans-serif; letter-spacing: .12em; }
.pf-ranksub { font-size: 14px; color: rgba(255, 255, 255, .62); }
.pf-rankmeter { height: 8px; margin-top: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pf-rankmeter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f0c040, #ffd35a); }
.pf-fs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-fs > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: center; min-width: 0; }
.pf-fs b { font: 700 28px/1 "Teko", sans-serif; letter-spacing: .04em; color: #fff; }
.pf-fs span { font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.rk-table .tier { display: inline-flex; align-items: center; gap: 6px; font: 600 16px/1 "Teko", sans-serif; letter-spacing: .1em; }
.rk-table .tier svg { flex: none; }
.rk-pod .tier { font: 600 15px/1 "Teko", sans-serif; letter-spacing: .12em; }
@media (max-width: 420px) { .pf-fs { grid-template-columns: repeat(2, 1fr); } }
.rk-tiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rk-tier { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.rk-tier .nm { font: 600 16px/1 "Teko", sans-serif; letter-spacing: .1em; }
.rk-tier .mn { font-size: 12px; color: rgba(255, 255, 255, .5); }
.rk-you .pg-btn { justify-self: end; }
@media (max-width: 560px) { .rk-tiers { grid-template-columns: repeat(3, 1fr); } }
/* ranking table: fixed columns so a long name never pushes the rating out of the card */
.rk-table { table-layout: fixed; }
.rk-table th:nth-child(1), .rk-table td:nth-child(1) { width: 48px; }
.rk-table th:nth-child(3), .rk-table td:nth-child(3) { width: 140px; }
.rk-table th:nth-child(4), .rk-table td:nth-child(4) { width: 78px; }
.rk-table th:nth-child(5), .rk-table td:nth-child(5) { width: 70px; }
.rk-table td:nth-child(2) { overflow: hidden; }
.rk-table .who .nm { min-width: 0; }
.rk-table .who .sc-avatar { flex: none; }
@media (max-width: 700px) { .rk-table td, .rk-table th { padding-left: 6px; padding-right: 6px; } .rk-table th:nth-child(1), .rk-table td:nth-child(1) { width: 38px; } .rk-table th:nth-child(4), .rk-table td:nth-child(4) { width: 62px; } }
/* short landscape screens: the "you" bar sits at the end instead of covering the list */
@media (max-height: 500px) { .rk-you { position: static; } }
@media (max-width: 700px) { .rk-table td:nth-child(4) { border-right: 1px solid rgba(255, 255, 255, .07); border-radius: 0 11px 11px 0; } .rk-table tr.me td:nth-child(4) { border-right-color: rgba(240, 192, 64, .45); } }
