/* ============================================================
   game-ui.css — FPS Manager Game UI Components & Animations
   Layers on top of Bootstrap 5 — never removes Bootstrap styles
   ============================================================ */

/* --- Theme-Aware CSS Variables --- */
:root {
  --game-bg-base: #0e1117;
  --game-bg-panel: #161b22;
  --game-bg-elevated: #1c2128;
  --game-text-primary: var(--game-text-primary);
  --game-text-secondary: var(--game-text-secondary);
  --game-border: var(--game-border);
  --game-shimmer: rgba(255,255,255,0.08);
  --game-inset: rgba(255,255,255,0.03);
}

[data-bs-theme="light"] {
  --game-bg-base: #f0f2f5;
  --game-bg-panel: #ffffff;
  --game-bg-elevated: #f6f8fa;
  --game-text-primary: #1f2328;
  --game-text-secondary: #656d76;
  --game-border: #d0d7de;
  --game-shimmer: rgba(0,0,0,0.06);
  --game-inset: rgba(0,0,0,0.03);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.nav-link, .navbar-brand,
.badge, .card-header, .btn,
.game-stat-value, .game-stat-label,
.game-header-title, .game-header-subtitle,
.footer, .game-statusbar,
.progress-bar, .table th,
.form-label, .lead {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
}

h1 { font-weight: 700; letter-spacing: 0.02em; }
h2 { font-weight: 600; letter-spacing: 0.02em; }
h3, h4 { font-weight: 600; letter-spacing: 0.015em; }
h5, h6 { font-weight: 600; letter-spacing: 0.01em; }

.nav-link, .navbar-brand {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge, .btn, .card-header, .table th {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--game-bg-panel); }
::-webkit-scrollbar-thumb { background: var(--game-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f0b232; }
::-webkit-scrollbar-corner { background: var(--game-bg-panel); }

.game-scroll-y {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--game-border) var(--game-bg-panel);
}

/* --- Page Fade-In --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: fadeIn 0.25s ease-out;
}

/* --- Shimmer Sweep for Progress Bars --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.progress-bar {
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--game-shimmer) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

/* --- Card Hover Lift --- */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* --- Gold Glow on Primary Buttons --- */
.btn-primary:hover {
  box-shadow: 0 0 12px rgba(240, 178, 50, 0.4);
}

/* --- Inactive Nav Opacity --- */
.navbar-nav .nav-link:not(.active) {
  opacity: 0.75;
}
.navbar-nav .nav-link:not(.active):hover {
  opacity: 1;
}

/* --- Nav Link Hover Underline --- */
.navbar-nav .nav-link {
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f0b232;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

/* --- Active Nav Link --- */
.navbar-nav .nav-link.active {
  color: #f0b232 !important;
  position: relative;
}
.navbar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #f0b232;
  border-radius: 2px;
}
.navbar-nav .nav-link.active::after {
  transform: scaleX(1) !important;
}

/* --- Nav Section Labels --- */
.nav-section-label span {
  font-size: 0.65rem !important;
  letter-spacing: 0.08em !important;
  opacity: 0.4;
  cursor: default;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Game Panel --- */
.game-panel {
  background: linear-gradient(135deg, var(--game-bg-elevated) 0%, var(--game-bg-panel) 100%);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--game-inset);
}
.game-panel-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-panel-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-panel-gold { border-left: 4px solid #f0b232; }
.game-panel-green { border-left: 4px solid #3fb950; }
.game-panel-red { border-left: 4px solid #f85149; }

/* --- Game Stat Blocks --- */
.game-stat {
  text-align: center;
  padding: 0.75rem 1rem;
}
.game-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: #f0b232;
}
.game-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--game-text-secondary);
  display: block;
  margin-top: 0.25rem;
}

/* --- Game Header (Page Titles) --- */
.game-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--game-border);
}
.game-header-icon {
  font-size: 1.5rem;
  color: #f0b232;
}
.game-header-title {
  margin: 0;
  font-size: 1.5rem;
}
.game-header-subtitle {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--game-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Game Divider --- */
.game-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0b232, transparent);
  opacity: 0.4;
  margin: 1.5rem 0;
}

/* --- Game Button Variants --- */
.game-button {
  position: relative;
  transition: all 0.2s ease;
  font-weight: 600;
}
.game-button:hover {
  transform: translateY(-1px);
}
.game-button-primary {
  background: #f0b232;
  border-color: #f0b232;
  color: #0e1117;
}
.game-button-primary:hover {
  background: #d99e1e;
  border-color: #d99e1e;
  color: #0e1117;
  box-shadow: 0 0 12px rgba(240, 178, 50, 0.4);
}
.game-button-outline {
  background: transparent;
  border: 1px solid #f0b232;
  color: #f0b232;
}
.game-button-outline:hover {
  background: #f0b232;
  color: #0e1117;
  box-shadow: 0 0 12px rgba(240, 178, 50, 0.3);
}
.game-button-danger {
  background: #f85149;
  border-color: #f85149;
  color: #fff;
}
.game-button-ghost {
  background: transparent;
  border: none;
  color: var(--game-text-secondary);
  padding: 0.25rem 0.75rem;
}
.game-button-ghost:hover {
  color: #f0b232;
  text-shadow: 0 0 8px rgba(240, 178, 50, 0.4);
}
.game-button-danger:hover {
  background: #e03a32;
  border-color: #e03a32;
  box-shadow: 0 0 12px rgba(248, 81, 73, 0.4);
}

/* --- Base layout --- */
body {
  margin-bottom: 0;
  min-height: 100vh;
}

/* Default body: flex column for non-sidebar pages */
body:not(.sidebar-layout) {
  display: flex;
  flex-direction: column;
}

/* Sidebar layout: flex row */
.sidebar-layout {
  display: flex;
  flex-direction: row;
  background: var(--game-bg-base);
}

.game-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--game-bg-base);
  border-right: 1px solid var(--game-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width 0.2s ease, min-width 0.2s ease;
  z-index: 1030;
  flex-shrink: 0;
}

.game-sidebar.collapsed {
  width: 60px;
  min-width: 60px;
}

/* Main content area — works in both flex column and flex row layouts */
.sidebar-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-main > .container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-main > .container-fluid > main {
  flex: 1;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--game-border);
  min-height: 54px;
  flex-shrink: 0;
}

.sidebar-brand-icon {
  font-size: 1.25rem;
  color: #f0b232;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-brand-text {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--game-text-primary);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.game-sidebar.collapsed .sidebar-brand-text { opacity: 0; }
.game-sidebar.collapsed .sidebar-brand-icon { display: none; }
.game-sidebar.collapsed .sidebar-header { justify-content: flex-end; padding-right: 0.5rem; }

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--game-border) transparent;
}

.sidebar-section-label {
  padding: 0.75rem 1rem 0.2rem;
  font-size: 0.6rem;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--game-text-secondary);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.game-sidebar.collapsed .sidebar-section-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: var(--game-text-secondary);
  text-decoration: none;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  color: var(--game-text-primary);
  background: rgba(240, 178, 50, 0.06);
}

.sidebar-nav-link.active {
  color: #f0b232;
  border-left-color: #f0b232;
  background: rgba(240, 178, 50, 0.08);
}

.sidebar-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-nav-link span {
  transition: opacity 0.15s ease;
}

.game-sidebar.collapsed .sidebar-nav-link span { opacity: 0; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--game-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.sidebar-footer-btn {
  background: none;
  border: none;
  color: var(--game-text-secondary);
  font-size: 1rem;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}

.sidebar-footer-btn:hover {
  color: #f0b232;
  background: rgba(240, 178, 50, 0.08);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #f85149;
  color: #fff;
  font-size: 0.55rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.sidebar-user-name {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--game-text-secondary);
  white-space: nowrap;
  transition: opacity 0.15s ease;
  margin-left: auto;
}

.game-sidebar.collapsed .sidebar-user-name { opacity: 0; }

/* Sidebar Collapse Button */
.sidebar-collapse-btn {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--game-bg-elevated);
  border: 1px solid var(--game-border);
  color: var(--game-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.6rem;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.6;
}

.sidebar-collapse-btn:hover {
  opacity: 1;
  background: var(--game-bg-panel);
  color: #f0b232;
  border-color: #f0b232;
}

.game-sidebar.collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}

/* --- Mobile Bottom Navigation --- */
.game-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--game-bg-base);
  border-top: 1px solid var(--game-border);
  padding: 0.2rem 0;
  padding-bottom: env(safe-area-inset-bottom, 0.2rem);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem 0.5rem;
  color: var(--game-text-secondary);
  text-decoration: none;
  font-size: 0.55rem;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  cursor: pointer;
}

.bottom-nav-item i {
  font-size: 1.15rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #f0b232;
}

/* Mobile Nav Offcanvas */
.game-nav-offcanvas {
  background: var(--game-bg-base) !important;
  border-top: 1px solid var(--game-border) !important;
  max-height: 70vh !important;
}

.game-nav-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--game-border);
  padding: 0.75rem 1rem;
}

.game-nav-offcanvas .offcanvas-title {
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.game-nav-offcanvas .offcanvas-body {
  padding: 0.5rem;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mobile-nav-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  background: var(--game-bg-panel);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  color: var(--game-text-secondary);
  text-decoration: none;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.mobile-nav-grid-item i {
  font-size: 1.3rem;
}

.mobile-nav-grid-item:hover,
.mobile-nav-grid-item.active {
  color: #f0b232;
  border-color: #f0b232;
  background: rgba(240, 178, 50, 0.08);
}

/* --- Sidebar / Bottom Nav Responsive --- */
@media (max-width: 991.98px) {
  .game-sidebar { width: 60px; min-width: 60px; }
  .game-sidebar.collapsed { width: 60px; min-width: 60px; }
  .sidebar-brand-text { display: none; }
  .sidebar-section-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }
  .sidebar-nav-link span { display: none; }
  .sidebar-user-name { display: none; }
  .sidebar-collapse-btn { display: none; }
}

@media (max-width: 767.98px) {
  .game-sidebar { display: none; }
  .sidebar-main { margin-left: 0 !important; }
  .game-bottom-nav { display: flex; }
  .sidebar-main > .container-fluid { padding-bottom: 4.5rem; }
}

.game-statusbar {
  background: var(--game-bg-panel);
  border-top: 1px solid var(--game-border);
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0;
}
.game-statusbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}
.game-statusbar-left,
.game-statusbar-center,
.game-statusbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.game-statusbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.statusbar-separator {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--game-border);
}
.game-statusbar a {
  color: var(--game-text-secondary);
  text-decoration: none;
}
.game-statusbar a:hover {
  color: #f0b232;
}

/* --- Form Dots --- */
.form-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--game-border);
}
.form-dot-green { background: #3fb950; }
.form-dot-yellow { background: #d29922; }
.form-dot-red { background: #f85149; }

/* --- Stat Bar (Taller with value text) --- */
.game-stat-bar {
  height: 18px;
  border-radius: 4px;
}
.game-stat-bar .progress-bar {
  font-size: 0.6rem;
  line-height: 18px;
  overflow: visible;
}

/* --- Player Card Role Borders --- */
.player-card .card {
  border-left: 4px solid var(--game-border);
}
.player-card .card.border-role-entry    { border-left-color: #50c878; }
.player-card .card.border-role-awper    { border-left-color: #00bfff; }
.player-card .card.border-role-lurker   { border-left-color: #9b59b6; }
.player-card .card.border-role-support  { border-left-color: #2ecc71; }
.player-card .card.border-role-igl      { border-left-color: #f0b232; }

/* --- Game Role Badges --- */
.game-badge-entry    { background: #50c878; color: #0e1117; }
.game-badge-awper    { background: #00bfff; color: #0e1117; }
.game-badge-lurker   { background: #9b59b6; color: #fff; }
.game-badge-support  { background: #2ecc71; color: #0e1117; }
.game-badge-igl      { background: #f0b232; color: #0e1117; }

/* --- Match Card --- */
.game-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--game-bg-elevated) 0%, var(--game-bg-panel) 100%);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.game-match-card:hover {
  border-color: #f0b232;
  box-shadow: 0 0 12px rgba(240, 178, 50, 0.15);
  transform: translateY(-1px);
}

/* --- Badge Pulsing --- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 178, 50, 0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(240, 178, 50, 0); }
}
.badge-pulse {
  animation: pulse-gold 2s infinite;
}

/* --- Empty State --- */
.game-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--game-text-secondary);
}
.game-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.game-empty-state h5 {
  margin-bottom: 0.5rem;
}

/* --- Skeleton Loaders --- */
@keyframes skeleton-pulse {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.3; }
}
.skeleton-line {
  height: 12px;
  background: var(--game-border);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
.skeleton-line:last-child { width: 60%; }
.skeleton-card {
  height: 120px;
  background: var(--game-bg-panel);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* --- Pill Tabs (game-style tab navigation) --- */
.game-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--game-bg-panel);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  width: fit-content;
}
.game-tab-pill {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--game-text-secondary);
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
  text-decoration: none;
}
.game-tab-pill:hover {
  color: var(--game-text-primary);
  background: rgba(240, 178, 50, 0.1);
}
.game-tab-pill.active {
  background: #f0b232;
  color: #0e1117;
}

/* --- Mobile Nav --- */
@media (max-width: 575.98px) {
  .navbar-collapse .navbar-nav:last-child {
    border-top: 1px solid var(--game-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  .nav-section-label span {
    font-size: 0.6rem !important;
    opacity: 0.3;
  }
  .navbar-nav .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }
  .navbar-nav .nav-link.active::before {
    left: -4px;
    width: 2px;
  }
}

/* --- Responsive Cards & Grids --- */
@media (max-width: 767.98px) {
  .game-match-card {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .game-match-card .match-teams {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  .game-match-card .match-score {
    order: 2;
  }
  .game-match-card .match-actions {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .game-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .game-tab-pill {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
  .game-panel, .card {
    margin-bottom: 0.75rem;
  }
  .finance-summary .col-md-3 {
    margin-bottom: 0.5rem;
  }
  .finance-breakdown .col-md-4 {
    margin-bottom: 0.75rem;
  }
}

/* --- Responsive Status Bar --- */
@media (max-width: 768px) {
  .game-statusbar-center { display: none; }
  .game-statusbar-inner {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 3.5rem);
  }
  .game-stat-value { font-size: 1.4rem; }
  .game-header { flex-wrap: wrap; }
  .game-header-subtitle { margin-left: 0; width: 100%; }
}
