/* Code Empire Tycoon website. Tokens, type and components from the designer's spec board
   (design canvas, "Web sitesi (tasarım)"): mobile first, desktop from 1024 px, the theme from the
   operating system. */

:root {
  color-scheme: dark;
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --bg: #0f1424;
  --bg-2: #0b0f1c;
  --panel: #151b2e;
  --card: #1e2640;
  --card-hi: #273153;
  --line: #273153;
  --line-soft: rgb(255 255 255 / 0.07);
  --text: #e5e7eb;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --accent: #ff7a45;
  --accent-edge: #c2562a;
  --on-accent: #2b1408;
  --accent-ink: #ff9a6e;
  --money: #4ade80;
  --diamond: #7dd3fc;
  --gold: #fbbf24;
  --purple: #c4b5fd;
  --urgent: #fca5a5;
  --edge: #0b0f1c;
  --focus: #67e8f9;
  --glow: #22305e;
  --seg-on: #273153;
  --btn2: #273153;
  --t-accent: rgb(255 122 69 / 0.16);
  --t-money: rgb(74 222 128 / 0.14);
  --t-diamond: rgb(56 189 248 / 0.15);
  --t-gold: rgb(251 191 36 / 0.15);
  --t-purple: rgb(167 139 250 / 0.18);
  --t-urgent: rgb(248 113 113 / 0.15);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #e6ecf5;
    --bg-2: #dbe3ef;
    --panel: #ffffff;
    --card: #f1f5f9;
    --card-hi: #e2e8f0;
    --line: #cbd5e1;
    --line-soft: rgb(15 23 42 / 0.08);
    --text: #1e293b;
    --text-strong: #0f172a;
    --muted: #475569;
    --accent-edge: #d9541f;
    --accent-ink: #c2410c;
    --money: #15803d;
    --diamond: #0369a1;
    --gold: #92400e;
    --purple: #6d28d9;
    --urgent: #b91c1c;
    --edge: rgb(15 23 42 / 0.14);
    --focus: #0891b2;
    --glow: #c9d7f0;
    --seg-on: #ffffff;
    --btn2: #ffffff;
    --t-money: rgb(22 163 74 / 0.12);
    --t-diamond: rgb(2 132 199 / 0.12);
    --t-gold: rgb(217 119 6 / 0.14);
    --t-purple: rgb(124 58 237 / 0.12);
    --t-urgent: rgb(220 38 38 / 0.1);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a:not([class]) {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

a:not([class]):hover {
  color: var(--text-strong);
}

a[class],
.nav a,
.lang a,
.toc a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] > summary .chev {
  transform: rotate(180deg);
}

.chev {
  display: grid;
  flex: none;
  color: var(--muted);
  transition: transform 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Layout ---------------------------------------------------------------------------- */

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

.sec {
  padding-top: 52px;
}

.sec.first {
  padding-top: 36px;
}

main {
  display: flex;
  flex-direction: column;
}

.after-main {
  height: 64px;
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }

  .sec {
    padding-top: 72px;
  }

  .sec.first {
    padding-top: 48px;
  }

  .after-main {
    height: 96px;
  }
}

/* ---- Type ------------------------------------------------------------------------------ */

.display,
.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--text-strong);
  text-wrap: balance;
}

.display {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
}

.h1 {
  font-size: 36px;
  line-height: 42px;
}

.h2 {
  font-size: 28px;
  line-height: 34px;
}

.h3 {
  font-size: 20px;
  line-height: 26px;
}

.lede {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  text-wrap: pretty;
}

.body {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
  text-wrap: pretty;
}

.read {
  margin: 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 29px;
  color: var(--text);
  text-wrap: pretty;
}

.small {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.label {
  margin: 0;
  font-weight: 800;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .display {
    font-size: 56px;
    line-height: 60px;
  }

  .h1 {
    font-size: 48px;
    line-height: 54px;
  }

  .h2 {
    font-size: 34px;
    line-height: 40px;
  }

  .lede {
    font-size: 20px;
    line-height: 31px;
  }
}

/* ---- Components ------------------------------------------------------------------------ */

.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 3px 0 var(--edge);
}

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.tile.lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.tile.sm {
  width: 40px;
  height: 40px;
}

.tone-accent {
  background: var(--t-accent);
  color: var(--accent-ink);
}

.tone-money {
  background: var(--t-money);
  color: var(--money);
}

.tone-diamond {
  background: var(--t-diamond);
  color: var(--diamond);
}

.tone-gold {
  background: var(--t-gold);
  color: var(--gold);
}

.tone-purple {
  background: var(--t-purple);
  color: var(--purple);
}

.tone-urgent {
  background: var(--t-urgent);
  color: var(--urgent);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.badge.sm {
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.btn.full {
  display: flex;
}

.btn.sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 3px 0 var(--accent-edge);
}

.btn-secondary {
  background: var(--btn2);
  color: var(--text-strong);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--edge);
}

.btn:hover,
.chip:hover {
  filter: brightness(1.07);
}

.btn:active,
.chip:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--edge);
}

.btn-primary:active {
  box-shadow: 0 1px 0 var(--accent-edge);
}

/* "Yakında · App Store": our own chip, never the stores' official badges before launch. */
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 18px 8px 10px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--edge);
}

.store-badge {
  /* Apple's badge, as Apple draws it: only its size is ours (never under 40 px high). */
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  border-radius: 12px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 58px;
}

.platforms .store-badge img {
  height: 48px;
}

.chip-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chip-soon {
  font-weight: 800;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.chip-store {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 23px;
  color: var(--text-strong);
}

.web-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent-ink);
  font-weight: 800;
}

.web-link > span:first-of-type {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.lang {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--card);
  border: 2px solid var(--line);
}

.lang a {
  min-width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.lang a[aria-current] {
  background: var(--seg-on);
  color: var(--text-strong);
  box-shadow: 0 2px 0 var(--edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--edge);
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 22px;
}

.dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dots li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 16px;
  line-height: 25px;
  color: var(--text);
  text-wrap: pretty;
}

.dots li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8.5px;
  border-radius: 3px;
  background: var(--accent);
}

.dots.quiet {
  gap: 6px;
}

.dots.quiet li {
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
}

.dots.quiet li::before {
  margin-top: 7.5px;
  background: var(--line);
}

.dots.read li {
  font-size: 17px;
  line-height: 29px;
}

.dots.read li::before {
  margin-top: 10.5px;
}

/* ---- Header and footer ----------------------------------------------------------------- */

.site-head {
  border-bottom: 2px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.nav {
  display: flex;
  gap: 2px;
  margin: 0 -16px;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
}

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

.nav a[aria-current] {
  color: var(--text-strong);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.site-head .lang.wide {
  display: none;
}

@media (min-width: 1024px) {
  .site-head .wrap {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding-top: 0;
  }

  .head-row .lang {
    display: none;
  }

  .nav {
    margin: 0 0 0 auto;
    padding: 0;
    gap: 4px;
    overflow: visible;
  }

  .nav a {
    padding: 0 14px;
  }

  .site-head .lang.wide {
    display: flex;
  }
}

.site-foot {
  background: var(--bg-2);
  border-top: 2px solid var(--line);
}

.site-foot .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 24px;
}

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

.foot-grid > .wide {
  grid-column: 1 / -1;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.foot-col .wordmark {
  margin-left: -22px;
}

.foot-col a.plain {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.foot-col a.plain:hover {
  color: var(--text-strong);
}

.mail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}

.mail-link span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.mail-link:hover {
  color: var(--text-strong);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 2px solid var(--line-soft);
}

.foot-base > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 280px;
}

.foot-base .tm {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .site-foot .wrap {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
    gap: 32px;
  }

  .foot-grid > .wide {
    grid-column: auto;
  }
}



/* ---- Home ------------------------------------------------------------------------------ */

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-text .lede {
  max-width: 34ch;
}

.hero-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.hero-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.facts {
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.facts i {
  font-style: normal;
  color: var(--line);
}

/* Two rooms from the game: the campus at the back, the bedroom in front of it. */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  min-width: 0;
}

.hero-art .glow {
  position: absolute;
  left: 10%;
  top: -8%;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-art .big {
  position: absolute;
  right: 0;
  top: 0;
  width: 90%;
  height: auto;
}

.hero-art .small-room {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  height: auto;
}

.room-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 0 2px 0 var(--edge);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
}

.room-tag.start {
  left: 22%;
  bottom: -6px;
  transform: translateX(-50%);
}

.room-tag.end {
  right: 4%;
  top: 0;
}

.pop {
  position: absolute;
  left: 8%;
  top: 57.6%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--money);
  text-shadow: 0 2px 0 var(--edge);
}

.grid-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.loop li {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loop .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--line);
}

.loop .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strip {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  margin: 20px -16px 0;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip > li {
  scroll-snap-align: start;
}

.stages {
  grid-auto-columns: 76%;
}

.stages li {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stages .pic {
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stages .pic img {
  height: auto;
}

.stages .name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stages .n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--t-accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
}

.stages .body {
  font-size: 15px;
  line-height: 22px;
}

.features {
  gap: 10px;
}

.features li {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.features li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.features .h3,
.fair .h3 {
  font-size: 18px;
  line-height: 24px;
}

.features .body,
.fair .body {
  font-size: 15px;
  line-height: 23px;
}

.shots {
  grid-auto-columns: 150px;
}

/* The preview video beside its words; on a phone, under them. */
.video-row {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.video-text {
  justify-self: stretch;
}

.video-text .lede {
  margin-top: 8px;
}

.promo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 540 / 1170;
  border-radius: 28px;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--edge);
  background: #0f1424;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--edge);
}

.fair {
  padding: 20px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fair ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.fair li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
}

.fair li + li {
  border-top: 2px solid var(--line-soft);
}

.fair li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cta {
  background: var(--card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta .icon {
  flex: none;
  border-radius: 20px;
  box-shadow: 0 3px 0 var(--edge);
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.cta-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 760px) {
  .loop,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fair ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .fair li {
    padding: 0;
  }

  .fair li + li {
    border-top: none;
  }

  .fair {
    padding: 32px;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-top: 40px;
  }

  .hero-text {
    gap: 22px;
    padding-top: 24px;
  }

  .hero-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-chips .chip,
  .cta-chips .chip {
    display: inline-flex;
  }

  .room-tag.end {
    top: 4px;
  }

  .pop {
    font-size: 22px;
  }

  .grid-list {
    margin-top: 28px;
    gap: 20px;
  }

  .loop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features li {
    padding: 22px;
    flex-direction: column;
    gap: 12px;
  }

  .features .h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .features .body {
    font-size: 16px;
    line-height: 25px;
  }

  .strip {
    grid-auto-flow: row;
    margin: 28px 0 0;
    padding: 0;
    overflow: visible;
    gap: 16px;
  }

  .stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stages li {
    padding: 12px 12px 18px;
  }

  .stages .pic {
    height: 132px;
  }

  .shots {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .video-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }

  .promo {
    width: 320px;
  }

  .cta {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
  }

  .cta .icon {
    width: 96px;
    height: 96px;
    border-radius: 27px;
  }

  .cta-chips {
    flex: none;
  }
}

/* ---- Download -------------------------------------------------------------------------- */

.platforms {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.platforms li {
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.platforms li > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.platforms .h3 {
  font-size: 22px;
  line-height: 28px;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status .store {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--text-strong);
}

.status a.store {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
}

.note .body {
  color: var(--text);
}

@media (min-width: 1024px) {
  .narrow {
    max-width: 760px;
  }
}

/* ---- Changelog ------------------------------------------------------------------------- */

.versions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.version {
  padding: 20px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.version-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--text-strong);
}

.version-head .word {
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
}

.version-head .v {
  font-size: 36px;
  line-height: 38px;
}

.version .when {
  margin-top: -8px;
}

.builds {
  margin: 6px -18px 0;
  padding: 0 18px;
  border-top: 2px solid var(--line-soft);
}

.builds summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-strong);
}

.builds ol {
  padding: 4px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.builds ol > li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.build-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.build-head h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  color: var(--text-strong);
}

.version-end {
  height: 10px;
}

/* ---- Support --------------------------------------------------------------------------- */

.faq {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-group > .h2 {
  font-size: 22px;
  line-height: 28px;
  margin-bottom: 4px;
}

.faq details {
  padding: 0 16px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 23px;
  color: var(--text-strong);
}

.faq .answer {
  padding: 12px 0 18px;
  border-top: 2px solid var(--line-soft);
}

.faq .answer .read {
  font-size: 16px;
  line-height: 27px;
}

.contact {
  background: var(--card);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact .h2 {
  font-size: 24px;
  line-height: 30px;
}

.contact .read {
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.contact .btn {
  margin-top: 6px;
}

.inline-mail {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Privacy --------------------------------------------------------------------------- */

.policy-meta {
  margin-top: 10px;
}

.policy-meta + .small {
  margin-top: 2px;
}

.policy {
  margin-top: 28px;
}

.policy-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 68ch;
  min-width: 0;
}

.summary {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.summary li svg {
  flex: none;
  margin-top: 2px;
  color: var(--money);
}

.toc {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: var(--text);
}

.toc a:hover {
  color: var(--text-strong);
}

.toc .n {
  flex: none;
  width: 22px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 800;
}

.toc-aside {
  display: none;
}

.policy-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.policy-sections section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  border-top: 2px solid var(--line-soft);
}

.policy-sections .title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.policy-sections .h2 {
  font-size: 24px;
  line-height: 30px;
}

.policy-sections .h2 span {
  color: var(--muted);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.to-top svg {
  transform: rotate(90deg);
}

/* The archived policy: plain reading text. */
.archive h2 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  color: var(--text-strong);
}

.archive p,
.archive li {
  font-weight: 500;
  font-size: 17px;
  line-height: 29px;
  color: var(--text);
}

.archive ul {
  list-style: disc;
  padding-left: 22px;
}

.archive .muted {
  color: var(--muted);
}

@media (min-width: 1024px) {
  .policy {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 64px;
    margin-top: 36px;
    align-items: start;
  }

  .toc-aside {
    display: block;
    position: sticky;
    top: 24px;
    padding: 18px;
    border-radius: 20px;
    background: var(--card);
  }

  .toc-aside .toc {
    padding: 0;
  }

  .policy-article .toc.card {
    display: none;
  }

  .policy-sections .h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* ---- Play: the web demo, framed at a phone's size --------------------------------------- */

.play-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 45%, var(--glow), var(--bg) 70%);
}

.play-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 2px solid var(--line-soft);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.back img {
  border-radius: 9px;
}

.bar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  background: var(--btn2);
  border: 2px solid var(--line);
  color: var(--text-strong);
  box-shadow: 0 3px 0 var(--edge);
  font: inherit;
  cursor: pointer;
}

.icon-btn[hidden] {
  display: none;
}

.icon-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--edge);
}

.play-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  padding: 24px;
}

/* A short window (a laptop): every pixel of height goes to the stage. */
@media (max-height: 760px) {
  .play-bar {
    min-height: 52px;
  }

  .play-main {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* The stage takes the room left; the frame inside is scaled to it by the page's script. */
.stage {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-box {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 30px;
  border: 3px solid var(--line);
  box-shadow: 0 4px 0 var(--edge);
  background: var(--bg-2);
}

.stage iframe {
  display: block;
  border: 0;
  transform-origin: 0 0;
  background: var(--bg-2);
}

.stage:fullscreen {
  background: var(--bg);
}

.stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  background: radial-gradient(90% 60% at 50% 45%, var(--glow), var(--bg-2));
  transition: opacity 0.3s ease, visibility 0.3s;
}

.stage-loader img {
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--edge);
}

[data-state='ready'] .stage-loader {
  opacity: 0;
  visibility: hidden;
}

.stage noscript p {
  position: absolute;
  inset: auto 24px 40px;
  text-align: center;
}

.loader {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.loader-track {
  padding: 3px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
}

.loader-bar {
  width: 62%;
  height: 14px;
  border-radius: 999px;
  background-color: var(--accent);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgb(0 0 0 / 0.18) 14px 28px);
  background-size: 56px 100%;
  box-shadow: inset 0 -3px 0 var(--accent-edge);
  animation: load 1.2s linear infinite;
}

@keyframes load {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 56px 0;
  }
}

.loader span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.play-side {
  display: none;
}

.tip-a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
}

.tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
}

.tips li + li {
  border-top: 2px solid var(--line-soft);
}

.tips .label {
  padding-top: 12px;
}

.side-note {
  display: flex;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
}

.side-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--money);
}

.info .label {
  margin-top: 8px;
}

.side-links a {
  color: var(--muted);
}

.rotate {
  display: none;
}

/* Wide enough for the notes on either side of the stage. */
@media (min-width: 1100px) {
  .play-main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 40px;
    padding-inline: 40px;
  }

  .stage {
    width: min(60vw, 560px);
  }

  .play-side {
    display: flex;
    flex-direction: column;
    align-self: center;
  }

  .tips {
    justify-self: end;
    width: 240px;
    padding: 8px 18px;
  }

  .info {
    justify-self: start;
    width: 260px;
    gap: 12px;
  }
}

/* A phone: the game is the whole screen under a slim bar. */
@media (max-width: 759px) {
  .play-bar {
    min-height: 48px;
    gap: 10px;
    padding: env(safe-area-inset-top) 12px 0;
  }

  .play-bar .badge,
  .back img {
    display: none;
  }

  .play-main {
    padding: 0 0 env(safe-area-inset-bottom);
  }

  .stage,
  .stage-box {
    width: 100%;
    height: 100%;
  }

  .stage-box {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .stage iframe {
    width: 100%;
    height: 100%;
  }
}

/* A phone on its side: the game only plays upright. */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .rotate {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg);
    color: var(--text-strong);
  }

  .rotate svg {
    transform: rotate(90deg);
    color: var(--accent);
  }
}

/* ---- 404 ------------------------------------------------------------------------------- */

.lost {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.code-404 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 88px;
  line-height: 80px;
  color: var(--accent);
  text-shadow: 0 4px 0 var(--accent-edge);
}

.editor {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--edge);
  background: var(--bg-2);
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--card);
}

.editor-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.editor-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.editor-code {
  padding: 16px 16px 18px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.editor-code div {
  display: flex;
  gap: 14px;
}

.editor-code .ln {
  width: 18px;
  text-align: right;
  color: var(--line);
}

.lost-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

[data-lang-block][hidden] {
  display: none;
}
