:root {
  --sky: #2a76cf;
  --sky-hi: #4a93e0;
  --sky-pale: #d9ecff;
  --ink: #12304f;
  --ink-soft: #4d6884;
  --balloon: #ff6a3d;
  --balloon-dark: #e2501f;
  --cloud: #ffffff;
  --line: rgba(18, 48, 79, 0.14);
  --f-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: max(clamp(16px, 4vw, 48px), calc((100% - 1240px) / 2));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--f-ui); color: var(--ink); background: var(--sky-pale); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--balloon); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* the top of the page is the game's daytime sky */
.top, .hero { color: #fff; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); background: var(--sky); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 24px/1 var(--f-display); text-decoration: none; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; display: block; border-radius: 7px; box-shadow: 0 2px 8px rgba(8, 40, 90, 0.25); }
.top nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.88; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

.hero {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-hi) 55%, #9fcbf3 88%, var(--sky-pale) 100%);
}
.hero h1 { font: 800 clamp(46px, 6.4vw, 88px)/0.94 var(--f-display); letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance; text-shadow: 0 2px 0 rgba(10, 40, 80, 0.18); }
.lede { font-size: clamp(18px, 1.5vw, 20px); max-width: 33ch; margin: 0 0 28px; color: rgba(255, 255, 255, 0.94); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .ctas .btn.store { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 800 17px/1 var(--f-ui); text-decoration: none; white-space: nowrap; }
.btn.play { background: var(--balloon); color: #fff; box-shadow: 0 6px 0 var(--balloon-dark), 0 10px 24px rgba(255, 106, 61, 0.35); }
.btn.play:hover { background: #ff7b52; }
.btn.play:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--balloon-dark); }
.btn.store { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); font-size: 15px; }
.btn.store.soon { opacity: 0.75; cursor: default; }
.btn.store small { font-weight: 600; margin-left: 6px; opacity: 0.85; }
.btn.buy { background: var(--ink); color: #fff; }
.btn.buy.soon { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); cursor: default; }
.badge img { height: 48px; width: auto; }
.fine { font-size: 14px; margin: 18px 0 0; color: rgba(255, 255, 255, 0.86); }

/* the game itself, in a glass window like the game's own panels */
.game { margin: 0; }
.poster { display: none; }
.frame { position: relative; aspect-ratio: 16 / 12.5; border-radius: 22px; padding: 8px; background: rgba(255, 255, 255, 0.35); box-shadow: 0 24px 60px rgba(8, 40, 90, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.frame iframe { width: 100%; height: 100%; border: 0; border-radius: 15px; display: block; background: var(--sky); }
.game figcaption { margin-top: 10px; text-align: right; font-size: 14px; }

main > section:not(.hero) { padding: clamp(56px, 8vw, 104px) var(--gutter); }
h2 { font: 800 clamp(32px, 4vw, 48px)/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 32px; }
h3 { font: 800 22px/1.15 var(--f-display); margin: 4px 0 6px; }

.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.moves li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.moves svg { width: 52px; height: 52px; }
.moves p { margin: 0; color: var(--ink-soft); }
.aside { margin: 40px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: 15px; }

/* PC: the dusk sky the full game uses for its leverage mode */
.pc { background: linear-gradient(180deg, var(--sky-pale), #c8c6f2 30%, #6e5fd0 100%); }
.pc-copy p { max-width: 60ch; }
.pc-copy p + p { color: var(--ink); }
.pc .ctas { margin-top: 28px; }
.pc .btn.buy:not(.soon) { box-shadow: 0 6px 0 #061829; }
.pc .btn.buy.soon { color: var(--ink); border-color: rgba(18, 48, 79, 0.35); }

.faq > * { max-width: 820px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 800; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.foot { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 36px var(--gutter) 48px; font-size: 14px; }
.foot p { margin: 0 0 8px; max-width: 1120px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* privacy and other text pages */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px); }
.doc h1 { font: 800 clamp(38px, 5vw, 56px)/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc .meta { color: var(--ink-soft); margin: 0 0 32px; }
.doc li { margin-bottom: 6px; }
.top.slim + .doc { padding-top: 40px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .game { display: none; }
  .poster { display: block; position: relative; border-radius: 22px; overflow: hidden; max-width: 420px; box-shadow: 0 20px 48px rgba(8, 40, 90, 0.35); }
  .poster img { aspect-ratio: 13 / 16; object-fit: cover; object-position: top; width: 100%; }
  .poster .btn { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
  .moves { grid-template-columns: 1fr; }
  .top nav a:not(:first-child) { display: none; }
}

/* Market Pop for PC: the same family, calmer. Deep night ink, one orange action, ruled lists instead of cards. */
body.pro { --pro-bg: #0f2238; --pro-ink: #edf2f8; --pro-soft: #a7b8cb; --pro-rule: rgba(237, 242, 248, 0.14); background: var(--pro-bg); color: var(--pro-ink); }
.pro a { color: var(--pro-ink); }
.pro-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); border-bottom: 1px solid var(--pro-rule); }
.pro-top .brand { color: var(--pro-ink); font-size: 21px; }
.pro-top nav a { color: var(--pro-soft); font-weight: 600; font-size: 15px; }
.pro-main > section { padding: clamp(40px, 6vw, 72px) var(--gutter); }
.pro-main > section + section { border-top: 1px solid var(--pro-rule); }
.pro-main > section > * { max-width: 860px; }
.pro-hero { padding-top: clamp(48px, 8vw, 104px) !important; }
.pro-hero h1 { font: 800 clamp(40px, 5.6vw, 72px)/1 var(--f-ui); letter-spacing: -0.03em; margin: 0 0 20px; }
.pro-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--pro-soft); max-width: 46ch !important; margin: 0 0 32px; }
.pro-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pro .btn.buy { background: var(--balloon); color: #fff; box-shadow: none; }
.pro .btn.buy:hover { background: #ff7b52; }
.pro .btn.buy.soon { background: transparent; color: var(--pro-ink); border: 1.5px solid var(--pro-rule); }
.pro-req { color: var(--pro-soft); font-size: 15px; }
.pro h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.15 var(--f-ui); letter-spacing: -0.01em; margin: 0 0 24px; }
.pro-risk { background: #13294a; }
.pro-risk h2 { margin-bottom: 12px; }
.pro-risk p { margin: 0; max-width: 68ch; font-size: 17px; line-height: 1.65; border-left: 3px solid var(--balloon); padding-left: 18px; }
.pro-list { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 0; }
.pro-list dt, .pro-list dd { padding: 16px 0; border-top: 1px solid var(--pro-rule); margin: 0; }
.pro-list dt { font-weight: 800; padding-right: 24px; }
.pro-list dd { color: var(--pro-soft); max-width: 60ch; }
.pro-steps { margin: 0; padding-left: 1.4em; max-width: 64ch; }
.pro-steps li { padding: 8px 0; color: var(--pro-soft); }
.pro-steps li::marker { color: var(--balloon); font-weight: 800; }
.pro-steps b { color: var(--pro-ink); }
.pro-faq details { border-bottom: 1px solid var(--pro-rule); }
.pro-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 800; font-size: 18px; position: relative; }
.pro-faq summary::-webkit-details-marker { display: none; }
.pro-faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--pro-soft); border-bottom: 2px solid var(--pro-soft); transform: rotate(45deg); }
.pro-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pro-faq details p { margin: 0 0 18px; color: var(--pro-soft); max-width: 62ch; }
.pro-end p { color: var(--pro-soft); margin: 18px 0 0; }
.pro .foot { background: #0a1829; }
@media (max-width: 640px) {
  .pro-list { grid-template-columns: 1fr; }
  .pro-list dd { border-top: 0; padding-top: 0; }
}

.pro-top .brand .mark { height: 28px; border-radius: 7px; }
.pc-tile { display: block; width: 96px; height: 96px; border-radius: 22px; margin: 0 0 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
