:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --charcoal: #2D3748;
  --emergency-red: #D62828;
  --steel-gray: #6B7280;
  --safety-orange: #F59E0B;
  --white: #FAFAFA;
  --text: #1F2937;
  --muted: #6B7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.compliance-banner {
  background: #111827;
  color: var(--white);
  text-align: center;
  font-size: 12px;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}

.floating-header {
  height: 68px;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.shield-icon {
  font-size: 20px;
}

.primary-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.primary-nav a {
  color: var(--white);
  opacity: 0.9;
}

.primary-nav a:hover {
  opacity: 1;
}

.command-layout {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.command-briefing-bar {
  background: linear-gradient(120deg, #DADFE6 0%, #F0F2F5 100%);
  border: 1px solid #D0D5DD;
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.command-briefing-bar h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.command-briefing-bar p {
  color: var(--steel-gray);
  font-size: 14px;
}

.command-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.status-wall {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.status-item {
  background: #111827;
  color: var(--white);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.status-label {
  color: #9CA3AF;
  letter-spacing: 1px;
  font-size: 10px;
}

.status-value {
  font-weight: 700;
  font-size: 14px;
}

.game-command {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px;
}

.game-frame {
  border: 3px solid var(--charcoal);
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, #2F2F2F, #1F2937);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.game-frame iframe {
  width: 100%;
  height: 560px;
  border: 2px solid var(--emergency-red);
  border-radius: 14px;
  background: #000;
}

.game-controls {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.mission-timeline {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px;
}

.mission-timeline h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 34px;
  left: 4%;
  width: 92%;
  height: 2px;
  background: var(--emergency-red);
  z-index: 0;
}

.checkpoint {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.checkpoint-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.training-center {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.training-center img {
  width: 100%;
  border-radius: 12px;
  height: auto;
}

.training-text h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.training-text ul {
  margin-top: 10px;
  padding-left: 18px;
  color: var(--steel-gray);
}

.visual-hall {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.visual-card {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  height: auto;
  display: block;
}

.visual-caption {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--charcoal);
}

.support-office {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.support-column h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.faq-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--steel-gray);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(90deg, #D62828, #B91C1C);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--steel-gray);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.site-footer {
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #E5E7EB;
}

.legal-page {
  background: var(--bg);
}

.legal-header,
.legal-footer {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  gap: 12px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px 20px;
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
}

.legal-content h2 {
  margin-top: 16px;
  font-size: 18px;
}

.legal-content p {
  margin: 10px 0;
  color: var(--steel-gray);
}

@media (max-width: 980px) {
  .command-grid {
    grid-template-columns: 1fr;
  }
  .training-center {
    grid-template-columns: 1fr;
  }
  .visual-hall,
  .support-office {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline-line {
    display: none;
  }
}