/* Owner-approved Hall DNA for the unified profile center. The profile owns a
   single editable portrait inside its full-screen surface, with club imagery,
   compact ledger panels and device-specific compositions. */
.hall-profile-center {
  --profile-panel: rgba(3, 15, 10, .91);
  --profile-panel-strong: rgba(3, 12, 8, .97);
  --profile-line: rgba(211, 168, 67, .28);
  inset: 0;
  grid-template-columns: clamp(208px, 18.5vw, 254px) minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(10px, 1.45vw, 20px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 10, 7, .92), rgba(2, 12, 8, .62) 43%, rgba(1, 8, 6, .82)),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .44)),
    var(--hall-club-background) center 56% / cover no-repeat,
    #030906;
}

/* Full-screen profile authority — the profile replaces the Hall chrome instead
   of living beneath the wallet header and above the six-item navigation. */
body[data-view="lobby"] .hall-app > [data-hall-app-root].is-profile-fullscreen {
  display: block;
  height: 100dvh;
  min-height: 0;
}

.profile-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: clamp(58px, 7.4vh, 72px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  color: #e9dfca;
  background:
    linear-gradient(90deg, rgba(1, 10, 7, .96), rgba(2, 15, 10, .82) 48%, rgba(1, 8, 6, .94)),
    var(--hall-club-background) center 54% / cover no-repeat,
    #020805;
  isolation: isolate;
}

.profile-fullscreen::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 14%, rgba(64, 103, 77, .16), transparent 48%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .34));
}

.profile-fullscreen__bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(5, 16, 11, .99), rgba(2, 10, 7, .985));
  border-bottom: 1px solid rgba(215, 172, 72, .32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
}

.profile-back-button {
  display: inline-flex;
  width: max-content;
  min-width: 112px;
  min-height: 44px;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px 0 11px;
  color: #ecd088;
  background: rgba(12, 29, 21, .84);
  border: 1px solid rgba(215, 173, 73, .42);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-back-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-back-button:focus-visible,
.profile-id-row button:focus-visible,
.profile-identity-card__avatar > button:focus-visible {
  outline: 2px solid #f2d782;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .profile-back-button:hover,
  .profile-id-row button:hover,
  .profile-identity-card__avatar > button:hover {
    color: #fff1c2;
    background: rgba(38, 75, 56, .72);
    border-color: rgba(239, 204, 116, .7);
  }
}

.profile-fullscreen__brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: center;
  color: #d7ac4b;
}

.profile-fullscreen__brand > svg {
  width: 35px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-fullscreen__brand > span { display: grid; justify-items: center; line-height: 1; }
.profile-fullscreen__brand b { font: 650 15px/1 Georgia, serif; letter-spacing: .035em; }
.profile-fullscreen__brand b i { font-size: 6px; font-style: normal; }
.profile-fullscreen__brand small { margin-top: 3px; font-size: 6px; letter-spacing: .28em; }

.profile-fullscreen__context {
  justify-self: end;
  color: #9b927f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-fullscreen > .hall-profile-center {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: clamp(246px, 21vw, 318px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.profile-fullscreen > .hall-profile-center::before { display: none; }

.profile-fullscreen .profile-identity-card,
.profile-fullscreen .profile-workspace {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-fullscreen .profile-identity-card {
  display: grid;
  align-content: start;
  justify-items: stretch;
  min-height: 0;
  padding: clamp(20px, 2.5vw, 36px) clamp(18px, 2.2vw, 30px) max(20px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(8, 31, 22, .97), rgba(2, 13, 9, .99)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .012) 5px 6px);
  border-inline-end: 1px solid rgba(215, 172, 72, .27);
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 172, 72, .35) transparent;
}

.profile-fullscreen .profile-identity-card__avatar {
  position: relative;
  display: block;
  width: min(168px, 78%);
  aspect-ratio: 1;
  justify-self: center;
  padding: 6px;
  background: linear-gradient(145deg, #f2d67d, #8a5b1c 62%, #e2bd61);
  border: 1px solid #e0bd63;
  border-radius: 4px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(11, 19, 14, .8);
}

.profile-fullscreen .profile-identity-card__avatar::before {
  position: absolute;
  inset: 10px;
  z-index: 1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 232, 161, .42);
  border-radius: 2px;
}

.profile-fullscreen .profile-identity-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #13231a;
  border-radius: 2px;
}

.profile-fullscreen .profile-avatar-open {
  position: absolute;
  inset: 6px;
  z-index: 2;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.profile-fullscreen .profile-avatar-open:focus-visible {
  outline: 2px solid #f0d486;
  outline-offset: -4px;
}

.profile-fullscreen .profile-avatar-edit {
  position: absolute;
  top: 12px;
  right: -10px;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #edd07d;
  background: #08130e;
  border: 1px solid #ae7c29;
  border-radius: 3px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
}

.profile-fullscreen .profile-avatar-edit svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.profile-fullscreen .profile-identity-card__avatar > i {
  position: absolute;
  right: -9px;
  bottom: -9px;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #1b1307;
  background: linear-gradient(#f5dd94, #b97f27);
  border: 3px solid #07110c;
  clip-path: polygon(50% 0, 90% 20%, 100% 66%, 72% 100%, 28% 100%, 0 66%, 10% 20%);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.profile-fullscreen .profile-identity-card__name {
  margin-top: 22px;
  padding: 0;
  text-align: center;
}

.profile-fullscreen .profile-identity-card__name small { color: #b9903e; }
.profile-fullscreen .profile-identity-card__name h1 { margin: 6px 0 5px; font-size: clamp(30px, 3.2vw, 43px); }
.profile-fullscreen .profile-identity-card__name p { font-size: 10px; }

.profile-fullscreen .profile-level-track { margin-top: 20px; }

.profile-fullscreen .profile-identity-details { margin-top: 6px; }
.profile-fullscreen .profile-identity-details > div { min-height: 54px; }

.profile-id-row dd { gap: 8px; }
.profile-id-row dd > span {
  min-width: 0;
  overflow: hidden;
  color: #d8cdb7;
  font: 600 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-id-row button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: #d8b55f;
  background: rgba(8, 23, 16, .88);
  border: 1px solid rgba(211, 169, 68, .34);
  border-radius: 3px;
}

.profile-id-row button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; }

.profile-fullscreen .profile-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 12, 8, .72), rgba(1, 8, 5, .91));
}

.profile-fullscreen .profile-workspace__head {
  min-height: clamp(86px, 11vh, 116px);
  padding: 15px clamp(22px, 3vw, 44px) 14px;
  background: linear-gradient(90deg, rgba(18, 55, 39, .33), transparent 70%);
}

.profile-fullscreen .profile-workspace__head h2 { font-size: clamp(34px, 3.6vw, 52px); }
.profile-fullscreen .profile-workspace__head p { color: #999181; }

.profile-fullscreen .hall-profile-tabs {
  padding: 4px clamp(15px, 2.4vw, 36px);
  background: rgba(1, 9, 6, .86);
}

.profile-appearance-bar {
  position: relative;
  z-index: 6;
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 4px clamp(15px, 2.4vw, 36px);
  background: #020b07;
  border-top: 1px solid rgba(220, 180, 84, .08);
  border-bottom: 1px solid rgba(213, 170, 71, .2);
}

.profile-appearance-bar button {
  display: inline-flex;
  min-height: 48px;
  gap: 9px;
  align-items: center;
  padding: 8px 14px;
  color: #d8c28b;
  background: rgba(8, 27, 18, .72);
  border: 1px solid rgba(213, 170, 71, .28);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-appearance-bar button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.profile-appearance-bar button:focus-visible {
  outline: 2px solid #f0d486;
  outline-offset: 2px;
}

.profile-fullscreen .hall-profile-tabs button {
  min-height: 48px;
  padding-inline: clamp(12px, 1.45vw, 20px);
}

.profile-notification-badge,
.hall-profile-alert {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: #c62828;
  border: 2px solid #07110c;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .36);
  font: 800 10px/1 "KottCondensed", "Arial Narrow", sans-serif;
}

.hall-profile-alert {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
}

.profile-notification-badge { position: absolute; top: 4px; right: 2px; font-style: normal; }

.profile-fullscreen .profile-tab-panel {
  padding: clamp(14px, 2vw, 26px) clamp(18px, 3vw, 44px) max(26px, env(safe-area-inset-bottom));
}

.profile-progress-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(211, 169, 72, .22);
  background: rgba(3, 14, 9, .88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.profile-progress-lane {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 13px;
  padding: 14px clamp(13px, 1.6vw, 20px);
  border-inline-end: 1px solid rgba(211, 169, 72, .13);
}

.profile-progress-lane:last-child { border-inline-end: 0; }
.profile-progress-lane > span { display: flex; min-width: 0; gap: 10px; align-items: baseline; }
.profile-progress-lane small { color: #a98b4d; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.profile-progress-lane > span b { margin-inline-start: auto; color: #edd083; font-size: 17px; }
.profile-progress-lane > i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  background: #020604;
  border: 1px solid rgba(211, 168, 68, .18);
  border-radius: 99px;
  box-shadow: inset 0 1px 3px #000;
}

.profile-progress-lane > i b {
  display: block;
  width: calc(var(--profile-lane-progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, #7b5520, #e8c36c);
  box-shadow: 0 0 12px rgba(225, 183, 76, .25);
}

.profile-progress-lane > em {
  grid-column: 1 / -1;
  color: #8e887b;
  font-size: 9px;
  font-style: normal;
  text-align: end;
}

.profile-metric-strip--calm {
  margin-top: clamp(10px, 1.4vw, 16px);
  background: rgba(3, 13, 9, .66);
  box-shadow: none;
}

.profile-metric-strip--calm .profile-metric { min-height: 54px; padding-block: 8px; }
.profile-metric-strip--calm .profile-metric b { font-size: clamp(18px, 1.8vw, 25px); }
.profile-metric-strip--calm .profile-metric small { color: #8e8777; }

.profile-fullscreen .profile-tab-panel > .progression-page > .progression-head { display: none; }
.profile-fullscreen .profile-tab-panel > .progression-page .progression-summary { margin-top: 0; }

.profile-fullscreen .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-fullscreen .achievement-card {
  min-height: 286px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto auto;
  gap: 9px 13px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(16, 37, 27, .96), rgba(3, 12, 8, .99) 70%);
}

.profile-fullscreen .achievement-card > .achievement-card__index {
  top: 11px;
  right: 13px;
  width: auto;
  height: auto;
  color: rgba(228, 197, 117, .22);
  background: transparent;
  border: 0;
  font: 700 20px/1 "KottCondensed", sans-serif;
}

.achievement-card__art {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 68px !important;
  height: 68px !important;
  grid-row: 1;
  place-items: center;
  align-self: start;
  color: #d8b35b !important;
  background: radial-gradient(circle, rgba(224, 183, 86, .16), rgba(4, 14, 10, .8) 70%) !important;
  border: 1px solid rgba(219, 178, 80, .4) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 5px rgba(214, 171, 71, .045);
}

.achievement-card__art::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.achievement-card__art::after { position: absolute; content: "♛"; font: 700 22px/1 Georgia, serif; }
.achievement-card__art[data-art-family="discipline"]::after { content: "8"; font-family: "KottCondensed", "Arial Narrow", sans-serif; }
.achievement-card__art[data-art-family="collection"]::after { content: "◆"; }
.achievement-card__art[data-art-family="rank"]::after { content: "▲"; }
.achievement-card__art[data-art-family="tournament"]::after { content: "♜"; }
.achievement-card__art[data-art-family="social"]::after { content: "K"; font-family: Georgia, serif; }
.achievement-card__art :is(i, b, em) { display: none; }

.profile-fullscreen .achievement-card > div { grid-column: 2 / -1; min-width: 0; }
.profile-fullscreen .achievement-card > strong { grid-column: 1 / -1; }
.profile-fullscreen .achievement-card > .progression-bar,
.profile-fullscreen .achievement-card > em,
.profile-fullscreen .achievement-card > button { grid-column: 1 / -1; }
.profile-fullscreen .achievement-card.is-complete { box-shadow: inset 3px 0 #d5a93f, 0 14px 32px rgba(0, 0, 0, .25); }
.profile-fullscreen .achievement-card.is-complete::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: #d72e2e;
  box-shadow: 0 0 0 4px rgba(215, 46, 46, .13);
}

.hall-reward-celebration {
  position: fixed;
  top: max(82px, calc(env(safe-area-inset-top) + 68px));
  right: max(18px, env(safe-area-inset-right));
  z-index: 260;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  color: #eadfc7;
  background: linear-gradient(135deg, rgba(14, 42, 29, .985), rgba(3, 13, 9, .995));
  border: 1px solid rgba(224, 181, 77, .55);
  border-radius: 3px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 241, 197, .06);
  animation: profile-notice-in 220ms ease-out both;
}

.hall-reward-celebration__crest {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #e2bc61;
  background: rgba(2, 12, 8, .76);
  border: 1px solid rgba(218, 175, 75, .4);
  border-radius: 50%;
}
.hall-reward-celebration__crest svg { width: 34px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 2; }
.hall-reward-celebration > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.hall-reward-celebration strong { color: #f5e4b2; font-size: 15px; }
.hall-reward-celebration small { color: #a89f8c; font-size: 10px; }
.hall-reward-celebration b { color: #d9b65f; font-size: 11px; }
.hall-reward-celebration > button { width: 34px; height: 34px; color: #ab9f88; background: transparent; border: 0; font-size: 24px; }

@keyframes profile-notice-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .profile-fullscreen > .hall-profile-center { grid-template-columns: 232px minmax(0, 1fr); }
  .profile-fullscreen .profile-identity-card { padding-inline: 18px; }
  .profile-fullscreen .profile-identity-card__avatar { width: min(138px, 74%); }
  .profile-progress-board { grid-template-columns: 1fr; }
  .profile-progress-lane { grid-template-columns: minmax(0, 1fr) auto; border-inline-end: 0; border-bottom: 1px solid rgba(211, 169, 72, .13); }
  .profile-progress-lane:last-child { border-bottom: 0; }
  .profile-fullscreen .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) and (orientation: portrait) {
  .profile-fullscreen { grid-template-rows: max(56px, calc(48px + env(safe-area-inset-top))) minmax(0, 1fr); }
  .profile-fullscreen__bar { grid-template-columns: auto 1fr; gap: 12px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .profile-back-button { min-width: 0; min-height: 44px; padding: 0 12px; }
  .profile-fullscreen__brand { justify-self: center; transform: translateX(-22px); }
  .profile-fullscreen__context { display: none; }
  .profile-fullscreen > .hall-profile-center { display: block; height: 100%; overflow-x: hidden; overflow-y: auto; }
  .profile-fullscreen .profile-identity-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 16px;
    padding: 16px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(215, 172, 72, .25);
  }
  .profile-fullscreen .profile-identity-card__avatar { width: 94px; grid-row: 1 / 3; align-self: start; justify-self: start; padding: 4px; }
  .profile-fullscreen .profile-identity-card__avatar > button { top: 5px; right: -7px; width: 44px; height: 44px; }
  .profile-fullscreen .profile-identity-card__avatar > i { width: 34px; height: 34px; }
  .profile-fullscreen .profile-identity-card__name { align-self: end; margin: 0; text-align: start; }
  .profile-fullscreen .profile-identity-card__name h1 { font-size: clamp(28px, 8vw, 38px); }
  .profile-fullscreen .profile-level-track { align-self: start; margin: 8px 0 0; padding: 9px 0; }
  .profile-fullscreen .profile-identity-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin-top: 13px; border-top: 1px solid rgba(213, 171, 76, .13); }
  .profile-fullscreen .profile-identity-details > div { min-height: 48px; padding: 6px 8px; border-bottom: 0; border-inline-end: 1px solid rgba(213, 171, 76, .12); }
  .profile-fullscreen .profile-identity-details > div:last-child { border-inline-end: 0; }
  .profile-fullscreen .profile-id-row { grid-column: 1 / -1; border-top: 1px solid rgba(213, 171, 76, .1); }
  .profile-fullscreen .profile-workspace { display: grid; grid-template-rows: auto auto auto; overflow: visible; }
  .profile-fullscreen .profile-workspace__head { min-height: 78px; padding: 11px 14px 9px; }
  .profile-fullscreen .profile-workspace__head h2 { font-size: 31px; }
  .profile-fullscreen .profile-workspace__head p { display: none; }
  .profile-fullscreen .profile-workspace__head > span { min-width: 84px; padding: 7px 9px; }
  .profile-fullscreen .hall-profile-tabs { position: sticky; top: 0; z-index: 5; padding: 3px 4px; }
  .profile-fullscreen .profile-appearance-bar { position: sticky; top: 0; padding: 3px 4px; }
  .profile-fullscreen .hall-profile-tabs button { min-height: 48px; padding-inline: 11px; }
  .profile-fullscreen .profile-tab-panel { padding: 10px 9px max(22px, env(safe-area-inset-bottom)); overflow: visible; }
  .profile-progress-board { grid-template-columns: 1fr; }
  .profile-fullscreen .achievement-grid { grid-template-columns: 1fr; }
  .hall-reward-celebration { top: auto; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; }
}

@media (max-width: 520px) and (orientation: portrait) {
  .profile-fullscreen__brand b { font-size: 12px; }
  .profile-fullscreen__brand > svg { width: 29px; }
  .profile-back-button span { display: none; }
  .profile-back-button { width: 44px; justify-content: center; padding: 0; }
  .profile-fullscreen__brand { transform: none; }
  .profile-fullscreen .profile-identity-card { grid-template-columns: 82px minmax(0, 1fr); gap: 0 13px; padding: 13px 11px; }
  .profile-fullscreen .profile-identity-card__avatar { width: 80px; }
  .profile-fullscreen .profile-identity-card__avatar > button { width: 42px; height: 42px; }
  .profile-fullscreen .profile-identity-card__name h1 { font-size: 27px; }
  .profile-fullscreen .profile-level-track > strong { display: none; }
  .profile-fullscreen .profile-identity-details { grid-template-columns: 1fr; }
  .profile-fullscreen .profile-identity-details > div { border-inline-end: 0; border-bottom: 1px solid rgba(213, 171, 76, .1); }
  .profile-fullscreen .profile-id-row { grid-column: 1; }
  .profile-fullscreen .profile-workspace__head > span { display: none; }
  .profile-fullscreen .profile-workspace__head h2 { font-size: 28px; }
  .profile-fullscreen .hall-profile-tabs button { gap: 5px; padding-inline: 10px; font-size: 9px; }
  .profile-fullscreen .hall-profile-tabs svg { width: 18px; height: 18px; }
  .profile-metric-strip--calm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-fullscreen .profile-section-doors { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1180px) {
  .profile-fullscreen { grid-template-rows: max(48px, calc(42px + env(safe-area-inset-top))) minmax(0, 1fr); }
  .profile-fullscreen__bar { padding-block: max(4px, env(safe-area-inset-top)) 4px; }
  .profile-back-button { min-height: 40px; }
  .profile-fullscreen > .hall-profile-center { grid-template-columns: 190px minmax(0, 1fr); }
  .profile-fullscreen .profile-identity-card { padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
  .profile-fullscreen .profile-identity-card__avatar { width: 76px; padding: 3px; }
  .profile-fullscreen .profile-identity-card__avatar > button { top: 2px; right: -7px; width: 40px; height: 40px; }
  .profile-fullscreen .profile-identity-card__avatar > i { width: 30px; height: 30px; }
  .profile-fullscreen .profile-identity-card__name { margin-top: 8px; }
  .profile-fullscreen .profile-identity-card__name h1 { margin-block: 3px; font-size: 23px; }
  .profile-fullscreen .profile-level-track { margin-top: 6px; padding: 6px 0; }
  .profile-fullscreen .profile-level-track > strong { display: none; }
  .profile-fullscreen .profile-identity-details { margin-top: 0; }
  .profile-fullscreen .profile-identity-details > div { min-height: 35px; }
  .profile-fullscreen .profile-country-row dd span { font-size: 15px; }
  .profile-fullscreen .profile-workspace__head { min-height: 54px; padding: 6px 13px; }
  .profile-fullscreen .profile-workspace__head h2 { font-size: 25px; }
  .profile-fullscreen .profile-workspace__head p,
  .profile-fullscreen .profile-workspace__head > span { display: none; }
  .profile-fullscreen .hall-profile-tabs { padding: 2px 7px; }
  .profile-fullscreen .hall-profile-tabs button { min-height: 38px; padding-inline: 10px; font-size: 8px; }
  .profile-fullscreen .hall-profile-tabs svg { width: 17px; height: 17px; }
  .profile-fullscreen .profile-tab-panel { padding: 7px 9px 12px; }
  .profile-progress-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-progress-lane { gap: 4px 8px; padding: 7px 9px; border-bottom: 0; border-inline-end: 1px solid rgba(211, 169, 72, .13); }
  .profile-progress-lane > i { height: 5px; }
  .profile-progress-lane > em { display: none; }
  .profile-metric-strip--calm { margin-top: 6px; }
  .profile-fullscreen .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-fullscreen .achievement-card { min-height: 210px; grid-template-columns: 52px minmax(0, 1fr); padding: 10px; }
  .achievement-card__art { width: 46px !important; height: 46px !important; }
  .achievement-card__art::before { width: 22px; height: 22px; }
  .achievement-card__art::after { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hall-reward-celebration { animation: none; }
}

.hall-profile-center::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 19, 13, .58), transparent 44%, rgba(0, 0, 0, .25)),
    radial-gradient(ellipse at 56% 22%, transparent 0 22%, rgba(0, 0, 0, .23) 78%);
}

.profile-identity-card,
.profile-workspace {
  position: relative;
  z-index: 1;
  border: 1px solid var(--profile-line);
  border-radius: 3px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 244, 204, .035);
  backdrop-filter: blur(13px) saturate(.9);
}

.profile-identity-card {
  display: grid;
  min-height: 0;
  align-content: start;
  align-items: initial;
  padding: clamp(16px, 1.6vw, 24px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(9, 34, 24, .95), rgba(2, 12, 8, .98)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .012) 5px 6px);
  border-inline-end: 1px solid var(--profile-line);
}

.profile-identity-card::before {
  inset: 0 14% auto;
  background: linear-gradient(90deg, transparent, rgba(242, 205, 116, .72), transparent);
}

.profile-identity-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(213, 171, 76, .16);
}

.profile-identity-card__seal {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #d9b252;
  background: #07130d;
  border: 1px solid rgba(225, 185, 87, .48);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(213, 167, 62, .06);
}

.profile-identity-card__seal svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.profile-identity-card__eyebrow small {
  color: #d4ad54;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.profile-identity-card__name {
  position: relative;
  margin-top: 18px;
  padding-inline-end: 34px;
  text-align: start;
}

.profile-identity-card__name h1 {
  margin: 0 0 5px;
  color: #fff1d2;
  font: 590 clamp(27px, 2.4vw, 38px)/.96 "KottCondensed", "Arial Narrow", sans-serif;
}

.profile-identity-card__name p {
  color: #c9a550;
  font-size: 10px;
}

.profile-identity-edit {
  position: absolute;
  top: -4px;
  inset-inline-end: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #e5c46d;
  background: rgba(3, 13, 9, .92);
  border: 1px solid rgba(213, 171, 76, .36);
  border-radius: 3px;
}

.profile-identity-edit:focus-visible {
  outline: 2px solid #f0d486;
  outline-offset: 2px;
}

.profile-level-track {
  margin-top: 18px;
  padding: 12px 0;
}

.profile-level-track > span b { font-size: 17px; }
.profile-level-track > strong { font-size: 9px; }

.profile-identity-details > div {
  min-height: 48px;
  grid-template-columns: minmax(54px, .62fr) minmax(0, 1.38fr);
  gap: 8px;
}

.profile-identity-details dd {
  font-size: 12px;
  line-height: 1.15;
}

.profile-identity-details dd span { font-size: 19px; }

.profile-country-row {
  margin-top: 5px;
  background: linear-gradient(90deg, rgba(33, 74, 54, .24), transparent);
  box-shadow: inset 2px 0 #c99c3f;
}

[dir="rtl"] .profile-country-row { box-shadow: inset -2px 0 #c99c3f; }

.profile-workspace {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 13, 9, .87), rgba(2, 9, 6, .94)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .009) 5px 6px);
}

.profile-workspace__head {
  min-height: clamp(80px, 10.5vh, 108px);
  align-items: center;
  padding: 13px clamp(18px, 2.3vw, 34px) 12px;
  background: linear-gradient(90deg, rgba(13, 42, 29, .42), transparent 62%);
}

.profile-workspace__head::after {
  right: clamp(18px, 2.3vw, 34px);
  left: clamp(18px, 2.3vw, 34px);
}

.profile-workspace__head h2 {
  margin-block: 2px 4px;
  font-size: clamp(30px, 3vw, 45px);
}

.profile-workspace__head p {
  max-width: 680px;
  font-size: clamp(10px, .92vw, 13px);
}

.profile-workspace__head > span {
  min-width: 112px;
  padding: 10px 13px;
  background: rgba(2, 10, 7, .72);
  border-color: rgba(210, 168, 68, .25);
}

.profile-workspace__head > span b { font-size: 23px; }

.hall-profile-center .hall-profile-tabs {
  gap: 0;
  padding: 4px clamp(14px, 2.2vw, 32px);
  background: rgba(2, 10, 7, .88);
  border-top: 1px solid rgba(220, 180, 84, .08);
}

.hall-profile-center .hall-profile-tabs button {
  min-height: 43px;
  gap: 7px;
  padding-inline: clamp(11px, 1.4vw, 19px);
  font-size: clamp(9px, .82vw, 12px);
}

.hall-profile-center .hall-profile-tabs svg { width: 20px; height: 20px; }

.profile-tab-panel {
  padding: clamp(11px, 1.5vw, 20px) clamp(14px, 2.2vw, 32px) max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(135deg, rgba(1, 8, 5, .12), rgba(14, 42, 29, .06));
}

.profile-metric-strip {
  grid-template-columns: minmax(142px, 1.25fr) repeat(3, minmax(94px, .8fr));
  background: rgba(2, 12, 8, .82);
  border-color: rgba(213, 169, 71, .25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.profile-metric-strip--extended {
  grid-template-columns: minmax(126px, 1.15fr) repeat(3, minmax(80px, .8fr));
}

.profile-metric {
  min-height: 62px;
  padding: 9px clamp(11px, 1.25vw, 18px);
}

.profile-metric.is-primary {
  background: linear-gradient(100deg, rgba(35, 83, 59, .52), rgba(12, 35, 24, .28));
}

.profile-metric b { font-size: clamp(20px, 2vw, 28px); }

.profile-overview-grid {
  grid-template-columns: minmax(0, 1.46fr) minmax(220px, .72fr);
  gap: clamp(10px, 1.35vw, 18px);
  margin-top: clamp(10px, 1.35vw, 18px);
}

.profile-record-panel,
.profile-section-doors,
.profile-cue-panel,
.profile-discipline-ledger {
  background:
    linear-gradient(145deg, rgba(10, 33, 23, .9), rgba(2, 11, 7, .96)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .009) 5px 6px);
  border-color: rgba(213, 169, 71, .23);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.profile-record-panel > header,
.profile-discipline-ledger > header {
  min-height: 56px;
  padding: 10px 16px;
}

.profile-record-panel h3,
.profile-cue-panel h3,
.profile-discipline-ledger h3 { font-size: clamp(18px, 1.6vw, 24px); }

.profile-family-row {
  min-height: 55px;
  grid-template-columns: 36px minmax(0, 1fr) minmax(62px, auto) minmax(62px, auto);
  gap: 9px;
  padding: 7px 13px;
}

.profile-family-row__mark { width: 32px; height: 32px; }
.profile-family-row__mark::before { font-size: 13px; }
.profile-family-row > div strong { font-size: 14px; }
.profile-family-row > span b { font-size: 13px; }

.profile-section-doors button {
  min-height: 56px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 7px 12px;
}

.profile-section-doors svg { width: 24px; height: 24px; }
.profile-section-doors button strong { font-size: 11px; }

.profile-cue-panel {
  min-height: 82px;
  grid-template-columns: minmax(180px, .46fr) minmax(250px, 1fr);
  gap: 18px;
  margin-top: clamp(10px, 1.35vw, 18px);
  padding: 11px 17px;
}

.profile-cue-silhouette { height: 48px; }

.profile-discipline-ledger { margin-top: clamp(10px, 1.35vw, 18px); }

.profile-discipline-row {
  min-height: 54px;
  grid-template-columns: 34px minmax(160px, 1fr) repeat(4, minmax(62px, .36fr));
  gap: 9px;
  padding: 7px 13px;
}

.profile-discipline-mark { width: 30px; height: 30px; }
.profile-discipline-name > strong { font-size: 13px; }

@media (max-width: 1100px) {
  .hall-profile-center { grid-template-columns: 206px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .profile-identity-card { padding: 14px; }
  .profile-workspace__head p { max-width: 460px; }
  .profile-overview-grid { grid-template-columns: 1fr; }
  .profile-section-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-section-doors button:nth-child(odd) { border-inline-end: 1px solid rgba(211, 169, 72, .12); }
  .profile-discipline-row { grid-template-columns: 32px minmax(135px, 1fr) repeat(4, minmax(55px, .34fr)); gap: 6px; padding-inline: 9px; }
}

@media (max-width: 780px) and (orientation: portrait) {
  .hall-profile-center {
    display: block;
    padding: 8px;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(1, 11, 7, .78), rgba(1, 8, 5, .92)),
      var(--hall-club-preview) center top / cover fixed no-repeat,
      #030906;
  }

  .profile-identity-card {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .9fr);
    grid-template-rows: auto auto;
    gap: 0 16px;
    padding: 13px 14px;
    overflow: visible;
    border: 1px solid var(--profile-line);
  }

  .profile-identity-card__eyebrow { grid-column: 1; padding-bottom: 8px; }
  .profile-identity-card__seal { width: 34px; height: 34px; }
  .profile-identity-card__seal svg { width: 22px; }
  .profile-identity-card__name { grid-column: 1; margin-top: 10px; }
  .profile-identity-card__name h1 { font-size: 27px; }
  .profile-level-track { grid-column: 2; grid-row: 1; align-self: end; margin: 0; padding: 7px 0 10px; }
  .profile-identity-details { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; margin: 0; }
  .profile-identity-details > div { min-height: 32px; }
  .profile-identity-details > div:nth-child(2) { display: none; }
  .profile-country-row { margin-top: 0; }

  .profile-workspace { margin-top: 8px; overflow: visible; }
  .profile-workspace__head { min-height: 74px; padding: 10px 13px; }
  .profile-workspace__head h2 { font-size: 29px; }
  .profile-workspace__head p { font-size: 10px; }
  .profile-workspace__head > span { min-width: 88px; padding: 7px 9px; }
  .profile-workspace__head > span b { font-size: 19px; }
  .hall-profile-center .hall-profile-tabs { position: sticky; top: 0; padding-inline: 5px; }
  .hall-profile-center .hall-profile-tabs button { min-height: 46px; padding-inline: 11px; }
  .profile-tab-panel { padding: 10px 8px max(84px, calc(62px + env(safe-area-inset-bottom))); overflow: visible; }
  .profile-metric-strip,
  .profile-metric-strip--extended { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-metric:nth-child(2n) { border-inline-end: 0; }
  .profile-overview-grid { grid-template-columns: 1fr; }
  .profile-section-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-cue-panel { grid-template-columns: 1fr; }
  .profile-discipline-row { grid-template-columns: 32px minmax(0, 1fr) minmax(54px, auto); }
  .profile-discipline-row > span:nth-child(n+4) { display: none; }
}

@media (max-width: 520px) and (orientation: portrait) {
  .profile-identity-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 11px 12px;
  }

  .profile-identity-card__eyebrow,
  .profile-identity-card__name,
  .profile-level-track,
  .profile-identity-details { grid-column: 1; grid-row: auto; }
  .profile-identity-card__eyebrow { border-bottom: 0; }
  .profile-identity-card__name { margin-top: 7px; }
  .profile-identity-card__name h1 { font-size: 24px; }
  .profile-level-track { margin-top: 8px; }
  .profile-identity-details { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(213, 171, 76, .13); }
  .profile-identity-details > div { display: grid; min-height: 36px; border-bottom: 0; }
  .profile-identity-details > div:nth-child(2) { display: none; }
  .profile-workspace__head p,
  .profile-workspace__head > span { display: none; }
  .profile-workspace__head h2 { font-size: 27px; }
  .hall-profile-center .hall-profile-tabs button { min-height: 44px; gap: 5px; padding-inline: 9px; font-size: 9px; }
  .hall-profile-center .hall-profile-tabs svg { width: 18px; height: 18px; }
  .profile-family-row { grid-template-columns: 32px minmax(0, 1fr) minmax(54px, auto); padding-inline: 9px; }
  .profile-family-row > span:last-child { display: none; }
  .profile-section-doors { grid-template-columns: 1fr; }
  .profile-section-doors button:nth-child(n) { border-inline-end: 0; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1180px) {
  .hall-profile-center { grid-template-columns: 184px minmax(0, 1fr); gap: 7px; padding: 7px; }
  .profile-identity-card { padding: 9px 11px; }
  .profile-identity-card__eyebrow { gap: 7px; padding-bottom: 6px; }
  .profile-identity-card__seal { width: 30px; height: 30px; }
  .profile-identity-card__seal svg { width: 19px; }
  .profile-identity-card__name { margin-top: 7px; }
  .profile-identity-card__name h1 { font-size: 22px; }
  .profile-level-track { margin-top: 6px; padding: 6px 0; }
  .profile-level-track > strong { display: none; }
  .profile-identity-details > div { min-height: 32px; }
  .profile-identity-details > div:nth-child(2) { display: none; }
  .profile-workspace__head { min-height: 54px; padding: 6px 12px; }
  .profile-workspace__head h2 { font-size: 25px; }
  .profile-workspace__head p,
  .profile-workspace__head > span { display: none; }
  .hall-profile-center .hall-profile-tabs { padding: 2px 8px; }
  .hall-profile-center .hall-profile-tabs button { min-height: 36px; padding-inline: 9px; font-size: 8px; }
  .hall-profile-center .hall-profile-tabs svg { width: 17px; height: 17px; }
  .profile-tab-panel { padding: 6px 8px 14px; }
  .profile-metric { min-height: 46px; padding-block: 5px; }
  .profile-metric b { font-size: 19px; }
  .profile-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(205px, .66fr); gap: 6px; margin-top: 6px; }
  .profile-family-row { min-height: 42px; }
  .profile-section-doors { grid-template-columns: 1fr; }
  .profile-section-doors button:nth-child(n) { min-height: 42px; border-inline-end: 0; }
  .profile-cue-panel { min-height: 54px; margin-top: 6px; padding: 6px 10px; }
  .profile-discipline-row { min-height: 42px; }
}

/* Keep the full-screen identity contract stronger than the legacy compact
   profile refinements above. The ID is intentionally visible and copyable on
   every device class. */
.profile-fullscreen .profile-identity-card::before { display: none; }
.profile-fullscreen .profile-identity-details > div.profile-id-row { display: grid !important; }

/* The profile replaces the Hall chrome, so it owns the same physical iPhone
   landscape safe area instead of relying on the shared Hall page wrapper. */
@media (orientation: landscape) and (max-height: 700px) and (max-width: 1400px) {
  .profile-fullscreen {
    --profile-safe-right: env(safe-area-inset-right, 0px);
    --profile-safe-left: env(safe-area-inset-left, 0px);
  }

  .profile-fullscreen > .hall-profile-center {
    box-sizing: border-box;
    margin-right: var(--profile-safe-right);
    margin-left: var(--profile-safe-left);
  }
}

/* Statistics and official match history extend the Hall as dense competitive
   ledgers. Gold marks selection and verified change; it is not a card fill. */
.profile-statistics-v3,
.profile-history-v1,
.profile-match-report {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.profile-statistics-toolbar {
  display: flex;
  min-height: 58px;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 14px;
  background: rgba(3, 14, 9, .88);
  border: 1px solid rgba(213, 169, 71, .24);
}

.profile-statistics-toolbar label {
  display: grid;
  min-width: min(360px, 48%);
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 12px;
  align-items: center;
  padding-inline-start: 18px;
}

.profile-statistics-toolbar label > span,
.profile-statistics-toolbar > span small {
  color: #c89b43;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.profile-statistics-toolbar select {
  min-width: 0;
  min-height: 48px;
  padding: 0 40px 0 14px;
  color: #f1dfb4;
  background: #071710;
  border: 0;
  border-inline-start: 1px solid rgba(213, 169, 71, .22);
  border-radius: 0;
  font: 740 13px/1 "KottCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-statistics-toolbar select:focus-visible {
  outline: 2px solid #f0d486;
  outline-offset: -3px;
}

.profile-statistics-toolbar > span {
  display: grid;
  min-width: 220px;
  align-content: center;
  justify-items: end;
  padding: 8px 18px;
  text-align: end;
}

.profile-statistics-toolbar > span b {
  margin-top: 4px;
  color: #d9cfbb;
  font-size: 12px;
  font-weight: 620;
}

.profile-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-rating-card {
  position: relative;
  min-width: 0;
  min-height: 196px;
  padding: 17px 18px 14px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(14, 44, 30, .9), rgba(2, 11, 7, .96)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .009) 5px 6px);
  border: 1px solid rgba(213, 169, 71, .32);
  border-radius: 3px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, .28);
}

.profile-rating-card::after {
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(221, 179, 79, .52), transparent);
}

.profile-rating-card > header,
.profile-rating-card > p {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.profile-rating-card > header > div { display: flex; gap: 12px; align-items: baseline; }
.profile-rating-card > header small { color: #d8a949; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-rating-card > header strong { color: #f3ead8; font-size: clamp(38px, 4vw, 58px); font-weight: 570; line-height: .9; }
.profile-rating-confidence { display: inline-flex; gap: 7px; align-items: center; color: #bcb4a5; font-size: 9px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.profile-rating-confidence i { width: 9px; height: 9px; background: #63c66d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(99, 198, 109, .1); }
.profile-rating-card > p { justify-content: flex-start; margin: 8px 0 0; color: #9f9788; }
.profile-rating-card > p span { color: #d5a84a; font-size: 10px; text-transform: uppercase; }
.profile-rating-card > p b { color: #e8dcc3; font-size: 16px; }
.profile-rating-card > p em { margin-inline-start: auto; color: #8e887c; font-size: 10px; font-style: normal; }

.profile-rating-trend {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  z-index: 1;
  width: calc(100% - 36px);
  height: 82px;
  overflow: visible;
}

.profile-rating-trend path { fill: none; stroke: rgba(219, 179, 84, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.profile-rating-trend polyline { fill: none; stroke: #d9a83f; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .42)); }

.profile-rating-empty {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  min-height: 67px;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  color: #8f897d;
  background: rgba(0, 0, 0, .14);
  border-top: 1px solid rgba(213, 169, 71, .11);
  font-size: 10px;
}

.profile-rating-empty i { width: 34px; height: 1px; flex: 0 0 auto; background: #8a6728; box-shadow: 8px -7px #8a6728, 16px -2px #8a6728, 24px -12px #8a6728; transform: rotate(-8deg); }
.profile-statistics-summary { margin-top: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.profile-statistics-table {
  margin-top: 14px;
  background: rgba(3, 14, 9, .9);
  border: 1px solid rgba(213, 169, 71, .24);
}

.profile-statistics-table > header {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(110px, .34fr) minmax(110px, .34fr);
  gap: 12px;
  align-items: end;
  padding: 10px 17px;
  border-bottom: 1px solid rgba(213, 169, 71, .16);
}

.profile-statistics-table > header small { color: #b98f3b; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.profile-statistics-table > header h3 { margin: 3px 0 0; color: #eadfc7; font-size: 19px; text-transform: uppercase; }
.profile-statistics-table > header > span { color: #c9a351; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: end; text-transform: uppercase; }
.profile-statistics-table > div { display: grid; }
.profile-statistics-table > div > div { display: grid; min-height: 46px; grid-template-columns: minmax(0, 1fr) minmax(110px, .34fr) minmax(110px, .34fr); gap: 12px; align-items: center; padding: 7px 17px; border-bottom: 1px solid rgba(213, 169, 71, .09); }
.profile-statistics-table > div > div:last-child { border-bottom: 0; }
.profile-statistics-table span { color: #979083; font-size: 9px; line-height: 1.2; text-transform: uppercase; }
.profile-statistics-table b { color: #e7dcc5; font-size: 16px; text-align: end; }

.profile-match-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(3, 14, 9, .9);
  border: 1px solid rgba(213, 169, 71, .25);
}

.profile-match-summary .profile-metric { min-height: 70px; }
.profile-metric.is-positive b,
.is-positive { color: #63c66d !important; }
.profile-metric.is-negative b,
.is-negative { color: #d85949 !important; }

.profile-match-ledger {
  min-width: 0;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(2, 12, 8, .92);
  border: 1px solid rgba(213, 169, 71, .23);
}

.profile-match-ledger > header,
.profile-match-row {
  display: grid;
  grid-template-columns: minmax(108px, .82fr) minmax(110px, .9fr) minmax(92px, .72fr) minmax(126px, 1fr) 62px 72px minmax(96px, .78fr) 60px 72px;
  gap: 9px;
  align-items: center;
}

.profile-match-ledger > header {
  min-height: 40px;
  padding: 6px 10px;
  color: #bd9140;
  border-bottom: 1px solid rgba(213, 169, 71, .16);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-match-row {
  min-height: 67px;
  padding: 8px 10px;
  color: #d8cfbd;
  border-bottom: 1px solid rgba(213, 169, 71, .1);
}

.profile-match-row:last-child { border-bottom: 0; }
.profile-match-row:focus-within { box-shadow: inset 3px 0 #d4a63a; }
.profile-match-row time,
.profile-match-mode,
.profile-match-duration { color: #aaa294; font-size: 10px; }
.profile-match-discipline,
.profile-match-opponent { display: flex; min-width: 0; gap: 8px; align-items: center; }
.profile-match-discipline > i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #d5ad55; border: 1px solid rgba(213, 173, 78, .43); border-radius: 50%; }
.profile-match-discipline > i::before { content: "8"; font-size: 11px; font-style: normal; font-weight: 800; }
.profile-match-discipline > i[data-family="snooker"]::before { content: "S"; }
.profile-match-discipline > i[data-family="pyramid"]::before { content: "P"; }
.profile-match-discipline b,
.profile-match-opponent b { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.profile-match-opponent img { width: 32px; height: 32px; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(213, 169, 71, .4); border-radius: 50%; }
.profile-match-score { color: #eee4cf; font-size: 17px; text-align: center; }
.profile-match-score i { color: #c49a43; font-style: normal; }
.profile-match-outcome { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.profile-match-row.is-win .profile-match-outcome { color: #63c66d; }
.profile-match-row.is-loss .profile-match-outcome { color: #d85949; }
.profile-match-rating { display: grid; gap: 3px; justify-items: end; }
.profile-match-rating b { color: #d5cbb7; font-size: 10px; }
.profile-match-rating em { font-size: 10px; font-style: normal; font-weight: 800; }
.profile-match-row > button,
.profile-history-state button,
.profile-report-replay button {
  min-height: 44px;
  padding: 0 10px;
  color: #ebcb75;
  background: rgba(10, 29, 20, .86);
  border: 1px solid rgba(213, 169, 71, .45);
  border-radius: 3px;
  font: 760 9px/1 "KottCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-match-row > button:focus-visible,
.profile-history-state button:focus-visible,
.profile-report-replay button:focus-visible,
.profile-match-report > header > button:focus-visible {
  outline: 2px solid #f0d486;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .profile-match-row:hover { background: linear-gradient(90deg, rgba(32, 73, 52, .24), transparent); }
  .profile-match-row > button:hover,
  .profile-history-state button:hover { color: #fff0bd; border-color: rgba(238, 200, 107, .72); }
}

.profile-history-state {
  display: grid;
  min-height: 210px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 28px;
  color: #978f81;
  text-align: center;
  background: rgba(3, 14, 9, .84);
  border: 1px solid rgba(213, 169, 71, .18);
}

.profile-history-state strong { color: #e4d9c1; font-size: 18px; text-transform: uppercase; }
.profile-history-state i { width: 34px; height: 34px; border: 2px solid rgba(213, 169, 71, .2); border-top-color: #d4a63a; border-radius: 50%; animation: profile-history-turn .8s linear infinite; }
.profile-history-refresh { display: flex; min-height: 28px; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; color: #aaa294; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.profile-history-refresh i { width: 14px; height: 14px; border: 1px solid rgba(213, 169, 71, .24); border-top-color: #d4a63a; border-radius: 50%; animation: profile-history-turn .8s linear infinite; }
.profile-history-more { display: block; min-width: 156px; min-height: 44px; margin: 12px auto 0; padding: 0 18px; color: #ebcb75; background: rgba(10, 29, 20, .9); border: 1px solid rgba(213, 169, 71, .48); border-radius: 3px; font: 760 9px/1 "KottCondensed", "Arial Narrow", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.profile-history-more:focus-visible { outline: 2px solid #f0d486; outline-offset: 2px; }
.profile-history-more:disabled { cursor: wait; opacity: .58; }
@keyframes profile-history-turn { to { transform: rotate(360deg); } }

.hall-invite-option {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr minmax(118px, .8fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #d9cda9;
  font-size: 11px;
  background: rgba(6, 38, 25, .58);
  border: 1px solid rgba(212, 166, 58, .32);
  border-radius: 6px;
}

.hall-invite-option select {
  min-width: 0;
  min-height: 32px;
  padding: 0 28px 0 9px;
  color: #f5dda0;
  background: #111713;
  border: 1px solid rgba(224, 184, 78, .58);
  border-radius: 5px;
}

.hall-invite-option select:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.profile-match-report > header {
  display: flex;
  min-height: 62px;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid rgba(213, 169, 71, .2);
}

.profile-match-report > header > button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  color: #d9b65d;
  background: rgba(4, 17, 11, .84);
  border: 1px solid rgba(213, 169, 71, .35);
  border-radius: 3px;
  font-size: 21px;
}

.profile-match-report > header small { color: #a69e8e; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.profile-match-report > header h3 { margin: 3px 0 0; color: #eee2c8; font-size: clamp(24px, 2.5vw, 36px); line-height: 1; text-transform: uppercase; }

.profile-report-scoreboard {
  display: grid;
  min-height: 136px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 13px;
  padding: 18px 22px;
  background: linear-gradient(90deg, rgba(11, 39, 27, .9), rgba(2, 11, 7, .94), rgba(11, 39, 27, .9));
  border: 1px solid rgba(213, 169, 71, .28);
}

.profile-report-player { display: flex; min-width: 0; gap: 13px; align-items: center; }
.profile-report-player.is-opponent { flex-direction: row-reverse; text-align: end; }
.profile-report-player img { width: 70px; height: 70px; flex: 0 0 auto; object-fit: cover; border: 2px solid #a97726; border-radius: 50%; box-shadow: 0 10px 22px rgba(0, 0, 0, .4); }
.profile-report-player > span { display: grid; min-width: 0; gap: 4px; }
.profile-report-player strong { overflow: hidden; color: #efe5ce; font-size: clamp(18px, 2vw, 28px); text-overflow: ellipsis; white-space: nowrap; }
.profile-report-player small { color: #aba393; font-size: 10px; }
.profile-report-result { display: grid; justify-items: center; }
.profile-report-result > strong { color: #f2e5c9; font-size: clamp(34px, 4vw, 54px); font-weight: 560; line-height: 1; }
.profile-report-result > strong i { color: #d4a63a; font-style: normal; }
.profile-report-result > b { margin-top: 5px; font-size: 16px; text-transform: uppercase; }
.profile-report-result > b.is-win { color: #63c66d; }
.profile-report-result > b.is-loss { color: #d85949; }
.profile-report-result > small { margin-top: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.profile-report-result > em { margin-top: 3px; color: #a79f90; font-size: 10px; font-style: normal; }

.profile-report-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: 13px; margin-top: 13px; }
.profile-report-replay,
.profile-report-comparison { min-width: 0; background: rgba(2, 13, 8, .92); border: 1px solid rgba(213, 169, 71, .24); }
.profile-report-replay { display: grid; min-height: 206px; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 12px 18px; align-items: center; padding: 18px; }
.profile-report-table-mark { position: relative; display: block; grid-row: 1 / 3; width: 142px; aspect-ratio: 1.8; background: linear-gradient(150deg, #0e5a34, #052416); border: 6px solid #3b1b0c; box-shadow: inset 0 0 0 2px #9d6c29, 0 15px 24px rgba(0, 0, 0, .36); transform: perspective(180px) rotateX(24deg); }
.profile-report-table-mark::before,
.profile-report-table-mark::after { position: absolute; width: 10px; height: 10px; content: ""; background: #010302; border-radius: 50%; }
.profile-report-table-mark::before { inset: -4px auto auto -4px; box-shadow: 67px 0 #010302, 134px 0 #010302, 0 69px #010302, 67px 69px #010302, 134px 69px #010302; }
.profile-report-replay > div { display: grid; gap: 6px; }
.profile-report-replay > div strong { color: #e7dcc5; font-size: 19px; text-transform: uppercase; }
.profile-report-replay > div span { color: #9e9686; font-size: 10px; }
.profile-report-replay button { align-self: end; color: #171006; background: linear-gradient(180deg, #f0d783, #b98227); border-color: #f2d984; }
.profile-report-replay button:disabled { color: #7f786b; background: #09130e; border-color: rgba(160, 150, 130, .2); }
.profile-report-comparison > header { min-height: 48px; padding: 12px 15px; border-bottom: 1px solid rgba(213, 169, 71, .15); }
.profile-report-comparison h4 { margin: 0; color: #d5a94e; font-size: 13px; text-transform: uppercase; }
.profile-report-comparison > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; min-height: 29px; align-items: center; padding: 3px 12px; border-bottom: 1px solid rgba(213, 169, 71, .08); text-align: center; }
.profile-report-comparison > div b { color: #e8ddc6; }
.profile-report-comparison > div span { color: #8f887c; font-size: 9px; text-transform: uppercase; }
.profile-report-comparison > p { margin: 0; padding: 24px 16px; color: #938c7f; font-size: 11px; line-height: 1.4; }
.profile-match-report > footer { display: flex; min-height: 52px; align-items: center; justify-content: space-between; margin-top: 13px; padding: 8px 13px; background: rgba(2, 12, 8, .78); border: 1px solid rgba(213, 169, 71, .16); }
.profile-integrity-status { display: inline-flex; gap: 9px; align-items: center; color: #b0a899; font-size: 10px; font-weight: 760; text-transform: uppercase; }
.profile-integrity-status i { width: 17px; height: 20px; border: 1px solid currentColor; clip-path: polygon(50% 0, 100% 19%, 92% 72%, 50% 100%, 8% 72%, 0 19%); }
.profile-match-report > footer small { color: #8c8579; font-size: 9px; text-transform: uppercase; }

.match-replay-navigator {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 23;
  display: grid;
  width: min(720px, calc(100% - 210px));
  gap: 7px;
  padding: 8px 10px;
  color: #e9dfcb;
  background: linear-gradient(180deg, rgba(7, 22, 15, .95), rgba(2, 9, 6, .97));
  border: 1px solid rgba(213, 169, 71, .43);
  border-radius: 4px;
  box-shadow: 0 15px 36px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.match-replay-navigator__head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.match-replay-navigator__head > span { display: grid; }
.match-replay-navigator__head small { color: #bd9340; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.match-replay-navigator__head strong { margin-top: 2px; font-size: 13px; text-transform: uppercase; }
.match-replay-navigator button { min-width: 38px; min-height: 38px; color: #d9cba9; background: rgba(12, 33, 23, .82); border: 1px solid rgba(213, 169, 71, .28); border-radius: 3px; }
.match-replay-navigator button:focus-visible { outline: 2px solid #f0d486; outline-offset: 2px; }
.match-replay-navigator__head > button { padding-inline: 13px; color: #1a1106; background: linear-gradient(180deg, #efd37d, #b77c24); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.match-replay-navigator__head > button.is-playing { color: #e6d5aa; background: #183b2a; }
.match-replay-navigator__rail { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 7px; align-items: center; }
.match-replay-navigator__rail > div { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.match-replay-navigator__rail > div::-webkit-scrollbar { display: none; }
.match-replay-navigator__rail > div button { min-width: 34px; min-height: 30px; scroll-snap-align: center; font-size: 9px; }
.match-replay-navigator__rail > div button.is-active { color: #171006; background: #d4a63a; border-color: #f0d17a; }
.match-replay-navigator button:disabled { opacity: .38; }

[dir="rtl"] .profile-statistics-toolbar > span,
[dir="rtl"] .profile-report-player.is-opponent { text-align: start; }
[dir="rtl"] .profile-report-player.is-opponent { flex-direction: row; }
[dir="rtl"] .profile-report-player.is-self { flex-direction: row-reverse; text-align: end; }

@media (max-width: 1180px) {
  .profile-match-ledger > header,
  .profile-match-row { grid-template-columns: minmax(100px, .78fr) minmax(104px, .88fr) minmax(112px, 1fr) 58px 68px minmax(88px, .72fr) 68px; }
  .profile-match-ledger > header > span:nth-child(3),
  .profile-match-row > .profile-match-mode,
  .profile-match-ledger > header > span:nth-child(8),
  .profile-match-row > .profile-match-duration { display: none; }
  .profile-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .profile-statistics-toolbar { display: grid; gap: 0; }
  .profile-statistics-toolbar label { min-width: 0; grid-template-columns: 88px minmax(0, 1fr); padding-inline-start: 12px; }
  .profile-statistics-toolbar > span { display: none; }
  .profile-rating-grid { grid-template-columns: 1fr; }
  .profile-rating-card { min-height: 184px; }
  .profile-statistics-summary,
  .profile-match-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-statistics-table > header,
  .profile-statistics-table > div > div { grid-template-columns: minmax(0, 1fr) minmax(76px, .4fr) minmax(76px, .4fr); gap: 7px; padding-inline: 10px; }
  .profile-statistics-table > header h3 { font-size: 15px; }
  .profile-statistics-table > header > span { font-size: 7px; }
  .profile-match-ledger { overflow: visible; background: transparent; border: 0; }
  .profile-match-ledger > header { display: none; }
  .profile-match-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "opponent score result"
      "discipline rating rating"
      "date mode action";
    gap: 9px 12px;
    min-height: 142px;
    margin-bottom: 9px;
    padding: 13px;
    background: rgba(2, 13, 8, .94);
    border: 1px solid rgba(213, 169, 71, .22);
  }
  .profile-match-row time { display: block; grid-area: date; }
  .profile-match-discipline { grid-area: discipline; }
  .profile-match-row > .profile-match-mode { display: block; grid-area: mode; }
  .profile-match-opponent { grid-area: opponent; }
  .profile-match-score { grid-area: score; }
  .profile-match-outcome { grid-area: result; }
  .profile-match-rating { grid-area: rating; grid-auto-flow: column; justify-content: end; align-items: center; }
  .profile-match-duration { display: none; }
  .profile-match-row > button { grid-area: action; min-width: 86px; }
  .profile-report-scoreboard { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .profile-report-player,
  .profile-report-player.is-opponent { justify-content: center; }
  .profile-report-result { grid-row: 2; }
  .profile-report-replay { grid-template-columns: 92px minmax(0, 1fr); padding: 13px; }
  .profile-report-table-mark { width: 86px; }
  .profile-match-report > footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .match-replay-navigator { width: calc(100% - 24px); }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1180px) {
  .profile-statistics-toolbar { min-height: 44px; margin-bottom: 7px; }
  .profile-statistics-toolbar select { min-height: 42px; }
  .profile-rating-grid { gap: 7px; }
  .profile-rating-card { min-height: 120px; padding: 10px 12px; }
  .profile-rating-card > header strong { font-size: 34px; }
  .profile-rating-card > p { margin-top: 4px; }
  .profile-rating-trend { right: 12px; bottom: 8px; left: 12px; width: calc(100% - 24px); height: 48px; }
  .profile-rating-empty { right: 12px; bottom: 8px; left: 12px; min-height: 38px; padding-block: 5px; }
  .profile-statistics-summary { margin-top: 7px; }
  .profile-statistics-table,
  .profile-discipline-ledger { margin-top: 7px; }
  .profile-statistics-table > header { min-height: 38px; padding-block: 5px; }
  .profile-statistics-table > header small { display: none; }
  .profile-statistics-table > header h3 { margin: 0; font-size: 13px; }
  .profile-statistics-table > div > div { min-height: 44px; padding-block: 5px; }
  .profile-match-summary .profile-metric { min-height: 46px; }
  .profile-match-ledger { margin-top: 7px; }
  .profile-match-row { min-height: 48px; padding-block: 4px; }
  .profile-match-opponent img { width: 28px; height: 28px; }
  .profile-match-report > header { min-height: 48px; }
  .profile-match-report > header > button { width: 42px; height: 42px; }
  .profile-report-scoreboard { min-height: 84px; margin-top: 7px; padding: 7px 14px; }
  .profile-report-player img { width: 48px; height: 48px; }
  .profile-report-grid { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 7px; margin-top: 7px; }
  .profile-report-replay { min-height: 142px; grid-template-columns: 105px minmax(0, 1fr); padding: 10px; }
  .profile-report-table-mark { width: 98px; }
  .profile-match-report > footer { min-height: 42px; margin-top: 7px; }
  .match-replay-navigator { top: max(5px, env(safe-area-inset-top)); width: min(540px, calc(100% - 250px)); gap: 3px; padding: 4px 6px; }
  .match-replay-navigator__head small { display: none; }
  .match-replay-navigator__head strong { font-size: 10px; }
  .match-replay-navigator__head > button { min-height: 30px; }
  .match-replay-navigator__rail { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; }
  .match-replay-navigator button { min-width: 32px; min-height: 30px; }
  .match-replay-navigator__rail > div button { min-width: 30px; min-height: 26px; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 780px) {
  .profile-match-row {
    min-height: 118px;
    gap: 5px 10px;
    padding: 8px 10px;
  }
  .profile-match-row > button { min-height: 38px; }
  .profile-match-opponent img { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-history-state i,
  .profile-history-refresh i { animation: none; }
  .match-replay-navigator *,
  .profile-match-row { scroll-behavior: auto !important; transition: none !important; }
}

/* Render-fidelity v2 -------------------------------------------------------
   The approved statistics concepts live inside the shared Hall shell. These
   rules intentionally supersede the retired full-screen profile cabinet. */
body[data-view="lobby"] .hall-app > [data-hall-app-root].is-profile-page {
  display: grid;
  height: 100dvh;
  min-height: 0;
}

.is-profile-page .hall-content {
  background:
    linear-gradient(90deg, rgba(1, 9, 6, .68), rgba(2, 12, 8, .36) 42%, rgba(1, 8, 6, .58)),
    linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .3)),
    var(--hall-club-background) center 56% / cover no-repeat,
    #030906;
}

.hall-profile-context-nav { display: none; }

.profile-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  color: #e9dfca;
  background: transparent;
  isolation: auto;
}

.profile-fullscreen::before,
.profile-fullscreen__bar { display: none; }

.profile-fullscreen > .hall-profile-center {
  position: absolute;
  inset: 0;
  display: grid;
  height: auto;
  grid-template-columns: clamp(236px, 18vw, 286px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.profile-fullscreen .profile-identity-card {
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-content: start;
  justify-items: center;
  padding: 18px 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 20, 14, .92), rgba(1, 13, 9, .97)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .012) 5px 6px);
  border: 0;
  border-inline-end: 1px solid rgba(215, 172, 72, .36);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(.8);
}

.profile-fullscreen .profile-identity-card__avatar {
  width: clamp(104px, 9.1vw, 138px);
  padding: 4px;
  background: linear-gradient(145deg, #f2d67d, #8a5b1c 62%, #e2bd61);
  border: 1px solid #e0bd63;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .44), 0 0 0 7px rgba(214, 170, 68, .055);
}

.profile-fullscreen .profile-identity-card__avatar::before {
  inset: 8px;
  border-radius: 50%;
}

.profile-fullscreen .profile-identity-card__avatar img,
.profile-fullscreen .profile-avatar-open { border-radius: 50%; }
.profile-fullscreen .profile-avatar-edit { width: 40px; height: 40px; top: 5px; right: -7px; border-radius: 50%; }
.profile-fullscreen .profile-identity-card__avatar > i { width: 34px; height: 34px; right: -5px; bottom: -6px; }

.profile-fullscreen .profile-identity-card__name {
  margin-top: 17px;
  text-align: center;
}

.profile-fullscreen .profile-identity-card__name small { display: none; }
.profile-fullscreen .profile-identity-card__name h1 { margin: 0 0 5px; font-size: clamp(25px, 2.2vw, 35px); }
.profile-fullscreen .profile-identity-card__name p { color: #d6ae51; font-size: 13px; }

.profile-fullscreen .profile-level-track {
  width: 100%;
  margin-top: 13px;
  padding: 9px 5px 12px;
  border-bottom: 1px solid rgba(213, 171, 76, .14);
}

.profile-rank-card {
  display: grid;
  width: 100%;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 5px 14px;
  border-bottom: 1px solid rgba(213, 171, 76, .14);
}

.profile-rank-card > .profile-rating-crest { width: 46px; height: 53px; }
.profile-rank-card > span:last-child { display: grid; gap: 3px; min-width: 0; }
.profile-rank-card strong { color: #e3bb5c; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.profile-rank-card small { color: #979083; font-size: 10px; text-transform: uppercase; }

.profile-fullscreen[data-profile-tab="statistics"] .profile-identity-details,
.profile-fullscreen[data-profile-tab="history"] .profile-identity-details,
.profile-fullscreen[data-profile-tab="replays"] .profile-identity-details,
.profile-fullscreen[data-profile-tab="achievements"] .profile-identity-details,
.profile-fullscreen[data-profile-tab="trophies"] .profile-identity-details { display: none !important; }

.profile-fullscreen .profile-workspace { display: contents; }

.profile-fullscreen .profile-workspace__head {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 96px;
  grid-column: 2;
  grid-row: 1;
  gap: 24px;
  align-items: center;
  padding: 15px clamp(22px, 3vw, 46px) 12px;
  background: linear-gradient(90deg, rgba(3, 14, 9, .52), rgba(3, 14, 9, .22) 72%, transparent);
  border-bottom: 0;
}

.profile-fullscreen .profile-workspace__head::after {
  right: clamp(22px, 3vw, 46px);
  bottom: 0;
  left: clamp(22px, 3vw, 46px);
  background: linear-gradient(90deg, #bd8730, rgba(191, 135, 47, .16), transparent);
}

.profile-fullscreen .profile-workspace__head > div:first-child { flex: 1 1 auto; }
.profile-fullscreen .profile-workspace__head > div:first-child > small,
.profile-fullscreen .profile-workspace__head p { display: none; }
.profile-fullscreen .profile-workspace__head h2 {
  margin: 0;
  color: #f1e5cc;
  font-size: clamp(38px, 3.4vw, 55px);
  font-weight: 560;
  line-height: .92;
  text-transform: uppercase;
  text-shadow: 0 3px 14px #000;
}

.profile-workspace-controls {
  display: grid;
  min-width: min(590px, 56%);
  grid-template-columns: minmax(210px, 1fr) minmax(150px, .62fr);
  gap: 12px;
}

.profile-workspace-controls label,
.profile-workspace-controls > span,
.profile-workspace-metric {
  display: grid;
  min-width: 0;
  min-height: 52px;
  align-content: center;
  padding: 7px 15px;
  color: #ead8aa;
  background: rgba(3, 16, 11, .88);
  border: 1px solid rgba(213, 169, 71, .43);
  border-radius: 3px;
}

.profile-workspace-controls label { grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; }
.profile-workspace-controls :is(label > span, small) { color: #b89042; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-workspace-controls select {
  min-width: 0;
  min-height: 38px;
  padding: 0 28px 0 10px;
  color: #efd795;
  background: #06130e;
  border: 0;
  font: 760 15px/1 var(--font-ui);
  text-transform: uppercase;
}
.profile-workspace-controls > span { gap: 4px; }
.profile-workspace-controls > span b { color: #efd795; font-size: 15px; text-transform: uppercase; }

.profile-fullscreen .hall-profile-tabs,
.profile-fullscreen .profile-appearance-bar {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-content: end;
  padding: 305px 0 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.profile-fullscreen .hall-profile-tabs button {
  position: relative;
  display: grid;
  min-height: 50px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  justify-content: initial;
  padding: 7px 22px;
  color: #918d83;
  background: rgba(2, 12, 8, .12);
  border: 0;
  border-top: 1px solid rgba(213, 169, 71, .11);
  border-radius: 0;
  font-size: clamp(12px, 1vw, 16px);
  text-align: start;
}

.profile-fullscreen .hall-profile-tabs button:last-child { border-bottom: 1px solid rgba(213, 169, 71, .11); }
.profile-fullscreen .hall-profile-tabs button svg { width: 27px; height: 27px; }
.profile-fullscreen .hall-profile-tabs button.is-active {
  color: #efc568;
  background: linear-gradient(90deg, rgba(129, 83, 15, .45), rgba(36, 55, 35, .28));
  box-shadow: inset 0 0 0 1px rgba(225, 177, 68, .7), 0 0 18px rgba(203, 146, 37, .16);
}
.profile-fullscreen .hall-profile-tabs button.is-active::after { position: absolute; right: 12px; content: "›"; font-size: 23px; }

.profile-fullscreen .profile-tab-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
  grid-row: 2;
  padding: 8px clamp(22px, 3vw, 46px) 14px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(1, 8, 5, .14), rgba(1, 8, 5, .42));
  scrollbar-color: rgba(215, 172, 72, .35) transparent;
}

.profile-rating-grid { gap: 14px; }
.profile-rating-card {
  min-height: clamp(214px, 26vh, 258px);
  padding: 14px 18px;
  background: linear-gradient(130deg, rgba(5, 24, 16, .84), rgba(1, 11, 7, .89));
  border-color: rgba(213, 169, 71, .54);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 237, 180, .03);
}

.profile-rating-card > header { align-items: flex-start; }
.profile-rating-card > header > div { display: grid; gap: 4px; }
.profile-rating-card > header > div > small { display: flex; gap: 8px; align-items: center; font-size: clamp(14px, 1.15vw, 18px); }
.profile-rating-card > header > div > small > i { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 700 10px/1 Georgia, serif; text-transform: none; }
.profile-rating-card > header > div > span { display: flex; gap: 13px; align-items: center; }
.profile-rating-card > header strong { font-size: clamp(39px, 3.6vw, 59px); }
.profile-rating-confidence { font-size: 10px; font-style: normal; }
.profile-rating-card > p { margin-top: 2px; }
.profile-rating-card > p span { font-size: 12px; }
.profile-rating-card > p b { font-size: 19px; }

.profile-rating-crest {
  display: grid;
  width: clamp(54px, 5vw, 74px);
  height: clamp(62px, 5.8vw, 85px);
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .48));
}
.profile-rating-crest svg { width: 100%; height: 100%; overflow: visible; }
.profile-rating-crest svg path:first-child { fill: #241a62; stroke: #d8ad48; stroke-width: 4; }
.profile-rating-crest svg path:last-child { fill: none; stroke: #f0c75f; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }

.profile-rating-chart {
  position: absolute;
  right: 17px;
  bottom: 12px;
  left: 17px;
  display: grid;
  height: 112px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 20px;
}
.profile-rating-axis { display: flex; grid-row: 1; flex-direction: column; justify-content: space-between; padding: 3px 7px 4px 0; }
.profile-rating-axis i,
.profile-rating-dates i { color: #9d895d; font-size: 9px; font-style: normal; text-transform: uppercase; }
.profile-rating-trend { position: static; width: 100%; height: 100%; grid-column: 2; grid-row: 1; overflow: visible; }
.profile-rating-trend .profile-rating-gridline { fill: none; stroke: rgba(223, 190, 113, .15); stroke-width: 1; vector-effect: non-scaling-stroke; }
.profile-rating-trend polyline { stroke-width: 2.2; }
.profile-rating-trend circle { fill: #08150e; stroke: #ebb947; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.profile-rating-dates { display: flex; grid-column: 2; grid-row: 2; align-items: end; justify-content: space-between; }

.profile-statistics-summary {
  grid-template-columns: repeat(4, minmax(100px, .72fr)) minmax(220px, 1.3fr);
  margin-top: 12px;
  border-color: rgba(213, 169, 71, .48);
}
.profile-statistics-summary .profile-metric { min-height: 68px; }
.profile-statistics-summary .profile-metric b { font-size: clamp(21px, 2vw, 31px); }
.profile-recent-results { display: grid; min-width: 0; align-content: center; justify-items: center; padding: 8px 14px; }
.profile-recent-results small { color: #d1a84f; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.profile-recent-results > b { display: flex; gap: 9px; margin-top: 7px; }
.profile-recent-results > b > i { display: grid; width: 26px; height: 26px; place-items: center; color: #d9d2c2; border: 1px solid #857b69; border-radius: 50%; font-size: 11px; font-style: normal; }
.profile-recent-results > b > i.is-win { color: #87df7e; border-color: #369443; }
.profile-recent-results > b > i.is-loss { color: #ff877d; border-color: #c83d31; }

.profile-statistics-table { margin-top: 6px; border-color: rgba(213, 169, 71, .45); }
.profile-statistics-table > header { min-height: 46px; }
.profile-statistics-table > div > div { min-height: 36px; }
.profile-statistics-table span { font-size: 11px; }
.profile-statistics-table b { font-size: 16px; }

.profile-history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.profile-history-filters > span {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 8px 13px;
  color: #e5c875;
  background: rgba(3, 16, 11, .88);
  border: 1px solid rgba(213, 169, 71, .4);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.profile-history-filters > label {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: #e5c875;
  background: rgba(3, 16, 11, .88);
  border: 1px solid rgba(213, 169, 71, .4);
}
.profile-history-filters > label small { color: #a8823f; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-history-filters > label select { width: 100%; min-width: 0; min-height: 34px; padding: 0 24px 0 7px; color: #e5c875; background: #06130e; border: 0; font: 760 10px/1 var(--font-ui); text-transform: uppercase; }

.profile-history-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(252px, 286px); gap: 12px; }
.profile-history-layout > div { min-width: 0; }
.profile-match-summary .profile-metric { min-height: 62px; }
.profile-match-ledger { margin-top: 10px; }
.profile-match-ledger > header,
.profile-match-row { grid-template-columns: minmax(92px, .76fr) minmax(95px, .84fr) minmax(96px, .76fr) minmax(112px, 1fr) 52px 66px minmax(88px, .78fr) 52px 66px; }
.profile-match-ledger > header { font-size: 9px; }
.profile-match-row { min-height: 63px; }
.profile-match-row { width: 100%; font-family: var(--font-ui); text-align: start; background: rgba(2, 12, 8, .92); border: 0; border-bottom: 1px solid rgba(213, 169, 71, .1); border-radius: 0; }
.profile-match-row:focus-visible { outline: 2px solid #f0d486; outline-offset: -3px; }
.profile-match-open { color: #d7aa4d; font-size: 24px; text-align: center; }
.profile-match-row.is-selected { background: linear-gradient(90deg, rgba(55, 102, 76, .34), rgba(6, 22, 15, .7)); box-shadow: inset 0 0 0 1px #d7a738, 0 0 15px rgba(210, 159, 49, .14); }

.profile-history-inspector {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 18px;
  color: #d9cfbd;
  background: rgba(2, 13, 9, .92);
  border: 1px solid rgba(213, 169, 71, .38);
}
.profile-history-inspector > header { display: grid; gap: 8px; padding-bottom: 17px; border-bottom: 1px solid rgba(213, 169, 71, .2); }
.profile-history-inspector > header small { color: #d2a84d; font-size: 12px; text-transform: uppercase; }
.profile-history-inspector > header strong { font-size: 22px; }
.profile-history-inspector > header strong i { color: #d2a84d; font-style: normal; }
.profile-history-inspector > header b { font-size: 18px; }
.profile-history-inspector__replay,
.profile-history-inspector__integrity { display: flex; gap: 12px; align-items: center; padding: 18px 2px; border-bottom: 1px solid rgba(213, 169, 71, .13); }
.profile-history-inspector__replay > i { width: 42px; height: 42px; flex: 0 0 auto; border: 2px solid #d3a64b; border-radius: 50%; }
.profile-history-inspector__replay > i::after { display: block; margin: 10px 0 0 15px; content: ""; border-block: 8px solid transparent; border-inline-start: 12px solid #d3a64b; }
.profile-history-inspector__replay > span { display: grid; gap: 3px; }
.profile-history-inspector__replay small { color: #d1a84e; font-size: 10px; text-transform: uppercase; }
.profile-history-inspector__replay strong { color: #72ce6c; font-size: 13px; }
.profile-history-inspector__integrity > i { width: 34px; height: 40px; flex: 0 0 auto; border: 2px solid #62bf64; clip-path: polygon(50% 0,100% 18%,92% 72%,50% 100%,8% 72%,0 18%); }
.profile-history-inspector__integrity span { color: #79ce72; font-size: 11px; text-transform: uppercase; }
.profile-history-inspector > button { min-height: 48px; margin-top: 12px; color: #171006; background: linear-gradient(180deg, #f0d783, #b98227); border: 1px solid #f2d984; font: 800 11px/1 var(--font-ui); text-transform: uppercase; }
.profile-history-inspector > button + button { color: #edcd76; background: #07150f; border-color: rgba(213, 169, 71, .54); }
.profile-history-inspector > button:disabled { opacity: .45; }

.profile-fullscreen[data-profile-report="true"] .profile-workspace__head { display: none; }
.profile-fullscreen[data-profile-report="true"] .profile-tab-panel { grid-row: 1 / 3; padding-top: 12px; }
.profile-match-report > header { justify-content: center; text-align: center; }
.profile-match-report > header > button { position: absolute; left: clamp(22px, 3vw, 46px); }
.profile-report-scoreboard { min-height: 128px; margin-top: 7px; }
.profile-report-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 12px; margin-top: 10px; }
.profile-report-replay { min-height: 280px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; gap: 9px 14px; padding: 0 0 10px; overflow: hidden; }
.profile-report-scene {
  position: relative;
  display: block;
  min-height: 220px;
  grid-column: 1 / 3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .18)),
    url("./assets/hall_play/rooms/10_championship_hall.webp") center 62% / cover no-repeat;
  border-bottom: 1px solid rgba(213, 169, 71, .34);
}
.profile-report-shot-rail { position: absolute; right: 12px; bottom: 10px; left: 12px; display: flex; justify-content: space-between; align-items: center; height: 26px; padding-inline: 8px; background: rgba(1, 8, 5, .74); border: 1px solid rgba(213, 169, 71, .26); }
.profile-report-shot-rail::before { position: absolute; right: 10px; left: 10px; height: 1px; content: ""; background: #bd8a2e; }
.profile-report-shot-rail i { position: relative; z-index: 1; width: 7px; height: 7px; background: #c89432; border: 1px solid #f1c45b; border-radius: 50%; }
.profile-report-shot-rail i.is-active { width: 14px; height: 14px; background: #b72922; border-color: #ffc765; box-shadow: 0 0 0 3px rgba(0, 0, 0, .75); }
.profile-report-replay-copy { display: grid; align-content: center; gap: 3px; padding-inline-start: 14px; }
.profile-report-replay-copy strong { color: #e7dcc5; font-size: 15px; text-transform: uppercase; }
.profile-report-replay-copy span { color: #9e9686; font-size: 10px; }
.profile-report-replay > button { min-width: 180px; margin-inline-end: 12px; }

@media (max-width: 1360px) and (min-width: 781px) {
  .profile-fullscreen > .hall-profile-center { grid-template-columns: 220px minmax(0, 1fr); }
  .profile-fullscreen .profile-identity-card { padding-inline: 15px; }
  .profile-fullscreen .hall-profile-tabs { padding-top: 276px; }
  .profile-fullscreen .hall-profile-tabs button { min-height: 47px; padding-inline: 15px; font-size: 11px; }
  .profile-workspace-controls { min-width: 48%; }
  .profile-statistics-summary { grid-template-columns: repeat(4, minmax(84px, 1fr)); }
  .profile-recent-results { grid-column: 1 / -1; min-height: 48px; grid-template-columns: auto auto; gap: 16px; }
  .profile-recent-results > b { margin: 0; }
  .profile-history-layout { grid-template-columns: 1fr; }
  .profile-history-inspector { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 15px; }
  .profile-history-inspector > header { grid-column: 1; }
  .profile-history-inspector__replay { grid-column: 2; }
  .profile-history-inspector__integrity { grid-column: 1 / 3; }
}

@media (max-width: 780px) and (orientation: portrait) {
  .is-profile-page .hall-global-nav { display: none; }
  .is-profile-page .hall-profile-context-nav { display: grid; }
  .profile-fullscreen > .hall-profile-center {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(1, 10, 7, .58), rgba(1, 8, 5, .78));
  }
  .profile-fullscreen .profile-identity-card { display: none; }
  .profile-fullscreen .profile-workspace { display: contents; }
  .profile-fullscreen .profile-workspace__head {
    display: contents;
  }
  .profile-fullscreen .profile-workspace__head > div:first-child { min-height: 104px; grid-column: 1; grid-row: 1; padding: 20px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left)); text-align: center; background: rgba(1, 10, 7, .42); }
  .profile-fullscreen .profile-workspace__head h2 { font-size: clamp(42px, 11vw, 58px); }
  .profile-workspace-controls { min-width: 0; grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .profile-workspace-controls label { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 7px 10px; }
  .profile-workspace-controls label > span { display: none; }
  .profile-workspace-controls select { width: 100%; min-height: 43px; font-size: 13px; }
  .profile-workspace-controls > span { min-height: 58px; padding-inline: 12px; }
  .profile-fullscreen .hall-profile-tabs {
    display: grid;
    min-height: 65px;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    overflow: visible;
    background: rgba(2, 12, 8, .88);
  }
  .profile-fullscreen .hall-profile-tabs button { min-height: 64px; grid-template-columns: 25px minmax(0, auto); gap: 7px; justify-content: center; padding: 5px 7px; border: 1px solid rgba(213, 169, 71, .25); font-size: 10px; text-align: center; }
  .profile-fullscreen .hall-profile-tabs button[data-profile-tab="achievements"],
  .profile-fullscreen .hall-profile-tabs button[data-profile-tab="trophies"] { display: none; }
  .profile-fullscreen .hall-profile-tabs button.is-active::after { display: none; }
  .profile-fullscreen .hall-profile-tabs button svg { width: 23px; height: 23px; }
  .profile-fullscreen .profile-tab-panel {
    grid-column: 1;
    grid-row: 4;
    padding: 14px max(18px, env(safe-area-inset-right)) 20px max(18px, env(safe-area-inset-left));
    overflow-y: auto;
  }
  .profile-rating-grid { grid-template-columns: 1fr; gap: 10px; }
  .profile-rating-card { min-height: 292px; padding: 18px; }
  .profile-rating-card > header strong { font-size: 52px; }
  .profile-rating-chart { height: 148px; bottom: 12px; }
  .profile-statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-statistics-summary .profile-metric { min-height: 70px; }
  .profile-recent-results { grid-column: 1 / -1; min-height: 72px; grid-template-columns: auto auto; gap: 14px; }
  .profile-recent-results > b { margin-top: 0; }
  .profile-statistics-table > header,
  .profile-statistics-table > div > div { grid-template-columns: minmax(0, 1fr) minmax(72px, .38fr) minmax(72px, .38fr); }
  .profile-statistics-table > header h3 { font-size: 17px; }
  .profile-statistics-table span { font-size: 10px; }
  .profile-history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-history-filters > label { grid-template-columns: 1fr; gap: 2px; }
  .profile-match-open { grid-area: action; }
  .profile-history-layout { grid-template-columns: 1fr; }
  .profile-history-inspector { margin-top: 10px; }
  .profile-fullscreen[data-profile-report="true"] .profile-workspace__head { display: none; }
  .profile-fullscreen[data-profile-report="true"] .hall-profile-tabs { grid-row: 1; }
  .profile-fullscreen[data-profile-report="true"] .profile-tab-panel { grid-row: 2 / 5; }
  .profile-report-grid { grid-template-columns: 1fr; }
  .profile-report-replay { grid-template-columns: 1fr; }
  .profile-report-scene { grid-column: 1; min-height: 230px; }
  .profile-report-replay > button { min-width: 0; margin: 0 12px; }
}

@media (max-width: 430px) and (orientation: portrait) {
  .profile-fullscreen .profile-workspace__head > div:first-child { min-height: 91px; padding-top: 14px; }
  .profile-fullscreen .profile-workspace__head h2 { font-size: 40px; }
  .profile-fullscreen .hall-profile-tabs { min-height: 60px; padding-inline: 8px; }
  .profile-fullscreen .hall-profile-tabs button { min-height: 58px; grid-template-columns: 1fr; gap: 2px; font-size: 8px; }
  .profile-fullscreen .hall-profile-tabs button svg { justify-self: center; }
  .profile-fullscreen .profile-tab-panel { padding-inline: 10px; }
  .profile-rating-card { min-height: 258px; }
  .profile-rating-chart { height: 125px; }
  .profile-rating-crest { width: 52px; height: 61px; }
  .profile-rating-card > header strong { font-size: 46px; }
  .profile-statistics-table > header,
  .profile-statistics-table > div > div { grid-template-columns: minmax(0, 1fr) 66px 66px; padding-inline: 8px; }
  .profile-statistics-table b { font-size: 14px; }
  .profile-match-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (max-height: 820px) and (max-width: 1400px) {
  .profile-fullscreen > .hall-profile-center { grid-template-columns: 184px minmax(0, 1fr); }
  .profile-fullscreen .profile-identity-card { padding: 8px 12px; overflow-y: auto; }
  .profile-fullscreen .profile-identity-card__avatar { width: 70px; }
  .profile-fullscreen .profile-avatar-edit { width: 38px; height: 38px; }
  .profile-fullscreen .profile-identity-card__name { margin-top: 6px; }
  .profile-fullscreen .profile-identity-card__name h1 { font-size: 21px; }
  .profile-fullscreen .profile-level-track { margin-top: 4px; padding-block: 5px; }
  .profile-rank-card { grid-template-columns: 34px minmax(0, 1fr); padding-block: 5px; }
  .profile-rank-card > .profile-rating-crest { width: 31px; height: 36px; }
  .profile-rank-card strong { font-size: 11px; }
  .profile-rank-card small { display: none; }
  .profile-fullscreen .hall-profile-tabs { padding-top: 174px; }
  .profile-fullscreen .hall-profile-tabs button { min-height: 48px; grid-template-columns: 22px minmax(0, 1fr); padding: 4px 12px; font-size: 9px; }
  .profile-fullscreen .hall-profile-tabs button svg { width: 21px; height: 21px; }
  .profile-fullscreen .profile-workspace__head { min-height: 60px; padding: 6px 14px; }
  .profile-fullscreen .profile-workspace__head h2 { font-size: 29px; }
  .profile-workspace-controls { min-width: min(500px, 66%); }
  .profile-workspace-controls label,
  .profile-workspace-controls > span { min-height: 44px; padding-block: 4px; }
  .profile-workspace-controls select { min-height: 34px; }
  .profile-fullscreen .profile-tab-panel { padding: 5px 14px 8px; }
  .profile-rating-card { min-height: 132px; padding: 8px 11px; }
  .profile-rating-card > header > div > small { font-size: 10px; }
  .profile-rating-card > header strong { font-size: 34px; }
  .profile-rating-card > p span { font-size: 9px; }
  .profile-rating-card > p b { font-size: 14px; }
  .profile-rating-chart { right: 10px; bottom: 5px; left: 10px; height: 58px; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 13px; }
  .profile-rating-crest { width: 38px; height: 44px; }
  .profile-rating-dates i,
  .profile-rating-axis i { font-size: 7px; }
  .profile-statistics-summary { margin-top: 5px; }
  .profile-statistics-summary .profile-metric { min-height: 48px; }
  .profile-recent-results { min-height: 48px; }
  .profile-statistics-table { margin-top: 5px; }
  .profile-statistics-table > header { min-height: 35px; padding-block: 3px; }
  .profile-statistics-table > div > div { min-height: 32px; }
  .profile-history-filters { gap: 5px; margin-bottom: 5px; }
  .profile-history-filters > span,
  .profile-history-filters > label { min-height: 38px; font-size: 8px; }
  .profile-history-layout { gap: 6px; }
  .profile-history-inspector { padding: 10px; }
  .profile-match-row > button,
  .profile-history-inspector > button { min-height: 48px; }
  .profile-report-scoreboard { min-height: 80px; }
  .profile-report-scene { min-height: 130px; }
  .profile-report-replay { min-height: 182px; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1180px) {
  .is-profile-page .hall-global-nav { display: none; }
  .is-profile-page .hall-profile-context-nav { display: grid; }
  .profile-fullscreen > .hall-profile-center { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr); }
  .profile-fullscreen .profile-identity-card { display: none; }
  .profile-fullscreen .profile-workspace__head { display: none; }
  .profile-fullscreen .hall-profile-tabs {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    padding: 0 max(48px, env(safe-area-inset-right)) 0 max(48px, env(safe-area-inset-left));
    overflow: visible;
    background: rgba(2, 12, 8, .92);
  }
  .profile-fullscreen .hall-profile-tabs button { min-height: 48px; grid-template-columns: 22px auto; justify-content: center; padding: 3px 7px; font-size: 9px; }
  .profile-fullscreen .hall-profile-tabs button[data-profile-tab="achievements"],
  .profile-fullscreen .hall-profile-tabs button[data-profile-tab="trophies"] { display: none; }
  .profile-fullscreen .hall-profile-tabs button.is-active::after { display: none; }
  .profile-fullscreen .profile-tab-panel { grid-column: 1; grid-row: 2; padding: 6px max(48px, env(safe-area-inset-right)) 8px max(48px, env(safe-area-inset-left)); }
  .profile-history-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile-history-filters > label { grid-template-columns: 1fr; gap: 1px; padding: 3px 6px; }
  .profile-history-filters > label small { display: none; }
  .profile-history-layout { grid-template-columns: 1fr; }
  .profile-history-inspector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-match-ledger { overflow: visible; background: transparent; border: 0; }
  .profile-match-ledger > header { display: none; }
  .profile-match-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "opponent score result" "discipline rating rating" "date mode action"; min-height: 132px; margin-bottom: 7px; padding: 10px 12px; border: 1px solid rgba(213, 169, 71, .22); }
  .profile-match-row time { display: block; grid-area: date; }
  .profile-match-discipline { grid-area: discipline; }
  .profile-match-row > .profile-match-mode { display: block; grid-area: mode; }
  .profile-match-opponent { grid-area: opponent; }
  .profile-match-score { grid-area: score; }
  .profile-match-outcome { grid-area: result; }
  .profile-match-rating { grid-area: rating; grid-auto-flow: column; justify-content: end; align-items: center; }
  .profile-match-duration { display: none; }
  .profile-match-open { grid-area: action; }
  .profile-fullscreen[data-profile-report="true"] .hall-profile-tabs { display: grid; }
  .profile-fullscreen[data-profile-report="true"] .profile-tab-panel { grid-row: 2; }
}
