/* ═══════════════════════════════════════════════
   EBOL. — ARENA (LOGGED-IN AREA)
   Sports editorial dashboard — green / white / clean
   Inspired by Hattrick redesign concept
   ═══════════════════════════════════════════════ */

@import "matches.css";
@import "players.css";
@import "rules.css";
@import "round_directives.css";
@import "memberships.css";

/* ── DESIGN TOKENS ── */

.arena-body {
  --font-display: 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;

  /* Greens — the pitch */
  --green-deep: #1B4332;
  --green-primary: #2D6A4F;
  --green-mid: #40916C;
  --green-light: #52B788;
  --green-pale: #D8F3DC;
  --green-wash: #F0F7F2;

  /* Surfaces */
  --bg-deep: #F4F6F5;
  --bg-surface: #ffffff;
  --bg-card: #F8FAF9;
  --bg-card-hover: #EFF3F1;

  /* Accent — the orange dot */
  --accent: #E8621A;
  --accent-glow: #F47B35;
  --accent-dark: #C44E0E;

  /* Neutral borders */
  --border: #E2E8E4;
  --border-hover: #CBD5CE;

  /* Status */
  --red-warning: #DC2626;
  --gold: #D4A017;

  /* Team Roles & Membership */
  --role-president: #D4A017;
  --role-captain: #2563EB;
  --role-member: #2563EB;
  --role-member-hover: #1d4ed8;
  --role-member-deep: #1e40af;

  /* Text */
  --text-primary: #1A2A1E;
  --text-secondary: #4A5D50;
  --text-muted: #8A9B8F;

  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  background-image: url("/assets/ebol-bg-light-77849d85.svg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 1100px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── DARK THEME ── */

[data-theme="dark"] .arena-body {
  /* Greens — deep pitch at night */
  --green-deep: #A7D5B8;
  --green-primary: #6BBF8A;
  --green-mid: #52B788;
  --green-light: #40916C;
  --green-pale: #1E3A2B;
  --green-wash: #1A2E22;

  /* Surfaces */
  --bg-deep: #141C18;
  --bg-surface: #1B251F;
  --bg-card: #1F2D24;
  --bg-card-hover: #253529;

  /* Accent — stays warm */
  --accent: #F47B35;
  --accent-glow: #F9943E;
  --accent-dark: #E8621A;

  /* Borders */
  --border: #2A3B30;
  --border-hover: #3A4F40;

  /* Status */
  --red-warning: #F87171;
  --gold: #FACC15;

  /* Team Roles & Membership */
  --role-president: #FACC15;
  --role-captain: #60A5FA;
  --role-member: #60A5FA;
  --role-member-hover: #93bbfd;
  --role-member-deep: #3b82f6;

  /* Text */
  --text-primary: #E8EDE9;
  --text-secondary: #9AADA0;
  --text-muted: #5E7568;

  background-image: url("/ebol-bg-dark.svg");
}

/* Dark theme — logo */
[data-theme="dark"] .arena-logo-text {
  color: var(--text-primary);
}

/* Dark theme — pill */
[data-theme="dark"] .arena-topbar-pill {
  background: var(--bg-surface);
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Dark theme — subnav */
[data-theme="dark"] .arena-subnav-inner {
  background: var(--bg-surface);
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Dark theme — avatar ring */
[data-theme="dark"] .arena-user-avatar {
  border-color: var(--bg-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dark theme — player card gradient bar */
[data-theme="dark"] .arena-player-card::before {
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

/* Dark theme — search input */
[data-theme="dark"] .arena-pill-search-input {
  color: var(--text-primary);
}

/* Dark theme — countdown */
[data-theme="dark"] .arena-countdown-block {
  background: var(--bg-card);
  border-color: var(--border);
}

/* Dark theme — division row mine */
[data-theme="dark"] .arena-division-row-mine {
  background: var(--green-wash);
  border-color: rgba(107, 191, 138, 0.15);
  box-shadow: inset 3px 0 0 var(--green-primary);
}

/* ═══════════════════════════════════════════════
   TOP ACCENT BAR — 3px green stripe
   ═══════════════════════════════════════════════ */

.arena-top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-mid), var(--accent));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ═══════════════════════════════════════════════
   TOP BAR (Logo + Pill + Avatar)
   ═══════════════════════════════════════════════ */

.arena-topbar {
  padding-top: 1.5rem;
  background: var(--bg-deep);
  position: relative;
  z-index: 100;
}

.arena-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.arena-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ── Team Role Username Colors ── */

.username-president {
  color: var(--role-president);
  font-weight: 600;
}

.username-captain {
  color: var(--role-captain);
  font-weight: 600;
}

.username-member {
  color: var(--role-member);
  font-weight: 600;
}

.username-president-icon {
  color: var(--role-president);
  margin-left: 0.2rem;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: help;
}

.username-president-star {
  vertical-align: middle;
}

.username-captain-icon {
  color: var(--role-captain);
  margin-left: 0.15rem;
  font-size: 0.85em;
  font-weight: 700;
  vertical-align: middle;
  cursor: help;
}

a .username-president,
a .username-captain,
a .username-member {
  color: inherit;
}

a:hover .username-president,
a .username-president {
  color: var(--role-president);
}

a:hover .username-captain,
a .username-captain {
  color: var(--role-captain);
}

a:hover .username-member,
a .username-member {
  color: var(--role-member);
}

/* Goal counts follow role color */
:has(> .username-president) ~ .scorers-goals,
:has(> .username-president) ~ .match-scorer-count,
a:has(.username-president) .scorers-goals,
a:has(.username-president) .match-scorer-count,
a:has(.username-president) .match-top-scorer-goals,
a:has(.username-president) .comp-top-scorer-goals,
a:has(.username-president) .dashboard-online-goals,
a:has(.username-president) .scorers-top-goals {
  color: var(--role-president);
}

:has(> .username-captain) ~ .scorers-goals,
:has(> .username-captain) ~ .match-scorer-count,
a:has(.username-captain) .scorers-goals,
a:has(.username-captain) .match-scorer-count,
a:has(.username-captain) .match-top-scorer-goals,
a:has(.username-captain) .comp-top-scorer-goals,
a:has(.username-captain) .dashboard-online-goals,
a:has(.username-captain) .scorers-top-goals {
  color: var(--role-captain);
}

:has(> .username-member) ~ .scorers-goals,
:has(> .username-member) ~ .match-scorer-count,
a:has(.username-member) .scorers-goals,
a:has(.username-member) .match-scorer-count,
a:has(.username-member) .match-top-scorer-goals,
a:has(.username-member) .comp-top-scorer-goals,
a:has(.username-member) .dashboard-online-goals,
a:has(.username-member) .scorers-top-goals {
  color: var(--role-member);
}

/* ── Pill capsule (Search + Theme + Sair) ── */

.arena-topbar-pill {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 0.25rem 0.3rem;
  box-shadow: 0 1px 4px rgba(27, 67, 50, 0.05);
}

/* Search inside pill */
.arena-pill-search {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.3rem 0.5rem 0.3rem 0.65rem;
  gap: 0.4rem;
  border-radius: 22px;
  transition: background 0.15s ease;
  cursor: text;
}

.arena-pill-search:hover {
  background: var(--green-wash);
}

.arena-pill-search:focus-within {
  background: var(--green-wash);
}

.arena-pill-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.arena-pill-search:hover .arena-pill-search-icon,
.arena-pill-search:focus-within .arena-pill-search-icon {
  color: var(--green-primary);
}

.arena-pill-search-input {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 200px;
  transition: width 0.25s ease;
}

.arena-pill-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.arena-pill-search-input:focus {
  width: 240px;
}

/* Separator between pill items */
.arena-pill-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

/* Pill icon button (theme toggle) */
.arena-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  flex-shrink: 0;
}

.arena-pill-btn:hover {
  background: var(--green-wash);
  color: var(--green-primary);
}

.arena-pill-btn .icon-sun,
.arena-pill-btn .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.arena-pill-btn .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.arena-pill-btn .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .arena-pill-btn .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .arena-pill-btn .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Pill text link (Sair) */
.arena-pill-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 22px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.arena-pill-link:hover {
  color: var(--green-deep);
  background: var(--green-wash);
}

.arena-pill-link-sair:hover {
  color: var(--red-warning);
  background: rgba(220, 38, 38, 0.04);
}

/* Logo */
.arena-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.arena-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  line-height: 1;
}

.arena-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: text-bottom;
  position: relative;
  top: -7px;
}

/* ═══════════════════════════════════════════════
   LIVE TICKER
   ═══════════════════════════════════════════════ */

.arena-logo-group {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  min-width: 0;
}

.arena-ticker {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-ticker-text {
  color: var(--text-muted);
}

.arena-ticker-user {
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
}

.arena-ticker-user:hover {
  text-decoration: underline;
}

.arena-ticker-team {
  font-weight: 700;
  color: var(--green-primary);
  text-decoration: none;
}

.arena-ticker-team:hover {
  text-decoration: underline;
}

.arena-ticker-team-dry {
  color: var(--red-warning);
}

/* ═══════════════════════════════════════════════
   SUB-NAV (Hattrick-style icon tabs)
   ═══════════════════════════════════════════════ */

.arena-subnav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  background: var(--bg-deep);
}

.arena-subnav-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(27, 67, 50, 0.05);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

.arena-subnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 1.8rem 0.6rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.arena-subnav-item svg {
  opacity: 0.45;
  transition: all 0.15s ease;
}

.arena-subnav-item span {
  transition: color 0.15s ease;
}

.arena-subnav-item:hover {
  color: var(--green-primary);
}

.arena-subnav-item:hover svg {
  opacity: 0.8;
  stroke: var(--green-primary);
}

.arena-subnav-active {
  color: var(--green-primary);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.arena-subnav-active svg {
  opacity: 1;
  stroke: var(--green-primary);
}

/* Badge for unread messages */
.arena-subnav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.arena-subnav-new {
  position: absolute;
  top: 0.2rem;
  right: 0.5rem;
  background: var(--accent);
  color: white;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: subnav-new-pulse 2s infinite;
}

@keyframes subnav-new-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 98, 26, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(232, 98, 26, 0); }
}

.arena-subnav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  animation: subnav-dot-pulse 2s ease-in-out infinite;
}

@keyframes subnav-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08); }
}

/* Legacy nav support (hidden) */
.arena-nav { display: none; }
.arena-nav-link { display: none; }
.arena-header { display: none; }

/* Legacy search wrapper (hidden) */
.arena-search-wrapper { position: relative; }
.arena-search-icon { display: none; }

/* Search Results Dropdown */
.arena-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(27, 67, 50, 0.12);
  border-radius: 12px;
}

.arena-search-results.arena-search-open {
  display: flex;
}

.arena-search-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.arena-search-item:hover {
  background: var(--green-wash);
}

.arena-search-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.arena-search-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arena-search-item-name {
  font-size: 0.82rem;
  font-weight: 500;
}

.arena-search-item-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.arena-search-item-type {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.arena-search-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* User Avatar */
.arena-user-avatar {
  width: 38px;
  height: 38px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
  border: 2px solid var(--bg-surface);
}

/* ── Player Jersey ── */

.player-jersey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0.02em;
  aspect-ratio: 1;
  clip-path: polygon(
    0% 16%,
    20% 0%,
    35% 10%,
    65% 10%,
    80% 0%,
    100% 16%,
    82% 30%,
    82% 100%,
    18% 100%,
    18% 30%
  );
}

.arena-user-jersey {
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.player-jersey-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  background: transparent !important;
  overflow: hidden;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.arena-player-jersey {
  margin-bottom: 0.3rem;
}

/* ── Team logo / initial ── */

.team-logo {
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
}

.team-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7em;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── Avatar dropdown ── */

.arena-avatar-menu {
  position: relative;
}

.arena-avatar-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.arena-avatar-trigger:hover {
  transform: scale(1.06);
}

.arena-avatar-trigger:hover .arena-user-avatar {
  box-shadow: 0 3px 12px rgba(45, 106, 79, 0.3);
}

.arena-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 210px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.12);
  z-index: 150;
  padding: 0.4rem;
  animation: arena-dropdown-in 0.15s ease;
}

.arena-avatar-dropdown-open {
  display: block;
}

@keyframes arena-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.arena-avatar-dropdown-header {
  padding: 0.5rem 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.arena-avatar-dropdown-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arena-avatar-dropdown-username {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.arena-avatar-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.4rem;
}

.arena-avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.arena-avatar-dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.arena-avatar-dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.arena-avatar-dropdown-item:hover svg {
  color: var(--green-primary);
}

.arena-avatar-dropdown-sair:hover {
  color: var(--red-warning);
  background: rgba(220, 38, 38, 0.04);
}

.arena-avatar-dropdown-sair:hover svg {
  color: var(--red-warning);
}

/* Legacy */
.arena-icon-btn { display: none; }
.arena-theme-btn { display: none; }
.arena-user-menu { display: contents; }


/* ═══════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════ */

.arena-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem 7rem;
  background: var(--bg-deep);
  min-height: 60vh;
}

.arena-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* ═══════════════════════════════════════════════
   LEFT SIDEBAR
   ═══════════════════════════════════════════════ */

.arena-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Player Card */
.arena-player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.arena-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
}

.arena-player-avatar {
  width: 64px;
  height: 64px;
  background: var(--green-wash);
  border: 2px solid var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.3rem;
}

.arena-team-avatar {
  font-size: 1.8rem;
}

.arena-player-team {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(45, 106, 79, 0.2);
  background: var(--green-wash);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.arena-player-team:hover {
  background: rgba(45, 106, 79, 0.08);
  border-color: var(--green-mid);
}

.arena-player-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.arena-player-username {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.arena-player-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-top: 0.2rem;
}

.profile-header-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.profile-message-btn:hover {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
}

.profile-message-btn svg {
  flex-shrink: 0;
}

.profile-gift-membership-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--role-member);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-gift-membership-btn:hover {
  background: var(--role-member);
  color: #fff;
  border-color: var(--role-member);
}

.profile-gift-membership-btn svg {
  flex-shrink: 0;
}

.profile-report-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.profile-report-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-warning);
  border-color: rgba(220, 38, 38, 0.25);
}

.profile-report-btn svg {
  flex-shrink: 0;
}

/* ── Role Badges ── */

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

.profile-role-president {
  background: rgba(212, 160, 23, 0.15);
  color: var(--role-president);
}

.profile-role-captain {
  background: rgba(37, 99, 235, 0.12);
  color: var(--role-captain);
}

/* ── Captain Management Buttons ── */

.profile-captain-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.profile-captain-btn-add:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--role-captain);
  border-color: rgba(37, 99, 235, 0.3);
}

.profile-captain-btn-remove:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-warning);
  border-color: rgba(220, 38, 38, 0.25);
}

.profile-captain-btn svg {
  flex-shrink: 0;
}

/* Action Buttons — Chutar / Secar */
.arena-actions-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.arena-btn-chutar,
.arena-btn-secar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.arena-btn-chutar {
  border-color: rgba(45, 106, 79, 0.2);
  color: var(--green-primary);
}

.arena-btn-chutar:not(:disabled):hover {
  background: var(--green-wash);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.12);
}

.arena-btn-secar {
  border-color: rgba(220, 38, 38, 0.15);
  color: var(--red-warning);
}

.arena-btn-secar:not(:disabled):hover {
  background: rgba(220, 38, 38, 0.03);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.arena-btn-chutar:disabled,
.arena-btn-secar:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.arena-btn-icon {
  font-size: 1.2rem;
}

.arena-btn-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.arena-btn-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.arena-btn-timer {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.arena-btn-teaser {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.1rem;
}

/* Breathing animations */
.arena-btn-chutar:disabled {
  animation: breathe-green 3s ease-in-out infinite;
}

.arena-btn-secar:disabled {
  animation: breathe-red 3s ease-in-out infinite;
}

@keyframes breathe-green {
  0%, 100% { border-color: rgba(45, 106, 79, 0.1); opacity: 0.45; }
  50% { border-color: rgba(45, 106, 79, 0.25); opacity: 0.6; }
}

@keyframes breathe-red {
  0%, 100% { border-color: rgba(220, 38, 38, 0.08); opacity: 0.45; }
  50% { border-color: rgba(220, 38, 38, 0.2); opacity: 0.6; }
}

/* Stats Card */
.arena-stats-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.arena-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--bg-card);
}

.arena-stat-row:last-of-type {
  border-bottom: none;
}

.arena-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.arena-stat-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════ */

.arena-main-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Content Cards */
.arena-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.arena-card-title span {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.arena-card-title span svg {
  width: 16px;
  height: 16px;
}

.arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.arena-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.15rem;
  transition: all 0.15s ease;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.arena-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.06);
}

.arena-card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: 0.3rem;
}

.arena-card-empty-icon {
  font-size: 1.6rem;
  opacity: 0.15;
}

.arena-card-empty p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.arena-card-empty-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Club Banner */
.arena-club-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
}

.arena-club-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green-primary);
  border-radius: 3px 0 0 3px;
}

.arena-club-banner-empty {
  gap: 0.8rem;
}

.arena-club-banner-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.arena-club-banner-badge {
  font-size: 1.4rem;
}

.arena-club-banner-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arena-club-banner-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.arena-club-banner-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.arena-club-banner-btn:hover {
  background: var(--green-wash);
  border-color: var(--green-mid);
}

/* Dashboard Links */
.arena-dashboard-profile-link {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(45, 106, 79, 0.2);
  text-align: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.arena-dashboard-profile-link:hover {
  background: var(--green-wash);
  border-color: var(--green-mid);
}

.arena-dashboard-club-link {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
  text-align: right;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  transition: color 0.15s ease;
}

.arena-dashboard-club-link:hover {
  color: var(--green-deep);
}

/* ═══════════════════════════════════════════════
   SEASON COUNTDOWN
   ═══════════════════════════════════════════════ */

.arena-card-countdown {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--green-wash) 100%);
  border-color: rgba(45, 106, 79, 0.15);
}

.arena-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0 0.6rem;
}

.arena-countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
}

.arena-countdown-digit {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}

.arena-countdown-unit {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arena-countdown-sep {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 0.8rem;
}

.arena-countdown-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 0.3rem;
}

/* ═══════════════════════════════════════════════
   GLOBAL STATS
   ═══════════════════════════════════════════════ */

.arena-global-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.arena-global-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
  transition: all 0.15s ease;
}

.arena-global-stat:hover {
  border-color: var(--border-hover);
}

.arena-global-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-deep);
}

.arena-global-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   CLUB STRENGTH BAR
   ═══════════════════════════════════════════════ */

.arena-strength-wrapper {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bg-card);
}

.arena-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.arena-strength-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.arena-strength-percent {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--green-primary);
  font-weight: 700;
}

.arena-strength-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.arena-strength-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  border-radius: 3px;
  transition: width 0.8s ease;
}

.arena-strength-hint {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   ACTIVITY FEED
   ═══════════════════════════════════════════════ */

.arena-activity-list {
  display: flex;
  flex-direction: column;
}

.arena-activity-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bg-card);
}

.arena-activity-row:last-child {
  border-bottom: none;
}

.arena-activity-avatar {
  width: 30px;
  height: 30px;
  background: var(--green-wash);
  border: 1px solid var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-primary);
  flex-shrink: 0;
}

.arena-activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arena-activity-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.arena-activity-link {
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.arena-activity-link:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

.arena-activity-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

/* ═══════════════════════════════════════════════
   WHATSAPP INVITE
   ═══════════════════════════════════════════════ */

.arena-card-invite {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(37, 211, 102, 0.03) 100%);
}

.arena-invite-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arena-invite-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.arena-invite-text strong {
  color: var(--green-deep);
  font-weight: 600;
}

.arena-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: #25d366;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.arena-whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ═══════════════════════════════════════════════
   DIVISION RANKINGS
   ═══════════════════════════════════════════════ */

.arena-card-ranking {
  grid-column: 1 / -1;
}

.arena-ranking-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.arena-ranking-subtitle strong {
  color: var(--green-deep);
  font-weight: 600;
}

.arena-division-block {
  margin-bottom: 1.25rem;
}

.arena-division-block:last-child {
  margin-bottom: 0;
}

.arena-division-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.arena-division-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
}

.arena-division-serie-a {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.arena-division-serie-b {
  background: rgba(59, 130, 246, 0.06);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.arena-division-serie-c {
  background: rgba(139, 92, 246, 0.06);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.arena-division-serie-d {
  background: rgba(234, 88, 12, 0.06);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.15);
}

.arena-division-acesso {
  background: rgba(107, 114, 128, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(107, 114, 128, 0.15);
}

.arena-division-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.arena-division-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.arena-division-hidden {
  max-height: 0 !important;
  overflow: hidden;
}

.arena-division-row {
  display: grid;
  grid-template-columns: 32px 1fr 2fr 50px 40px 40px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.arena-division-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

.arena-division-row-mine {
  background: var(--green-wash);
  border-color: rgba(45, 106, 79, 0.15);
  box-shadow: inset 3px 0 0 var(--green-primary);
}

.arena-division-row-mine:hover {
  background: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.25);
}

.arena-div-pos {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.arena-division-row-mine .arena-div-pos {
  color: var(--green-primary);
  font-weight: 700;
}

.arena-div-team {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-division-row-mine .arena-div-team {
  color: var(--green-deep);
  font-weight: 700;
}

.arena-div-bar-wrap {
  height: 4px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 2px;
  overflow: hidden;
}

.arena-div-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.arena-div-bar-serie-a { background: linear-gradient(90deg, #16a34a, #22c55e); }
.arena-div-bar-serie-b { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.arena-div-bar-serie-c { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.arena-div-bar-serie-d { background: linear-gradient(90deg, #ea580c, #fb923c); }
.arena-div-bar-acesso  { background: linear-gradient(90deg, #6b7280, #9ca3af); }

.arena-div-fans {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

.arena-division-row-mine .arena-div-fans {
  color: var(--green-primary);
}

.arena-div-copa {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.2);
  padding: 0.12rem 0.25rem;
  text-align: center;
  border-radius: 3px;
  line-height: 1;
}

.arena-div-copa-empty { visibility: hidden; }

.arena-div-you {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--green-primary);
  background: var(--green-wash);
  border: 1px solid rgba(45, 106, 79, 0.2);
  padding: 0.12rem 0.25rem;
  text-align: center;
  border-radius: 3px;
  line-height: 1;
}

.arena-div-you-empty { visibility: hidden; }

.arena-division-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.arena-division-expand-btn:hover {
  background: var(--green-wash);
  color: var(--green-primary);
  border-color: rgba(45, 106, 79, 0.25);
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */

.arena-content [data-scroll-reveal-target="item"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.arena-content [data-scroll-reveal-target="item"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   TEAM PLAYERS LIST
   ═══════════════════════════════════════════════ */

.team-players-list {
  display: flex;
  flex-direction: column;
}

.team-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border);
  animation: fadeInRow 0.3s ease forwards;
  opacity: 0;
  transition: background 0.15s ease;
}

.team-player-row:hover {
  background: var(--bg-card) !important;
}

.team-player-row:last-child {
  border-bottom: none;
}

@keyframes fadeInRow {
  to { opacity: 1; }
}

.team-player-rank {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.team-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-player-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.team-player-username {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.team-player-you {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: 4px;
  flex-shrink: 0;
}

.team-player-row {
  text-decoration: none;
  color: inherit;
}

.team-player-row:hover {
  background: var(--bg-card);
  border-radius: 8px;
}

.team-player-goals {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: auto;
}

/* ── TEAM LEADERSHIP CARD ── */

/* Scorer online dot — reusable */
.scorer-avatar-wrap,
.match-scorer-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.scorer-online-dot {
  position: absolute;
  bottom: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid var(--bg-surface);
  animation: status-pulse 2s ease-in-out infinite;
}

/* President — Featured */
.team-leader-featured {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.06) 0%, transparent 100%);
  border: 1px solid rgba(212, 160, 23, 0.12);
  transition: all 0.15s ease;
}

a.team-leader-featured:hover {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, transparent 100%);
  border-color: rgba(212, 160, 23, 0.25);
}

.team-leader-featured-avatar {
  position: relative;
  flex-shrink: 0;
}

.team-leader-online-dot {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-surface);
  animation: status-pulse 2s ease-in-out infinite;
}

.team-leader-featured-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.team-leader-featured-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-leader-featured-role {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--role-president);
}

/* Captains divider */
.team-captains-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.6rem;
}

.team-captains-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.team-captains-divider-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Captains grid */
.team-captains-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.team-captain-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.3rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.team-captain-filled {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.team-captain-filled:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.team-captain-avatar {
  position: relative;
  flex-shrink: 0;
}

.team-captain-name {
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* Vacant slots */
.team-leader-vacant {
  border-style: dashed;
  border-color: var(--border);
  background: none;
}

.team-leader-vacant-icon,
.team-captain-vacant-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
}

.team-leader-vacant-icon {
  width: 44px;
  height: 44px;
}

.team-captain-vacant-icon {
  width: 32px;
  height: 32px;
}

.team-leader-vacant-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.team-leader-vacant-text,
.team-captain-vacant-text {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
}

.team-captain-vacant {
  border: 1px dashed var(--border);
  background: none;
}

/* ── TEAM ACTIVITY FEED ── */

.team-activity-list {
  display: flex;
  flex-direction: column;
}

.team-activity-row {
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem 0.4rem;
  margin: 0 -0.4rem;
  border-bottom: 1px solid var(--bg-card);
  align-items: flex-start;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.team-activity-row:hover {
  background: var(--bg-card);
}

.team-activity-row:last-child {
  border-bottom: none;
}

.team-activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.team-activity-icon-joined {
  background: var(--green-wash);
  color: var(--green-primary);
  border: 1px solid var(--green-pale);
}

.team-activity-icon-win {
  background: var(--green-wash);
  color: var(--green-primary);
  border: 1px solid var(--green-pale);
}

.team-activity-icon-loss {
  background: rgba(220, 38, 38, 0.06);
  color: var(--red-warning);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.team-activity-icon-draw {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.team-activity-icon-champion {
  background: rgba(212, 160, 23, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.team-activity-icon-promoted {
  background: var(--green-wash);
  color: var(--green-primary);
  border: 1px solid var(--green-pale);
}

.team-activity-icon-transfer_in {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.team-activity-icon-transfer_out {
  background: rgba(220, 38, 38, 0.06);
  color: var(--red-warning);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.team-activity-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.team-activity-text {
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.team-activity-text strong {
  font-weight: 600;
}

.team-activity-link {
  color: var(--green-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.team-activity-link:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

.team-activity-time {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

.arena-card-title-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.4rem;
}

.team-header-online {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--green-mid);
}

.team-header-jersey {
  position: absolute;
  bottom: -4px;
  right: -14px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .arena-content {
    grid-template-columns: 240px 1fr;
    gap: 1rem;
  }

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

  .arena-subnav-item { padding: 0.65rem 1.2rem 0.55rem; }
  .arena-pill-search-input { width: 100px; }
  .arena-pill-search-input:focus { width: 140px; }
}

@media (max-width: 768px) {
  .arena-topbar-inner { padding: 0 1rem; }
  .arena-ticker { display: none; }
  .arena-subnav-hide-mobile { display: none; }

  .arena-main { padding: 1rem 1rem 7rem; }
  .arena-subnav { padding: 0.75rem 1rem 0; }
  .arena-subnav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .arena-subnav-inner::-webkit-scrollbar { display: none; }
  .arena-subnav-item { flex-shrink: 0; }

  .arena-content { grid-template-columns: 1fr; }

  .arena-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .arena-player-card { grid-column: 1 / -1; }

  .arena-subnav-item {
    padding: 0.55rem 0.8rem 0.45rem;
    font-size: 0.62rem;
  }

  .arena-subnav-item svg { width: 20px; height: 20px; }

  .arena-subnav-badge {
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
    min-width: 14px;
  }

  .arena-subnav-new {
    top: 0.1rem;
    right: 0.1rem;
    font-size: 0.45rem;
    padding: 0.1rem 0.2rem;
  }

  .arena-pill-search-input { width: 80px; }
  .arena-pill-search-input:focus { width: 100px; }
  .arena-pill-link { font-size: 0.72rem; padding: 0.3rem 0.55rem; }

  .arena-grid { grid-template-columns: 1fr; }
  .arena-global-stats { grid-template-columns: 1fr; }

  .arena-countdown-digit { font-size: 1.6rem; }
  .arena-countdown-block { min-width: 50px; }

  .arena-division-row {
    grid-template-columns: 28px 1fr 40px 32px 32px;
    gap: 0.3rem;
    padding: 0.35rem 0.5rem;
  }

  .arena-div-bar-wrap { display: none; }
  .arena-div-copa, .arena-div-you { font-size: 0.45rem; padding: 0.08rem 0.15rem; }
}

@media (max-width: 480px) {
  .arena-sidebar { grid-template-columns: 1fr; }
  .arena-logo-text { font-size: 1.3rem; }
  .arena-subnav-item span { display: none; }
  .arena-subnav-item { padding: 0.6rem 1rem; }
}

/* ═══════════════════════════════════════════════
   ONLINE INDICATORS (from main, adapted)
   ═══════════════════════════════════════════════ */

.arena-pill-online {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 0.4rem;
}

.arena-online-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.arena-team-online {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #22c55e;
  margin-top: 0.2rem;
}

/* Legacy online badge (hidden in new design) */
.arena-online-badge { display: none; }

/* ═══════════════════════════════════════════════
   TODAY'S MATCH & UPCOMING GAMES (from main)
   ═══════════════════════════════════════════════ */

.arena-card-match-today {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(45, 106, 79, 0.04) 100%);
  border-color: rgba(45, 106, 79, 0.2);
}

.arena-match-badge {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.arena-match-badge-friendly {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.arena-match-badge-league {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.arena-match-badge-cup {
  background: rgba(212, 160, 23, 0.1);
  color: #d4a017;
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.arena-match-spotlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.arena-match-link {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.arena-match-link:hover {
  background: rgba(45, 106, 79, 0.03);
}

.arena-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.arena-match-team-initial {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.arena-match-team-mine .arena-match-team-initial {
  border-color: rgba(45, 106, 79, 0.4);
  color: var(--green-primary);
  background: var(--green-wash);
}

.arena-match-team-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.arena-match-team-mine .arena-match-team-name {
  color: var(--green-primary);
  font-weight: 700;
}

.arena-match-you-tag {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--green-primary);
  background: var(--green-wash);
  border: 1px solid rgba(45, 106, 79, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.arena-match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.arena-match-scores-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arena-match-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.arena-match-x {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arena-match-live-indicator {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.3rem;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.arena-match-time-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.arena-match-finished-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.arena-match-margin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.arena-match-margin-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.arena-match-margin-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.arena-match-margin-draw { color: var(--red-warning); }
.arena-match-margin-win { color: #22c55e; }

.arena-match-margin-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Upcoming / Recent Matches */
.arena-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arena-upcoming-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  border-radius: 6px;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.arena-upcoming-row:hover {
  background: var(--bg-card-hover);
}

.arena-upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arena-upcoming-day {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.arena-upcoming-weekday {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.arena-upcoming-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.arena-upcoming-home,
.arena-upcoming-away {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-upcoming-mine {
  color: var(--green-primary);
  font-weight: 700;
}

.arena-upcoming-x {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.arena-upcoming-badge {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.arena-upcoming-badge-friendly { background: rgba(96, 165, 250, 0.1); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.2); }
.arena-upcoming-badge-league { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.arena-upcoming-badge-cup { background: rgba(212, 160, 23, 0.1); color: #d4a017; border: 1px solid rgba(212, 160, 23, 0.2); }

/* Goal Flash & Timer */
.arena-goal-flash {
  font-size: 0.72rem;
  color: var(--red-warning);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.arena-btn-timer-ready {
  color: var(--green-primary) !important;
  font-weight: 600;
}

/* Match spotlight responsive */
@media (max-width: 768px) {
  .arena-match-spotlight { gap: 0.8rem; }
  .arena-match-team-initial { width: 40px; height: 40px; font-size: 1.1rem; }
  .arena-match-score { font-size: 1.6rem; }
  .arena-match-team-name { font-size: 0.75rem; }
  .arena-upcoming-row { grid-template-columns: 50px 1fr auto; gap: 0.5rem; padding: 0.5rem 0.6rem; }
  .arena-upcoming-home, .arena-upcoming-away { font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════
   NARRATION TOAST — Speech bubble + commentator
   ═══════════════════════════════════════════════ */

.narration-container {
  position: fixed;
  left: max(1rem, calc((100vw - 1240px) / 2));
  z-index: 101;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 520px;
}

.narration-toast {
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.narration-toast-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.narration-toast-out {
  animation: narration-slide-out 0.3s ease forwards;
}

@keyframes narration-slide-out {
  to {
    opacity: 0;
    transform: translateY(10px) translateX(-20px) scale(0.95);
  }
}

/* ── Speech bubble ── */

.narration-bubble {
  position: relative;
  background: #fbbf24;
  border-radius: 16px 16px 16px 4px;
  padding: 0.75rem 2rem 0.75rem 0.9rem;
  margin-left: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex: 1;
  min-width: 0;
}

.narration-bubble-tail {
  position: absolute;
  bottom: 6px;
  left: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 12px 8px 0;
  border-color: transparent #fbbf24 transparent transparent;
}

.narration-bubble-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1a1a1a;
  margin: 0;
  min-height: 1.2em;
}

.narration-bubble-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.15s ease;
  line-height: 0;
}

.narration-bubble-close:hover {
  color: rgba(0, 0, 0, 0.7);
}

/* ── Bubble transitions ── */

.narration-bubble-fade-out {
  animation: narration-bubble-out 0.3s ease forwards;
}

.narration-bubble-fade-in {
  animation: narration-bubble-in 0.3s ease forwards;
}

@keyframes narration-bubble-out {
  to { opacity: 0; transform: scale(0.96); }
}

@keyframes narration-bubble-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Score display ── */

.narration-score-display {
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Bubble color per kind ── */

.narration-toast-goal .narration-bubble {
  background: #fbbf24;
}
.narration-toast-goal .narration-bubble-tail {
  border-color: transparent #fbbf24 transparent transparent;
}

.narration-toast-dry .narration-bubble {
  background: #fb923c;
}
.narration-toast-dry .narration-bubble-tail {
  border-color: transparent #fb923c transparent transparent;
}

.narration-toast-foul .narration-bubble {
  background: #fca5a5;
}
.narration-toast-foul .narration-bubble-tail {
  border-color: transparent #fca5a5 transparent transparent;
}

.narration-toast-error .narration-bubble {
  background: #e5e7eb;
}
.narration-toast-error .narration-bubble-tail {
  border-color: transparent #e5e7eb transparent transparent;
}

.narration-toast-suspended .narration-bubble {
  background: var(--narration-suspended-bg, #DC2626);
}
.narration-toast-suspended .narration-bubble-tail {
  border-color: transparent var(--narration-suspended-bg, #DC2626) transparent transparent;
}
.narration-toast-suspended .narration-bubble-text {
  color: #ffffff;
}
.narration-toast-suspended .narration-bubble-close {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Commentator avatar ── */

.narration-commentator {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  align-self: flex-end;
}

.narration-rive-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Dark theme ── */

[data-theme="dark"] .narration-toast-goal .narration-bubble {
  background: #b45309;
}
[data-theme="dark"] .narration-toast-goal .narration-bubble-tail {
  border-color: transparent #b45309 transparent transparent;
}
[data-theme="dark"] .narration-toast-goal .narration-bubble-text {
  color: #fef3c7;
}

[data-theme="dark"] .narration-toast-dry .narration-bubble {
  background: #9a3412;
}
[data-theme="dark"] .narration-toast-dry .narration-bubble-tail {
  border-color: transparent #9a3412 transparent transparent;
}
[data-theme="dark"] .narration-toast-dry .narration-bubble-text {
  color: #fed7aa;
}

[data-theme="dark"] .narration-toast-foul .narration-bubble {
  background: #991b1b;
}
[data-theme="dark"] .narration-toast-foul .narration-bubble-tail {
  border-color: transparent #991b1b transparent transparent;
}
[data-theme="dark"] .narration-toast-foul .narration-bubble-text {
  color: #fecaca;
}

[data-theme="dark"] .narration-toast-error .narration-bubble {
  background: #374151;
}
[data-theme="dark"] .narration-toast-error .narration-bubble-tail {
  border-color: transparent #374151 transparent transparent;
}
[data-theme="dark"] .narration-toast-error .narration-bubble-text {
  color: #d1d5db;
}

[data-theme="dark"] .narration-toast-suspended .narration-bubble {
  --narration-suspended-bg: #991B1B;
}

[data-theme="dark"] .narration-bubble-close {
  color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .narration-bubble-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .narration-container {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }

  .narration-commentator {
    width: 85px;
    height: 85px;
  }

  .narration-bubble-text {
    font-size: 0.74rem;
  }
}

/* ═══════════════════════════════════════════════
   GAME BAR — Fixed bottom action bar
   ═══════════════════════════════════════════════ */

.game-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem max(2rem, calc((100vw - 1240px) / 2 + 2rem)) 0.4rem;
}

/* ── Team badge ── */

.game-bar-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.game-bar-team-initial {
  background: var(--green-wash);
  border: 1.5px solid rgba(45, 106, 79, 0.2);
  color: var(--green-primary);
}

.game-bar-team-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.game-bar-team-online {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.game-bar-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.game-bar-online-text {
  color: var(--text-muted);
}

/* ── Action buttons ── */

.game-bar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.game-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font-family: var(--font-display);
  border: 1.5px solid;
  border-radius: 12px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.1s ease;
  background: var(--bg-surface);
  min-width: 100px;
  position: relative;
  top: 0;
}

.game-bar-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-bar-btn-status {
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-bar-btn-ready-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: inherit;
}

.game-bar-chutar {
  border-color: rgba(45, 106, 79, 0.25);
  color: var(--green-primary);
  box-shadow: 0 4px 0 rgba(45, 106, 79, 0.15);
}

.game-bar-chutar:not(:disabled):hover {
  background: rgba(45, 106, 79, 0.08);
  border-color: var(--green-primary);
}

.game-bar-chutar:not(:disabled):active {
  top: 4px;
  box-shadow: 0 0 0 rgba(45, 106, 79, 0.15);
}

.game-bar-chutar.game-bar-btn-ready {
  background: var(--green-primary);
  border-color: var(--green-deep);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-deep);
  animation: game-bar-pulse-green 2s ease-in-out infinite;
}

.game-bar-chutar.game-bar-btn-ready:hover {
  background: var(--green-mid);
}

.game-bar-chutar.game-bar-btn-ready:active {
  top: 4px;
  box-shadow: 0 0 0 var(--green-deep);
  animation: none;
}

.game-bar-secar {
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--red-warning);
  box-shadow: 0 4px 0 rgba(220, 38, 38, 0.15);
}

.game-bar-secar:not(:disabled):hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--red-warning);
}

.game-bar-secar:not(:disabled):active {
  top: 4px;
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.15);
}

.game-bar-secar.game-bar-btn-ready {
  background: #b91c1c; /* Vermelho mais fechado/sóbrio */
  border-color: #7f1d1d;
  color: #fff;
  box-shadow: 0 4px 0 #7f1d1d;
  animation: game-bar-pulse-red 2s ease-in-out infinite;
}

.game-bar-secar.game-bar-btn-ready:hover {
  background: #dc2626;
}

.game-bar-secar.game-bar-btn-ready:active {
  top: 4px;
  box-shadow: 0 0 0 #7f1d1d;
  animation: none;
}

.game-bar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  top: 0;
}

.game-bar-btn-suspended .game-bar-btn-ready-text,
.game-bar-btn-suspended .game-bar-btn-timer {
  display: none !important;
}

.game-bar-btn-suspended .game-bar-btn-suspended-text {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.game-bar-btn-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-bar-btn-timer {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
  min-width: 2.8em;
  text-align: center;
}

/* ── Pulse animations ── */

@keyframes game-bar-pulse-green {
  0%, 100% { box-shadow: 0 4px 0 var(--green-deep), 0 0 0 0 rgba(45, 106, 79, 0.15); }
  50% { box-shadow: 0 4px 0 var(--green-deep), 0 0 0 4px rgba(45, 106, 79, 0); }
}

@keyframes game-bar-pulse-red {
  0%, 100% { box-shadow: 0 4px 0 #7f1d1d, 0 0 0 0 rgba(185, 28, 28, 0.15); }
  50% { box-shadow: 0 4px 0 #7f1d1d, 0 0 0 4px rgba(185, 28, 28, 0); }
}

/* ── Pop animation (timer ready) ── */

.game-bar-btn-pop {
  animation: game-bar-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes game-bar-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ── Settings link ── */

.game-bar-settings {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.game-bar-settings svg {
  width: 18px;
  height: 18px;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.15s ease;
  box-sizing: content-box;
}

.game-bar-settings:hover {
  color: var(--green-primary);
}

.game-bar-settings:hover svg {
  background: var(--green-wash);
}

/* ── Dark theme ── */

[data-theme="dark"] .game-bar {
  background: #1B251F;
  border-top-color: var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .game-bar {
    padding: 0.45rem 1rem 0.6rem;
    gap: 0.5rem 0.8rem;
  }

  .game-bar-team-name,
  .game-bar-online-text {
    display: none;
  }

  .game-bar-btn {
    padding: 0.4rem 0.6rem;
    min-width: 85px;
  }

  .game-bar-btn-label {
    font-size: 0.72rem;
  }

  .game-bar-btn-timer,
  .game-bar-btn-ready-text {
    font-size: 0.6rem;
  }
}

/* Ghost Animation */
@keyframes ghost-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.arena-btn-icon svg.icon-ghost {
  animation: ghost-float 2.5s ease-in-out infinite;
}

.match-scorer-dry svg.icon-secador {
  animation: ghost-float 2.5s ease-in-out infinite;
}

.jogar-action-icon svg.icon-ghost {
  animation: ghost-float 2.5s ease-in-out infinite;
}

/* Ghost Color by Theme */
[data-theme="light"] .icon-ghost {
  color: #000000;
}

[data-theme="dark"] .icon-ghost {
  color: #ffffff;
}

.team-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.8rem;
}

.arena-section {
  margin-bottom: 1.25rem;
}

.arena-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arena-section-title-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arena-grid-stretch {
  align-items: stretch;
  gap: 1.25rem;
}

/* ── Dashboard Achievement Card ── */

.dashboard-achievement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.dashboard-achievement-icon {
  background: var(--green-wash);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  flex-shrink: 0;
}

.dashboard-achievement-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dashboard-achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-achievement-date {
  font-size: 0.65rem;
  color: var(--green-primary);
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ── Dashboard Next Achievement ── */

.dashboard-next-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.dashboard-next-progress-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dashboard-next-percent {
  font-size: 0.65rem;
  text-align: right;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.arena-section-title svg {
  color: var(--text-muted);
}

.team-player-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.team-player-rank .scorers-position {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.team-player-goals strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════
   DASHBOARD LIVE STATS
   ═══════════════════════════════════════════════ */

.dashboard-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.dashboard-live-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.04);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-live-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-pale);
  transition: background 0.15s ease;
}

[data-theme="dark"] .dashboard-live-stat::before {
  background: var(--border);
}

.dashboard-live-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.06);
  border-color: var(--border-hover);
}

.dashboard-live-stat:hover::before {
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
}

.dashboard-live-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.dashboard-live-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-live-stat-highlight::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

.dashboard-live-stat-highlight:hover::before {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.dashboard-live-stat-highlight .dashboard-live-stat-value {
  color: var(--accent);
}

@media (max-width: 640px) {
  .dashboard-live-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .dashboard-live-stat {
    padding: 1rem 1.2rem;
    flex-direction: row;
    justify-content: space-between;
  }
  .dashboard-live-stat::before {
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    height: auto;
  }
  .dashboard-live-stat:hover::before {
    background: var(--green-primary);
  }
  .dashboard-live-stat-highlight::before,
  .dashboard-live-stat-highlight:hover::before {
    background: var(--accent);
  }
  .dashboard-live-stat-value {
    font-size: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════
   TITLES & HONORS
   ═══════════════════════════════════════════════ */

.titles-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.title-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.title-item:hover {
  background: var(--bg-card);
}

.title-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.title-item-league_champion .title-icon,
.title-item-double_champion .title-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #CA8A04;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.title-item-copa_champion .title-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #CA8A04;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.title-item-promoted .title-icon {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  border: 1px solid var(--green-pale);
}

.title-item-undefeated .title-icon {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.title-item-ranking_winner .title-icon,
.title-item-competition_top_scorer .title-icon {
  background: rgba(168, 85, 247, 0.08);
  color: #9333EA;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.title-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.title-season-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* ── Honors Summary (Player Profile) ── */

.honors-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.honor-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  gap: 0.15rem;
}

.honor-counter-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-primary);
}

.honor-counter-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.honor-detail {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.honor-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.honor-link:hover {
  color: var(--green-primary);
}

@media (max-width: 480px) {
  .title-item {
    padding: 0.35rem 0.3rem;
    gap: 0.4rem;
  }

  .title-icon {
    width: 24px;
    height: 24px;
  }

  .title-icon svg {
    width: 12px;
    height: 12px;
  }

  .title-name {
    font-size: 0.72rem;
  }

  .title-season-badge {
    font-size: 0.55rem;
    padding: 0.08rem 0.25rem;
  }
}

/* Honor icon colors by kind */
.title-item-round_selection .title-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #CA8A04;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.title-item-match_top_scorer .title-icon {
  background: rgba(45, 106, 79, 0.08);
  color: var(--green-primary);
  border: 1px solid var(--green-pale);
}

.title-item-season_top_scorer .title-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #CA8A04;
  border: 1px solid rgba(234, 179, 8, 0.25);
}
