/*
 * Сайт Art Reveal (apps/site): общий стиль страниц на всех языках —
 * главной (/ru/, /en/, /es/…), политики и удаления аккаунта.
 */
:root {
  color-scheme: dark;
  --felt: #14402f;
  --felt-deep: #0d2c20;
  --ink: #f4efe2;
  --muted: rgba(244, 239, 226, 0.72);
  --gold: #e8c46a;
  --gold-soft: #ffd15c;
  --gold-deep: #c99a3b;
  --line: rgba(232, 196, 106, 0.4);
  --panel: rgba(13, 20, 14, 0.55);
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Digits', Georgia, 'Times New Roman', serif;
}

/* Цифры — без засечек во всём проекте: у Georgia цифры «старого стиля». */
@font-face {
  font-family: 'Digits';
  src: local('Inter'), local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
  unicode-range: U+0030-0039;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #1b5440 0%, var(--felt) 45%, var(--felt-deep) 100%) fixed;
  background-color: var(--felt-deep);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

a {
  color: var(--gold-soft);
}

/* ── Верхняя строка: название и выбор языка ───────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.lang-menu {
  position: relative;
  margin-left: auto;
  font-size: 14px;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.lang-menu summary .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}

.lang-menu[open] summary .chevron {
  transform: rotate(180deg);
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #102e22;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.lang-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.lang-menu li a:hover,
.lang-menu li a:focus-visible {
  background: rgba(232, 196, 106, 0.14);
  outline: none;
}

.lang-menu li a[aria-current='page'] {
  color: var(--gold);
  font-weight: 600;
}

/* ── Главная ──────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 8px;
}

.hero img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 7vw, 48px);
  letter-spacing: 0.01em;
}

.lead {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: clamp(18px, 3.4vw, 22px);
}

.text {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}

.notice {
  max-width: 640px;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid rgba(232, 196, 106, 0.55);
  border-radius: 14px;
  background: var(--panel);
  font-size: 15px;
}

.notice b {
  color: var(--gold);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Store badges and the Telegram button: one height in a row */
.links > a,
.links > span {
  box-sizing: border-box;
  min-height: 56px;
}

a.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd977, var(--gold-deep));
  color: #1d1608;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

a.play svg {
  width: 22px;
  height: 22px;
}

/*
  Store badges side by side at one height (--badge-h). App Store — Apple's official badge in the page language
  (assets/badges, from Apple's marketing tools; not to be redrawn). Google Play is drawn to match it: black, grey
  outline, the same corner radius, four-colour logo, two lines of text; sizes scale with the height.
*/
.links,
.stores {
  --badge-h: 56px;
}

a.appstore {
  display: inline-flex;
  min-height: 0;
  line-height: 0;
}

a.appstore img {
  width: auto;
  height: var(--badge-h);
}

a.gplay {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--badge-h) * 0.18);
  height: var(--badge-h);
  min-height: 0;
  padding: 0 calc(var(--badge-h) * 0.5) 0 calc(var(--badge-h) * 0.36);
  border: 1px solid #a6a6a6;
  border-radius: calc(var(--badge-h) * 0.16);
  background: #000;
  color: #fff;
  font-size: calc(var(--badge-h) * 0.39);
  text-decoration: none;
  line-height: 1.05;
}

a.gplay:hover {
  border-color: #fff;
}

a.gplay svg {
  width: 1.18em;
  height: 1.27em;
  flex: none;
}

.gplay-text {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gplay-text small {
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ── Серия (art-reveal.com): карточки игр ─────────────────────────────────── */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

/* A card is one link: an <a class="game">, or a <div class="game"> whose title link stretches over the card
   (Solitaire, so its store badges can be links of their own). */
.game {
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

a.game:hover,
a.game:focus-visible,
.game:has(.game-link:hover),
.game:has(.game-link:focus-visible) {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.game-shot {
  flex: 0 0 34%;
  width: 34%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.game-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

a.game-title {
  color: inherit;
  text-decoration: none;
}

.game-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.stores {
  --badge-h: 40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-title img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.game-tag {
  color: var(--muted);
  font-size: 15px;
}

.game-platforms {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.game-more {
  margin-top: auto;
  color: var(--gold-soft);
  font-weight: 600;
}

/* ── Слайдер снимков экрана ───────────────────────────────────────────────── */
.slider {
  position: relative;
  margin: 32px 0 8px;
}

.slides {
  display: grid;
  grid-auto-flow: column;
  /* Три снимка в ряд на широком экране, на телефоне — один и край следующего. */
  grid-auto-columns: calc((100% - 2 * 16px) / 3);
  gap: 16px;
  margin: 0;
  padding: 4px 2px 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slides:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 18px;
}

.slide {
  scroll-snap-align: start;
}

.slide figure {
  margin: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--felt-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.slide figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.slider .arrow {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 32, 24, 0.88);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider .arrow svg {
  width: 20px;
  height: 20px;
}

.slider .arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.slider .prev {
  left: -10px;
}

.slider .next {
  right: -10px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dots button::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: rgba(244, 239, 226, 0.3);
  transition: background 0.15s, transform 0.15s;
}

.dots button[aria-current='true']::before {
  background: var(--gold);
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .slides {
    grid-auto-columns: 46%;
  }
}

@media (max-width: 520px) {
  .slides {
    grid-auto-columns: 78%;
  }

  .slider .arrow {
    display: none;
  }
}

/* ── Политика и удаление аккаунта ─────────────────────────────────────────── */
.doc {
  max-width: 760px;
  margin: 0 auto;
}

.doc h1 {
  margin: 28px 0 8px;
  font-size: 1.6rem;
}

.doc h2 {
  margin: 30px 0 8px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-soft);
}

.doc p,
.doc li,
.doc td {
  opacity: 0.92;
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.updated {
  margin: 0 0 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

.controller {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.mail {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  user-select: all;
}

.note {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 209, 92, 0.12);
  color: var(--gold-soft);
}

/* ── Подвал ───────────────────────────────────────────────────────────────── */
footer {
  max-width: 1040px;
  margin: 36px auto 0;
  padding: 16px 16px 32px;
  border-top: 1px solid rgba(244, 239, 226, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

footer a[aria-current='page'] {
  color: var(--ink);
  text-decoration: none;
}

/* On a phone both store badges fit one row (Apple's minimum badge height is 40px). */
@media (max-width: 420px) {
  .links {
    --badge-h: 44px;
  }
}
