/* Actual Faceit — match-night interface
   Layout: compact arena console / Mood: nocturnal, focused, competitive.
   Presentation-only overrides; interaction markup and behavior remain in app.js. */
:root {
  --bg: #09080b;
  --s1: #111014;
  --s2: #19151b;
  --s3: #251a23;
  --line: rgba(255, 55, 123, .2);
  --line2: rgba(255, 255, 255, .085);
  --pu: #ff347f;
  --pu2: #c9195e;
  --pu-g: rgba(255, 52, 127, .3);
  --win: #49d796;
  --lose: #ff477a;
  --gold: #edc66d;
  --ct: #d7d9df;
  --t: #e16d9c;
  --tx: #f4f0f2;
  --mu: #928992;
  --violet-ui: #d7cbd2;
  --pink-stat: #ff4d91;
  --pink-deep: #bd174f;
  --glass: linear-gradient(145deg, rgba(31, 25, 31, .91), rgba(15, 13, 17, .97));
  --r1: 22px;
  --r2: 17px;
  --r3: 13px;
}

html, body {
  background: var(--bg);
  color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
body {
  min-height: 100dvh;
  padding-bottom: calc(104px + var(--safe));
}

/* Burgundy light is deliberately atmospheric, not a glow effect on every control. */
.bg { background: radial-gradient(ellipse at 50% 30%, rgba(104, 15, 43, .13), transparent 57%); }
.bg .b1 {
  left: -34vmax; top: -38vmax; opacity: .3;
  background: radial-gradient(circle, #8b163f, transparent 68%);
}
.bg .b2 {
  right: -40vmax; top: 22vh; opacity: .16;
  background: radial-gradient(circle, #501324, transparent 68%);
}
.bg .b3 {
  left: 5vmax; bottom: -43vmax; opacity: .15;
  background: radial-gradient(circle, #a51c4c, transparent 68%);
}
.bg .grid {
  opacity: .27;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 1px, transparent 1px 28px);
}

.topbar {
  padding: max(12px, env(safe-area-inset-top)) 18px 11px;
  background: linear-gradient(180deg, rgba(9,8,11,.98), rgba(9,8,11,.78));
  border-bottom: 1px solid rgba(255,255,255,.035);
}
.brand { gap: 9px; }
.brand img {
  width: 32px; height: 32px;
  filter: grayscale(.15) drop-shadow(0 0 9px rgba(255,52,127,.28));
}
.brand b { color: #f3edf0; font-size: 15px; letter-spacing: .15em; }
.brand small { color: var(--pu); font-size: 9px; letter-spacing: .19em; }
.chip.coins {
  color: #f2ca72;
  background: rgba(237,198,109,.08);
  box-shadow: inset 0 0 0 1px rgba(237,198,109,.2);
}
.actual-coin-card {
  width: 136px;
  aspect-ratio: 1;
  margin: 12px 2px 12px auto;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(237,198,109,.24);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(237,198,109,.15), transparent 58%),
    linear-gradient(145deg, rgba(33,27,25,.97), rgba(14,13,15,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 10px 25px rgba(0,0,0,.28);
}
.actual-coin-glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237,198,109,.36);
  border-radius: 13px;
  color: #f2ca72;
  background: rgba(237,198,109,.1);
}
.actual-coin-glyph .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.actual-coin-label {
  color: #b8aeb0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.actual-coin-value {
  color: #f2ca72;
  font-size: 27px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.actual-coin-card.pop { animation: chippop .5s var(--spring); }

main {
  width: 100%;
  max-width: 500px;
  padding: 18px 18px 16px;
}
.title {
  margin: 4px 2px 3px;
  color: #f3edf0;
  -webkit-text-fill-color: #f3edf0;
  font-size: clamp(27px, 7vw, 32px);
  line-height: 1;
  letter-spacing: .015em;
}
.lead {
  margin: 5px 2px 17px;
  color: #9c9299;
  font-size: 12px;
  line-height: 1.45;
}
h2 {
  margin: 22px 2px 11px;
  color: #c9bdc3;
  font-size: 10px;
  letter-spacing: .2em;
}
h2:before {
  width: 6px; height: 6px;
  background: var(--pu);
  box-shadow: 0 0 9px rgba(255,52,127,.36);
}
.card, .lobby, .room, .mrow, .mycard, .pod, .lrow {
  background: var(--glass);
  border-color: rgba(255,255,255,.07);
}
.card {
  border-radius: var(--r1);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.26);
}

/* Play / queue: clear mode selection, compact lobby cards, assertive join actions. */
#view > .seg {
  margin: 13px 0 17px;
  padding: 4px;
  gap: 4px;
  background: rgba(19,16,20,.94);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.075);
}
.seg button {
  min-height: 39px;
  color: #81777e;
  font-size: 10px;
  letter-spacing: .12em;
}
.seg button.on {
  color: #fff;
  background: linear-gradient(135deg, #ef367b, #bd174f);
  box-shadow: 0 5px 15px rgba(189,23,79,.22), inset 0 1px rgba(255,255,255,.2);
}
.seg button .i { width: 13px; height: 13px; }
.lobby {
  padding: 15px 15px 13px;
  border-radius: 19px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 9px 25px rgba(0,0,0,.22);
}
.lobby + .lobby { margin-top: 10px; }
.lobby .head { gap: 8px; }
.lobby h3 {
  color: #eee6ea;
  font-size: 16px;
  letter-spacing: .025em;
}
.lobby .cnt {
  color: #f4edf0;
  font-family: var(--font-display);
  font-size: 19px;
}
.lobby .cnt small { color: #8f858b; font-size: 12px; }
.lobby .btn.sm {
  min-height: 35px;
  padding: 0 15px;
  font-size: 10px;
  letter-spacing: .1em;
}
.lobby.hot .cnt { color: #f2c96e; }
.lobby.mine {
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.36), 0 0 20px rgba(255,52,127,.06);
}
.badge-hot {
  color: #ffd9e6;
  background: rgba(222,37,96,.2);
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.32);
}
.stack { margin: 12px 0 4px; }
.stack .pav { box-shadow: 0 0 0 3px #171419; }
.slotsbar { gap: 5px; margin-top: 11px; }
.slotsbar i { height: 5px; background: rgba(255,255,255,.075); }
.slotsbar i.f {
  background: linear-gradient(90deg, #ff4d91, #c91d59);
  box-shadow: none;
}
.lobby .sub { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; }
.lobby .pill { padding: 4px 8px; font-size: 9px; }
.qlbar { border-radius: 17px; }
.room {
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0, rgba(150,22,62,.2), transparent 60%), var(--glass);
}
.room h3 { font-size: 23px; }
.room .meta .pill { font-size: 10px; }
.pcell span { color: #d8cdd2; font-size: 10px; }
.pcell .pav { --s: 50px; }

/* Leaderboard controls, three-person podium, and dense ranking rows. */
#view > .seg:not(.league) {
  flex-wrap: wrap;
  margin: 12px 0 18px;
  border-radius: 17px;
  padding: 5px;
  background: rgba(20,17,21,.9);
}
#view > .seg:not(.league) button {
  min-width: calc(50% - 3px);
  border-radius: 12px;
  min-height: 36px;
  font-size: 9px;
}
#view > .seg:not(.league) button.on { border-radius: 11px; }
.mycard {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.22);
}
.mycard .big { color: var(--pu); font-size: 27px; text-shadow: none; }
.mycard b { font-size: 13px; }
.podium {
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 9px;
  align-items: end;
  margin: 20px 0 18px;
}
.pod {
  min-width: 0;
  padding: 17px 5px 12px;
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(31,26,31,.96), rgba(12,11,14,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.075), 0 9px 22px rgba(0,0,0,.28);
}
.pod.p1 {
  padding-top: 28px;
  border-radius: 21px;
  box-shadow: inset 0 0 0 1px rgba(237,198,109,.34), 0 0 24px rgba(237,198,109,.07);
}
.pod .cover { opacity: .2; }
.pod .cr { color: #f0ca68; fill: #f0ca68; filter: drop-shadow(0 2px 4px rgba(237,198,109,.32)); }
.pod .pav { --s: 46px; margin-bottom: 7px; }
.pod.p1 .pav { --s: 53px; }
.pod .rk { font-size: 21px; color: #c8bfc4; }
.pod.p1 .rk { color: #f0ca68; text-shadow: none; }
.pod.p3 .rk { color: #d989aa; }
.pod .nm { margin-top: 5px; font-size: 11px; color: #ece4e8; }
.pod .el { margin-top: 3px; font-size: 15px; color: var(--pink-stat); }
#view > h2 { margin-top: 18px; }
.lrow {
  grid-template-columns: 25px 40px minmax(0,1fr) auto;
  gap: 9px;
  min-height: 62px;
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 15px;
  background: rgba(20,18,22,.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}
.lrow .cover { opacity: .16; }
.lrow:before { background: linear-gradient(90deg, rgba(13,11,14,.95), rgba(13,11,14,.72) 67%, rgba(13,11,14,.46)); }
.lrow .pav { --s: 38px; }
.lrow .rk { color: #8e858b; font-size: 13px; }
.lrow .ell b { color: #e6dfe3; font-size: 12px; }
.lrow .sub { color: #91878d; font-size: 10px; }
.lrow > b:last-child { color: #ff6a9e; font-size: 14px !important; }
.lrow.me {
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.4), 0 0 16px rgba(255,52,127,.07);
}

/* Shared finish for controls and the persistent floating navigation. */
.btn:not(.ghost) {
  background: linear-gradient(135deg, #fa3d83, #c71959);
  box-shadow: 0 7px 18px rgba(201,25,89,.22), inset 0 1px rgba(255,255,255,.24);
}
.btn.ghost {
  color: #ddd2d8;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.tabbar {
  left: 14px; right: 14px;
  bottom: calc(10px + var(--safe));
  max-width: 460px;
  padding: 6px;
  border-radius: 21px;
  background: rgba(19,17,21,.91);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 12px 35px rgba(0,0,0,.58);
}
.tabbar .ind {
  top: 6px; bottom: 6px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(240,49,119,.22), rgba(178,22,75,.12));
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.36);
}
.tabbar button {
  min-width: 0;
  gap: 4px;
  padding: 8px 1px 7px;
  color: #777077;
  font-size: 8px;
  letter-spacing: .04em;
}
.tabbar button .i { width: 19px; height: 19px; color: currentColor; }
.tabbar button.on { color: #ff4b8d; }
.tabbar button.on .i { filter: none; }
.tabbar .dot { background: var(--pu); box-shadow: 0 0 0 2px #171419; }

/* Confirmation is a true centered match-found sheet; all existing actions remain intact. */
.flow:has(.cgrid) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 18px calc(18px + var(--safe));
  background:
    radial-gradient(ellipse at 50% 38%, rgba(104,17,48,.18), transparent 57%),
    rgba(3,3,5,.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.flow:has(.cgrid) .inner {
  width: 100%;
  max-width: 385px;
  flex: none;
  margin: 0;
  padding: 23px 20px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 27px 27px 0 0;
  background: linear-gradient(160deg, rgba(24,21,26,.98), rgba(12,11,14,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.68), inset 0 1px rgba(255,255,255,.04);
}
.flow:has(.cgrid) .ftitle {
  margin: 3px 0 4px;
  color: #f4edf0;
  -webkit-text-fill-color: #f4edf0;
  background: none;
  font-size: 22px;
  font-style: normal;
  letter-spacing: .09em;
}
.flow:has(.cgrid) .fsub {
  margin: 0 0 11px;
  color: #a39aa0;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.flow:has(.cgrid) .countdown {
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
}
.flow:has(.cgrid) .countdown svg { stroke-width: 8; }
.flow:has(.cgrid) .countdown .bg1 { stroke: rgba(255,255,255,.1); }
.flow:has(.cgrid) .countdown .fg {
  stroke: var(--pu);
  filter: none;
}
.flow:has(.cgrid) .countdown b {
  color: #f7f0f3;
  font-size: 26px;
  font-style: normal;
}
.flow:has(.cgrid) .countdown.low .fg { stroke: #ff617f; filter: none; }
.flow:has(.cgrid) .cgrid {
  gap: 11px 6px;
  margin: 9px 0 13px;
}
.flow:has(.cgrid) .cgrid .pav { --s: 39px; }
.flow:has(.cgrid) .pav.ok {
  box-shadow: 0 0 0 2px #45d391, 0 0 12px rgba(69,211,145,.12);
}
.flow:has(.cgrid) .pav .tick {
  width: 16px; height: 16px;
  right: -2px; top: -2px;
  color: #102319;
  background: #49d796;
  box-shadow: 0 0 0 2px #141217;
}
.flow:has(.cgrid) .pcell span { color: #d5cbd0; font-size: 9px; }
.flow:has(.cgrid) .note {
  padding: 10px 9px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #898087 !important;
  font-size: 10px !important;
  line-height: 1.4;
}
.flow:has(.cgrid) .fbar {
  position: static;
  width: 100%;
  max-width: 385px;
  flex: none;
  padding: 0 20px 21px;
  border: 1px solid rgba(255,255,255,.1);
  border-top: 0;
  border-radius: 0 0 27px 27px;
  background: linear-gradient(180deg, rgba(12,11,14,.99), rgba(12,11,14,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.68);
}
.flow:has(.cgrid) .fbar .in { max-width: none; }
.flow:has(.cgrid) .fbar .btn.xl {
  width: 100%;
  min-height: 52px;
  font-size: 12px;
  letter-spacing: .13em;
  border-radius: 15px;
}
.flow:has(.cgrid) .fbar .btn.ghost.xl {
  color: #f4edf0;
  background: rgba(255,255,255,.06);
}

.toast {
  background: #21191f;
  box-shadow: inset 0 0 0 1px rgba(255,52,127,.35), 0 12px 34px rgba(0,0,0,.55);
}
.app-footer { padding-bottom: calc(20px + var(--safe)); }

@media (min-width: 600px) {
  main { padding-top: 22px; }
  .flow:has(.cgrid) .cgrid .pav { --s: 43px; }
}
@media (max-width: 360px) {
  main { padding-left: 14px; padding-right: 14px; }
  .lobby { padding-left: 12px; padding-right: 12px; }
  .lobby h3 { font-size: 14px; }
  .flow:has(.cgrid) .inner { padding-left: 15px; padding-right: 15px; }
  .flow:has(.cgrid) .fbar { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 520px) {
  #view:has(>.podium)>.podium {
    grid-template-columns: 1fr 1.12fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    gap: 6px;
    align-items: end;
  }
  #view:has(>.podium) .pod.p1 {
    display: flex;
    grid-area: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    padding: 22px 4px 11px;
    text-align: center;
  }
  #view:has(>.podium) .pod.p1 .pav,
  #view:has(>.podium) .pod.p1 .rk,
  #view:has(>.podium) .pod.p1 .nm,
  #view:has(>.podium) .pod.p1 .el {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  #view:has(>.podium) .pod.p1 .pav { --s: 49px; margin: 0 0 5px; }
  #view:has(>.podium) .pod.p1 .rk { margin: 0; }
  #view:has(>.podium) .pod.p1 .nm { margin: 4px 0 0; }
  #view:has(>.podium) .pod.p1 .el { margin-top: 3px; }
  #view:has(>.podium) .pod.p2,
  #view:has(>.podium) .pod.p3 {
    grid-area: auto;
    min-height: 126px;
    padding: 14px 4px 11px;
  }
  #view:has(>.podium) .pod:not(.p1) .pav { --s: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg .blob { animation: none; }
}

/* Profile layout based on the supplied FACEIT profile reference. */
.tabbar .ind { transition: none !important; }
.pf-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 1px 14px;
}
.pf-titlebar > strong {
  color: #f7f2f5;
  font-size: 19px;
  font-weight: 850;
}
.pf-head-action,
.pf-balance {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(20,18,22,.9);
  color: #f1edf0;
}
.pf-head-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-balance {
  min-width: 88px;
  height: 36px;
  gap: 6px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}
.pf-balance .i { width: 16px; height: 16px; color: #f4f0f3; }
.pf-balance span { color: #817b82; font-size: 10px; }
.pf-identity {
  overflow: hidden;
  padding: 0;
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(29,24,31,.98), rgba(13,12,15,.98));
}
.pf-user-banner {
  min-height: 101px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background-color: #171318;
  background-size: cover;
  background-position: center;
}
.pf-avatar { flex: none; }
.pf-avatar .bigav { width: 72px; height: 72px; }
.pf-user-copy { min-width: 0; flex: 1; }
.pf-nick {
  overflow: hidden;
  color: #ff5a98;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-meta {
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-edit {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(10,9,12,.55);
  color: #fff;
}
.pf-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-clan {
  width: 100%;
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #f6f1f4;
  text-align: left;
}
.pf-clan-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,69,132,.15);
  color: #ff669e;
}
.pf-clan-icon .i { width: 19px; height: 19px; }
.pf-clan > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 2px; }
.pf-clan b { font-size: 13px; font-weight: 800; }
.pf-clan small { color: #8f8990; font-size: 10px; }
.pf-chevron { color: #777179; font-size: 24px; line-height: 1; }
.pf-season-title {
  margin: 21px 2px 8px;
  color: #9c959d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.pf-season-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.pf-season-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(18,16,20,.9);
  color: #8d8790;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
}
.pf-season-switch button.on {
  border-color: transparent;
  background: linear-gradient(105deg,#ff4f8d,#d32970);
  color: #fff;
  box-shadow: 0 6px 18px rgba(231,49,118,.22);
}
.pf-season-switch button:disabled { opacity: .48; }
.pf-elo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 21px;
  background: linear-gradient(135deg,rgba(22,20,24,.98),rgba(12,11,14,.98));
}
.pf-level-icon { width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.pf-level-icon .lvi { max-width: 54px; max-height: 54px; }
.pf-elo-body { min-width: 0; flex: 1; }
.pf-elo-number { color: #f8f3f6; font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pf-elo-number span {
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(255,79,141,.4);
  border-radius: 12px;
  color: #ff6099;
  font-size: 9px;
  vertical-align: 3px;
}
.pf-elo-track { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.09); }
.pf-elo-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f53c83,#fc77ad); }
.pf-elo-caption { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #817a83; font-size: 9px; }
.pf-elo-caption b { color: #f05b91; font-weight: 750; text-align: right; }
.pf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 23px 2px 9px;
}
.pf-section-head b,
.pf-history-head b { color: #a29ba4; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.pf-section-head span,
.pf-history-head span { color: #e65b8c; font-size: 9px; font-weight: 750; text-align: right; }
.pf-rating {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 22px;
}
.pf-rating-ring {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#39d98a var(--ring-progress),rgba(255,255,255,.09) 0);
  transform: rotate(-12deg);
}
.pf-rating-ring span { width: 46px; height: 46px; border-radius: 50%; background: #111014; display: grid; place-items: center; color: #39d98a; font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; transform: rotate(12deg); }
.pf-rating-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pf-rating-copy strong { color: #39d98a; font-size: 27px; font-weight: 900; line-height: 1; }
.pf-rating-copy b { margin-top: 4px; color: #f7f2f5; font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.pf-rating-copy small { margin-top: 4px; color: #9d969f; font-size: 10px; }
.pf-rating-open { width: 23px; height: 30px; color: #78727b; font-size: 24px; }
.pf-history { margin-top: 12px; padding: 15px; border-radius: 22px; }
.pf-history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pf-history .elochart { margin: 0; border-radius: 13px; }
.pf-archive-note { margin: 8px 2px; color: #8e8790; font-size: 10px; line-height: 1.5; }
.pf-titlebar button:focus-visible,
.pf-clan:focus-visible,
.pf-season-switch button:focus-visible,
.pf-rating-open:focus-visible { outline: 2px solid #ff5a98; outline-offset: 2px; }
@media (max-width: 360px) {
  .pf-titlebar { gap: 6px; }
  .pf-head-action { min-width: 36px; height: 36px; }
  .pf-balance { min-width: 78px; height: 34px; padding: 0 7px; }
  .pf-elo { gap: 8px; padding: 12px 10px; }
  .pf-section-head span { font-size: 8px; }
}

/* New 75-level season pass */
.passhero {
  background:
    radial-gradient(90% 90% at 100% 0%,rgba(237,99,178,.18),transparent 60%),
    radial-gradient(80% 100% at 0% 100%,rgba(130,84,255,.11),transparent 60%),
    linear-gradient(160deg,#251126,#140b19);
}
.passhero .passglow { background: radial-gradient(circle,rgba(237,99,178,.18),transparent 68%); }
.pass-total {
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:14px;padding:10px 12px;
  border-radius:14px;background:rgba(237,99,178,.09);box-shadow:inset 0 0 0 1px rgba(237,99,178,.2);
}
.pass-total b { font-size:18px;color:#ff9bda;font-weight:900; }
.pass-total span { font-size:11px;color:var(--mu); }
.pass-unlock {
  margin-top:10px;padding:14px;border-radius:18px;
  background:linear-gradient(130deg,rgba(237,99,178,.14),rgba(130,84,255,.1));
  box-shadow:inset 0 0 0 1px rgba(255,155,218,.25);
}
.pass-unlock-copy b { display:block;font-size:15px; }
.pass-unlock-copy small,.pass-rub-note { display:block;color:var(--mu);font-size:11px;line-height:1.45;margin-top:4px; }
.pass-unlock-actions { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px; }
.pass-unlock-actions .btn { min-height:42px;border-radius:13px;font-weight:900; }
.pass-ac-buy { background:linear-gradient(135deg,#ff86cc,#be42a2);color:#210a20;box-shadow:0 8px 24px rgba(189,40,124,.28); }
.pass-rub-buy { box-shadow:inset 0 0 0 1px rgba(255,155,218,.28); }
.pass-rub-note { margin-top:8px; }
.pass-owned {
  display:flex;align-items:center;gap:6px;margin-top:12px;padding:10px 12px;border-radius:13px;
  background:rgba(237,99,178,.12);color:#ff9bda;font-weight:800;font-size:12px;
}
.pass-owned .i { width:15px;height:15px; }
.pass-pages { display:flex;gap:8px;margin:12px 0 0;overflow:auto;scrollbar-width:none; }
.pass-pages::-webkit-scrollbar { display:none; }
.pass-pages button {
  flex:1;min-width:76px;border:0;border-radius:12px;padding:10px 8px;background:rgba(255,255,255,.055);
  color:var(--mu);font:inherit;font-size:11px;font-weight:900;cursor:pointer;
}
.pass-pages button.on {
  background:linear-gradient(135deg,rgba(237,99,178,.28),rgba(130,84,255,.2));
  color:#fff;box-shadow:inset 0 0 0 1px rgba(255,155,218,.35);
}
.pcell2.anime-reward {
  background:radial-gradient(100% 100% at 50% 0%,rgba(237,99,178,.17),transparent 72%),linear-gradient(160deg,#251126,#1b101f);
  box-shadow:inset 0 0 0 1px rgba(255,155,218,.25);
}
.pcell2.anime-reward.prem {
  background:radial-gradient(100% 100% at 50% 0%,rgba(130,84,255,.2),transparent 72%),linear-gradient(160deg,#281331,#1e1024);
  box-shadow:inset 0 0 0 1px rgba(201,144,255,.32);
}
.pcell2.anime-reward img.pfr { filter:drop-shadow(0 4px 10px rgba(237,99,178,.3)); }
.pcell2.anime-reward img.pbn { height:42px; }
.pass-total { align-items:stretch; }
.pass-total-main,.pass-gold-total {
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
}
.pass-total-main { flex:1 1 135px; }
.pass-total-main b,.pass-gold-total b { font-size:16px;color:#ff9bda;font-weight:900; }
.pass-total-main span,.pass-gold-total span { font-size:10px;color:var(--mu); }
.pass-gold-total {
  flex:1 1 135px;padding-left:10px;border-left:1px solid rgba(237,99,178,.18);
}
.pass-gold-total .i { width:17px;height:17px;color:#ffd873; }
.pcell2 .pass-reward-details { display:flex;flex-direction:column;align-items:center;gap:5px;width:100%; }
.pcell2 .pass-reward-art { display:block;max-width:100%;object-fit:cover;border-radius:9px; }
.pcell2 .pass-reward-art.pbn { width:100%;height:54px;border:1px solid rgba(255,155,218,.22); }
.pcell2 .pass-reward-art.pfr { width:48px;height:48px;object-fit:contain; }
.pass-ac-chip,.pass-boost-chip {
  display:inline-flex;align-items:center;justify-content:center;gap:4px;max-width:100%;
  padding:4px 7px;border-radius:999px;font-size:10px;line-height:1.15;font-weight:850;
}
.pass-ac-chip { color:#ffe39a;background:rgba(238,190,75,.13);box-shadow:inset 0 0 0 1px rgba(238,190,75,.2); }
.pass-ac-chip .i { width:13px;height:13px;flex:none; }
.pass-boost-chip { color:#dab9ff;background:rgba(164,109,255,.13);box-shadow:inset 0 0 0 1px rgba(164,109,255,.22); }
.pass-boost-chip .i { width:12px;height:12px;flex:none; }
.pass-item-label { color:#f2d8f3;font-size:10px;line-height:1.2;font-weight:750; }
.pcell2 .pass-boost-claim { background:linear-gradient(135deg,#9f67ff,#d65bbd);color:#fff; }
.pcell2.has-pass-boost { min-height:112px; }
@media(max-width:360px) {
  .pass-unlock { padding:11px; }
  .pass-unlock-actions { grid-template-columns:1fr; }
  .pass-pages { gap:6px; }
  .pass-pages button { min-width:68px; }
  .pass-total { gap:8px; }
  .pass-gold-total { border-left:0;padding-left:0; }
  .pass-ac-chip,.pass-boost-chip { font-size:9px;padding:4px 5px; }
}

/* Daily and weekly Battle Pass missions */
.pass-sections { margin:12px 0; }
.pmission-board { display:grid;gap:18px; }
.pmission-heading { margin-bottom:8px; }
.pmission-heading h2 { margin-bottom:3px; }
.pmission-heading small { color:var(--mu);font-size:11px; }
.pmission {
  margin-top:9px;padding:14px;
  background:radial-gradient(100% 100% at 100% 0%,rgba(190,93,255,.10),transparent 64%),linear-gradient(155deg,#191321,#100d15);
  box-shadow:inset 0 0 0 1px rgba(200,150,255,.12);
}
.pmission.done { box-shadow:inset 0 0 0 1px rgba(128,230,174,.28); }
.pmission.claimed { opacity:.78; }
.pmission-top,.pmission-bottom { display:flex;align-items:center;gap:10px; }
.pmission-top b { font-size:14px; }
.pmission-top .sub { margin-top:4px;line-height:1.4; }
.pmission-xp {
  flex:none;display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border-radius:999px;
  color:#e5c5ff;background:rgba(164,109,255,.14);font-size:10px;font-weight:900;
}
.pmission-xp .i { width:12px;height:12px; }
.pmission-bottom { margin-top:12px; }
.pmission .bar { --lvl:#ad6bff;min-width:30px; }
.pmission-progress { min-width:44px;text-align:right;color:var(--mu);font-size:12px;font-weight:800; }
.pmission-claimed { display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800; }
.pmission-claimed .i { width:14px;height:14px; }
.pass-level-purchase { margin-top:10px; }
.pass-level-purchase small { display:block;margin:7px 4px 0;color:var(--mu);font-size:10px;line-height:1.4;text-align:center; }
@media(max-width:360px) {
  .pmission { padding:12px; }
  .pmission-top,.pmission-bottom { gap:7px; }
  .pmission-xp { padding:5px 6px;font-size:9px; }
  .pmission-bottom .btn { padding:8px 9px;font-size:11px; }
}
