:root {
  --bg-outer: #050507;
  --bg-card: #0d0d12;
  --bg-panel: #14141a;
  --bg-input: #1c1c24;
  --bg-hover: #24242f;
  --border-subtle: #272730;
  --red: #e10600;
  --red-glow: #ff2430;
  --white: #ffffff;
  --silver: #d4d4d8;
  --muted: #8e8ea0;
  --gold: #ffdc78;
  --green: #22c55e;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg-outer);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.page-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 36px;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 8px var(--red-glow);
}

.nav-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-pill {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--silver);
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-pill:hover {
  border-color: var(--red);
  color: var(--white);
}

.nav-pill.active {
  background: rgba(225, 6, 0, 0.2);
  border-color: var(--red-glow);
  color: var(--white);
}

.nav-pill.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Header Visible LOGIN / Pilot Profile Slot */
.nav-auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-login-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--red-glow);
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.nav-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 36, 48, 0.55);
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: #14080b;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.nav-user-pill:hover {
  border-color: var(--red-glow);
  background: #1d090e;
}

.nav-user-nick {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logout-mini {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-logout-mini:hover {
  border-color: var(--red);
  color: var(--white);
}

/* Hero Banner */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--red);
  background: #0a0a0c;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.75);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 42%;
  height: 3px;
  background: var(--white);
  z-index: 4;
}

.hero-bg-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background-size: cover;
  background-position: center;
  filter: contrast(1.06);
  z-index: 1;
}

.hero-bg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0a0c 0%, rgba(10, 10, 12, 0.92) 22%, rgba(10, 10, 12, 0.35) 55%, rgba(10, 10, 12, 0.12) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px 28px;
  min-height: 178px;
}

.hero-logo-wrap {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: #08080a;
  border: 2px solid rgba(225, 6, 0, 0.65);
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.25);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(22, 10, 12, 0.92);
  border: 1.5px solid var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.9vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-title .accent {
  color: var(--red-glow);
}

.hero-kicker {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(0.84rem, 1.4vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-glow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-bvtv-stack {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}

.hero-kicker-justified {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35em;
  font-size: clamp(0.66rem, 1.24vw, 0.88rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-sub {
  margin-top: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--silver);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Checkered Racing Strip */
.checkered-strip {
  position: relative;
  z-index: 4;
  height: 14px;
  width: 100%;
  background-color: #0b0b0e;
  background-image:
    linear-gradient(45deg, #f3f3f3 25%, transparent 25%),
    linear-gradient(-45deg, #f3f3f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f3f3 75%),
    linear-gradient(-45deg, transparent 75%, #f3f3f3 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  border-top: 1px solid rgba(225, 6, 0, 0.7);
  border-bottom: 2px solid var(--red);
  margin: 12px 0 14px;
  border-radius: 3px;
}

/* Main 2-Column Cockpit Grid */
.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.hud-card-header {
  padding: 13px 18px;
  background: var(--bg-panel);
  border-bottom: 2px solid var(--red);
  border-radius: 13px 13px 0 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
}

.hud-header-accent {
  color: var(--red-glow);
}

.roster-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.roster-header-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.roster-header-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
}

.roster-header-stat .stat-label {
  font-size: 0.66rem;
}

.roster-header-stat .stat-value {
  font-size: 0.88rem;
}

.hud-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.field-label-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid #3c1418;
  min-height: 42px;
  white-space: nowrap;
}

.field-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--red-glow);
}

.field-num {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red-glow);
}

.field-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}

/* Curved Dark Pill Inputs */
.pill-input,
.dropdown-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1.5px solid var(--red);
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 600;
  outline: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pill-input::placeholder {
  color: #6b6b7e;
  font-weight: 500;
}

.pill-input:focus,
.dropdown-trigger:focus,
.custom-dropdown.open .dropdown-trigger {
  background: #22222d;
  border-color: var(--red-glow);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.24);
}

/* 100% Dark Custom Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.dropdown-trigger .placeholder {
  color: #77778c;
  font-weight: 500;
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--white);
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  border-top-color: var(--red-glow);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #101016;
  border: 1.5px solid var(--red);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: none;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-search-wrap {
  padding: 8px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid #3f191d;
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
}

.dropdown-search:focus {
  border-color: var(--red-glow);
}

.dropdown-list {
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
}

.dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #0d0d12;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: #3b171b;
  border-radius: 999px;
}

.dropdown-option {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--silver);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: block;
  margin-bottom: 2px;
  transition: background 0.14s ease, color 0.14s ease;
}

.dropdown-option:hover,
.dropdown-option.highlighted {
  background: var(--bg-hover);
  color: var(--white);
}

.dropdown-option.selected {
  background: rgba(225, 6, 0, 0.22);
  color: var(--white);
  border: 1px solid rgba(225, 6, 0, 0.65);
}

.dropdown-empty {
  padding: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* Rewards & Stats Card */
.rewards-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3c1418;
  background: #08080c;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rewards-img-wrap:hover,
.rewards-img-wrap:focus-visible {
  border-color: var(--red);
  outline: none;
}

.rewards-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.rewards-img-wrap:hover img,
.rewards-img-wrap:focus-visible img {
  filter: grayscale(100%) contrast(1.12) brightness(0.62);
  transform: scale(1.02);
}

.rewards-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.rewards-img-wrap:hover .rewards-zoom-hint,
.rewards-img-wrap:focus-visible .rewards-zoom-hint {
  opacity: 1;
}

.rewards-zoom-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  border: 1.5px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 7, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-dialog {
  position: relative;
  max-width: min(980px, 94vw);
  max-height: 90vh;
  background: #0d0d11;
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
}

.lightbox-close {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--red);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.rewards-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reward-chip {
  padding: 9px 8px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reward-chip-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.reward-chip-title.gold {
  color: var(--gold);
}

.reward-chip-title.red {
  color: var(--red-glow);
}

.reward-chip-sub {
  margin-top: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.rewards-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(18, 18, 22, 0.9);
  border: 1px dashed rgba(225, 6, 0, 0.45);
  width: 100%;
}

.rewards-note-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 900;
  flex-shrink: 0;
}

.rewards-note-text {
  font-size: 0.72rem;
  font-weight: 600;
  font-style: italic;
  color: var(--silver);
  letter-spacing: 0.02em;
}

.stats-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--red);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--red-glow);
}

/* Bottom Briefing & Submit Bar */
.briefing-bar {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1.5px solid var(--red);
  border-left: 6px solid var(--red);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.briefing-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 360px;
}

.briefing-badge {
  padding: 6px 12px;
  border-radius: 8px;
  background: #1c0e10;
  border: 1px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.briefing-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver);
}

.submit-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--red-glow);
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(225, 6, 0, 0.55);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-banner {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.status-banner.show {
  display: block;
}

.status-banner.info {
  background: #14141c;
  border: 1px solid #3d3d4e;
  color: var(--silver);
}

.status-banner.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--green);
  color: #bbf7d0;
}

.status-banner.error {
  background: rgba(225, 6, 0, 0.15);
  border: 1px solid var(--red-glow);
  color: #fecaca;
}

/* Live Roster Section */
.roster-section {
  margin-top: 18px;
}

.roster-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.roster-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red-glow);
  background: var(--bg-panel);
  border-bottom: 2px solid var(--red);
}

.roster-table td {
  padding: 11px 14px;
  font-size: 0.86rem;
  color: var(--white);
  border-bottom: 1px solid #1e1e28;
}

.roster-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.roster-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.roster-mobile-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red);
}

.roster-mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.roster-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.78rem;
  color: var(--silver);
}

.roster-mobile-grid span strong {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.roster-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Portal Home Event Grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  outline: none;
}

.portal-card:hover .portal-card-btn {
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.55);
  filter: brightness(1.06);
}

.portal-card-art {
  position: relative;
  height: 168px;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--red);
}

.portal-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.9) 0%, rgba(10, 10, 14, 0.42) 38%, rgba(13, 13, 18, 0) 100%);
}

.portal-card-logo {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--red);
  overflow: hidden;
  background: #08080a;
}

.portal-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-format-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  border: 1.5px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
}

.portal-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.portal-card-prize {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d4d8e2;
  letter-spacing: 0.02em;
}

.social-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.social-card-link:hover,
.social-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--red);
  outline: none;
}

.social-card-link:hover .portal-card-btn {
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.55);
  filter: brightness(1.06);
}

.portal-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  border: 1px solid var(--red-glow);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* Portal Quick Hub Strip (DVDs / Magazines / BVTV / Socials / Inventory) */
.portal-hub-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hub-tile {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.hub-tile:hover {
  border-color: var(--red-glow);
  transform: translateY(-2px);
}

.hub-tile-kicker {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-glow);
}

.hub-tile-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--white);
}

.hub-tile-sub {
  font-size: 0.8rem;
  color: var(--silver);
  line-height: 1.35;
}

/* DVDs & Magazines Gallery Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--red);
}

.media-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #08080c;
  overflow: hidden;
  border-bottom: 2px solid var(--red);
}

.media-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.media-card-coming:hover .media-cover-wrap img,
.media-card-coming:focus-within .media-cover-wrap img,
.media-cover-wrap:hover img {
  filter: grayscale(100%) contrast(1.18) brightness(0.38);
  transform: scale(1.03);
}

.media-coming-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 5, 7, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.media-card-coming:hover .media-coming-overlay,
.media-card-coming:focus-within .media-coming-overlay,
.media-cover-wrap:hover .media-coming-overlay {
  opacity: 1;
}

.media-coming-stamp {
  padding: 8px 18px;
  border: 2px solid var(--white);
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.9);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--white);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.85);
}

.media-coming-code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-glow);
}

.media-editorial-bar {
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  background: #0d0d11;
}

.media-editorial-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.media-editorial-kicker {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.media-editorial-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
}

.media-coming-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.45);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.flag-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  vertical-align: middle;
}

.flag-dot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flag-dot-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 800;
  color: var(--silver);
  letter-spacing: 0;
}

.dropdown-option-country,
.dropdown-trigger-country {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.dropdown-trigger-country > span:last-child,
.dropdown-option-country > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-table th.flag-col,
.roster-table td.flag-cell {
  width: 56px;
  text-align: center;
}

.roster-mobile-nat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-glow);
  font-size: 0.74rem;
}

/* Socials Page Cards */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.social-card.discord-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.social-card.discord-wide .social-desc {
  max-width: 520px;
}

.media-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.media-tag-inline {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--white);
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
}

.social-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-glow);
  flex: 0 0 48px;
}

.social-icon-box svg {
  width: 24px;
  height: 24px;
}

.social-platform {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--white);
}

.social-handle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red-glow);
  margin-top: 2px;
}

.social-desc {
  font-size: 0.86rem;
  color: var(--silver);
  line-height: 1.45;
  flex: 1;
}

.social-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* BVTV Live Twitch Embed Layout */
.bvtv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
}

.bvtv-grid.chat-hidden {
  grid-template-columns: 1fr;
}

.bvtv-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060609;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--red);
}

.bvtv-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bvtv-chat-frame {
  width: 100%;
  min-height: 460px;
  height: 100%;
  background: #060609;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.bvtv-chat-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  display: block;
}

.bvtv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Global Footer Socials Strip */
.site-footer {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--red);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.footer-brand span {
  color: var(--red-glow);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--silver);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.footer-social-link:hover {
  border-color: var(--red);
  color: var(--white);
}

.footer-social-link svg {
  width: 14px;
  height: 14px;
  color: var(--red-glow);
}

/* Custom 404 Glitch Showcase */
.error-404-card {
  margin-top: 4px;
}

.error-404-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.error-404-art-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--red);
  background: #060609;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
}

.error-404-art-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.error-404-scanbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-glow);
}

.error-404-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.error-404-code {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--white);
}

.error-404-code .accent {
  color: var(--red-glow);
}

.error-404-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--red-glow);
}

.error-404-desc {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.55;
}

.error-404-meta {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px dashed rgba(225, 6, 0, 0.5);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.error-404-actions .portal-card-btn {
  width: auto;
  flex: 1 1 200px;
}

/* =========================================================
   ELO BADGES, AUTH MODALS, NATIVE COMMENTS & INVENTORY HUD
   ========================================================= */

.elo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e6f0;
  white-space: nowrap;
}

.elo-badge.elo-street {
  border-color: rgba(212, 216, 226, 0.45);
  color: #ffffff;
}

.elo-badge.elo-outlaw {
  border-color: rgba(255, 138, 0, 0.65);
  background: rgba(255, 138, 0, 0.14);
  color: #ffc870;
}

.elo-badge.elo-blacklist {
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.18);
  color: #ff6970;
}

.elo-badge.elo-goat {
  border-color: #ffd000;
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.22), rgba(225, 6, 0, 0.24));
  color: #ffe26a;
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.22);
}

.item-mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #14080b;
  border: 1px solid rgba(255, 36, 48, 0.55);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ff9ca1;
  white-space: nowrap;
}

/* Native Community Reactions & Comments */
.community-section {
  margin-top: 18px;
}

.community-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.community-actions-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.like-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  background: #12070a;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.like-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--red-glow);
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.35);
}

.like-toggle-btn.liked {
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  border-color: var(--red-glow);
  box-shadow: 0 0 16px rgba(255, 36, 48, 0.45);
}

.community-count-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.community-pilot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--silver);
}

.comment-composer {
  background: #0b0b0f;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
  transition: border-color 0.16s ease;
}

.comment-composer:focus-within {
  border-color: var(--red);
}

.comment-textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--red-glow);
}

.comment-composer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.comment-hint {
  font-size: 0.74rem;
  color: var(--muted);
}

.comment-send-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--red-glow);
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.comment-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 36, 48, 0.55);
}

.comment-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-feedback {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff6b72;
}

.comment-feedback.ok {
  color: #6df29d;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 12px 14px;
}

.comment-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--red);
  object-fit: cover;
  background: #14080b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--red-glow);
}

.comment-author-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--white);
}

.comment-provider-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.comment-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.comment-body {
  font-size: 0.88rem;
  color: #e4e7f0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-card-foot {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #08080b;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}

.comment-like-btn:hover,
.comment-like-btn.liked {
  border-color: var(--red-glow);
  color: var(--white);
  background: rgba(225, 6, 0, 0.16);
}

/* Optional Google Account Bar inside Tournament Registration */
.reg-google-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #13080b 0%, #0b0b0f 100%);
  border: 1px dashed rgba(225, 6, 0, 0.55);
}

.reg-google-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reg-google-title {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
}

.reg-google-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.reg-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--red-glow);
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}

.reg-google-btn:hover {
  box-shadow: 0 0 14px rgba(255, 36, 48, 0.5);
}

.reg-link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--silver);
  cursor: pointer;
}

.reg-link-toggle input {
  accent-color: var(--red-glow);
  width: 15px;
  height: 15px;
}

.roster-nick-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Inventory & Loja Fantasma (Ghost Shop) */
.inventory-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.vault-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.vault-identity-box {
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vault-nick-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.elo-progress-wrap {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #17171f;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.elo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, #ff4757 100%);
  transition: width 0.25s ease;
}

.owned-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.owned-item-pill {
  background: #12070a;
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mystery-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mystery-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mystery-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.mystery-card.owned {
  border-color: var(--red-glow);
  background: linear-gradient(160deg, #16080c 0%, #0b0b0f 100%);
}

.mystery-sigil {
  height: 112px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(225, 6, 0, 0.2) 0%, #060609 74%);
  border: 1px dashed rgba(255, 36, 48, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mystery-qmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-glow);
  text-shadow: 0 0 18px rgba(255, 36, 48, 0.65);
}

.mystery-slot-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.mystery-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--white);
}

.mystery-desc {
  font-size: 0.82rem;
  color: var(--silver);
  line-height: 1.45;
  flex: 1 1 auto;
}

.mystery-action-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--red-glow);
  background: linear-gradient(135deg, #e10600 0%, #9b0400 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.mystery-action-btn.owned-btn {
  background: #14080b;
  border-color: var(--red);
  color: #ffb8bb;
}

/* Native Auth & Nickname Modals */
.wotan-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(3, 3, 6, 0.86);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wotan-modal-backdrop.open {
  display: flex;
}

.wotan-modal {
  width: 100%;
  max-width: 470px;
  background: var(--bg-card);
  border: 2px solid var(--red);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.92), 0 0 28px rgba(225, 6, 0, 0.25);
  overflow: hidden;
}

.wotan-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0d0d12;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
}

.wotan-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.wotan-modal-close:hover {
  border-color: var(--red-glow);
  color: var(--red-glow);
}

.wotan-modal-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-desc {
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.45;
}

.auth-provider-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: #0b0b0f;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.auth-provider-btn:hover {
  border-color: var(--red-glow);
  background: #16090d;
}

.auth-provider-btn.google-drive-btn {
  border-color: var(--red);
  background: linear-gradient(135deg, #25080c 0%, #10080c 100%);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--border-subtle);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-mode-tab {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.auth-mode-tab.active {
  background: rgba(225, 6, 0, 0.22);
  border-color: var(--red-glow);
  color: var(--white);
}

.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.auth-email-form .pill-input {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.modal-status-msg {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff6b72;
  line-height: 1.4;
}

.modal-status-msg.info {
  color: var(--silver);
}

/* Edition Modal (Likes + Comments exclusively inside DVD & Magazine Editions) */
.media-card {
  cursor: pointer;
}

.media-edition-footer {
  padding: 10px 16px 14px;
  background: #0a0a0e;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.media-edition-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--silver);
}

.media-edition-open {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--red-glow);
}

.wotan-edition-modal {
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.edition-modal-scroll {
  overflow-y: auto;
  padding: 16px;
}

.edition-modal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.edition-modal-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--red);
  background: #060609;
}

.edition-modal-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.edition-modal-side .community-section {
  margin-top: 0;
}

@media (max-width: 820px) {
  .edition-modal-grid {
    grid-template-columns: 1fr;
  }

  .edition-modal-cover {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Tablet & Compact Desktop Breakpoint */
@media (max-width: 1220px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-brand {
    order: 1;
  }

  .nav-auth-slot {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 980px) {
  .cockpit-grid,
  .portal-grid,
  .media-grid,
  .bvtv-grid,
  .error-404-grid,
  .vault-profile-grid,
  .mystery-shop-grid,
  .owned-items-grid {
    grid-template-columns: 1fr;
  }

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

  .social-card.discord-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-hub-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-bg-art {
    width: 100%;
    opacity: 0.42;
  }

  .hero-bg-art::after {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, #0a0a0c 100%);
  }

  .bvtv-chat-frame,
  .bvtv-chat-frame iframe {
    min-height: 360px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 640px) {
  .page-shell {
    padding: 8px 10px 26px;
    max-width: 100%;
    min-width: 0;
  }

  .top-nav,
  .nav-links,
  .site-footer {
    max-width: 100%;
    min-width: 0;
  }

  .socials-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    padding: 10px 10px 8px;
    gap: 8px;
  }

  .nav-pill {
    flex: 0 0 auto;
    font-size: 0.66rem;
    padding: 8px 12px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px 20px;
    min-height: 148px;
  }

  .hero-logo-wrap {
    width: 72px;
    height: 72px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-kicker {
    font-size: 0.78rem;
  }

  .hero-sub {
    font-size: 0.78rem;
  }

  .portal-hub-strip {
    grid-template-columns: 1fr;
  }

  .hud-card-body {
    padding: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .field-label-pill {
    min-height: 36px;
    padding: 6px 10px;
  }

  .pill-input,
  .dropdown-trigger {
    font-size: 16px;
    min-height: 46px;
  }

  .dropdown-search {
    font-size: 16px;
  }

  .briefing-bar {
    padding: 12px;
  }

  .submit-btn {
    width: 100%;
  }

  .roster-table-wrap {
    display: none;
  }

  .roster-cards-mobile {
    display: flex;
  }

  .site-footer {
    padding: 12px;
  }

  .footer-social-link {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
