/* Profile sheet, Friends, Leaderboard, Rival, Play hub, Chat, Invite landing. Visual v3 glow glass: builds on base.css tokens + .card / .seg / hero-head / topbar. */

/* ---- Profile ---- */
.prof-sheet { gap: 12px; }
.prof-top { display: flex; align-items: center; gap: 16px; justify-content: center; text-align: left; }
.prof-name { font-weight: 800; font-size: var(--fs-l); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; justify-items: center; }
.prof-orb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: none; }
.prof-orb[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 16px 2px rgba(125, 243, 255, .65); }
.prof-orb:disabled { opacity: .5; }
.prof-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.prof-input {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; font: inherit; color: var(--text);
  background: linear-gradient(rgba(24, 16, 58, .86), rgba(18, 12, 46, .86)) padding-box, var(--neon-border) border-box; border: 1px solid transparent;
}
.prof-input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.prof-save { padding: 0 20px; }
.prof-hint { min-height: 20px; font-size: var(--fs-s); padding: 0 8px; }
.prof-hint:empty { display: none; }
.prof-hint[data-bad="true"] { color: #FF8BA7; }
.prof-sheet .set-head + .prof-top { margin-top: -4px; }

/* ---- Shared shell for social screens: fixed top bar + hero head, content scrolls inside its own region ---- */
.soc-screen { gap: 12px; height: 100dvh; min-height: 0; overflow: hidden; }
.soc-screen > .topbar, .soc-screen > .hero-head, .soc-screen > .seg, .soc-screen > .bottom-actions { flex: none; }
.soc-panel {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px 14px 14px; margin: -6px -14px 0;
  -webkit-mask-image: linear-gradient(transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.soc-panel::-webkit-scrollbar { display: none; }
.soc-panel > .empty-state { min-height: 100%; justify-content: center; padding: 8px 16px; }
.soc-screen .empty-mascot { min-height: 0; }
.soc-screen .empty-mascot > svg { max-width: 100%; height: auto; max-height: 150px; }
.soc-list { display: flex; flex-direction: column; gap: 10px; }
.soc-dock { gap: 8px; }
.soc-dock .pill-action, .soc-dock .btn-quiet { width: 100%; }
.soc-ring { display: inline-grid; flex: none; padding: 3px; border-radius: 50%; background: var(--card-border-hot); box-shadow: 0 0 20px rgba(193, 59, 255, .5); }
.soc-ring .avatar { box-shadow: 0 0 0 2px #1B1244 inset; }

/* glass row (friend, group, online friend): .card.tile + this */
.soc-row { box-shadow: 0 0 14px rgba(184, 77, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .10); display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 10px 8px 12px; color: var(--text); text-align: left; }
.soc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.soc-name { font-weight: 700; font-size: var(--fs-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-main small { font-size: var(--fs-s); font-weight: 600; }
.soc-score { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: var(--fs-s); }
.soc-state { font-size: var(--fs-s); font-weight: 600; white-space: nowrap; }
.soc-meta { display: flex; align-items: center; gap: 4px; }
.soc-frow { padding-right: 6px; gap: 4px; }
.soc-open { overflow: visible; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 56px; padding: 0; background: none; color: var(--text); text-align: left; }
.soc-act { width: 44px; height: 44px; flex: none; }
.soc-act .badge { top: 0; right: 0; }
.soc-chev { display: grid; place-items: center; flex: none; }
.soc-tile {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; color: #E6D9FF;
  background: linear-gradient(160deg, rgba(124, 77, 255, .35), rgba(255, 79, 170, .12)); box-shadow: 0 0 0 1.5px rgba(178, 140, 255, .7) inset, 0 0 18px rgba(155, 107, 255, .4);
}

/* ---- Friends: invite card ---- */
.soc-invite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex: none; border-radius: var(--r-tile); }
.soc-invite .soc-main small { font-size: var(--fs-xs); }
.soc-invite[hidden] { display: none; }
.soc-copy { flex: none; }
@media (max-height: 700px) {
  .soc-screen .hero-head { gap: 8px; }
  .soc-screen .hero-orb { transform: scale(.85); margin: 0 6px 0 4px; }
  .soc-screen .empty-state { gap: 8px; }
  .soc-screen .empty-mascot > svg { max-height: 96px; }
  .soc-invite { padding: 8px 12px; }
  .soc-tile { width: 40px; height: 40px; border-radius: 14px; }
}

/* ---- Play hub ---- */
.pl-conn { gap: 8px; min-height: 36px; }
.pl-conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6590; flex: none; }
.pl-conn[data-s="on"] { color: var(--mint); }
.pl-conn[data-s="on"] .pl-conn-dot { background: var(--mint); box-shadow: 0 0 8px 1px rgba(110, 231, 183, .8); }
.pl-conn[data-s="connecting"] .pl-conn-dot { background: #FCD34D; }
.pl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none; }
.pl-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; color: var(--text); min-height: 104px; }
.pl-tile strong { font-weight: 800; font-size: var(--fs-m); }
.pl-tile small { font-size: var(--fs-xs); font-weight: 600; }
.pl-tile:disabled { opacity: .4; }
.pl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #E6D9FF; margin-bottom: 6px;
  background: linear-gradient(160deg, rgba(124, 77, 255, .35), rgba(255, 79, 170, .12)); box-shadow: 0 0 0 1.5px rgba(178, 140, 255, .7) inset, 0 0 16px rgba(155, 107, 255, .4); }
.pl-head { flex: none; padding: 0 4px; }
.pl-panel { flex: 1; min-height: 0; }
.pl-resume { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); flex: none; min-height: 56px; }
.pl-chal { min-height: 44px; padding: 0 14px; font-size: var(--fs-s); flex: none; }
.pl-friend { padding: 8px 8px 8px 12px; }
.pl-av { position: relative; display: inline-flex; flex: none; }
.pl-av .pres { position: absolute; right: -1px; bottom: -1px; }
.pl-search { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.pl-time { font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.pl-orb { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 12px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 179, 107, .9), rgba(255, 79, 123, .5) 45%, rgba(107, 91, 255, .25) 75%);
  box-shadow: 0 0 40px 6px rgba(255, 79, 123, .45), 0 0 80px 14px rgba(125, 243, 255, .2); }
.pl-orb.searching { animation: pl-pulse 1.6s ease-in-out infinite; }
@keyframes pl-pulse { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
.pl-wait { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 16px; }
.pl-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #7DF3FF; animation: pl-rot .9s linear infinite; }
@keyframes pl-rot { to { transform: rotate(360deg); } }
.pl-code { text-align: center; font-weight: 800; font-size: var(--fs-l); letter-spacing: .4em; text-transform: uppercase; }
@media (max-height: 700px) { .pl-tile { min-height: 84px; padding: 8px 14px; } .pl-ico { width: 36px; height: 36px; margin-bottom: 2px; } .pl-orb { width: 88px; height: 88px; margin-bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { .pl-orb.searching, .pl-spin { animation: none; } }

/* ---- Live: presence, badges ---- */
.pres { width: 10px; height: 10px; border-radius: 50%; background: #6b6590; box-shadow: 0 0 0 2px #17103a; flex: none; }
.pres[data-s="online"] { background: var(--mint); box-shadow: 0 0 0 2px #17103a, 0 0 8px 1px rgba(110, 231, 183, .8); }
.pres[data-s="playing"] { background: #FCD34D; box-shadow: 0 0 0 2px #17103a, 0 0 8px 1px rgba(252, 211, 77, .8); }
.pres-inline { display: inline-block; margin-right: 6px; vertical-align: middle; }
.pres-inline .pres { display: inline-block; width: 8px; height: 8px; }
.badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: var(--fs-xs); font-weight: 800;
  line-height: 18px; text-align: center; color: #fff; background: #FF4F7B; box-shadow: 0 0 10px rgba(255, 79, 123, .7);
}

/* ---- Invite landing ---- */
.inv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.inv-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 20px 24px; flex: none; }
.inv-ring { display: inline-grid; padding: 4px; border-radius: 50%; background: var(--card-border-hot); box-shadow: 0 0 28px rgba(193, 59, 255, .6); }
.inv-title { font-weight: 800; font-size: var(--fs-l); line-height: 1.2; overflow-wrap: anywhere; }
.inv-mascot { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.inv-mascot > svg { max-height: 100%; max-width: 100%; height: auto; }
.inv-body .bottom-actions { margin-top: 0; gap: 8px; }
.inv-body .bottom-actions .pill-action { width: 100%; }
.inv-body .btn-link { align-self: center; min-height: 44px; }
.inv-body > .empty-state { flex: 1; justify-content: center; }
@media (max-height: 700px) { .inv-card { padding: 16px 16px 14px; gap: 8px; } .inv-mascot { display: none; } }

/* ---- Invite popup (live.js) ---- */
.inv-pop { display: flex; flex-direction: column; gap: 12px; }
.invp-top { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.invp-av { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 8px; }
.invp-clock { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.invp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.invp-track, .invp-arc { fill: none; stroke-width: 3; }
.invp-track { stroke: rgba(255, 255, 255, .12); }
.invp-arc { stroke: #7DF3FF; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(125, 243, 255, .8)); transition: stroke-dashoffset .25s linear; }
.invp-secs { position: absolute; bottom: -10px; font-size: var(--fs-xs); font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #17103a; border: 1px solid rgba(125, 243, 255, .4); font-variant-numeric: tabular-nums; }

/* ---- Chat ---- */
.ch-screen { gap: 10px; transition: none; }
.ch-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; min-height: 64px; padding: 8px 8px 8px 12px; }
.ch-who-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ch-ring { display: inline-grid; flex: none; padding: 3px; border-radius: 50%; background: var(--card-border-hot); box-shadow: 0 0 16px rgba(193, 59, 255, .5); }
.ch-name { display: flex; flex-direction: column; min-width: 0; }
.ch-name small { font-size: var(--fs-xs); font-weight: 600; }
.ch-more { flex: none; }
.ch-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 2px; }
.ch-log::-webkit-scrollbar { display: none; }
.ch-time { align-self: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; color: var(--quiet); margin-top: 8px; }
.ch-note { align-self: center; text-align: center; padding: 24px 0; font-size: var(--fs-s); }
.ch-msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: var(--fs-s); line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.ch-msg.theirs { align-self: flex-start; background: var(--card-fill); box-shadow: 0 0 0 1px rgba(178, 140, 255, .35) inset; border-bottom-left-radius: 6px; }
.ch-msg.mine { align-self: flex-end; background: linear-gradient(135deg, #8E5BFF, #B84DFF 60%, #7A5CFF); box-shadow: 0 0 16px rgba(184, 77, 255, .35), 0 1px 0 rgba(255, 255, 255, .3) inset; color: #fff; border-bottom-right-radius: 6px; }
.ch-msg[data-pending="true"] { opacity: .6; }
.ch-bar {
  flex: none; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--card-fill); box-shadow: 0 0 0 1.5px rgba(178, 140, 255, .55) inset, var(--glow-card);
}
.ch-bar .ch-input { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ch-send {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--ink);
  background: var(--action-grad); box-shadow: 0 4px 16px rgba(255, 140, 170, .5), 0 0 0 1px rgba(255, 255, 255, .35) inset;
}
.ch-bar .ch-input:focus-visible { outline: none; }
.ch-bar:focus-within { box-shadow: 0 0 0 2px var(--mint), var(--glow-card); }
.ch-send:disabled { opacity: .4; box-shadow: none; }
.ch-send:active { transform: scale(.94); }

/* ---- Profile: streak + result calendar ---- */
.prof-streak { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 800; font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.prof-streak .quiet { font-weight: 600; font-size: var(--fs-s); }
.prof-knife { cursor: help; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: var(--fs-s); }
.prof-calcard { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--glass-border) inset; }
.prof-calcard > .label, .cal-month > .label { font-size: var(--fs-xs); margin: 0; }
.prof-cal { display: grid; gap: 10px; }
.cal-month { display: grid; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.cal-w { font-size: var(--fs-xs); color: var(--quiet, #A8A3C7); line-height: 14px; }
.cal-day {
  display: grid; place-items: center; width: 100%; max-width: 34px; height: 26px; padding: 0; border-radius: 7px;
  font: inherit; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .05); border: 0;
}
button.cal-day[data-tier] { background: var(--tier); color: #0E0B22; cursor: pointer; }
.cal-day[data-today] { box-shadow: 0 0 0 2px #fff; color: #fff; }
button.cal-day[data-tier][data-today] { color: #0E0B22; }
.cal-pad { height: 26px; }

/* ---- Leaderboard ---- */
.lbd-day { white-space: nowrap; gap: 6px; padding: 0 12px; }
.lbd-swap { color: var(--quiet); }
.lbd-screen .seg > button { gap: 6px; padding: 0 6px; }
.lbd-screen .seg > button > svg, .lbd-screen .seg > button > img { width: 18px; height: 18px; }
.lbd-flag { flex: none; }
.lbd-flag:empty { display: none; }
.lbd-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.lbd-head { flex: none; display: flex; }
.lbd-group {
  min-height: 44px; max-width: 100%; padding: 0 14px; border-radius: 999px; color: var(--text); font: inherit; font-size: var(--fs-s); font-weight: 700;
  background: linear-gradient(160deg, rgba(124, 77, 255, .18), rgba(255, 255, 255, .04)); border: 1px solid rgba(178, 140, 255, .5);
}
.lbd-group option { color: #241B4D; }
.lbd-group-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbd-panel { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.lbd-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 6px 10px;
  -webkit-mask-image: linear-gradient(transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.lbd-scroll::-webkit-scrollbar { display: none; }
.lbd-list { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.lbd-pin { flex: none; padding: 6px 10px 8px; border-top: 1px solid var(--ink-line); background: rgba(27, 20, 68, .95); }
.lbd-pin[hidden] { display: none; }
.lbd-row {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 10px 0 8px; border-bottom: 1px solid var(--ink-line);
  font-variant-numeric: tabular-nums;
}
.lbd-row:last-child { border-bottom-color: transparent; }
.lbd-row.active {
  border-radius: 16px; border-bottom-color: transparent;
  background: linear-gradient(90deg, rgba(178, 140, 255, .30), rgba(255, 106, 213, .14));
  box-shadow: 0 0 0 1.5px rgba(201, 168, 255, .75) inset, 0 0 18px rgba(184, 77, 255, .35);
}
.lbd-rank { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; font-size: var(--fs-s); color: var(--quiet); }
.lbd-row.active .lbd-rank { color: var(--text); }
.lbd-row[data-top="1"] .lbd-rank { color: #3A2500; background: radial-gradient(circle at 32% 28%, #FFF3B0, #FCD34D 55%, #D18B12); box-shadow: 0 0 14px rgba(252, 211, 77, .55); }
.lbd-row[data-top="2"] .lbd-rank { color: #1D2440; background: radial-gradient(circle at 32% 28%, #FFFFFF, #C4CBE3 55%, #8A93B4); box-shadow: 0 0 14px rgba(196, 203, 227, .45); }
.lbd-row[data-top="3"] .lbd-rank { color: #3B1A08; background: radial-gradient(circle at 32% 28%, #FFD9B8, #E9904F 55%, #A9582A); box-shadow: 0 0 14px rgba(233, 144, 79, .45); }
.lbd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: var(--fs-m); }
.lbd-score { flex: none; font-weight: 800; font-size: var(--fs-m); }
.lbd-awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.lbd-award { display: grid; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 16px; background: var(--card-fill); box-shadow: 0 0 0 1px rgba(178, 140, 255, .4) inset; }
.lbd-award-t { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbd-award-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lbd-award-name { font-weight: 700; font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbd-award-v { font-weight: 800; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.lbd-award[data-kind="sharpest"] .lbd-award-v { color: #FCD34D; }
.lbd-award[data-kind="butcher"] .lbd-award-v { color: var(--t-miss); }
.lbd-award[data-kind="bestCut"] .lbd-award-v { color: var(--t-perfect); }
.lbd-award[data-kind="slowest"] .lbd-award-v { color: var(--t-ok); }
.lbd-body > .empty-state { flex: 1; justify-content: center; padding: 8px 16px; }
@media (max-height: 700px) { .lbd-row { min-height: 52px; } .lbd-award { padding: 6px 8px; } }

/* ---- Rival: names wrap, nothing truncated ---- */
.rvl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 12px 14px; margin: -12px -14px -6px; }
.rvl-body::-webkit-scrollbar { display: none; }
.rvl-body > .empty-state { flex: 1; justify-content: center; padding: 8px 16px; }
.rvl-poster { flex: none; padding: 18px 12px 16px; text-align: center; }
.rvl-face { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.rvl-fighter { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; opacity: .9; }
.rvl-fighter.lead { opacity: 1; }
.rvl-ring { display: inline-grid; padding: 3px; border-radius: 50%; background: var(--card-border-hot); box-shadow: 0 0 22px rgba(193, 59, 255, .55); }
.rvl-fighter.lead .rvl-ring { background: linear-gradient(135deg, #FFF3B0, #FCD34D 50%, #FF9A5C); box-shadow: 0 0 26px rgba(252, 211, 77, .65); }
.rvl-name { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; text-align: center; line-height: 1.2; font-weight: 800; font-size: var(--fs-s); }
.rvl-sub { font-size: var(--fs-xs); text-align: center; }
.rvl-vs { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 0; }
.rvl-score-big { font-size: var(--fs-hero); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--quiet); }
.rvl-score-big b { font-weight: 800; color: var(--text); }
.rvl-score-big b.lead { color: #FFD27A; text-shadow: 0 0 20px rgba(255, 210, 122, .7); }
.rvl-days { flex: none; padding: 10px 8px 12px; }
.rvl-legend { display: flex; justify-content: space-between; padding: 0 4px 6px; }
.rvl-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rvl-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(178, 140, 255, .25) inset; }
.rvl-day[data-future="true"] { opacity: .35; }
.rvl-dow { font-size: var(--fs-xs); letter-spacing: .1em; }
.rvl-score { font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 0; width: calc(100% - 6px); text-align: center; border-radius: 8px; color: var(--tier, #A8A3C7); }
.rvl-score:not([data-tier]) { color: #A8A3C7; opacity: .6; }
.rvl-score.win { background: color-mix(in srgb, var(--tier) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--tier) 55%, transparent), inset 0 0 0 1px var(--tier); }
.rvl-last { align-self: center; flex: none; min-height: 36px; font-size: var(--fs-s); gap: 8px; }
@media (max-height: 700px) { .rvl-poster { padding: 12px 10px 10px; } .rvl-body { gap: 8px; } .rvl-days { padding: 8px 6px 8px; } }

/* ---- Profile: header settings button, stat stack ---- */
.set-head.has-extra { grid-template-columns: 1fr auto 1fr; }
.set-head.has-extra > :first-child { justify-self: start; }
.set-head-end { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.prof-stats .prof-val.stack { flex-direction: column; gap: 2px; }
.prof-stats .rank-name { font-size: var(--fs-s); white-space: nowrap; font-weight: 800; }
.prof-sheet .prof-stats { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* ---- Review pass: V-social round 2 ---- */
.soc-invite { min-height: 84px; }
.soc-screen .empty-state .title { font-size: var(--fs-xl); }
.lbd-days { flex: none; min-width: 180px; }
.lbd-days > button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.lbd-screen > .hero-head { flex-wrap: wrap; }
.lbd-screen .hero-right { margin-left: auto; }
.lbd-screen > .seg > button { flex: 1 1 0; min-width: 0; padding: 0 4px; gap: 4px; overflow: hidden; }
.lbd-panel { flex: 0 1 auto; max-height: 100%; }
@media (max-width: 380px) { .lbd-screen > .seg > button > svg, .lbd-screen > .seg > button > img, .lbd-screen > .seg .lbd-flag { display: none; } }
.rvl-score, .rvl-dow { font-size: var(--fs-xs); }
.pl-search + *, .pl-panel .empty-state { gap: 8px; }
@media (max-height: 700px) { .pl-panel .empty-mascot, .ch-empty > svg { display: none; } }
.ch-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ch-empty > svg { max-height: 130px; width: auto; }
.inv-card { padding-right: 56px; padding-left: 56px; }
@media (max-width: 380px) { .inv-card { padding-left: 28px; padding-right: 28px; } }
.inv-body .bottom-actions .btn-quiet { width: 100%; }
.lbd-screen > .hero-head { flex-wrap: wrap; row-gap: 8px; }
.lbd-screen .hero-text { flex: 1 1 0; min-width: 120px; }
.lbd-screen .hero-right { flex: 1 0 100%; order: 3; margin-left: 0; }
.lbd-days { width: 100%; min-width: 0; }
@media (max-height: 700px) { .lbd-screen .empty-state .title, .pl-panel .empty-state .title { font-size: var(--fs-l); } }
