@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra_petch_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra_petch_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* The developer's colors, taken from the Sloma Software logo. The game page swaps them for the game's own. */
:root {
  --bg: #0a1020; --panel: #121a2e; --line: #2a3553; --text: #eceef6; --dim: #aab1c8;
  --accent: #f9a03f; --accent2: #4a9be0; --status: #f9a03f;
  --stripe: linear-gradient(90deg, #f9962a 0 20%, #f1592a 20% 40%, #e3194f 40% 60%, #b32d8f 60% 80%, #2b78c2 80%);
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.theme-game {
  --bg: #0b0a1f; --panel: #15122f; --line: #2f2c5c; --text: #e8e6f5; --dim: #a9a5c8;
  --accent: #2de2e6; --accent2: #ff4d94; --status: #ffab40;
  --stripe: linear-gradient(90deg, #2de2e6, #ff4d94);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
.theme-game::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(900px 600px at 85% -10%, #3b0f58 0, transparent 70%),
              radial-gradient(800px 600px at 0% 110%, #1b1148 0, transparent 70%);
}
body {
  margin: 0 auto; max-width: 1040px; padding: 0 20px; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 17px/1.65 var(--body);
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; color: var(--accent); }
section { margin: 56px 0; }
.dim { color: var(--dim); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 20px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 2; }

/* The background from Google Play runs across the top of the page, behind the header and the opening text. */
.top { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--display); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--stripe); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.menu a { color: var(--dim); text-decoration: none; padding: 4px 0; }
.menu a:hover, .menu a[aria-current] { color: var(--accent); }
.switch { display: inline-flex; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.crumbs { margin-top: 24px; color: var(--dim); font-family: var(--display); }
.crumbs a { color: var(--dim); }

.lead { font-size: 1.2rem; color: var(--text); max-width: 38em; margin-top: 0; }
.hero-plain { margin: 56px 0 40px; }
.hero-plain h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }

.hero-home, .hero-studio { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; margin: 28px 0 40px; padding: 72px 40px; background: var(--panel); }
.hero-home::before, .hero-studio::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #121a2e 65%, rgba(18, 26, 46, .15) 100%),
    repeating-linear-gradient(112deg, #f9962a 0 7px, transparent 7px 15px, #f1592a 15px 22px, transparent 22px 30px, #e3194f 30px 37px, transparent 37px 45px, #b32d8f 45px 52px, transparent 52px 60px, #2b78c2 60px 67px, transparent 67px 75px);
}
.has-art::before {
  background: linear-gradient(90deg, rgba(10, 16, 32, .94) 0%, rgba(10, 16, 32, .8) 50%, rgba(10, 16, 32, .25) 100%), url("/img/studio-background.webp") center / cover;
}
.hero-home { padding: 56px 40px; }
.hero-home h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .6em; }
.hero-home p { max-width: 34em; margin: 0 0 1em; }
.hero-home p:last-child { margin-bottom: 0; }
.hero-home .lead, .hero-studio .lead { margin-bottom: 0; max-width: 30em; }
.hero-studio { display: flex; align-items: center; gap: 32px; padding: 48px 40px; }
.hero-studio h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.studio-logo { flex: none; width: 144px; height: 144px; border-radius: 24px; }

.neon { color: var(--accent); letter-spacing: .1em; text-shadow: 0 0 22px rgba(45, 226, 230, .55); }
.hero-game { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; margin-top: 24px; }
.game-title { font-size: clamp(2.6rem, 8vw, 4.4rem); text-transform: uppercase; letter-spacing: .14em; }
.game-title small { display: block; margin-top: .4em; font-size: .3em; letter-spacing: .3em; color: var(--accent2); text-shadow: 0 0 14px rgba(255, 77, 148, .55); }
.globe { justify-self: center; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 90%, transparent 100%); mask-image: radial-gradient(closest-side, #000 90%, transparent 100%); }
.pill { display: inline-block; padding: 2px 12px; border: 1px solid var(--status); border-radius: 99px; color: var(--status); font: 600 .85rem var(--display); }
.pill.big { font-size: 1rem; padding: 6px 18px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 0; color: var(--dim); }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; color: var(--text); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin-top: 0; }
.card h2, .card.link h3 { color: var(--accent); }
.card.link { text-decoration: none; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card.plain { border-color: var(--accent); }
.with-logo, .game-card { display: flex; gap: 20px; align-items: center; }
.with-logo img { flex: none; border-radius: 14px; }
.with-logo h2 { margin-bottom: .2em; }
.with-logo p { margin: 0; }
.game-card img { border-radius: 18px; flex: none; }
.game-card p { margin: 0 0 10px; }
.game-card h3 { margin-bottom: .3em; }

.shots { display: grid; gap: 14px; margin-top: 14px; }
.shots.portrait { grid-template-columns: repeat(4, 1fr); }
.shots.landscape { grid-template-columns: repeat(2, 1fr); }
.shots img { border-radius: 10px; border: 1px solid var(--line); }
.shots a:hover img { border-color: var(--accent); }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { padding-top: 0; }
.posts time, .post time { display: block; color: var(--dim); font: .9rem var(--display); }
.posts a { font: 600 1.25rem var(--display); }
.posts p { margin: 4px 0 0; color: var(--dim); }
.post { max-width: 42em; margin: 32px 0 56px; }
.post h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: .2em 0 .7em; }
.post h2 { margin-top: 1.6em; }

.bottom { margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }
.bottom p { margin: 4px 0; }
.bottom a { color: var(--dim); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { margin: 40px 0; }
  .cards.two, .hero-game, .shots.landscape { grid-template-columns: 1fr; }
  .shots.portrait { grid-template-columns: repeat(2, 1fr); }
  .globe { grid-row: 1; width: min(72vw, 300px); }
  .hero-home { padding: 48px 24px; }
  .hero-home::before, .hero-studio::before { background: linear-gradient(rgba(18, 26, 46, .9), rgba(18, 26, 46, .9)), repeating-linear-gradient(112deg, #f9962a 0 7px, transparent 7px 15px, #e3194f 15px 22px, transparent 22px 30px, #2b78c2 30px 37px, transparent 37px 45px); }
  .has-art::before { background: linear-gradient(rgba(10, 16, 32, .86), rgba(10, 16, 32, .86)), url("/img/studio-background.webp") center / cover; }
  .hero-studio { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; }
  .studio-logo { width: 96px; height: 96px; border-radius: 18px; }
  .game-card { align-items: flex-start; }
  .game-card img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.link { transition: none; }
  .card.link:hover { transform: none; }
}
