/* OsyaPlay — site styles. Light theme only, no external fonts. */

:root {
  --cream: #F9F2E0;
  --cream-deep: #F1E6CB;
  --card: #FFFBF1;
  --red: #E73F31;
  --red-dark: #C42F23;
  --navy: #14213D;
  --navy-soft: #4A5672;
  --outline: #020E4A;
  --line: #E6D8B8;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(2, 14, 74, .06), 0 12px 30px -14px rgba(2, 14, 74, .25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: var(--cream);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; font-size: .98rem; }
.nav a { color: var(--navy); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); color: var(--navy); }
.nav a[aria-current="page"] { border-color: var(--red); }

/* Type */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--navy-soft); }
.kicker {
  display: inline-block;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: .6em;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--red); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--red-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--red-dark); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__body { padding: 26px 24px 28px; }

main { padding-bottom: 64px; }
section { margin-top: 56px; }

/* Home */

.hero { text-align: center; padding: 28px 0 8px; }
.hero__logo { width: min(100%, 680px); margin: 0 auto; }
.hero .lead { margin-top: 10px; }

.game-card { display: grid; }
.game-card__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-card .button { margin-top: 6px; }
.soon {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-weight: 600; font-size: .98rem;
}
.soon::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(231, 63, 49, .18);
}

@media (min-width: 820px) {
  .game-card { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .game-card__shot { align-self: stretch; display: flex; align-items: center; padding: 22px; background: var(--cream-deep); }
  .game-card__shot img { border-radius: 14px; box-shadow: 0 8px 22px -12px rgba(2, 14, 74, .45); }
  .card__body { padding: 34px 36px; }
}

/* Game page */

.game-hero { padding: 24px 0 0; }
.game-hero .card { margin-top: 28px; }
.game-hero .card img { width: 100%; }

.story {
  font-size: 1.15rem;
  border-left: 5px solid var(--red);
  padding: 4px 0 4px 20px;
  max-width: 680px;
}

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 16px 48px;
  position: relative;
  font-weight: 600;
}
.features li::before {
  content: ""; position: absolute; left: 18px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(231, 63, 49, .16);
}

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
.gallery li { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-deep); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }

.platforms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.badge {
  border: 2px dashed var(--navy-soft);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--card);
}
.badge strong { display: block; font-size: 1.05rem; }
.badge span { color: var(--navy-soft); font-size: .95rem; }

/* Legal pages */

.legal { padding-top: 16px; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.legal .card__body { padding: 28px 24px; }
@media (min-width: 640px) { .legal .card__body { padding: 40px 44px; } }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin: .2em 0; }
.legal li > ul { margin: .3em 0 .4em; }
.legal p strong:first-child { color: var(--navy); }
.legal a { overflow-wrap: anywhere; }
.meta { color: var(--navy-soft); }

.lang-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--cream-deep); border-radius: 999px;
  margin-bottom: 20px; font-weight: 700; font-size: .92rem;
}
.lang-switch a, .lang-switch span {
  padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--navy);
}
.lang-switch span[aria-current] { background: var(--navy); color: var(--cream); }
.lang-switch a:hover { background: var(--card); }

.facts { margin: 0; display: grid; gap: 0; }
.facts div {
  display: grid; gap: 2px 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts div { grid-template-columns: 220px 1fr; } }

/* 404 */

.notfound { text-align: center; padding: 40px 0; }
.notfound img { width: 120px; margin: 0 auto 20px; border-radius: 24px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  font-size: .95rem;
  color: var(--navy-soft);
}
.site-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 0;
}
.site-footer li:not(:last-child)::after { content: "·"; margin: 0 10px; }
.site-footer a { color: var(--navy); }
