/* Minedrop Igra — отдельная визуальная схема: другие акценты и сетка */
:root {
  --bg: #0a0f14;
  --fg: #f4f7fb;
  --fg-muted: rgba(244, 247, 251, 0.82);
  --card: rgba(18, 28, 38, 0.78);
  --card-alt: rgba(28, 40, 52, 0.65);
  --border: rgba(255, 255, 255, 0.09);
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-2: #f59e0b;
  --accent-2-dark: #d97706;
  --round: 18px;
  --round-sm: 11px;
  --max: 1080px;
  --narrow: 700px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}

/* Фон: background.png в корне сайта (рядом с index.html) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, rgba(6, 10, 15, 0.92) 0%, rgba(10, 18, 28, 0.85) 40%, rgba(6, 10, 15, 0.93) 100%),
    radial-gradient(ellipse 900px 500px at 70% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 420px at 5% 30%, rgba(245, 158, 11, 0.06), transparent 50%),
    url("../background.png") center / cover no-repeat;
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.35rem; }

.pixel {
  font-family: "Press Start 2P", ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.display {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding:
    calc(var(--header-h) + 1.5rem)
    max(1rem, env(safe-area-inset-right))
    max(3rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.prose { max-width: var(--narrow); margin: 0 auto; }

h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  line-height: 1.35;
  margin: 1rem 0 0.75rem;
  text-shadow: 2px 2px 0 #000;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  line-height: 1.4;
  margin: 2.25rem 0 1rem;
  text-shadow: 2px 2px 0 #000;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.25rem 0 0.5rem;
  color: #e2e8f0;
}

p { color: var(--fg-muted); margin: 0.85rem 0; }
.lead { font-size: 1.05rem; color: rgba(244, 247, 251, 0.92); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--round);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.card-alt { background: var(--card-alt); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.badge {
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(0.6rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) 0.6rem max(0.85rem, env(safe-area-inset-left));
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  border-radius: var(--round-sm);
  border: 1px solid var(--border);
  background: rgba(6, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
/* Логотип в шапке = тот же favicon.png */
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--round-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}
.brand-text .name { font-family: "Press Start 2P", monospace; font-size: 0.7rem; text-shadow: 1px 1px 0 #000; }
.brand-text .sub { font-size: 0.65rem; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  flex: 1;
}
.nav a {
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--round-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(20, 184, 166, 0.12); border-color: rgba(20, 184, 166, 0.35); }

.actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  border-radius: var(--round-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, filter 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }

.btn-play {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #031512;
}
.btn-sec {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-2-dark));
  color: #1a0f03;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero-emoji {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.6));
  margin-bottom: 0.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.note {
  font-size: 0.8rem;
  color: rgba(244, 247, 251, 0.65);
  margin-top: 1.5rem;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  line-height: 1.8;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.65rem;
  font-family: "Press Start 2P", monospace;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.breadcrumbs {
  font-size: 0.7rem;
  color: rgba(244, 247, 251, 0.55);
  margin-bottom: 0.75rem;
}
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

.cross-page-note {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(244, 247, 251, 0.78);
}
.cross-page-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 6px;
    padding-bottom: 6px;
  }
  .nav a {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  :root { --header-h: 132px; }
}

@media (max-width: 480px) {
  :root { --header-h: 124px; }
  .header-inner {
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
  }
  .brand-text .name { font-size: 0.62rem; }
  .brand-text .sub { font-size: 0.58rem; }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .actions {
    width: 100%;
    justify-content: stretch;
  }
  .actions .btn {
    flex: 1;
    min-width: 0;
  }
  .card { padding: 1.1rem 1rem; }
  .lead { font-size: 1rem; }
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}
