/* ==========================================================================
   Lazy Hare Games — landing
   Тёмная тема, «рукотворные» линии через SVG-фильтр #rough, анимации появления
   ========================================================================== */

:root {
  --bg: #0d1117;
  --bg-2: #131a24;
  --surface: #18212e;
  --line: #2a3748;
  --text: #eef3f8;
  --muted: #9aa8b8;
  --accent: #9ad7ff;       /* ледяной голубой */
  --accent-warm: #ffcf6e;  /* тёплый акцент для подчёркиваний */

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* лёгкое «зерно бумаги» поверх всей страницы */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.defs { position: absolute; width: 0; height: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Общие «рисованные» элементы
   -------------------------------------------------------------------------- */

/* рамка, будто обведённая маркером */
.sketch { position: relative; isolation: isolate; }
.sketch::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  filter: url(#rough);
  transition: transform .35s var(--ease), opacity .35s;
  z-index: -1;
}
.sketch::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  filter: url(#rough-strong);
  opacity: 0;
  transform: translate(3px, 3px) rotate(-.6deg);
  transition: transform .35s var(--ease), opacity .35s;
  z-index: -1;
}
.sketch:hover::after,
.sketch:focus-visible::after { opacity: .55; transform: translate(5px, 5px) rotate(-1deg); }

/* ссылка с подчёркиванием, «дорисовывающимся» при наведении */
.link-hand,
.nav__link {
  position: relative;
  display: inline-block;
}
.link-hand::after,
.nav__link::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M2 5 C 20 2, 40 7, 60 4 S 90 3, 98 5' fill='none' stroke='%23ffcf6e' stroke-width='2.4' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s var(--ease);
}
.link-hand:hover::after,
.link-hand:focus-visible::after,
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after { clip-path: inset(0 0 0 0); }

.section-title {
  font: 600 clamp(34px, 5vw, 56px)/1.1 var(--font-display);
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: .5px;
}

.placeholder-tag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 4px 10px;
  border: 1px dashed rgba(255, 255, 255, .4);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  background: rgba(0, 0, 0, .25);
}

/* --------------------------------------------------------------------------
   Анимации появления при скролле
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled,
.header--solid {
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 40px;
  height: auto;
  transition: transform .5s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-8deg) translateY(-2px); }
.brand__name { font: 700 28px/1 var(--font-display); letter-spacing: .5px; }

.nav { display: flex; gap: 40px; }
.nav__link {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__media {
  position: absolute;
  inset: -6% 0 0;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.hero__art,
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__hare {
  position: absolute;
  right: 16%;
  bottom: 30%;
  width: clamp(80px, 9vw, 150px);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(11, 16, 32, .45));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  margin-top: -12vh;
}
.hero__title {
  margin: 0;
  font: 600 clamp(48px, 10vw, 140px)/.95 var(--font-display);
  text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
}
.hero__subtitle {
  margin: 18px 0 0;
  font-size: clamp(18px, 2.8vw, 28px);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  color: var(--text);
  opacity: .7;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   3. About
   -------------------------------------------------------------------------- */
.about { padding: clamp(80px, 12vw, 160px) 0; }
.about__text {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
}
.about__text strong { color: var(--text); font-weight: 800; }

/* выделенная цветом фраза */
.highlight { color: var(--text); white-space: nowrap; }

/* --------------------------------------------------------------------------
   4. Platforms
   -------------------------------------------------------------------------- */
.platforms {
  padding: clamp(72px, 10vw, 120px) 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(154, 215, 255, .08), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 14px 26px 14px 18px;
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s, opacity .9s var(--ease);
}
.store.reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .35s var(--ease), background .35s; }
.store.reveal:not(.is-visible) { transform: translateY(28px); }
.store:hover,
.store:focus-visible { transform: translateY(-4px); background: #1e2a3a; }
.store__icon { width: 44px; height: 44px; flex: none; transition: transform .45s var(--ease); }
.store:hover .store__icon { transform: rotate(-6deg) scale(1.06); }
.store__text { display: flex; flex-direction: column; font-weight: 800; font-size: 22px; line-height: 1.1; }
.store__text small {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.browser {
  margin-top: 40px;
  text-align: center;
  font: 500 26px/1.2 var(--font-display);
}
.browser__or { color: var(--muted); margin-right: 8px; }
.browser .link-hand { color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Showcase (коллаж + текст поверх)
   -------------------------------------------------------------------------- */
.showcase {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1210;
}
.showcase__collage { position: absolute; inset: 0; }
.shot {
  position: absolute;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  will-change: transform;
}
.shot--1 { width: 34%; height: 110%; right: 2%;  top: -5%;  --r: 4deg; }
.shot--2 { width: 32%; height: 100%; right: 30%; top: 8%;   --r: -3deg; }
.shot--3 { width: 26%; height: 90%;  right: 58%; top: -10%; --r: 2deg; opacity: .8; }
.shot { transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); }

.showcase__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, .96) 0%, rgba(13, 17, 23, .82) 40%, rgba(13, 17, 23, .25) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.showcase__content { position: relative; z-index: 2; padding-block: 96px; }
.showcase__kicker {
  margin: 0;
  color: var(--accent-warm);
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 14px;
}
.showcase__title {
  margin: 8px 0 16px;
  font: 600 clamp(56px, 9vw, 112px)/.95 var(--font-display);
  font-variant-numeric: lining-nums;
}
.showcase__text {
  max-width: 460px;
  margin: 0 0 36px;
  color: #c9d3de;
  font-size: 19px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  color: var(--bg);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s, opacity .9s var(--ease) var(--d, 0s);
}
.btn::before { color: var(--accent); inset: -1px; }
.btn::after  { color: var(--accent); }
.btn:hover,
.btn:focus-visible { transform: translateY(-3px); background: #b8e3ff; }

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-top: 72px;
  background: #0a0d12;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer__note { margin: 16px 0 0; color: var(--muted); max-width: 260px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--muted);
  width: fit-content;
  transition: color .25s, transform .25s var(--ease);
}
.footer__col a:hover { color: var(--text); transform: translateX(4px); }
.footer__col a[aria-current="page"] { color: var(--text); }
.footer__btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-align: left;
  width: fit-content;
  cursor: pointer;
  transition: color .25s, transform .25s var(--ease);
}
.footer__btn:hover { color: var(--text); transform: translateX(4px); }
.footer__title {
  margin: 0 0 6px;
  font: 700 24px/1 var(--font-display);
  color: var(--text);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.to-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .3s, transform .3s var(--ease);
}
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Внутренние страницы (политики, FAQ, браузерная версия)
   -------------------------------------------------------------------------- */
.page {
  min-height: 70vh;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px);
  background: radial-gradient(70% 50% at 50% 0%, rgba(154, 215, 255, .07), transparent 70%);
}
.page__inner { max-width: 820px; }
.page__inner--wide { max-width: 1000px; }
.page__back {
  font-size: 15px;
  color: var(--muted);
  transition: color .25s;
}
.page__back:hover { color: var(--text); }
.page__title {
  margin: 24px 0 24px;
  font: 600 clamp(44px, 7vw, 80px)/1 var(--font-display);
}
.page__lead {
  max-width: 600px;
  margin: 0 0 32px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
}
.page__lead strong { color: var(--text); }
.page__soon { color: var(--muted); }

/* оформление будущего текста политик и FAQ */
.prose { color: #c9d3de; }
.prose h2 { margin: 48px 0 12px; font: 600 32px/1.2 var(--font-display); color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.game-frame {
  margin-top: 56px;
  aspect-ratio: 16 / 9;
  color: var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-frame__soon {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
  font: 600 30px/1 var(--font-display);
}
.game-frame__soon img { width: clamp(56px, 8vw, 96px); height: auto; opacity: .5; }

/* --------------------------------------------------------------------------
   Баннер согласия на cookie
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin-left: auto;
  padding: 20px 22px;
  color: var(--text);
  background: rgba(24, 33, 46, .97);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  font-size: 15px;
  line-height: 1.5;
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, transform .4s var(--ease), visibility .4s;
}
.cookie.is-open { transform: none; opacity: 1; visibility: visible; }
.cookie::before { color: var(--line); }
.cookie__title { margin: 0 0 6px; font: 700 22px/1.2 var(--font-display); }
.cookie__text { margin: 0 0 16px; color: var(--muted); }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie__btn {
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: 800 14px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.cookie__btn:hover { border-color: var(--muted); transform: translateY(-2px); }
.cookie__btn--accept { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cookie__btn--accept:hover { background: #b8e3ff; border-color: #b8e3ff; }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .shot--1 { width: 60%; right: -10%; }
  .shot--2 { width: 55%; right: 30%; }
  .shot--3 { display: none; }
  .showcase__shade {
    background:
      linear-gradient(90deg, rgba(13, 17, 23, .95) 0%, rgba(13, 17, 23, .7) 100%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }

  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 32px 16px 40px;
    background: rgba(13, 17, 23, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { font-size: 18px; }
  .header:has(.nav.is-open) { background: rgba(13, 17, 23, .97); }

  .store { width: 100%; max-width: 340px; }
  .highlight { white-space: normal; }
  .footer__bottom { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
