/* ===== BRIEFING ACCESS BAR ===== */
.briefing-access-bar {
  background: rgba(0,102,255,0.08);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.briefing-access-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--res-blue);
  text-decoration: none;
  border: 1px solid var(--border-bright);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.briefing-access-btn:hover {
  background: rgba(0,102,255,0.12);
  box-shadow: 0 0 10px rgba(0,102,255,0.2);
}
.briefing-access-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --res-blue:     #0066FF;
  --res-blue-dim: #0044bb;
  --res-glow:     rgba(0, 102, 255, 0.35);
  --bg-void:      #000810;
  --bg-dark:      #000d1a;
  --bg-card:      #001428;
  --bg-card-alt:  #000e20;
  --text-primary: #cce4ff;
  --text-dim:     #5577aa;
  --text-muted:   #334466;
  --border:       rgba(0, 102, 255, 0.25);
  --border-bright:rgba(0, 102, 255, 0.7);
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
  --font-ui:      'Rajdhani', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== ATMOSPHERIC OVERLAYS ===== */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(180deg, #000d1a 0%, #000810 100%);
  border-bottom: 1px solid var(--border-bright);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,102,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.res-logo svg {
  filter: drop-shadow(0 0 12px rgba(0,102,255,0.7));
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.header-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--res-blue);
  letter-spacing: 0.18em;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(0,102,255,0.5);
}

.team-num {
  color: var(--res-blue);
  text-shadow: 0 0 20px var(--res-blue);
}

.team-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 0.25em;
  margin-top: 0.3rem;
  opacity: 0.9;
}

.header-faction {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--res-blue);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  opacity: 0.7;
  flex-shrink: 0;
}

.header-ticker {
  background: rgba(0,102,255,0.08);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.header-ticker span {
  display: inline-block;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--res-blue);
  letter-spacing: 0.1em;
  padding-left: 100%;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section.dark {
  max-width: 100%;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.dark > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section.dark h2,
.section.dark .section-label {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section.dark .mission-grid,
.section.dark .bounties-grid,
.section.dark .bounty-footnote {
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--res-blue);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: var(--res-blue);
  box-shadow: 0 0 8px var(--res-blue);
}

/* ===== AGENTS GRID ===== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.agent-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 20px rgba(0,102,255,0.15), inset 0 0 20px rgba(0,102,255,0.04);
}

.agent-card.leader {
  border-color: rgba(0,102,255,0.55);
  background: linear-gradient(160deg, #001a40 0%, var(--bg-card) 100%);
}

.agent-card.leader::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0,102,255,0.3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.agent-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--res-blue);
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,102,255,0.35);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.agent-hex svg polygon {
  filter: drop-shadow(0 0 8px rgba(0,102,255,0.5));
}

.agent-name {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.agent-callsign {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--res-blue);
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.agent-bio {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
}

/* ===== MISSION GRID ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.mission-block {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.mission-icon {
  font-size: 2rem;
  color: var(--res-blue);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px var(--res-blue);
  display: block;
}

.mission-stat {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,102,255,0.4);
}

.mission-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--res-blue);
  text-transform: uppercase;
  margin: 0.4rem 0;
}

.mission-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===== OBJECTIVES ===== */
.objectives-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.objective-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}

.obj-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.obj-icon {
  font-size: 2.2rem;
  width: 3rem;
  text-align: center;
  flex-shrink: 0;
}

.beacon-icon { color: #00aaff; text-shadow: 0 0 10px #00aaff; }
.shard-icon  { color: #33ccff; text-shadow: 0 0 10px #33ccff; }
.hack-icon   { color: var(--res-blue); text-shadow: 0 0 10px var(--res-blue); }

.obj-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.obj-points {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--res-blue);
  letter-spacing: 0.15em;
}

.objective-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== BOUNTIES ===== */
.bounties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.bounty-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}

.bounty-tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  font-weight: 700;
}

.tier-bronze { color: #cd7f32; border: 1px solid rgba(205,127,50,0.4); background: rgba(205,127,50,0.08); }
.tier-silver { color: #c0c0c0; border: 1px solid rgba(192,192,192,0.4); background: rgba(192,192,192,0.08); }
.tier-gold   { color: #ffd700; border: 1px solid rgba(255,215,0,0.4);   background: rgba(255,215,0,0.08); }

.bounty-action {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bounty-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.bounty-footnote {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0,102,255,0.04);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TOOLS ===== */
.tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tool-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--res-blue);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--res-blue);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(0,102,255,0.4);
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.tools-register {
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  text-align: center;
  background: rgba(0,102,255,0.05);
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0,102,255,0.1), inset 0 0 30px rgba(0,102,255,0.04);
}

.register-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.register-url {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--res-blue);
  text-shadow: 0 0 12px var(--res-blue);
  letter-spacing: 0.08em;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-bright);
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  filter: drop-shadow(0 0 6px rgba(0,102,255,0.5));
  flex-shrink: 0;
}

.footer-team {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.res-blue { color: var(--res-blue); }

.footer-line {
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--text-muted);
  padding-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1rem 1rem;
  }
  .header-faction { display: none; }
  .section { padding: 2.5rem 1rem; }
  .section.dark h2,
  .section.dark .section-label,
  .section.dark .mission-grid,
  .section.dark .bounties-grid,
  .section.dark .bounty-footnote { padding-left: 1rem; padding-right: 1rem; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 1.5rem 1rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 400px) {
  .agents-grid { grid-template-columns: 1fr; }
}
