@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07090e;
  --panel: rgba(16, 22, 37, 0.7);
  --panel-strong: rgba(7, 9, 14, 0.85);
  --text: #f8fafc;
  --muted: #8294ad;
  --muted-strong: #4a5a70;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.2);
  --gold: #f5c342;
  --gold-soft: rgba(245, 195, 66, 0.1);
  --gold-glow: rgba(245, 195, 66, 0.15);
  --green-soft: rgba(16, 185, 129, 0.1);
  --green-text: #a7f3d0;
  --amber-soft: rgba(245, 158, 11, 0.1);
  --amber-text: #fef08a;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #07090e;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient glow orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 999px;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

body::before {
  width: 480px;
  height: 480px;
  top: -80px;
  left: -80px;
  background: rgba(79, 70, 229, 0.3);
}

body::after {
  width: 560px;
  height: 560px;
  right: -120px;
  bottom: -120px;
  background: rgba(168, 85, 247, 0.24);
}

/* ===== LAYOUT ===== */

.app-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

#navbar,
#content {
  position: relative;
  z-index: 1;
}

#navbar {
  padding: 0;
}

#content {
  padding: 0;
  min-width: 0;
}

/* Shared panel style */
.navbar-panel,
.game-card,
.timeline-card,
.modal__content,
.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

/* ===== NAVBAR — Game Selection Panel ===== */

.navbar-panel {
  border-radius: var(--radius-md);
  padding: 0.75rem 0.75rem;
  position: sticky;
  top: 2.5rem;
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.navbar-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
}

.navbar-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #a5b4fc;
}

.navbar-panel__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5b4fc;
  font-weight: 600;
}

.navbar-panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f8fafc, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-panel__caption {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  color: var(--muted-strong);
  letter-spacing: 0.02em;
}

.navbar__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.navbar__tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
  position: relative;
}

.navbar__tab:hover {
  border-color: rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(2px);
}

.navbar__tab.navbar__link--active {
  border-color: color-mix(in srgb, var(--tab-color, var(--gold)) 60%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--tab-color, var(--gold)) 10%, transparent) inset,
              0 4px 20px rgba(0, 0, 0, 0.4),
              0 0 15px color-mix(in srgb, var(--tab-color, var(--gold)) 12%, transparent);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.03),
    color-mix(in srgb, var(--tab-color, var(--gold)) 15%, transparent)
  );
  border-left: 4px solid var(--tab-color, var(--gold));
  border-radius: var(--radius-xs);
}

.navbar__tab-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.navbar__tab-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.navbar__link--active .navbar__tab-icon {
  background: var(--tab-color, var(--accent));
  border-color: var(--tab-color, var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--tab-color, var(--accent)) 30%, transparent);
}

.navbar__tab-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  padding: 3px;
  box-sizing: border-box;
  display: block;
}

.navbar__tab-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__tab-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.navbar__name {
  margin: 0;
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__link--active .navbar__name {
  color: #fff;
}

.navbar__season {
  margin: 0;
  font-size: 0.72rem;
  color: #9aa8c3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__status {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.55rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__status--ending {
  background: rgba(245, 158, 11, 0.02);
  color: rgba(245, 158, 11, 0.85);
  border-color: rgba(245, 158, 11, 0.25);
}

.navbar__status--early-access {
  background: rgba(148, 163, 184, 0.02);
  color: rgba(148, 163, 184, 0.85);
  border-color: rgba(148, 163, 184, 0.25);
}

.navbar__status--in-progress {
  background: rgba(168, 85, 247, 0.02);
  color: rgba(168, 85, 247, 0.85);
  border-color: rgba(168, 85, 247, 0.25);
}

.navbar__status--active {
  background: rgba(59, 130, 246, 0.02);
  color: rgba(59, 130, 246, 0.85);
  border-color: rgba(59, 130, 246, 0.25);
}

.navbar__status--just-started {
  background: rgba(16, 185, 129, 0.02);
  color: rgba(16, 185, 129, 0.85);
  border-color: rgba(16, 185, 129, 0.25);
}

.navbar-panel__footer {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
}

.navbar-panel__action {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 42, 0.7);
  color: #c7d2fe;
  padding: 0.4rem 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--font);
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.navbar-panel__action:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: #f8fafc;
}

.navbar-panel__action--secondary {
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
}

.navbar-panel__action--secondary:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #c7d2fe;
}

/* ===== GAME CARD ===== */

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  min-height: 340px;
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.game-card__glow {
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--game-color, var(--accent)) 15%, transparent);
  filter: blur(70px);
  pointer-events: none;
}

.game-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.game-card__title-block {
  position: relative;
  z-index: 1;
}

.game-card__pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid color-mix(in srgb, var(--game-color, var(--accent)) 20%, transparent);
  background: rgba(15, 23, 42, 0.4);
  color: color-mix(in srgb, var(--game-color, var(--accent)) 85%, #94a3b8);
}

.game-card__title {
  margin: 0.4rem 0 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.game-card__subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.game-card__label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-strong);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.game-card__next-season {
  position: relative;
  z-index: 1;
  text-align: right;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.06);
  min-width: 140px;
}

.game-card__next-season strong {
  display: block;
  margin-top: 0.1rem;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
}

.game-card__next-season-date {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.game-card__body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
}

.game-card__panel {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.game-card__panel--main {
  min-height: 150px;
}

.game-card__panel--side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.game-card__panel--features {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card__season {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.game-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.game-card__meta-row span:last-child {
  color: #e2e8f0;
  font-weight: 600;
}

.game-card__progress-block {
  margin-top: 0.85rem;
}

.game-card__progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.game-card__details {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.game-card__details strong {
  display: block;
  color: #fff;
  margin-top: 0.15rem;
}

.game-card__features-block {
  margin-top: 0.3rem;
}

.game-card__features-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.game-card__features-header::before {
  display: none;
}

.game-card__features-title {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.game-card__feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.game-card__feature-item {
  font-size: 0.75rem;
  color: #e6eefb;
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.game-card__feature-item::before {
  display: none;
}

/* Countdown inside game card — compact blocks */
.game-card__countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.game-card__countdown-item {
  padding: 0.85rem 0.4rem;
  text-align: center;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.game-card__countdown-item strong {
  display: block;
  font-size: 1.1rem;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.1;
}

.game-card__countdown-item span {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--muted-strong);
  letter-spacing: 0.08em;
}

.game-card__developer {
  color: #fff;
  padding: 0;
  background: transparent;
  border: none;
}

.game-card__developer__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-strong);
  margin: 0 0 0.1rem;
}

.game-card__developer strong {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  transition: color 0.15s ease, gap 0.15s ease;
  padding: 0.2rem 0;
}

.game-card__link:hover {
  color: #a5b4fc;
  gap: 0.45rem;
}

.game-card__link::after {
  content: '→';
  font-size: 0.9em;
}

/* ===== GAME CARD CTA BLOCK ===== */
.game-card__cta-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0 0 0;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.game-card__cta-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-xs);
  font-size: 1.1rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.game-card__cta-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.game-card__cta-title {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-card__cta-subtitle {
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.game-card__cta-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

/* Hover effects */
.game-card__cta-block:hover {
  background-color: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.game-card__cta-block:hover .game-card__cta-arrow {
  transform: translateX(3px);
}

/* ===== STATUS BADGE (standalone) ===== */

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.status-badge--active {
  background: rgba(16, 185, 129, 0.14);
  color: var(--green-text);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-badge--in-development {
  background: var(--amber-soft);
  color: var(--amber-text);
  border-color: rgba(245, 158, 11, 0.2);
}

.status-badge--default {
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.15);
}

/* ===== PROGRESS BAR ===== */

.progress-bar {
  display: grid;
  gap: 0.3rem;
}

.progress-bar__label {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar__track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
  position: relative;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f7d96a);
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== TIMELINE ===== */

.timeline-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #e6eefb;
  letter-spacing: 0.02em;
}

.timeline-card__caption {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-card__year-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- HORIZONTAL GRID --- */
.timeline-map__scroll-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.timeline-map__grid {
  position: relative;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 2.25rem 1.25rem 1.25rem 1.25rem;
  overflow: hidden;
}

.timeline-map__months {
  display: flex;
  margin-left: 180px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.timeline-map__month {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.timeline-map__grid-lines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 192px; /* 180px row label + 12px grid start offset */
  right: 20px; /* offset for right edge alignment */
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.timeline-map__grid-line {
  flex: 1;
  border-right: 1px dashed rgba(255, 255, 255, 0.03);
}

.timeline-map__rows {
  position: relative;
  z-index: 2;
}

/* --- ROW LAYOUT --- */
.timeline-map__row {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-map__row:last-child {
  margin-bottom: 0.5rem;
}

.timeline-map__row-label {
  width: 180px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.timeline-map__row-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.timeline-map__row-emoji {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.timeline-map__row-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.timeline-map__row-track {
  flex: 1;
  position: relative;
  height: 24px;
  margin-left: 12px;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

/* --- LINES & NODES --- */
.timeline-bar {
  position: absolute;
  border-radius: 999px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-bar--current-elapsed {
  height: 4px;
  background: var(--game-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--game-color) 40%, transparent);
  animation: drawLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: left center;
}

.timeline-bar--current-remaining {
  height: 4px;
  background: var(--game-color);
  opacity: 0.45; /* Faded remaining portion */
  animation: drawLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: left center;
}

.timeline-bar__title {
  position: absolute;
  bottom: 8px;
  left: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--game-color) 85%, #ffffff);
}

.timeline-circle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #090d16;
  border: 3px solid var(--game-color);
  transform: translate(-50%, -50%);
  top: 50%;
  z-index: 5;
  box-shadow: 0 0 8px var(--game-color);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  animation: popNode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.timeline-circle:hover {
  transform: translate(-50%, -50%) scale(1.35);
  background-color: var(--game-color);
}

.timeline-circle__label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--game-color) 85%, #ffffff);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-circle__date {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.timeline-bar--future {
  height: 2px;
  border-top: 2px dashed color-mix(in srgb, var(--game-color) 35%, transparent);
}

/* --- NOW LINE & DOT --- */
.timeline-map__now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), rgba(139, 92, 246, 0.05));
  z-index: 3;
  pointer-events: none;
}

.timeline-map__now-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.timeline-map__now-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--game-color);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  box-shadow: 0 0 10px var(--game-color);
  pointer-events: none;
}

/* --- ANIMATIONS --- */
@keyframes drawLine {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

@keyframes popNode {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* --- TOOLTIP --- */
.timeline-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  font-family: inherit;
  backdrop-filter: blur(4px);
  max-width: 250px;
}

.timeline-tooltip__title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.timeline-tooltip__season {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
}

.timeline-tooltip__detail {
  font-size: 0.65rem;
  color: #cbd5e1;
  margin-bottom: 0.15rem;
}

.timeline-tooltip__detail strong {
  color: var(--muted);
}

/* --- UPCOMING LAUNCHES CARD GRID --- */
.upcoming-launches {
  margin-top: 0.5rem;
}

.upcoming-launches__header {
  margin-bottom: 1rem;
}

.upcoming-launches__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e6eefb;
  letter-spacing: 0.02em;
}

.upcoming-launches__caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.upcoming-launches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.upcoming-card {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--game-color);
  opacity: 0.6;
}

.upcoming-card:hover {
  background: rgba(15, 23, 42, 0.45);
  border-color: color-mix(in srgb, var(--game-color) 40%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--game-color) 12%, transparent);
}

.upcoming-card__date-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  width: 100%;
}

.upcoming-card__date {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--game-color);
  letter-spacing: 0.05em;
}

.upcoming-card__hype-badge {
  background: #ea580c; /* bright neon orange */
  color: #ffffff;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

/* --- HYPE PULSE ANIMATIONS --- */
@keyframes hypePulse {
  0% {
    box-shadow: 0 0 5px var(--game-color);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 15px var(--game-color);
    transform: translate(-50%, -50%) scale(1.2);
    background-color: var(--game-color);
  }
  100% {
    box-shadow: 0 0 5px var(--game-color);
    transform: translate(-50%, -50%) scale(1);
  }
}

.timeline-circle--hype {
  animation: hypePulse 2s infinite ease-in-out, popNode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both !important;
}

@keyframes hypeLinePulse {
  0% { opacity: 0.35; }
  50% { opacity: 0.95; }
  100% { opacity: 0.35; }
}

.timeline-bar--future-hype {
  animation: hypeLinePulse 2s infinite ease-in-out;
}

@keyframes hypeCardPulse {
  0% {
    border-color: color-mix(in srgb, var(--game-color) 30%, transparent);
    box-shadow: 0 0 4px color-mix(in srgb, var(--game-color) 8%, transparent);
  }
  50% {
    border-color: var(--game-color);
    box-shadow: 0 0 15px color-mix(in srgb, var(--game-color) 25%, transparent);
  }
  100% {
    border-color: color-mix(in srgb, var(--game-color) 30%, transparent);
    box-shadow: 0 0 4px color-mix(in srgb, var(--game-color) 8%, transparent);
  }
}

.upcoming-card--hype {
  animation: hypeCardPulse 2.5s infinite ease-in-out;
  background: rgba(15, 23, 42, 0.45) !important;
}

/* ===== TOAST ===== */

.upcoming-card__game-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-card__season-name {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.15rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-card__countdown {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.5rem;
}

.upcoming-card__countdown-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0;
}

.upcoming-card__countdown-item strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.upcoming-card__countdown-item span {
  font-size: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.02rem;
}

/* ===== TOAST ===== */

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 60;
  animation: toast-slide-in 0.3s ease-out;
  max-width: 400px;
  border-color: rgba(148, 163, 184, 0.15);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.toast--error .toast__icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.toast--success .toast__icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green-text);
}

.toast__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f8fafc;
}

.toast__message {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.05rem;
}

/* ===== MODAL ===== */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal--hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__content {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-width: min(90vw, 420px);
  animation: modal-scale-in 0.2s ease-out;
  border-color: rgba(148, 163, 184, 0.12);
}

@keyframes modal-scale-in {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.modal__close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #f8fafc;
}

.modal__title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal__body {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .app-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  #content {
    order: 1;
  }

  #navbar {
    order: 2;
  }

  .game-card__body {
    grid-template-columns: 1fr;
  }

  .game-card__panel--side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .game-card__panel--side > * {
    flex: 1;
    min-width: 140px;
  }

  /* Timeline mobile reordering: Upcoming launches first, timeline map second */
  .timeline-view-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .upcoming-launches {
    order: 1;
  }

  .timeline-card {
    order: 2;
  }
}

@media (max-width: 640px) {
  .app-layout {
    padding: 0.75rem 0.5rem 1.5rem;
    gap: 0.75rem;
  }

  .game-card__header {
    flex-direction: column;
  }

  .game-card__next-season {
    text-align: left;
    width: 100%;
  }

  .game-card__countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card__feature-grid {
    grid-template-columns: 1fr;
  }

  .navbar-panel {
    position: static;
  }
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== VERIFICATION BADGES & TBA STATES ===== */

.game-card__next-season-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.game-card__season {
  display: block;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.verification-badge__link {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
}

.verification-badge__link:hover .verification-badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.verification-badge--official {
  background: var(--green-soft);
  color: var(--green-text);
  border-color: rgba(16, 185, 129, 0.3);
}

.verification-badge--ai {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.verification-badge--estimated {
  background: rgba(245, 195, 66, 0.04);
  color: #f5c342;
  border-color: rgba(245, 195, 66, 0.18);
}

/* TBA Countdown & Progress placeholders */
.game-card__countdown--tba,
.game-card__countdown--launched {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  min-height: 104px;
}

.game-card__countdown--launched {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

.game-card__tba-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  opacity: 0.7;
  animation: float-slow 3s ease-in-out infinite;
}

.game-card__tba-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.game-card__progress-bar-placeholder {
  width: 100%;
  height: 8px;
  background: var(--border-soft);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
}

.game-card__progress-bar-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ===== APP HEADER & FOOTER (SeasonForge) ===== */

.app-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}

.app-header__logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-header__icon {
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.app-header__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-header__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.app-header__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}

.app-header__right-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-header__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.app-header__meta-label {
  color: var(--muted-strong);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-header__meta strong {
  color: #a5b4fc;
  font-weight: 600;
}

/* App Footer */
.app-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--muted-strong);
  position: relative;
  z-index: 1;
}

.app-footer__reset-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.app-footer__reset-btn:hover {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-soft);
}

/* Sidebar Action Buttons Active State */
.navbar-panel__action.navbar-panel__action--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.navbar-panel__action.navbar-panel__action--active:hover {
  background: color-mix(in srgb, var(--accent) 85%, #fff);
  border-color: color-mix(in srgb, var(--accent) 85%, #fff);
}

/* Feature Checkmark Icons */
.game-card__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.game-card__feature-check {
  color: var(--game-color, var(--accent));
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.game-card__feature-text {
  font-size: 0.75rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.game-card__features-compass {
  margin-right: 0.25rem;
  font-size: 0.85rem;
}

/* Official Source styling under title */
.game-card__source-info {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.game-card__source-badge {
  color: #a5b4fc;
  font-weight: 600;
  background: rgba(165, 180, 252, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(165, 180, 252, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.game-card__source-title {
  color: var(--text);
  font-weight: 600;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.game-card__source-link {
  color: var(--game-color, var(--accent));
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.game-card__source-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  padding: 2px;
  backdrop-filter: blur(8px);
}

.lang-switcher__btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-family: var(--font);
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: calc(var(--radius-xs) - 2px);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-switcher__btn:hover {
  color: var(--text);
}

.lang-switcher__btn--active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

.lang-switcher__flag {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
  display: inline-block;
}

/* History Table styling */
.history-table th, .history-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #1f2937;
}
.history-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.history-table__link {
  color: var(--color-primary, #6366f1);
  text-decoration: none;
  transition: opacity 0.2s;
}
.history-table__link:hover {
  opacity: 0.8;
}

/* Useful Links Grid styling */
.game-card__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}
.game-card__link-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s;
}
.game-card__link-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(99, 102, 241, 0.18);
}
.game-card__link-category {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted-strong);
  letter-spacing: 0.08em;
}
.game-card__link-anchor {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.game-card__link-anchor:hover {
  color: var(--color-primary, #a5b4fc);
}
.game-card__link-anchor::after {
  content: '↗';
  font-size: 0.8em;
  opacity: 0.7;
}

/* --- FEEDBACK MODAL & BUTTON STYLES --- */
.feedback-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  padding: 0.4rem 0.8rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.feedback-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.feedback-trigger-btn:active {
  transform: translateY(0);
}

.feedback-trigger-btn__icon {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Modal Overlay Base styling */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.feedback-modal-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container Box */
.feedback-modal-container {
  background: #0f172a; /* Slate 900 matching page design */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-modal-overlay--visible .feedback-modal-container {
  transform: scale(1);
}

.feedback-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feedback-modal__subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Fields formatting */
.feedback-form__field {
  margin-bottom: 1.25rem;
}

.feedback-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Radio button group styling */
.feedback-form__radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feedback-form__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.feedback-form__radio-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.feedback-form__radio-label input[type="radio"] {
  accent-color: #6366f1; /* Indigo-500 */
  margin: 0;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

/* Textarea & Input */
.feedback-form__textarea,
.feedback-form__input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.925rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.feedback-form__textarea {
  min-height: 140px;
  max-height: 280px;
  resize: vertical;
  line-height: 1.5;
}

.feedback-form__textarea::placeholder,
.feedback-form__input::placeholder {
  color: #475569;
}

.feedback-form__textarea:focus,
.feedback-form__input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

/* Error alert banner */
.feedback-form__error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  animation: slideDownError 0.2s ease-out;
}

@keyframes slideDownError {
  from { transform: translateY(-5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Form Buttons */
.feedback-form__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.feedback-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.feedback-form__btn--cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.feedback-form__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

.feedback-form__btn--submit {
  background: #6366f1; /* Indigo 500 */
  border: 1px solid #4f46e5;
  color: #ffffff;
  min-width: 110px;
  position: relative;
}

.feedback-form__btn--submit:hover:not(:disabled) {
  background: #4f46e5;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.feedback-form__btn--submit:disabled {
  cursor: not-allowed;
  background: rgba(99, 102, 241, 0.5);
  border-color: transparent;
}

/* Spinner Loader */
.feedback-form__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinLoader 0.6s linear infinite;
  position: absolute;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* Success Screen inside Container */
.feedback-success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  animation: scaleUpSuccess 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUpSuccess {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.feedback-success-screen__icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.feedback-success-screen__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981; /* Emerald-500 */
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feedback-success-screen__text {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin-top: 0;
  line-height: 1.5;
}

/* Mobile responsive padding and styles */
@media (max-width: 480px) {
  .feedback-modal-overlay {
    padding: 1rem;
  }
  .feedback-modal-container {
    padding: 1.75rem 1.25rem;
  }
  .feedback-form__radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .feedback-form__radio-label {
    width: 100%;
    box-sizing: border-box;
  }
  .feedback-form__buttons {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .feedback-form__btn {
    width: 100%;
  }
}

/* --- STREAMER WIDGET BUTTON & MODAL --- */
.streamer-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  padding: 0.4rem 0.8rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.streamer-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.45); /* Violet accent */
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.streamer-trigger-btn:active {
  transform: translateY(0);
}

.streamer-trigger-btn__icon {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Modal Overlay and Container */
.streamer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.streamer-modal-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.streamer-modal-container {
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.15); /* Soft violet border */
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  padding: 2.25rem 2rem;
  max-width: 500px;
  width: 100%;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streamer-modal-overlay--visible .streamer-modal-container {
  transform: scale(1);
}

.streamer-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Form selects and inputs */
.streamer-form__field {
  margin-bottom: 1.25rem;
}

.streamer-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.streamer-form__select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.925rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  cursor: pointer;
}

.streamer-form__select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Link input and Copy button */
.streamer-form__url-wrapper {
  display: flex;
  gap: 0.5rem;
}

.streamer-form__input-readonly {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.75rem 0.9rem;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.streamer-form__btn-copy {
  background: #8b5cf6; /* Violet-500 */
  border: 1px solid #7c3aed;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.streamer-form__btn-copy:hover {
  background: #7c3aed;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.streamer-form__btn-copy--success {
  background: #10b981 !important; /* Emerald-500 */
  border-color: #059669 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
}

/* Recommendations and instruction box */
.streamer-info-box {
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.streamer-info-box__resolution {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.streamer-info-box__resolution strong {
  color: #f1f5f9;
}

.streamer-info-box__resolution span {
  color: #a78bfa;
  font-weight: 700;
  font-family: monospace;
}

.streamer-info-box__instructions strong {
  display: block;
  font-size: 0.85rem;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.streamer-info-box__instructions ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #94a3b8;
  font-size: 0.825rem;
  line-height: 1.5;
}

.streamer-info-box__instructions li {
  margin-bottom: 0.35rem;
}

.streamer-form__buttons {
  display: flex;
  justify-content: flex-end;
}

.streamer-form__btn-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.streamer-form__btn-close:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- OVERLAY MODE (OBS TRANSPARENCY & CONTRAST) --- */
body.app-layout--overlay {
  background: transparent !important;
  overflow: hidden !important;
}

/* Completely hide navigations and static elements in overlay mode */
body.app-layout--overlay .app-header,
body.app-layout--overlay .app-footer,
body.app-layout--overlay #navbar,
body.app-layout--overlay #feedback-trigger-btn,
body.app-layout--overlay #streamer-trigger-btn,
body.app-layout--overlay .lang-switcher,
body.app-layout--overlay .game-card__cta-block,
body.app-layout--overlay .game-card__source-info {
  display: none !important;
}

/* Remove wrappers, shadows, borders and paddings in overlay mode */
body.app-layout--overlay .app-layout {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
}

body.app-layout--overlay #content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Apply contrast text-shadows for readability over dynamic gameplays */
body.app-layout--overlay .game-card__title,
body.app-layout--overlay .game-card__season,
body.app-layout--overlay .game-card__countdown-item strong,
body.app-layout--overlay .game-card__label,
body.app-layout--overlay .game-card__next-season-title,
body.app-layout--overlay .game-card__next-season-date,
body.app-layout--overlay .timeline-map__title,
body.app-layout--overlay .timeline-months__header span,
body.app-layout--overlay .timeline-row__game-label,
body.app-layout--overlay .timeline-row__short-name,
body.app-layout--overlay .upcoming-card__title,
body.app-layout--overlay .upcoming-card__next-season {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.95), -1px -1px 2px rgba(0, 0, 0, 0.95), 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Semi-translucent glassy backdrop panels for readability */
body.app-layout--overlay .game-card {
  max-width: 420px;
  min-height: auto !important; /* Fix squished look by letting card auto-shrink to hug contents */
  margin: 0;
  padding: 1.5rem 1.5rem 3.75rem !important; /* Generous bottom padding to prevent watermark overlap */
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.25) !important; /* Soft violet border */
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

body.app-layout--overlay .game-card__body {
  display: block !important; /* Stack panels vertically and take full 100% width */
}

/* Make inner panels borderless and backgroundless to avoid double-box clutter */
body.app-layout--overlay .game-card__panel {
  width: 100% !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

/* Hide header subtitle, next season badge, pill status, developer, and prefix text in overlay mode */
body.app-layout--overlay .game-card__pill,
body.app-layout--overlay .game-card__subtitle,
body.app-layout--overlay .game-card__next-season,
body.app-layout--overlay .game-card__developer,
body.app-layout--overlay .game-card__countdown-prefix {
  display: none !important;
}

body.app-layout--overlay .game-card__title {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.02em !important;
}

/* Add margin offsets in overlay mode for spacious layout */
body.app-layout--overlay .game-card__countdown {
  margin-top: 1.25rem !important;
}

body.app-layout--overlay .game-card__progress-block {
  margin-top: 1.25rem !important;
}

body.app-layout--overlay .timeline-card {
  position: relative !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.5rem 3.75rem !important; /* Generous bottom padding to prevent watermark overlap */
  border-radius: 12px;
}

/* --- WATERMARK FOR OBS OVERLAYS --- */
.game-card__watermark,
.timeline-card__watermark {
  display: none;
}

body.app-layout--overlay .game-card__watermark,
body.app-layout--overlay .timeline-card__watermark {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: rgba(15, 23, 42, 0.95) !important;
  border-radius: 9999px;
  pointer-events: none;
  font-family: var(--font-sans, system-ui, sans-serif);
  user-select: none;
  white-space: nowrap;
  z-index: 10;
  box-sizing: border-box;
}

body.app-layout--overlay .game-card__watermark {
  border: 1px solid color-mix(in srgb, var(--game-color, var(--accent, #8b5cf6)) 40%, transparent) !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--game-color, var(--accent, #8b5cf6)) 30%, transparent),
              0 4px 6px -1px rgba(0, 0, 0, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.app-layout--overlay .timeline-card__watermark {
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 40%, transparent) !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent, #8b5cf6) 30%, transparent),
              0 4px 6px -1px rgba(0, 0, 0, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.app-layout--overlay .game-card__watermark-logo,
body.app-layout--overlay .timeline-card__watermark-logo {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
}

body.app-layout--overlay .game-card__watermark-dot,
body.app-layout--overlay .timeline-card__watermark-dot {
  color: var(--game-color, var(--accent, #8b5cf6));
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: 0 0 4px var(--game-color, var(--accent, #8b5cf6));
}

body.app-layout--overlay .game-card__watermark-text,
body.app-layout--overlay .timeline-card__watermark-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(241, 245, 249, 0.85); /* Smooth light-gray/off-white */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Specific conditional hides based on widget type */
body.overlay-type-status .game-card__panel--side,
body.overlay-type-status .game-card__panel--features,
body.overlay-type-status .game-card__next-season {
  display: none !important;
}

body.overlay-type-countdown .game-card__panel--main,
body.overlay-type-countdown .game-card__panel--features,
body.overlay-type-countdown .game-card__next-season-title,
body.overlay-type-countdown .game-card__next-season-date {
  display: none !important;
}

/* In countdown-only mode, remove side panel borders and padding offsets */
body.overlay-type-countdown .game-card__panel--side {
  border-left: none !important;
  padding: 0 !important;
  margin-top: 0.25rem;
}

/* Mobile responsive fixes for Configurator Modal */
@media (max-width: 480px) {
  .streamer-modal-overlay {
    padding: 1rem;
  }
  .streamer-modal-container {
    padding: 1.75rem 1.25rem;
  }
  .streamer-form__url-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  .streamer-form__btn-copy {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Mobile responsive fixes for App Header & Lang Switcher */
@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
    padding: 1rem 1rem 1.25rem !important;
  }

  .app-header__right-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100%;
  }

  .app-header__meta {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .app-header__tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    padding: 0.25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .app-header__tools::-webkit-scrollbar {
    display: none;
  }

  .feedback-trigger-btn,
  .streamer-trigger-btn,
  .lang-switcher {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  .lang-switcher__btn {
    flex: 0 0 auto !important;
    justify-content: center;
  }
}

/* Mobile responsive fixes for Timeline */
@media (max-width: 768px) {
  .timeline-map__grid {
    min-width: 750px;
  }
  .timeline-map__row-label {
    width: 48px !important;
  }
  .timeline-map__row-name {
    display: none !important;
  }
  .timeline-map__months {
    margin-left: 48px !important;
  }
  .timeline-map__grid-lines {
    left: 60px !important;
  }
}

/* Mobile bottom nav bar styling (hidden on desktop) */
.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 75px !important;
  }

  #navbar {
    display: none !important;
  }

  .app-header__tools {
    display: none !important;
  }

  .app-header__meta {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 40;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav__btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--muted);
    font-family: var(--font);
    cursor: pointer;
    flex: 1;
    height: 100%;
    padding: 0.35rem 0;
    transition: color 0.15s ease, transform 0.1s ease;
  }

  .mobile-nav__btn:active {
    transform: scale(0.95);
  }

  .mobile-nav__icon {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .mobile-nav__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-nav__btn--active {
    color: var(--accent, #6366f1);
  }

  .mobile-nav__btn--active .mobile-nav__icon {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  }

  .game-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .game-card {
    display: block !important;
  }
}

/* Desktop: show only active game card in the feed. Mobile: show all cards vertically */
@media (min-width: 901px) {
  .game-feed .game-card {
    display: none;
  }
  .game-feed .game-card.game-card--active {
    display: block;
  }
}

/* Panel view styles for More and Mobile Games tabs */
.more-panel,
.mobile-games-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.more-panel__title,
.mobile-games-panel__title {
  margin: 0 0 1.25rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.more-panel__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.more-panel__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.more-panel__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-strong);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.more-panel__lang-row {
  display: flex;
  gap: 0.75rem;
}

.more-panel__lang-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 0.6rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-panel__lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.more-panel__lang-btn--active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.more-panel__tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.more-panel__tool-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.more-panel__tool-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #fff;
  transform: translateX(2px);
}

.more-panel__tool-icon {
  font-size: 1.1rem;
}

.more-panel__about-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.more-panel__about-box p {
  margin: 0 0 0.5rem 0;
}

.more-panel__about-box p:last-child {
  margin-bottom: 0;
}

.more-panel__about-box strong {
  color: var(--text);
}