/* Self-hosted fonts (scripts/copy-landing-fonts.ts): the English page needs only the Latin subset. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/marketing/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/marketing/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #242934;
  --muted: #5b6272;
  --blue: #365cff;
  --blue-soft: #eef2ff;
  --line: #e1e5ed;
  --paper: #fff;
  --surface: #f6f8fb;
  --display: "IBM Plex Sans", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid #365cff;
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  font-size: clamp(52px, 5.7vw, 82px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.13;
}

p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.header {
  width: min(1340px, calc(100% - 64px));
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 45px;
  margin: auto;
  border-block-end: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.wordmark > span {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  padding-inline-start: 11px;
  border-inline-start: 1px solid #cfd5df;
  color: var(--muted);
}

.header nav {
  display: flex;
  gap: 29px;
  margin: auto;
  font-size: 13px;
  font-weight: 600;
}

.header nav a:hover,
.footer a:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.16s,
    transform 0.16s;
}

.button:hover {
  background: #2449e6;
  transform: translateY(-2px);
}

.button-small {
  min-height: 43px;
  padding: 10px 16px;
  font-size: 12px;
  gap: 18px;
}

.text-link {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

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

.text-link span,
.button span {
  font-size: 19px;
}

.menu-toggle {
  display: none;
}

.skip-link {
  position: absolute;
  inset-inline-start: 15px;
  top: -100px;
  padding: 10px 16px;
  background: var(--blue);
  color: white;
  z-index: 30;
}

.skip-link:focus {
  top: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 58px;
  padding-block: 68px 72px;
}

.hero-copy {
  padding-block-end: 20px;
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #555f71;
  margin-block-end: 29px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-copy > p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 440px;
  margin-block-start: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-block-start: 30px;
  flex-wrap: wrap;
}

.hero-actions .text-link {
  font-size: 13px;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-block-start: 15px;
}

.hero-playground {
  min-width: 0;
}

.demo-top,
.demo-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  align-items: center;
  color: var(--muted);
}

.demo-label {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  font-size: 10px;
}

.brand-tabs {
  display: flex;
  gap: 5px;
  margin: 14px 0;
  background: #f1f3f8;
  padding: 5px;
  border-radius: 9px;
}

.brand-tabs button {
  flex: 1;
  min-height: 36px;
  padding: 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.brand-tabs button.active {
  background: white;
  box-shadow: 0 1px 4px #13234812;
}

.game-stage {
  --game-bg: #fff1d9;
  --game-primary: #c62737;
  --game-ink: #9d1926;

  position: relative;
  border-radius: 16px;
  background: #e9edf9;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 30px 20px;
}

.game-stage[data-theme="coffee"] {
  --game-bg: #e9f1eb;
  --game-primary: #36584b;
  --game-ink: #28493d;

  background: #e5ede8;
}

.game-stage[data-theme="market"] {
  --game-bg: #f4f5d6;
  --game-primary: #617d23;
  --game-ink: #486516;

  background: #eef0dc;
}

.phone {
  width: 254px;
  border: 6px solid #2b303d;
  background: #2b303d;
  border-radius: 35px;
  padding: 5px;
  z-index: 2;
  position: relative;
  box-shadow: 0 18px 30px #2c3d5821;
  transform: rotate(-4deg);
}

.phone-camera {
  height: 14px;
  width: 68px;
  position: absolute;
  top: 12px;
  inset-inline-start: calc(50% - 34px);
  background: #2b303d;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  border-radius: 24px;
  min-height: 425px;
  background: var(--game-bg);
  color: var(--game-ink);
  overflow: hidden;
  padding: 27px 15px 13px;
  position: relative;
  text-align: center;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
}

.sample-logo {
  font-family: var(--display);
  font-weight: 600;
}

.test-pill {
  font-size: 8px;
  padding: 3px 5px;
  border: 1px solid currentcolor;
  border-radius: 4px;
}

.game-intro-small {
  font-size: 9px;
  display: block;
  margin: 22px 0 8px;
}

.phone h2 {
  font-size: 35px;
  font-weight: 600;
  line-height: 0.99;
}

.food-orbit {
  height: 122px;
  position: relative;
  font-size: 46px;
  margin: 6px 0 0;
}

.food-orbit > span {
  position: absolute;
  filter: drop-shadow(0 4px 0 #0000000a);
}

.orbit-one {
  top: 7px;
  inset-inline-start: 26px;
  transform: rotate(-20deg);
}

.orbit-two {
  top: 40px;
  inset-inline-end: 18px;
  transform: rotate(16deg);
  font-size: 42px;
}

.orbit-three {
  top: 3px;
  inset-inline-end: 35px;
  font-size: 31px;
  transform: rotate(20deg);
}

.plate {
  position: absolute;
  bottom: 13px;
  inset-inline-start: 39px;
  width: 117px;
  height: 14px;
  background: #fff;
  border: 2px solid #cbbcaa;
  border-radius: 50%;
  box-shadow: 0 5px 0 #d5c8b4;
}

.phone p {
  font-size: 10px;
  color: inherit;
  line-height: 1.5;
}

.game-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border: 0;
  background: var(--game-primary);
  color: white;
  border-radius: 7px;
  min-height: 38px;
  padding: 9px 18px;
  width: 100%;
  margin-block-start: 14px;
  font-size: 12px;
  font-weight: 600;
}

.game-powered {
  font-size: 10px;
  margin-block-start: 12px;
}

.floating-product {
  position: absolute;
  background: white;
  border: 1px solid #dce1ee;
  border-radius: 15px;
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  font-size: 42px;
  z-index: 1;
  box-shadow: 0 6px 0 #d8deee;
}

.product-one {
  inset-inline-start: 12px;
  top: 96px;
  transform: rotate(-15deg);
}

.product-two {
  inset-inline-end: 9px;
  bottom: 87px;
  transform: rotate(13deg);
}

.brand-stamp {
  position: absolute;
  inset-inline-end: 16px;
  top: 43px;
  display: grid;
  font-size: 10px;
  line-height: 1.8;
  transform: rotate(6deg);
  z-index: 3;
  background: #fff;
  padding: 12px 16px;
  border: 1px solid #dce1ee;
  border-radius: 6px;
}

.brand-stamp strong {
  font-size: 12px;
}

.prize-tag {
  display: flex;
  gap: 9px;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 9px;
  position: absolute;
  bottom: 44px;
  inset-inline-start: 14px;
  z-index: 3;
  transform: rotate(4deg);
  box-shadow: 0 4px 12px #2634550b;
}

.prize-tag > span {
  font-size: 31px;
  color: var(--blue);
}

.prize-tag small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.prize-tag strong {
  font-size: 12px;
}

.demo-bottom {
  margin-block-start: 13px;
  font-size: 10px;
}

.demo-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-block-start: 20px;
  font-weight: 600;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 270px;
  touch-action: none;
}

.game-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
}

.game-arrows button {
  width: 38px;
  height: 38px;
  border: 1px solid currentcolor;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  font-size: 20px;
}

.result-icon {
  display: block;
  font-size: 40px;
  margin: 20px 0 8px;
}

.mini-ticket {
  background: white;
  border-radius: 8px;
  padding: 13px 10px;
  margin: 17px 0 5px;
  display: grid;
  font-size: 10px;
  color: var(--game-ink);
}

.mini-ticket > strong {
  font-size: 35px;
  font-family: var(--display);
}

.mini-ticket > div {
  border-block-start: 1px dashed #d9d1c6;
  margin: 12px -10px -5px;
  padding: 10px 4px 0;
  font-size: 8px;
}

.promise-strip {
  background: var(--surface);
  border-block-start: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 25px 0;
}

.promise-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 12px;
}

.promise-strip .wrap > span {
  color: var(--muted);
}

.promise-strip .wrap > div {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-weight: 600;
}

.section {
  padding-block: 98px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-block-end: 45px;
}

.section-heading > p {
  font-size: 16px;
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.step {
  position: relative;
}

.step-number {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 2;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  border: 1px solid #d3dae7;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.step-visual {
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.step h3 {
  font-size: 22px;
  margin: 24px 0 11px;
}

.step p {
  font-size: 14px;
  line-height: 1.8;
}

.tiny-browser {
  display: flex;
  gap: 4px;
  padding-block-end: 14px;
}

.tiny-browser span {
  width: 5px;
  height: 5px;
  background: #c1c9d6;
  border-radius: 50%;
}

.source-pill {
  padding: 9px 13px;
  border: 1px solid #dce2ed;
  border-radius: 6px;
  background: white;
  font-size: 12px;
}

.kit-pieces {
  display: flex;
  gap: 9px;
  margin-block-start: 12px;
  align-items: center;
}

.kit-pieces > strong {
  font: 600 20px var(--display);
  color: #c62737;
  background: #fff1d9;
  border-radius: 6px;
  padding: 15px;
}

.kit-swatches {
  display: grid;
  gap: 4px;
}

.kit-swatches i {
  width: 24px;
  height: 18px;
  background: #c62737;
  border-radius: 3px;
}

.kit-swatches i:nth-child(2) {
  background: #f2bd45;
}

.kit-swatches i:nth-child(3) {
  background: #fff1d9;
}

.kit-food {
  font-size: 28px;
  white-space: nowrap;
}

.mini-caption {
  font-size: 10px;
  color: var(--muted);
  margin-block-start: 13px;
}

.control-heading {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-block-end: 17px;
}

.control-heading span:last-child {
  color: var(--blue);
}

.fake-control {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 10px;
  padding: 12px 0;
  border-block-end: 1px solid var(--line);
}

.fake-control b {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  margin: 0 4px;
  font-weight: 600;
}

.fake-slider {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 10px;
  padding-block-start: 15px;
}

.fake-slider strong {
  font-weight: 400;
}

.fake-slider > div {
  width: 100%;
  height: 4px;
  background: #d6ddeb;
  margin: 15px 0 4px;
  border-radius: 3px;
}

.fake-slider i {
  display: block;
  width: 58%;
  height: 4px;
  background: var(--blue);
  position: relative;
}

.fake-slider i::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
}

.file-stack {
  padding: 7px 23px 0;
}

.file-stack > div {
  background: white;
  padding: 16px;
  border: 1px solid #ccd5eb;
  border-radius: 7px;
  transform: rotate(-5deg);
  box-shadow:
    6px -6px 0 -1px #e2e8f8,
    6px -6px 0 0 #ccd5eb;
  display: grid;
}

.file-stack span {
  color: var(--blue);
  font-size: 25px;
}

.file-stack strong {
  font-size: 14px;
  font-weight: 600;
}

.file-stack small {
  font-size: 10px;
  color: var(--muted);
}

.format-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-block-start: 23px;
  flex-wrap: wrap;
}

.format-badges span {
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid #ccd5eb;
  border-radius: 5px;
  background: white;
}

.games-section {
  padding: 85px 0;
  background: #f4f6fa;
  border-block: 1px solid var(--line);
}

.heading-sub {
  margin-block-start: 16px;
  font-size: 15px;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  white-space: nowrap;
}

.gallery-filter button {
  border: 1px solid transparent;
  background: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
}

.gallery-filter button.active {
  background: white;
  border-color: #d8dfe9;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.game-card {
  min-width: 0;
}

.game-poster {
  height: 320px;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.game-poster > span:first-child {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  margin-block-start: 2px;
}

.game-poster h3 {
  font-weight: 600;
  font-size: 43px;
  line-height: 1.03;
  margin-block-start: 23px;
}

.catch-poster {
  background: #ffe4cb;
  color: #bd2839;
}

.quiz-poster {
  background: #294f42;
  color: #f1efd6;
}

.memory-poster {
  background: #e6edaf;
  color: #4c621d;
}

.poster-food {
  font-size: 64px;
  transform: rotate(-12deg);
  margin-block-start: 15px;
}

.poster-badge {
  position: absolute;
  bottom: 15px;
  inset-inline-start: 17px;
  border: 1px solid currentcolor;
  padding: 3px 9px;
  font-size: 10px;
  border-radius: 20px;
}

.quiz-answers {
  display: flex;
  gap: 8px;
  margin-block-start: 32px;
  transform: rotate(-5deg);
}

.quiz-answers span {
  padding: 10px 18px;
  border: 1px solid #f1efd6;
  color: #f1efd6;
  border-radius: 6px;
  font-size: 13px;
}

.quiz-answers span:first-child {
  background: #f1efd6;
  color: #294f42;
}

.memory-tiles {
  display: flex;
  gap: 7px;
  margin-block-start: 26px;
  transform: rotate(6deg);
}

.memory-tiles span {
  width: 47px;
  height: 55px;
  border-radius: 6px;
  background: #fffdf0;
  font-size: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #b5c87c;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-start: 18px;
}

.game-card-footer h3 {
  font-size: 18px;
}

.game-card-footer p {
  font-size: 12px;
  margin-block-start: 4px;
}

.round-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cbd3e1;
  background: transparent;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.round-button:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-block-start: 1px solid #dce2eb;
  margin-block-start: 32px;
  padding-block-start: 24px;
}

.gallery-bottom p {
  font-size: 12px;
}

.toolkit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.toolkit-copy > p {
  font-size: 16px;
  line-height: 1.85;
  margin: 24px 0 29px;
  max-width: 420px;
}

.toolkit-feature {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.toolkit-feature > span {
  width: 35px;
  height: 35px;
  border: 1px solid #d9e1f9;
  background: #f0f3ff;
  color: var(--blue);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
}

.toolkit-feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-block-end: 6px;
}

.toolkit-feature p {
  font-size: 13px;
  line-height: 1.75;
}

.toolkit-copy > .text-link {
  margin-block-start: 16px;
}

.toolkit-visual {
  min-width: 0;
}

.export-window {
  border: 1px solid #d1d9eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6fc;
  box-shadow: 0 12px 45px #24467909;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  background: white;
  border-block-end: 1px solid #d1d9eb;
  font-size: 10px;
  color: #535d74;
}

.window-top > div {
  display: flex;
  gap: 4px;
}

.window-top i {
  width: 6px;
  height: 6px;
  background: #c4ccdb;
  border-radius: 50%;
}

.export-content {
  padding: 25px;
}

.export-title {
  display: grid;
  gap: 4px;
}

.export-title strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.export-title > span {
  font-size: 11px;
  color: var(--muted);
}

.export-formats {
  display: flex;
  gap: 13px;
  margin: 24px 0;
}

.export-formats > div {
  flex: 1;
  padding: 13px;
  background: white;
  border: 1px solid #dce2ef;
  border-radius: 7px;
  display: grid;
}

.export-formats b {
  font-size: 21px;
  color: var(--blue);
}

.export-formats strong {
  font-size: 12px;
  font-weight: 600;
}

.export-formats small {
  font-size: 9px;
  color: var(--muted);
  margin-block-start: 3px;
}

.video-formats {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 13px;
}

.format-tall,
.format-square,
.format-wide {
  border-radius: 8px;
  background: #c62737;
  color: #fff1d9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  overflow: hidden;
}

.format-tall {
  height: 291px;
}

.format-tall strong {
  font: 600 22px/1.25 var(--display);
  margin-block-start: 18px;
}

.format-tall small {
  font-size: 9px;
}

.format-tall > span {
  font-size: 62px;
  margin-block-start: 20px;
  transform: rotate(-15deg);
}

.format-tall b {
  font-size: 8px;
  font-weight: 600;
  background: #fff1d9;
  color: #c62737;
  padding: 5px 20px;
  border-radius: 3px;
  margin-block-start: 20px;
}

.video-formats em {
  position: absolute;
  bottom: 9px;
  inset-inline-end: 9px;
  font-style: normal;
  font-size: 10px;
}

.format-right {
  display: grid;
  gap: 13px;
  grid-template-rows: 1.3fr 1fr;
}

.format-square {
  background: #fff1d9;
  color: #c62737;
  flex-direction: row;
  gap: 6px;
}

.format-square strong {
  font: 600 22px/1.25 var(--display);
}

.format-square > span {
  font-size: 45px;
}

.format-wide {
  background: #f2bb4a;
  color: #7a301e;
  flex-direction: row;
  gap: 3px;
}

.format-wide strong {
  font: 600 15px/1.25 var(--display);
  text-align: start;
}

.format-wide > span {
  font-size: 38px;
}

.visual-caption {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-block-start: 13px;
  text-align: center;
}

.voucher-section {
  background: #edf2fe;
  border-block: 1px solid #dce4f8;
  padding: 84px 0;
}

.voucher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 110px;
}

.voucher-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
}

.journey-path {
  display: grid;
  gap: 12px;
  font-size: 12px;
}

.journey-path i {
  font-style: normal;
  color: #9aa8c6;
}

.journey-path > span {
  padding-block: 7px;
  color: #535d74;
}

.journey-path .journey-last {
  color: var(--ink);
  font-weight: 600;
}

.big-ticket {
  background: white;
  border: 1px solid #d2dcef;
  border-radius: 11px;
  transform: rotate(-6deg);
  padding: 22px 19px;
  color: #c62737;
  box-shadow: 0 10px 0 #dae3f9;
}

.ticket-top {
  display: grid;
  gap: 2px;
  font-size: 11px;
}

.ticket-top span:first-child {
  font-weight: 600;
  font-family: var(--display);
}

.ticket-top span:last-child {
  font-size: 8px;
  color: #8b6870;
}

.big-ticket > strong {
  display: block;
  font: 600 clamp(34px, 9vw, 49px)/1.1 var(--display);
  margin: 28px 0 10px;
}

.big-ticket > p {
  font-size: 10px;
  color: #956975;
}

.ticket-tear {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  margin: 24px -19px -22px;
  border-block-start: 2px dashed #ccd8ed;
  padding: 17px 19px;
  color: #66758d;
  font-size: 9px;
  position: relative;
}

.ticket-tear::before,
.ticket-tear::after {
  content: "";
  width: 17px;
  height: 17px;
  background: #edf2fe;
  position: absolute;
  top: -9px;
  border-radius: 50%;
}

.ticket-tear::before {
  inset-inline-start: -9px;
}

.ticket-tear::after {
  inset-inline-end: -9px;
}

.ticket-tear > span:last-child {
  font-size: 23px;
  color: var(--blue);
}

.voucher-copy > p {
  font-size: 15px;
  line-height: 1.85;
  margin-block-start: 22px;
}

.plain-note {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  margin-block-start: 25px;
  padding-block-start: 22px;
  border-block-start: 1px solid #d4dff6;
}

.plain-note > span:first-child {
  color: var(--blue);
  font-size: 25px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-section > div > p {
  margin-block-start: 23px;
  font-size: 14px;
}

.faq-list details {
  border-block-end: 1px solid var(--line);
}

.faq-list details:first-child {
  border-block-start: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 72px;
  padding-block: 20px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  font-size: 25px;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-list details[open] summary > span {
  transform: rotate(45deg);
}

.faq-list details p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 560px;
  padding-block-end: 23px;
  padding-inline-end: 25px;
}

.final-cta {
  background: var(--blue);
  border-radius: 14px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  color: white;
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  font-size: 43px;
  position: relative;
  z-index: 1;
}

.final-cta p {
  color: #fff;
  font-size: 14px;
  margin-block-start: 17px;
  position: relative;
  z-index: 1;
}

.button-light {
  background: white;
  border-color: white;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.button-light:hover {
  background: #eef2ff;
}

.cta-decoration {
  position: absolute;
  inset-inline-end: 190px;
  top: -65px;
  font-size: 370px;
  line-height: 1;
  color: #ffffff0b;
  transform: rotate(8deg);
  pointer-events: none;
}

.footer {
  padding-block: 55px 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
}

.footer p {
  font-size: 12px;
  margin-block-start: 11px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 12px;
}

.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-block-start: 1px solid var(--line);
  padding-block-start: 22px;
  font-size: 10px;
  color: var(--muted);
}

dialog {
  width: 460px;
  max-width: calc(100% - 32px);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 100px #12215120;
}

dialog::backdrop {
  background: #18274170;
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 25px;
}

.dialog-header h2 {
  font-size: 25px;
}

.dialog-note {
  font-size: 11px;
  margin-block-start: 20px;
  text-align: center;
}

.quiz-game {
  display: grid;
  gap: 12px;
}

.quiz-game h3 {
  font-size: 23px;
  line-height: 1.3;
  margin-block-end: 10px;
}

.quiz-choice {
  padding: 13px;
  border: 1px solid var(--line);
  background: #f6f8fb;
  border-radius: 8px;
  text-align: start;
  font-size: 14px;
}

.quiz-choice.correct {
  background: #e6f4e8;
  border-color: #65a271;
}

.quiz-choice.wrong {
  background: #fff0ef;
  border-color: #d18883;
}

.memory-game {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.memory-game button {
  height: 75px;
  border: 1px solid #d9e2b8;
  border-radius: 9px;
  background: #eaf0ce;
  font-size: 27px;
}

.memory-game button.matched {
  background: white;
  opacity: 0.55;
}

.game-feedback {
  min-height: 28px;
  font-size: 13px;
  margin-block-start: 18px;
  color: var(--ink);
}

@media (width >= 1500px) {
  .hero {
    gap: 90px;
  }

  .game-stage {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 84px;
  }
}

@media (width <= 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .header {
    gap: 25px;
  }

  .header nav {
    gap: 17px;
    font-size: 12px;
  }

  .wordmark {
    font-size: 25px;
  }

  .wordmark > span {
    font-size: 10px;
  }

  .hero {
    gap: 35px;
    padding-block-start: 50px;
  }

  h1 {
    font-size: 62px;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-actions {
    gap: 18px;
  }

  .game-stage {
    min-height: 500px;
  }

  .brand-stamp {
    inset-inline-end: 8px;
    top: 35px;
    padding: 9px;
    transform: rotate(4deg);
  }

  .brand-stamp span {
    font-size: 8px;
  }

  .brand-stamp strong {
    font-size: 10px;
  }

  .floating-product {
    width: 57px;
    height: 57px;
    font-size: 30px;
  }

  .prize-tag {
    inset-inline-start: 6px;
    bottom: 31px;
    padding: 10px;
  }

  .demo-top {
    font-size: 10px;
  }

  .steps {
    gap: 22px;
  }

  .step-visual {
    padding: 23px 18px;
    height: 220px;
  }

  .game-poster {
    height: 290px;
    padding: 18px;
  }

  .game-poster h3 {
    font-size: 35px;
  }

  .poster-food {
    font-size: 53px;
  }

  .memory-tiles {
    gap: 4px;
  }

  .memory-tiles span {
    width: 38px;
    height: 48px;
    font-size: 24px;
  }

  .toolkit {
    gap: 55px;
  }

  .voucher-layout {
    gap: 55px;
  }

  .voucher-story {
    gap: 15px;
  }

  .big-ticket {
    padding: 20px 15px;
  }

  .big-ticket > strong {
    font-size: 43px;
  }

  .ticket-tear {
    margin: 24px -15px -20px;
    padding: 17px 15px;
  }

  .faq-section {
    gap: 50px;
  }
}

@media (width <= 850px) {
  .header {
    gap: 18px;
  }

  .header nav {
    gap: 15px;
    margin-inline: auto 0;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .location {
    font-size: 10px;
    margin-block-end: 20px;
  }

  .hero-copy > p {
    font-size: 14px;
    margin-block-start: 20px;
  }

  .hero-actions {
    gap: 13px;
    margin-block-start: 23px;
  }

  .hero-actions .button {
    padding: 12px 18px;
    font-size: 12px;
    min-height: 48px;
  }

  .hero-actions .text-link {
    font-size: 12px;
  }

  .demo-top > span:first-child {
    max-width: 145px;
  }

  .game-stage {
    padding: 25px 10px;
    min-height: 475px;
  }

  .phone {
    width: 230px;
    transform: rotate(-3deg);
  }

  .phone-screen {
    min-height: 405px;
    padding-inline: 12px;
  }

  .phone h2 {
    font-size: 32px;
  }

  .brand-stamp,
  .floating-product {
    display: none;
  }

  .prize-tag {
    bottom: 22px;
    inset-inline-start: 0;
    padding: 9px 11px;
  }

  .brand-tabs button {
    font-size: 9px;
  }

  .demo-bottom {
    font-size: 9px;
  }

  .demo-bottom > span:last-child {
    display: none;
  }

  .promise-strip .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .promise-strip .wrap > div {
    gap: 25px;
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    gap: 22px;
    margin-block-end: 32px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .steps {
    gap: 20px;
  }

  .step-visual {
    height: 190px;
    padding: 25px 14px 16px;
  }

  .kit-food {
    font-size: 20px;
  }

  .kit-pieces > strong {
    font-size: 23px;
    padding: 12px;
  }

  .kit-swatches i {
    width: 18px;
    height: 15px;
  }

  .control-heading {
    font-size: 10px;
    margin-block-end: 10px;
  }

  .fake-control {
    font-size: 8px;
    gap: 3px;
    padding: 10px 0;
  }

  .fake-control b {
    padding: 4px;
    margin: 0 2px;
  }

  .fake-slider {
    font-size: 9px;
  }

  .file-stack {
    padding: 5px 10px 0;
  }

  .format-badges {
    gap: 3px;
    margin-block-start: 16px;
  }

  .format-badges span {
    padding: 3px 5px;
    font-size: 8px;
  }

  .step h3 {
    font-size: 20px;
  }

  .step p {
    font-size: 13px;
  }

  .games-section {
    padding: 65px 0;
  }

  .games-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-gallery {
    gap: 17px;
  }

  .game-poster {
    height: 255px;
    padding: 17px 10px;
  }

  .game-poster h3 {
    font-size: 29px;
    margin-block-start: 24px;
  }

  .poster-food {
    font-size: 41px;
  }

  .quiz-answers {
    gap: 4px;
  }

  .quiz-answers span {
    font-size: 10px;
    padding: 7px 9px;
  }

  .memory-tiles span {
    width: 30px;
    height: 39px;
    font-size: 19px;
  }

  .game-card-footer h3 {
    font-size: 16px;
  }

  .game-card-footer p {
    font-size: 11px;
  }

  .round-button {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .gallery-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .toolkit {
    gap: 30px;
  }

  .toolkit h2 {
    font-size: 38px;
  }

  .toolkit-copy > p {
    font-size: 14px;
  }

  .export-content {
    padding: 18px;
  }

  .export-title strong {
    font-size: 17px;
  }

  .export-formats {
    gap: 8px;
  }

  .export-formats > div {
    padding: 10px;
  }

  .export-formats strong {
    font-size: 10px;
  }

  .video-formats {
    gap: 9px;
  }

  .format-tall {
    height: 255px;
  }

  .format-tall strong {
    font-size: 19px;
  }

  .format-square strong {
    font-size: 17px;
  }

  .format-square > span {
    font-size: 30px;
  }

  .format-wide strong {
    font-size: 12px;
  }

  .format-wide > span {
    font-size: 26px;
  }

  .voucher-layout {
    gap: 35px;
  }

  .voucher-story {
    grid-template-columns: 1fr;
  }

  .journey-path {
    display: none;
  }

  .big-ticket {
    max-width: 240px;
    margin: auto;
    width: 100%;
  }

  .voucher-copy h2 {
    font-size: 37px;
  }

  .voucher-copy > p {
    font-size: 13px;
  }

  .faq-section {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
  }

  .faq-section h2 {
    font-size: 35px;
  }

  .faq-list summary {
    font-size: 13px;
  }

  .final-cta {
    padding: 38px;
    gap: 25px;
  }

  .final-cta h2 {
    font-size: 33px;
  }

  .final-cta .button {
    padding: 12px 16px;
    font-size: 12px;
    gap: 13px;
  }

  .final-cta p {
    font-size: 12px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (width <= 650px) {
  html {
    scroll-padding-top: 25px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header {
    width: calc(100% - 40px);
    min-height: 73px;
    position: relative;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }

  .wordmark {
    font-size: 25px;
  }

  .menu-toggle {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 0;
    background: none;
    padding-block: 10px;
    padding-inline: 12px 0;
    font-size: 12px;
    min-height: 44px;
  }

  .header nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    margin: 0;
    padding: 9px 0 20px;
    gap: 0;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    padding: 11px 0;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px 38px;
    gap: 30px;
  }

  .hero-copy {
    padding-block-end: 0;
  }

  .location {
    font-size: 10px;
    margin-block-end: 22px;
  }

  .hero h1 {
    font-size: clamp(51px, 12.5vw, 72px);
    line-height: 1.04;
  }

  .hero h1 br:last-child {
    display: none;
  }

  .hero-copy > p {
    font-size: 15px;
    max-width: 460px;
    margin-block-start: 24px;
  }

  .hero-actions {
    gap: 20px;
    margin-block-start: 24px;
  }

  .hero-actions .button {
    min-height: 49px;
    font-size: 12px;
    padding: 12px 17px;
  }

  .hero-actions .text-link {
    font-size: 12px;
  }

  .hero-note {
    font-size: 11px;
    margin-block-start: 12px;
  }

  .hero-playground {
    margin-block-start: 4px;
  }

  .demo-top {
    font-size: 10px;
  }

  .demo-top > span:first-child {
    max-width: none;
  }

  .demo-label {
    font-size: 9px;
  }

  .brand-tabs button {
    font-size: 10px;
    min-height: 39px;
  }

  .game-stage {
    min-height: 481px;
    padding: 28px 10px;
  }

  .phone {
    width: 246px;
  }

  .phone-screen {
    min-height: 420px;
  }

  .phone h2 {
    font-size: 35px;
  }

  .prize-tag {
    inset-inline-start: 2px;
    bottom: 25px;
  }

  .demo-bottom {
    font-size: 9px;
  }

  .promise-strip {
    padding: 24px 0;
  }

  .promise-strip .wrap > span {
    font-size: 11px;
  }

  .promise-strip .wrap > div {
    gap: 10px 22px;
    font-size: 12px;
  }

  .section {
    padding-block: 60px;
  }

  .section-heading {
    display: block;
    margin-block-end: 30px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading > p {
    margin-block-start: 17px;
    font-size: 14px;
  }

  .section-heading > p br {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-visual {
    height: 226px;
    padding: 28px 35px;
  }

  .step-number {
    width: 27px;
    height: 27px;
    top: 13px;
    inset-inline-start: 13px;
  }

  .kit-pieces > strong {
    font-size: 30px;
    padding: 14px 20px;
  }

  .kit-food {
    font-size: 32px;
  }

  .kit-swatches i {
    width: 25px;
    height: 20px;
  }

  .kit-pieces {
    gap: 16px;
  }

  .mini-caption {
    font-size: 11px;
  }

  .control-heading {
    font-size: 12px;
  }

  .fake-control {
    font-size: 11px;
    padding: 12px 0;
  }

  .fake-control b {
    padding: 6px;
  }

  .fake-slider {
    font-size: 11px;
  }

  .file-stack {
    max-width: 250px;
    width: 100%;
    margin: auto;
    padding: 7px 20px;
  }

  .format-badges {
    margin-block-start: 18px;
    gap: 7px;
  }

  .format-badges span {
    font-size: 10px;
    padding: 4px 8px;
  }

  .step h3 {
    margin: 20px 0 8px;
    font-size: 23px;
  }

  .step p {
    font-size: 14px;
  }

  .games-section {
    padding: 60px 0;
  }

  .heading-sub {
    font-size: 14px;
    margin-block-start: 17px;
  }

  .gallery-filter {
    margin-block-start: 24px;
  }

  .gallery-filter button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .game-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-poster {
    height: 320px;
    padding: 24px;
  }

  .game-poster h3 {
    font-size: 44px;
    margin-block-start: 22px;
  }

  .poster-food {
    font-size: 66px;
  }

  .quiz-answers {
    margin-block-start: 31px;
    gap: 9px;
  }

  .quiz-answers span {
    padding: 10px 18px;
    font-size: 14px;
  }

  .memory-tiles {
    gap: 7px;
    margin-block-start: 25px;
  }

  .memory-tiles span {
    width: 48px;
    height: 56px;
    font-size: 28px;
  }

  .game-card-footer {
    padding-block-start: 15px;
  }

  .game-card-footer h3 {
    font-size: 19px;
  }

  .game-card-footer p {
    font-size: 12px;
  }

  .round-button {
    width: 44px;
    height: 44px;
  }

  .gallery-bottom {
    margin-block-start: 28px;
    padding-block-start: 20px;
  }

  .gallery-bottom p {
    line-height: 1.9;
  }

  .toolkit {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .toolkit h2 {
    font-size: 36px;
  }

  .toolkit-copy > p {
    font-size: 15px;
  }

  .toolkit-feature {
    margin: 23px 0;
  }

  .toolkit-feature h3 {
    font-size: 17px;
  }

  .toolkit-feature p {
    font-size: 13px;
  }

  .export-content {
    padding: 22px;
  }

  .export-title strong {
    font-size: 20px;
  }

  .export-formats > div {
    padding: 12px;
  }

  .export-formats strong {
    font-size: 12px;
  }

  .format-tall {
    height: 277px;
  }

  .format-tall strong {
    font-size: 21px;
  }

  .format-square strong {
    font-size: 19px;
  }

  .format-wide strong {
    font-size: 13px;
  }

  .format-square > span {
    font-size: 37px;
  }

  .format-wide > span {
    font-size: 33px;
  }

  .voucher-section {
    padding: 60px 0;
  }

  .voucher-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .voucher-story {
    order: 2;
    padding-block: 12px;
  }

  .voucher-copy h2 {
    font-size: 38px;
  }

  .voucher-copy h2 br:last-child {
    display: none;
  }

  .voucher-copy > p {
    font-size: 14px;
  }

  .big-ticket {
    max-width: 270px;
    padding: 24px;
  }

  .big-ticket > strong {
    font-size: 44px;
    margin: 28px 0 12px;
  }

  .big-ticket > p {
    font-size: 12px;
  }

  .ticket-top {
    font-size: 13px;
  }

  .ticket-top span:last-child {
    font-size: 10px;
  }

  .ticket-tear {
    margin: 25px -24px -24px;
    padding: 18px 24px;
    font-size: 10px;
  }

  .plain-note {
    font-size: 12px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .faq-section h2 {
    font-size: 35px;
  }

  .faq-section h2 br {
    display: none;
  }

  .faq-section > div > p {
    margin-block-start: 16px;
  }

  .faq-list summary {
    font-size: 14px;
    line-height: 1.65;
    min-height: 75px;
    gap: 14px;
  }

  .faq-list details p {
    font-size: 13px;
    padding-inline-end: 12px;
  }

  .final-cta {
    padding: 31px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    border-radius: 10px;
  }

  .final-cta h2 {
    font-size: 33px;
  }

  .final-cta p {
    font-size: 13px;
    line-height: 1.8;
  }

  .final-cta .button {
    font-size: 13px;
    padding: 12px 18px;
    min-height: 48px;
  }

  .cta-decoration {
    inset-inline-end: -50px;
    top: 60px;
    font-size: 270px;
  }

  .footer {
    padding-block-start: 43px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links {
    gap: 26px;
    font-size: 12px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
  }

  .footer-bottom > span:nth-child(2) {
    flex-basis: 100%;
    order: 3;
  }

  .visual-caption {
    font-size: 10px;
    line-height: 1.8;
  }

  dialog {
    padding: 21px;
  }

  .memory-game button {
    height: 62px;
  }

  .game-arrows button {
    width: 44px;
    height: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.voucher-story,
.voucher-copy {
  min-width: 0;
}

@media (width <= 650px) {
  .voucher-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .voucher-copy h2 br:last-child,
  .hero h1 br:last-child {
    display: initial;
  }

  .big-ticket {
    width: min(270px, calc(100% - 24px));
  }

  .plain-note > span:last-child {
    min-width: 0;
  }

  .big-ticket > strong {
    font-size: clamp(30px, 10vw, 44px);
  }
}

@media (width <= 360px) {
  .voucher-copy h2 {
    font-size: 33px;
  }

  .final-cta h2 {
    font-size: 29px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .demo-top {
    gap: 5px;
  }

  .demo-top > span:first-child {
    font-size: 9px;
  }

  .brand-tabs button {
    font-size: 9px;
  }

  .export-content {
    padding: 16px;
  }

  .format-tall strong {
    font-size: 18px;
  }

  .format-square strong {
    font-size: 17px;
  }

  .format-wide strong {
    font-size: 12px;
  }

  .format-square > span,
  .format-wide > span {
    font-size: 27px;
  }
}

/* Phone tap targets: at least 44px tall */
@media (width <= 650px) {
  .text-link,
  .footer-links a,
  .footer-bottom a,
  .wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .brand-tabs button {
    min-height: 44px;
  }

  .footer-links {
    flex-wrap: wrap;
    column-gap: 20px;
  }
}

/* Shared forward icon for calls to action within the site. */
.action-arrow {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  pointer-events: none;
}

/* "Forward" points right on this English page; it would point left in right-to-left text. The game's physical
   arrows sit in a dir="ltr" box, so they never flip. */
.action-arrow:dir(rtl) {
  transform: scaleX(-1);
}

/* Match the shared dialog structure used by Studio. */
#preview-dialog {
  padding: 0;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 80px #18233229;
}

#preview-dialog[open] {
  display: flex;
  flex-direction: column;
}

#preview-dialog::backdrop {
  background: #17233366;
  backdrop-filter: blur(3px);
}

#preview-dialog .dialog-header {
  flex: none;
  padding: 20px 24px;
  margin: 0;
  border-block-end: 1px solid var(--line);
  gap: 16px;
}

#preview-dialog .dialog-header h2 {
  font-size: 20px;
  line-height: 1.35;
}

#close-preview {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  display: grid;
  place-items: center;
}

#close-preview:hover {
  background: var(--surface);
  color: var(--ink);
}

#preview-content {
  padding: 24px;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

#preview-dialog .dialog-note {
  flex: none;
  margin: 0;
  padding: 16px 24px;
  border-block-start: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

@media (width <= 650px) {
  #preview-dialog {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
  }

  #preview-dialog .dialog-header {
    padding: 16px;
  }

  #preview-dialog .dialog-header h2 {
    font-size: 18px;
  }

  #close-preview {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  #preview-content {
    padding: 20px 16px;
  }

  #preview-dialog .dialog-note {
    padding: 14px 16px;
  }
}
