/* ═══ ИГРЫ — черновики, не для выгрузки ═══════════════════════
   Подключается только со страниц games.html, neonball.html,
   notolove.html, labirint.html, niti.html.
   Живые страницы site.css не трогают. */

/* темы: свой акцент на каждой странице, как у приложений */
body.p-games    { --cyan: #fbbf24; --violet: #f472b6; }
body.p-neonball { --cyan: #22d3ee; --violet: #a78bfa; }
body.p-notolove { --cyan: #fb7185; --violet: #f59e0b; }
body.p-labirint { --cyan: #2dd4bf; --violet: #8b5cf6; }
body.p-niti     { --cyan: #fb923c; --violet: #f472b6; }
body.p-siyanie  { --cyan: #8ab4ff; --violet: #f0a8d8; }

/* иконки игр без картинок — только CSS */
.g-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.g-ico-ball {
  background: radial-gradient(circle at 32% 28%, #cffafe, #22d3ee 55%, #6d28d9);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.g-ico-ball::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6, 16, 26, 0.55);
}

.g-ico-maze {
  background: linear-gradient(150deg, #134e4a, #0f766e);
}

.g-ico-maze::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #5eead4;
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(94, 234, 212, 0.7);
}

.g-ico-rope {
  background: linear-gradient(150deg, #7c2d12, #c2410c);
}

.g-ico-rope::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid #fdba74;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
}

.product-card.pc-neonball { --pc: #22d3ee; }
.product-card.pc-notolove { --pc: #fb7185; }
.product-card.pc-labirint { --pc: #2dd4bf; }
.product-card.pc-niti     { --pc: #fb923c; }
.product-card.pc-siyanie  { --pc: #8ab4ff; }

/* пять карточек в разделе: 3 + 2, а не 4 + 1 */
.games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* черновик: не для публикации */
.draft-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px dashed rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.08);
  color: #f0cd7a;
  font-size: 13.2px;
  line-height: 1.3;
}

.draft-note b { color: #fde68a; }

/* горизонтальные кадры (скриншоты игр) */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.shots figure { margin: 0; }

.shots .frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05080d;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8);
}

.shots .frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption {
  margin-top: 9px;
  font-size: 13.6px;
  color: var(--muted);
}

.shots figcaption b {
  color: #e6eef7;
  font-weight: 620;
}

.shots .tagp {
  margin-right: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* предметы / ловцы / персонажи в ряд */
.relics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
}

.relic {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 128px;
  text-align: center;
}

.relic img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.relic span {
  font-size: 12.6px;
  color: var(--muted);
  line-height: 1.35;
}

/* персонажи Нитей: стоят рядом, как в студии */
.duo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 360px;
}

.duo img {
  height: clamp(280px, 36vw, 400px);
  width: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6));
}

.duo .duo-dancer { z-index: 2; }
.duo .duo-choreo { z-index: 1; margin-left: -28px; transform: scaleX(-1); }

/* ── неоновый арканоид: сцена на CSS, без фейковых цифр ── */.arcade {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(58% 48% at 24% 18%, rgba(167, 139, 250, 0.28), transparent 72%),
    radial-gradient(52% 44% at 78% 12%, rgba(34, 211, 238, 0.22), transparent 74%),
    radial-gradient(70% 52% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 78%),
    #070b14;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.85);
}

.arcade::after {
  /* сетка поля */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.arcade-bricks {
  position: absolute;
  top: 9%;
  left: 8%;
  right: 8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.arcade-bricks i {
  display: block;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.arcade-bricks i:nth-child(6n + 1),
.arcade-bricks i:nth-child(6n + 2) {
  background: linear-gradient(180deg, #c4b5fd, #a78bfa);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.arcade-bricks i:nth-child(6n + 5) {
  background: linear-gradient(180deg, #f0abfc, #e879f9);
  box-shadow: 0 0 14px rgba(232, 121, 249, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.arcade-ball {
  position: absolute;
  left: 58%;
  top: 56%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #cffafe, #22d3ee 58%, #0e7490);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.85), 0 0 36px rgba(34, 211, 238, 0.4);
}

.arcade-paddle {
  position: absolute;
  left: 44%;
  bottom: 9%;
  width: 22%;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #a5f3fc, #22d3ee);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.arcade-note {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(165, 243, 252, 0.72);
}

/* города Лабиринта: компактный список */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  counter-reset: city;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cities li {
  list-style: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14.4px;
  color: #c9d6e4;
}

.cities li b {
  display: block;
  color: var(--fg);
  font-size: 15px;
}

.cities li span {
  color: var(--muted);
  font-size: 13px;
}

/* ── «Сияние»: иконка, логотип, герои ── */

.g-ico-glow {
  background:
    radial-gradient(circle at 34% 28%, #e0e7ff, #8ab4ff 48%, #f0a8d8 100%);
  box-shadow: 0 0 16px rgba(138, 180, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.g-ico-glow::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* логотип игры на белой карточке: картинка нарисована на бумаге */
.logo-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, 0.85);
}

.logo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* герои игры в ряд */
.heroes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
}

.heroes figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.heroes img {
  width: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

.heroes .h-big img {
  height: clamp(200px, 24vw, 300px);
}

.heroes .h-kid img {
  height: clamp(140px, 16vw, 200px);
}

.heroes figcaption {
  font-size: 12.4px;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.heroes figcaption b {
  display: block;
  color: var(--fg);
  font-size: 14px;
}

/* адаптив */
@media (max-width: 700px) {
  .duo { min-height: 280px; }
  .duo img { height: clamp(220px, 52vw, 300px); }
  .arcade-bricks i { height: 14px; }
}

/* ── новые игры: акценты и иконки ───────────────────────────── */
body.p-hlop-top    { --cyan: #f59e0b; --violet: #f472b6; }
body.p-klac-klac   { --cyan: #34d399; --violet: #22d3ee; }
body.p-pointewings { --cyan: #a78bfa; --violet: #f0a8d8; }
body.p-pryzhok-ole { --cyan: #38bdf8; --violet: #a78bfa; }
body.p-drop-top    { --cyan: #f472b6; --violet: #22d3ee; }

.product-card.pc-hlop-top    { --pc: #f59e0b; }
.product-card.pc-klac-klac   { --pc: #34d399; }
.product-card.pc-pointewings { --pc: #a78bfa; }
.product-card.pc-pryzhok-ole { --pc: #38bdf8; }
.product-card.pc-drop-top    { --pc: #f472b6; }

.g-ico-clap     { background: linear-gradient(150deg, #b45309, #f59e0b); }
.g-ico-castanet { background: linear-gradient(150deg, #065f46, #34d399); }
.g-ico-wing     { background: linear-gradient(150deg, #4c1d95, #a78bfa); }
.g-ico-tile     { background: linear-gradient(150deg, #075985, #38bdf8); }
.g-ico-lotus    { background: linear-gradient(150deg, #9d174d, #f472b6); }

.g-ico svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.92);
}

/* Четыре новые игры: акценты карточек и плашек */
body.p-etno        { --cyan: #fbbf24; --violet: #f59e0b; }
body.p-lesnaya-polyana { --cyan: #7cff6b; --violet: #34d399; }
body.p-klyaksa     { --cyan: #ff7a3d; --violet: #f472b6; }
body.p-klyaksa-raskraska { --cyan: #ffc93d; --violet: #fb923c; }

.product-card.pc-etno      { --pc: #fbbf24; }
.product-card.pc-lesnaya   { --pc: #7cff6b; }
.product-card.pc-klyaksa   { --pc: #ff7a3d; }
.product-card.pc-raskraska { --pc: #ffc93d; }

.g-ico-quiz     { background: linear-gradient(150deg, #92400e, #fbbf24); }
.g-ico-mushroom { background: linear-gradient(150deg, #14532d, #7cff6b); }
.g-ico-drop     { background: linear-gradient(150deg, #7c2d12, #ff7a3d); }
.g-ico-brush    { background: linear-gradient(150deg, #78350f, #ffc93d); }
