:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #0d1014;
  --panel-strong: #131820;
  --line: #252b34;
  --text: #f4f4f0;
  --muted: #a4adb8;
  --green: #54ff3f;
  --yellow: #ffe84c;
  --orange: #ff9c1a;
  --red: #ff321f;
  --bad: #ffb066;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Bright Chalk";
  src: url("/assets/fonts/BrightChalk.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(5, 6, 7, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: "Bright Chalk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.brand-mark img {
  width: 58px;
  height: 40px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}

.site-actions {
  display: flex;
  gap: 10px;
}

.nav-button,
.inline-action,
.modal-panel button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #090b0e;
  color: var(--text);
  font-weight: 700;
}

a.nav-button,
.inline-action {
  text-decoration: none;
}

.nav-button.primary,
.modal-panel button[type="submit"] {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #111500;
}

main {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(42px, 7vw, 92px) 0;
}

.hero-brand {
  display: grid;
  gap: 24px;
}

.hero-wordmark {
  display: block;
  width: min(100%, 820px);
  height: auto;
  max-height: min(58vh, 720px);
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.08);
  margin: clamp(-118px, -8vw, -56px) 0 clamp(-112px, -7vw, -48px) -18px;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.green {
  --stripe: var(--green);
}

.yellow {
  --stripe: var(--yellow);
}

.orange {
  --stripe: var(--orange);
}

.red {
  --stripe: var(--red);
}

.eyebrow.green {
  color: var(--green);
}

.eyebrow.yellow {
  color: var(--yellow);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.countdown-panel,
.release-info,
.detail-card,
.platform-strip,
.modal-panel {
  border: 1px solid var(--line);
  background: rgba(13, 16, 20, 0.96);
}

.countdown-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-top: 4px solid var(--yellow);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-grid span {
  display: grid;
  gap: 5px;
  min-height: 94px;
  place-items: center;
  background: #07090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--stripe);
}

.countdown-grid strong {
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 0.9;
}

.countdown-grid small,
.release-date {
  color: var(--muted);
}

.countdown-grid small {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.release-date {
  margin: 0;
  line-height: 1.45;
}

.official-date {
  color: var(--text);
}

.release-info {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 48px);
}

.section-heading {
  display: grid;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  border-top: 4px solid var(--stripe);
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 76px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-right: 4px solid var(--red);
}

.platform-strip img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.platform-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-shell {
  padding: clamp(34px, 6vw, 78px) 0;
}

.app-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.app-logo {
  width: min(100%, 520px);
  object-fit: contain;
  mix-blend-mode: screen;
}

.dashboard-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  align-items: start;
}

.settings-heading {
  margin-bottom: 22px;
}

.settings-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  background: rgba(13, 16, 20, 0.96);
}

.settings-panel h2 {
  font-size: 1.35rem;
}

small {
  color: var(--muted);
}

.modal,
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(128, 128, 128, 0.42);
}

.modal.hidden,
.auth-overlay.hidden,
.hidden {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 390px);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.modal-panel h2 {
  font-size: 1.55rem;
}

.close-button {
  justify-self: end;
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  background: #050607;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #08090b;
  color: var(--text);
  padding: 0 11px;
}

input:focus {
  border-color: var(--yellow);
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #08090b;
  color: var(--text);
  padding: 0 11px;
}

select:focus {
  border-color: var(--yellow);
}

.secondary-button {
  width: 100%;
  background: transparent;
}

.danger-button {
  width: 100%;
  border-color: rgba(255, 63, 63, 0.55);
  background: rgba(255, 63, 63, 0.08);
  color: #ff7777;
}

.login-cookie-devices {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.login-cookie-devices h3 {
  margin: 0;
  color: var(--yellow);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-cookie-device-list {
  display: grid;
  gap: 7px;
}

.login-cookie-device {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.login-cookie-device strong {
  color: var(--text);
  font-size: 0.9rem;
}

.login-cookie-device span,
.login-cookie-device-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status {
  min-height: 1.25em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.status.ok {
  color: var(--green);
}

.status.bad {
  color: var(--bad);
}

.message-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-overlay p {
  margin: 0;
  min-width: min(280px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  padding: 16px 22px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f4f4;
  font: 500 1rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-actions {
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .app-hero,
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-wordmark {
    width: min(100%, 720px);
    margin: clamp(-96px, -13vw, -48px) auto clamp(-84px, -11vw, -38px);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .platform-strip {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-strip {
    flex-direction: column;
  }
}
