.profile-page {
  --profile-border: #c9d4dc;
  --profile-muted: #696884;
  color: var(--navy);
  background: #f2f6f8;
}

.profile-site-header {
  position: relative;
  background: #fff;
  backdrop-filter: none;
}

.profile-header-nav {
  display: flex;
}

.profile-header-nav a {
  min-width: 142px;
  border-left: 1px solid #17134f26;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .18s, background .18s;
}

.profile-header-nav a:last-child {
  border-right: 1px solid #17134f26;
}

.profile-header-nav a:hover,
.profile-header-nav a:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.profile-header-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -4px 0 var(--cyan);
}

.profile-hero {
  position: relative;
  border-bottom: 8px solid var(--cyan);
  color: #fff;
  background: var(--deep);
  overflow: hidden;
}

.profile-hero-inner,
.profile-content {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.profile-hero-inner {
  padding: clamp(58px, 7vw, 92px) 0 clamp(48px, 6vw, 76px);
}

.profile-overview {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
}

.profile-avatar-frame {
  position: relative;
  width: 176px;
  height: 176px;
  border: 3px solid #fff;
  background: #24205f;
  box-shadow: 12px 12px 0 var(--pink);
  overflow: hidden;
}

.profile-avatar-frame::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 9px;
  right: 0;
  bottom: 0;
  background: var(--lime);
}

.profile-avatar-fallback,
.profile-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-avatar-fallback {
  place-items: center;
  display: grid;
  color: var(--lime);
  font-size: 5.4rem;
  font-weight: 900;
}

.profile-avatar {
  display: block;
  object-fit: cover;
}

.profile-name-line {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.profile-identity h1 {
  max-width: 14ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
  overflow-wrap: anywhere;
}

.profile-name-roles {
  padding-bottom: 4px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-role-badge {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff5c;
  color: #fff;
  background: #3a376c;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-role-dev {
  border-color: #ff8296;
  background: #ff3150;
}

.profile-role-admin {
  border-color: #fff2a0;
  color: var(--deep);
  background: var(--yellow);
}

.profile-role-moderator {
  border-color: #9cffff;
  color: var(--deep);
  background: var(--cyan);
}

.profile-role-mappooler {
  border-color: #b8a5ff;
  background: var(--violet);
}

.profile-bio {
  max-width: 62ch;
  margin: 24px 0 0;
  color: #dad9ee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.96rem, 1.5vw, 1.08rem);
  font-weight: 600;
  line-height: 1.55;
}

.profile-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-meta > * {
  min-height: 34px;
  border: 1px solid #ffffff2e;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #bdbbd5;
  background: #ffffff0a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .69rem;
  font-weight: 700;
}

.profile-meta a {
  color: var(--cyan);
  transition: color .15s, border-color .15s;
}

.profile-meta a:hover,
.profile-meta a:focus-visible {
  border-color: var(--cyan);
  color: #fff;
  outline: none;
}

.profile-meta .profile-country-flag {
  width: 52px;
  min-height: 40px;
  justify-content: center;
  padding: 4px 6px;
  flex: 0 0 auto;
}

.profile-country-flag img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.profile-meta .profile-kamaitachi {
  border-color: #ff3150;
  padding-inline: 16px;
  color: #fff;
  background: #ff3150;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-family: Tektur, Arial, sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.profile-meta .profile-kamaitachi:hover,
.profile-meta .profile-kamaitachi:focus-visible {
  border-color: #d91f3c;
  color: #fff;
  background: #d91f3c;
}

.profile-meta .profile-team {
  min-height: 40px;
  padding: 0;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-color: var(--cyan);
  color: #fff;
  background: #1ec8d61f;
  font-family: Tektur, Arial, sans-serif;
  text-transform: none;
}

.profile-team-tag {
  min-width: 48px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--cyan);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-team-name {
  min-width: 0;
  padding: 5px 11px 6px;
  display: grid;
  align-content: center;
  gap: 1px;
}

.profile-team-name small {
  color: #9c99bd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-team-name strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.1;
  text-transform: none;
}

.profile-meta .profile-team:hover .profile-team-tag,
.profile-meta .profile-team:focus-visible .profile-team-tag {
  background: var(--lime);
}

.profile-career-stats {
  margin: clamp(42px, 6vw, 70px) 0 0;
  border-top: 1px solid #ffffff2e;
  border-left: 1px solid #ffffff2e;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-career-stats div {
  min-width: 0;
  min-height: 118px;
  border-right: 1px solid #ffffff2e;
  border-bottom: 1px solid #ffffff2e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.profile-career-stats dt,
.profile-career-stats dd {
  margin: 0;
}

.profile-career-stats dt {
  color: #aaa8c6;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-career-stats dd {
  order: -1;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .8;
}

.profile-career-stats div:nth-child(1) { border-top: 5px solid var(--violet); }
.profile-career-stats div:nth-child(2) { border-top: 5px solid var(--cyan); }
.profile-career-stats div:nth-child(3) { border-top: 5px solid var(--pink); }
.profile-career-stats div:nth-child(4) { border-top: 5px solid var(--lime); }
.profile-career-stats div:nth-child(5) { border-top: 5px solid var(--yellow); }
.profile-career-stats div:nth-child(6) { border-top: 5px solid #7f80ff; }

.profile-content {
  padding: clamp(58px, 7vw, 92px) 0 100px;
}

.profile-content > section + section {
  margin-top: clamp(68px, 8vw, 110px);
}

.profile-section-heading {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 20px;
}

.profile-section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .8;
}

.profile-empty-state {
  border: 2px solid var(--profile-border);
  padding: 34px;
  background: #fff;
}

.profile-empty-state strong {
  font-size: 1.2rem;
}

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

.profile-game-card,
.profile-result {
  --game-accent: var(--cyan);
  --game-accent-2: var(--violet);
  --game-stage: #dce5e9;
}

.profile-game-chunithm {
  --game-accent: #54d6cf;
  --game-accent-2: #7144f6;
  --game-stage: #d5ecef;
}

.profile-game-sdvx {
  --game-accent: #10dce5;
  --game-accent-2: #ff3fa7;
  --game-stage: #dce1eb;
}

.profile-game-card {
  min-width: 0;
  border: 2px solid var(--profile-border);
  display: block;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}

.profile-game-card:hover,
.profile-game-card:focus-visible {
  border-color: var(--game-accent-2);
  transform: translateY(-6px);
}

.profile-game-card:focus-visible {
  outline: 3px solid var(--game-accent-2);
  outline-offset: 3px;
}

.profile-case-stage {
  position: relative;
  min-height: 332px;
  padding: 32px;
  place-items: center;
  display: grid;
  border-bottom: 1px solid #17134f1c;
  background: var(--game-stage);
  isolation: isolate;
  overflow: hidden;
}

.profile-case-stage::before {
  content: none;
}

.profile-jewel-case {
  --case-angle: -2.5deg;
  --disc-duration: 1.7s;
  --disc-delay: -.15s;
  position: relative;
  width: min(86%, 292px);
  aspect-ratio: 1 / 1;
  border: 3px solid #232143;
  background: #eef4f79e;
  box-shadow: 9px 11px 0 #17134f24, inset 0 0 0 2px #ffffffa6;
  transform: rotate(var(--case-angle));
  transition: transform .24s;
  isolation: isolate;
}

.profile-jewel-case::before,
.profile-jewel-case::after {
  content: "";
  position: absolute;
  z-index: 9;
  height: 4%;
  left: 8%;
  right: 2%;
  border: 1px solid #2321438f;
  background: #e1e9ed;
  pointer-events: none;
}

.profile-jewel-case::before { top: -2px; }
.profile-jewel-case::after { bottom: -2px; }

.profile-case-variant-1 .profile-jewel-case {
  --case-angle: 2.1deg;
  --disc-duration: 1.45s;
  --disc-delay: -.65s;
}

.profile-case-variant-2 .profile-jewel-case {
  --case-angle: -1.2deg;
  --disc-duration: 1.9s;
  --disc-delay: -.35s;
}

.profile-case-variant-3 .profile-jewel-case {
  --case-angle: -2.7deg;
  --disc-duration: 1.7s;
  --disc-delay: -.9s;
}

.profile-case-variant-4 .profile-jewel-case {
  --case-angle: 1.4deg;
  --disc-duration: 1.6s;
  --disc-delay: -.45s;
}

.profile-game-card:hover .profile-jewel-case,
.profile-game-card:focus-visible .profile-jewel-case {
  transform: rotate(0deg);
}

.profile-case-spine {
  position: absolute;
  z-index: 8;
  width: 9%;
  inset: 0 auto 0 0;
  border-right: 2px solid #232143;
  background: #e5edf1d9;
}

.profile-case-spine::before,
.profile-case-spine::after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 12%;
  border: 1px solid #2321438f;
  background: #fff;
}

.profile-case-spine::before { top: 8%; }
.profile-case-spine::after { bottom: 8%; }

.profile-case-obi {
  position: absolute;
  z-index: 10;
  inset: -3px auto -3px -3px;
  width: 15%;
  border: 3px solid #232143;
  border-right-width: 5px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  background: var(--game-accent);
  box-shadow: 3px 0 0 #ffffff70;
  overflow: hidden;
}

.profile-case-obi::before,
.profile-case-obi::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  height: 8%;
  background: #232143;
  opacity: .72;
}

.profile-case-obi::before { top: 4%; }
.profile-case-obi::after { bottom: 4%; }

.profile-case-obi b {
  position: relative;
  z-index: 1;
  max-height: 92%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  overflow: hidden;
  color: inherit;
  font-size: clamp(.52rem, 1.15vw, .68rem);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-case-latch {
  position: absolute;
  z-index: 10;
  width: 10%;
  height: 8%;
  right: -3px;
  border: 2px solid #232143;
  background: #e0e8ec;
  box-shadow: inset 0 0 0 2px #ffffff9c;
}

.profile-case-latch-top { top: 13%; }
.profile-case-latch-bottom { bottom: 13%; }

.profile-case-front {
  position: absolute;
  z-index: 2;
  inset: 6% 5% 6% 12%;
  border: 2px solid #232143a8;
  place-items: center;
  display: grid;
  background: #ffffff9e;
  box-shadow: inset 0 0 0 4px #ffffff52;
  overflow: hidden;
}

.profile-case-front::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 3%;
  border: 1px solid #ffffff8a;
  box-shadow: inset 0 0 0 1px #17134f24;
  pointer-events: none;
}

.profile-case-front::after {
  content: "";
  position: absolute;
  z-index: 7;
  width: 22%;
  height: 145%;
  top: -22%;
  right: 9%;
  background: #ffffff63;
  transform: rotate(22deg);
  pointer-events: none;
}

.profile-case-insert {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #f4f3ed;
}

.profile-insert-band {
  position: absolute;
  inset: 0 0 auto;
  height: 20%;
  border-bottom: 2px solid #232143;
  background: var(--game-accent-2);
}

.profile-insert-band::after {
  content: "";
  position: absolute;
  width: 31%;
  height: 24%;
  right: 5%;
  bottom: 18%;
  border: 2px solid #fff;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
}

.profile-case-variant-2 .profile-insert-band {
  inset: auto 0 0;
  height: 17%;
  border-top: 2px solid #232143;
  border-bottom: 0;
}

.profile-case-variant-4 .profile-insert-band {
  inset: 0 0 0 auto;
  width: 18%;
  height: auto;
  border-bottom: 0;
  border-left: 2px solid #232143;
}

.profile-case-variant-4 .profile-insert-band::after {
  width: 45%;
  height: 18%;
  right: 25%;
  bottom: 7%;
}

.profile-insert-mosaic {
  position: absolute;
  inset: 24% 6% 8% 17%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid #232143;
  overflow: hidden;
}

.profile-insert-mosaic i {
  position: relative;
  display: block;
  background: #f7f5ec;
}

.profile-insert-mosaic i:nth-child(odd) { background: #232143; }
.profile-insert-mosaic i:nth-child(3n) {
  background: repeating-conic-gradient(#232143 0 25%, #f7f5ec 0 50%) 50% / 9px 9px;
}
.profile-insert-mosaic i:nth-child(4n) {
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #232143 0 2px, #f7f5ec 3px 5px);
}
.profile-insert-mosaic i:nth-child(5n) {
  background: repeating-linear-gradient(45deg, #232143 0 3px, #f7f5ec 3px 6px);
}

.profile-case-variant-2 .profile-insert-mosaic {
  inset: 7% 7% 21% 16%;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.profile-case-variant-4 .profile-insert-mosaic {
  inset: 8% 22% 8% 15%;
}

.profile-insert-marks {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 4%;
  display: flex;
  align-items: end;
  gap: 3px;
}

.profile-insert-marks i {
  width: 3px;
  height: 10px;
  display: block;
  background: #232143;
}

.profile-insert-marks i:nth-child(2) { height: 17px; }
.profile-insert-marks i:nth-child(3) { height: 7px; }
.profile-insert-marks i:nth-child(4) { width: 10px; height: 3px; }

.profile-case-clip {
  position: absolute;
  z-index: 8;
  width: 13%;
  height: 5%;
  right: 1%;
  border: 1px solid #23214399;
  border-radius: 50%;
  background: #e9f1f4d4;
}

.profile-case-clip-top { top: 6%; }
.profile-case-clip-bottom { bottom: 6%; }

.profile-disc-wrap {
  position: absolute;
  z-index: 4;
  inset: 0;
  place-items: center;
  display: grid;
}

.profile-disc {
  position: relative;
  width: 81%;
  aspect-ratio: 1;
  border: 2px solid #24223e;
  border-radius: 50%;
  place-items: center;
  display: grid;
  background: conic-gradient(#c9d2db, #f9ffff 12%, #c8c5f3 23%, #fbffff 36%, #bfe9e5 48%, #fff 61%, #efcbe4 73%, #fff 87%, #c9d2db);
  box-shadow:
    inset 0 0 0 2px #ffffff8c,
    inset 0 0 0 7px #ffffff3d,
    inset 0 0 0 9px #17134f26,
    0 5px 12px #0d12304f;
  transform: rotate(0deg);
  animation: profile-disc-spin var(--disc-duration) linear infinite;
  animation-delay: var(--disc-delay);
  animation-fill-mode: both;
  animation-play-state: paused;
  overflow: hidden;
}

.profile-game-card:hover .profile-disc,
.profile-game-card:focus-visible .profile-disc {
  animation-play-state: running;
}

.profile-disc::before,
.profile-disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.profile-disc::before {
  z-index: 2;
  inset: 5%;
  border: 1px solid #ffffffb8;
  box-shadow:
    inset 0 0 0 1px #17134f1c,
    0 0 0 3px #ffffff2e;
}

.profile-disc::after {
  z-index: 3;
  width: 20%;
  aspect-ratio: 1;
  border: 2px solid #24223e;
  box-shadow: 0 0 0 4px #ffffff5c;
  background: #dce5e9;
}

.profile-disc-art {
  position: absolute;
  z-index: 1;
  inset: 4%;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 48%, #ffffff75 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, #ffffff75 49% 51%, transparent 52%);
}

.profile-disc-art::before,
.profile-disc-art::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.profile-disc-art::before {
  inset: 10%;
  border: 1px dashed #ffffff8c;
  border-radius: 50%;
}

.profile-disc-art::after {
  width: 16%;
  height: 2px;
  right: 3%;
  top: calc(50% - 1px);
  background: #ffffffb0;
}

.profile-disc-art i {
  position: absolute;
  display: none;
  border: 1px solid #24223e8a;
  background: #ffffff66;
}

.profile-disc-art i:nth-child(1) { width: 26%; height: 20%; left: 9%; top: 13%; }
.profile-disc-art i:nth-child(2) { width: 19%; aspect-ratio: 1; right: 11%; top: 17%; border-radius: 50%; }
.profile-disc-art i:nth-child(3) { width: 25%; height: 16%; left: 12%; bottom: 15%; transform: skewX(-22deg); }
.profile-disc-art i:nth-child(4) { width: 6%; height: 27%; right: 18%; bottom: 10%; }

.profile-game-chunithm .profile-case-insert {
  background: #f4efe5;
}

.profile-game-chunithm .profile-insert-band {
  height: 21%;
  background: #e81775;
}

.profile-game-chunithm .profile-insert-mosaic {
  inset: 24% 4% 7% 14%;
  transform: rotate(-1deg);
}

.profile-game-chunithm .profile-disc {
  background: linear-gradient(90deg, #7043a8 0 50%, #d2ad4d 50% 100%);
}

.profile-game-chunithm .profile-disc-art {
  background:
    linear-gradient(90deg, transparent 49%, #ffffff7a 49% 51%, transparent 51%),
    linear-gradient(transparent 49%, #ffffff7a 49% 51%, transparent 51%),
    linear-gradient(45deg, #17132966 25%, transparent 25% 75%, #17132966 75%) 0 0 / 18px 18px;
  opacity: .62;
}

.profile-game-chunithm .profile-disc-art::before { border-color: #24152b9e; }
.profile-game-chunithm .profile-disc-art::after { background: #24152bb5; }

.profile-game-sdvx .profile-case-insert {
  background:
    repeating-linear-gradient(112deg, transparent 0 14px, #0cdbec26 14px 16px),
    #131036;
}

.profile-game-sdvx .profile-insert-band {
  height: 15%;
  border-bottom-color: #10dce5;
  background: linear-gradient(90deg, #10dce5 0 48%, #ff3fa7 48% 100%);
}

.profile-game-sdvx .profile-insert-mosaic {
  inset: 20% 8% 8% 16%;
  border-color: #10dce5;
  border-radius: 50%;
  display: block;
  background: repeating-conic-gradient(from 10deg, #10dce566 0 3deg, transparent 3deg 18deg);
  transform: rotate(8deg);
}

.profile-game-sdvx .profile-insert-mosaic i {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  border: 2px solid #ff3fa7;
  border-radius: 50%;
  background: transparent;
}

.profile-game-sdvx .profile-insert-mosaic i:nth-child(1) { width: 22%; left: 17%; top: 15%; }
.profile-game-sdvx .profile-insert-mosaic i:nth-child(2) { right: 13%; top: 37%; }
.profile-game-sdvx .profile-insert-mosaic i:nth-child(3) { left: 38%; bottom: 11%; border-color: #10dce5; }
.profile-game-sdvx .profile-insert-mosaic i:nth-child(n + 4) { display: none; }

.profile-game-sdvx .profile-disc {
  background: #171135;
}

.profile-game-sdvx .profile-disc-art {
  background:
    radial-gradient(circle at 50%, transparent 0 22%, #ff3fa75c 23% 24%, transparent 25% 37%, #10dce58f 38% 40%, transparent 41%),
    linear-gradient(135deg, transparent 0 43%, #ff3fa78a 43% 47%, transparent 47%);
}

.profile-game-sdvx .profile-disc-art::before { border-color: #10dce59e; }
.profile-game-sdvx .profile-disc-art::after { background: #ff3fa7c2; }

.profile-disc-label {
  position: relative;
  z-index: 4;
  width: 58%;
  height: 58%;
  border: 1px solid #ffffff9e;
  border-radius: 50%;
  place-items: center;
  display: grid;
  background: #ffffffbd;
  overflow: hidden;
}

.profile-disc-label img {
  width: 88%;
  max-height: 68%;
  display: block;
  object-fit: contain;
}

.profile-game-chunithm .profile-disc-label img {
  width: 98%;
  max-height: 76%;
}

.profile-game-sdvx .profile-disc-label {
  border-color: #10dce58a;
  background: #ffffffdc;
}

.profile-disc-label b {
  max-width: 70%;
  font-size: clamp(1rem, 3vw, 2rem);
  letter-spacing: -.04em;
  text-align: center;
}

.profile-disc > .profile-disc-hole {
  position: absolute;
  z-index: 5;
  width: 7%;
  aspect-ratio: 1;
  border: 1px solid #24223e;
  border-radius: 50%;
  background: #fff;
}

@keyframes profile-disc-spin {
  to { transform: rotate(360deg); }
}

.profile-game-body {
  border-top: 6px solid var(--game-accent);
  padding: 28px;
  color: #fff;
  background: #18174b;
}

.profile-game-body h3 {
  min-height: 52px;
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .84;
}

.profile-game-stats {
  margin: 24px 0 0;
  border-top: 1px solid #ffffff2b;
  border-left: 1px solid #ffffff2b;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-game-stats div {
  min-width: 0;
  min-height: 88px;
  border-right: 1px solid #ffffff2b;
  border-bottom: 1px solid #ffffff2b;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.profile-game-stats dt,
.profile-game-stats dd {
  margin: 0;
}

.profile-game-stats dt {
  order: 2;
  color: #9492b2;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-game-stats dd {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .9;
}

.profile-game-stats dd small {
  margin-top: 6px;
  display: block;
  color: var(--game-accent);
  font-size: .48rem;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-year-list {
  border-top: 2px solid var(--profile-border);
}

.profile-year {
  min-height: 112px;
  border-right: 2px solid var(--profile-border);
  border-bottom: 2px solid var(--profile-border);
  border-left: 7px solid var(--cyan);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  background: #fff;
}

.profile-year > time {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.profile-year dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-year dl div {
  min-width: 0;
  border-left: 1px solid var(--profile-border);
  padding: 4px 16px;
  display: grid;
  gap: 6px;
}

.profile-year dt,
.profile-year dd {
  margin: 0;
}

.profile-year dt {
  color: var(--profile-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  font-weight: 700;
}

.profile-year dd {
  order: -1;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.profile-result-list {
  border-top: 2px solid var(--profile-border);
}

.profile-result {
  min-height: 92px;
  border-right: 2px solid var(--profile-border);
  border-bottom: 2px solid var(--profile-border);
  border-left: 7px solid var(--game-accent);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 92px minmax(120px, .55fr) minmax(240px, 1.45fr) 72px;
  align-items: center;
  gap: 22px;
  background: #fff;
}

.profile-result time,
.profile-result-game,
.profile-result-name span {
  color: var(--profile-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .69rem;
  font-weight: 700;
}

.profile-result-game {
  color: var(--game-accent-2);
  font-family: Tektur, Arial, sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-result-name {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-result-name strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.profile-result-place {
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: right;
}

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

.profile-milestone {
  min-width: 0;
  min-height: 104px;
  border: 2px solid var(--profile-border);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  background: #fff;
}

.profile-milestone-icon {
  width: 42px;
  height: 42px;
  grid-row: 1 / span 2;
  border: 2px solid var(--navy);
  place-items: center;
  display: grid;
  color: var(--navy);
  background: var(--lime);
  font-size: 1rem;
  font-weight: 900;
}

.profile-milestone strong {
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.profile-milestone time {
  color: var(--profile-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .68rem;
  font-weight: 700;
}

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

.profile-achievement {
  position: relative;
  min-width: 0;
  min-height: 150px;
  border: 2px solid var(--profile-border);
  border-top: 6px solid #8a89a1;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 14px;
  background: #fff;
}

.profile-achievement-rare { border-top-color: var(--cyan); }
.profile-achievement-epic { border-top-color: var(--violet); }
.profile-achievement-legendary { border-top-color: var(--yellow); }

.profile-achievement-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  place-items: center;
  display: grid;
  color: var(--navy);
  background: var(--lime);
  font-size: 1rem;
  font-weight: 900;
}

.profile-achievement > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-achievement > div strong {
  font-size: .87rem;
  overflow-wrap: anywhere;
}

.profile-achievement > div span {
  color: var(--profile-muted);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-achievement p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--profile-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.45;
}

.profile-not-found {
  width: min(100% - 48px, 760px);
  min-height: calc(100svh - 82px);
  margin-inline: auto;
  padding: 90px 0;
}

.profile-not-found > strong {
  color: var(--pink);
  font-size: .72rem;
  letter-spacing: .12em;
}

.profile-not-found h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -.07em;
  line-height: .82;
}

.profile-not-found p {
  margin: 24px 0 0;
  color: var(--profile-muted);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.profile-not-found a {
  margin-top: 28px;
  border: 2px solid var(--navy);
  padding: 14px 18px;
  display: inline-flex;
  color: #fff;
  background: var(--navy);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .profile-career-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-game-grid {
    grid-template-columns: 1fr;
  }

  .profile-game-card {
    display: grid;
    grid-template-columns: minmax(290px, .82fr) minmax(0, 1.18fr);
  }

  .profile-case-stage {
    min-height: 100%;
  }

  .profile-game-body {
    border-top: 0;
    border-left: 6px solid var(--game-accent);
  }

  .profile-achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-year dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .profile-milestone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-site-header {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 760px) {
  .profile-hero-inner,
  .profile-content,
  .profile-not-found {
    width: min(100% - 32px, 1320px);
  }

  .profile-overview {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .profile-avatar-frame {
    width: 112px;
    height: 112px;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .profile-avatar-fallback {
    font-size: 3.3rem;
  }

  .profile-identity h1 {
    margin-top: 3px;
    font-size: clamp(2.4rem, 12vw, 4.6rem);
  }

  .profile-bio {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .profile-meta {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .profile-career-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-game-card {
    display: block;
  }

  .profile-case-stage {
    min-height: 300px;
  }

  .profile-game-body {
    border-top: 6px solid var(--game-accent);
    border-left: 0;
  }

  .profile-game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-result {
    grid-template-columns: 86px minmax(0, 1fr) 60px;
    grid-template-areas:
      "date game place"
      "name name place";
    gap: 9px 14px;
  }

  .profile-result time { grid-area: date; }
  .profile-result-game { grid-area: game; }
  .profile-result-name { grid-area: name; }
  .profile-result-place { grid-area: place; }
}

@media (max-width: 540px) {
  .profile-site-header {
    height: 70px;
  }

  .profile-hero-inner {
    padding-top: 48px;
  }

  .profile-content {
    padding-bottom: 68px;
  }

  .profile-content > section + section {
    margin-top: 58px;
  }

  .profile-overview {
    display: flex;
    flex-direction: column;
  }

  .profile-identity {
    width: 100%;
    min-width: 0;
  }

  .profile-bio,
  .profile-meta {
    width: 100%;
  }

  .profile-meta > * {
    min-height: 32px;
    padding-inline: 10px;
    font-size: .63rem;
  }

  .profile-career-stats div {
    min-height: 104px;
    padding: 16px;
  }

  .profile-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .profile-section-heading h2 {
    font-size: 2.65rem;
  }

  .profile-case-stage {
    min-height: 270px;
    padding: 24px;
  }

  .profile-jewel-case {
    width: min(88%, 238px);
  }

  .profile-game-body {
    padding: 22px;
  }

  .profile-result {
    padding: 16px;
    grid-template-columns: 76px minmax(0, 1fr) 52px;
  }

  .profile-result-place {
    font-size: 1.45rem;
  }

  .profile-year {
    padding: 18px 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-year dl {
    border-top: 1px solid var(--profile-border);
    padding-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .profile-year dl div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .profile-milestone-grid,

  .profile-achievement-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-game-card,
  .profile-jewel-case,
  .profile-disc {
    animation: none !important;
    transition: none !important;
  }
}

.profile-game-wacca { --game-accent: #e50065; --game-accent-2: #00a7e9; --game-stage: #f3dfe9; }
.profile-game-wacca .profile-game-art { border-bottom-color: #e50065; }
