:root {
  color-scheme: light dark;
  --page: #eaf2ff;
  --page-deep: #dce9ff;
  --card: #ffffff;
  --text: #0a1b35;
  --muted: #52647e;
  --line: #c9d8ee;
  --blue: #115cc4;
  --blue-deep: #082f73;
  --gold: #f4b62d;
  --shadow: 0 18px 50px rgb(30 68 119 / 14%);
}

* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 7%, rgb(76 147 255 / 22%), transparent 34rem),
    linear-gradient(160deg, var(--page), var(--page-deep));
}
a { color: inherit; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.hero { position: relative; overflow: hidden; padding: clamp(28px, 7vw, 64px); border-radius: 28px; color: #fff; background: linear-gradient(145deg, #0c3379, #0b61cc); box-shadow: var(--shadow); }
.brand { display: inline-block; margin-bottom: clamp(38px, 9vw, 72px); color: rgb(255 255 255 / 78%); font-size: .92rem; font-weight: 750; text-decoration: none; }
.hero-mark { position: absolute; top: 30px; right: 34px; display: flex; align-items: end; gap: 7px; height: 44px; }
.hero-mark span { display: block; width: 13px; border-radius: 5px; background: var(--gold); box-shadow: 0 4px 16px rgb(244 182 45 / 35%); }
.hero-mark span:nth-child(1) { height: 24px; }
.hero-mark span:nth-child(2) { height: 42px; }
.hero-mark span:nth-child(3) { height: 32px; }
.eyebrow, .game-label { margin: 0 0 7px; font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: #a9ccff; }
h1 { max-width: 700px; margin: 0; font-size: clamp(2.3rem, 8vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.intro { max-width: 610px; margin: 18px 0 0; color: rgb(255 255 255 / 82%); font-size: clamp(1rem, 3vw, 1.22rem); }
.app-grid { display: grid; gap: 18px; margin-top: 28px; }
.app-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.app-card:hover { transform: translateY(-2px); border-color: #84aee8; }
.app-card:focus-visible { outline: 4px solid rgb(17 92 196 / 35%); outline-offset: 3px; }
.app-card img { display: block; width: 112px; height: 112px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 24px rgb(12 38 77 / 20%); }
.app-copy { min-width: 0; }
.game-label { color: var(--blue); }
h2 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.65rem); line-height: 1.18; }
.app-copy > p:not(.game-label) { margin: 8px 0 13px; color: var(--muted); }
.store-link { color: var(--blue); font-weight: 760; }
.store-link span { font-size: 1.35em; line-height: 0; }
.store-note { margin: 24px auto 0; color: var(--muted); font-size: .9rem; text-align: center; }
footer { max-width: 760px; margin: 42px auto 0; color: var(--muted); font-size: .82rem; text-align: center; }
footer a { color: var(--blue); font-weight: 700; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #06152f;
    --page-deep: #071f46;
    --card: #10294e;
    --text: #f4f8ff;
    --muted: #afc1dc;
    --line: #294e7f;
    --blue: #79b3ff;
    --shadow: 0 18px 50px rgb(0 0 0 / 25%);
  }
  body { background: radial-gradient(circle at 12% 7%, rgb(37 111 218 / 26%), transparent 34rem), linear-gradient(160deg, var(--page), var(--page-deep)); }
  .hero { background: linear-gradient(145deg, #0b347e, #094fa9); }
}

@media (min-width: 820px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card { grid-template-columns: 1fr; align-content: start; }
  .app-card img { width: 96px; height: 96px; border-radius: 21px; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 20px, 980px); padding-top: 10px; }
  .hero { padding: 26px 22px 30px; border-radius: 22px; }
  .brand { margin-bottom: 42px; }
  .hero-mark { top: 24px; right: 23px; }
  .app-grid { margin-top: 14px; gap: 12px; }
  .app-card { grid-template-columns: 78px minmax(0, 1fr); gap: 15px; padding: 15px; border-radius: 19px; }
  .app-card img { width: 78px; height: 78px; border-radius: 17px; }
  .app-copy > p:not(.game-label) { font-size: .9rem; }
}

@media (max-width: 360px) {
  .app-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .app-card img { width: 64px; height: 64px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
}
