:root {
  --belfius-red: #c1031c;
  --belfius-red-deep: #440000;
  --bg-ivory: #f7f8fa;
  --bg-sand: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #1f2530;
  --ink-soft: #6b7280;
  --navy: #10223f;
  --navy-deep: #0b1a30;
  --gold: #9ca3af;
  --gold-soft: #cbd5e1;
  --line: #e5e7eb;
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-strong: 0 8px 20px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -5%, rgba(148, 163, 184, 0.1), transparent 38%),
    radial-gradient(circle at 86% 18%, rgba(30, 41, 59, 0.05), transparent 42%),
    linear-gradient(160deg, var(--bg-ivory), var(--surface-soft));
  letter-spacing: 0;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.container {
  max-width: 1180px;
}

.navbar-custom {
  background: linear-gradient(120deg, var(--belfius-red), var(--belfius-red-deep)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 14px rgba(144, 0, 78, 0.2);
}

.navbar-custom .navbar-brand {
  color: #fff !important;
  font-size: 1.24rem;
}

.navbar-custom .navbar-text {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
}

.navbar-custom .form-select {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

.navbar-custom .form-select option {
  color: var(--ink);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.86rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-navbar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.86rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-navbar:hover,
.btn-navbar:focus {
  transform: translateY(-0.5px);
  color: #fff !important;
  text-decoration: none;
}

.btn-action:hover,
.btn-action:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-0.5px);
  color: #fff !important;
  text-decoration: none;
}

.hero-section .btn-action {
  color: var(--navy) !important;
  border-color: #d1d5db;
  background: #f3f4f6;
}

.hero-section .btn-action:hover,
.hero-section .btn-action:focus {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: var(--navy) !important;
}

.hero-section {
  background: linear-gradient(150deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  padding: 1.55rem;
}

.hero-section .lead {
  color: var(--ink-soft);
  margin-bottom: 0;
  line-height: 1.45;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.card-title {
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(148, 163, 184, 0.08);
}

.table thead th {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  border-bottom-width: 1px;
}

.table td,
.table th {
  border-color: #e5e7eb;
}

.list-group-item {
  border-color: #e5e7eb;
  background: #ffffff;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.clickable-game-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-game-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  z-index: 1;
}

.btn {
  border-radius: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #1f3d6b, #163257);
  border-color: #163257;
  box-shadow: 0 3px 8px rgba(16, 34, 63, 0.14);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #193559, #122b49);
  border-color: #122b49;
}

.btn-outline-secondary,
.btn-secondary {
  border-color: #d1d5db;
  color: #3f4a5d;
  background-color: #f8fafc;
}

.btn-outline-danger {
  border-color: #f0a2a2;
}

.form-label {
  font-weight: 700;
  color: #3d4657;
}

.form-control,
.form-select {
  border-color: #d1d5db;
  border-radius: 0.8rem;
  padding: 0.58rem 0.78rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

.modal-content {
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-strong);
}

.modal-header,
.modal-footer {
  border-color: #e5e7eb;
}

.alert {
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-game-edit .admin-score-input {
  min-width: 4.5rem;
}

.admin-game-actions button {
  min-width: 3.4rem;
}

.location-suggestions {
  z-index: 1050;
  max-height: 240px;
  overflow-y: auto;
  top: calc(100% + 0.15rem);
  border-radius: 0 0 0.7rem 0.7rem;
}

.location-suggestions .list-group-item {
  cursor: pointer;
}

.location-suggestions .list-group-item:hover {
  background-color: #f3f4f6;
}

.gallery-card {
  height: 100%;
  overflow: hidden;
}

.gallery-card .card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991px) {
  .btn-navbar {
    width: 100%;
    justify-content: center;
  }

  .navbar-custom .form-select,
  .navbar-custom .navbar-text {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 1.2rem;
  }

  .card {
    border-radius: 0.85rem;
  }

  .table thead th {
    font-size: 0.7rem;
  }
}