/* Bits&Bolts: Unscrew — site styles. One sheet, no external fonts or scripts (nothing loads from third parties).
   Colours follow the game: sky blues, the logo's gold, the ribbon's pink, the UI's ink blue. */

:root {
  --sky-top: #1f7fe0;
  --sky-mid: #4aa8f2;
  --sky-low: #a9dcff;
  --cloud: #ffffff;
  --bg: #f2f7ff;
  --card: #ffffff;
  --text: #17223f;
  --muted: #4f5b78;
  --line: #d8e3f3;
  --ink: #1e3b7a;
  --link: #1957c2;
  --gold: #ffb423;
  --gold-deep: #e88a00;
  --pink: #e4589a;
  --purple: #8a6cf0;
  --shadow: 0 10px 30px rgba(22, 52, 110, 0.12);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #0b2a57;
    --sky-mid: #164a8c;
    --sky-low: #2b6db5;
    --cloud: #dfeaff;
    --bg: #0c1630;
    --card: #14223f;
    --text: #e8eef9;
    --muted: #a9b5cf;
    --line: #26385d;
    --ink: #c9d8ff;
    --link: #8cc0ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.35em;
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  font-weight: 800;
  margin: 2.2em 0 0.6em;
  scroll-margin-top: 88px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 1.6em 0 0.4em;
  scroll-margin-top: 88px;
}

p,
ul,
ol,
address {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

address {
  font-style: normal;
}

b,
strong {
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ui {
  font-weight: 650;
  white-space: nowrap;
}

/* ---- Header ------------------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 480px) {
  .site-nav .nav-wide {
    display: none;
  }
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(22, 52, 110, 0.25);
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--sky-mid) 14%, transparent);
}

/* ---- Home: hero -------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 108%, var(--cloud) 0 18%, transparent 19%),
    radial-gradient(60% 40% at 12% 100%, var(--cloud) 0 30%, transparent 31%),
    radial-gradient(60% 40% at 90% 100%, var(--cloud) 0 30%, transparent 31%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  color: #fff;
  padding: 40px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-logo {
  width: min(520px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px rgba(10, 40, 90, 0.3));
}

.hero-tagline {
  margin: 18px 0 6px;
  font-family: var(--font);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 10px rgba(10, 40, 90, 0.35);
}

.hero-sub {
  margin: 0 auto 22px;
  max-width: 34em;
  text-align: center;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(10, 40, 90, 0.35);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-badges li + li {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 10px 18px 11px;
  border-radius: 16px;
  background: #101a33;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(10, 30, 70, 0.3);
}

.badge small {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.badge span {
  font-family: var(--font);
  font-weight: 750;
  font-size: 1.12rem;
}

a.badge:hover {
  background: #1b2a50;
}

.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 10px;
  background: #0f1830;
  box-shadow: 0 30px 60px rgba(10, 30, 70, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(3deg);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

@media (min-width: 860px) {
  .hero {
    padding: 56px 0 120px;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }

  .hero-logo {
    margin: 0;
  }

  .hero-tagline,
  .hero-sub {
    text-align: left;
    margin-left: 0;
  }

  .store-badges {
    justify-content: flex-start;
  }
}

/* ---- Home: sections ------------------------------------------------------------------------------ */

.section {
  padding: 8px 0 24px;
}

.section-intro {
  max-width: 40em;
  color: var(--muted);
  margin-top: -0.2em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-grid li + li {
  margin-top: 0;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  height: 100%;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin-top: 12px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-icon--gold {
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  color: var(--gold-deep);
}

.feature-icon--pink {
  background: color-mix(in srgb, var(--pink) 20%, transparent);
  color: var(--pink);
}

.feature-icon--purple {
  background: color-mix(in srgb, var(--purple) 20%, transparent);
  color: var(--purple);
}

.world-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: world;
}

.world-list li {
  margin: 0;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  counter-increment: world;
}

.world-list li::before {
  content: counter(world);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #3b2200;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.9rem;
}

.studio-card {
  display: grid;
  gap: 8px 24px;
  padding: 24px;
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.studio-card p {
  margin: 0;
}

.studio-card .muted {
  color: var(--muted);
}

/* ---- Text pages (privacy, terms, support, legal notice) ----------------------------------------- */

.page-top {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 62%, var(--bg) 100%);
  padding: 40px 0 72px;
}

.page-top h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(10, 40, 90, 0.3);
  margin: 0;
}

.page-top .page-meta {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(10, 40, 90, 0.35);
  margin: 6px 0 0;
}

.paper {
  max-width: 820px;
  margin: -48px auto 40px;
  padding: 28px 22px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .paper {
    padding: 40px 48px 24px;
  }
}

.paper > :first-child {
  margin-top: 0;
}

.paper > h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.paper h2 {
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.page-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.box,
.toc {
  margin: 1.4em 0;
  padding: 18px 20px 6px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--sky-mid) 8%, var(--card));
  border: 1px solid var(--line);
}

.paper .box h2,
.paper .toc h2 {
  border-top: 0;
  padding-top: 0;
}

.box-title,
.toc-title {
  margin: 0 0 0.5em;
  padding: 0;
  border: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.toc ol {
  columns: 2 220px;
  column-gap: 32px;
  margin: 0 0 12px;
}

.toc li {
  break-inside: avoid;
}

.toc li + li {
  margin-top: 0.25em;
}

.not-found {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #3b2200;
  font-family: var(--font);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--gold-deep);
}

.button:hover {
  filter: brightness(1.05);
}

/* ---- Footer ------------------------------------------------------------------------------------ */

.site-footer {
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 0;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .ui {
    white-space: normal;
  }
}

@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-top {
    background: none;
    padding: 0;
  }

  .page-top h1,
  .page-top .page-meta {
    color: #000;
    text-shadow: none;
  }

  .paper {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-width: none;
  }

  a {
    color: #000;
  }
}
