:root { --ink: #3a2333; --soft: #6e5260; --sky1: #ff9b7a; --sky2: #ffd3b8; --card: #ffffff; --line: #f6e1d6; --plum: #3d2236; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; font-family: "Fredoka", "Nunito", system-ui, sans-serif; color: var(--ink); background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, #fff4ec 100%); min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .wrap { flex: 1; width: 100%; }
a { color: #d9480f; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

/* hero */
.hero > *, .features > * { min-width: 0; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 28px 0 24px; }
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero .logo { width: min(300px, 100%); display: block; filter: drop-shadow(0 6px 0 rgba(61, 34, 54, .18)); }
.tagline { display: inline-block; margin: 0; padding: 6px 18px; background: #fff4d6; border: 2px solid #d29a45; border-radius: 999px; color: #7a4a12; font-weight: 600; box-shadow: 0 3px 0 rgba(61, 34, 54, .25); }
.lead { font-size: 1.2rem; line-height: 1.55; color: #3a1f2e; max-width: 34ch; margin: 0; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 14px; color: #fff; text-decoration: none; background: #111; border: 1.5px solid #a6a6a6; box-shadow: 0 5px 0 rgba(61, 34, 54, .35); transition: transform .1s; line-height: 1.1; text-align: left; }
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.store b { display: block; font-weight: 600; font-size: 1.35rem; }
.store svg { width: 30px; height: 32px; flex: none; }
.soon { display: block; margin: -10px 0 0; font-size: .9rem; color: var(--soft); }
.shot { position: relative; justify-self: end; height: clamp(420px, calc(100vh - 330px), 640px); width: auto; max-width: 100%; aspect-ratio: 452 / 956; border-radius: 32px; padding: 10px; background: var(--plum); box-shadow: 0 18px 40px rgba(61, 34, 54, .35); }
/* екран телефона: скриншот цілком (рамка — поза ним), кути ледь заокруглені, щоб не зрізати кнопки по кутах */
.shot::before { content: ""; position: absolute; inset: 10px; border-radius: 16px; background: #2c3a52 url(img/gameplay.jpg) center / 100% 100% no-repeat; }
/* камера-«крапка» у верхньому відступі екрана (скриншот знято з безпечною зоною 44 px зверху з 936) */
.shot::after { content: ""; position: absolute; left: 50%; top: calc(10px + (100% - 20px) * 0.0235); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #0d0a10; box-shadow: inset 0 0 0 2px #241a24; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 28px; }
.card { background: var(--card); border-radius: 22px; padding: 16px 20px; box-shadow: 0 5px 0 rgba(61, 34, 54, .12); border: 2px solid var(--line); }
.card b { display: block; font-size: 1.1rem; margin: 8px 0 4px; }
.card p { margin: 0; color: var(--soft); line-height: 1.5; }
.card .ico { width: 40px; height: 40px; object-fit: contain; display: block; }

/* footer */
footer { background: var(--plum); color: #f1d6e2; padding: 18px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; }
footer a:hover { text-decoration: underline; }

/* legal pages */
.doc { background: #fff; border-radius: 24px; padding: 36px clamp(18px, 4vw, 44px); margin: 28px auto 48px; max-width: 760px; box-shadow: 0 6px 0 rgba(61, 34, 54, .12); line-height: 1.6; }
.doc h1 { margin-top: 0; font-size: 2rem; }
.doc h2 { margin-top: 1.6em; font-size: 1.25rem; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.top img { height: 56px; }
.top a.back { color: #fff; font-weight: 600; text-decoration: none; text-shadow: 0 1px 2px rgba(61, 34, 54, .35); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .shot { height: auto; width: min(300px, 100%); }
  .intro { align-items: center; }
  .shot { justify-self: center; }
  .hero .logo { margin: 0 auto; width: min(260px, 100%); }
  .lead { margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr; }
}
