:root {
  color-scheme: dark;
  --ink: #070716;
  --night: #0c0b24;
  --cobalt: #2437dc;
  --electric: #5265ff;
  --ice: #fff;
  --muted: #cbd2ff;
  --game-font: "OMORI_GAME", monospace;
  --page-gutter: clamp(18px, 4cqw, 76.8px);
  --content-width: 72cqw;
  --hero-step-gap: clamp(24px, 5svh, 64px);
  --section-heading-size: clamp(48px, 6.667cqw, 100px);
  --task-card-height: clamp(280px, 22cqw, 380px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--ink); }
html.is-loading { overflow: hidden; }
.loading-screen {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  background: #070716;
  color: #fff;
  font-family: var(--game-font);
  font-size: clamp(30px, 4vw, 54px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s 220ms;
}
.loading-content { display: grid; justify-items: center; gap: 22px; }
.loading-screen p { margin: 0; animation: loading-pulse 1.6s ease-in-out infinite; animation-play-state: paused; }
.loading-orbit { position: relative; width: 46px; height: 46px; border: 1px solid rgba(135, 156, 255, .25); border-radius: 50%; animation: loading-turn 1.3s linear infinite; animation-play-state: paused; }
.loading-orbit::before { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #dbe5ff; box-shadow: 0 0 14px #647bff; }
.is-loading .loading-screen { opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
.is-loading .loading-orbit,
.is-loading .loading-screen p { animation-play-state: running; }
.is-loading .canvas { visibility: hidden; }
[data-reveal-pending] { opacity: 0; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
@keyframes loading-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

body {
  margin: 0;
  color: var(--ice);
  background: var(--ink);
  font-family: var(--game-font);
}

button { font: inherit; }

button:not(:disabled), a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--muted); outline-offset: 5px; }

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

.canvas {
  position: relative;
  container-type: inline-size;
  width: min(100%, 1920px);
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: #070707;
}

.canvas::before,
.canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shader-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.shader-background.is-ready { opacity: 1; }

.canvas::before {
  z-index: 0;
  opacity: .9;
  background: radial-gradient(ellipse 70% 67% at 50% 26%, rgba(3, 0, 44, .05) 1%, #a8a2ff 100%);
}

.canvas::after {
  z-index: 0;
  background: rgba(7, 7, 16, .86);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.masthead,
.hero,
.game,
.about,
.footer { position: relative; width: 100%; z-index: 1; }

.masthead {
  position: relative;
  top: 0;
  left: 0;
  z-index: 5;
  display: block;
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
  padding: clamp(18px, 2cqw, 30px) 0 0;
}
.header-panel.chrome-panel { --panel-tilt: 0deg; width: fit-content; max-width: 100%; margin-inline: auto; padding: 10px; border-radius: clamp(24px, 3cqw, 46px); box-shadow: inset 0 0 0 1px rgba(146, 171, 245, .3), 0 12px 36px rgba(0, 0, 0, .14); }
.header-panel.chrome-panel:not(.is-shaded) { background: linear-gradient(135deg, #0c1536, #253d77 28%, #101d45 52%, #304c89 72%, #0d173b); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1cqw, 16px); min-width: 0; width: auto; }
.masthead .connect-button { margin-left: 0; flex-shrink: 0; }
.header-panel .nav-button,
.header-panel .connect-button { display: grid; place-items: center; height: clamp(44px, 4cqw, 60px); min-height: clamp(44px, 4cqw, 60px); padding: 6px 14px 9px; font-size: clamp(24px, 2.4cqw, 36px); border-radius: 999px; --panel-tilt: 0deg; }
.header-panel .nav-button:nth-child(2) { padding-inline: 20px; --panel-tilt: 0deg; }
.nav-button,
.page-go { min-height: 44px; padding: 6px 14px 9px; border-radius: 12px; font-size: clamp(24px, 2.2cqw, 36px); line-height: 1; white-space: nowrap; transition: transform 140ms ease, filter 140ms ease; }
.nav-button.chrome-panel:not(.is-shaded),
.page-go.chrome-panel:not(.is-shaded) { background: linear-gradient(135deg, #101b61, #345bbb, #132769); }
.nav-button { --panel-tilt: -.6deg; }
.nav-button:nth-child(2) { --panel-tilt: .6deg; }

.connect-button {
  min-width: clamp(90px, 10.5cqw, 160px);
  padding: .5cqw 1cqw .6cqw;
  border: 0;
  border-radius: 1.25cqw;
  color: #fff;
  background: #d9d9d9;
  font-size: clamp(22px, 2.8cqw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
  max-width: 100%;
  transition: min-width 280ms ease, transform 180ms ease, filter 180ms ease;
}

.connect-button > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-button.chrome-panel { color: #111; }
.connect-button.is-connected.chrome-panel {
  min-width: clamp(128px, 14cqw, 212px);
  background: linear-gradient(135deg, #12254d, #4566be 48%, #193575 70%, #7395df);
  box-shadow: 0 0 24px rgba(108, 157, 255, .2), 0 0 48px rgba(53, 94, 225, .12);
}
.connect-button.is-connected .panel-shader:not([data-shader-state="connected"]),
.connect-button:not(.is-connected) .panel-shader[data-shader-state="connected"] { opacity: 0; }

.hero { padding: 0; }

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  gap: clamp(24px, 4svh, 48px);
  padding-inline: var(--page-gutter);
}

.hero-stage--intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
  min-height: 0;
  gap: 4cqw;
  align-items: center;
  padding: clamp(24px, 3svh, 40px) 0 clamp(24px, 3svh, 36px);
}
.hero-stage--intro .hero-title {
  width: 100%;
  top: -1.2cqw;
  height: auto;
  aspect-ratio: 892 / 300;
  margin: 0;
}
.hero-stage--intro .statement {
  margin: 0;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.85;
  padding: clamp(20px, 2cqw, 38px);
  font-size: clamp(25px, 2.7cqw, 48px);
}
.hero-stage--intro .hero-panel { grid-column: 2; grid-row: 1; }
.hero-stage--intro .hero-panel.account-summary { min-height: 210px; gap: clamp(10px, 1cqw, 16px); }
.account-connect { display: grid; place-items: center; gap: clamp(14px, 1.5cqw, 22px); width: 100%; }
.account-connect-copy { font-size: clamp(32px, 3.2cqw, 50px); line-height: 1.1; text-align: center; color: #f0f3ff; }
.account-summary .connect-button { --panel-tilt: 0deg; min-width: clamp(150px, 15cqw, 240px); min-height: 56px; padding: 8px 24px 12px; border-radius: 999px; font-size: clamp(36px, 3.6cqw, 58px); }
.account-details { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1cqw, 16px); width: 100%; }
.account-details > .surface-hit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.account-summary:not(.is-connected):hover { scale: 1; }
.account-handle { font-size: clamp(26px, 2.3cqw, 42px); line-height: 1; color: #dce5ff; }
.account-rank { display: flex; align-items: baseline; justify-content: center; gap: .35em; font-size: clamp(32px, 3.3cqw, 60px); }
.account-rank strong { font-size: 1.5em; font-weight: 400; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1cqw, 20px); width: 100%; margin: 0; }
.account-stats div { min-width: 0; display: grid; grid-template-rows: 1fr auto; align-items: start; }
.account-stats dt { font-size: clamp(24px, 2.1cqw, 38px); line-height: 1.1; color: #dce2ff; }
.account-stats dd { margin: 8px 0 0; font-size: clamp(32px, 3.1cqw, 56px); line-height: 1; white-space: nowrap; }
.account-stats dt,
.account-stats dd { -webkit-text-stroke: .028125em rgba(255, 255, 255, .9); paint-order: stroke fill; }
.hero-stage--intro .hero-title { grid-column: 1; grid-row: 1; }
.hero-stage--intro .floating-heart--left { top: 18%; left: -7cqw; width: 4.8cqw; height: 4.8cqw; }
.hero-stage--intro .floating-heart--right { top: 30%; left: auto; right: -8cqw; width: 5cqw; height: 5cqw; }
.hero-stage--intro .floating-heart--lower { top: auto; bottom: -24px; left: -10cqw; width: 3.5cqw; height: 3.5cqw; }
.hero-stage--intro .floating-plus--intro { top: auto; bottom: -18px; right: -7cqw; width: 4cqw; }
.hero-stage--intro .floating-plus--intro-extra { top: 57%; left: -10cqw; right: auto; width: 3.5cqw; }
.hero-stage--intro .floating-flower--intro { top: 0; left: -9cqw; width: 3.5cqw; }
.hero-stage--intro .floating-heart--intro-extra { top: auto; bottom: 0; right: -8cqw; width: 3.5cqw; height: 3.5cqw; }
.hero-stage--intro .direction-marker--first {
  width: clamp(112px, 11.615cqw, 223px);
  height: clamp(38px, min(3.854cqw, 8svh), 74px);
  margin: auto 0 0;
  font-size: clamp(28px, min(3.33cqw, 6svh), 64px);
}
.hero-stage--details {
  min-height: auto;
  justify-content: flex-start;
  gap: var(--hero-step-gap);
  padding-top: 0;
  padding-bottom: var(--hero-step-gap);
}
.hero-stage--details .direction-marker { margin: 0; }

.chrome-title {
  position: absolute;
  margin: 0;
  width: 46.458333cqw;
  height: 15.625cqw;
  overflow: visible;
  isolation: isolate;
  font-family: "Times New Roman", Times, serif;
  font-size: 16.667cqw;
  font-style: italic;
  font-weight: 700;
  line-height: 1.14990234375;
  letter-spacing: -.11em;
  white-space: nowrap;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform-origin: var(--visual-center-x, 50%) var(--visual-center-y, 50%);
}

.title-art {
  position: absolute;
  left: var(--title-art-left);
  top: var(--title-art-top);
  width: var(--title-art-width);
  height: var(--title-art-height);
  overflow: visible;
  pointer-events: none;
}

.title-art { z-index: 1; }
.title-vector-art { display: block; }

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

/* Preserve subpixel motion when WebRender composites the vector image. */
.title-vector-art { rotate: .05deg; }

.hero-panel.chrome-panel:not(.is-shaded),
.leaderboard-card.chrome-panel:not(.is-shaded) { background: linear-gradient(135deg, #152c8b, #050c32 52%, #172969); }
.connect-button.chrome-panel:not(.is-shaded):not(.is-connected) { background: linear-gradient(135deg, #d5d5d5, #fff 48%, #bababa 70%, #eee); }
.copy-button.chrome-panel:not(.is-shaded) { background: linear-gradient(135deg, #131319, #030307 55%, #20202a); }

.hero-title { position: relative; flex-shrink: 0; margin-bottom: 6.25cqw; }

.hero-title,
.about-title,
.floating-heart,
.floating-plus,
.floating-flower {
  --surface-rest-scale: 1;
  animation: idle-float 5.5s ease-in-out infinite alternate;
  transition: scale 60ms ease;
}
.about-title { animation-delay: -2s; }
.hero-title { transition: scale 180ms cubic-bezier(.4, 0, .2, 1); }

.floating-heart,
.floating-plus,
.floating-flower {
  position: absolute;
  width: 8.49cqw;
  height: 8.49cqw;
  transform-origin: center;
}

.floating-heart svg,
.floating-plus svg,
.floating-flower svg { display: block; width: 100%; height: 100%; }
.decoration-button { padding: 0; border: 0; background: transparent; color: inherit; }

.heart-shader,
.plus-shader,
.flower-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.floating-heart.is-shaded svg { opacity: 0; }
.decoration-button.is-shaded svg { display: none; }
.floating-heart.is-shaded .heart-shader { opacity: 1; }
.floating-plus.is-shaded svg { opacity: 0; }
.floating-plus.is-shaded .plus-shader { opacity: 1; }
.floating-flower.is-shaded svg { opacity: 0; }
.floating-flower.is-shaded .flower-shader { opacity: 1; }

.floating-heart--right { top: 21cqw; left: 78cqw; rotate: -21.89deg; animation-duration: 4.8s; animation-delay: -1s; }
.floating-heart--left { top: 5cqw; left: 12cqw; rotate: 21.37deg; animation-duration: 6s; animation-delay: -3s; }
.floating-heart--lower { top: 42cqw; left: 12cqw; rotate: 14.52deg; animation-duration: 5.2s; animation-delay: -2s; }
.floating-plus { width: clamp(48px, 7cqw, 118px); height: auto; aspect-ratio: 1; }
.floating-plus--intro { top: 48svh; right: 5cqw; rotate: 17deg; animation-delay: -2.5s; }
.floating-plus--details { top: 48%; left: 5cqw; rotate: -14deg; animation-duration: 6.4s; }
.floating-heart--details { top: 8%; right: 5cqw; width: 5.5cqw; height: 5.5cqw; rotate: -18deg; animation-delay: -3s; }
.floating-plus--game { top: calc(var(--section-heading-size) * 1.05 + var(--task-card-height) + 26px); left: auto; right: -8cqw; width: 4.5cqw; rotate: 12deg; animation-delay: -1.5s; }
.floating-heart--game { bottom: 12%; right: -9cqw; width: 5cqw; height: 5cqw; rotate: -24deg; animation-duration: 6.2s; }
.floating-plus--about { top: 16%; right: -8cqw; width: 4.5cqw; rotate: -12deg; animation-delay: -4s; }
.floating-heart--about { bottom: 8%; left: -9cqw; width: 4.5cqw; height: 4.5cqw; rotate: 20deg; animation-delay: -1s; }
.floating-flower { width: clamp(54px, 7cqw, 118px); height: auto; aspect-ratio: 1; }
.floating-flower--intro { top: 23svh; left: 5cqw; rotate: 12deg; animation-delay: -3s; }
.floating-flower--details { bottom: 12px; right: 13cqw; rotate: -16deg; animation-delay: -1s; }
.floating-flower--game { top: 69%; left: -7cqw; width: 5cqw; rotate: 8deg; animation-duration: 6.5s; }
.floating-flower--about { top: 34%; left: -9cqw; width: 5.5cqw; rotate: -12deg; animation-delay: -4s; }
.floating-heart--intro-extra { top: 68svh; right: 3cqw; width: 4cqw; height: 4cqw; rotate: 15deg; animation-delay: -2s; }
.floating-heart--details-extra { top: 8%; left: 12cqw; width: 4cqw; height: 4cqw; rotate: 23deg; animation-delay: -4s; }
.floating-heart--game-extra { top: 9%; left: auto; right: -6cqw; width: 3.5cqw; height: 3.5cqw; rotate: -15deg; animation-delay: -3s; }
.floating-plus--intro-extra { top: 14svh; right: 21cqw; width: 4cqw; animation-delay: -4s; rotate: -10deg; }
.floating-plus--about-extra { bottom: 4%; right: -8cqw; width: 3cqw; animation-delay: -1s; rotate: 20deg; }
.floating-flower--tasks { top: 17%; left: -9cqw; width: 4.5cqw; rotate: 14deg; animation-delay: -3s; }
.floating-plus--tasks { top: 44%; left: -9cqw; width: 3cqw; rotate: -10deg; animation-delay: -4s; }
.floating-heart--about-extra { top: 13%; right: 13%; width: 3.5cqw; height: 3.5cqw; rotate: 16deg; animation-delay: -2s; }
.canvas > .page-decoration { z-index: 2; top: clamp(24px, 2.6cqw, 50px); width: clamp(34px, 4.5cqw, 78px); height: auto; aspect-ratio: 1; }
.page-decoration--top-left { left: clamp(18px, 3.4cqw, 64px); rotate: -16deg; }
.page-decoration--top-right { right: clamp(18px, 3.4cqw, 64px); rotate: 14deg; }
.page-decoration--upper-mid-left { left: 20cqw; rotate: 19deg; }
.page-decoration--upper-mid-right { right: 20cqw; rotate: -18deg; }
.canvas > .page-decoration--upper-mid-left,
.canvas > .page-decoration--upper-mid-right { width: 3.4cqw; }
.floating-heart--leaderboard-side { top: 58%; left: -8cqw; width: 3.7cqw; height: 3.7cqw; rotate: 18deg; }
.floating-plus--about-middle { top: 58%; right: -8cqw; width: 3.7cqw; rotate: 22deg; }
.floating-plus--game-upper { top: 29%; left: -10cqw; width: 3.2cqw; rotate: -20deg; }
.floating-flower--leaderboard-right { top: 62%; right: -10cqw; width: 3.4cqw; rotate: -13deg; }
.floating-heart--about-upper-left { top: 9%; left: -5.5cqw; width: 3.3cqw; height: 3.3cqw; rotate: 18deg; }
.floating-flower--about-lower-right { bottom: 22%; right: -6cqw; width: 3.5cqw; rotate: -16deg; }
.decoration-button {
  --decor-travel: .6;
  animation-name: var(--decoration-path, idle-float);
  animation-duration: var(--decoration-period, 5.5s);
  animation-delay: var(--decoration-phase, 0s);
  animation-direction: var(--decoration-direction, alternate);
}

.chrome-panel {
  rotate: var(--panel-tilt, -1deg);
  position: relative;
  border: 0;
  color: #fff;
  background: #d9d9d9;
  box-shadow: none;
}

.panel-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.chrome-panel.is-shaded { background: transparent; }
.chrome-panel.is-shaded .panel-shader { opacity: 1; }
.chrome-panel > :not(canvas) { position: relative; z-index: 1; }
.surface-hit { border: 0; padding: 0; background: transparent; color: inherit; border-radius: inherit; }
.chrome-panel > .surface-hit,
.chrome-title > .surface-hit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.statement { --surface-rest-scale: 1; transition: scale 60ms ease; transform-origin: center; }
.referral-card.chrome-panel:not(.is-shaded),
.task-art.chrome-panel:not(.is-shaded) {
  background: linear-gradient(135deg, #d5d5d5, #fff 48%, #bababa 70%, #eee);
}
.connect-button { --panel-tilt: 1deg; }
.copy-button { --panel-tilt: -1deg; }
.task-art { --panel-tilt: .8deg; }
.leaderboard-card { --panel-tilt: .7deg; }
.referral-card.chrome-panel { color: #111; }
.referral-card h3,
.referral-card p { color: #111; }

.referral-card,
.task-art {
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 200ms ease-out;
}
.referral-card.is-pointer-active,
.task-art.is-pointer-active { will-change: transform; transition: transform 80ms linear; }

.referral-card::before,
.task-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 35%, rgba(203, 210, 255, .05), transparent 65%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.referral-card::after,
.task-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25em;
  width: min(100%, 56cqw);
  min-height: 9.16cqw;
  padding: 1.25cqw 1.5cqw;
  border-radius: 2.4cqw;
  text-align: center;
  font-size: clamp(26px, 3.33cqw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.statement p { max-width: 100%; margin: 0; }
.hero-stage .statement--first { width: fit-content; max-width: 100%; }

.direction-marker {
  display: grid;
  place-items: center;
  width: 11.615cqw;
  height: 3.854cqw;
  flex-shrink: 0;
  margin-top: 3cqw;
  border-radius: .99cqw;
  font-size: 3.33cqw;
  line-height: 1.125;
  letter-spacing: -.04em;
  white-space: pre;
  padding: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.direction-marker--first { margin-bottom: 3cqw; }

.game,
.about {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.2cqw;
  align-items: start;
  grid-template-areas: "tasks-heading" "tasks" "leaderboard-heading" "leaderboard";
  row-gap: 18px;
}
.tasks-heading { grid-area: tasks-heading; }
.game .leaderboard-heading { grid-area: leaderboard-heading; margin-top: clamp(12px, 1.5cqw, 28px); }
.tasks-column { grid-area: tasks; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2cqw, 36px); align-items: stretch; }
.leaderboard-column { grid-area: leaderboard; width: min(100%, 56cqw); justify-self: center; }
.game h2 button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; transition: scale 90ms ease; }
.game h2 button:hover { scale: 1.04; }
.game h2 button:active { scale: .95; }

.tasks-column,
.leaderboard-column { min-width: 0; }

.game h2 {
  margin: 0;
  font-size: var(--section-heading-size);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-align: center;
}

.referral-card {
  display: flex;
  flex-direction: column;
  gap: .75cqw;
  min-height: var(--task-card-height);
  height: var(--task-card-height);
  padding: 1.25cqw 1.5cqw;
  border-radius: 1cqw;
}

.referral-card h3,
.referral-card p { position: relative; margin: 0; font-size: clamp(34px, 3.5cqw, 56px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; }
.referral-card p { width: 100%; overflow-wrap: anywhere; }
.referral-card button {
  position: relative;
  align-self: flex-start;
  min-width: clamp(140px, 12cqw, 200px);
  min-height: 48px;
  margin-top: auto;
  padding: 6px 14px 9px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: #d9d9d9;
  font-size: clamp(34px, 3.5cqw, 56px);
  line-height: 1;
  transition: transform 180ms ease, filter 180ms ease;
}

.copy-button.is-copied { color: #e0ffef; filter: brightness(1.15); }
.copy-button.is-copy-error { color: #ffe1df; }

.task-art {
  height: var(--task-card-height);
  margin-top: 0;
  border-radius: 1cqw;
}
.task-art--third { --panel-tilt: -.8deg; }

.leaderboard-card {
  display: flex;
  flex-direction: column;
  min-height: 46cqw;
  padding: 1.25cqw 1.5cqw;
  border-radius: 1cqw;
  font-size: 3.33cqw;
  line-height: 1;
  letter-spacing: -.03em;
}

.leaderboard-list { min-height: 35cqw; margin: .5cqw 0 0; padding: 0; list-style: none; }

.leaderboard-row {
  display: grid;
  grid-template-columns: 4.8cqw minmax(0, 1fr) auto;
  gap: 1cqw;
  align-items: center;
  min-height: 3.5cqw;
}

.leaderboard-row--you {
  margin-bottom: .75cqw;
  padding-bottom: .75cqw;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.leaderboard-row .rank,
.leaderboard-row .points { white-space: nowrap; }
.leaderboard-row .rank { text-align: center; }
.leaderboard-row .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row .points { padding-right: .4cqw; text-align: right; }

.leaderboard-pagination {
  --page-corner-radius: .3125cqw;
  --page-button-height: max(32px, 2.6cqw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: .75cqw;
  margin-top: auto;
  font-size: 3.33cqw;
  flex-wrap: wrap;
}
.page-jump { display: flex; align-items: center; gap: 10px; font-size: .8em; }
.page-input-shell { display: inline-flex; flex-shrink: 0; width: max(38px, 2.5ch); height: var(--page-button-height); border-radius: var(--page-corner-radius); --panel-tilt: 0deg; }
.page-input-shell.chrome-panel:not(.is-shaded) { background: linear-gradient(135deg, #101b61, #345bbb, #132769); }
.page-input { width: 100%; min-width: 0; height: 100%; padding: 0 3px 3px; border: 0; border-radius: inherit; background: transparent; color: #fff; font: inherit; line-height: 1; text-align: center; }
.page-input:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
.page-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ffb3b8; }
.page-feedback { flex-basis: 100%; color: #ffb3b8; text-align: center; font-size: .65em; }
.page-go { height: var(--page-button-height); min-height: 32px; padding: 0 10px 3px; font-size: .9em; border-radius: var(--page-corner-radius); }

.leaderboard-pagination > button {
  display: grid;
  place-items: center;
  width: max(32px, 2.6cqw);
  height: var(--page-button-height);
  border-radius: var(--page-corner-radius);
  line-height: 1;
  padding: 0;
  text-align: center;
  background: #d9d9d9;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.leaderboard-pagination > button:disabled { cursor: default; opacity: .35; }
.page-indicator { color: var(--muted); font-size: .8em; }

.about { padding-block: 7.5cqw; padding-bottom: calc(7.5cqw + var(--docs-extra-space, 0px)); }
.about-title { position: relative; }
.about-copy { margin-top: 3.25cqw; font-size: clamp(26px, 3.33cqw, 64px); line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: .25em; }

.footer {
  display: grid;
  place-items: center;
  min-height: 21.66cqw;
  padding: 2.7cqw var(--page-gutter) calc(2.7cqw + 48px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 3, 12, .92), rgba(3, 3, 12, .9)),
    url("./assets/footer-art.png") center 50% / cover no-repeat;
}

.footer-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 6.667cqw;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.11em;
}

.footer-wordmark { position: relative; display: block; width: 18.792187cqw; height: 9.240357cqw; overflow: visible; color: inherit; text-decoration: none; }
.footer-brand img { width: 4.870016cqw; margin-top: 0; }
.footer-x {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 50%;
  transition: transform 220ms ease, filter 220ms ease;
}
.footer-x img { display: block; }

.footer-caption {
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(12px, 1cqw, 20px);
  left: var(--page-gutter);
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: clamp(24px, 1.8cqw, 34px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

@keyframes idle-float {
  from { transform: translate3d(0, -5px, 0); }
  to { transform: translate3d(0, 5px, 0); }
}
/* The stream belongs to the document and scrolls with the page content. */
.decoration-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  container-type: size;
}
.decoration-traveler {
  position: absolute;
  top: 0;
  left: var(--flow-x);
  width: var(--flow-size);
  height: var(--flow-size);
  pointer-events: none;
  animation: decoration-rise calc(var(--flow-period) * var(--flow-distance-factor, 1)) linear calc(var(--flow-phase) * var(--flow-distance-factor, 1)) infinite both;
  will-change: transform;
}
.decoration-flow .decoration-button {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  animation: none;
  pointer-events: auto;
  will-change: auto;
}
.hero, .game, .about, .footer { z-index: 2; }
.hero, .game, .about { pointer-events: none; }
.canvas [data-pressable],
.canvas :is(button, a, input),
.referral-card, .task-art, .leaderboard-card, .game h2, .about-copy { pointer-events: auto; }
.is-loading .decoration-traveler,
.canvas.is-motion-paused .decoration-traveler { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .decoration-traveler:hover { animation-play-state: paused; }
}
@keyframes decoration-rise {
  from { transform: translate3d(calc(-50% - var(--flow-sway)), calc(100cqh + var(--flow-size)), 0) rotate(-14deg); }
  to { transform: translate3d(calc(-50% + var(--flow-sway)), calc(-2 * var(--flow-size)), 0) rotate(20deg); }
}
@keyframes decor-drift-soft {
  from { transform: translate3d(calc(-6px * var(--decor-travel, 1)), calc(-16px * var(--decor-travel, 1)), 0) rotate(calc(3deg * var(--decor-travel, 1))); }
  to { transform: translate3d(calc(6px * var(--decor-travel, 1)), calc(16px * var(--decor-travel, 1)), 0) rotate(calc(-3deg * var(--decor-travel, 1))); }
}
@keyframes decor-drift-wide {
  from { transform: translate3d(calc(10px * var(--decor-travel, 1)), calc(-25px * var(--decor-travel, 1)), 0) rotate(calc(-5deg * var(--decor-travel, 1))); }
  to { transform: translate3d(calc(-10px * var(--decor-travel, 1)), calc(25px * var(--decor-travel, 1)), 0) rotate(calc(5deg * var(--decor-travel, 1))); }
}
@keyframes decor-drift {
  from { transform: translate3d(calc(-7px * var(--decor-travel, 1)), calc(-20px * var(--decor-travel, 1)), 0) rotate(calc(-4deg * var(--decor-travel, 1))); }
  to { transform: translate3d(calc(7px * var(--decor-travel, 1)), calc(20px * var(--decor-travel, 1)), 0) rotate(calc(4deg * var(--decor-travel, 1))); }
}
.hero-title,
.about-title,
.decoration-button { will-change: transform; }
.hero-title.is-offscreen,
.about-title.is-offscreen,
.decoration-button.is-offscreen,
.is-loading .hero-title,
.is-loading .about-title,
.is-loading .decoration-button,
.canvas.is-motion-paused .hero-title,
.canvas.is-motion-paused .about-title,
.canvas.is-motion-paused .decoration-button,
.canvas.is-motion-light .hero-title,
.canvas.is-motion-light .about-title { animation-play-state: paused; will-change: auto; }
.canvas.is-interacting .hero-title,
.canvas.is-interacting .about-title { animation-play-state: paused; }
.canvas.is-interacting .hero-title.is-logo-animating { will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .canvas.is-motion-light .referral-card:hover,
  .canvas.is-motion-light .task-art:hover { transform: translate3d(0, -2px, 0); }
  .hero-title:hover,
  .about-title:hover,
  .floating-heart:hover,
  .floating-plus:hover,
  .floating-flower:hover { --surface-rest-scale: 1.05; animation-play-state: paused; scale: 1.05; }
  .floating-heart:hover,
  .floating-plus:hover,
  .floating-flower:hover { --surface-rest-scale: 1.12; scale: 1.12; }
  .about-title:hover { --surface-rest-scale: 1.025; scale: 1.025; }
  .statement:hover { --surface-rest-scale: 1.025; scale: 1.025; }
  .connect-button:hover,
  .copy-button:hover,
  .nav-button:hover,
  .page-go:hover,
  .direction-marker:hover,
  .leaderboard-pagination > button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.15); }
  .referral-card:hover::before,
  .task-art:hover::before { opacity: 1; }
  .footer-x:hover { transform: scale(1.1); filter: brightness(1.2); }
}

.connect-button:active,
.copy-button:active,
.nav-button:active,
.page-go:active,
.direction-marker:active,
.leaderboard-pagination > button:not(:disabled):active { transform: scale(.96); }
.footer-x:active { transform: scale(.95); }
[data-pressable]:active,
[data-pressable].is-pressed { scale: calc(var(--surface-rest-scale, 1) * .975); animation-play-state: paused; }
[data-pressable].is-pressed,
[data-pressable]:active { transition-duration: 35ms; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.hero-title[data-pressable]:active { scale: var(--surface-rest-scale, 1); transition: none; }
.decoration-button:active,
.about-title:active { scale: var(--surface-rest-scale, 1); }

@media (max-width: 900px) {
  .decoration-button { --decor-travel: .4; }
  .canvas > .page-decoration { top: 14px; width: 26px; }
  .floating-heart--leaderboard-side,
  .floating-plus--about-middle,
  .floating-plus--game-upper,
  .floating-flower--leaderboard-right,
  .floating-heart--about-upper-left,
  .floating-flower--about-lower-right { display: none; }
  .masthead { padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
  .canvas {
    width: 100%;
    min-height: 100vh;
    --page-gutter: clamp(24px, 6vw, 36px);
    --content-width: 560px;
    --section-heading-size: clamp(42px, 10vw, 60px);
    --task-card-height: 260px;
  }

  .connect-button { min-width: 90px; padding: 8px 12px; border-radius: 12px; font-size: 24px; }
  .connect-button.is-connected.chrome-panel { min-width: 128px; }
  .header-panel.chrome-panel { width: 100%; max-width: 460px; padding: 10px; border-radius: 32px; }
  .site-nav { display: flex; gap: 8px; }
  .header-panel .nav-button,
  .header-panel .connect-button { flex: 1; width: auto; min-width: 0; height: 48px; min-height: 48px; margin: 0; font-size: clamp(20px, 5.5vw, 24px); padding-inline: 8px; }
  .header-panel .connect-button.is-connected.chrome-panel { min-width: 0; }
  .header-panel .nav-button:nth-child(2) { flex: 1.6; padding-inline: 8px; }
  .nav-button { min-height: 40px; padding: 7px 9px; border-radius: 10px; font-size: 22px; }

  .hero-stage--intro { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding: 42px 0 48px; }
  .hero-stage--intro .hero-title { grid-column: 1; grid-row: 1; top: 0; width: min(88%, 380px); justify-self: center; }
  .hero-stage--intro .hero-panel { grid-column: 1; grid-row: 2; font-size: clamp(25px, 6vw, 36px); aspect-ratio: auto; }
  .hero-stage--intro .hero-panel.account-summary { min-height: 300px; padding: 26px 24px; }
  .account-connect { gap: 22px; }
  .account-connect-copy { font-size: clamp(30px, 7.8vw, 36px); line-height: 1.2; }
  .account-summary .connect-button { min-height: 56px; padding: 8px 24px 12px; font-size: 36px; }
  .account-details { gap: 16px; }
  .account-handle { font-size: 30px; }
  .account-rank { font-size: 34px; }
  .account-rank strong { font-size: 1.35em; }
  .account-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-stats div { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 16px; }
  .account-stats dt { font-size: 24px; text-align: left; }
  .account-stats dd { margin: 0; font-size: 28px; text-align: right; }
  .hero-stage--intro .floating-heart--left { top: 8px; left: 0; width: 24px; height: 24px; }
  .hero-stage--intro .floating-heart--right { top: 8px; right: 0; left: auto; width: 24px; height: 24px; }
  .hero-stage--intro .floating-heart--lower { bottom: -10px; top: auto; left: 0; width: 22px; height: 22px; }
  .hero-stage--intro .floating-plus--intro { bottom: -10px; top: auto; right: 0; width: 24px; }
  .hero-stage--intro .floating-plus--intro-extra,
  .hero-stage--intro .floating-flower--intro,
  .hero-stage--intro .floating-heart--intro-extra { display: none; }
  .chrome-title { width: min(100%, 418.125px); height: auto; aspect-ratio: 892 / 300; font-size: clamp(64px, 20vw, 150px); }
  .hero-title { margin: 0 auto 48px; }
  .floating-heart { width: 72px; height: 72px; }
  .floating-heart--right { top: 145px; left: auto; right: 8px; width: 48px; height: 48px; }
  .floating-heart--left { top: 44px; left: 32px; width: 48px; height: 48px; }
  .floating-heart--lower { top: auto; bottom: 12px; left: 30px; width: 44px; height: 44px; }
  .floating-plus { width: 40px; }
  .floating-plus--intro { top: auto; right: 28px; bottom: 110px; }
  .floating-plus--details { left: 0; top: 65%; width: 32px; }
  .floating-heart--details { right: 0; top: 12px; width: 24px; height: 24px; }
  .floating-plus--game { left: -18px; right: auto; top: calc(var(--section-heading-size) * 1.05 + 18px + 3 * var(--task-card-height) + 56px); width: 16px; }
  .floating-heart--game { right: 0; bottom: -30px; width: 24px; height: 24px; }
  .floating-plus--about { right: 0; top: 70px; width: 24px; }
  .floating-heart--about { left: 0; bottom: 12px; width: 24px; height: 24px; }
  .floating-flower { width: 40px; }
  .floating-flower--intro { top: 150px; left: 12px; }
  .floating-flower--details { bottom: 12px; right: 50px; width: 28px; }
  .floating-flower--game { top: auto; bottom: -30px; left: 0; width: 24px; }
  .floating-flower--about { top: 70px; left: 0; width: 24px; }
  .floating-heart--intro-extra { top: auto; right: 14px; bottom: 60px; width: 26px; height: 26px; }
  .floating-heart--details-extra { top: 14px; left: 0; width: 22px; height: 22px; }
  .floating-heart--game-extra { top: calc(var(--section-heading-size) * 1.05 + 18px + 3 * var(--task-card-height) + 60px); left: auto; right: -18px; width: 16px; height: 16px; }
  .floating-plus--intro-extra { top: 105px; right: 32%; width: 26px; }
  .floating-plus--about-extra { bottom: 12px; right: 0; width: 24px; }
  .floating-flower--tasks,
  .floating-plus--tasks,
  .floating-heart--about-extra { display: none; }

  .statement { width: 100%; min-height: 115px; padding: 20px 16px; border-radius: 24px; font-size: clamp(25px, 6vw, 36px); }
  .direction-marker { width: 112px; height: 38px; margin-top: 24px; border-radius: 10px; font-size: 32px; }
  .direction-marker--first { margin-bottom: 24px; }

  .game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tasks-heading" "tasks" "leaderboard-heading" "leaderboard"; gap: 24px; }
  .game h2 { margin: 0; font-size: var(--section-heading-size); }
  .game .leaderboard-heading { margin-top: 32px; }
  .tasks-column { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .referral-card { height: auto; min-height: var(--task-card-height); gap: 18px; padding: 24px; border-radius: 20px; }
  .referral-card h3,
  .referral-card p,
  .referral-card button { font-size: clamp(30px, 8vw, 38px); line-height: 1.15; }
  .referral-card button { min-height: 52px; padding: 8px 18px 10px; border-radius: 14px; }
  .task-art { height: var(--task-card-height); margin-top: 0; border-radius: 20px; }
  .leaderboard-card { min-height: 0; padding: 24px 18px; border-radius: 20px; font-size: clamp(24px, 6.4vw, 30px); }
  .leaderboard-column { width: 100%; }
  .leaderboard-list { min-height: 440px; margin-top: 12px; }
  .leaderboard-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; min-height: 44px; }
  .leaderboard-row--you { margin-bottom: 16px; padding-bottom: 16px; }
  .leaderboard-row .points { padding-right: 0; }
  .leaderboard-pagination { --page-corner-radius: 6px; --page-button-height: 44px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding-top: 24px; font-size: 28px; }
  .leaderboard-pagination > button { width: 44px; height: 44px; }
  .page-jump { justify-content: center; gap: 6px; font-size: 22px; }
  .page-input-shell, .page-go { width: 44px; min-width: 44px; height: 44px; }
  .page-go { padding: 0 4px 3px; font-size: 24px; }
  .page-feedback { grid-column: 1 / -1; }

  .about { padding-block: 72px; padding-bottom: calc(80px + var(--docs-extra-space, 0px)); }
  .about-title { width: min(86%, 360px); margin-inline: auto; }
  .about-copy { margin-top: 40px; font-size: clamp(28px, 7vw, 34px); line-height: 1.3; }
  .about-copy p + p { margin-top: 20px; }
  .footer { min-height: 320px; padding: 40px var(--page-gutter) calc(96px + env(safe-area-inset-bottom, 0px)); background-position: center 82%; }
  .footer-caption { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 20px; line-height: 1.4; }
  .footer-brand { font-size: 75px; }
  .footer-wordmark { width: 211.412px; height: 103.954px; }
  .footer-brand img { width: 54px; margin-top: 0; }
}

@media (max-height: 540px) {
  :root { --hero-step-gap: 16px; }
  .masthead { padding-top: 12px; }
  .hero-stage--intro { padding-top: 16px; padding-bottom: 20px; }
}

@media (max-width: 900px) and (max-height: 540px) {
  .masthead { padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
  .hero-stage--intro { padding-top: 42px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .decoration-traveler { animation: none; transform: translate3d(-50%, calc(var(--flow-rest-y) * 1cqh), 0); will-change: auto; }
  .loading-screen { transition: none; }
  .loading-orbit,
  .loading-screen p { animation: none; }
  .hero-title[data-pressable]:active { transition: none; }
  [data-pressable]:active,
  [data-pressable].is-pressed { transition: none; }
  .hero-title,
  .about-title,
  .floating-heart,
  .floating-plus,
  .floating-flower { animation: none; }
  .hero-title,
  .about-title,
  .floating-heart,
  .floating-plus,
  .floating-flower,
  .statement,
  .connect-button,
  .copy-button,
  .nav-button,
  .page-go,
  .direction-marker,
  .leaderboard-pagination > button,
  .footer-x { transition: none; }
  .referral-card,
  .task-art { transform: none; transition: none; }
}

/* Account flow: the existing OMORI display face, blue enamel and quiet form controls. */
.account-action { position: relative; z-index: 4; padding: 4px 18px 8px; border: 1px solid #899ed9; border-radius: 999px; background: #0c1748; color: #f0f3ff; font-size: clamp(24px, 2cqw, 32px); line-height: 1; }
.copy-status { position: relative; z-index: 2; display: block; min-height: 1em; font: 13px/1.4 Arial, sans-serif; color: #161a32; overflow-wrap: anywhere; }
.leaderboard-status { position: relative; margin: 18px 0 0; font: 13px/1.5 Arial, sans-serif; color: #dce5ff; text-align: center; }
#refresh-leaderboard { width: auto; min-width: 76px; padding-inline: 10px; color: #fff; }
.leaderboard-list:empty { min-height: 160px; }
.rules-link { position: relative; z-index: 2; display: inline-block; margin-top: 24px; color: #b7c8ff; font-size: 28px; text-underline-offset: 5px; pointer-events: auto; }
.auth-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; border: 1px solid #7084c9; border-radius: 20px; background: #0b1028; color: #f0f3ff; box-shadow: 0 24px 100px #000a; overflow: auto; font: 15px/1.5 Arial, sans-serif; }
.auth-dialog::backdrop { background: #020312c9; backdrop-filter: blur(7px); }
.auth-dialog h2 { margin: 8px 32px 12px 0; font: 52px/.95 var(--game-font); letter-spacing: -.02em; }
.auth-eyebrow { margin: 0; color: #a7baff; font: 12px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.auth-intro { margin: 0 0 24px; color: #d3dcf8; }
.auth-dialog button, .auth-actions a { min-height: 44px; padding: 11px 16px; border: 1px solid #7084c9; border-radius: 9px; background: #172453; color: #f0f3ff; font: 15px/1.3 Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.auth-dialog .auth-primary { background: #334fc5; border-color: #758ff4; }
.auth-dialog button:disabled { opacity: .5; cursor: wait; }
.auth-dialog .auth-close { position: absolute; top: 12px; right: 12px; width: 44px; padding: 4px; border: 0; background: transparent; font-size: 30px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.auth-actions > * { flex: 1; }
.auth-note { font: 12px/1.6 Arial, sans-serif; color: #b8c4e7; }
.auth-dialog label { display: block; margin: 18px 0 7px; color: #dce5ff; }
.auth-dialog textarea, .auth-dialog input { width: 100%; min-height: 46px; padding: 12px; border: 1px solid #6074b5; border-radius: 8px; background: #070b20; color: #f0f3ff; font: 14px/1.5 Arial, sans-serif; }
.auth-dialog textarea { resize: vertical; }
.auth-dialog form > button { width: 100%; margin-top: 12px; }
.auth-dialog .auth-text-button { padding: 7px 0; border: 0; background: transparent; color: #b7c8ff; text-decoration: underline; text-underline-offset: 4px; }
.auth-feedback { min-height: 1.5em; margin: 18px 0 0; color: #c5d2ff; }
.auth-feedback.is-error { color: #ffc5cf; }
.auth-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; border-top: 1px solid #2c396a; padding-top: 16px; }
.auth-bottom a { color: #b7c8ff; font-size: 13px; text-underline-offset: 4px; }
#score-copy { margin: 16px 0; }
.score-value { margin: 12px 0 0; font: 80px/1 var(--game-font); color: #c1cfff; }
.score-label { margin: 0 0 20px; color: #b8c4e7; }
.no-script { position: fixed; bottom: 0; z-index: 100; margin: 0; padding: 15px; background: #101b48; color: #fff; font: 15px/1.4 Arial, sans-serif; }
.rules-page { background: #070716; color: #edf1ff; overflow-x: hidden; }
.rules-document { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; font: 16px/1.7 Arial, sans-serif; }
.rules-document > a { display: inline-block; margin-bottom: 48px; }
.rules-document a { color: #b7c8ff; text-underline-offset: 4px; }
.rules-document h1 { margin: 12px 0 40px; font: 72px/1 var(--game-font); }
.rules-document h2 { margin: 38px 0 12px; font: 42px/1 var(--game-font); }
.rules-document ul { padding-left: 24px; }
.rules-document li + li { margin-top: 14px; }
.rules-formula { padding: 16px; border: 1px solid #5065ac; border-radius: 10px; background: #101b48; font: 14px/1.6 monospace; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .auth-dialog { padding: 26px 20px 20px; }
  .auth-dialog h2 { font-size: 44px; }
  .auth-actions { flex-direction: column; }
  .leaderboard-pagination .page-go { width: auto; min-width: 70px; }
  .rules-document h1 { font-size: 56px; }
}
