/* hopdare.com: ночное болото, цвета заставки игры (assets/ui/splash.png). */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #112b32;
  --deep: #0a1c22;
  --card: rgba(9, 28, 34, 0.72);
  --line: rgba(159, 216, 207, 0.18);
  --ivory: #f6eedd;
  --text: #d9e8e3;
  --muted: #9cb8b1;
  --teal: #46c6c0;
  --leaf: #8ccf5a;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

.swamp {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 43, 50, 0) 0%, rgba(17, 43, 50, 0.55) 45%, var(--night) 75%),
    linear-gradient(180deg, rgba(10, 28, 34, 0) 55%, var(--deep) 100%),
    url("/img/swamp.webp") left top / auto 100% no-repeat,
    var(--night);
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }

h1, h2, .brand {
  font-family: "Lilita One", "Nunito", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

header.top {
  padding: 18px var(--gutter);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
header.top a.brand {
  font-size: 26px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
header.top img { width: 36px; height: 36px; border-radius: 9px; }

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

/* Главная */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 24px 0 40px;
}
.hero h1 { font-size: clamp(56px, 11vw, 96px); margin: 0 0 12px; }
.hero .lead { font-size: 21px; color: var(--ivory); margin: 0 0 10px; max-width: 30em; }
.hero p { max-width: 32em; }
.hero-toad {
  width: 340px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #050f12;
  border: 1px solid rgba(246, 238, 221, 0.35);
  color: var(--ivory);
  text-decoration: none;
  line-height: 1.2;
}
.store small { font-size: 12px; color: var(--muted); }
.store b { font-size: 20px; font-weight: 800; }
.store:hover { border-color: var(--ivory); color: var(--ivory); }
.store.soon { opacity: 0.6; cursor: default; }
.note { font-size: 14px; color: var(--muted); margin: 0; }

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.points div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.points h2 { font-size: 22px; margin: 0 0 6px; }
.points p { margin: 0; color: var(--text); }

/* Текстовые страницы */
.doc {
  max-width: 720px;
  margin: 8px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px clamp(20px, 5vw, 44px) 36px;
}
.doc h1 { font-size: clamp(34px, 7vw, 46px); margin: 0 0 6px; }
.doc h2 { font-size: 24px; margin: 30px 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.mail {
  display: inline-block;
  margin: 6px 0 4px;
  font: 400 clamp(22px, 5.5vw, 30px)/1.2 "Lilita One", "Nunito", sans-serif;
  color: var(--ivory);
  word-break: break-all;
}

/* Страница ссылки «Поделиться» */
.get { text-align: center; padding-top: 24px; }
.get .toad { width: 180px; height: auto; }
.get h1 { font-size: clamp(48px, 12vw, 72px); margin: 10px 0 8px; }
.get .stores { justify-content: center; }

footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 15px;
}
footer a { color: var(--muted); }
footer span { margin-left: auto; }

@media (max-width: 760px) {
  .swamp {
    background:
      linear-gradient(180deg, rgba(17, 43, 50, 0.35) 0%, var(--night) 70%),
      url("/img/swamp.webp") center top / 100% auto no-repeat,
      var(--night);
  }
  .hero { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-top: 8px; }
  .hero-toad { order: -1; width: min(220px, 60vw); margin: 0 auto; }
  .hero p, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .points { grid-template-columns: 1fr; }
  footer span { margin-left: 0; width: 100%; }
}
