:root {
  color-scheme: dark;
  --bg: #171a1f;
  --panel: #282c34;
  --panel-2: #20252c;
  --border: #3a414c;
  --text: #f7f9fc;
  --muted: #b7c0cd;
  --blue: #3282df;
  --blue-dark: #2469b8;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }

.site-hero {
  background: var(--blue);
  padding: 28px 16px 22px;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand-mark {
  width: 70px;
  height: 54px;
  border: 3px solid #fff;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
}
.brand-copy { text-align: left; }
.brand-title { display: block; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1; }
.brand-subtitle { display: block; margin-top: 8px; font-weight: 800; letter-spacing: .24em; }
.site-tagline { margin: 24px 0 0; font-size: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0f1216;
  border-bottom: 1px solid #303641;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: thin;
}
.nav-link {
  flex: 0 0 auto;
  padding: 15px 17px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--blue); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 18px 110px;
}
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-heading p { margin: 0; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.card h2, .card h3 { margin-top: 0; }
.placeholder { color: var(--muted); }

.notice {
  background: #19263a;
  border: 1px solid #3275c5;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 20px;
}

.site-footer {
  border-top: 1px solid #303641;
  color: var(--muted);
  text-align: center;
  padding: 24px 16px 90px;
}

/* Reserve space so a future bottom AdSense anchor cannot cover controls/content. */
.ad-anchor-safe-area { min-height: 72px; }

@media (max-width: 640px) {
  .site-hero { padding-top: 20px; }
  .brand-mark { width: 55px; height: 46px; font-size: 24px; }
  .brand-subtitle { letter-spacing: .14em; font-size: .75rem; }
  .site-tagline { margin-top: 16px; }
  .nav-inner { justify-content: flex-start; }
  .nav-link { padding: 13px 14px; }
  main { padding-inline: 12px; }
}
