:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8ecf1;
  --muted: #8b9cb3;
  --accent: #4a9eff;
  --border: #2a3544;
  --partner-cream: #fff4e8;
  --partner-peach: #ffd4b8;
  --partner-coral: #f0a070;
  --partner-ink: #5c3d2e;
  --partner-muted: #8a6a58;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

.site-header {
  text-align: center;
  padding: 32px 0 24px;
}

.site-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-header p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.rustore-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rustore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.rustore-badge img {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rustore-badge-sm img {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.flagship {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
}

.flagship-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  height: 100%;
  background: #0a0e14;
}

.flagship-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.flagship-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.flagship h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.flagship .tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.flagship p {
  color: var(--muted);
  margin-bottom: 16px;
}

.flagship-title-link {
  color: inherit;
  text-decoration: none;
}

.flagship-title-link:hover {
  color: var(--accent);
}

.flagship-more {
  margin-bottom: 12px !important;
}

.flagship-more a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.flagship-more a:hover {
  text-decoration: underline;
}

.crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px !important;
}

.crumb a {
  color: var(--accent);
  text-decoration: none;
}

.landing-section {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.season-note p,
.cta-block p {
  color: var(--muted);
  max-width: 640px;
}

.cta-block .rustore-badge {
  margin: 12px 0 16px;
}

.muted-line {
  font-size: 0.9rem;
}

.muted-line a {
  color: var(--accent);
  text-decoration: none;
}

.muted-line a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0e14;
  flex-shrink: 0;
}

.card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  min-height: 2.5em;
  flex: 1;
}

section.about {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

section.about p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 16px;
}

.links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.links a {
  color: var(--accent);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: 24px;
}

.site-footer a {
  color: var(--muted);
}

/* Partner Solod — fixed bottom-left */
.partner-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: min(280px, calc(100vw - 32px));
}

.partner-banner-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  color: var(--partner-ink);
  background: linear-gradient(145deg, var(--partner-cream) 0%, var(--partner-peach) 55%, #ffc9a8 100%);
  border: 1px solid rgba(240, 160, 112, 0.55);
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(92, 61, 46, 0.18),
    0 2px 6px rgba(92, 61, 46, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-banner-link:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(92, 61, 46, 0.22),
    0 0 0 3px rgba(240, 160, 112, 0.25);
}

.partner-banner-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #fff;
}

.partner-banner-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.partner-banner-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--partner-muted);
}

.partner-banner-name {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--partner-ink);
}

@media (max-width: 720px) {
  .flagship {
    grid-template-columns: 1fr;
  }

  .flagship-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .rustore-badge img,
  .rustore-badge-sm img {
    width: min(188px, 100%);
  }

  .partner-banner {
    left: 10px;
    bottom: 10px;
    max-width: min(240px, calc(100vw - 20px));
  }

  .partner-banner-link {
    padding: 8px 12px 8px 8px;
    gap: 10px;
    border-radius: 16px;
  }

  .partner-banner-avatar {
    width: 40px;
    height: 40px;
  }

  .partner-banner-name {
    font-size: 0.82rem;
  }

  .partner-banner-label {
    font-size: 0.62rem;
  }
}

/* Privacy page */
body.page-privacy {
  background: #fff;
  color: #222;
}

.page-privacy .wrap {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px 96px;
  line-height: 1.6;
}

.page-privacy h1 {
  font-size: 1.5rem;
}

.page-privacy h2 {
  font-size: 1.1rem;
  margin-top: 24px;
}

.page-privacy p,
.page-privacy li {
  margin-bottom: 12px;
}

.page-privacy a {
  color: #0066cc;
}

.page-privacy .muted {
  color: #666;
  font-size: 0.9rem;
}

.page-privacy .back-link {
  margin-top: 32px;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 16px 96px;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 8px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}
