.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Site header */
.site-header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  padding-top: var(--safe-top);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-header);
  /* iOS safe area */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 24px);
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__logo .accent {
  color: var(--accent-interpol);
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Content area */
.main-content {
  padding: clamp(16px, 4vw, 32px) 0 48px;
  padding-bottom: calc(48px + var(--safe-bottom));
}

.section-title { text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; margin-bottom: 32px; }
.section { padding: 40px 0; }

.flex { display: flex; align-items: center; gap: var(--gap); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Footer */
footer {
  padding: 24px 0;
  padding-bottom: calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration);
}

.footer-links a:hover { color: var(--text); }

.footer-sep { color: var(--text-dim); }

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
}

/* Mobile */
@media (max-width: 560px) {
  .site-header { padding: 0 12px; }
  .site-header__controls { gap: 6px; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { height: 44px; }
  .main-content { padding-top: 12px; }
}

/* Large screens */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
}

/* Print */
@media print {
  .site-header, footer, .carousel__nav, .theme-toggle, .lang-select { display: none !important; }
  body { background: white; color: black; }
  .game-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
