:root {
  --scarlet: #b32025;
  --scarlet-dark: #641216;
  --gold: #d6aa3f;
  --gold-soft: #f0cf77;
  --dress-blue: #071225;
  --dress-blue-2: #0b1d33;
  --olive: #56613b;
  --khaki: #c7b99a;
  --sand: #e4d3a2;
  --panel: rgba(6, 14, 24, 0.02);
  --panel-strong: rgba(6, 14, 24, 0.02);
  --panel-dark: rgba(0, 0, 0, 0.02);
  --line: rgba(214, 170, 63, 0.42);
  --line-soft: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(232, 224, 204, 0.80);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(7,18,37,.76), rgba(0,0,0,.44) 42%, rgba(100,18,22,.28)),
    url("assets/background.jpg") center / cover no-repeat fixed;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(214,170,63,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,170,63,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.92), transparent 78%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 58px);
  background: linear-gradient(90deg, rgba(7,18,37,.82), rgba(7,18,37,.35), rgba(100,18,22,.52));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--scarlet) 0 42%, var(--dress-blue) 43% 100%);
  box-shadow: 0 0 0 4px rgba(214,170,63,.12), 0 0 26px rgba(214,170,63,.42);
  color: #fff;
  font-size: 13px;
}


.unit-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(214,170,63,.55);
  background: rgba(0,0,0,.18);
  box-shadow: 0 0 0 4px rgba(214,170,63,.08), 0 0 28px rgba(214,170,63,.34);
}

.brand span:last-child { text-shadow: 0 2px 12px rgba(0,0,0,.75); }

.nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  position: relative;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(214,170,63,.12);
  border-color: rgba(214,170,63,.38);
  transform: translateY(-1px);
}

main { padding: 58px clamp(18px, 5vw, 76px); }
.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
}

.panel,
.card,
.stat,
.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: var(--shadow);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(26px, 5vw, 60px);
}

.panel::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(214,170,63,.22), transparent 25%, transparent 72%, rgba(179,32,37,.18));
  opacity: .72;
}

.hero .panel { max-width: 1050px; }
.eyebrow {
  color: var(--gold-soft);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.eyebrow::before { content: "◆ "; color: var(--scarlet); }

h1, h2, h3 { position: relative; z-index: 1; }
h1 {
  font-size: clamp(58px, 12vw, 132px);
  line-height: .86;
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 5px 0 rgba(100,18,22,.75), 0 0 32px rgba(214,170,63,.28), 0 18px 48px rgba(0,0,0,.72);
}
h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: .96;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(0,0,0,.7);
}
h3 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin-bottom: 10px;
  color: #fff;
}
p { color: var(--muted); font-size: 18px; position: relative; z-index: 1; }

.hero-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sand);
  background: rgba(7,18,37,.02);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; position: relative; z-index: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(7,18,37,.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.btn.primary { background: linear-gradient(135deg, rgba(179,32,37,.88), rgba(100,18,22,.88)); color: white; }
.btn.gold { background: linear-gradient(135deg, rgba(214,170,63,.82), rgba(108,82,31,.84)); color: #071225; }
.btn:hover { filter: brightness(1.14); transform: translateY(-1px); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 28px; }
.card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  border-radius: 20px;
  padding: 25px;
}
.card.wide { grid-column: span 6; }
.card.full { grid-column: 1 / -1; }
.card > * { position: relative; z-index: 1; }
.card.accent { border-color: var(--line); background: rgba(100,18,22,.02); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.stat { border-radius: 18px; padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 34px; color: var(--gold-soft); line-height: 1; }
.stat span { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 13px; }

.list { display: grid; gap: 12px; margin-top: 12px; color: var(--muted); position: relative; z-index: 1; }
.list li { margin-left: 18px; }

.select-box,
.input-box {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 37, .02);
  color: white;
  outline: none;
}

.rank-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; margin-top: 16px; position: relative; z-index: 1; }
.rank-table th, .rank-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.rank-table th { color: var(--gold-soft); text-transform: uppercase; letter-spacing: 1px; background: rgba(7,18,37,.02); }
.rank-table tr:hover td { background: rgba(214,170,63,.08); }

.ribbon {
  display: flex;
  gap: 6px;
  margin: 20px 0 4px;
}
.ribbon span { width: 42px; height: 10px; border-radius: 2px; display: block; }
.ribbon .red { background: var(--scarlet); }
.ribbon .gold { background: var(--gold); }
.ribbon .blue { background: var(--dress-blue-2); border: 1px solid rgba(255,255,255,.16); }
.ribbon .olive { background: var(--olive); }

.timeline { display: grid; gap: 16px; margin-top: 20px; }
.timeline-item { border-left: 4px solid var(--gold); border-radius: 14px; padding: 18px; background: rgba(7,18,37,.02); }
.timeline-item b { color: var(--gold-soft); text-transform: uppercase; letter-spacing: 1px; }

.footer { padding: 30px clamp(18px, 5vw, 72px); color: rgba(255,255,255,.70); text-align: center; background: rgba(7,18,37,.02); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .card, .card.wide { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  body { background-attachment: scroll; }
}
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }


/* Command Profiles navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .drop-toggle::after {
  content: " ▾";
  color: var(--gold);
  font-size: .85em;
}

.nav-dropdown.active .drop-toggle {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(179, 32, 37, .18);
}

.drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 310px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 14, 24, .88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}

.nav-dropdown:hover .drop-menu,
.nav-dropdown:focus-within .drop-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.drop-menu a:hover {
  background: linear-gradient(90deg, rgba(179,32,37,.30), rgba(214,170,63,.16));
  color: #fff;
}

.command-feature {
  margin-top: 34px;
}

.command-hero {
  position: relative;
  overflow: hidden;
}

.command-hero::after {
  content: "V35";
  position: absolute;
  right: 28px;
  bottom: -38px;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(214, 170, 63, .07);
  pointer-events: none;
}

.command-category-grid {
  width: min(1180px, 92%);
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.category-tile {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(179,32,37,.15), rgba(6,14,24,.02));
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.category-tile:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

.profile-section {
  width: min(1180px, 92%);
  margin: 34px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 14, 24, .02);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(179, 32, 37, .28);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h3 {
  font-size: clamp(24px, 4vw, 38px);
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.profile-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0,0,0,.02), rgba(179,32,37,.10));
}

.profile-card h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.profile-card p {
  color: var(--muted);
}

.profile-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .nav { gap: 8px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown .drop-toggle { width: 100%; text-align: center; }
  .drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    display: none;
  }
  .nav-dropdown:hover .drop-menu, .nav-dropdown:focus-within .drop-menu { display: block; transform: none; }
}


.rank-hero h2 { font-size: clamp(42px, 8vw, 86px); }
.rank-breakdown { margin-top: 28px; }
.rank-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(214, 170, 63, 0.05);
  border-radius: 14px;
  color: var(--muted);
}
.category-nav-panel { margin-top: 34px; }
.mini-link-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.mini-link {
  display: block;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 170, 63, 0.34);
  background: rgba(0, 0, 0, 0.02);
  color: var(--sand);
  font-weight: 900;
  letter-spacing: .4px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mini-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 170, 63, 0.72);
  background: rgba(214, 170, 63, 0.08);
}


/* Individual command profile pages */
.command-profile-page main { padding-top: 38px; }
.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}
.profile-crest {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(214,170,63,.16), rgba(179,32,37,.08) 42%, rgba(0,0,0,.02));
  overflow: hidden;
}
.profile-crest::after {
  content: "DARKHORSE";
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: .35em;
  color: rgba(240,207,119,.62);
  font-weight: 900;
}
.profile-crest img {
  width: min(250px, 82%);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.65));
}
.profile-title .rank-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(179,32,37,.18);
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: 13px;
}
.profile-title h1 {
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.callsign {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(22px, 3vw, 38px);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  margin-bottom: 10px;
}
.callsign span { color: var(--gold-soft); }
.profile-subline {
  position: relative;
  z-index: 1;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.record-card {
  grid-column: span 4;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(214,170,63,.32);
  background: linear-gradient(160deg, rgba(7,18,37,.02), rgba(179,32,37,.08));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.record-card.wide { grid-column: span 6; }
.record-card.full { grid-column: 1 / -1; }
.record-card h4 {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  margin-bottom: 8px;
}
.record-card p, .record-card li { color: var(--muted); font-size: 16px; }
.record-card ul { margin-left: 18px; display: grid; gap: 6px; }
.medal-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 22px;
}
.medal-tile {
  min-height: 172px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.02);
}
.medal-tile.wide { grid-column: span 2; }
.medal-tile.certificate { grid-column: span 2; }
.medal-tile img {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.65));
}
.citation-card {
  margin-top: 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(228,211,162,.055), rgba(6,14,24,.02));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.citation-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(214,170,63,.32);
  background: linear-gradient(90deg, rgba(179,32,37,.25), rgba(214,170,63,.10));
}
.citation-header .eyebrow { margin-bottom: 4px; }
.citation-header h3 { color: #fff; margin-bottom: 0; }
.citation-body { padding: clamp(22px, 4vw, 36px); }
.citation-body p { margin-bottom: 18px; color: rgba(255,255,255,.88); }
.signature-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: var(--sand);
  font-weight: 800;
  letter-spacing: .04em;
}
.awards-list {
  columns: 2;
  column-gap: 28px;
  margin-left: 18px;
}
.awards-list li { break-inside: avoid; margin-bottom: 8px; }
.profile-card.featured-officer {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  border-color: rgba(214,170,63,.55);
  background: linear-gradient(135deg, rgba(179,32,37,.14), rgba(214,170,63,.06), rgba(0,0,0,.02));
}
.featured-officer img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(214,170,63,.45);
  background: rgba(0,0,0,.12);
}
@media (max-width: 980px) {
  .profile-hero-card { grid-template-columns: 1fr; }
  .record-card, .record-card.wide { grid-column: 1 / -1; }
  .medal-wall { grid-template-columns: repeat(2, 1fr); }
  .medal-tile.wide, .medal-tile.certificate { grid-column: span 2; }
}
@media (max-width: 560px) {
  .medal-wall { grid-template-columns: 1fr; }
  .medal-tile.wide, .medal-tile.certificate { grid-column: 1; }
  .awards-list { columns: 1; }
  .profile-card.featured-officer { grid-template-columns: 1fr; }
}


/* Home boot sequence */
body.booting {
  overflow: hidden;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(6, 38, 20, 0.92), rgba(2, 8, 5, 0.98) 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(5, 25, 15, 0.96));
  overflow: hidden;
}
.boot-overlay::before,
.boot-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.boot-overlay::before {
  background:
    linear-gradient(rgba(95, 255, 169, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 255, 169, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .55;
}
.boot-overlay::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.045) 0px,
    rgba(255,255,255,.045) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: .20;
}
.boot-noise {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .08;
  animation: bootNoise 6s linear infinite;
}
.boot-frame {
  position: relative;
  width: min(1220px, 100%);
  border: 1px solid rgba(95, 255, 169, 0.32);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0, 8, 5, 0.72);
  box-shadow: 0 0 0 1px rgba(214,170,63,.12), 0 20px 70px rgba(0,0,0,.68), 0 0 60px rgba(95,255,169,.12);
}
.boot-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(95,255,169,.22);
  background: linear-gradient(90deg, rgba(95,255,169,.16), rgba(214,170,63,.08), rgba(179,32,37,.14));
  color: rgba(225,255,236,.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.boot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 320px;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}
.boot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f0cf77;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
}
.boot-kicker::before {
  content: "[]";
  color: #76ffbe;
}
.boot-overlay h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 90px);
  line-height: .92;
  color: #dcffe7;
  text-shadow: 0 0 18px rgba(118,255,190,.18), 0 0 34px rgba(118,255,190,.08);
}
.boot-subtitle {
  max-width: 760px;
  color: rgba(220,255,231,.78);
  font-size: 17px;
}
.boot-terminal {
  margin-top: 26px;
  padding: 18px;
  min-height: 226px;
  border: 1px solid rgba(95,255,169,.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(5,18,11,.72));
  box-shadow: inset 0 0 24px rgba(95,255,169,.06);
}
.boot-line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  color: #95ffca;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.boot-progress-wrap {
  margin-top: 22px;
}
.boot-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  color: #f0cf77;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.boot-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(95,255,169,.28);
  background: rgba(255,255,255,.05);
}
.boot-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #76ffbe, #f0cf77 78%, #b32025);
  box-shadow: 0 0 16px rgba(118,255,190,.32);
  transition: width .16s linear;
}
.boot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}
.boot-skip {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(95,255,169,.34);
  background: rgba(5, 20, 12, 0.78);
  color: #dcffe7;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  cursor: pointer;
}
.boot-skip:hover {
  background: rgba(95,255,169,.14);
}
.boot-hint {
  color: rgba(220,255,231,.7);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.boot-right {
  display: grid;
  gap: 14px;
  align-content: start;
}
.status-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(95,255,169,.18);
  background: linear-gradient(180deg, rgba(7,18,37,.34), rgba(1,10,6,.58));
  box-shadow: inset 0 0 18px rgba(95,255,169,.06);
}
.status-card strong {
  display: block;
  margin: 6px 0 4px;
  color: #dcffe7;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-card small,
.status-label {
  display: block;
  color: rgba(220,255,231,.72);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-label {
  color: #f0cf77;
  font-size: 12px;
  font-weight: 900;
}
.boot-stamp {
  margin-top: 10px;
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(179,32,37,.6);
  color: rgba(255,110,110,.92);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.boot-overlay.is-closing {
  animation: bootFadeOut .8s ease forwards;
}

@keyframes bootFadeOut {
  to { opacity: 0; visibility: hidden; }
}
@keyframes bootNoise {
  from { transform: translate3d(-2%, -1%, 0); }
  50% { transform: translate3d(2%, 1%, 0); }
  to { transform: translate3d(-2%, -1%, 0); }
}

@media (max-width: 920px) {
  .boot-grid { grid-template-columns: 1fr; }
  .boot-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .boot-topbar { flex-direction: column; align-items: flex-start; }
  .boot-overlay { padding: 12px; }
  .boot-terminal { min-height: 250px; }
}


/* Boot screen visibility upgrade */
.boot-overlay {
  z-index: 2147483647 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 79, 43, 0.98), rgba(0, 5, 3, 0.99) 58%),
    linear-gradient(135deg, rgba(0,0,0,.96), rgba(4,32,17,.98)) !important;
}
.boot-frame {
  animation: bootFramePulse 1.8s ease-in-out infinite alternate;
}
.boot-overlay h1::after {
  content: "_";
  animation: bootCursor 0.7s steps(1) infinite;
  color: #76ffbe;
}
.boot-terminal {
  outline: 1px solid rgba(118,255,190,.22);
}
.boot-line.visible:last-child::after {
  content: " █";
  color: #76ffbe;
  animation: bootCursor 0.7s steps(1) infinite;
}
@keyframes bootCursor {
  50% { opacity: 0; }
}
@keyframes bootFramePulse {
  from { box-shadow: 0 0 0 1px rgba(214,170,63,.12), 0 20px 70px rgba(0,0,0,.68), 0 0 38px rgba(95,255,169,.12); }
  to { box-shadow: 0 0 0 1px rgba(214,170,63,.18), 0 20px 78px rgba(0,0,0,.74), 0 0 78px rgba(95,255,169,.22); }
}
