:root {
      color-scheme: dark;
      --bg: #000;
      --panel: #050607;
      --line: rgba(178, 184, 194, 0.22);
      --line-soft: rgba(178, 184, 194, 0.10);
      --red: #f10612;
      --red-soft: rgba(241, 6, 18, 0.55);
      --white: #e4e5e8;
      --muted: rgba(211, 216, 224, 0.55);
      --dim: rgba(211, 216, 224, 0.22);
    }

    * { box-sizing: border-box; }

    html, body { min-height: 100%; }

    body {
      margin: 0;
      display: grid;
      place-items: center;
      color: var(--white);
      background:
        radial-gradient(circle at 50% 45%, rgba(180, 0, 0, 0.08), transparent 34rem),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.035), transparent 28rem),
        #000;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.32;
      background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 3px,
        radial-gradient(circle at center, transparent 0, rgba(0,0,0,0.72) 75%);
      mix-blend-mode: screen;
    }

    .sequence {
      width: min(96vw, 118rem);
      min-height: min(52vw, 48rem);
      margin: clamp(1rem, 2vw, 2rem);
      padding: clamp(1.2rem, 3vw, 2.4rem);
      position: relative;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: clamp(1.2rem, 2.6vw, 2.3rem);
      border: 1px solid rgba(210, 218, 230, 0.18);
      clip-path: polygon(1.4rem 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 1.4rem 100%, 0 calc(100% - 1.4rem), 0 1.4rem);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.026), transparent 16%),
        linear-gradient(90deg, rgba(255,0,0,0.025), transparent 28%, transparent 72%, rgba(255,0,0,0.02)),
        rgba(1,1,1,0.86);
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 4rem rgba(255,0,0,0.025),
        0 0 2rem rgba(0,0,0,0.7);
    }

    .sequence::after {
      content: "";
      position: absolute;
      inset: clamp(1rem, 2.2vw, 2rem);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      pointer-events: none;
    }

    .top-bar,
    .bottom-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: relative;
      z-index: 2;
      color: var(--muted);
      letter-spacing: 0.26em;
      text-transform: uppercase;
    }

    .top-bar {
      padding-bottom: clamp(0.9rem, 2vw, 1.7rem);
      border-bottom: 1px solid var(--line);
      font-size: clamp(0.72rem, 1.25vw, 1rem);
    }

    .node {
      display: inline-flex;
      align-items: center;
      gap: 0.9rem;
      white-space: nowrap;
      letter-spacing: 0.08em;
    }

    .node::after {
      content: "";
      width: 0.58rem;
      height: 0.58rem;
      border-radius: 50%;
      background: var(--red);
      box-shadow: 0 0 0.75rem var(--red-soft);
    }

    .stage {
      width: 100%;
      align-self: center;
      display: grid;
      gap: clamp(1.2rem, 2.8vw, 2.7rem);
      position: relative;
      z-index: 2;
      text-align: center;
    }

    .status-line {
      display: flex;
      justify-content: center;
      align-items: baseline;
      flex-wrap: wrap;
      gap: clamp(0.7rem, 2vw, 2rem);
      font-size: clamp(1.45rem, 3.6vw, 3.4rem);
      letter-spacing: clamp(0.24em, 1vw, 0.42em);
      text-transform: uppercase;
      filter: drop-shadow(0 0 0.28rem rgba(255,255,255,0.16));
    }

    .status-line .red {
      color: var(--red);
      text-shadow: 0 0 0.8rem rgba(241, 6, 18, 0.45);
    }

    .countdown {
      padding: clamp(1rem, 2.6vw, 2.4rem) 0 clamp(0.7rem, 2vw, 1.6rem);
      display: grid;
      grid-template-columns: minmax(12rem, 2.1fr) auto minmax(6rem, 1fr) auto minmax(6rem, 1fr) auto minmax(6rem, 1fr);
      gap: clamp(0.45rem, 1vw, 1.1rem);
      align-items: start;
      border-top: 1px solid rgba(241, 6, 18, 0.18);
      border-bottom: 1px solid var(--line-soft);
    }

    .group {
      min-width: 0;
      display: grid;
      gap: clamp(0.65rem, 1.5vw, 1.15rem);
    }

    .digits {
      display: grid;
      grid-auto-flow: column;
      gap: clamp(0.28rem, 0.55vw, 0.55rem);
      justify-content: center;
    }

    .digit {
      min-width: clamp(2.25rem, 7vw, 8.2rem);
      aspect-ratio: 0.72 / 1;
      display: grid;
      place-items: center;
      position: relative;
      color: #f5f5f5;
      font-size: clamp(3.2rem, 11vw, 10rem);
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.08em;
      text-shadow:
        0 0 0.7rem rgba(255,255,255,0.18),
        0 0 1.6rem rgba(255,255,255,0.08);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.08)),
        rgba(2,2,2,0.86);
      border: 1px solid rgba(190, 198, 210, 0.17);
      box-shadow:
        inset 0 0 1.2rem rgba(255,255,255,0.035),
        inset 0 0 2.4rem rgba(0,0,0,0.8),
        0 0 0.8rem rgba(0,0,0,0.55);
      clip-path: polygon(9% 0, 91% 0, 100% 8%, 100% 92%, 91% 100%, 9% 100%, 0 92%, 0 8%);
    }

    .days .digit {
      color: var(--red);
      text-shadow:
        0 0 0.55rem rgba(241, 6, 18, 0.4),
        0 0 1.6rem rgba(241, 6, 18, 0.22);
      border-color: rgba(241, 6, 18, 0.23);
      box-shadow:
        inset 0 0 1.3rem rgba(241,6,18,0.06),
        inset 0 0 2.6rem rgba(0,0,0,0.88),
        0 0 1rem rgba(241,6,18,0.08);
    }

    .label {
      display: flex;
      align-items: center;
      gap: clamp(0.5rem, 1.2vw, 1.1rem);
      color: var(--muted);
      font-size: clamp(0.72rem, 1.8vw, 1.55rem);
      letter-spacing: 0.24em;
      text-transform: uppercase;
      white-space: nowrap;
      justify-content: center;
    }

    .label::before,
    .label::after {
      content: "";
      width: min(7rem, 22%);
      height: 1px;
      background: currentColor;
      opacity: 0.55;
    }

    .days .label {
      color: var(--red);
      text-shadow: 0 0 0.55rem rgba(241,6,18,0.35);
    }

    .separator {
      align-self: center;
      padding-top: clamp(1rem, 4vw, 3.2rem);
      color: rgba(227, 231, 238, 0.34);
      font-size: clamp(3rem, 9vw, 8rem);
      font-weight: 800;
      line-height: 0.8;
      text-shadow: 0 0 0.7rem rgba(255,255,255,0.08);
    }

    .system-state {
      padding-top: clamp(0.6rem, 1.3vw, 1rem);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: clamp(0.85rem, 2.3vw, 2.1rem);
      font-size: clamp(1.25rem, 3vw, 2.6rem);
      letter-spacing: 0.34em;
      text-transform: uppercase;
    }

    .system-state .red {
      color: var(--red);
      text-shadow: 0 0 0.85rem rgba(241, 6, 18, 0.42);
    }

    .bottom-bar {
      padding-top: clamp(0.9rem, 2vw, 1.7rem);
      border-top: 1px solid var(--line);
      font-size: clamp(0.58rem, 1vw, 0.82rem);
      letter-spacing: 0.08em;
    }

    .bottom-bar .red-line { color: var(--red); }

    .home-link {
      position: fixed;
      right: max(1rem, env(safe-area-inset-right));
      top: max(1rem, env(safe-area-inset-top));
      z-index: 10;
      color: rgba(240,244,250,0.58);
      text-decoration: none;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-size: 0.72rem;
      border: 1px solid rgba(230,238,250,0.14);
      border-radius: 999px;
      padding: 0.55rem 0.8rem;
      background: rgba(0,0,0,0.42);
      backdrop-filter: blur(10px);
    }

    .home-link:hover,
    .home-link:focus-visible {
      color: #fff;
      border-color: rgba(241,6,18,0.38);
      outline: none;
    }

    @media (max-width: 920px) {
      body { align-items: center; }

      .sequence {
        width: min(100vw - 0.5rem, 48rem);
        min-height: calc(100svh - 0.5rem);
        margin: 0.25rem;
        padding: 0.85rem 0.85rem 0.75rem;
        gap: 0.9rem;
      }

      .sequence::after {
        inset: 0.7rem;
      }

      .top-bar,
      .bottom-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
      }

      .top-bar {
        padding-bottom: 0.75rem;
        font-size: 0.68rem;
      }

      .countdown {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.8rem 0 0.55rem;
      }

      .separator { display: none; }

      .group { gap: 0.45rem; }

      .digits { gap: 0.22rem; }

      .digit {
        min-width: clamp(2.45rem, 12.4vw, 4.25rem);
        font-size: clamp(3.35rem, 16.8vw, 5.95rem);
      }

      .group:not(.days) .digits .digit {
        min-width: clamp(3rem, 15.5vw, 4.8rem);
      }

      .label {
        font-size: clamp(0.68rem, 1.55vw, 1.1rem);
      }

      .status-line {
        gap: 0.6rem;
        font-size: clamp(1.12rem, 5.1vw, 2rem);
      }

      .system-state {
        padding-top: 0.2rem;
        gap: 0.65rem;
        font-size: clamp(1rem, 4.4vw, 1.65rem);
      }

      .status-line,
      .system-state {
        letter-spacing: 0.16em;
      }

      .bottom-bar {
        padding-top: 0.75rem;
        font-size: 0.54rem;
      }

      .home-link {
        position: fixed;
        right: max(0.55rem, env(safe-area-inset-right));
        top: max(0.55rem, env(safe-area-inset-top));
        margin: 0;
        display: inline-flex;
        font-size: 0.66rem;
        padding: 0.48rem 0.72rem;
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .node::after { animation: blink 2s ease-in-out infinite; }
      .digit { transition: color 180ms ease, text-shadow 180ms ease; }
    }

    @keyframes blink {
      0%, 100% { opacity: 0.45; transform: scale(0.92); }
      50% { opacity: 1; transform: scale(1.08); }
    }
  
    .site-footer {
      position: relative;
      z-index: 10;
      padding: 1.5rem 1rem 2rem;
      color: rgba(245, 247, 251, 0.48);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-align: center;
      text-transform: lowercase;
    }

    .site-footer span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.45rem 0.75rem;
      border: 1px solid rgba(145, 196, 255, 0.14);
      border-radius: 999px;
      background: rgba(5, 12, 22, 0.34);
      backdrop-filter: blur(10px);
      box-shadow: 0 0 1rem rgba(20, 119, 255, 0.06);
    }
