:root {
  color-scheme: dark;
  --ink: #f4fbff;
  --muted: #a9c3ce;
  --dim: #6f8f9d;
  --bg: #071416;
  --panel: #0f2426;
  --panel-2: #163136;
  --line: rgba(219, 246, 255, 0.16);
  --teal: #34d6bf;
  --coral: #ff7b5c;
  --gold: #ffd166;
  --kelp: #8bd450;
  --blue: #6bb7ff;
  --danger: #ff5c7a;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 20, 22, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 214, 191, 0.45);
  background: #102f31;
  color: var(--teal);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 20, 22, 0.18) 0%, rgba(7, 20, 22, 0.7) 58%, var(--bg) 100%),
    url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1962700/library_hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(7, 20, 22, 0) 0%, var(--bg) 92%);
  pointer-events: none;
}

.hero-inner,
.page-hero-inner,
.section,
.footer-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-inline: 20px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 92px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(42px, 7vw, 86px);
}

.hero-copy {
  max-width: 690px;
  margin: 20px 0 0;
  color: #d6eaf0;
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.btn.primary {
  background: var(--teal);
  color: #032423;
  border-color: var(--teal);
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-1px);
}

.quick-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(5, 18, 20, 0.72);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.band {
  padding: 56px 0;
}

.band.alt {
  background: #0a1b1e;
  border-block: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

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

.grid.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.tool-panel,
.notice,
.ad-slot {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.card h3 {
  font-size: 22px;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card .tag {
  color: #062b2a;
  background: var(--teal);
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(7, 20, 22, 0.35), var(--bg)),
    url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1962700/capsule_616x353.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding-top: 78px;
  padding-bottom: 44px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.page-copy {
  max-width: 760px;
  color: #d6eaf0;
  font-size: 18px;
  margin: 16px 0 0;
}

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.main-flow {
  display: grid;
  gap: 18px;
}

.tool-panel {
  padding: 20px;
}

.tool-panel h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tool-panel p,
.tool-panel li {
  color: var(--muted);
}

.tool-panel a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-panel ul,
.tool-panel ol {
  padding-left: 22px;
}

.side {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 82px;
}

.notice,
.ad-slot {
  padding: 16px;
}

.notice h3,
.ad-slot h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.notice p,
.ad-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ad-slot {
  min-height: 250px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #102226;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #08191b;
  padding: 10px 12px;
}

.result-box {
  margin-top: 16px;
  border: 1px solid rgba(52, 214, 191, 0.35);
  background: #0b2828;
  border-radius: 8px;
  padding: 16px;
}

.result-box strong {
  display: block;
  color: var(--teal);
  font-size: 20px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0b1d20;
}

.check-item input {
  width: 18px;
  height: 18px;
}

.check-item small {
  color: var(--dim);
}

.progress {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #08191b;
  margin: 16px 0;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--kelp), var(--gold));
}

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

.timebox {
  border: 1px solid var(--line);
  background: #0b1d20;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.timebox strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

.timebox span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.table th,
.table td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 11px;
  vertical-align: top;
}

.table th {
  background: #143137;
  color: var(--ink);
}

.table td {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #061113;
}

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .quick-stats,
  .grid.cards,
  .grid.two,
  .content,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 82vh;
  }

  .hero-inner {
    padding-bottom: 52px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-item {
    grid-template-columns: 22px 1fr;
  }

  .check-item small {
    grid-column: 2;
  }
}
