:root {
  --navy: #17313a;
  --navy-deep: #101f25;
  --blue: #087fa8;
  --blue-bright: #48c7f3;
  --blue-light: #dff6ff;
  --orange: #d83b47;
  --orange-dark: #a92330;
  --cream: #fff8df;
  --yellow: #f7bd32;
  --mint: #bdebd8;
  --green: #36a77e;
  --ink: #17282e;
  --muted: #526a70;
  --line: #d9e5e6;
  --white: #fff;
  --shadow-sm: 0 10px 30px rgba(23, 49, 58, .09);
  --shadow-lg: 0 24px 70px rgba(23, 49, 58, .17);
  --radius-sm: 14px;
  --radius-md: 22px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 14px; border-radius: 10px; color: var(--white); background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(23, 49, 58, .09); background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 78px; height: 68px; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #455f66; text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav-links a:hover { color: var(--blue); }

.hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 112px) 0 80px; background: linear-gradient(135deg, var(--cream), #effaff 65%, #d9f4ff); }
.hero::before, .hero::after { position: absolute; border-radius: 50%; content: ""; }
.hero::before { width: 300px; height: 300px; top: -170px; left: 40%; border: 70px solid rgba(247, 189, 50, .28); }
.hero::after { width: 190px; height: 190px; right: -70px; bottom: -80px; background: rgba(216, 59, 71, .13); }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--blue); font-size: .79rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 3px; border-radius: 9px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { margin-bottom: 12px; font-size: 1.28rem; }
.lead { max-width: 720px; margin: 0; color: #425f67; font-size: clamp(1.08rem, 2vw, 1.28rem); }

.content { padding: 82px 0 100px; background: #f7fbfc; }
.content > .container { max-width: 920px; }
.card { margin-bottom: 22px; padding: clamp(26px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; color: var(--white); background: var(--orange); box-shadow: 0 8px 0 var(--orange-dark); cursor: pointer; font-weight: 800; line-height: 1.1; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { color: var(--white); background: #c92f3b; transform: translateY(-2px); box-shadow: 0 10px 0 var(--orange-dark); }
.button:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--orange-dark); }
.button.secondary { border-color: rgba(23, 49, 58, .2); color: var(--navy); background: var(--white); box-shadow: none; }
.button.secondary:hover { border-color: var(--blue); color: var(--navy); background: var(--blue-light); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 25px; }
.meta { color: var(--muted); font-size: .92rem; }
ul { padding-left: 1.3rem; }
.notice { padding: 18px 20px; border-left: 5px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--blue-light); }
.game-preview { max-width: 920px; margin: 0 auto 36px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-lg); }
.game-preview.portrait { max-width: 420px; }
.game-preview img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.game-preview figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; }

.site-footer { padding: 70px 0 28px; color: #d6e4e7; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 50px; padding-bottom: 50px; }
.site-footer .brand { margin-bottom: 20px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 22px; background: var(--white); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.site-footer .brand-logo { width: 142px; height: auto; }
.footer-about p { max-width: 400px; margin-bottom: 0; font-size: .9rem; }
.footer-title { margin-bottom: 17px; color: var(--white); font-size: .85rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { width: fit-content; color: #d6e4e7; font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, .13); color: #9fb8bd; font-size: .78rem; }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav { min-height: 68px; }
  .brand-logo { width: 68px; height: 60px; }
  .hero { padding-top: 58px; }
  .content { padding: 64px 0 78px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .actions .button { width: 100%; }
  .card { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
