/* SITE.CSS

Our fork's look (FORK.md) over halo-ce-universal's page, loaded after its
style.css: the blue of Halo 2's dashboard over the ring, Rajdhani and
Orbitron, and room to breathe. What only explains sits behind the « i »
buttons (site.js). The game's own screen (#game) keeps style.css. */

@font-face { font-family: "Orbitron"; font-weight: 900; src: url("fonts/orbitron-900.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 500; src: url("fonts/rajdhani-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rajdhani"; font-weight: 700; src: url("fonts/rajdhani-700.woff2") format("woff2"); font-display: swap; }

:root {
  --background: #020a14;
  --panel: rgba(6, 24, 42, 0.86);
  --panel-edge: rgba(79, 195, 255, 0.28);
  --text: #eaf6ff;
  --muted: #8fb2c9;
  --accent: #6fcfff;
  --accent-text: #021220;
  --good: #5cff9d;
  --ui-font: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --title-font: "Orbitron", "Rajdhani", sans-serif;
  --radius: 4px;
}

html, body { font: 500 17px/1.55 var(--ui-font); }

/* the ring behind everything, darkened so that the text stays readable */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, rgba(2, 10, 20, 0.45), rgba(2, 10, 20, 0.94) 70%),
    url("art/ring.jpg") center 30% / cover no-repeat, var(--background);
}

#launcher {
  max-width: 980px;
  padding: max(40px, env(safe-area-inset-top)) 20px 72px;
}

/* ---------- the masthead */

.masthead { margin-bottom: 36px; }
/* the Halo picture across the top, the title over it */
.hero-banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 800 / 260;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--background);
}
.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero-banner > .poster-inline { position: absolute; inset: 0; display: block; }
.poster-inline > svg { display: block; width: 100%; height: 100%; }
.poster-hero image { filter: drop-shadow(0 0 10px rgba(79, 195, 255, 0.55)); }
@media (prefers-reduced-motion: no-preference) {
  .poster-hero { animation: hologram 6s ease-in-out infinite; }
}
@keyframes hologram { 50% { opacity: 0.86; } 52% { opacity: 1; } 54% { opacity: 0.9; } }
/* (a shade at the foot, for the title's text over the picture) */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 10, 20, 0.85), rgba(2, 10, 20, 0) 55%);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(2, 10, 20, 0.9);
}
.masthead h1 {
  font: 900 clamp(30px, 6vw, 48px)/1.05 var(--title-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(111, 207, 255, 0.35);
}
.tagline { margin-top: 10px; font-size: 18px; }

/* a word of the footer that is a link, and does not look like one */
a.secret-link { color: inherit; text-decoration: none; cursor: inherit; -webkit-tap-highlight-color: transparent; }
a.secret-link:hover, a.secret-link:focus-visible { text-shadow: 0 0 6px currentColor; outline: none; }

/* ---------- tiles */

.tile {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 20px;
  backdrop-filter: blur(6px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.grid .tile { margin: 0; }
.grid details.tile { align-self: start; }

.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tile h2, .tile summary {
  margin: 0;
  font: 700 15px/1.2 var(--ui-font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
details.tile summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.tile summary::-webkit-details-marker { display: none; }
details.tile summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.tile[open] summary::after { content: "–"; }
details.tile[open] summary { margin-bottom: 16px; }

.status { font-size: 17px; margin: 0 0 18px; }
.note { font-size: 15px; }
.actions { gap: 12px; }

/* ---------- buttons */

button, .button {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  background: rgba(14, 46, 74, 0.75);
  font: 700 15px/1 var(--ui-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.button.ghost, button.ghost { background: transparent; }
button.primary {
  background: linear-gradient(90deg, #bfeaff, #6fcfff 55%, #3aa6e0);
  border-color: #bfeaff;
  color: var(--accent-text);
  box-shadow: 0 0 22px rgba(111, 207, 255, 0.35);
}
button.big {
  width: 100%;
  min-height: 68px;
  font: 900 22px/1 var(--title-font);
  letter-spacing: 0.18em;
}

/* the main action */
.tile-play { padding: 26px 24px; text-align: center; }
.tile-play .note { margin-top: 12px; }
.hint { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.hint strong { color: var(--text); }

/* ---------- the « i » buttons and what they show */

button.info {
  flex: none;
  display: inline-flex;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--panel-edge);
  background: transparent;
  color: var(--muted);
  font: italic 700 15px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}
button.info:hover, button.info.open { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.info-text {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(111, 207, 255, 0.06);
  color: var(--muted);
  font-size: 15px;
  text-align: left;
}
.info-text p { margin: 0; }
.info-text p + p { margin-top: 8px; }
.info-text strong, .info-text code { color: var(--text); }
.info-text[hidden] { display: none; }

/* ---------- the browser's checks, folded */

.pill {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  font: 700 12px/1.2 var(--ui-font);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pill.good { color: var(--good); border-color: rgba(92, 255, 157, 0.4); }
.pill.bad { color: var(--bad); border-color: rgba(255, 107, 107, 0.5); }
details.tile summary .pill + ::after { content: none; }
.checks li { padding: 4px 0; }

/* ---------- the rest */

.mods li { padding: 8px 0; border-bottom: 1px solid rgba(79, 195, 255, 0.12); }
.progress-bar { height: 6px; background: rgba(79, 195, 255, 0.15); }
.facts dd { font-size: 14px; }
.site-footer { margin-top: 40px; font-size: 14px; text-align: center; }
.site-footer .info-text { text-align: center; border-left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sheet h2 { font-family: var(--ui-font); }

@media (max-width: 700px) {
  #launcher { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .tile { padding: 20px 18px; margin-bottom: 16px; }
  .masthead { margin-bottom: 28px; }
  .hero-banner { aspect-ratio: 800 / 440; }
  /* (above the picture's own line of small print, at its foot) */
  .hero-text { left: 16px; right: 16px; bottom: 30px; }
  .tagline { font-size: 14px; line-height: 1.3; margin-top: 6px; }
  .actions > * { flex: 1 1 auto; }
}

/* the online servers (servers.js) */
.servers { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.servers:empty { display: none; }
.servers li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; border: 1px solid var(--panel-edge); border-radius: var(--radius);
}
.servers .name { display: block; color: var(--text); overflow-wrap: anywhere; }
.servers .detail { display: block; color: var(--muted); font-size: 14px; }
