/* yourworldgame.ca: one stylesheet for every page. No scripts, no outside requests. */
@font-face {
  font-family: 'Bungee';
  src: url('bungee-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('atkinson-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('atkinson-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #16172b;
  --navy: #1e2039;
  --panel: #262a49;
  --panel-2: #2e3356;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f6f2e9;
  --muted: #c3c5dd;
  --orange: #ffb53d;
  --orange-deep: #f08a24;
  --on-orange: #2b1a02;
  --grass: #7fcf6a;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

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

a {
  color: var(--orange);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd083;
}

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

h1,
h2,
h3 {
  font-family: 'Bungee', 'Atkinson', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  background: var(--orange);
  color: var(--on-orange);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

/* Top bar */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding: 16px 0;
}

.top .wrap,
.top-solid .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-solid {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Bungee', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.nav a:hover {
  color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 23, 43, 0.55) 0%, rgba(22, 23, 43, 0) 22%),
    linear-gradient(90deg, rgba(22, 23, 43, 0.82) 0%, rgba(22, 23, 43, 0.55) 38%, rgba(22, 23, 43, 0) 62%),
    linear-gradient(0deg, var(--night) 0%, rgba(22, 23, 43, 0.86) 22%, rgba(22, 23, 43, 0) 55%);
}

.hero-copy {
  padding: 120px 0 56px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(14, 15, 30, 0.78);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: #ece8f6;
  max-width: 34em;
}

.hero h1 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #0d0e1a;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.store small {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.store strong {
  font-size: 1.2rem;
}

a.store:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.store.soon {
  opacity: 0.92;
}

.fineprint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Promises strip */
.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.promises li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.promises li::before {
  content: '';
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.55em;
  border-radius: 2px;
  background: var(--grass);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  vertical-align: 0.05em;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
}

.video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video video {
  width: 100%;
  height: 100%;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 22px 24px 24px;
}

.card-body p:last-child {
  margin-bottom: 0;
}

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

/* Screenshot strip */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  border-radius: 16px;
  border: 6px solid #0d0e1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  aspect-ratio: 2622 / 1206;
  object-fit: cover;
  width: 100%;
}

.shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Families */
.families {
  background: linear-gradient(180deg, var(--navy), var(--night));
  border-block: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--grass);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
}

.ticks strong {
  color: var(--ink);
}

/* Free and Premium */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.plan {
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.plan.premium {
  background: linear-gradient(160deg, #3a3263, #2a2c50 60%);
  border: 1.5px solid rgba(255, 181, 61, 0.55);
}

.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.plan .price {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 18px;
}

.plan ul {
  margin: 0;
  padding-left: 1.2em;
}

.plan li {
  margin-bottom: 8px;
}

.cta {
  text-align: center;
}

.cta .stores {
  justify-content: center;
}

.cta .section-head {
  margin-inline: auto;
}

/* Text pages: privacy and support */
.page {
  padding: 48px 0 72px;
}

.page .wrap {
  max-width: 760px;
}

.page h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.page h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}

.page .updated {
  color: var(--muted);
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
}

.faq details[open] summary {
  margin-bottom: 8px;
}

.faq details p:last-child,
.faq details ol:last-child {
  margin-bottom: 0;
}

.contact {
  background: var(--panel-2);
  border: 1px solid rgba(255, 181, 61, 0.45);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

.contact p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .features,
  .plans,
  .two-col {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-copy {
    padding: 110px 0 40px;
  }

  .brand span {
    display: none;
  }

  .store {
    flex: 1 1 100%;
  }

  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(22, 23, 43, 0.6) 0%, rgba(22, 23, 43, 0) 18%),
      linear-gradient(0deg, var(--night) 0%, rgba(22, 23, 43, 0.9) 45%, rgba(22, 23, 43, 0.35) 70%, rgba(22, 23, 43, 0) 85%);
  }

  .plan {
    padding: 22px 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
