/* Emberkite Games — shared styles for every page */

@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/baloo2-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mukta-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/mukta-600-latin.woff2) format('woff2'); }

:root {
  --mist: #EEF1F4;        /* page background */
  --surface: #FFFFFF;     /* raised panels */
  --ink: #1E2433;         /* text, dusk */
  --ink-soft: #4A5467;    /* secondary text */
  --line: #D5DBE3;        /* borders */
  --ember: #E3B448;       /* buttons, highlights */
  --rose: #E98BA0;        /* small second accent */
  --focus: #2F6FD6;
  --display: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --body: 'Mukta', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1080px;
  --prose: 68ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #141922;
    --surface: #1B2130;
    --ink: #E7EBF1;
    --ink-soft: #A7B0BF;
    --line: #2C3445;
    --focus: #8AB4FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* header */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 1.4rem; font-weight: 600; }
.nav a { text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ember); }
.site-header.on-dusk { color: #EEF1F4; }

/* home hero: the evening sky with the kite */
.hero {
  position: relative;
  overflow: hidden;
  color: #EEF1F4;
  background: linear-gradient(180deg, #1E2433 0%, #2B3657 42%, #6E5E78 74%, #D6A07A 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 3rem 0 6.5rem; max-width: 34rem; }
.hero h1 { color: #F6F2EC; }
.hero p { font-size: 1.25rem; color: #D9DEE8; max-width: 30rem; }
.hero-kite { position: absolute; right: max(2vw, 1rem); top: 1.5rem; width: min(46vw, 460px); height: auto; z-index: 0; pointer-events: none; }
.kite-body { transform-origin: 300px 120px; animation: sway 7s ease-in-out infinite; }
.kite-tail { animation: tail 7s ease-in-out infinite; transform-origin: 300px 200px; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(6px); } }
@keyframes tail { 0%, 100% { transform: skewX(-4deg); } 50% { transform: skewX(5deg); } }
@media (prefers-reduced-motion: reduce) { .kite-body, .kite-tail { animation: none; } }
@media (max-width: 720px) {
  .hero-kite { width: 62vw; top: auto; bottom: -1rem; right: -6vw; opacity: .55; }
  .hero-inner { padding-bottom: 9rem; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  padding: .7rem 1.25rem; border-radius: 999px; text-decoration: none;
  background: var(--ember); color: #1E2433; border: 2px solid var(--ember);
}
.btn:hover { background: #EDC46A; border-color: #EDC46A; }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn-quiet:hover { background: rgba(127,127,127,.12); border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* sections */
.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.muted { color: var(--ink-soft); }

/* game feature row on the home page */
.game {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.25rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem;
}
.game-art { border-radius: 14px; overflow: hidden; background: #1E2433; }
.game-art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.game-text { padding: .5rem 1rem .5rem 0; }
.game-title { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.game-title img { width: 64px; height: 64px; border-radius: 16px; }
.game-title h3 { margin: 0; font-size: 1.6rem; }
.status { display: inline-block; font-size: .95rem; font-weight: 600; padding: .15rem .7rem; border-radius: 999px; background: rgba(233,139,160,.2); color: inherit; margin-bottom: .75rem; }
@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; }
  .game-text { padding: 0 .25rem .5rem; }
}
.next-note { margin-top: 1.5rem; }

/* about strip */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

/* game page */
.game-hero { padding: 1rem 0 2.5rem; }
.game-hero .game-title img { width: 84px; height: 84px; border-radius: 20px; }
.game-hero .game-title h1 { margin: 0; }
.lead { font-size: 1.3rem; max-width: 40rem; }
.banner { border-radius: 22px; overflow: hidden; margin-top: 1.5rem; background: #1E2433; }
.banner img { width: 100%; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 560px); gap: 1rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; }
.shots img { border-radius: 14px; scroll-snap-align: start; aspect-ratio: 1280 / 672; object-fit: cover; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ember); border-radius: 18px; padding: 1.5rem 1.6rem; }
.callout h2 { font-size: 1.6rem; }

/* long documents: privacy policy, support */
.doc { max-width: var(--prose); padding: 1rem 0 4rem; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.doc h3 { margin-top: 1.4rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: .35em; }
.doc .updated { color: var(--ink-soft); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.summary p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1.1rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5rem; }
details p:last-child { margin-bottom: 0; }
code { font-size: .95em; background: rgba(127,127,127,.14); padding: .05em .35em; border-radius: 5px; overflow-wrap: anywhere; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* the journey: eight stops on a dashed road */
.journey-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
@media (max-width: 820px) { .journey-wrap { grid-template-columns: 1fr; gap: 1rem; } }
.journey { list-style: none; counter-reset: stop; margin: 0; padding: 0 0 0 2.6rem; position: relative; }
.journey::before { content: ""; position: absolute; left: .95rem; top: .9rem; bottom: .9rem; border-left: 3px dashed var(--line); }
.journey li { counter-increment: stop; position: relative; padding: .15rem 0 1.15rem; }
.journey li::before {
  content: counter(stop); position: absolute; left: -2.6rem; top: .1rem;
  width: 1.95rem; height: 1.95rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; line-height: 1;
  background: var(--surface); border: 2px solid var(--ember); color: var(--ink);
}
.journey li.journey-end::before { background: var(--ember); color: #1E2433; }
.journey b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.journey span { color: var(--ink-soft); }
.facts div.stack { flex-direction: column; gap: .2rem; }
.facts div.stack dd { text-align: left; }

/* Google Play badge (Google's official artwork, used unchanged; its transparent border is part of the image) */
.play-badge { display: inline-block; line-height: 0; margin: 0 0 .5rem -11px; }
.play-badge img { height: 72px; width: auto; }
.btn-row .play-badge { margin: -11px 0 -11px -11px; }
.btn-row .play-badge img { height: 68px; }
.site-footer .tm { flex-basis: 100%; font-size: .8rem; opacity: .75; }
