/* ============================================================
   ARMCHAIR BRIGADE — Design System
   Military-themed, white background, modern & premium
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;0,800;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  /* Palette */
  --navy-900: #0A1628;
  --navy-800: #0F2240;
  --navy-700: #152E52;
  --navy-600: #1B3A64;
  --navy-500: #2A4F7A;
  --navy-400: #3D6B9E;
  --navy-300: #5A8DC2;
  --navy-200: #8BB4DB;
  --navy-100: #C5D9ED;
  --navy-50:  #E8F0F8;

  --gold-600: #8B6914;
  --gold-500: #B8860B;
  --gold-400: #D4A017;
  --gold-300: #E8C547;
  --gold-200: #F0D87A;
  --gold-100: #F8EDB3;

  --olive-700: #3D4A2A;
  --olive-600: #4A5A32;
  --olive-500: #5C6E3F;
  --olive-400: #7A8E5A;

  --white:    #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --red-500: #C53030;
  --green-500: #2F855A;

  /* Semantic */
  --color-bg:        var(--white);
  --color-surface:   var(--gray-50);
  --color-border:    var(--gray-200);
  --color-text:      var(--gray-800);
  --color-text-muted:var(--gray-500);
  --color-heading:   var(--navy-800);
  --color-accent:    var(--navy-600);
  --color-accent-hover: var(--navy-700);
  --color-gold:      var(--gold-500);
  --color-link:      var(--navy-500);
  --color-link-hover:var(--navy-700);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 22, 40, 0.10);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.12);
  --shadow-gold: 0 4px 16px rgba(184, 134, 11, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--color-link-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem);  font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  max-width: 70ch;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--alt {
  background-color: var(--color-surface);
}

/* Dropdown menu styling */
.dropdown-menu {
  border-radius: 0px;
  padding: 0px;
  z-index: var(--z-dropdown);
}

.dropdown-item {
  line-height: 30px;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
}

.dropdown-divider {
  margin: 0px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo img {
  width: auto;
}

.site-nav__logo-text {
  display: flex;
  flex-direction: column;
}

.site-nav__logo-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-nav-subtitle {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.site-nav__links > li > a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.01em;
}

.site-nav__links > li > a:hover,
.site-nav__links > li > a.active {
  color: var(--navy-700);
  background: var(--navy-50);
}

.site-nav__links > li > a.active {
  font-weight: 600;
}

/* ============================================================
   ACCOUNT DROPDOWN MENU
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin-left: var(--space-2);
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
  user-select: none;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown__toggle {
  background: var(--navy-50);
  border-color: var(--navy-400);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.08);
}

.nav-dropdown__toggle:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

.nav-dropdown__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--gold-400);
  border: 1px solid rgba(212, 160, 23, 0.35);
  flex-shrink: 0;
}

.nav-dropdown__avatar svg {
  width: 15px;
  height: 15px;
}

.nav-dropdown__label {
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}

.nav-dropdown__chevron {
  width: 13px;
  height: 13px;
  color: var(--gray-400);
  transition: transform var(--duration-normal) var(--ease-spring), color var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.nav-dropdown__toggle:hover .nav-dropdown__chevron,
.nav-dropdown.is-open .nav-dropdown__chevron {
  color: var(--navy-700);
}

.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.14), 0 2px 6px rgba(10, 22, 40, 0.06);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring),
              visibility var(--duration-fast);
  z-index: 1050;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* User Card in Dropdown */
.nav-dropdown__user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--space-1);
}

.nav-dropdown__user-avatar-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gold-400);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.15);
}

.nav-dropdown__user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-dropdown__user-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown__user-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Menu Items List */
.nav-dropdown__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown__item {
  display: flex !important;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  background: transparent !important;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
  color: var(--navy-900) !important;
  background: var(--navy-50) !important;
  outline: none;
  transform: translateX(2px);
}

.nav-dropdown__item.active {
  color: var(--navy-800) !important;
  background: var(--navy-100) !important;
  font-weight: 600 !important;
}

.nav-dropdown__item-icon {
  width: 17px;
  height: 17px;
  color: var(--navy-500);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.nav-dropdown__item:hover .nav-dropdown__item-icon {
  color: var(--navy-700);
  transform: scale(1.1);
}

.nav-dropdown__item-title {
  flex: 1;
}

.nav-dropdown__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-200);
  letter-spacing: 0.04em;
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

/* Signout danger styling */
.nav-dropdown__item--danger {
  color: var(--red-500) !important;
}

.nav-dropdown__item--danger .nav-dropdown__item-icon {
  color: var(--red-500);
}

.nav-dropdown__item--danger:hover,
.nav-dropdown__item--danger:focus-visible {
  color: #B91C1C !important;
  background: #FEE2E2 !important;
}

.nav-dropdown__item--danger:hover .nav-dropdown__item-icon {
  color: #B91C1C;
}

/* Toast Notification for Signout / Actions */
.site-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
  border-left: 4px solid var(--gold-400);
  pointer-events: none;
}

.site-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: var(--navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(15, 34, 64, 0.6) 50%,
    rgba(27, 58, 100, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(184, 134, 11, 0.15);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero__badge::before {
  content: '★';
  font-size: 0.65rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.25);
  color: var(--navy-900);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--secondary {
  background: var(--navy-600);
  color: var(--white);
  border-color: var(--navy-600);
}

.btn--secondary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-600);
  border-color: var(--navy-100);
}

.btn--ghost:hover {
  background: var(--navy-50);
  border-color: var(--navy-200);
  color: var(--navy-700);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
}

.section-header__label::before,
.section-header__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-300);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__desc {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   GAME CARDS
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.game-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--navy-200);
  color: inherit;
}

.game-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.game-card:hover .game-card__image img {
  transform: scale(1.05);
}

.game-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(10, 22, 40, 0.6) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.game-card:hover .game-card__image-overlay {
  opacity: 1;
}

.game-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
  transition: color var(--duration-fast) var(--ease-out);
}

.game-card:hover .game-card__title {
  color: var(--navy-600);
}

.game-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--gray-50);
}

.game-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-1) var(--space-3);
  background: var(--navy-50);
  color: var(--navy-600);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.game-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--navy-500);
  font-size: 0.875rem;
}

.game-card:hover .game-card__arrow {
  background: var(--navy-600);
  color: var(--white);
  transform: translateX(2px);
}

/* ============================================================
   GAME DETAIL PAGE
   ============================================================ */
.page-header {
  margin-top: var(--nav-height);
  padding: var(--space-12) 0 var(--space-8);
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: var(--space-6);
  list-style: none;
}

.breadcrumb a {
  color: var(--navy-400);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--navy-700);
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--gray-300);
}

.game-detail {
  padding: var(--space-12) 0;
}

.game-detail__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}

.game-detail__hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.game-detail__hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.game-detail__description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.game-detail__description p + p {
  margin-top: var(--space-4);
}

/* Star Rating */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating__star {
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-300);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring);
}

.rating__star:hover,
.rating__star.active {
  color: var(--gold-400);
}

.rating__star:hover {
  transform: scale(1.15);
}

/* Sidebar */
.game-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card + .sidebar-card {
  margin-top: var(--space-6);
}

.sidebar-card__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--gray-50);
}

.sidebar-card__header h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
}

.sidebar-card__body {
  padding: var(--space-5);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

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

.info-row__label {
  color: var(--gray-500);
  font-weight: 500;
}

.info-row__value {
  color: var(--gray-800);
  font-weight: 600;
  text-align: right;
}

/* External links */
.external-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--duration-fast) var(--ease-out);
}

.external-link:hover {
  border-color: var(--navy-300);
  color: var(--navy-600);
  background: var(--navy-50);
}

.external-link img {
  height: 16px;
  width: auto;
}

/* Document list */
.doc-list {
  list-style: none;
}

.doc-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
  font-size: 0.875rem;
}

.doc-list__item:hover {
  background: var(--gray-50);
}

.doc-list__item a {
  color: var(--gray-700);
  font-weight: 500;
  flex: 1;
}

.doc-list__item a:hover {
  color: var(--navy-600);
}

.doc-list__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-400);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Nation colors */
.nation-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin: var(--space-1);
  border: 1px solid transparent;
}

.nation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.nation-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-200);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 1.5rem;
}

.feature-card__title {
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-16) 0 var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.site-footer__brand {
  max-width: 280px;
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.site-footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  list-style: none;
}

.site-footer__links li + li {
  margin-top: var(--space-3);
}

.site-footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--white);
}

.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__bottom a:hover {
  color: var(--white);
}

/* ============================================================
   PAGE LIST HEADER (for gamelist, etc.)
   ============================================================ */
.page-list-header {
  margin-top: var(--nav-height);
  padding: var(--space-16) 0 var(--space-10);
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-list-header__title {
  margin-bottom: var(--space-3);
}

.page-list-header__desc {
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   MODULES / MAP SECTIONS (detail page)
   ============================================================ */
.content-section {
  margin-top: var(--space-12);
}

.content-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--navy-100);
}

.content-section__title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gold-500);
  border-radius: 2px;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
}

.content-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.content-table a {
  font-weight: 600;
  color: var(--navy-600);
}

.content-table a:hover {
  color: var(--navy-800);
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8) { transition-delay: 560ms; }
.stagger.visible > *:nth-child(9) { transition-delay: 640ms; }
.stagger.visible > *:nth-child(10) { transition-delay: 720ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .game-detail__layout {
    grid-template-columns: 1fr;
  }

  .game-sidebar {
    position: static;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav__links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Dropdown on mobile */
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
  }

  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--gray-50);
  }

  .nav-dropdown__menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    border: none;
    margin-top: 0;
    transform: none !important;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    background: transparent;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    max-height: 350px;
    opacity: 1;
    visibility: visible;
    padding: var(--space-3);
    margin-top: var(--space-2);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
  }

  .hero {
    min-height: 70vh;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

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

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
