/* Sedcore Play — витрина игр. Цвета — как у sedcore.com (src/app/globals.css). */
:root {
  --background: #07090d;
  --surface: #0d1117;
  --surface-hover: #131a23;
  --border: #1e2733;
  --border-strong: #2c3a4a;
  --foreground: #e6edf3;
  --muted: #8b98a8;
  --accent: #4ec9b0;
  --accent-soft: rgba(78, 201, 176, 0.12);
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--accent); color: var(--background); }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Обе части названия — одним шрифтом и размером, различаются только цветом. */
.brand { display: flex; align-items: baseline; gap: 0.6em; }
.brand-mark, .brand-play { font-family: var(--mono); font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; }
.brand-mark { color: var(--accent); }
.brand-play { color: var(--foreground); }
.foot-row .brand-mark { font-size: 13px; }

.back { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.back:hover { color: var(--foreground); }

.hero { padding: 64px 0 40px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 12px 0 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; font-weight: 600; }
.lead { margin: 16px 0 0; max-width: 620px; color: var(--muted); font-size: 17px; }

.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-bottom: 72px; }

.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.game:hover, .game:focus-visible { border-color: var(--border-strong); background: var(--surface-hover); }
.game:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.game img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 470; object-fit: cover; background: #000; }

.game-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game h2 { margin: 0; font-size: 20px; font-weight: 600; }
.badge {
  flex-shrink: 0;
  border: 1px solid rgba(78, 201, 176, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.game-body p:not(.tagline) { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.play { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 500; font-size: 15px; }

.foot { margin-top: auto; border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; font-size: 14px; }
.foot-row a { color: var(--muted); }
.foot-row a:hover { color: var(--foreground); }

/* Страница игры: устроена как страница проекта на sedcore.com. */
.page { max-width: 800px; padding-top: 40px; padding-bottom: 72px; }
.crumb { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.crumb:hover { color: var(--foreground); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 28px; }
.page-head .lead { margin-top: 8px; }
.cover { display: block; width: 100%; height: auto; margin-top: 32px; border-radius: 16px; border: 1px solid var(--border); background: #000; }
.text { margin-top: 32px; }
.text p { margin: 0 0 16px; color: var(--muted); }
.page h2 { margin: 56px 0 0; font-size: 20px; font-weight: 600; }
.where { margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.page .where h2 { margin-top: 0; font-size: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-block; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--foreground); transition: background 0.15s, opacity 0.15s; }
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--background); }
.btn-primary:hover { background: var(--accent); opacity: 0.9; }
.btn-off { color: var(--muted); border-style: dashed; cursor: default; }
.btn-off:hover { background: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.shots { display: grid; gap: 16px; margin-top: 20px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #000; }
.shots-wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shots-tall { grid-template-columns: repeat(2, minmax(0, 220px)); }
.features { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 20px; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 500; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 480px) {
  .hero { padding: 40px 0 28px; }
  .lead { font-size: 16px; }
  .games { grid-template-columns: 1fr; }
  .page { padding-top: 28px; }
  .where { padding: 20px; }
}
