:root {
  color-scheme: dark;
  --bg: #151C33;
  --surface: #151C33;
  --surface-raised: #151f36;
  --text: #e9e9e9dc;
  --muted: #9caecc;
  --accent: #FF6B35;
  --accent-2: #3DD6F5;
  --accent-hover: #d63d00;
  --line: #a9c6f226;
  --radius: 6px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1px 1px at 17% 23%, #ffffff85 99%, transparent),
    radial-gradient(1px 1px at 78% 68%, #00000080 99%, transparent),
    radial-gradient(1px 1px at 52% 87%, #ffffff70 99%, transparent),
    #000000;
  background-size: 240px 220px, 310px 270px, 390px 330px, auto;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  width: min(90vw, 72rem);
  margin: 0 auto;
  padding: 1.6rem 0;
}

.brand {
  color: var(--accent-2);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 1.25rem;
  width: min(90vw, 72rem);
  margin: 2rem auto 5rem;
}

.newest_countdown
 {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff20;
  border-radius: 3px;
  background: #0e0d0d;
  box-shadow: 0 0.6rem 1.8rem #0003;
}
.newest_countdown {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow,
.countdown-label {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
}

#launch-name {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.launch-image {
  display: block;
  width: 100%;
  max-height: 17rem;
  margin: 1.5rem 0 0;
  border-radius: 0.5rem;
  object-fit: cover;
}

.launch-image[hidden] {
  display: none;
}

.launch-company {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.countdown-label {
  margin: 2.1rem 0 0.4rem;
  color: var(--muted);
}

.countdown {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.retry-button {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  color: var(--text);
  background: #ffffff0a;
  border: 1px solid #ffffff30;
  border-radius: 0.6rem;
  cursor: pointer;
}

.retry-button:hover {
  background: #ffffff16;
}

.retry-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.launch-board {
  align-self: stretch;
  padding: 1.25rem;
  color: #f4cf66;
  background: repeating-linear-gradient(0deg, #101113, #101113 3px, #141517 4px);
  border: 1px solid #56534a;
  
  box-shadow: inset 0 0 0 3px #08090a, 0 8px 24px #0005;
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.9rem;
  border-bottom: 2px solid #514a37;
}

.launch-board h2 {
  margin: 0;
  color: #e8e5db;
  font: 700 0.9rem/1.2 monospace;
  letter-spacing: 0.16em;
}

.board-status {
  color: #ffc247;
  font: 700 0.7rem monospace;
  letter-spacing: 0.1em;
}

.board-scroll {
  overflow-x: auto;
}

.launch-board table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
}

.launch-board th,
.launch-board td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #ffffff20;
}

.launch-board th {
  color: #aaa79d;
  background: #1b1c1d;
  font: 700 0.68rem monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launch-board td {
  color: #f4cf66;
  font: 600 0.82rem/1.5 monospace;
  text-shadow: 0 0 5px #f4cf6633;
}

.launch-board tbody tr {
  background: linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 8px 100%;
}

.launch-board tbody tr:hover {
  background-color: #f4cf6610;
}

.launch-board tr:last-child td {
  border-bottom: 0;
}

.launch-board .board-countdown {
  white-space: nowrap;
}

.board-clock {
  display: flex;
  gap: 0.4rem;
}

.board-time-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.board-digits {
  display: inline-flex;
  gap: 2px;
}

.board-digit {
  position: relative;
  min-width: 1.1em;
  padding: 0.12em 0.08em;
  color: #ffd35a;
  background: linear-gradient(#242321 0 49%, #111110 50% 100%);
  border: 1px solid #514a37;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px #000, 0 1px 0 #ffffff18;
  font: 700 1.05rem/1.25 monospace;
  text-align: center;
  text-shadow: 0 0 5px #ffc24788;
}

.board-digit::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid #080a0c;
  content: "";
}

.board-unit-label {
  color: #9c8b62;
  font: 700 0.65rem monospace;
}

.board-launched {
  color: #ff765e;
  font: 700 0.75rem monospace;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .topbar {
    padding: 1.25rem 0 0.5rem;
  }

  .title {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }
}


.live-button {
background: #cc3f07 ;
color: #dfdfdf;
border: none;
border-radius: var(--radius);
transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
font-size: 20px;
font-family: monospace;
cursor: pointer;
margin-top: 10px;
}

.live-button:hover {
  background:#e96937  ;
  box-shadow: 0 0 20px var(--accent);
  transform: translateY(-1px);
}
.live-button[hidden] {
  display: none;
}


