/* Container normalization matching Reference Mockup - Fluid layout without excessive black gutters */
.site-shell .workspace {
  width: 100% !important;
  max-width: 100% !important;
}
.site-shell main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 28px 36px !important;
  box-sizing: border-box !important;
}
.site-shell .page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.v2-page,
.site-shell .page.v2-page,
.site-shell .page[data-page="/roster"],
.site-shell .page[data-page="/store"],
.site-shell .page[data-page="/modes"],
.site-shell .page[data-page="/profile"],
.site-shell .page[data-page="/controls"],
.site-shell .page[data-page="/settings"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 8px 0 36px;
  color: #eee;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.v2-page * {
  box-sizing: border-box;
}
.v2-page [hidden] {
  display: none !important;
}
.v2-heading {
  margin: 0 0 26px;
}
.v2-heading h1 {
  font:
    750 clamp(26px, 3vw, 36px)/1.2 Inter,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.v2-heading p {
  color: #b2b2b2;
  margin: 0;
  line-height: 1.6;
  max-width: 820px;
}
.v2-page h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 12px;
}
.v2-page h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.v2-page p {
  line-height: 1.6;
}
.v2-muted,
.v2-page small {
  color: #b2b2b2;
}
.v2-error {
  color: #ffb5b5;
}
.v2-message {
  min-height: 1.6em;
}
.v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  background: #262626;
  color: #ededed;
  border: 1px solid #414141;
  border-radius: 6px;
  font:
    600 14px/1.4 Inter,
    "Segoe UI",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.v2-button:hover {
  background: #333;
  color: #fff;
  border-color: #666;
}
.v2-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.v2-primary {
  background: #e5e5e5;
  color: #181818;
  border-color: #e5e5e5;
}
.v2-primary:hover {
  background: #fff;
  color: #111;
}
.v2-text-link {
  color: #d4d4d4;
  font-size: 13px;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}
.v2-page :focus-visible,
.v2-dialog :focus-visible {
  outline: 2px solid #888888;
  outline-offset: 3px;
}
.v2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: none;
  padding-bottom: 0;
}
.v2-tabs .v2-button {
  background: #141414;
  border: 1px solid #262626;
  color: #9e9e9e;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 550;
  transition: all 0.15s ease;
}
.v2-tabs .v2-button:hover {
  background: #1c1c1c;
  color: #ededed;
  border-color: #383838;
}
.v2-tabs .is-selected {
  background: #ffffff;
  border-color: #ffffff;
  color: #121212;
  font-weight: 700;
}
.v2-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181818;
  border: 1px solid #282828;
  color: #9e9e9e;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.v2-tab-btn svg {
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.8;
}
.v2-tab-btn:hover {
  background: #222222;
  border-color: #383838;
  color: #ffffff;
}
.v2-tab-btn:hover svg {
  opacity: 1;
}
.v2-tab-btn.is-selected {
  background: #ffffff;
  border-color: #ffffff;
  color: #121212;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}
.v2-tab-btn.is-selected svg {
  opacity: 1;
  fill: #121212;
}
.v2-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1910;
  border: 1px solid #4a3818;
  color: #f6c85f;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.2px;
  margin-top: 8px;
}
/* Suppression of legacy static roster elements on initial render */
[data-page="/roster"] .page-heading,
[data-page="/roster"] .roster-tools,
[data-page="/roster"] .directory-layout,
[data-page="/roster"] .roster-guide {
  display: none !important;
}

/* Roster Header matching Mockup - Pure Neutral Charcoal */
.v2-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #141414;
  padding: 24px 28px;
  border: 1px solid #262626;
  min-height: 140px;
}
.v2-roster-header-info {
  max-width: 580px;
  z-index: 2;
  position: relative;
}
.v2-roster-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  color: #ffffff;
}
.v2-roster-header p {
  color: #a0a0a0;
  font-size: 13.5px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.v2-roster-subtabs {
  display: flex;
  gap: 10px;
  align-items: center;
}
.v2-roster-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.v2-roster-subtab.is-active {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15) !important;
}
.v2-roster-subtab.is-active svg {
  fill: #121212 !important;
}
.v2-roster-subtab:not(.is-active) {
  background: #1c1c1c !important;
  color: #a0a0a0 !important;
  border: 1px solid #2e2e2e !important;
}
.v2-roster-subtab:not(.is-active):hover {
  background: #252525 !important;
  color: #ffffff !important;
  border-color: #3e3e3e !important;
}
.v2-roster-subtab:active {
  transform: translateY(1px);
}
.v2-roster-hero-banner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  overflow: hidden;
}
.v2-roster-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  mask-image: linear-gradient(to right, transparent, black 35%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 35%);
  opacity: 0.85;
}

/* Toolbar matching Mockup & Roblox Catalog - Fixed/Sticky Search & Filters */
.v2-toolbar {
  position: sticky;
  top: var(--app-header, 72px);
  z-index: 25;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 16px;
}
.v2-toolbar-left {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v2-toolbar-right {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.v2-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v2-filter-pill:hover {
  background: #252525;
  color: #ffffff;
  border-color: #3e3e3e;
}
.v2-filter-pill.is-active {
  background: #ffffff;
  color: #121212;
  border-color: #ffffff;
  font-weight: 600;
}
.v2-toolbar-center {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.v2-toolbar-left select,
.v2-toolbar-center select,
.v2-toolbar-right select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%23a0a0a0'%3E%3Cpath d='M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
  border-radius: 20px;
  background-color: #1c1c1c;
  border: 1px solid #2e2e2e;
  font-weight: 500;
  color: #d0d0d0;
}
.v2-toolbar-left select:hover,
.v2-toolbar-center select:hover,
.v2-toolbar-right select:hover {
  background-color: #252525;
  border-color: #3e3e3e;
  color: #ffffff;
}
.v2-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: #a0a0a0;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.v2-view-btn.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #121212;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* Roblox Marketplace-style Pill Dropdowns */
.v2-dropdown {
  position: relative;
  display: inline-block;
}
.v2-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  color: #d6d6d6;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.v2-dropdown-btn:hover {
  background: #252525;
  border-color: #3e3e3e;
  color: #ffffff;
}
.v2-dropdown-btn.is-filtered {
  border-color: #555555;
  color: #ffffff;
  background: #222222;
}
.v2-dropdown-btn[aria-expanded="true"] {
  border-color: #ffffff;
  background: #222222;
  color: #ffffff;
}
.v2-dropdown-chevron {
  display: inline-block;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.v2-dropdown-btn[aria-expanded="true"] .v2-dropdown-chevron {
  transform: rotate(180deg);
}
.v2-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  max-width: 280px;
  background: #161616;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  z-index: 100;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  border-bottom: 1px solid #242424;
  margin-bottom: 4px;
}
.v2-dropdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.v2-dropdown-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  padding: 0;
}
.v2-dropdown-close:hover {
  color: #ffffff;
  background: #242424;
}
.v2-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.v2-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  width: 100%;
}
.v2-dropdown-item:hover {
  background: #222222;
  color: #ffffff;
}
.v2-dropdown-item.is-active {
  background: #252525;
  color: #ffffff;
  font-weight: 600;
}
.v2-dropdown-radio {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #555555;
  flex-shrink: 0;
  position: relative;
  transition: all 0.12s ease;
}
.v2-dropdown-radio.is-checked {
  border-color: #ffffff;
  background: #ffffff;
}
.v2-dropdown-radio.is-checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #161616;
}
.v2-dropdown-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* In-page Search Bar matching Roblox Marketplace */
.v2-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 250px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  transition: all 0.15s ease;
  flex-shrink: 1;
}
.v2-search-box:focus-within {
  border-color: #555555;
  background: #222222;
  box-shadow: 0 0 0 1px #555555;
}
.v2-search-icon {
  width: 14px;
  height: 14px;
  color: #888888;
  margin-left: 14px;
  flex-shrink: 0;
}
.v2-search-input {
  width: 100%;
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 6px 10px;
  border: 0 !important;
  background: transparent !important;
  color: #f0f0f0 !important;
  font-size: 13px !important;
  outline: none !important;
  min-height: auto !important;
}
.v2-search-input::-webkit-search-cancel-button,
.v2-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.v2-search-input::placeholder {
  color: #999999;
}
.v2-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a2a2a;
  border: none;
  color: #888888;
  font-size: 12px;
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.v2-search-clear:hover {
  background: #383838;
  color: #ffffff;
}

.v2-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #9e9e9e;
}
.v2-page input,
.v2-page select {
  min-height: 38px;
  background: #1c1c1c;
  color: #eee;
  border: 1px solid #2e2e2e;
  padding: 8px 12px;
  border-radius: 8px;
  font:
    13px Inter,
    "Segoe UI",
    sans-serif;
  max-width: 100%;
}
.v2-page input:focus,
.v2-page select:focus {
  border-color: #555555;
  outline: none;
}

/* Keep cards compact at any column count, with two columns on narrow screens. */
.v2-grid {
  display: grid;
  --card-gap: clamp(10px, 1.4vw, 16px);
  grid-template-columns: repeat(auto-fill, minmax(0, min(200px, calc((100% - var(--card-gap)) / 2))));
  gap: var(--card-gap);
  align-items: stretch;
}

.v2-roster-series-heading {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
}

.v2-roster-form-chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 3px 3px 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.v2-roster-form-chips > button {
  flex-shrink: 0;
  white-space: nowrap;
}

.v2-roster-transform-icon {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.v2-roster-form-link {
  color: inherit;
  text-decoration: none;
}

.v2-roster-form-link.has-variant-number {
  display: flex;
  gap: 0.25em;
}

.fighter-card-label-base {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-variant-number > :last-child {
  flex: none;
}

/* Card & Character Portrait - Pure Charcoal Xám Đen & Properly Scaled Characters */
.v2-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #262626;
  border-radius: 10px;
  overflow: hidden;
  background: #181818;
  color: #eee;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.v2-card:hover,
.v2-card.is-active,
.v2-card:focus-visible {
  border-color: #444444;
  background: #1e1e1e;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}
.v2-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #252525 0%, #151515 80%);
  border-bottom: 1px solid #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-portrait > img {
  display: block;
  width: 90%;
  height: 86%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
  transition: filter 0.25s ease;
}
.v2-card:hover .v2-portrait > img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
}
/* Small square box in the corner for the sharp render artwork */
.v2-portrait-thumb {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #141414;
  border: 1px solid #333333;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  z-index: 2;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-portrait-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  filter: none !important;
  transform: none !important;
  image-rendering: auto !important;
  display: block !important;
}
.v2-card:hover .v2-portrait-thumb {
  border-color: #555555;
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.85);
}
.v2-portrait[data-empty="true"]::after {
  content: "";
  position: absolute;
  width: 36%;
  height: 42%;
  border: 1px solid #363636;
  border-radius: 42% 42% 8px 8px;
  inset: 32% 32%;
}
.v2-card-copy {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  min-width: 0;
  flex: 1;
  background: #181818;
}
.v2-card-copy h2,
.v2-card-copy h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-card-series {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888888;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-series-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  opacity: 0.75;
  flex-shrink: 0;
}
.v2-card-footer {
  display: flex;
  align-items: stretch !important;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
  min-height: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  box-sizing: border-box !important;
}
.v2-badge {
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  padding: 0 10px;
  min-height: 32px;
  height: 32px;
  box-sizing: border-box;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.v2-badge-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.v2-state-free {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.v2-state-trial {
  color: #ffd9a0;
  background: #312519;
  border: 1px solid #775634;
}
.v2-state-locked {
  color: #ff9999 !important;
  background: rgba(220, 38, 38, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
}
.v2-card:hover .v2-state-locked {
  background: rgba(220, 38, 38, 0.32) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  color: #ffffff !important;
}
.v2-state-owned {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.v2-state-partial {
  color: #e0e0e0;
  background: #242424;
  border: 1px solid #383838;
}
.v2-state-unavailable {
  color: #888888;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
}
.v2-state-maintenance {
  color: #f5bd6e;
  background: #29231b;
  border: 1px solid #6b5231;
}
.v2-fav-btn {
  background: #202020;
  border: 1px solid #303030;
  color: #888888;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 0;
}
.v2-fav-btn:hover {
  border-color: #f6c85f;
  color: #f6c85f;
  background: #2a261c;
  transform: scale(1.05);
}
.v2-fav-btn.is-active {
  border-color: #f6c85f;
  color: #f6c85f;
  background: #2a261c;
}
.v2-star-icon {
  display: inline-block;
}

/* Overlay badge on top-left of card portrait */
.v2-portrait-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Store Price & Cart Button - Equalized 32px Box Dimensions */
.v2-store-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  box-sizing: border-box;
  background: #202020;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f5c042;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
}
.v2-card-footer .v2-store-price {
  margin: 0;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
.v2-store-price svg {
  display: inline-block;
  flex-shrink: 0;
}
.v2-store-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-height: 32px;
  box-sizing: border-box;
  background: #202020;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: #a0a0a0;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}
.v2-card-footer .v2-badge,
.v2-card-footer .v2-form-buy-btn,
.v2-card-footer .v2-fav-btn {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.v2-store-cart-btn:hover {
  background: #282828;
  border-color: #444444;
  color: #ffffff;
  transform: scale(1.06);
}

/* Store Hero Banner */
.v2-store-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 80% 50%, #222222 0%, #171717 50%, #141414 85%);
  border: 1px solid #282828;
  padding: 28px 36px;
  min-height: 160px;
}
.v2-store-hero-info {
  max-width: 480px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.v2-store-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #242424;
  border: 1px solid #383838;
  color: #ffffff;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.v2-store-banner-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}
.v2-store-banner-sub {
  font-size: 13.5px;
  color: #a0a0a0;
  margin: 0 0 16px;
}
.v2-store-banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: #ffffff;
  color: #121212;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.v2-store-banner-btn:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.v2-store-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  pointer-events: none;
  overflow: hidden;
}
.v2-store-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  opacity: 0.85;
}
.v2-store-banner-dots {
  position: absolute;
  bottom: 14px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.v2-store-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555555;
  transition: all 0.2s ease;
}
.v2-store-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: #ffffff;
}

/* Store Bundle Showcase */
.v2-store-announcement {
  background: linear-gradient(135deg, #1f1f1f 0%, #161616 100%);
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v2-store-announcement-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(245, 192, 66, 0.15);
  border: 1px solid rgba(245, 192, 66, 0.4);
  color: #ffd166;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.v2-store-announcement h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.v2-store-announcement p {
  color: #a0a0a0;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
  max-width: 720px;
}
.v2-store-announcement-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  color: #121212;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-top: 4px;
}
.v2-store-announcement-link:hover {
  background: #e5e5e5;
  color: #000000;
  transform: translateY(-1px);
}
.v2-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.v2-bundle-card {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.15s ease;
}
.v2-bundle-card:hover {
  border-color: #3e3e3e;
}
.v2-bundle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v2-bundle-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: #252525;
  border: 1px solid #383838;
  color: #e0e0e0;
  text-transform: uppercase;
}
.v2-bundle-badge.is-highlight {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ff9999;
}
.v2-bundle-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}
.v2-bundle-card p {
  font-size: 12.5px;
  color: #999999;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.v2-bundle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #262626;
}
.v2-bundle-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #f5c042;
}
.v2-bundle-price small {
  font-size: 11px;
  color: #999999;
  text-decoration: line-through;
  margin-left: 4px;
  font-weight: normal;
}
.v2-bundle-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #262626;
  border: 1px solid #363636;
  color: #888888;
  cursor: not-allowed;
}
.v2-bundle-btn.is-active {
  background: #f5c042;
  border-color: #f5c042;
  color: #121212;
  cursor: pointer;
  font-weight: 700;
}
.v2-bundle-btn.is-active:hover {
  background: #ffd166;
  color: #000000;
}

/* Numbered Pagination - Pure Neutral Charcoal */
.v2-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 20px;
}
.v2-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v2-page-btn:hover:not(:disabled) {
  background: #252525;
  color: #ffffff;
  border-color: #3e3e3e;
}
.v2-page-btn.is-active {
  background: #ffffff;
  color: #121212;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}
.v2-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.v2-page-arrow {
  font-weight: 700;
  font-size: 15px;
}
.v2-page-ellipsis {
  color: #666666;
  padding: 0 4px;
}
.v2-empty {
  padding: 32px 20px;
  border: 1px dashed #444;
  color: #bdbdbd;
  border-radius: 8px;
  grid-column: 1/-1;
}
.v2-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
.v2-mode-card {
  background: #141414;
  border: 1px solid #282828;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.v2-mode-card:hover {
  border-color: #3e3e3e;
  background: #171717;
}
.v2-stage {
  aspect-ratio: 16/9;
  background: #1f1f1f;
  overflow: hidden;
  border-bottom: 1px solid #262626;
  position: relative;
}
.v2-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-mode-card h2 {
  margin: 20px 20px 8px;
  font-size: 20px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}
.v2-mode-card p {
  margin: 0 20px 20px;
  color: #9e9e9e;
  flex: none;
  font-size: 13.5px;
  line-height: 1.5;
}
.v2-mode-card .v2-button {
  margin: auto 20px 20px;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.v2-mode-card > .v2-stage { flex: none; }
.v2-mode-card > .mode-state-label {
  align-self: flex-start;
  max-width: calc(100% - 40px);
  margin: 0 20px 12px;
  overflow-wrap: anywhere;
}
.v2-mode-card > .mode-state-message {
  margin: 0 20px 16px;
}
.v2-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #a0a0a0;
  background: #181818;
  border: 1px solid #282828;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.15s ease;
}
.v2-back-btn:hover {
  background: #222222;
  color: #ffffff;
  border-color: #383838;
}
.v2-detail {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px 28px;
  margin: 0 0 28px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
}
.v2-detail .v2-button {
  margin: 10px 0;
}
.v2-detail .v2-portrait {
  width: 150px;
  height: 200px;
  min-width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: radial-gradient(circle at 50% 55%, #252525 0%, #151515 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.v2-detail .v2-portrait .v2-portrait-thumb {
  width: 48px;
  height: 48px;
  right: 8px;
  bottom: 8px;
}
.v2-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.v2-detail-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
.v2-detail-info .v2-card-series {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888888;
}
.v2-detail-family-name {
  font-size: 14px;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}
.v2-detail-actions {
  display: flex;
  align-items: center !important;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.v2-detail-actions .v2-badge,
.v2-detail-actions .v2-detail-btn {
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.v2-detail-actions .v2-badge {
  padding: 0 14px !important;
  font-size: 12px !important;
}
.v2-detail-btn {
  gap: 6px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #121212;
  background: #ffffff;
  border: 1px solid #ffffff;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.v2-detail-btn:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
  transform: translateY(-1px);
}

.v2-detail-evolution-btn {
  color: #f6c85f;
  background: #272014;
  border-color: #654d21;
  cursor: pointer;
}

.v2-detail-evolution-btn:hover {
  color: #ffe29a;
  background: #312514;
  border-color: #9c7531;
}
.v2-detail-buy-btn {
  background: #00b06f !important;
  border-color: #00b06f !important;
  color: #121212 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 176, 111, 0.35) !important;
}
.v2-detail-buy-btn:hover {
  background: #00c97f !important;
  border-color: #00c97f !important;
  color: #121212 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 176, 111, 0.5) !important;
}
.v2-detail-play-btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #121212 !important;
}
.v2-detail-play-btn:hover {
  background: #eaeaea !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}
.v2-form-buy-btn {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: #00b06f !important;
  border: 1px solid #00b06f !important;
  color: #121212 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  flex: 1;
}
.v2-form-buy-btn:hover {
  background: #00c97f !important;
  border-color: #00c97f !important;
  color: #121212 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 176, 111, 0.4) !important;
}
.v2-card-copy .v2-store-price {
  margin: 6px 0 8px;
  align-self: flex-start;
}
.v2-card-copy .v2-button.v2-primary {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}
.v2-card-copy .v2-text-link {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #a0a0a0;
  text-decoration: none;
}
.v2-card-copy .v2-text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.v2-dialog {
  color: #eee;
  background: #161616;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 24px 28px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  font-family: Inter, "Segoe UI", sans-serif;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.v2-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.v2-dialog .v2-portrait {
  width: 90px;
  aspect-ratio: 3/4;
  border-radius: 6px;
  border: 1px solid #2e2e2e;
  margin: 16px auto;
  overflow: hidden;
}
.v2-dialog h2 {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.v2-dialog h3 {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ededed;
  margin: 0 0 6px;
}
.v2-dialog p {
  text-align: center;
  font-size: 13px;
  color: #b0b0b0;
  line-height: 1.5;
  margin: 3px 0;
}
.v2-dialog p:nth-of-type(1) {
  color: #f6c85f;
  font-weight: 600;
  font-size: 14.5px;
}
.v2-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.v2-dialog .v2-button {
  min-width: 100px;
}
.v2-panel {
  min-width: 0;
  background: #191919;
  border: 1px solid #363636;
  border-radius: 8px;
  padding: 24px;
}
.v2-panel p {
  font-size: 14px;
}
/* ========================================================
   PROFILE REDESIGN V2 - ROBLOX CHARCOAL DASHBOARD (v1.4.8)
   ======================================================== */
.v2-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 24px 28px;
  gap: 24px;
}
.v2-profile-hero-left {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 20px;
}
.v2-profile-avatar-wrap {
  display: grid;
  place-items: center;
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #ff4757;
  overflow: hidden;
  background: #1c1c1c;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.v2-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-profile-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-profile-hero-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.v2-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.v2-profile-name-row h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.v2-profile-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 176, 111, 0.15);
  border: 1px solid rgba(0, 176, 111, 0.35);
  color: #00b06f;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.v2-profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.v2-profile-joined {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888888;
  font-size: 12px;
}
.v2-profile-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #202020;
  border: 1px solid #333333;
  color: #d4d4d4;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.v2-profile-hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
}
.v2-hero-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.v2-hero-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
}
.v2-hero-stat-lbl {
  font-size: 12px;
  color: #888888;
  font-weight: 500;
  white-space: nowrap;
}

/* Quick 6-card stat strip */
.v2-profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.v2-stat-strip-card {
  min-width: 0;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
.v2-stat-strip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #888888;
  font-weight: 600;
}
.v2-stat-strip-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Main 2-column workspace */
.v2-profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.v2-profile-main,
.v2-profile-col-left,
.v2-profile-col-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}
.v2-profile-panel {
  min-width: 0;
  background: #141414 !important;
  border: 1px solid #242424 !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  box-sizing: border-box;
}
.v2-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.v2-panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-panel-link {
  font-size: 12px;
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.v2-panel-link:hover {
  color: #ffffff;
}
.v2-profile-combat-panel {
  min-width: 0;
}
.v2-profile-combat-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.v2-profile-combat-metric {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-content: stretch;
  grid-template-rows: minmax(36px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: #1c1c1c;
  border: 1px solid #282828;
  border-radius: 8px;
}
.v2-profile-combat-metric > svg {
  width: 18px;
  height: 18px;
  color: #b2b2b2;
}
.v2-profile-combat-metric > span {
  font-size: 12px;
  line-height: 1.5;
  color: #b2b2b2;
  overflow-wrap: anywhere;
}
.v2-profile-combat-metric > strong {
  grid-column: 1 / -1;
  font-size: 22px;
  line-height: 1.25;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.v2-profile-combat-panel > .v2-muted {
  margin: 14px 0 0;
  font-size: 12px;
}

/* Favorite Fighters Grid */
.v2-profile-fav-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.v2-fav-fighter-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.v2-fav-fighter-port {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid #282828;
}
.v2-fav-fighter-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-fav-fighter-port > .v2-portrait {
  min-height: 0;
  height: 100%;
  aspect-ratio: 1;
  border: 0;
}
.v2-fav-fighter-port .v2-portrait-main {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transform: none;
  filter: none;
}
.v2-fav-fighter-port .v2-portrait-thumb {
  display: none;
}
.v2-fav-fighter-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.4;
  min-height: 2.8em;
  overflow-wrap: anywhere;
}
.v2-fav-fighter-uses {
  font-size: 11px;
  color: #999999;
}

/* Recent Match History Table */
.v2-profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.v2-profile-table th {
  background: #161616;
  color: #888888;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid #242424;
  text-align: left;
}
.v2-profile-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1e1e1e;
  color: #cccccc;
  vertical-align: middle;
}
.v2-profile-table tr:last-child td {
  border-bottom: none;
}
.v2-match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1.2;
}
.v2-match-win {
  background: rgba(0, 176, 111, 0.15);
  border: 1px solid rgba(0, 176, 111, 0.35);
  color: #00b06f;
}
.v2-match-loss {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.35);
  color: #ff4d4d;
}
.v2-match-draw {
  background: rgba(160, 160, 160, 0.15);
  border: 1px solid rgba(160, 160, 160, 0.35);
  color: #a0a0a0;
}
.v2-table-date {
  color: #999999 !important;
  font-size: 12px !important;
}

/* Collection Progress */
.v2-prog-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}
.v2-prog-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
.v2-prog-percent {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.v2-prog-bar-track {
  width: 100%;
  height: 8px;
  background: #242424;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 10px;
}
.v2-prog-bar-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.v2-prog-footnote {
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
  margin: 0;
}

/* Coin Activity List */
.v2-activity-list {
  display: flex;
  flex-direction: column;
}
.v2-activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #1e1e1e;
}
.v2-activity-row:last-child {
  border-bottom: none;
}
.v2-activity-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.v2-activity-info-wrap {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.v2-activity-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
.v2-activity-date {
  font-size: 11.5px;
  color: #999999;
}
.v2-activity-delta-pos {
  font-size: 13px;
  font-weight: 700;
  color: #00b06f;
  white-space: nowrap;
}
.v2-activity-delta-neg {
  font-size: 13px;
  font-weight: 700;
  color: #ff4d4d;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .v2-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .v2-profile-hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .v2-profile-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .v2-profile-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .v2-profile-hero {
    padding: 20px;
  }
  .v2-profile-hero-left {
    gap: 12px;
  }
  .v2-profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-profile-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-profile-fav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .v2-profile-combat-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body[data-route="/settings"] [data-page="/settings"] > :not(.v2-settings) {
  display: none !important;
}
.v2-settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
}
.v2-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-settings-nav .v2-button {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  font-weight: 500;
  color: #b8b8b8;
}
.v2-settings-nav [aria-current="page"] {
  background: #292929;
  color: #fff;
  border-left: 2px solid #ddd;
  border-radius: 0;
}
.v2-setting-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #343434;
  font-size: 14px;
}
.v2-settings .v2-panel > h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #343434;
}
.v2-settings .v2-panel > .v2-button {
  margin-top: 20px;
}
.v2-controls-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
  align-items: start;
}
.v2-keyboard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.v2-keyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 20px;
  background: #141414;
  border: 1px solid #282828;
  border-radius: 8px;
}
.v2-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.v2-cluster-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-bottom: 2px;
}
.v2-cluster-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.v2-cluster-spacer {
  width: 48px;
  height: 48px;
  visibility: hidden;
}
.v2-keycap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 4px 6px;
  background: #1c1c1c;
  color: #ededed;
  border: 1px solid #363636;
  border-bottom-width: 3px;
  border-radius: 6px;
  box-shadow: 0 2px 0 #111;
  font-family: inherit;
  transition: all 0.15s ease;
}
.v2-keycap .v2-key-val {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.1;
  color: #f0f0f0;
}
.v2-keycap .v2-key-action {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.3px;
}
.v2-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  gap: 14px;
  border-bottom: 1px solid #222;
  font-size: 13px;
}
.v2-key-row .v2-keycap {
  min-width: 48px;
  height: 32px;
  font-size: 12px;
  flex-direction: row;
}
.v2-keycap.is-capturing {
  outline: 2px solid #ddd;
  background: #333;
}
.v2-shortcut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  font-size: 13px;
}
.v2-shortcut-row .v2-keycap {
  min-width: 40px;
  height: 32px;
  font-size: 12px;
  flex-direction: row;
}
.v2-controls-footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.v2-controls-footer p {
  width: 100%;
  font-size: 13px;
  color: #bbb;
}
@media (max-width: 1100px) {
  .v2-controls-layout {
    grid-template-columns: 1fr;
  }
  .v2-keyboard-actions {
    grid-template-columns: 1fr 1fr;
  }
  .v2-profile-grid {
    grid-template-columns: 1fr 1fr;
  }
  .v2-mode-card h2 {
    font-size: 20px;
  }
  .v2-list-card .v2-card-copy {
    grid-template-columns: 1fr auto;
  }
  .v2-list-card .v2-card-copy p {
    grid-column: 1;
  }
}
@media (max-width: 960px) {
  .v2-mode-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .v2-page {
    padding-top: 4px;
  }
  .v2-mode-grid,
  .v2-profile-grid,
  .v2-settings-layout,
  .v2-keyboard-actions {
    grid-template-columns: 1fr;
  }
  .v2-mode-grid {
    gap: 18px;
  }
  .v2-profile-grid > section:nth-child(n + 3) {
    grid-column: auto;
  }
  .v2-toolbar > * {
    flex: 1;
    min-width: 120px;
  }
  .v2-toolbar > .v2-toolbar-right {
    flex-basis: 100%;
    min-width: 0;
  }
  .v2-toolbar-right .v2-search-box {
    flex: 1 1 250px;
  }
  .v2-toolbar > input {
    flex-basis: 100%;
  }
  .v2-settings-nav {
    flex-direction: row;
    overflow: auto;
  }
  .v2-settings-nav .v2-button {
    white-space: nowrap;
  }
  .v2-panel {
    padding: 18px;
  }
  .v2-profile-banner {
    padding: 18px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .v2-profile-banner h2 {
    font-size: 21px;
  }
  .v2-stats > div {
    padding: 14px 10px;
  }
  .v2-stats dt {
    font-size: 11px;
  }
  .v2-stats dd {
    font-size: 20px;
  }
  .v2-detail {
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 16px;
  }
  .v2-setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .v2-ledger-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .v2-ledger-row small {
    grid-column: 1;
  }
  .v2-ledger-row strong {
    grid-column: 2;
    grid-row: 1/3;
  }
  .v2-card-copy {
    padding: 10px;
  }
  .v2-card-copy .v2-button {
    padding: 8px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v2-page * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Roblox-Style Shimmer & Skeleton Loading System (Dark Charcoal)
   ========================================================================== */

@keyframes v2-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.v2-skeleton {
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

.v2-skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
}
.v2-skeleton-line.h-title {
  height: 24px;
  width: 220px;
}
.v2-skeleton-line.h-sub {
  height: 14px;
  width: 340px;
  margin-top: 6px;
}
#roster-startup-loading .v2-skeleton-line {
  max-width: 100%;
}
.roster-loading-detail .v2-skeleton-portrait {
  width: 100%;
  height: 100%;
}
.v2-skeleton-line.w-full {
  width: 100%;
}
.v2-skeleton-line.w-half {
  width: 50%;
}
.v2-skeleton-line.w-quarter {
  width: 25%;
}

.v2-skeleton-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #222222;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
}

.v2-skeleton-card .v2-skeleton-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
  border-bottom: 1px solid #202020;
}

.v2-skeleton-card .v2-skeleton-copy {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  gap: 8px;
  background: #141414;
}

.v2-skeleton-card .v2-skeleton-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.v2-skeleton-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #141414;
  border: 1px solid #242424;
  padding: 28px 36px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.v2-skeleton-banner-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  width: 100%;
}

.v2-skeleton-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.v2-skeleton-pill {
  height: 38px;
  width: 90px;
  border-radius: 999px;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
}

.v2-skeleton-search {
  height: 38px;
  width: 240px;
  border-radius: 8px;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
}

.v2-skeleton-mode-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.v2-skeleton-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
  border-bottom: 1px solid #242424;
}

.v2-skeleton-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  margin-bottom: 24px;
}

.v2-skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #181818 0%, #242424 50%, #181818 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .v2-skeleton,
  .v2-skeleton-line,
  .v2-skeleton-card .v2-skeleton-portrait,
  .v2-skeleton-pill,
  .v2-skeleton-search,
  .v2-skeleton-stage,
  .v2-skeleton-avatar {
    animation: none !important;
    background: #1c1c1c !important;
  }
}

/* ========================================================
   MATCH HISTORY REDESIGN V2 - ROBLOX CHARCOAL (v1.4.9)
   ======================================================== */
.v2-profile-tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border-bottom: 1px solid #222222;
  padding-bottom: 0px;
}
.v2-profile-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #888888;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}
.v2-profile-tab-item:hover {
  color: #ffffff;
}
.v2-profile-tab-item.active {
  color: #ffffff;
  border-bottom: 2px solid #ff4757;
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.08) 0%, rgba(255, 71, 87, 0.02) 100%);
  border-radius: 6px 6px 0 0;
}

.v2-match-history-grid {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.v2-match-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.v2-match-summary-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 20px 22px;
}
.v2-match-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
}
.v2-match-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.v2-match-stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.v2-match-stat-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.v2-match-stat-num.win {
  color: #00b06f;
}
.v2-match-stat-num.loss {
  color: #ff4757;
}
.v2-match-stat-label {
  font-size: 11.5px;
  color: #888888;
  font-weight: 500;
}
.v2-match-rate-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 8px;
}
.v2-match-rate-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.v2-match-rate-bar-track {
  width: 100%;
  height: 6px;
  background: #282828;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.v2-match-rate-bar-win {
  background: #00b06f;
  height: 100%;
}
.v2-match-rate-bar-loss {
  background: #ff4757;
  height: 100%;
}

.v2-match-modes-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 20px 22px;
}
.v2-mode-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v2-mode-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.v2-mode-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cccccc;
  font-weight: 500;
}
.v2-mode-item-pct {
  font-weight: 700;
  color: #ffffff;
}

.v2-match-main {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}
.v2-match-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 4px;
}
.v2-match-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.v2-match-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}
.v2-match-filter-select {
  max-width: 100%;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #d4d4d4;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.v2-match-filter-select:hover {
  border-color: #3e3e3e;
}
.v2-match-filter-select:focus-visible {
  outline: 2px solid #b2b2b2;
  outline-offset: 2px;
}

.v2-match-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-match-card-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(248px, 1.3fr) 128px 32px;
  align-items: center;
  background: #141414;
  border: 1px solid #222222;
  border-radius: 10px;
  padding: 12px 16px;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.v2-match-card-item:hover {
  border-color: #2e2e2e;
  background: #161616;
}

.v2-match-col-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.v2-match-col-info > svg {
  flex: 0 0 16px;
}
.v2-match-mode-icon {
  font-size: 18px;
  color: #888888;
}
.v2-match-mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.v2-match-mode-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.v2-match-mode-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  overflow-wrap: anywhere;
}
.v2-match-tag-pill {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(255, 71, 87, 0.2);
  color: #ff6b78;
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.2;
}
.v2-match-time {
  font-size: 11px;
  color: #999999;
  overflow-wrap: anywhere;
}
.v2-match-list-status:empty {
  display: none;
}

.v2-match-col-teams {
  display: grid;
  grid-template-columns: 106px 24px 106px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  justify-content: center;
}
.v2-match-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}
.v2-match-team:first-child {
  justify-content: flex-end;
}
.v2-match-team:last-child {
  justify-content: flex-start;
}
.v2-match-port-wrap {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.v2-match-port-wrap img,
.v2-match-port-wrap .v2-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v2-match-port-p1 {
  border: 1.5px solid #ff793f;
}
.v2-match-port-p2 {
  border: 1.5px solid #3867d6;
}
.v2-match-vs {
  font-size: 12px;
  font-weight: 800;
  color: #999999;
  letter-spacing: 1px;
  text-align: center;
}
.v2-match-cpu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202020;
  border: 1px solid #333333;
  color: #cccccc;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 14px;
  padding: 4px 14px;
  justify-self: start;
}

.v2-match-col-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 5px;
}
.v2-match-res-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 3px 8px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.v2-match-res-win {
  color: #4ed69c;
  background: rgba(0, 176, 111, 0.15);
}
.v2-match-res-loss {
  color: #ff6b78;
  background: rgba(255, 71, 87, 0.15);
}
.v2-match-res-neutral {
  color: #b2b2b2;
  background: rgba(255, 255, 255, 0.08);
}
.v2-match-res-draw {
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.08);
}
.v2-match-res-pending {
  color: #f6c85f;
  background: rgba(246, 200, 95, 0.1);
}
.v2-match-score-text {
  font-size: 12px;
  font-weight: 700;
  color: #cccccc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v2-match-col-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.v2-match-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.v2-match-play-btn:hover {
  background: #262626;
  border-color: #3e3e3e;
  color: #ff4757;
}

.v2-match-pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.v2-match-pg-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  background: #141414;
  border: 1px solid #242424;
  color: #888888;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.v2-match-pg-btn:hover:not(:disabled) {
  border-color: #383838;
  color: #ffffff;
}
.v2-match-pg-btn.active {
  background: rgba(255, 71, 87, 0.15);
  border-color: #ff4757;
  color: #ff6b78;
}
.v2-match-pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .v2-match-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-match-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@container (max-width: 699px) {
  .v2-match-card-item {
    grid-template-columns: minmax(0, 1fr) 112px 32px;
    grid-template-areas: "info result action" "teams teams teams";
    gap: 12px 8px;
  }
  .v2-match-col-teams {
    grid-area: teams;
    justify-content: center;
  }
  .v2-match-col-info {
    grid-area: info;
  }
  .v2-match-col-result {
    grid-area: result;
  }
  .v2-match-col-action {
    grid-area: action;
  }
}
@media (max-width: 600px) {
  .v2-match-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-match-filter-select {
    min-height: 44px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .v2-match-card-item {
    grid-template-columns: minmax(0, 1fr) 96px 28px;
    padding: 12px;
    gap: 12px 6px;
  }
  .v2-match-play-btn {
    width: 28px;
    height: 32px;
  }
  .v2-match-col-teams {
    grid-template-columns: 94px 20px 94px;
    gap: 4px;
  }
  .v2-match-team {
    gap: 2px;
  }
  .v2-match-port-wrap {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

/* Controls → Gamepad: live controller check */
.pad-tester-head p { margin: 4px 0 0; }
.pad-tester-notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--muted, #b9b9c6); }
.pad-tester-notice.is-ready { border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); color: #b8f5cc; }
.pad-tester-notice.is-warning { border-color: rgba(255,159,67,.5); background: rgba(255,159,67,.1); color: #ffd7a8; }
.pad-tester-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.pad-slot { padding: 14px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); background: rgba(0,0,0,.18); transition: border-color .2s, box-shadow .2s; }
.pad-slot.is-connected { border-style: solid; border-color: rgba(74,222,128,.55); box-shadow: 0 0 0 3px rgba(74,222,128,.08); }
.pad-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pad-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--muted, #b9b9c6); }
.pad-slot.is-connected .pad-badge { background: rgba(74,222,128,.16); color: #86efac; }
.pad-slot.is-connected .pad-badge::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; vertical-align: 1px; }
.pad-slot:not(.is-connected) .pad-svg { opacity: .42; animation: pad-wait 2.4s ease-in-out infinite; }
@keyframes pad-wait { 50% { opacity: .22; } }
@media (prefers-reduced-motion: reduce) { .pad-slot:not(.is-connected) .pad-svg { animation: none; } }
.pad-name { margin: 6px 0 0; min-height: 1.3em; font-size: 13px; color: var(--muted, #b9b9c6); overflow-wrap: anywhere; }
.pad-svg { display: block; width: 100%; max-width: 320px; margin: 10px auto 4px; }
.pad-body { fill: #1c1f28; stroke: #5b6273; stroke-width: 2; }
.pad-well { fill: #12141a; stroke: #3c4250; }
.pad-dpad-center { fill: #2a2f3b; }
.pad-part { fill: #2d3240; stroke: #707a8f; stroke-width: 1.5; transition: fill .06s, stroke .06s; }
.pad-part.is-down { fill: #ff9f43; stroke: #ffe0b8; filter: drop-shadow(0 0 4px rgba(255,159,67,.8)); }
.pad-letter { fill: #e8eaf0; font: 800 9px/1 system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.pad-last { min-height: 1.4em; margin: 4px 0 0; text-align: center; font-weight: 700; color: #ffd08a; }
.pad-rumble { display: block; margin: 8px auto 0; }
.pad-map { margin-top: 18px; }
.pad-map-row { transition: background .1s; }
.pad-map-row.is-down { background: rgba(255,159,67,.14); }
