.account-progression {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #e2e7e4;
  border-bottom: 1px solid #e2e7e4;
}

.progression-level > div:first-child,
.progression-level small,
.progression-wallet,
.tournament-tier-lock,
.tournament-cost-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progression-level > div:first-child > span {
  padding: 4px 7px;
  border: 1px solid #111923;
  border-radius: 4px;
  background: #111923;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.progression-level > div:first-child > strong {
  font-size: 24px;
}

.xp-track {
  height: 7px;
  margin: 9px 0 6px;
  overflow: hidden;
  background: #e8ece9;
}

.xp-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #0b8870;
  transition: width 380ms ease;
}

.progression-level small {
  color: #697485;
  font-size: 10px;
  font-weight: 800;
}

.progression-wallet {
  padding: 12px 0;
  border-top: 1px solid #eef1ef;
  border-bottom: 1px solid #eef1ef;
}

.progression-wallet > div {
  display: grid;
  gap: 2px;
}

.progression-wallet span,
.tournament-tier-lock span,
.tournament-tier-lock small {
  color: #6a7584;
  font-size: 9px;
  font-weight: 900;
}

.progression-wallet strong {
  font-size: 18px;
}

.progression-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.progression-badges span {
  padding: 5px 7px;
  border: 1px solid #d9dfdc;
  border-radius: 4px;
  background: #f7f9f7;
  font-size: 10px;
  font-weight: 900;
}

.profile-shop-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px;
  border: 1px solid #111923;
  border-radius: 5px;
  background: #111923;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.profile-shop-launch span {
  color: #f2c23a;
  font-size: 9px;
  font-weight: 900;
}

.profile-shop-launch strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-shop-launch b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 20px;
}

.membership-selector {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.membership-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dfe4e1;
  border-radius: 6px;
  overflow: hidden;
}

.membership-option {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 11px 7px;
  border: 0;
  border-right: 1px solid #dfe4e1;
  background: #fff;
  color: #111923;
  text-align: left;
  cursor: pointer;
}

.membership-option:last-child {
  border-right: 0;
}

.membership-option:hover,
.membership-option.active {
  background: #111923;
  color: #fff;
}

.membership-option strong {
  font-size: 13px;
}

.membership-option span {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.68;
}

.rank-guide-dialog {
  width: min(1080px, 100%);
  gap: 22px;
}

.rank-guide-head {
  align-items: center;
}

.rank-guide-head > div {
  display: grid;
  gap: 3px;
}

.rank-guide-head h2 {
  font-size: 26px;
}

#rankGuideCurrent {
  width: fit-content;
  margin-top: 5px;
  padding: 4px 7px;
  color: #3f3108;
  background: #f5d56f;
  font-size: 10px;
  font-weight: 950;
}

.rank-guide-section {
  display: grid;
  gap: 12px;
}

.rank-guide-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dfe4e1;
}

.rank-guide-section-title strong {
  font-size: 13px;
}

.rank-guide-section-title span {
  color: #697283;
  font-size: 11px;
}

.rank-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rank-guide-tier {
  --rank-color: #697283;
  display: grid;
  grid-template-rows: auto minmax(70px, auto) auto;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe4e1;
  border-top: 4px solid var(--rank-color);
  border-radius: 6px;
  background: #f8faf9;
}

.rank-guide-tier[data-rank-tier="plus"] {
  --rank-color: #2f8d75;
}

.rank-guide-tier[data-rank-tier="plusplus"] {
  --rank-color: #2878b9;
}

.rank-guide-tier[data-rank-tier="plusplusplus"] {
  --rank-color: #d89e08;
}

.rank-guide-tier-x {
  --rank-color: #d54b5f;
  background: #fff8f8;
}

.rank-guide-tier.is-current {
  border-color: var(--rank-color);
  box-shadow: inset 0 0 0 1px var(--rank-color);
}

.rank-guide-tier > div:first-child {
  display: grid;
  gap: 3px;
}

.rank-guide-tier > div:first-child span,
.rank-guide-tier > div:first-child b {
  color: var(--rank-color);
  font-size: 9px;
  font-weight: 950;
}

.rank-guide-tier > div:first-child strong {
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1;
}

.rank-guide-tier > div:first-child b {
  width: fit-content;
  padding: 3px 5px;
  border: 1px solid currentColor;
}

.rank-guide-tier p,
.rank-system-grid p,
.rank-status-note p,
.rank-guide-note {
  margin: 0;
  color: #5f6978;
  font-size: 11px;
  line-height: 1.65;
}

.rank-guide-tier dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.rank-guide-tier dl div {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid #dfe4e1;
}

.rank-guide-tier dt {
  color: #78818f;
  font-size: 9px;
  font-weight: 800;
}

.rank-guide-tier dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #161c25;
  font-size: 11px;
  font-weight: 900;
}

.rank-guide-note {
  padding: 10px 12px;
  border-left: 3px solid #d9a718;
  background: #fff9e9;
}

.rank-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dfe4e1;
}

.rank-system-grid > div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid #dfe4e1;
}

.rank-system-grid > div:last-child {
  border-right: 0;
}

.rank-system-grid b,
.rank-system-grid strong {
  display: block;
}

.rank-system-grid b {
  color: #22745f;
  font-size: 9px;
}

.rank-system-grid strong {
  margin: 3px 0 7px;
  font-size: 14px;
}

.rank-status-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  color: #fff;
  background: #171d26;
}

.rank-status-note strong {
  color: #f1c748;
  font-size: 12px;
}

.rank-status-note p {
  color: #d2d8df;
}

.master-rail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 17px clamp(20px, 3vw, 46px);
  border-bottom: 1px solid var(--rank-line);
  background: #111923;
  color: #fff;
}

.master-rail-head {
  align-self: center;
}

.master-rail-head div {
  display: grid;
  gap: 2px;
}

.master-rail-head span,
.master-card small {
  color: #f2c23a;
  font-size: 9px;
  font-weight: 900;
}

.master-rail-head strong {
  font-size: 17px;
}

.master-rail-head > small {
  color: #9ba7b2;
  font-size: 10px;
}

.master-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.master-card {
  display: grid;
  flex: 0 0 156px;
  min-width: 0;
  gap: 4px;
  padding: 9px 10px;
  border-left: 2px solid #f2c23a;
  background: #1c2733;
}

.master-card.is-you {
  background: #0b715f;
}

.master-card strong,
.master-card b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-card strong {
  font-size: 12px;
}

.master-card b {
  font-size: 11px;
}

.master-card span {
  color: #aeb8c2;
  font-size: 9px;
}

.community-tournament-band {
  padding: 34px clamp(20px, 3vw, 46px) 40px;
  border-top: 1px solid var(--rank-line);
  background: #fff;
}

.community-tournament-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.community-tournament-head h2 {
  margin: 0;
  font-size: 30px;
}

.community-tournament-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tournament-code-form {
  display: flex;
  height: 40px;
}

.tournament-code-form input {
  width: 132px;
  padding: 0 10px;
  border: 1px solid #d8dfdc;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  text-transform: uppercase;
}

.tournament-code-form button {
  border-radius: 0 5px 5px 0;
}

.tournament-scope-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 17px 0;
  padding: 11px 0;
  border-top: 1px solid #e6eae8;
  border-bottom: 1px solid #e6eae8;
  color: #657083;
  font-size: 10px;
  font-weight: 700;
}

.tournament-scope-guide b {
  margin-right: 5px;
  color: #111923;
}

.community-tournament-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.community-tournament-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  border: 1px solid #dfe4e1;
  border-top: 3px solid var(--tournament-accent, #0b8870);
  border-radius: 6px;
  background: #f8faf8;
}

.community-tournament-card[data-scope="private"] {
  --tournament-accent: #556171;
}

.community-tournament-card[data-scope="public"] {
  --tournament-accent: #d99900;
}

.tournament-arena-dock {
  position: fixed;
  z-index: 140;
  right: 18px;
  bottom: 18px;
  left: 18px;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) 110px minmax(240px, 1.5fr) auto auto 42px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: #fff;
  background: #111820;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #f5bd24;
  box-shadow: 0 18px 54px rgba(16, 24, 32, 0.28);
}

.tournament-arena-dock.hidden {
  display: none;
}

.tournament-arena-identity,
.tournament-arena-clock {
  display: grid;
  gap: 2px;
}

.tournament-arena-identity span,
.tournament-arena-clock span {
  color: #f5bd24;
  font-size: 10px;
  font-weight: 900;
}

.tournament-arena-identity strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-arena-identity small {
  color: #aab4bf;
  font-size: 11px;
}

.tournament-arena-clock strong {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
}

.tournament-arena-ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tournament-arena-ranks > div {
  min-width: 0;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.08);
}

.tournament-arena-ranks > div.is-you {
  color: #17130a;
  background: #f5bd24;
}

.tournament-arena-ranks span,
.tournament-arena-ranks strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-arena-ranks strong {
  margin-top: 2px;
  font-size: 14px;
}

.tournament-arena-dock[data-status="finished"] {
  border-top-color: #55d19c;
}

.tournament-card-head,
.tournament-card-meta,
.tournament-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tournament-card-head > div {
  min-width: 0;
}

.tournament-card-head strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-card-head small,
.tournament-card-meta,
.tournament-card-actions span {
  color: #657083;
  font-size: 10px;
  font-weight: 800;
}

.tournament-scope {
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--tournament-accent);
  font-size: 9px;
  font-weight: 900;
}

.tournament-card-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e1e6e3;
  border-bottom: 1px solid #e1e6e3;
}

.tournament-card-score div {
  display: grid;
  gap: 2px;
  padding: 9px 7px;
  border-right: 1px solid #e1e6e3;
}

.tournament-card-score div:last-child {
  border-right: 0;
}

.tournament-card-score span {
  color: #77818e;
  font-size: 8px;
  font-weight: 900;
}

.tournament-card-score strong {
  font-size: 13px;
}

.tournament-creator {
  width: min(680px, calc(100vw - 28px));
}

.tournament-tier-lock {
  padding: 12px;
  border-left: 3px solid #f1bb24;
  background: #f6f8f5;
}

.tournament-tier-lock span {
  color: #111923;
}

.tournament-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tournament-form-grid .wide-field {
  grid-column: 1 / -1;
}

.voice-package-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  border: 0;
}

.voice-package-list legend {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 900;
}

.voice-package-list label {
  position: relative;
}

.voice-package-list input {
  position: absolute;
  opacity: 0;
}

.voice-package-list span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #dbe1de;
  border-radius: 5px;
  cursor: pointer;
}

.voice-package-list input:checked + span {
  border-color: #111923;
  background: #111923;
  color: #fff;
}

.voice-package-list small {
  font-size: 9px;
  opacity: 0.68;
}

.tournament-cost-preview {
  padding: 12px 0;
  border-top: 1px solid #e1e6e3;
  border-bottom: 1px solid #e1e6e3;
}

.tournament-cost-preview span {
  color: #657083;
  font-size: 11px;
  font-weight: 800;
}

.tournament-cost-preview strong {
  font-size: 20px;
}

.profile-shop-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 24px));
  padding: 0;
  overflow: hidden;
}

.profile-shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #dfe4e1;
}

.profile-shop-head h2 {
  margin: 0;
  font-size: 26px;
}

.shop-pp-balance {
  display: grid;
  justify-items: end;
}

.shop-pp-balance span {
  color: #6c7682;
  font-size: 9px;
  font-weight: 900;
}

.shop-pp-balance strong {
  font-size: 18px;
}

.profile-shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 560px;
}

.shop-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px 22px;
  border-right: 1px solid #dfe4e1;
  background: #111923;
  color: #fff;
}

.shop-preview-label {
  align-self: stretch;
  color: #f2c23a;
  font-size: 9px;
  font-weight: 900;
}

.shop-avatar-wrap {
  position: relative;
  display: grid;
  width: 152px;
  height: 152px;
  margin: 54px 0 24px;
  place-items: center;
  border-radius: 50%;
  isolation: isolate;
}

.shop-avatar-wrap::before,
.shop-avatar-wrap::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.shop-avatar {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 50%;
  background: #eebf3d;
  color: #2b2104;
  font-size: 30px;
  font-weight: 1000;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.5), 0 18px 35px rgba(0, 0, 0, 0.28);
}

.avatar-carbon {
  background: repeating-linear-gradient(135deg, #222a32 0 7px, #11171d 7px 14px);
  color: #e9eef0;
}

.avatar-voltage {
  background: #f5d52e;
  color: #111923;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #171f28, 0 0 24px rgba(245, 213, 46, 0.5);
}

.avatar-hologram {
  background: linear-gradient(135deg, #39d9bd, #70a7ff 48%, #ef78bd);
  color: #fff;
}

.avatar-eclipse {
  background: radial-gradient(circle at 65% 35%, #663d91, #14131c 42%, #050609 70%);
  color: #f5d66f;
  box-shadow: inset 0 0 0 4px #e5c45a, 0 0 26px rgba(122, 73, 170, 0.6);
}

.profile-avatar.avatar-carbon,
.shop-product-visual.avatar-carbon {
  background: #18212a;
  color: #e9eef0;
}

.profile-avatar.avatar-voltage,
.shop-product-visual.avatar-voltage {
  background: #f5d52e;
  color: #111923;
}

.profile-avatar.avatar-hologram,
.shop-product-visual.avatar-hologram {
  background: #4dbea9;
  color: #fff;
}

.profile-avatar.avatar-eclipse,
.shop-product-visual.avatar-eclipse {
  background: #19141f;
  color: #f5d66f;
}

.profile-avatar.frame-silver { box-shadow: 0 0 0 2px #c7d0d5, 0 0 0 3px #69747d; }
.profile-avatar.frame-gold { box-shadow: 0 0 0 2px #efbe35, 0 0 0 4px #6f5110; }
.profile-avatar.frame-prism { box-shadow: 0 0 0 2px #67d8c3, 0 0 0 4px #8a74d7; }
.profile-avatar.frame-champion { box-shadow: 0 0 0 2px #f3c52f, 0 0 0 4px #111923, 0 0 12px #e5ad18; }
.profile-avatar.effect-spark { animation: profile-spark 1.6s ease-in-out infinite; }
.profile-avatar.effect-scan { animation: profile-scan 2.2s ease-in-out infinite; }
.profile-avatar.effect-aurora { animation: profile-aurora 2.8s ease-in-out infinite; }
.profile-avatar.effect-jackpot { animation: profile-jackpot 1.2s steps(2, end) infinite; }

.profile-title {
  color: #997000;
  font-size: 8px;
  font-weight: 950;
}

.frame-silver::before,
.frame-gold::before,
.frame-prism::before,
.frame-champion::before {
  inset: 5px;
  border: 4px solid #c7d0d5;
  border-radius: 50%;
  z-index: -1;
}

.frame-gold::before {
  border-color: #efbe35;
  box-shadow: 0 0 0 4px #6f5110;
}

.frame-prism::before {
  border: 5px solid transparent;
  background: linear-gradient(90deg, #42d6b7, #7a8fff, #ef79be, #f3d145) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: shop-frame-spin 3s linear infinite;
}

.frame-champion::before {
  inset: 0;
  border: 7px double #f3c52f;
  box-shadow: 0 0 0 3px #101821, 0 0 24px rgba(243, 197, 47, 0.55);
}

.effect-spark i,
.effect-scan i,
.effect-aurora i,
.effect-jackpot i {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f5d33f;
  animation: shop-spark 1.6s ease-in-out infinite;
}

.shop-avatar-wrap i:nth-child(1) { top: 4px; left: 42%; }
.shop-avatar-wrap i:nth-child(2) { top: 42%; right: 1px; animation-delay: 0.4s; }
.shop-avatar-wrap i:nth-child(3) { bottom: 5px; left: 32%; animation-delay: 0.8s; }
.shop-avatar-wrap i:nth-child(4) { top: 52%; left: 3px; animation-delay: 1.2s; }

.effect-scan::after {
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(transparent 42%, rgba(77, 235, 201, 0.75) 49%, transparent 56%);
  animation: shop-scan 1.8s linear infinite;
}

.effect-aurora::after {
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(60, 224, 186, 0.42), transparent, rgba(221, 91, 183, 0.42), transparent);
  filter: blur(8px);
  z-index: -2;
  animation: shop-frame-spin 4s linear infinite;
}

.effect-jackpot i {
  width: 7px;
  height: 10px;
  border-radius: 1px;
  background: #f0bd2d;
  animation: shop-coin-rain 1.4s linear infinite;
}

.shop-preview-stage > strong {
  font-size: 18px;
}

.shop-preview-stage > b {
  min-height: 18px;
  margin: 5px 0 12px;
  color: #f2c23a;
  font-size: 10px;
}

.shop-preview-stage > small {
  min-height: 38px;
  color: #aab4be;
  text-align: center;
}

.shop-preview-stage .primary {
  margin-top: auto;
}

.shop-preview-stage .ghost {
  margin-top: 7px;
  border-color: #596573;
  color: #fff;
}

.shop-catalog {
  min-width: 0;
  overflow-y: auto;
  background: #f5f7f4;
}

.shop-category-tabs {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
  border-bottom: 1px solid #dfe4e1;
  background: rgba(255, 255, 255, 0.96);
}

.shop-category-tabs button {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #687382;
  font-weight: 800;
  cursor: pointer;
}

.shop-category-tabs button.active {
  border-bottom-color: #111923;
  color: #111923;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
}

.shop-product {
  display: grid;
  min-height: 160px;
  gap: 7px;
  padding: 12px;
  border: 1px solid #dbe1de;
  border-top: 3px solid var(--rarity, #9ca6ae);
  border-radius: 5px;
  background: #fff;
  color: #111923;
  text-align: left;
  cursor: pointer;
}

.shop-product[data-rarity="rare"] { --rarity: #2a9e83; }
.shop-product[data-rarity="epic"] { --rarity: #7968cf; }
.shop-product[data-rarity="legendary"] { --rarity: #e3aa17; }

.shop-product.selected {
  outline: 2px solid #111923;
  outline-offset: -3px;
}

.shop-product-visual {
  display: grid;
  height: 64px;
  place-items: center;
  background: #f1f4f2;
  font-size: 10px;
  font-weight: 1000;
}

.shop-product > span {
  color: #7a8490;
  font-size: 8px;
  font-weight: 900;
}

.shop-product > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product > b {
  margin-top: auto;
  font-size: 11px;
}

.shop-product.owned > b {
  color: #087f68;
}

@keyframes shop-frame-spin {
  to { transform: rotate(360deg); }
}

@keyframes shop-spark {
  0%, 100% { opacity: 0.15; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes shop-scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shop-coin-rain {
  from { opacity: 0; transform: translateY(-16px) rotate(0deg); }
  35% { opacity: 1; }
  to { opacity: 0; transform: translateY(24px) rotate(240deg); }
}

@keyframes profile-spark {
  50% { filter: brightness(1.35); transform: scale(1.04); }
}

@keyframes profile-scan {
  50% { filter: saturate(1.5) brightness(1.2); }
}

@keyframes profile-aurora {
  50% { filter: hue-rotate(55deg) brightness(1.16); }
}

@keyframes profile-jackpot {
  50% { filter: drop-shadow(0 0 5px #eab61c); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-avatar-wrap,
  .shop-avatar-wrap::before,
  .shop-avatar-wrap::after,
  .shop-avatar-wrap i,
  .profile-avatar {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .rank-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-guide-tier {
    grid-template-rows: auto minmax(52px, auto) auto;
  }

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

  .rank-system-grid > div:nth-child(2) {
    border-right: 0;
  }

  .rank-system-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe4e1;
  }

  .tournament-arena-dock {
    right: 8px;
    bottom: 8px;
    left: 8px;
    grid-template-columns: 1fr auto 38px;
    gap: 8px;
    padding: 10px;
  }

  .tournament-arena-clock {
    grid-column: 2;
    grid-row: 1;
  }

  .tournament-arena-clock strong {
    font-size: 20px;
  }

  .tournament-arena-ranks {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tournament-arena-dock > .ghost {
    grid-column: 1;
    grid-row: 3;
  }

  .tournament-arena-dock > .danger {
    grid-column: 2;
    grid-row: 3;
  }

  .tournament-arena-dock > .icon-button {
    grid-column: 3;
    grid-row: 1;
  }
  .master-rail {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .community-tournament-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #rankGuideModal {
    overflow-x: hidden;
    padding: 0;
  }

  .rank-guide-dialog {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 16px;
    border-radius: 0;
  }

  .rank-guide-head h2 {
    font-size: 22px;
  }

  .rank-guide-section-title {
    display: grid;
    gap: 2px;
  }

  .rank-guide-grid,
  .rank-system-grid {
    grid-template-columns: 1fr;
  }

  .rank-guide-tier {
    grid-template-rows: auto;
  }

  .rank-system-grid > div {
    border-right: 0;
    border-bottom: 1px solid #dfe4e1;
  }

  .rank-system-grid > div:last-child {
    border-bottom: 0;
  }

  .rank-status-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .membership-options {
    grid-template-columns: 1fr;
  }

  .membership-option {
    grid-template-columns: 1fr auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #dfe4e1;
  }

  .membership-option:last-child {
    border-bottom: 0;
  }

  .master-rail {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline: 16px;
  }

  .master-rail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
  }

  .master-card {
    flex-basis: 142px;
  }

  .community-tournament-band {
    padding: 27px 16px 32px;
  }

  .community-tournament-head {
    display: grid;
  }

  .community-tournament-head > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tournament-code-form input {
    width: 100%;
  }

  .community-tournament-list,
  .tournament-form-grid {
    grid-template-columns: 1fr;
  }

  .tournament-form-grid .wide-field {
    grid-column: auto;
  }

  .voice-package-list {
    grid-template-columns: 1fr;
  }

  .profile-shop-dialog {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .profile-shop-head {
    grid-template-columns: minmax(0, 1fr) auto 40px;
    gap: 8px;
    padding: 13px 14px;
  }

  .profile-shop-head h2 {
    font-size: 20px;
  }

  .profile-shop-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .shop-preview-stage {
    min-height: 365px;
    border-right: 0;
  }

  .shop-avatar-wrap {
    width: 132px;
    height: 132px;
    margin: 25px 0 15px;
  }

  .shop-avatar {
    width: 100px;
    height: 100px;
  }

  .shop-preview-stage .primary {
    margin-top: 18px;
  }

  .shop-catalog {
    overflow: visible;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
}
