@font-face {
  font-family: "GenSenRoundedTW";
  src: url("assets/assets/fonts/GenSenRoundedTW-M-AllBop-Subset.otf") format("opentype");
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
}
@font-face {
  font-family: "GenSenRoundedTW";
  src: url("assets/assets/fonts/GenSenRoundedTW-B-AllBop-Subset.otf") format("opentype");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "GenSenRoundedTW";
  src: url("assets/assets/fonts/GenSenRoundedTW-H-AllBop-Subset.otf") format("opentype");
  font-style: normal;
  font-weight: 800 1000;
  font-display: swap;
}

:root {
  --ink: #17233b;
  --paper: #f5f0e6;
  --white: #fffdf8;
  --coral: #ff654f;
  --lime: #cbf43c;
  --blue: #819cff;
  --focus: #315be8;
  --line: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
}

.landing-hero > *,
.landing-stage,
.landing-section-head > *,
.game-card,
.mini-game-card {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

html.landing-active {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
}

.landing-active body {
  position: static !important;
  inset: auto !important;
  min-height: 100%;
  overflow: auto !important;
  user-select: auto !important;
  touch-action: auto !important;
  background: var(--paper);
  color: var(--ink);
  font-family: "GenSenRoundedTW", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

#allbop-landing {
  display: none;
}

.landing-active #allbop-landing {
  display: block;
  position: relative;
  z-index: 10000;
  min-height: 100dvh;
  background:
    linear-gradient(rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.landing-active flutter-view {
  visibility: hidden;
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.landing-skipped #allbop-landing {
  display: none;
}

#allbop-bootstrap {
  display: none;
}

.landing-skipped:not(.flutter-ready) body {
  min-height: 100dvh;
  overflow: hidden;
}

.landing-skipped:not(.flutter-ready) flutter-view {
  visibility: hidden;
}

.landing-skipped:not(.flutter-ready) #allbop-bootstrap,
#allbop-update:not([hidden]) {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 59, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "GenSenRoundedTW", "PingFang TC", "Microsoft JhengHei", sans-serif;
  overflow-y: auto;
}

.update-required flutter-view { visibility: hidden; pointer-events: none; }
.update-required #allbop-bootstrap { visibility: hidden; }
#allbop-update:not([hidden]) { z-index: 10001; }
.bootstrap-card :is(h1, h2) { margin: 24px 0 0; font-size: 22px; text-align: center; }
.bootstrap-card [data-update-message] { line-height: 1.6; text-align: center; }
.bootstrap-versions { width: 100%; margin: 8px 0 24px; }
.bootstrap-versions > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.bootstrap-versions dt { font-size: 14px; }
.bootstrap-versions dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.bootstrap-update-button:not([hidden]) { width: 100%; min-height: 48px; padding: 12px; border: var(--line); border-radius: 4px; color: var(--ink); background: var(--lime); font: inherit; font-weight: 800; cursor: pointer; }
.bootstrap-update-button:disabled { cursor: wait; opacity: .65; }
.bootstrap-update-button:focus-visible, .bootstrap-update-home:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.bootstrap-update-home { display: grid; min-height: 48px; place-items: center; margin-top: 12px; color: var(--ink); }

.bootstrap-card {
  display: grid;
  width: min(360px, 100%);
  min-width: 0;
  justify-items: center;
  padding: 28px 32px;
  border: var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--coral);
}

.bootstrap-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.bootstrap-brand-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 7px 0 0 var(--lime);
}

.bootstrap-card p {
  margin: 18px 0 12px;
  font-weight: 750;
}

.bootstrap-download {
  width: 100%;
  margin: 4px 0 18px;
}

.bootstrap-download-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bootstrap-download strong,
.bootstrap-download p {
  font-variant-numeric: tabular-nums;
}

.bootstrap-download progress {
  display: block;
  width: 100%;
  height: 16px;
  margin: 10px 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  accent-color: var(--blue);
  appearance: none;
}

.bootstrap-download progress::-webkit-progress-bar { background: var(--paper); }
.bootstrap-download progress::-webkit-progress-value { background: var(--blue); }
.bootstrap-download progress::-moz-progress-bar { background: var(--blue); }
.bootstrap-download progress:not([value]) {
  background: repeating-linear-gradient(120deg, var(--paper) 0 12px, var(--blue) 12px 24px);
}
.bootstrap-download progress:not([value])::-webkit-progress-bar { background: transparent; }
.bootstrap-download p {
  margin: 0 0 4px;
  font-size: 14px;
}

.bootstrap-card .bootstrap-detail {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.bootstrap-recovery:not([hidden]) {
  display: grid;
  gap: 12px;
  width: 100%;
}

.bootstrap-recovery button,
.bootstrap-recovery a {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.bootstrap-recovery button {
  background: var(--lime);
}

.bootstrap-recovery :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.bootstrap-dots {
  display: flex;
  margin-top: 12px;
  min-height: 12px;
  gap: 8px;
  align-items: center;
}

.bootstrap-dots i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  animation: bootstrap-pulse 900ms ease-in-out infinite alternate;
}

.bootstrap-dots i:nth-child(2) {
  animation-delay: 150ms;
}

.bootstrap-dots i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes bootstrap-pulse {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

.landing-skip {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.landing-skip:focus {
  transform: translateY(0);
}

.landing-nav,
.landing-hero,
.landing-steps,
.landing-games,
.landing-mini-games,
.landing-pricing-page,
.landing-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 88px;
  border-bottom: var(--line);
}

/* The header language menu (landing-i18n.js). */
.landing-lang {
  position: relative;
  z-index: 20;
}

.landing-lang-button {
  display: inline-flex;
  min-height: 48px;
  gap: 6px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.landing-lang-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.landing-lang-button .landing-lang-caret {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transition: transform 150ms ease;
}

.landing-lang-button[aria-expanded="true"] .landing-lang-caret {
  transform: rotate(180deg);
}

.landing-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  border: var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
}

.landing-lang-menu a {
  display: flex;
  min-height: 48px;
  gap: 16px;
  align-items: center;
  padding-inline: 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.landing-lang-menu a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.landing-lang-menu a:focus-visible {
  outline-offset: -4px;
}

.landing-lang-menu a[aria-current]::after {
  width: 18px;
  height: 18px;
  margin-left: auto;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.landing-brand {
  margin-right: auto;
  display: inline-flex;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.landing-brand-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 7px 0 0 var(--lime);
}

.landing-nav-link,
.landing-text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: calc(100dvh - 136px);
  padding-block: 72px 88px;
}

.landing-kicker,
.landing-section-head > p {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.landing-hero h1,
.landing-section-head :is(h1, h2),
.landing-final h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.landing-hero h1 {
  max-width: 8em;
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: 0.98;
}

.landing-lead {
  max-width: 31em;
  margin: 34px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 560;
  line-height: 1.75;
}

.landing-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 38px;
}

.landing-enter {
  display: inline-flex;
  min-width: 230px;
  min-height: 68px;
  padding: 14px 18px 14px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: var(--line);
  border-radius: 4px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--coral);
  cursor: pointer;
  font: 850 20px/1 "GenSenRoundedTW", "PingFang TC", sans-serif;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.landing-enter svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.5;
}

.landing-enter:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--coral);
}

.landing-enter:active {
  transform: translate(4px, 4px);
  box-shadow: 3px 3px 0 var(--coral);
}

.landing-fineprint {
  margin: 26px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.landing-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: 26px;
  border: var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 14px 14px 0 var(--blue);
  transform: rotate(1.4deg);
}

.landing-stage-head,
.landing-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}

.landing-stage-head {
  padding-bottom: 22px;
  border-bottom: var(--line);
}

.landing-live {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.landing-live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.landing-wheel-wrap {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.landing-wheel {
  display: grid;
  width: min(300px, 68vw);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(
    var(--coral) 0deg 60deg,
    var(--paper) 60deg 120deg,
    var(--blue) 120deg 180deg,
    var(--lime) 180deg 240deg,
    var(--paper) 240deg 300deg,
    var(--coral) 300deg 360deg
  );
  box-shadow: inset 0 0 0 7px var(--white), 8px 8px 0 var(--ink);
}

.landing-wheel span {
  display: grid;
  width: 84px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 26px;
  font-weight: 950;
}

.landing-pointer {
  position: absolute;
  z-index: 2;
  top: 35px;
  width: 0;
  height: 0;
  border-top: 32px solid var(--ink);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
}

.landing-stage-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: var(--line);
}

.landing-stage-foot strong {
  font-size: 24px;
}

.landing-sticker {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: grid;
  width: 118px;
  aspect-ratio: 1;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--lime);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-9deg);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line);
  border-bottom: var(--line);
}

.landing-steps article {
  min-height: 230px;
  padding: 36px 32px;
}

.landing-steps article + article {
  border-left: var(--line);
}

.landing-steps b,
.game-card > span {
  font-size: 14px;
  font-weight: 900;
}

.landing-steps h2 {
  margin: 34px 0 10px;
  font-size: 25px;
}

.landing-steps p,
.game-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.landing-games {
  padding-block: 128px;
}

.landing-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.landing-section-head > p {
  margin: 0 0 8px;
}

.landing-section-head :is(h1, h2) {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1;
  text-align: right;
}

.landing-game-grid,
.landing-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.game-card,
.mini-game-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-right: var(--line);
  border-bottom: var(--line);
}

.game-info,
.game-guide-close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font: 900 20px/1 RobotoMono, monospace;
  cursor: pointer;
}

/* The info button sits on the card's own colour: no white disc, the same
   2px ink line as the card grid, and the page font instead of monospace. */
.game-info {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  font: 800 19px/1 "GenSenRoundedTW", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.game-info:hover,
.game-info:focus-visible {
  color: var(--white);
  background: var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.game-guide-close:hover,
.game-guide-close:focus-visible {
  background: var(--lime);
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.game-guide-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}

.game-guide-dialog::backdrop { background: rgb(20 23 33 / 70%); }
.game-guide-dialog h2 { margin: 0 64px 24px 0; font-size: clamp(28px, 5vw, 52px); }
.game-guide-close { position: absolute; top: 18px; right: 18px; }
.game-guide-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-guide-panels figure { min-width: 0; margin: 0; }
.game-guide-panels h3 { margin: 16px 0 8px; font-size: 22px; line-height: 1.4; }
.game-guide-panels p { margin: 0; font-size: 16px; line-height: 1.7; white-space: pre-line; }
.game-guide-panels .game-guide-section { grid-column: 1 / -1; margin-top: 24px; }
.game-guide-panels img[hidden] { display: none; }
.game-guide-panels img { display: block; width: 100%; height: auto; border: var(--line); border-radius: 16px; background: var(--white); }

@media (max-width: 720px) {
  .game-guide-panels { grid-template-columns: 1fr; }
}

.game-card h3 {
  margin: 70px 0 12px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.landing-mini-games {
  padding-bottom: 128px;
}

.landing-group-title {
  margin: 0 0 32px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

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

.mini-game-card {
  min-height: 200px;
  padding: 20px;
}

.mini-game-card .game-info {
  top: 16px;
  right: 16px;
  font-size: 18px;
}

.mini-game-card h3 {
  margin: 48px 0 10px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.mini-game-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.game-coral { background: var(--coral); }
.game-lime { background: var(--lime); }
.game-blue { background: var(--blue); }
.game-paper { background: var(--white); }

.landing-final {
  padding: 110px max(24px, calc((100% - 1132px) / 2));
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.landing-final > p {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 750;
}

.landing-final h2 {
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1;
}

.landing-enter-light {
  margin-top: 44px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--coral);
}

.landing-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.landing-footer strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.landing-footer {
  flex-wrap: wrap;
  row-gap: 0;
  padding-block: 24px;
}

/* The policy links follow the wordmark on its row; the tagline keeps the
   right edge and wraps below only when the row runs out. */
.landing-legal {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  column-gap: 20px;
  margin-left: 16px;
}

/* Guide links share the wordmark row; policy links take their own row. */
.landing-legal + .landing-legal {
  order: 3;
  flex-basis: 100%;
  margin-left: 0;
}

.landing-legal a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.landing-nav-links {
  display: flex;
  gap: 28px;
}

.landing-nav-link[aria-current="page"] {
  background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 88%, transparent 88%);
  text-decoration: none;
}

/* /pricing: the same shell shows only the plan cards (landing-head.js). */
html:not(.landing-pricing) .landing-pricing-page,
.landing-pricing #landing-main > :not(.landing-pricing-page) {
  display: none;
}

.landing-pricing-page {
  padding-block: 96px 128px;
}

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

.pricing-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  margin: 40px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.pricing-contact a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-contact a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Each card's colours are these properties; the paid card overrides them. */
.pricing-card {
  --plan-ink: var(--ink);
  --plan-surface: var(--white);
  --plan-border: var(--ink);
  --plan-shadow: none;
  --plan-price-ink: var(--ink);
  --plan-cta-ink: var(--ink);
  --plan-cta-surface: var(--paper);
  --plan-focus: var(--focus);
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 28px;
  padding: 36px;
  border: 2px solid var(--plan-border);
  border-radius: 4px;
  color: var(--plan-ink);
  background: var(--plan-surface);
  box-shadow: var(--plan-shadow);
}

.pricing-card-paid {
  --plan-ink: var(--white);
  --plan-surface: var(--ink);
  --plan-price-ink: var(--lime);
  --plan-shadow: 9px 9px 0 var(--coral);
  --plan-cta-ink: var(--ink);
  --plan-cta-surface: var(--lime);
  /* The default blue ring is too faint on the ink surface. */
  --plan-focus: var(--lime);
}

.pricing-card :where(a, button):focus-visible {
  outline-color: var(--plan-focus);
}

.pricing-card h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin: 0;
}

.pricing-price strong {
  color: var(--plan-price-ink);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-price span {
  font-size: 17px;
  font-weight: 750;
}

.pricing-price small {
  flex-basis: 100%;
  font-size: 15px;
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
  min-width: 0;
  color: var(--plan-cta-ink);
  background: var(--plan-cta-surface);
}

.pricing-features {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}

.pricing-features li {
  display: flex;
  gap: 14px;
}

.pricing-features li::before {
  flex: none;
  width: 12px;
  height: 7px;
  margin-top: 6px;
  border-bottom: 2.5px solid currentColor;
  border-left: 2.5px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.landing-noscript {
  margin: 0;
  padding: 24px;
  color: #fff;
  background: #17233b;
  font-family: sans-serif;
  text-align: center;
}

:where(a, button):focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.landing-final :where(a, button):focus-visible {
  outline-color: var(--lime);
}

@media (max-width: 920px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .landing-stage {
    width: min(620px, calc(100% - 16px));
    margin-inline: auto;
  }

  .landing-steps,
  .landing-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-steps article:last-child {
    grid-column: 1 / -1;
    border-top: var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  /* Phones: globe only; the label stays for screen readers. */
  .landing-lang-button {
    min-width: 48px;
    justify-content: center;
  }

  .landing-lang-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .landing-lang-button .landing-lang-caret {
    display: none;
  }

  .landing-nav,
  .landing-hero,
  .landing-steps,
  .landing-games,
  .landing-mini-games,
  .landing-pricing-page,
  .landing-footer {
    width: min(100% - 32px, 1180px);
  }

  .landing-nav {
    min-height: 72px;
    gap: 16px;
  }

  .landing-hero {
    gap: 58px;
    min-height: auto;
    padding-block: 56px 80px;
  }

  .landing-hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .landing-lead {
    margin-top: 28px;
    font-size: 17px;
  }

  .landing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-enter {
    width: 100%;
    min-height: 64px;
  }

  .landing-text-link {
    min-height: 48px;
    padding-block: 12px;
    text-align: center;
  }

  .landing-stage {
    min-height: 480px;
    padding: 20px;
    box-shadow: 9px 9px 0 var(--blue);
    transform: none;
  }

  .landing-wheel-wrap {
    min-height: 320px;
  }

  .landing-wheel {
    width: 240px;
  }

  .landing-pointer {
    top: 25px;
  }

  .landing-stage-foot span:last-child {
    display: none;
  }

  .landing-sticker {
    right: 0;
    bottom: 62px;
    width: 92px;
    font-size: 13px;
  }

  .landing-steps,
  .landing-game-grid {
    grid-template-columns: 1fr;
  }

  .landing-steps article {
    min-height: 190px;
  }

  .landing-steps article + article,
  .landing-steps article:last-child {
    grid-column: auto;
    border-top: var(--line);
    border-left: 0;
  }

  .landing-games {
    padding-block: 88px;
  }

  .landing-section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .landing-section-head :is(h1, h2) {
    font-size: 50px;
    text-align: left;
  }

  .game-card {
    min-height: 220px;
  }

  .game-card h3 {
    margin-top: 54px;
  }

  .landing-mini-games {
    padding-bottom: 88px;
  }

  .landing-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-game-card {
    padding: 16px;
  }

  .mini-game-card p {
    font-size: 16px;
  }

  .landing-final {
    padding-block: 88px;
  }

  .landing-footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }

  .landing-legal {
    flex: none;
    margin-left: 0;
  }

  .landing-pricing-page {
    padding-block: 56px 88px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  .landing-enter {
    min-width: 0;
  }

  .landing-stage {
    width: 100%;
    padding: 12px;
    box-shadow: 5px 5px 0 var(--blue);
  }

  .landing-stage-head,
  .landing-stage-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-wheel {
    width: min(240px, 100%);
  }

  .landing-section-head :is(h1, h2) {
    font-size: clamp(36px, 16vw, 50px);
  }
}

@media (max-width: 280px) {
  .landing-nav-link,
  .landing-sticker {
    display: none;
  }

  .landing-nav,
  .landing-hero,
  .landing-steps,
  .landing-games,
  .landing-mini-games,
  .landing-pricing-page,
  .landing-footer {
    width: min(100% - 24px, 1180px);
  }

  .landing-wheel-wrap {
    min-height: 220px;
  }

  .landing-stage {
    min-height: 360px;
  }
}

/* Phone-browser app nudge; landing-head.js decides when it shows. */
.app-banner-shown #allbop-landing {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.app-banner:not([hidden]) {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 env(safe-area-inset-bottom) 12px;
  color: var(--white);
  background: var(--ink);
}

.app-banner p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(12px, 3.6vw, 14px);
  font-weight: 700;
  line-height: 48px;
  white-space: nowrap;
}

.app-banner-open {
  flex: none;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-decoration: none;
}

.app-banner-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

.app-banner-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.app-banner :focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.app-banner-close:focus-visible {
  outline-offset: -6px;
}

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

  .landing-enter,
  .landing-lang-button .landing-lang-caret {
    transition: none;
  }

  .bootstrap-dots i {
    animation: none;
  }
}
