/* Lemon Kite Games — общий стиль сайта. Цвета — как страница студии на itch.io (gamedocs/release/itch-profile-page.md). */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* У Fredoka нет кириллицы: русский текст и заголовки — Nunito */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #fdf8e3;
  --card: #fffdf3;
  --text: #3d1a06;
  --muted: #6b4a33;
  --link: #c62828;
  --lemon: #fed615;
  --sky: #7ad0fd;
  --line: #ecdfb4;
  --radius: 18px;
  --head: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(30px, 6vw, 44px); margin-top: 0.4em; }
h2 { font-size: clamp(22px, 4.2vw, 28px); }
h3 { font-size: 19px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 720px; }

/* шапка */
.site-head { border-bottom: 2px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--head); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--head); font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); }

/* главная */
.hero { text-align: center; padding: 40px 0 8px; }
.hero img { width: 192px; height: 192px; margin: 0 auto 8px; border-radius: 40px; box-shadow: 0 6px 0 var(--line); }
.hero p { font-size: 19px; max-width: 560px; margin: 0 auto; color: var(--muted); }

.game-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 32px 0; }
.game-card img { border-radius: 12px; width: 100%; }
.game-card h2 { margin-top: 0; }
@media (max-width: 640px) { .game-card { grid-template-columns: 1fr; } }

.btn { display: inline-block; font: 600 17px/1 var(--head); padding: 12px 20px; border-radius: 999px; text-decoration: none;
  background: var(--lemon); color: var(--text); border: 2px solid var(--text); box-shadow: 0 3px 0 var(--text); }
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--text); }
.btn.ghost { background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }

/* страница игры */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 220px); gap: 12px; overflow-x: auto;
  padding: 4px 0 12px; scroll-snap-type: x mandatory; }
.shots img { border-radius: 12px; border: 2px solid var(--line); scroll-snap-align: start; }
.stores { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stores li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.soon { color: var(--muted); }

/* тексты политики и поддержки */
.meta { color: var(--muted); font-size: 15px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 8px 10px; }
.prose th { background: var(--card); font-family: var(--head); font-weight: 600; }
.prose li { margin: 0.25em 0; }
.lang { font-size: 15px; }
details { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
summary { cursor: pointer; font-family: var(--head); font-weight: 600; }

.site-foot { border-top: 2px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
