/* Cyberdawn landing page. 90s RTS command interface: bevelled steel panels around a desert tactical map. */
:root {
  --sand: #b39b62;      /* terrain */
  --ridge: #7d6a3d;     /* terrain shade */
  --steel: #3d454b;     /* UI panels */
  --steel-hi: #8d979e;  /* bevel light */
  --steel-lo: #1c2125;  /* bevel shadow */
  --red: #c4372b;       /* nation one */
  --blue: #2d68b0;      /* nation two */
  --dawn: #f6e7a8;      /* the superintelligence */
  --paper: #ece6d3;     /* text on steel */
  --muted: #bdb7a4;
}

* { box-sizing: border-box; }
html { background: #2a2f33; }
body {
  margin: 0;
  color: var(--paper);
  font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 0%, #4a5157 0%, #2a2f33 70%);
  min-height: 100vh;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bevelled steel: light top-left edge, dark bottom-right edge */
.bevel, .console, .map-frame, .sidebar, .order, .bar {
  border: 3px solid;
  border-color: var(--steel-hi) var(--steel-lo) var(--steel-lo) var(--steel-hi);
}

.console {
  max-width: 1180px;
  margin: 28px auto;
  padding: 26px clamp(14px, 3vw, 34px) 18px;
  background: var(--steel);
}

.masthead { display: grid; gap: 14px; justify-items: start; margin-bottom: 22px; }
.masthead h1 { margin: 0; line-height: 0; }
.title { display: block; width: min(880px, 100%); height: auto; }
.premise { margin: 0; max-width: 62ch; font-size: 1.18rem; color: var(--paper); }

/* V1 launch button: a lit command button on the steel console */
.launch { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.play {
  display: inline-block; min-height: 44px; padding: 11px 26px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: #1c2125; background: linear-gradient(#fbf1c4, var(--dawn) 45%, #d1b56f);
  border: 3px solid; border-color: #fffbe6 #9c8450 #9c8450 #fffbe6;
}
.play:hover { background: linear-gradient(#fffbe6, #f9eebb 45%, #dcc283); }
.play:active { border-color: #9c8450 #fffbe6 #fffbe6 #9c8450; }
.play:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.launch-note { font-size: .95rem; color: var(--muted); }

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}
.map-frame { background: var(--steel-lo); padding: 6px; display: flex; flex-direction: column; }
#map {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--ridge);
}
.map-caption { margin: 8px 4px 2px; font-size: .95rem; color: var(--muted); }

.sidebar { background: #343b40; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sidebar-head { margin: 0; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  background: var(--steel); padding: 10px;
}
.order h3 { margin: 0 0 2px; font-size: 1.08rem; font-weight: 700; color: var(--paper); }
.order p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.icon { width: 34px; height: 34px; fill: var(--sand); shape-rendering: crispEdges; }
.order-dawn .icon { fill: var(--dawn); }

.research { margin-top: auto; }
.research-row { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.bar { height: 18px; background: var(--steel-lo); padding: 2px; border-color: var(--steel-lo) var(--steel-hi) var(--steel-hi) var(--steel-lo); }
.fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--dawn) 0 8px, #d9c77e 8px 10px);
}

.status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.status p { margin: 0; }
.status .fine { color: #8e897b; }

@media (max-width: 860px) {
  .field { grid-template-columns: 1fr; }
  .console { margin: 0; border-width: 0; min-height: 100vh; }
  .premise { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fill { transition: none; }
}
