:root {
  color-scheme: light;
  --paper: #fffaf0;
  --surface: #ffffff;
  --ink: #24313a;
  --page-bg: #f6f7f4;
  --muted: #6f7a82;
  --line: #dce5e8;
  --sea: #62c6c4;
  --coral: #ff806e;
  --sun: #ffd166;
  --leaf: #82c785;
  --blue: #6ea8fe;
  --button-gold: #ffe783;
  --button-gold-light: #fff7bf;
  --button-orange: #ffb97a;
  --button-rim: #df7f7a;
  --button-rim-dark: #bd6968;
  --button-icon: #9a595c;
  --button-glow: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 46px rgba(39, 55, 63, 0.13);
  --small-shadow: 0 10px 24px rgba(39, 55, 63, 0.11);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
}

body.app-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

body.app-body.is-profile-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.app-body.is-profile-modal-open .app-shell {
  overflow: hidden;
}

body.info-body {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  user-select: text;
  -webkit-touch-callout: default;
  -webkit-user-select: text;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-user-select: none;
  user-select: none;
}

.icon-button,
.spread-button,
.finish-button,
.parent-close,
.profile-close,
.avatar-arrow,
.profile-edit-name {
  border: 3px solid var(--button-rim);
  background:
    radial-gradient(circle at 27% 22%, var(--button-glow) 0 9%, transparent 10%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.72) 0 5%, transparent 5.5%),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 42%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.36),
    inset 0 -7px 0 rgba(151, 58, 39, 0.3),
    0 5px 0 var(--button-rim-dark),
    0 12px 18px rgba(97, 48, 34, 0.2);
  transition:
    filter 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.icon-button:active,
.spread-button:active,
.finish-button:active,
.parent-close:active,
.profile-close:active,
.avatar-arrow:active,
.profile-edit-name:active {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.26),
    inset 0 -4px 0 rgba(151, 58, 39, 0.28),
    0 2px 0 var(--button-rim-dark),
    0 7px 12px rgba(97, 48, 34, 0.18);
  transform: translateY(3px) scale(0.985);
}

.app-shell {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--page-bg);
  overflow: hidden;
}

.app-shell:fullscreen,
.app-shell:-webkit-full-screen {
  width: 100vw;
  min-height: 100vh;
  background: var(--page-bg);
}

.app-shell::backdrop {
  background: var(--page-bg);
}

.app-header {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-size: clamp(1.04rem, 1vw + 0.84rem, 1.3rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover,
.brand:active,
.brand:visited {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: #172026;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.8))
    drop-shadow(0 5px 7px rgba(39, 55, 63, 0.14));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  justify-self: end;
}

.icon-button:hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-button img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}

.profile-button-avatar,
.profile-avatar,
.avatar-choice span {
  --avatar-color: #172026;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--avatar-color);
  color: #ffffff;
  font-weight: 950;
}

.profile-button-avatar {
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--button-icon);
}

.profile-button-avatar svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main {
  display: grid;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.picker-view,
.studio-view {
  grid-area: 1 / 1;
  min-width: 0;
}

.picker-view {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: center;
  padding: clamp(12px, 3vw, 34px) 0;
  overflow: hidden;
}

.category-tabs,
.difficulty-tabs {
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs {
  padding: 7px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 12px 28px rgba(31, 49, 56, 0.06),
    inset 0 0 0 1px rgba(23, 32, 38, 0.04);
}

.category-tabs::-webkit-scrollbar,
.difficulty-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 114px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 2px solid rgba(158, 61, 47, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    linear-gradient(180deg, #fff6a4 0%, #ffd957 48%, #ee962f 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.3),
    inset 0 -5px 0 rgba(151, 58, 39, 0.2),
    0 4px 0 rgba(116, 48, 38, 0.86),
    0 9px 14px rgba(97, 48, 34, 0.16);
  font-weight: 900;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.category-tab::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 4px 7px 5px 7px;
  background: var(--button-icon);
  box-shadow:
    inset 0 -2px 0 rgba(78, 27, 25, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.36);
  transform: rotate(-8deg);
}

.category-tab[data-category="animals"] {
  --category-color: #62c6c4;
}

.category-tab[data-category="landmarks"] {
  --category-color: #ff806e;
}

.category-tab[data-category="nature"] {
  --category-color: #82c785;
}

.category-tab[data-category="dinosaurs"] {
  --category-color: #ffd166;
}

.category-tab[data-category="space"] {
  --category-color: #6ea8fe;
}

.category-tab.is-active {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    linear-gradient(180deg, #fff08b 0%, #ffc83d 42%, #dd742f 100%);
  color: #7f2b2c;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.38),
    inset 0 -6px 0 rgba(151, 58, 39, 0.28),
    0 5px 0 var(--button-rim-dark),
    0 13px 20px rgba(97, 48, 34, 0.24);
  transform: translateY(-2px);
}

.category-tab.is-locked {
  padding-right: 26px;
}

.category-tab.is-locked::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--button-icon);
  transform: translateY(-50%);
}

.difficulty-tabs {
  margin-top: 12px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 10px 24px rgba(31, 49, 56, 0.05),
    inset 0 0 0 1px rgba(23, 32, 38, 0.04);
}

.difficulty-tab {
  flex: 0 0 auto;
  min-width: 102px;
  height: 48px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border: 2px solid rgba(158, 61, 47, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    linear-gradient(180deg, #fff6a4 0%, #ffd957 48%, #ee962f 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.3),
    inset 0 -5px 0 rgba(151, 58, 39, 0.2),
    0 4px 0 rgba(116, 48, 38, 0.86),
    0 9px 14px rgba(97, 48, 34, 0.16);
  line-height: 1;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.difficulty-tab::before {
  content: "";
  grid-row: 1 / 3;
  width: 17px;
  height: 17px;
  border-radius: 5px 7px 5px 7px;
  background:
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.95) 0 3px, transparent 3.5px),
    var(--button-icon);
  box-shadow: inset 0 -2px 0 rgba(78, 27, 25, 0.22);
  transform: rotate(8deg);
}

.difficulty-tab[data-difficulty="easy"] {
  --difficulty-color: #82c785;
}

.difficulty-tab[data-difficulty="classic"] {
  --difficulty-color: #62c6c4;
}

.difficulty-tab[data-difficulty="plus"] {
  --difficulty-color: #ffd166;
}

.difficulty-tab span,
.difficulty-tab small {
  display: block;
  min-width: 0;
}

.difficulty-tab span {
  grid-column: 2;
  font-size: 0.9rem;
  font-weight: 950;
}

.difficulty-tab small {
  grid-column: 2;
  margin-top: 3px;
  color: rgba(123, 43, 44, 0.72);
  font-size: 0.7rem;
  font-weight: 850;
}

.difficulty-tab.is-active {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    linear-gradient(180deg, #fff08b 0%, #ffc83d 42%, #dd742f 100%);
  color: #7f2b2c;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.38),
    inset 0 -6px 0 rgba(151, 58, 39, 0.28),
    0 5px 0 var(--button-rim-dark),
    0 13px 20px rgba(97, 48, 34, 0.24);
  transform: translateY(-2px);
}

.difficulty-tab.is-active small {
  color: rgba(123, 43, 44, 0.74);
}

.difficulty-tab.is-locked {
  position: relative;
}

.difficulty-tab.is-locked::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--button-icon);
}

.gallery-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100vw;
  overflow: hidden;
}

.gallery-wrap::before,
.gallery-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: clamp(44px, 11vw, 150px);
  pointer-events: none;
}

.gallery-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--page-bg), rgba(246, 247, 244, 0));
}

.gallery-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--page-bg), rgba(246, 247, 244, 0));
}

.drawing-grid {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100vw;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 34px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  padding:
    clamp(76px, 10vw, 116px)
    max(calc((100vw - 390px) / 2), 56px)
    clamp(86px, 11vw, 128px);
}

.drawing-grid.is-dragging {
  cursor: grabbing;
}

.drawing-grid::-webkit-scrollbar {
  display: none;
}

.drawing-card {
  position: relative;
  flex: 0 0 clamp(260px, 36vw, 390px);
  min-height: clamp(312px, 45vw, 470px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.drawing-card::before {
  content: none;
}

.drawing-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.drawing-card:focus-visible,
.category-tab:focus-visible,
.icon-button:focus-visible,
.difficulty-tab:focus-visible,
.parent-close:focus-visible,
.profile-close:focus-visible,
.avatar-arrow:focus-visible,
.profile-edit-name:focus-visible,
.profile-puzzle:focus-visible,
.profile-play-button:focus-visible,
.parent-primary:focus-visible,
.parent-secondary:focus-visible {
  outline: 3px solid rgba(110, 168, 254, 0.52);
  outline-offset: 3px;
}

.drawing-preview {
  display: block;
  width: min(74%, 340px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 30px 28px rgba(29, 43, 49, 0.2))
    drop-shadow(0 8px 8px rgba(29, 43, 49, 0.12));
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.drawing-card:hover .drawing-preview {
  filter:
    drop-shadow(0 38px 34px rgba(29, 43, 49, 0.24))
    drop-shadow(0 10px 10px rgba(29, 43, 49, 0.13));
  transform: translateY(-4px);
}

.drawing-card.is-photo {
  min-height: clamp(330px, 46vw, 486px);
}

.drawing-card.is-photo .drawing-preview {
  width: min(80%, 368px);
  border-radius: 10px;
  background-size: cover;
  box-shadow:
    0 26px 44px rgba(29, 43, 49, 0.18),
    0 8px 14px rgba(29, 43, 49, 0.1);
  filter: none;
}

.drawing-card.is-photo:hover .drawing-preview {
  box-shadow:
    0 34px 54px rgba(29, 43, 49, 0.22),
    0 10px 16px rgba(29, 43, 49, 0.12);
  filter: none;
}

.drawing-card.is-locked .drawing-preview {
  transform: scale(0.98);
}

.drawing-card.is-locked:hover .drawing-preview {
  transform: translateY(-4px) scale(1);
}

.drawing-lock {
  position: absolute;
  right: clamp(14px, 2.5vw, 24px);
  top: clamp(14px, 2.5vw, 24px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #172026;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 49, 56, 0.16);
  font-size: 0.78rem;
  font-weight: 950;
}

.drawing-lock svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.drawing-recommend {
  position: absolute;
  left: 50%;
  top: clamp(12px, 2.4vw, 22px);
  z-index: 3;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px),
    linear-gradient(180deg, #d9fff2, #75e5b2);
  color: #174f43;
  box-shadow:
    inset 0 -4px 0 rgba(20, 132, 93, 0.14),
    0 10px 18px rgba(39, 55, 63, 0.1);
  font-size: 0.74rem;
  font-weight: 950;
  transform: translateX(-50%) rotate(-1deg);
  pointer-events: none;
}

.drawing-name {
  display: block;
  color: #21323a;
  font-family:
    ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui,
    sans-serif;
  font-weight: 900;
  font-size: clamp(1.12rem, 1.35vw + 0.82rem, 1.56rem);
  line-height: 1.08;
  text-align: center;
}

.studio-view {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(14px, 3vw, 34px);
}

.studio-view.is-hidden,
.picker-view.is-hidden,
.color-board.is-hidden {
  display: none;
}

.work-area {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.board-shell {
  position: relative;
  width: min(1120px, 100%);
  height: clamp(460px, calc(100dvh - 112px), 720px);
  min-height: 0;
  overflow: visible;
}

.puzzle-board,
.color-board {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  touch-action: none;
  user-select: none;
}

.ghost-art {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  opacity: 0.1;
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.08)
    drop-shadow(0 10px 22px rgba(31, 49, 56, 0.06));
  pointer-events: none;
  z-index: 1;
  transform: scale(1);
  transition:
    filter 220ms ease,
    transform 420ms cubic-bezier(0.18, 0.9, 0.22, 1.12);
}

.slot-layer,
.piece-layer {
  position: absolute;
  inset: 0;
}

.slot-layer {
  z-index: 2;
}

.piece-layer {
  z-index: 3;
  transition:
    opacity 260ms ease,
    visibility 0s linear 0s;
}

.slot {
  position: absolute;
  overflow: visible;
  opacity: 0.42;
  filter: drop-shadow(0 3px 8px rgba(31, 49, 56, 0.05));
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    scale 180ms cubic-bezier(0.18, 0.9, 0.22, 1.18);
}

.slot-outline {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(23, 32, 38, 0.18);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  stroke-dasharray: 7 9;
  transition:
    fill 160ms ease,
    stroke 160ms ease,
    stroke-dasharray 160ms ease,
    stroke-width 160ms ease;
}

.slot.is-near {
  opacity: 0.95;
  filter:
    drop-shadow(0 12px 18px rgba(98, 198, 196, 0.14))
    drop-shadow(0 3px 8px rgba(31, 49, 56, 0.08));
  scale: 1.018;
}

.slot.is-near .slot-outline {
  fill: rgba(98, 198, 196, 0.09);
  stroke: rgba(47, 138, 104, 0.72);
  stroke-dasharray: none;
  stroke-width: 2.6px;
}

.slot.is-filled {
  opacity: 0;
  pointer-events: none;
}

.piece {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.08)
    drop-shadow(0 12px 18px rgba(31, 49, 56, 0.18));
  image-rendering: auto;
  transition:
    transform 150ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 150ms ease;
  will-change: transform;
  touch-action: none;
  pointer-events: all;
}

.piece-outline-halo,
.piece-outline {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 160ms ease,
    stroke 160ms ease;
}

.piece-outline-halo {
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 5.2px;
}

.piece-outline {
  stroke: rgba(23, 32, 38, 0.56);
  stroke-width: 2.5px;
}

.piece * {
  pointer-events: none;
}

.piece.is-dragging {
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.12)
    drop-shadow(0 30px 30px rgba(31, 49, 56, 0.26))
    drop-shadow(0 8px 10px rgba(31, 49, 56, 0.1));
  transition: none;
  scale: 1.018;
}

.piece.is-near-snap {
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.14)
    drop-shadow(0 28px 30px rgba(31, 49, 56, 0.2))
    drop-shadow(0 0 14px rgba(98, 198, 196, 0.28));
}

.piece.is-near-snap .piece-outline {
  stroke: rgba(47, 138, 104, 0.84);
}

.piece.is-near-snap .piece-outline-halo {
  stroke: rgba(255, 255, 255, 0.95);
}

.piece.is-snapped {
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.1)
    drop-shadow(0 3px 7px rgba(31, 49, 56, 0.08));
}

.piece.is-snapping {
  animation: snapPulse 340ms cubic-bezier(0.18, 0.9, 0.22, 1.18);
}

.puzzle-board.is-complete .ghost-art {
  opacity: 1;
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.18)
    brightness(0.88)
    drop-shadow(0 3px 7px rgba(31, 49, 56, 0.08));
  transform: scale(1);
  z-index: 4;
  animation: unifiedPop 560ms cubic-bezier(0.18, 0.9, 0.22, 1.12);
}

.puzzle-board.is-exiting {
  animation: puzzleHandoff 430ms ease both;
}

.puzzle-board.is-complete .slot-layer {
  opacity: 0;
  transition: opacity 180ms ease;
}

.puzzle-board.is-complete .piece-layer {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 280ms;
  pointer-events: none;
}

.puzzle-board.is-complete .piece {
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.18)
    brightness(0.88)
    drop-shadow(0 0 0 rgba(31, 49, 56, 0));
}

.puzzle-board.is-complete .piece-outline-halo,
.puzzle-board.is-complete .piece-outline {
  opacity: 0;
}

@keyframes snapPulse {
  0% {
    scale: 1;
  }

  34% {
    scale: 1.055;
  }

  62% {
    scale: 0.992;
  }

  100% {
    scale: 1;
  }
}

@keyframes unifiedPop {
  0% {
    transform: scale(0.985);
  }

  42% {
    transform: scale(1.045);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes puzzleHandoff {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.965) translateY(-6px);
  }
}

.complete-pop {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid var(--button-rim);
  background:
    radial-gradient(circle at 27% 22%, var(--button-glow) 0 10%, transparent 11%),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 44%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.36),
    inset 0 -7px 0 rgba(151, 58, 39, 0.28),
    0 5px 0 var(--button-rim-dark),
    0 14px 22px rgba(97, 48, 34, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition:
    opacity 160ms ease,
    transform 260ms cubic-bezier(0.18, 0.9, 0.22, 1.18);
  pointer-events: none;
}

.complete-pop svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.complete-pop.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: checkPop 560ms cubic-bezier(0.18, 0.9, 0.22, 1.18);
}

.spread-button {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  transform: translateX(-50%);
}

.spread-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.puzzle-board.is-complete .spread-button {
  opacity: 0;
  pointer-events: none;
}

.loading-surface {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

.loading-surface.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.loading-shimmer {
  position: relative;
  width: min(270px, 54vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.88) 0 10%, transparent 11%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.35), rgba(130, 199, 133, 0.18), rgba(255, 255, 255, 0.42));
  box-shadow:
    inset 0 0 0 1px rgba(117, 174, 169, 0.12),
    0 22px 46px rgba(31, 49, 56, 0.08);
  animation: loadingBreath 1.15s ease-in-out infinite;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 0 35%, rgba(255, 255, 255, 0.72) 48%, transparent 62% 100%);
  transform: translateX(-70%) rotate(-12deg);
  animation: loadingSweep 1.15s ease-in-out infinite;
}

@keyframes checkPop {
  0% {
    transform: translate(-50%, -50%) scale(0.78);
  }

  45% {
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.color-board::after {
  content: "";
  position: absolute;
  inset: 11% 14%;
  z-index: 8;
  border-radius: 999px;
  background: linear-gradient(
    105deg,
    transparent 0 38%,
    rgba(255, 255, 255, 0.7) 48%,
    transparent 58% 100%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-52%) rotate(-10deg);
}

.color-board.is-entering {
  animation: colorBoardEnter 520ms cubic-bezier(0.18, 0.9, 0.22, 1.08) both;
}

.color-board.is-complete::after {
  animation: revealShine 860ms ease both;
}

.color-art,
#colorCanvas {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
}

.color-art {
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(39, 55, 63, 0.08));
  visibility: hidden;
}

.color-art.is-visible {
  visibility: visible;
}

#colorCanvas {
  touch-action: none;
  cursor: crosshair;
}

.finish-tray {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.18, 0.9, 0.22, 1.18);
}

.finish-tray.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.activity-hint {
  position: absolute;
  left: 50%;
  top: max(12px, env(safe-area-inset-top));
  z-index: 45;
  width: min(360px, calc(100% - 28px));
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(117, 174, 169, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(23, 32, 38, 0.78);
  box-shadow: 0 14px 28px rgba(31, 49, 56, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.18, 0.9, 0.22, 1.08);
}

.activity-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.finish-button {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 0;
  border-radius: 999px;
  font-weight: 850;
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.finish-button:active {
  transform: translateY(3px) scale(0.985);
}

.finish-button img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.28))
    drop-shadow(0 3px 2px rgba(116, 48, 38, 0.2));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.finish-button svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.65;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.26));
}

.color-art.is-celebrating {
  animation: colorPop 620ms cubic-bezier(0.18, 0.9, 0.2, 1.16);
}

.color-art.is-floating {
  animation: colorFloat 3.8s ease-in-out infinite;
}

.color-art.is-celebrating.is-floating {
  animation:
    colorPop 620ms cubic-bezier(0.18, 0.9, 0.2, 1.16),
    colorFloat 3.8s ease-in-out 620ms infinite;
}

.scratch-complete {
  position: absolute;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 176px);
  z-index: 56;
  min-width: 164px;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  padding: 9px 17px 10px 15px;
  border: 2px solid rgba(109, 177, 133, 0.58);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20px 12px, rgba(255, 255, 255, 0.92) 0 7px, transparent 8px),
    linear-gradient(180deg, #eefbf2 0%, #c9f0d4 52%, #99ddb2 100%);
  color: #27704b;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.46),
    inset 0 -4px 0 rgba(75, 154, 101, 0.16),
    0 5px 0 rgba(84, 154, 108, 0.52),
    0 18px 30px rgba(39, 55, 63, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.86);
}

.scratch-complete::before,
.scratch-complete::after,
.scratch-complete-sparkle {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #55b977;
  opacity: 0.75;
  pointer-events: none;
}

.scratch-complete::before {
  position: absolute;
  left: -12px;
  top: 14px;
  animation: greenDotFloat 1.9s ease-in-out infinite;
}

.scratch-complete::after {
  position: absolute;
  right: -10px;
  bottom: 13px;
  opacity: 0.5;
  animation: greenDotFloat 2.2s ease-in-out 0.2s infinite;
}

.scratch-complete-sparkle {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: block;
  background:
    radial-gradient(circle at 50% 16%, #55b977 0 3px, transparent 4px),
    radial-gradient(circle at 82% 48%, rgba(85, 185, 119, 0.62) 0 3px, transparent 4px),
    radial-gradient(circle at 32% 76%, rgba(85, 185, 119, 0.45) 0 4px, transparent 5px);
  animation: sparklePulse 1.35s ease-in-out infinite;
}

.scratch-complete strong {
  display: block;
  font-family:
    ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui,
    sans-serif;
  font-size: 1.02rem;
  line-height: 1;
  font-weight: 950;
}

.scratch-complete small {
  display: block;
  color: rgba(39, 112, 75, 0.72);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.05;
}

.scratch-complete.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: scratchCompletePop 680ms cubic-bezier(0.18, 0.9, 0.22, 1.12) both;
}

.finish-suggestions {
  position: absolute;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.94);
  transition:
    opacity 190ms ease,
    transform 260ms cubic-bezier(0.18, 0.9, 0.22, 1.12);
}

.finish-suggestions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.finish-suggestions-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(23, 32, 38, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(23, 32, 38, 0.04),
    0 10px 22px rgba(31, 49, 56, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.finish-suggestion {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(114, 181, 174, 0.45);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18px 14px, rgba(255, 255, 255, 0.9) 0 7px, transparent 8px),
    linear-gradient(180deg, #f8fffd 0%, #dcf5ef 52%, #bce7dc 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.5),
    inset 0 -5px 0 rgba(84, 162, 155, 0.15),
    0 4px 0 rgba(105, 169, 163, 0.56),
    0 13px 24px rgba(31, 49, 56, 0.12);
  overflow: visible;
  transition:
    filter 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.finish-suggestion:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(84, 162, 155, 0.14),
    0 2px 0 rgba(105, 169, 163, 0.56),
    0 8px 16px rgba(31, 49, 56, 0.1);
  transform: translateY(3px) scale(0.98);
}

.finish-suggestion img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(31, 49, 56, 0.14));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.finish-suggestion span {
  position: absolute;
  right: -7px;
  bottom: -5px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  border-radius: 999px;
  background: #172026;
  color: #ffffff;
  box-shadow: 0 8px 15px rgba(31, 49, 56, 0.17);
  font-size: 0.62rem;
  font-weight: 950;
}

.finish-suggestion svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

@keyframes colorPop {
  0% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.08) translateY(-4px);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes colorBoardEnter {
  0% {
    opacity: 0;
    transform: scale(0.965) translateY(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes revealShine {
  0% {
    opacity: 0;
    transform: translateX(-60%) rotate(-10deg);
  }

  20% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translateX(60%) rotate(-10deg);
  }
}

@keyframes colorFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.012);
  }
}

@keyframes loadingBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-80%) rotate(-12deg);
  }

  100% {
    transform: translateX(80%) rotate(-12deg);
  }
}

@keyframes scratchCompletePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.82);
  }

  54% {
    opacity: 1;
    transform: translate(-50%, -3px) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes greenDotFloat {
  0%,
  100% {
    transform: translateY(0) scale(0.9);
  }

  50% {
    transform: translateY(-6px) scale(1.12);
  }
}

@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0.65;
    transform: rotate(-4deg) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: rotate(5deg) scale(1.06);
  }
}

.parent-modal[hidden],
.profile-modal[hidden] {
  display: none;
}

.parent-modal,
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.parent-backdrop,
.profile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(246, 247, 244, 0.68);
  backdrop-filter: blur(10px);
}

.parent-sheet,
.profile-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 28px 70px rgba(31, 49, 56, 0.2),
    0 5px 18px rgba(31, 49, 56, 0.1);
}

.profile-sheet {
  width: min(760px, 100%);
}

.parent-sheet {
  width: min(900px, 100%);
}

.parent-close,
.profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172026;
}

.parent-close svg,
.profile-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 34px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  font-size: 1.45rem;
  box-shadow: 0 14px 30px rgba(31, 49, 56, 0.14);
}

.profile-head h2 {
  margin: 0;
  color: #172026;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.avatar-choice {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.avatar-choice span {
  width: 32px;
  height: 32px;
  font-size: 0.84rem;
}

.avatar-choice.is-active {
  border-color: rgba(23, 32, 38, 0.22);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.profile-stats div,
.profile-detail,
.profile-puzzle {
  border: 2px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  background: #f6f7f4;
}

.profile-stats div {
  padding: 14px;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: #172026;
  font-size: 1.25rem;
  font-weight: 950;
}

.profile-stats span {
  margin-top: 4px;
  color: #627078;
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-detail {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.profile-detail-copy {
  min-width: 0;
}

.profile-detail-copy span,
.profile-detail-copy strong,
.profile-detail-copy small {
  display: block;
}

.profile-detail-copy span {
  color: #69767e;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-detail-copy strong {
  margin-top: 3px;
  color: #172026;
  font-size: 1.05rem;
  font-weight: 950;
}

.profile-detail-copy small {
  margin-top: 4px;
  color: #5e6b73;
  font-weight: 750;
  line-height: 1.3;
}

.profile-play-button {
  display: inline-grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 5px 16px 6px 8px;
  border: 3px solid var(--button-rim);
  border-radius: 999px;
  background:
    radial-gradient(circle at 27% 22%, var(--button-glow) 0 9%, transparent 10%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.72) 0 5%, transparent 5.5%),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 42%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.36),
    inset 0 -7px 0 rgba(151, 58, 39, 0.3),
    0 5px 0 var(--button-rim-dark),
    0 12px 18px rgba(97, 48, 34, 0.18);
  font-weight: 950;
  transition:
    filter 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.profile-play-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.profile-play-button span {
  line-height: 1;
}

.profile-play-button:disabled {
  opacity: 0.54;
  filter: grayscale(0.4);
}

.profile-play-button:not(:disabled):hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-2px);
}

.profile-play-button:disabled {
  background: rgba(23, 32, 38, 0.12);
  color: #79858c;
}

.profile-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-puzzle {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 82px auto auto;
  gap: 6px;
  padding: 8px;
  color: #172026;
  text-align: left;
  overflow: hidden;
}

.profile-puzzle.is-selected {
  border-color: rgba(23, 32, 38, 0.32);
  background: #ffffff;
}

.profile-puzzle img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
}

.profile-puzzle.is-locked img {
  opacity: 0.42;
  filter: grayscale(1);
}

.profile-puzzle span {
  overflow: hidden;
  color: #172026;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-puzzle small {
  color: #68757d;
  font-size: 0.68rem;
  font-weight: 850;
}

.profile-puzzle.is-complete::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #4f9f70;
  box-shadow: 0 0 0 2px #ffffff;
}

.profile-modal {
  top: 68px;
  z-index: 90;
  align-items: end;
  padding: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  touch-action: none;
}

.profile-modal:not([hidden]) {
  pointer-events: auto;
}

.profile-backdrop {
  top: 0;
  background: rgba(246, 247, 244, 0.42);
  backdrop-filter: blur(5px);
}

.profile-sheet {
  width: 100%;
  max-height: min(760px, calc(100dvh - 68px));
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 4vw, 34px) clamp(18px, 5vw, 54px) max(24px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: rgba(246, 247, 244, 0.98);
  box-shadow: 0 -18px 52px rgba(31, 49, 56, 0.12);
  animation: profileDrawerUp 260ms cubic-bezier(0.18, 0.9, 0.22, 1);
}

@keyframes profileDrawerUp {
  from {
    transform: translateY(24px);
  }

  to {
    transform: translateY(0);
  }
}

.profile-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 44px 0;
  text-align: center;
}

.avatar-carousel {
  display: inline-grid;
  grid-template-columns: 38px auto 38px;
  align-items: center;
  gap: 14px;
}

.avatar-arrow,
.profile-edit-name {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #172026;
}

.avatar-arrow {
  width: 38px;
  height: 38px;
}

.avatar-arrow svg,
.profile-edit-name svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.profile-avatar {
  width: clamp(84px, 18vw, 118px);
  height: clamp(84px, 18vw, 118px);
  font-size: clamp(2rem, 4vw, 2.8rem);
  box-shadow:
    0 18px 38px rgba(31, 49, 56, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.profile-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.profile-name-row h2 {
  margin: 0;
  color: rgba(23, 32, 38, 0.86);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.profile-edit-name {
  width: 32px;
  height: 32px;
  color: rgba(23, 32, 38, 0.62);
}

.profile-edit-name svg {
  width: 17px;
  height: 17px;
}

.profile-name-row h2[contenteditable="plaintext-only"] {
  min-width: min(260px, 72vw);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  outline: 2px solid rgba(23, 32, 38, 0.12);
}

.profile-stats {
  width: min(560px, 100%);
  margin: 22px auto 0;
  gap: 10px;
}

.profile-stats div {
  padding: 12px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(31, 49, 56, 0.06);
  text-align: center;
}

.profile-stats strong {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.profile-detail {
  width: min(560px, 100%);
  min-height: 0;
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.profile-detail-copy {
  width: 100%;
}

.profile-detail-copy span {
  color: rgba(23, 32, 38, 0.45);
  font-size: 0.68rem;
}

.profile-detail-copy strong {
  color: rgba(23, 32, 38, 0.82);
}

.profile-puzzle-grid {
  width: min(980px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: clamp(12px, 2.5vw, 20px);
  margin: clamp(20px, 4vw, 32px) auto 0;
}

.profile-puzzle {
  display: grid;
  grid-template-rows: 112px auto auto;
  gap: 6px;
  padding: 8px 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #172026;
  text-align: center;
  overflow: visible;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.profile-puzzle:hover,
.profile-puzzle.is-selected {
  transform: translateY(-3px);
}

.profile-puzzle.is-dimmed {
  opacity: 0.34;
}

.profile-puzzle img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 0 0 #ffffff)
    drop-shadow(0 0 2px #ffffff)
    drop-shadow(0 0 5px #ffffff)
    drop-shadow(0 12px 18px rgba(31, 49, 56, 0.16));
}

.profile-puzzle.is-photo img {
  object-fit: cover;
  border: 6px solid #ffffff;
  border-radius: 14px;
  filter: drop-shadow(0 13px 22px rgba(31, 49, 56, 0.15));
}

.profile-puzzle.is-locked img {
  opacity: 0.48;
  filter: grayscale(1);
}

.profile-puzzle span {
  color: rgba(23, 32, 38, 0.46);
  font-size: 0.72rem;
  font-weight: 850;
}

.profile-puzzle small {
  justify-self: center;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(23, 32, 38, 0.54);
  box-shadow: 0 5px 12px rgba(31, 49, 56, 0.06);
}

.profile-puzzle.is-selected small {
  background: #172026;
  color: #ffffff;
}

.profile-puzzle.is-complete::after {
  display: none;
}

.modal-eyebrow {
  margin: 0 0 8px;
  color: #66737a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-gate h2,
.parent-panel h2 {
  max-width: 390px;
  margin: 0;
  color: #172026;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.modal-copy,
.parent-benefits,
.parent-value-grid span,
.parent-pricing-copy {
  color: #54616a;
}

.modal-copy {
  max-width: 390px;
  margin: 12px 0 22px;
  line-height: 1.45;
}

.parent-question {
  display: grid;
  gap: 8px;
  color: #172026;
  font-weight: 900;
}

.parent-question input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid rgba(23, 32, 38, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #172026;
  font-size: 1.15rem;
  font-weight: 850;
}

.parent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.parent-actions.is-panel {
  flex-wrap: wrap;
  margin-top: 24px;
}

.parent-primary,
.parent-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.parent-primary {
  padding: 0 18px;
  border: 0;
  background: #172026;
  color: #ffffff;
}

.parent-secondary {
  padding: 0 16px;
  border: 2px solid rgba(23, 32, 38, 0.12);
  background: transparent;
  color: #172026;
}

.parent-error {
  min-height: 1.2em;
  margin: 0;
  color: #b14034;
  font-size: 0.92rem;
  font-weight: 850;
}

.parent-panel {
  display: none;
}

.parent-modal.is-unlocked .parent-gate {
  display: none;
}

.parent-modal.is-unlocked .parent-panel {
  display: block;
}

.parent-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.parent-value-grid div {
  min-width: 0;
  padding: 14px;
  border: 2px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  background: #f6f7f4;
}

.parent-value-grid strong,
.parent-value-grid span {
  display: block;
}

.parent-value-grid strong {
  color: #172026;
  font-size: 1.18rem;
  font-weight: 950;
}

.parent-value-grid span {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.parent-benefits {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.parent-pricing-copy {
  max-width: 430px;
  margin: 10px 0 20px;
  font-weight: 760;
  line-height: 1.42;
}

.parent-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.16fr) minmax(0, 0.9fr);
  gap: 12px;
  margin: 20px 0 0;
}

.pricing-option {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(23, 32, 38, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(31, 49, 56, 0.07);
}

.pricing-option.is-recommended {
  border-color: rgba(68, 173, 114, 0.56);
  background:
    radial-gradient(circle at 86% 6%, rgba(185, 242, 200, 0.58), transparent 30%),
    #ffffff;
  box-shadow:
    0 16px 38px rgba(48, 116, 81, 0.16),
    0 6px 0 rgba(68, 173, 114, 0.32);
  transform: translateY(-4px);
}

.pricing-option-label,
.pricing-option-badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-option-label {
  background: rgba(23, 32, 38, 0.08);
  color: rgba(23, 32, 38, 0.68);
}

.pricing-option-badge {
  position: absolute;
  top: -13px;
  left: 16px;
  background: #44ad72;
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(48, 116, 81, 0.18);
}

.pricing-option strong {
  color: #172026;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 950;
  line-height: 0.95;
}

.pricing-option small {
  color: rgba(23, 32, 38, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.pricing-option ul {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding-left: 17px;
  color: rgba(23, 32, 38, 0.68);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.3;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.07);
}

.billing-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 32, 38, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
}

.billing-toggle button.is-active {
  background: #ffffff;
  color: #172026;
  box-shadow: 0 5px 12px rgba(31, 49, 56, 0.08);
}

.pricing-option-button {
  min-height: 42px;
  margin-top: 4px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
}

.pricing-option-button.is-muted,
.pricing-option-button.is-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(23, 32, 38, 0.11);
  background: rgba(246, 247, 244, 0.88);
  color: rgba(23, 32, 38, 0.58);
}

.pricing-option-button.is-muted {
  cursor: default;
}

.pricing-option-button.is-secondary {
  color: #172026;
}

.parent-auth-card {
  margin-top: 18px;
  padding: 14px;
  border: 2px solid rgba(23, 32, 38, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.parent-auth-summary {
  display: grid;
  gap: 3px;
  text-align: left;
}

.parent-auth-summary[hidden],
.parent-auth-form[hidden],
.parent-auth-field[hidden],
.parent-auth-footer[hidden] {
  display: none;
}

.parent-auth-summary span,
.parent-auth-field span {
  color: rgba(23, 32, 38, 0.56);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-auth-summary strong {
  color: #172026;
  font-size: 0.98rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.parent-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.parent-auth-actions .parent-primary,
.parent-auth-actions .parent-secondary {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.82rem;
}

.parent-auth-actions .parent-auth-cancel-plan {
  border-color: rgba(23, 32, 38, 0.1);
  background: rgba(23, 32, 38, 0.05);
  color: rgba(23, 32, 38, 0.72);
  box-shadow: none;
}

.parent-auth-form {
  display: grid;
  gap: 12px;
}

.parent-auth-field {
  display: grid;
  gap: 7px;
}

.parent-auth-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.parent-auth-field input {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 13px;
  border: 2px solid rgba(23, 32, 38, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #172026;
  font-weight: 850;
}

.parent-auth-field input:disabled {
  opacity: 0.7;
}

.parent-auth-status {
  min-height: 1.2em;
  margin: 0;
  color: #4e6d67;
  font-size: 0.86rem;
  font-weight: 850;
}

.parent-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: rgba(23, 32, 38, 0.58);
  font-size: 0.88rem;
  font-weight: 850;
}

.parent-auth-footer[hidden] {
  display: none;
}

.parent-auth-footer .parent-link-button {
  margin-top: 0;
}

.parent-link-button {
  width: max-content;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #477a73;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parent-login-link {
  margin-top: 14px;
}

.parent-checkout-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #4e6d67;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.parent-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 850;
}

.parent-policy-links a,
.site-link,
.site-footer a,
.policy-content a {
  color: #172026;
}

.info-body {
  background: #f6f7f4;
}

.site-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}

.site-header,
.site-main,
.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172026;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.site-brand svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.6;
}

.site-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.8))
    drop-shadow(0 5px 7px rgba(39, 55, 63, 0.13));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 850;
}

.site-nav a {
  color: #172026;
  text-decoration: none;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) 0 52px;
}

.site-kicker {
  margin: 0 0 12px;
  color: #637078;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-hero h1,
.policy-content h1 {
  margin: 0;
  color: #172026;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.site-hero p,
.policy-content p,
.policy-content li {
  color: #4e5c64;
  font-size: 1.02rem;
  line-height: 1.62;
}

.site-hero p {
  max-width: 560px;
  margin: 18px 0 0;
}

.site-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.site-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #172026;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.site-button.is-secondary {
  border: 2px solid rgba(23, 32, 38, 0.12);
  background: transparent;
  color: #172026;
}

.site-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.site-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3d4b53;
  box-shadow: 0 6px 16px rgba(31, 49, 56, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
}

.site-preview {
  position: relative;
  min-height: 430px;
  overflow: visible;
}

.preview-device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 370px);
  aspect-ratio: 0.74;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 10px solid #172026;
  border-radius: 38px;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 209, 102, 0.28), transparent 30%),
    #ffffff;
  box-shadow:
    0 28px 60px rgba(29, 43, 49, 0.16),
    0 8px 18px rgba(29, 43, 49, 0.1);
  transform: translate(-50%, -50%) rotate(2deg);
}

.preview-device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 22px rgba(29, 43, 49, 0.14))
    drop-shadow(0 6px 8px rgba(29, 43, 49, 0.1));
}

.preview-sticker {
  position: absolute;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 24px rgba(29, 43, 49, 0.2))
    drop-shadow(0 6px 8px rgba(29, 43, 49, 0.11));
}

.preview-sticker-one {
  width: min(34%, 170px);
  left: 0;
  top: 28px;
  transform: rotate(-10deg);
}

.preview-sticker-two {
  width: min(42%, 210px);
  right: -4px;
  bottom: 24px;
  transform: rotate(9deg);
}

.site-section {
  padding: 34px 0;
}

.site-section h2,
.policy-content h2 {
  margin: 0 0 16px;
  color: #172026;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.site-card {
  position: relative;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(39, 55, 63, 0.07);
}

.site-card-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #172026;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.15);
  font-size: 0.9rem;
  font-weight: 950;
}

.site-card h3 {
  margin: 0;
  color: #172026;
  font-size: 1.1rem;
}

.site-card p,
.site-card li {
  color: #53616a;
  line-height: 1.5;
}

.site-card p {
  margin: 10px 0 0;
}

.site-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pack-card {
  min-width: 0;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(39, 55, 63, 0.07);
}

.pack-art {
  height: clamp(190px, 25vw, 270px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 22px);
  overflow: visible;
}

.pack-art img {
  max-width: 48%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 22px rgba(29, 43, 49, 0.18))
    drop-shadow(0 7px 8px rgba(29, 43, 49, 0.1));
}

.pack-card h3 {
  margin: 18px 0 0;
  color: #172026;
  font-size: 1.15rem;
}

.pack-card p {
  margin: 10px 0 0;
  color: #53616a;
  line-height: 1.5;
}

.price {
  display: block;
  margin-top: 12px;
  color: #172026;
  font-size: 2rem;
  font-weight: 950;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 0;
  color: #65717a;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-footer nav {
  display: inline-flex;
  gap: 14px;
}

.policy-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px) 0 54px;
}

.policy-content h1 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.policy-content h2 {
  margin-top: 34px;
}

.policy-date {
  margin: 12px 0 28px;
  color: #6d7880;
  font-weight: 850;
}

@media (max-width: 820px) {
  .app-header {
    height: 60px;
    min-height: 60px;
    grid-template-columns: 1fr auto;
    padding-block: 0;
  }

  .header-actions {
    gap: 8px;
  }

  #fullscreenButton {
    display: none;
  }

  .parent-modal {
    padding: 0;
    place-items: stretch;
  }

  .parent-backdrop {
    display: none;
  }

  .parent-sheet {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding:
      max(22px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    border-radius: 0;
    background: var(--page-bg);
    box-shadow: none;
  }

  .category-tabs,
  .difficulty-tabs {
    justify-self: stretch;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-inline: 12px;
    scroll-padding-inline: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .category-tabs {
    justify-content: flex-start;
    padding: 2px 12px 8px;
  }

  .difficulty-tabs {
    justify-content: center;
    width: auto;
    max-width: calc(100vw - 64px);
    margin-top: 6px;
    margin-inline: auto;
  }

  .category-tab {
    min-width: auto;
    height: 36px;
    gap: 6px;
    padding: 0 11px 1px 9px;
    font-size: 0.8rem;
  }

  .category-tab .tab-icon {
    width: 15px;
    height: 15px;
  }

  .category-tab.is-locked {
    padding-right: 23px;
  }

  .category-tab.is-locked::after {
    right: 9px;
    width: 6px;
    height: 6px;
  }

  .difficulty-tab {
    min-width: 76px;
    height: 34px;
    grid-template-columns: 13px minmax(0, 1fr);
    column-gap: 5px;
    padding: 0 9px;
  }

  .difficulty-tab .tab-icon {
    width: 13px;
    height: 13px;
  }

  .difficulty-tab span {
    font-size: 0.76rem;
  }

  .drawing-grid {
    gap: 18px;
    padding-block: 34px 48px;
    padding-inline: max(calc((100vw - 300px) / 2), 42px);
  }

  .drawing-card {
    flex-basis: min(78vw, 330px);
    min-height: 280px;
  }

  .studio-view {
    grid-template-columns: 1fr;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  }

  .board-shell {
    width: 100%;
    height: calc(100dvh - 76px);
    min-height: 0;
  }

  .site-header,
  .site-main,
  .site-footer {
    width: min(calc(100vw - 28px), 1120px);
  }

  .site-header {
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .site-nav {
    display: none;
  }

  .site-hero {
    display: block;
    gap: 20px;
    padding: 24px 0 26px;
    overflow: hidden;
  }

  .site-hero > div {
    min-width: 0;
    width: min(100%, 340px);
    max-width: 100%;
  }

  .site-hero h1,
  .policy-content h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 8.8vw, 3rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .site-hero p,
  .policy-content p,
  .policy-content li {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-preview {
    min-height: 300px;
    width: min(100%, 340px);
    max-width: 100%;
    margin-top: 20px;
    overflow: visible;
  }

  .preview-device {
    width: min(74%, 250px);
    border-width: 8px;
    border-radius: 30px;
  }

  .preview-sticker-one {
    width: min(34%, 116px);
    left: 3%;
    top: 24px;
  }

  .preview-sticker-two {
    width: min(42%, 142px);
    right: 0;
    bottom: 10px;
  }

  .pack-art {
    height: clamp(170px, 42vw, 240px);
  }

  .site-grid,
  .pack-grid,
  .parent-value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .icon-button svg {
    width: 21px;
    height: 21px;
  }

  .picker-view {
    grid-template-rows: auto auto minmax(0, 1fr);
    align-items: stretch;
    padding-block: 4px 0;
  }

  .drawing-grid {
    align-items: center;
    gap: 14px;
    padding-block: 22px 34px;
    padding-inline: 14vw;
    scroll-padding-inline: 14vw;
  }

  .gallery-wrap::before,
  .gallery-wrap::after {
    display: none;
  }

  .drawing-card {
    padding: 16px;
    flex-basis: min(70vw, 292px);
    min-height: 0;
    height: min(48dvh, 330px);
  }

  .drawing-preview {
    width: min(74%, 260px);
  }

  .drawing-card.is-photo .drawing-preview {
    width: min(82%, 276px);
  }

  .drawing-lock {
    min-height: 27px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .board-shell {
    height: calc(100dvh - 68px);
    min-height: 0;
  }

  .parent-modal {
    align-items: stretch;
    padding: 0;
  }

  .profile-modal {
    top: 60px;
    align-items: end;
    padding: 0;
  }

  .profile-sheet {
    width: 100%;
    max-height: min(620px, calc(100dvh - 20px));
    padding: 22px 18px;
    border-radius: 8px 8px 0 0;
  }

  .parent-sheet {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding:
      max(22px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    border-radius: 0;
  }

  .profile-sheet {
    max-height: calc(100dvh - 60px);
    border-radius: 16px 16px 0 0;
  }

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

  .profile-stats div {
    padding: 11px 9px;
  }

  .profile-detail {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-play-button {
    width: 100%;
  }

  .profile-puzzle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-puzzle {
    grid-template-rows: 92px auto auto;
    padding-inline: 4px;
  }

  .profile-puzzle img {
    height: 92px;
  }

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

  .parent-primary,
  .parent-secondary {
    width: 100%;
  }

  .parent-auth-field div {
    grid-template-columns: 1fr;
  }

  .site-hero {
    padding: 18px 0 22px;
  }

  .site-kicker {
    margin-bottom: 8px;
    font-size: 0.74rem;
  }

  .site-hero h1,
  .policy-content h1 {
    font-size: clamp(2rem, 8.8vw, 3rem);
    line-height: 0.96;
  }

  .site-hero p,
  .policy-content p,
  .policy-content li {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .site-cta-row {
    gap: 10px;
    margin-top: 22px;
  }

  .site-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .site-preview {
    min-height: 285px;
    margin-inline: 0;
  }

  .preview-device {
    width: min(76%, 236px);
  }

  .preview-sticker-one {
    width: min(34%, 108px);
    left: 2%;
    top: 20px;
  }

  .preview-sticker-two {
    width: min(42%, 132px);
    right: -2px;
    bottom: 8px;
  }

  .site-section {
    padding: 26px 0;
  }

  .site-section h2,
  .policy-content h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .site-card {
    padding: 18px;
  }

  .pack-card {
    padding: 18px;
  }

  .pack-art {
    height: clamp(150px, 48vw, 210px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }
}

.icon-button,
.spread-button,
.finish-button,
.parent-close,
.profile-close,
.avatar-arrow,
.profile-edit-name {
  border: 3px solid var(--button-rim);
  border-radius: 999px;
  background:
    radial-gradient(circle at 27% 22%, var(--button-glow) 0 9%, transparent 10%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.72) 0 5%, transparent 5.5%),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 42%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.36),
    inset 0 -7px 0 rgba(151, 58, 39, 0.3),
    0 5px 0 var(--button-rim-dark),
    0 12px 18px rgba(97, 48, 34, 0.2);
}

.icon-button svg,
.spread-button svg,
.finish-button svg,
.parent-close svg,
.profile-close svg,
.avatar-arrow svg,
.profile-edit-name svg {
  fill: currentColor;
  stroke: currentColor;
}

.profile-button .profile-button-avatar svg,
.profile-button .profile-button-avatar path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-button .profile-button-avatar svg {
  stroke-width: 1.75;
}

.premium-button {
  position: relative;
  overflow: visible;
  border-color: #4f9f77;
  background:
    radial-gradient(circle at 27% 22%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.62) 0 5%, transparent 5.5%),
    linear-gradient(180deg, #b9f2c8 0%, #75d394 48%, #44ad72 100%);
  color: #ffffff;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.42),
    inset 0 -7px 0 rgba(27, 116, 73, 0.28),
    0 5px 0 #347f5b,
    0 12px 18px rgba(48, 116, 81, 0.18);
}

.premium-icon,
.premium-icon svg {
  display: block;
}

.premium-icon svg {
  width: 27px;
  height: 27px;
}

.premium-button .premium-plus {
  fill: #ffffff;
  stroke: rgba(23, 92, 63, 0.32);
  stroke-width: 0.35;
}

.premium-heart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 2px 0 rgba(159, 35, 49, 0.25),
    0 6px 10px rgba(31, 49, 56, 0.14);
}

.premium-heart-badge svg {
  width: 16px;
  height: 16px;
}

.premium-heart-badge path {
  fill: #e83f4f;
  stroke: #9f2331;
  stroke-width: 0.7;
}

.premium-button:hover {
  filter: saturate(1.08) brightness(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .premium-button:hover {
    animation: premiumPulse 780ms ease-in-out both;
  }
}

@keyframes premiumPulse {
  0% {
    transform: translateY(-2px) scale(1);
  }

  45% {
    transform: translateY(-2px) scale(1.08);
  }

  100% {
    transform: translateY(-2px) scale(1);
  }
}

#parentButton.premium-button:active {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.3),
    inset 0 -4px 0 rgba(27, 116, 73, 0.25),
    0 2px 0 #347f5b,
    0 7px 12px rgba(48, 116, 81, 0.16);
}

#fullscreenButton {
  border-color: rgba(23, 32, 38, 0.08);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    linear-gradient(180deg, #ffffff 0%, #eef1ef 58%, #dce2df 100%);
  color: rgba(23, 32, 38, 0.5);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.72),
    inset 0 -5px 0 rgba(23, 32, 38, 0.05),
    0 4px 0 rgba(23, 32, 38, 0.08),
    0 10px 16px rgba(31, 49, 56, 0.08);
}

#fullscreenButton:hover {
  filter: none;
  color: rgba(23, 32, 38, 0.62);
}

#fullscreenButton:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -3px 0 rgba(23, 32, 38, 0.05),
    0 2px 0 rgba(23, 32, 38, 0.08),
    0 6px 10px rgba(31, 49, 56, 0.07);
}

.icon-button:active,
.finish-button:active,
.parent-close:active,
.profile-close:active,
.avatar-arrow:active,
.profile-edit-name:active {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.26),
    inset 0 -4px 0 rgba(151, 58, 39, 0.28),
    0 2px 0 var(--button-rim-dark),
    0 7px 12px rgba(97, 48, 34, 0.18);
  transform: translateY(3px) scale(0.985);
}

.spread-button:active {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.26),
    inset 0 -4px 0 rgba(151, 58, 39, 0.28),
    0 2px 0 var(--button-rim-dark),
    0 7px 12px rgba(97, 48, 34, 0.18);
  transform: translateX(-50%) translateY(3px) scale(0.985);
}

.category-tab,
.difficulty-tab,
.parent-primary,
.parent-secondary,
.profile-play-button,
.site-button {
  border: 3px solid var(--button-rim);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18px 11px, var(--button-glow) 0 8px, transparent 9px),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 44%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.34),
    inset 0 -6px 0 rgba(151, 58, 39, 0.26),
    0 5px 0 var(--button-rim-dark),
    0 12px 18px rgba(97, 48, 34, 0.18);
  font-weight: 950;
}

.category-tab.is-active,
.difficulty-tab.is-active,
.site-button.is-secondary,
.parent-secondary {
  background:
    radial-gradient(circle at 18px 11px, rgba(255, 255, 255, 0.76) 0 8px, transparent 9px),
    linear-gradient(180deg, #fff8bd 0%, #ffde65 50%, #eea449 100%);
  color: var(--button-icon);
}

.category-tab:active,
.difficulty-tab:active,
.parent-primary:active,
.parent-secondary:active,
.profile-play-button:active,
.site-button:active {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.26),
    inset 0 -4px 0 rgba(151, 58, 39, 0.24),
    0 2px 0 var(--button-rim-dark),
    0 7px 12px rgba(97, 48, 34, 0.16);
  transform: translateY(3px) scale(0.99);
}

.category-tab::before,
.difficulty-tab::before {
  content: none;
}

.category-tab.is-locked::after,
.difficulty-tab.is-locked::after {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--button-icon);
}

.category-tabs {
  gap: 10px;
  padding: 2px 14px 9px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.category-tab {
  min-width: auto;
  height: 38px;
  gap: 8px;
  padding: 0 13px 1px 11px;
  border: 2px solid rgba(223, 127, 122, 0.66);
  background:
    radial-gradient(circle at 17px 9px, rgba(255, 255, 255, 0.9) 0 6px, transparent 7px),
    linear-gradient(180deg, #fff8c8 0%, #ffe783 50%, #ffc08a 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.32),
    inset 0 -4px 0 rgba(223, 127, 122, 0.18),
    0 3px 0 #bd6968,
    0 8px 14px rgba(154, 89, 92, 0.12);
  color: #95585d;
  font-size: 0.86rem;
}

.category-tab .tab-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.category-tab.is-active {
  border-color: rgba(114, 181, 174, 0.86);
  background:
    radial-gradient(circle at 17px 9px, rgba(255, 255, 255, 0.95) 0 6px, transparent 7px),
    linear-gradient(180deg, #e7fbf7 0%, #bfeee7 50%, #9bded8 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.48),
    inset 0 -4px 0 rgba(84, 162, 155, 0.2),
    0 3px 0 #69a9a3,
    0 9px 15px rgba(80, 148, 143, 0.16);
  color: #366f70;
  transform: translateY(-1px);
}

.difficulty-tabs {
  gap: 0;
  margin-top: 7px;
  padding: 4px;
  border: 2px solid rgba(223, 127, 122, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 2px 5px rgba(154, 89, 92, 0.05),
    0 8px 18px rgba(39, 55, 63, 0.06);
}

.difficulty-tab {
  min-width: 92px;
  height: 38px;
  grid-template-columns: 15px minmax(0, 1fr);
  grid-template-rows: 1fr;
  column-gap: 6px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(63, 75, 82, 0.72);
  box-shadow: none;
  text-align: center;
}

.difficulty-tab .tab-icon {
  grid-column: 1;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.difficulty-tab span {
  grid-column: 2;
  font-size: 0.82rem;
}

.difficulty-tab small {
  display: none;
}

.difficulty-tab.is-active {
  border: 2px solid rgba(114, 181, 174, 0.74);
  background:
    radial-gradient(circle at 14px 8px, rgba(255, 255, 255, 0.94) 0 5px, transparent 6px),
    linear-gradient(180deg, #ecfbf8 0%, #c7efe9 54%, #a5dfd8 100%);
  color: #366f70;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.48),
    inset 0 -3px 0 rgba(84, 162, 155, 0.17),
    0 2px 0 #69a9a3,
    0 7px 12px rgba(80, 148, 143, 0.14);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .category-tabs {
    padding: 2px 12px 8px;
  }

  .category-tab {
    height: 36px;
    gap: 6px;
    padding: 0 11px 1px 9px;
    font-size: 0.8rem;
  }

  .category-tab .tab-icon {
    width: 15px;
    height: 15px;
  }

  .difficulty-tabs {
    width: auto;
    max-width: calc(100vw - 64px);
    margin-top: 6px;
    margin-inline: auto;
  }

  .difficulty-tab {
    min-width: 76px;
    height: 34px;
    grid-template-columns: 13px minmax(0, 1fr);
    column-gap: 5px;
    padding: 0 9px;
  }

  .difficulty-tab .tab-icon {
    width: 13px;
    height: 13px;
  }

  .difficulty-tab span {
    font-size: 0.76rem;
  }
}

.finish-button:not(.is-primary) img {
  width: 96%;
  height: 96%;
  transform: scale(1.16);
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.34))
    drop-shadow(0 3px 2px rgba(116, 48, 38, 0.18));
}

.finish-button.is-primary svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #7a3033;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.36))
    drop-shadow(0 2px 1px rgba(116, 48, 38, 0.16));
}

.finish-button.is-primary svg path {
  fill: none;
}

.waitlist-modal[hidden] {
  display: none;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal,
.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-backdrop,
.waitlist-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(246, 247, 244, 0.72);
  backdrop-filter: blur(12px);
}

.auth-sheet,
.waitlist-sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(117, 174, 169, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 209, 102, 0.3), transparent 28%),
    #ffffff;
  box-shadow:
    0 28px 70px rgba(31, 49, 56, 0.2),
    0 5px 18px rgba(31, 49, 56, 0.1);
}

.auth-sheet {
  background:
    radial-gradient(circle at 88% 10%, rgba(117, 174, 169, 0.24), transparent 28%),
    #ffffff;
}

.auth-sheet .parent-auth-summary,
.auth-sheet .parent-auth-form {
  margin-top: 18px;
}

.profile-parent-auth {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px auto 0;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(31, 49, 56, 0.06);
}

.profile-parent-auth span {
  min-width: 0;
  color: rgba(23, 32, 38, 0.62);
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.profile-parent-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-parent-auth-actions .parent-primary,
.profile-parent-auth-actions .parent-secondary {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.82rem;
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 247, 244, 0.88);
  color: #172026;
}

.waitlist-close svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.waitlist-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.waitlist-form label {
  color: #172026;
  font-size: 0.82rem;
  font-weight: 950;
}

.waitlist-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.waitlist-form input {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 2px solid rgba(23, 32, 38, 0.13);
  border-radius: 999px;
  background: #f6f7f4;
  color: #172026;
  font-weight: 850;
}

.waitlist-status {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: #356d6c;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.difficulty-tabs {
  border-color: rgba(117, 174, 169, 0.18);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 4px rgba(54, 111, 112, 0.045),
    0 8px 18px rgba(39, 55, 63, 0.055);
}

.difficulty-tab {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 7px;
  color: rgba(54, 72, 78, 0.68);
}

.difficulty-tab .difficulty-icon {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: currentColor;
  filter: none;
}

.difficulty-icon-classic path:first-child,
.difficulty-icon-plus path:first-child {
  opacity: 0.72;
}

.difficulty-icon-plus path:nth-child(2) {
  opacity: 0.86;
}

.difficulty-tab.is-active {
  border-color: rgba(91, 164, 158, 0.82);
  background:
    linear-gradient(180deg, #f1fcfa 0%, #cdefea 54%, #aee1dc 100%);
  color: #356d6c;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.52),
    inset 0 -3px 0 rgba(84, 162, 155, 0.16),
    0 2px 0 #73aaa5,
    0 7px 12px rgba(80, 148, 143, 0.13);
}

.category-tab.is-locked,
.difficulty-tab.is-locked {
  position: relative;
}

.category-tab.is-locked::after,
.difficulty-tab.is-locked::after {
  content: "";
  width: 11px;
  height: 12px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  opacity: 0.56;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1.2c.7 0 1.3.6 1.3 1.3v7.4c0 .7-.6 1.3-1.3 1.3H5.8c-.7 0-1.3-.6-1.3-1.3v-7.4c0-.7.6-1.3 1.3-1.3H7Zm2.2 0h5.6V8a2.8 2.8 0 0 0-5.6 0v2Z'/%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'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1.2c.7 0 1.3.6 1.3 1.3v7.4c0 .7-.6 1.3-1.3 1.3H5.8c-.7 0-1.3-.6-1.3-1.3v-7.4c0-.7.6-1.3 1.3-1.3H7Zm2.2 0h5.6V8a2.8 2.8 0 0 0-5.6 0v2Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.category-tab.is-locked::after {
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
}

.difficulty-tab.is-locked::after {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 820px) {
  .difficulty-tab {
    grid-template-columns: 21px minmax(0, 1fr);
    column-gap: 6px;
    padding-inline: 8px 10px;
  }

  .difficulty-tab .difficulty-icon {
    width: 21px;
    height: 21px;
  }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(117, 174, 169, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 251, 248, 0.9));
  color: #356d6c;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.74),
    0 12px 26px rgba(39, 55, 63, 0.12);
  transform: translateY(-50%);
  transition:
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.gallery-arrow:hover {
  background:
    linear-gradient(180deg, #ffffff, #d8f4ef);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    0 16px 30px rgba(39, 55, 63, 0.16);
}

.gallery-arrow:disabled,
.gallery-arrow[aria-disabled="true"] {
  opacity: 0.34;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.68),
    0 8px 18px rgba(39, 55, 63, 0.08);
}

.gallery-arrow:active {
  transform: translateY(calc(-50% + 2px)) scale(0.98);
}

.gallery-arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.gallery-arrow-left {
  left: clamp(14px, 3vw, 38px);
}

.gallery-arrow-right {
  right: clamp(14px, 3vw, 38px);
}

body.info-body {
  min-height: auto;
  overflow-y: auto;
  padding-bottom: max(92px, env(safe-area-inset-bottom));
}

.promo-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(117, 174, 169, 0.2);
  background: rgba(246, 247, 244, 0.9);
  color: #32424a;
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
  font-weight: 850;
}

.promo-banner a,
.sticky-playbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #172026;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.sticky-playbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 35;
  width: min(520px, calc(100vw - 28px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(117, 174, 169, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #32424a;
  box-shadow:
    0 18px 38px rgba(39, 55, 63, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  font-weight: 900;
  transform: translateX(-50%);
}

.site-shell {
  overflow: visible;
}

.site-preview {
  min-height: 460px;
}

.preview-device {
  overflow: visible;
  padding: clamp(30px, 5vw, 48px);
}

.preview-card-stack {
  position: relative;
  width: 86%;
  height: 86%;
  display: block;
}

.preview-device .preview-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 30px rgba(29, 43, 49, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  filter:
    drop-shadow(0 14px 14px rgba(29, 43, 49, 0.12))
    drop-shadow(0 4px 6px rgba(29, 43, 49, 0.08));
}

.preview-card-main {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(0deg);
}

.preview-card-side-one {
  z-index: 2;
  transform: translate(-70%, -48%) rotate(-11deg);
}

.preview-card-side-two {
  z-index: 1;
  transform: translate(-30%, -49%) rotate(12deg);
}

.process-demo {
  position: relative;
  width: min(86%, 270px);
  aspect-ratio: 1;
  display: block;
  overflow: visible;
}

.process-ghost,
.process-color,
.process-piece,
.process-scratch,
.process-check {
  position: absolute;
  inset: 0;
}

.process-ghost,
.process-color,
.process-piece {
  background-image: url("assets/red-panda.webp");
  background-repeat: no-repeat;
}

.process-ghost {
  background-position: center;
  background-size: contain;
  filter: grayscale(1) opacity(0.2);
  animation: processGhost 6.8s ease-in-out infinite;
}

.process-piece {
  width: 52%;
  height: 52%;
  border: 2px solid rgba(45, 61, 69, 0.24);
  background-size: 200% 200%;
  filter:
    grayscale(1)
    drop-shadow(0 12px 14px rgba(29, 43, 49, 0.15));
  animation-duration: 6.8s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.18, 0.9, 0.22, 1);
}

.process-piece-one {
  left: 0;
  top: 0;
  border-radius: 22px 14px 18px 18px;
  background-position: left top;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 82% 72%, 82% 100%, 0 100%);
  animation-name: processPieceOne;
}

.process-piece-two {
  right: 0;
  top: 0;
  border-radius: 15px 24px 18px 18px;
  background-position: right top;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 72%, 18% 72%);
  animation-name: processPieceTwo;
}

.process-piece-three {
  left: 0;
  bottom: 0;
  border-radius: 18px 18px 14px 24px;
  background-position: left bottom;
  clip-path: polygon(0 0, 82% 0, 82% 24%, 100% 24%, 100% 100%, 0 100%);
  animation-name: processPieceThree;
}

.process-piece-four {
  right: 0;
  bottom: 0;
  border-radius: 18px 18px 24px 14px;
  background-position: right bottom;
  clip-path: polygon(0 24%, 18% 24%, 18% 0, 100% 0, 100% 100%, 0 100%);
  animation-name: processPieceFour;
}

.process-color {
  background-position: center;
  background-size: contain;
  filter:
    drop-shadow(0 22px 24px rgba(29, 43, 49, 0.16))
    drop-shadow(0 6px 8px rgba(29, 43, 49, 0.09));
  opacity: 0;
  transform: scale(0.98);
  animation: processColor 6.8s ease-in-out infinite;
}

.process-scratch {
  left: 8%;
  top: 18%;
  width: 36%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    44px 42px 0 rgba(255, 255, 255, 0.9),
    96px 86px 0 rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: rotate(-16deg);
  animation: processScratch 6.8s ease-in-out infinite;
}

.process-check {
  inset: auto auto 6% 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 24px rgba(39, 55, 63, 0.14);
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
  animation: processCheck 6.8s ease-in-out infinite;
}

.process-check::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 15px;
  width: 19px;
  height: 11px;
  border-left: 5px solid #3f9c75;
  border-bottom: 5px solid #3f9c75;
  transform: rotate(-45deg);
}

@keyframes processPieceOne {
  0%, 8% { transform: translate(-44%, -34%) rotate(-12deg); opacity: 0.95; }
  28%, 58% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  72%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
}

@keyframes processPieceTwo {
  0%, 12% { transform: translate(42%, -30%) rotate(10deg); opacity: 0.95; }
  32%, 58% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  72%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
}

@keyframes processPieceThree {
  0%, 15% { transform: translate(-38%, 36%) rotate(9deg); opacity: 0.95; }
  36%, 58% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  72%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
}

@keyframes processPieceFour {
  0%, 18% { transform: translate(40%, 36%) rotate(-11deg); opacity: 0.95; }
  40%, 58% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  72%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
}

@keyframes processGhost {
  0%, 58% { opacity: 1; }
  70%, 100% { opacity: 0; }
}

@keyframes processColor {
  0%, 58% { opacity: 0; transform: scale(0.98); clip-path: inset(0 100% 0 0); }
  72% { opacity: 1; transform: scale(1.04); clip-path: inset(0 0 0 0); }
  86% { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
  100% { opacity: 0; transform: scale(0.98); clip-path: inset(0 0 0 0); }
}

@keyframes processScratch {
  0%, 60% { opacity: 0; transform: translateX(-22px) rotate(-16deg); }
  66%, 78% { opacity: 1; transform: translateX(80px) rotate(-16deg); }
  86%, 100% { opacity: 0; transform: translateX(120px) rotate(-16deg); }
}

@keyframes processCheck {
  0%, 42% { opacity: 0; transform: translateX(-50%) scale(0.7); }
  50%, 62% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  68%, 100% { opacity: 0; transform: translateX(-50%) scale(0.84); }
}

.preview-sticker-one {
  animation: previewFloatOne 5.8s ease-in-out infinite;
}

.preview-sticker-two {
  animation: previewFloatTwo 6.3s ease-in-out infinite;
}

@keyframes previewFloatOne {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(-16deg) translateY(-8px); }
}

@keyframes previewFloatTwo {
  0%, 100% { transform: rotate(9deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

body.info-body .site-proof {
  gap: 10px;
  margin-top: 26px;
}

body.info-body .site-proof span {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(117, 174, 169, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #243a40;
  box-shadow: 0 10px 22px rgba(31, 49, 56, 0.08);
  font-size: 0.9rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(117, 174, 169, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 209, 102, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(39, 55, 63, 0.075);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.pricing-card:hover {
  border-color: rgba(98, 198, 196, 0.4);
  box-shadow: 0 20px 38px rgba(39, 55, 63, 0.11);
  transform: translateY(-3px);
}

.pricing-card.is-featured {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 209, 102, 0.34), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(98, 198, 196, 0.24), transparent 34%),
    #ffffff;
  border-color: rgba(98, 198, 196, 0.42);
  box-shadow: 0 20px 42px rgba(39, 55, 63, 0.13);
  transform: translateY(-8px);
}

.pricing-card.is-featured:hover {
  transform: translateY(-11px);
}

.pricing-tag {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfbf8;
  color: #356d6c;
  font-size: 0.76rem;
  font-weight: 950;
}

.pricing-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #172026;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
}

.pack-card {
  overflow: hidden;
}

.pack-art {
  position: relative;
  height: clamp(220px, 25vw, 300px);
  display: block;
  overflow: visible;
}

.pack-sticker,
.pack-page,
.pack-character {
  position: absolute;
  display: grid;
  place-items: center;
}

.pack-sticker,
.pack-page {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 18px 30px rgba(39, 55, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pack-sticker img,
.pack-page img,
.pack-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  max-height: none;
}

.pack-sticker-one {
  left: 10%;
  top: 12%;
  width: 32%;
  height: 68%;
  transform: rotate(-10deg);
}

.pack-sticker-two {
  left: 34%;
  top: 5%;
  width: 34%;
  height: 76%;
  z-index: 2;
  transform: rotate(5deg);
}

.pack-sticker-three {
  right: 9%;
  top: 16%;
  width: 30%;
  height: 66%;
  transform: rotate(12deg);
}

.pack-page-one,
.pack-page-two,
.pack-page-three {
  left: 7%;
  width: 45%;
  height: 68%;
  overflow: hidden;
}

.pack-page-one {
  top: 18%;
  transform: rotate(-9deg);
}

.pack-page-two {
  top: 11%;
  z-index: 2;
  transform: translateX(14%) rotate(1deg);
}

.pack-page-three {
  top: 20%;
  z-index: 1;
  transform: translateX(27%) rotate(9deg);
}

.pack-character-dino {
  right: 10%;
  bottom: 3%;
  width: 28%;
  height: 72%;
  z-index: 3;
}

.pack-character-astro {
  right: 28%;
  top: 10%;
  width: 24%;
  height: 58%;
  z-index: 2;
  transform: rotate(-7deg);
}

.privacy-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 174, 169, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  box-shadow: 0 14px 30px rgba(39, 55, 63, 0.07);
}

.privacy-panel article {
  padding: 24px;
}

.privacy-panel article + article {
  border-left: 1px solid rgba(117, 174, 169, 0.16);
}

.privacy-panel h3 {
  margin: 0;
  color: #172026;
}

.privacy-panel p {
  margin: 10px 0 0;
  color: #53616a;
  line-height: 1.52;
}

.parent-sheet {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
  .parent-pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pricing-option.is-recommended {
    transform: none;
  }

  .parent-actions.is-panel {
    margin-top: 16px;
  }

  .parent-actions.is-panel .parent-secondary {
    width: 100%;
  }

  .gallery-arrow {
    display: none;
  }

  .promo-banner {
    align-items: stretch;
    justify-content: space-between;
    font-size: 0.78rem;
  }

  .sticky-playbar {
    min-height: 54px;
    font-size: 0.86rem;
  }

  .site-preview {
    min-height: 330px;
  }

  .preview-card-stack {
    width: 88%;
    height: 88%;
  }

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

  .pricing-card.is-featured,
  .pricing-card.is-featured:hover {
    transform: none;
  }

  .privacy-panel article + article {
    border-top: 1px solid rgba(117, 174, 169, 0.16);
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .promo-banner {
    gap: 8px;
    padding-block: 7px;
  }

  .promo-banner span {
    min-width: 0;
  }

  .sticky-playbar {
    padding-left: 14px;
  }

  .site-preview {
    min-height: 300px;
  }

  .preview-device .preview-card {
    padding: 8px;
    border-radius: 13px;
  }

  .pack-art {
    height: clamp(210px, 58vw, 260px);
  }
}

body.info-body .preview-device {
  overflow: hidden;
}

body.info-body .process-demo {
  width: min(82%, 260px);
  max-width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  transform: translateY(2px);
}

body.info-body .process-ghost,
body.info-body .process-color {
  inset: 9%;
  background-image: url("assets/red-panda.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.info-body .process-ghost {
  opacity: 0;
  filter: grayscale(1);
  animation: miniPuzzleGhost 9s ease-in-out infinite;
}

body.info-body .process-piece {
  width: 27.333%;
  height: 27.333%;
  border: 1.6px solid rgba(48, 61, 66, 0.42);
  border-radius: 0;
  background-image: url("assets/red-panda.webp");
  background-repeat: no-repeat;
  background-size: 300% 300%;
  opacity: 0;
  filter: grayscale(1);
  animation: miniPuzzlePiece 9s cubic-bezier(0.18, 0.9, 0.22, 1) infinite;
  transform-origin: center;
}

body.info-body .process-piece,
body.info-body .process-piece-one,
body.info-body .process-piece-two,
body.info-body .process-piece-three,
body.info-body .process-piece-four,
body.info-body .process-piece-five,
body.info-body .process-piece-six,
body.info-body .process-piece-seven,
body.info-body .process-piece-eight,
body.info-body .process-piece-nine {
  border-radius: 0;
}

body.info-body .process-piece-one {
  left: 9%;
  top: 9%;
  --sx: -42%;
  --sy: -45%;
  --sr: -11deg;
  background-position: 0% 0%;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 82% 62%, 82% 82%, 61% 82%, 61% 100%, 0 100%);
}

body.info-body .process-piece-two {
  left: 36.333%;
  top: 9%;
  --sx: 1%;
  --sy: -58%;
  --sr: 7deg;
  background-position: 50% 0%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 58% 100%, 58% 82%, 38% 82%, 38% 62%, 0 62%);
}

body.info-body .process-piece-three {
  left: 63.666%;
  top: 9%;
  --sx: 43%;
  --sy: -39%;
  --sr: 12deg;
  background-position: 100% 0%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 62%, 18% 62%, 18% 42%, 0 42%);
}

body.info-body .process-piece-four {
  left: 9%;
  top: 36.333%;
  --sx: -55%;
  --sy: 2%;
  --sr: 9deg;
  background-position: 0% 50%;
  clip-path: polygon(0 0, 61% 0, 61% 18%, 82% 18%, 82% 38%, 100% 38%, 100% 100%, 0 100%);
}

body.info-body .process-piece-five {
  left: 36.333%;
  top: 36.333%;
  --sx: 2%;
  --sy: 44%;
  --sr: -8deg;
  background-position: 50% 50%;
  clip-path: polygon(18% 0, 38% 0, 38% 18%, 58% 18%, 58% 0, 100% 0, 100% 62%, 82% 62%, 82% 82%, 62% 82%, 62% 100%, 0 100%, 0 38%, 18% 38%);
}

body.info-body .process-piece-six {
  left: 63.666%;
  top: 36.333%;
  --sx: 52%;
  --sy: 9%;
  --sr: -12deg;
  background-position: 100% 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 62%, 18% 62%, 18% 42%, 0 42%);
}

body.info-body .process-piece-seven {
  left: 9%;
  top: 63.666%;
  --sx: -38%;
  --sy: 46%;
  --sr: -9deg;
  background-position: 0% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 82% 38%, 82% 58%, 61% 58%, 61% 100%, 0 100%);
}

body.info-body .process-piece-eight {
  left: 36.333%;
  top: 63.666%;
  --sx: -7%;
  --sy: 60%;
  --sr: 10deg;
  background-position: 50% 100%;
  clip-path: polygon(0 0, 38% 0, 38% 18%, 62% 18%, 62% 0, 100% 0, 100% 100%, 0 100%);
}

body.info-body .process-piece-nine {
  left: 63.666%;
  top: 63.666%;
  --sx: 45%;
  --sy: 42%;
  --sr: 8deg;
  background-position: 100% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 38%, 18% 38%, 18% 58%, 0 58%);
}

body.info-body .process-color {
  opacity: 0;
  transform: scale(0.98);
  filter: none;
  clip-path: circle(0% at 28% 26%);
  animation: miniPuzzleColor 9s ease-in-out infinite;
}

body.info-body .process-scratch {
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(98, 198, 196, 0.62);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(39, 55, 63, 0.14);
  opacity: 0;
  transform: translate(26%, 25%) scale(0.8);
  animation: miniPuzzleScratch 9s ease-in-out infinite;
}

body.info-body .process-check {
  width: 50px;
  height: 50px;
  animation: miniPuzzleCheck 9s ease-in-out infinite;
}

@keyframes miniPuzzlePiece {
  0%, 7% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.94);
  }

  12% {
    opacity: 1;
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.94);
  }

  36%, 45% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  50%, 100% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes miniPuzzleGhost {
  0%, 43% {
    opacity: 0;
  }

  50%, 73% {
    opacity: 1;
  }

  86%, 100% {
    opacity: 0;
  }
}

@keyframes miniPuzzleCheck {
  0%, 37% {
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }

  43%, 50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }

  56%, 100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.84);
  }
}

@keyframes miniPuzzleColor {
  0%, 51% {
    opacity: 0;
    transform: scale(0.98);
    clip-path: circle(0% at 28% 26%);
  }

  55% {
    opacity: 1;
    transform: scale(0.99);
    clip-path: circle(12% at 28% 26%);
  }

  62% {
    opacity: 1;
    transform: scale(1);
    clip-path: circle(30% at 65% 36%);
  }

  70% {
    opacity: 1;
    transform: scale(1.018);
    clip-path: circle(54% at 38% 70%);
  }

  78%, 90% {
    opacity: 1;
    transform: translateY(-4px) scale(1.035);
    clip-path: circle(88% at 50% 50%);
  }

  96%, 100% {
    opacity: 0;
    transform: scale(1);
    clip-path: circle(88% at 50% 50%);
  }
}

@keyframes miniPuzzleScratch {
  0%, 51% {
    opacity: 0;
    transform: translate(26%, 25%) scale(0.8);
  }

  55% {
    opacity: 1;
    transform: translate(26%, 25%) scale(1);
  }

  62% {
    opacity: 1;
    transform: translate(142%, 58%) scale(1);
  }

  70% {
    opacity: 1;
    transform: translate(76%, 155%) scale(1);
  }

  77% {
    opacity: 1;
    transform: translate(155%, 118%) scale(1);
  }

  82%, 100% {
    opacity: 0;
    transform: translate(155%, 118%) scale(0.86);
  }
}

@media (max-width: 820px) {
  body.info-body .process-demo {
    width: min(84%, 230px);
  }
}

body.info-body .site-preview .preview-sticker {
  display: none;
}

body.info-body .process-demo {
  width: min(88%, 280px);
}

body.info-body .process-ghost,
body.info-body .process-color {
  inset: 8%;
}

body.info-body .process-ghost {
  opacity: 0.2;
  filter: grayscale(1) opacity(0.78);
  animation: demoGhost 10s ease-in-out infinite;
}

body.info-body .process-piece {
  width: 28%;
  height: 28%;
  border: 1.4px solid rgba(37, 48, 54, 0.44);
  border-radius: 0;
  clip-path: none;
  opacity: 0;
  filter: grayscale(1);
  box-shadow: none;
  animation: demoPiece 10s cubic-bezier(0.18, 0.9, 0.2, 1) infinite;
}

body.info-body .process-piece-one {
  left: 8%;
  top: 8%;
  --sx: -142%;
  --sy: -118%;
  --sr: -20deg;
}

body.info-body .process-piece-two {
  left: 36%;
  top: 8%;
  --sx: -18%;
  --sy: -154%;
  --sr: 14deg;
}

body.info-body .process-piece-three {
  left: 64%;
  top: 8%;
  --sx: 128%;
  --sy: -110%;
  --sr: 24deg;
}

body.info-body .process-piece-four {
  left: 8%;
  top: 36%;
  --sx: -164%;
  --sy: -4%;
  --sr: 18deg;
}

body.info-body .process-piece-five {
  left: 36%;
  top: 36%;
  --sx: 18%;
  --sy: 146%;
  --sr: -16deg;
}

body.info-body .process-piece-six {
  left: 64%;
  top: 36%;
  --sx: 156%;
  --sy: 12%;
  --sr: -22deg;
}

body.info-body .process-piece-seven {
  left: 8%;
  top: 64%;
  --sx: -128%;
  --sy: 112%;
  --sr: -18deg;
}

body.info-body .process-piece-eight {
  left: 36%;
  top: 64%;
  --sx: -24%;
  --sy: 154%;
  --sr: 16deg;
}

body.info-body .process-piece-nine {
  left: 64%;
  top: 64%;
  --sx: 132%;
  --sy: 116%;
  --sr: 20deg;
}

body.info-body .process-color {
  opacity: 0;
  filter: none;
  clip-path: circle(0% at 22% 24%);
  animation: demoColorReveal 10s ease-in-out infinite;
}

body.info-body .process-check {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  animation: demoCheck 10s ease-in-out infinite;
}

body.info-body .process-check::before {
  left: 17px;
  top: 15px;
}

body.info-body .process-scratch {
  left: 22%;
  top: 24%;
  width: 32px;
  height: 32px;
  opacity: 0;
  border: 2px solid rgba(98, 198, 196, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(39, 55, 63, 0.12);
  transform: translate(-50%, -50%) scale(0.85);
  animation: demoFinger 10s ease-in-out infinite;
}

@keyframes demoPiece {
  0%, 7% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.9);
  }

  12% {
    opacity: 1;
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.96);
  }

  38%, 45% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  49%, 100% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes demoGhost {
  0%, 7% {
    opacity: 0.2;
  }

  12%, 42% {
    opacity: 0.16;
  }

  49%, 78% {
    opacity: 0.88;
  }

  86%, 100% {
    opacity: 0;
  }
}

@keyframes demoCheck {
  0%, 38% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }

  43%, 50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }

  54%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@keyframes demoColorReveal {
  0%, 56% {
    opacity: 0;
    transform: scale(1);
    clip-path: circle(0% at 22% 24%);
  }

  58% {
    opacity: 1;
    clip-path: circle(10% at 22% 24%);
  }

  64% {
    opacity: 1;
    clip-path: circle(20% at 72% 28%);
  }

  70% {
    opacity: 1;
    clip-path: circle(35% at 34% 56%);
  }

  76% {
    opacity: 1;
    clip-path: circle(52% at 74% 72%);
  }

  83%, 91% {
    opacity: 1;
    transform: translateY(-4px) rotate(1.2deg) scale(1.04);
    clip-path: circle(86% at 50% 50%);
  }

  97%, 100% {
    opacity: 0;
    transform: scale(1);
    clip-path: circle(86% at 50% 50%);
  }
}

@keyframes demoFinger {
  0%, 56% {
    opacity: 0;
    left: 22%;
    top: 24%;
    transform: translate(-50%, -50%) scale(0.85);
  }

  58% {
    opacity: 1;
    left: 22%;
    top: 24%;
    transform: translate(-50%, -50%) scale(1);
  }

  64% {
    opacity: 1;
    left: 72%;
    top: 28%;
  }

  70% {
    opacity: 1;
    left: 34%;
    top: 56%;
  }

  76% {
    opacity: 1;
    left: 74%;
    top: 72%;
  }

  82%, 100% {
    opacity: 0;
    left: 74%;
    top: 72%;
    transform: translate(-50%, -50%) scale(0.86);
  }
}

@media (max-width: 820px) {
  body.info-body .process-demo {
    width: min(92%, 252px);
  }
}

body.info-body .site-preview .preview-sticker {
  z-index: 0;
  display: block;
  opacity: 0.92;
  pointer-events: none;
}

body.info-body .preview-device {
  z-index: 2;
}

body.info-body .preview-sticker-one {
  width: min(32%, 150px);
  left: -7%;
  top: 22%;
  transform: rotate(-12deg);
}

body.info-body .preview-sticker-two {
  width: min(38%, 180px);
  right: -11%;
  bottom: 14%;
  transform: rotate(8deg);
}

body.info-body .process-demo {
  width: min(96%, 310px);
}

body.info-body .process-ghost,
body.info-body .process-color {
  inset: 4.5%;
}

body.info-body .process-piece {
  width: 30.333%;
  height: 30.333%;
  border: 1.2px solid rgba(37, 48, 54, 0.42);
  background-color: transparent;
  box-shadow: none;
}

body.info-body .process-piece-one {
  left: 4.5%;
  top: 4.5%;
}

body.info-body .process-piece-two {
  left: 34.833%;
  top: 4.5%;
}

body.info-body .process-piece-three {
  left: 65.166%;
  top: 4.5%;
}

body.info-body .process-piece-four {
  left: 4.5%;
  top: 34.833%;
}

body.info-body .process-piece-five {
  left: 34.833%;
  top: 34.833%;
}

body.info-body .process-piece-six {
  left: 65.166%;
  top: 34.833%;
}

body.info-body .process-piece-seven {
  left: 4.5%;
  top: 65.166%;
}

body.info-body .process-piece-eight {
  left: 34.833%;
  top: 65.166%;
}

body.info-body .process-piece-nine {
  left: 65.166%;
  top: 65.166%;
}

body.info-body .process-check {
  left: 50%;
  top: auto;
  bottom: -2px;
  width: auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2c6f67;
  box-shadow:
    0 10px 18px rgba(39, 55, 63, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0;
  font-weight: 950;
  letter-spacing: 0;
  transform: translate(-50%, 18px) scale(0.96);
  animation: demoCompletedMessage 10s ease-in-out infinite;
}

body.info-body .process-check::before {
  content: "Bravo, completed";
  position: static;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

@keyframes demoCompletedMessage {
  0%, 38% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.96);
  }

  43%, 51% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  56%, 100% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.98);
  }
}

@media (max-width: 820px) {
  body.info-body .process-demo {
    width: min(98%, 280px);
  }

  body.info-body .preview-sticker-one {
    left: -8%;
    top: 20%;
  }

  body.info-body .preview-sticker-two {
    right: -15%;
    bottom: 12%;
  }
}

body.info-body .site-preview .preview-sticker {
  display: none;
}

body.info-body .process-piece {
  border: 1.25px solid rgba(37, 48, 54, 0.46);
  background-color: transparent;
  overflow: hidden;
}

body.info-body .process-piece-one {
  clip-path: polygon(0 0, 100% 0, 100% 59%, 82% 59%, 82% 79%, 62% 79%, 62% 100%, 0 100%);
}

body.info-body .process-piece-two {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 59% 100%, 59% 82%, 39% 82%, 39% 62%, 0 62%);
}

body.info-body .process-piece-three {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 62%, 18% 62%, 18% 42%, 0 42%);
}

body.info-body .process-piece-four {
  clip-path: polygon(0 0, 62% 0, 62% 18%, 82% 18%, 82% 38%, 100% 38%, 100% 100%, 0 100%);
}

body.info-body .process-piece-five {
  clip-path: polygon(18% 0, 38% 0, 38% 18%, 59% 18%, 59% 0, 100% 0, 100% 62%, 82% 62%, 82% 82%, 62% 82%, 62% 100%, 0 100%, 0 38%, 18% 38%);
}

body.info-body .process-piece-six {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 62%, 18% 62%, 18% 42%, 0 42%);
}

body.info-body .process-piece-seven {
  clip-path: polygon(0 0, 100% 0, 100% 39%, 82% 39%, 82% 59%, 62% 59%, 62% 100%, 0 100%);
}

body.info-body .process-piece-eight {
  clip-path: polygon(0 0, 39% 0, 39% 18%, 62% 18%, 62% 0, 100% 0, 100% 100%, 0 100%);
}

body.info-body .process-piece-nine {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 39%, 18% 39%, 18% 59%, 0 59%);
}

body.info-body .process-check {
  bottom: -24px;
  height: 38px;
  padding: 0 19px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.88) 0 7px, transparent 8px),
    linear-gradient(180deg, #d9fff2 0%, #77e4b5 48%, #55bd8f 100%);
  color: #174f43;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.52),
    inset 0 -5px 0 rgba(20, 132, 93, 0.18),
    0 8px 0 rgba(32, 128, 98, 0.32),
    0 16px 24px rgba(39, 55, 63, 0.13);
  text-transform: uppercase;
  animation: demoBravoBadge 10s cubic-bezier(0.18, 0.9, 0.2, 1) infinite;
}

body.info-body .process-check::before {
  content: "Bravo!";
  color: #174f43;
  font-family:
    ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui,
    sans-serif;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.info-body .process-check::after {
  content: "";
  position: absolute;
  inset: -12px -18px;
  background:
    radial-gradient(circle at 10% 52%, #8a73ff 0 3px, transparent 4px),
    radial-gradient(circle at 25% 12%, #74efb7 0 3px, transparent 4px),
    radial-gradient(circle at 82% 22%, #a979ff 0 3px, transparent 4px),
    radial-gradient(circle at 94% 68%, #5ee6a9 0 3px, transparent 4px);
  opacity: 0;
  animation: demoBravoSparkles 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes demoBravoBadge {
  0%, 38% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.88) rotate(-1deg);
  }

  43% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.08) rotate(1deg);
  }

  48%, 53% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0deg);
  }

  58%, 100% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
}

@keyframes demoBravoSparkles {
  0%, 39% {
    opacity: 0;
    transform: scale(0.7) rotate(-8deg);
  }

  44%, 52% {
    opacity: 1;
    transform: scale(1.08) rotate(5deg);
  }

  59%, 100% {
    opacity: 0;
    transform: scale(1.3) rotate(12deg);
  }
}

body.info-body .process-piece,
body.info-body .process-piece-one,
body.info-body .process-piece-two,
body.info-body .process-piece-three,
body.info-body .process-piece-four,
body.info-body .process-piece-five,
body.info-body .process-piece-six,
body.info-body .process-piece-seven,
body.info-body .process-piece-eight,
body.info-body .process-piece-nine {
  clip-path: none;
}

body.info-body .process-piece::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1.4px solid rgba(37, 48, 54, 0.42);
  pointer-events: none;
}

body.info-body .process-piece::after {
  content: "";
  position: absolute;
  width: 19%;
  height: 19%;
  border: 1.4px solid rgba(37, 48, 54, 0.42);
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
}

body.info-body .process-piece-one::after,
body.info-body .process-piece-four::after,
body.info-body .process-piece-seven::after {
  right: -10%;
  top: 40%;
}

body.info-body .process-piece-two::after,
body.info-body .process-piece-five::after,
body.info-body .process-piece-eight::after {
  right: -10%;
  top: 40%;
}

body.info-body .process-piece-three::after,
body.info-body .process-piece-six::after,
body.info-body .process-piece-nine::after {
  left: -10%;
  top: 40%;
}

body.info-body .process-piece-four::before,
body.info-body .process-piece-five::before,
body.info-body .process-piece-six::before {
  border-top-style: dashed;
}

body.info-body .process-piece-seven::before,
body.info-body .process-piece-eight::before,
body.info-body .process-piece-nine::before {
  border-top-style: dashed;
}

body.info-body .process-check {
  bottom: -36px;
  animation: demoBravoLate 10s cubic-bezier(0.18, 0.9, 0.2, 1) infinite;
}

body.info-body .process-check::after {
  background:
    radial-gradient(circle at 10% 52%, rgba(81, 215, 155, 0.46) 0 3px, transparent 4px),
    radial-gradient(circle at 24% 8%, rgba(81, 215, 155, 0.84) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 20%, rgba(81, 215, 155, 0.62) 0 3px, transparent 4px),
    radial-gradient(circle at 94% 70%, rgba(81, 215, 155, 0.38) 0 3px, transparent 4px);
  animation: demoGreenSparkles 10s ease-in-out infinite;
}

@keyframes demoBravoLate {
  0%, 79% {
    opacity: 0;
    transform: translate(-50%, 22px) scale(0.9) rotate(-1deg);
  }

  84% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.08) rotate(1deg);
  }

  88%, 92% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1) rotate(0deg);
  }

  98%, 100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.97);
  }
}

@keyframes demoGreenSparkles {
  0%, 80% {
    opacity: 0;
    transform: translateY(4px) scale(0.72);
  }

  84%, 91% {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
  }

  98%, 100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.28);
  }
}

body.info-body .site-hero h1 {
  max-width: 650px;
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  line-height: 0.94;
}

body.info-body .site-hero p {
  max-width: 520px;
  color: #41515a;
  font-size: clamp(1rem, 0.35vw + 0.96rem, 1.16rem);
}

body.info-body .site-kicker {
  color: #356d6c;
  letter-spacing: 0.06em;
}

body.info-body .promo-banner a,
body.info-body .sticky-playbar a,
body.info-body .site-button,
body.info-body .pricing-action,
body.info-body .parent-primary {
  border: 3px solid var(--button-rim);
  background:
    radial-gradient(circle at 18px 11px, var(--button-glow) 0 8px, transparent 9px),
    linear-gradient(180deg, var(--button-gold-light) 0%, var(--button-gold) 44%, var(--button-orange) 100%);
  color: var(--button-icon);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.34),
    inset 0 -6px 0 rgba(151, 58, 39, 0.26),
    0 5px 0 var(--button-rim-dark),
    0 12px 18px rgba(97, 48, 34, 0.18);
}

body.info-body .promo-banner a,
body.info-body .sticky-playbar a {
  min-height: 42px;
  padding: 0 18px;
}

body.info-body .pricing-action,
body.info-body .parent-primary {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 950;
}

body.info-body .site-button.is-secondary {
  border-color: rgba(117, 174, 169, 0.82);
  background:
    radial-gradient(circle at 18px 11px, rgba(255, 255, 255, 0.82) 0 8px, transparent 9px),
    linear-gradient(180deg, #effbf8 0%, #bfeee7 52%, #91d7cf 100%);
  color: #356d6c;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.44),
    inset 0 -6px 0 rgba(84, 162, 155, 0.2),
    0 5px 0 #69a9a3,
    0 12px 18px rgba(80, 148, 143, 0.16);
}

body.info-body .promo-banner {
  min-height: 54px;
  padding-block: 6px;
  font-size: 0.94rem;
}

body.info-body .sticky-playbar {
  min-height: 66px;
  padding: 10px 12px 10px 20px;
}

body.info-body .site-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px;
  margin-top: 30px;
}

body.info-body .site-proof span {
  position: relative;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 17px 10px 11px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96) 0 10px, transparent 11px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 250, 245, 0.94));
  color: #20343b;
  box-shadow:
    0 13px 0 rgba(121, 197, 180, 0.16),
    0 20px 28px rgba(31, 49, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-weight: 950;
  transform: rotate(-1deg);
}

body.info-body .site-proof span:nth-child(2) {
  transform: rotate(1.2deg);
}

body.info-body .site-proof span:nth-child(3) {
  transform: rotate(-0.4deg);
}

body.info-body .site-proof strong,
body.info-body .site-proof small {
  display: block;
}

body.info-body .site-proof strong {
  font-size: 0.98rem;
  line-height: 1.05;
}

body.info-body .site-proof small {
  margin-top: 4px;
  color: #5d7279;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.05;
}

body.info-body .site-proof span::before {
  content: attr(data-icon);
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    linear-gradient(180deg, #d9fff2, #6fe1ac);
  color: #174f43;
  box-shadow:
    inset 0 -4px 0 rgba(20, 132, 93, 0.16),
    0 5px 10px rgba(39, 55, 63, 0.09);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  body.info-body .site-header {
    min-height: 64px;
  }

  body.info-body .site-hero {
    min-height: calc(100dvh - 54px - 64px - 78px);
    padding: clamp(16px, 2.4vw, 34px) 0 16px;
  }

  body.info-body .site-preview {
    min-height: min(48dvh, 400px);
  }
}

@media (max-width: 820px) {
  body.info-body .site-proof {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  body.info-body .site-proof span {
    width: max-content;
    max-width: 100%;
    transform: none;
  }

  body.info-body .promo-banner {
    min-height: 50px;
  }
}

html,
body.info-body {
  background: #f6f7f4;
}

body.info-body {
  background:
    linear-gradient(180deg, #f6f7f4 0%, #f6f7f4 58%, #f6f7f4 100%);
}

body.info-body .site-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  grid-template-areas:
    "copy preview"
    "details preview";
  align-content: center;
  row-gap: 0;
}

body.info-body .site-hero-copy {
  grid-area: copy;
}

body.info-body .site-hero-details {
  grid-area: details;
}

body.info-body .site-preview {
  grid-area: preview;
}

body.info-body .promo-banner {
  background: rgba(246, 247, 244, 0.94);
}

body.info-body .promo-banner a,
body.info-body .sticky-playbar a,
body.info-body .site-button,
body.info-body .pricing-action,
body.info-body .parent-primary {
  border-width: 2px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.32),
    inset 0 -5px 0 rgba(151, 58, 39, 0.22),
    0 4px 0 var(--button-rim-dark),
    0 10px 16px rgba(97, 48, 34, 0.15);
}

body.info-body .promo-banner a,
body.info-body .sticky-playbar a {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.82rem;
}

body.info-body .site-button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

body.info-body .promo-banner {
  min-height: 48px;
  padding-block: 5px;
  font-size: 0.86rem;
}

body.info-body .sticky-playbar {
  min-height: 58px;
  padding: 8px 10px 8px 17px;
  background: rgba(255, 255, 255, 0.92);
}

body.info-body .site-proof {
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 9px;
  margin-top: 22px;
}

body.info-body .site-proof span {
  min-height: 48px;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 15px;
  box-shadow:
    0 8px 0 rgba(121, 197, 180, 0.1),
    0 14px 22px rgba(31, 49, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.info-body .site-proof strong {
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

body.info-body .site-proof small {
  display: none;
}

body.info-body .site-proof span::before {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: 0.64rem;
}

body.info-body .preview-device {
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 209, 102, 0.22), transparent 32%),
    #ffffff;
}

body.info-body .process-demo {
  transform: translateY(18px);
}

body.info-body .process-piece,
body.info-body .process-color,
body.info-body .process-ghost,
body.info-body .process-scratch,
body.info-body .process-check,
body.info-body .process-check::after {
  animation-duration: 10.8s;
}

body.info-body .process-piece {
  animation-timing-function: cubic-bezier(0.16, 0.92, 0.18, 1);
}

@media (min-width: 1024px) {
  body.info-body .site-hero {
    min-height: calc(100dvh - 48px - 64px - 72px);
  }
}

@media (max-width: 820px) {
  body.info-body {
    background: #f6f7f4;
    padding-bottom: max(82px, env(safe-area-inset-bottom));
  }

  body.info-body .site-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview"
      "details";
    gap: 14px;
    padding-top: 18px;
    overflow: visible;
  }

  body.info-body .site-hero > div {
    width: 100%;
    max-width: none;
  }

  body.info-body .site-hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  body.info-body .site-hero p {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  body.info-body .site-preview {
    min-height: 285px;
    margin-top: 2px;
  }

  body.info-body .preview-device {
    width: min(74%, 310px);
    border-width: 8px;
    border-radius: 32px;
  }

  body.info-body .process-demo {
    width: min(98%, 250px);
    transform: translateY(16px);
  }

  body.info-body .site-cta-row {
    gap: 9px;
    margin-top: 18px;
  }

  body.info-body .site-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.82rem;
  }

  body.info-body .site-proof {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
  }

  body.info-body .site-proof span {
    min-height: 34px;
    gap: 6px;
    padding: 5px 9px 5px 6px;
    border-radius: 12px;
    transform: none;
  }

  body.info-body .site-proof strong {
    font-size: 0.74rem;
  }

  body.info-body .site-proof span::before {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 0.48rem;
  }

  body.info-body .promo-banner a,
  body.info-body .sticky-playbar a {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  body.info-body .promo-banner {
    min-height: 44px;
    font-size: 0.76rem;
  }

  body.info-body .sticky-playbar {
    min-height: 52px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  body.info-body .site-proof strong {
    font-size: 0.68rem;
  }

  body.info-body .site-proof span {
    min-height: 31px;
    padding-right: 8px;
  }

  body.info-body .site-proof span::before {
    width: 20px;
    height: 20px;
    font-size: 0.44rem;
  }
}

body.info-body.landing-body {
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-y: auto;
  padding-bottom: max(82px, env(safe-area-inset-bottom));
}

body.info-body.landing-body .site-shell {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body.info-body.landing-body .site-main {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.info-body.landing-body .site-hero {
  height: auto;
  min-height: min(760px, calc(100dvh - 48px));
  padding-bottom: 36px;
}

body.info-body.landing-body .site-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(23, 32, 38, 0.1);
  border-bottom: 1px solid rgba(23, 32, 38, 0.1);
}

body.info-body.landing-body .site-card {
  padding: 18px 18px 18px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.info-body.landing-body .site-card + .site-card {
  padding-left: 18px;
  border-left: 1px solid rgba(23, 32, 38, 0.1);
}

body.info-body.landing-body .site-card-mark {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 0;
  background: transparent;
  color: #62a59d;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 950;
}

body.info-body.landing-body .site-card h3 {
  font-size: 1rem;
}

body.info-body.landing-body .site-card p {
  max-width: 26ch;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.4;
}

body.info-body.landing-body .site-proof {
  display: flex;
  width: min(100%, 430px);
  margin-top: 20px;
}

body.info-body.landing-body .site-proof span {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(98, 198, 196, 0.3);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24px 50%, rgba(255, 255, 255, 0.95) 0 13px, transparent 14px),
    linear-gradient(90deg, rgba(236, 251, 248, 0.98), rgba(255, 255, 255, 0.78));
  box-shadow: 0 12px 24px rgba(39, 55, 63, 0.08);
  transform: none;
}

body.info-body.landing-body .site-proof span::before {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

body.info-body.landing-body .site-proof strong {
  font-size: 0.86rem;
  white-space: normal;
}

body.info-body.landing-body .pack-page {
  border-radius: 18px;
  overflow: hidden;
  clip-path: inset(0 round 18px);
}

body.info-body.landing-body .pack-page img {
  border-radius: inherit;
  object-fit: cover;
}

body.info-body.landing-body .pack-card {
  overflow: visible;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.site-brand img {
  width: 42px;
  height: 42px;
}

.brand {
  gap: 12px;
}

.site-brand {
  gap: 12px;
}

@media (max-width: 820px) {
  body.info-body.landing-body .site-hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 24px;
  }

  body.info-body.landing-body .site-preview {
    min-height: clamp(310px, 50dvh, 390px);
  }

  body.info-body.landing-body .preview-device {
    width: min(86%, 360px);
  }

  body.info-body.landing-body .process-demo {
    width: min(104%, 300px);
  }

  body.info-body.landing-body .site-grid {
    grid-template-columns: 1fr;
  }

  body.info-body.landing-body .site-card,
  body.info-body.landing-body .site-card + .site-card {
    padding: 14px 0;
    border-left: 0;
  }

  body.info-body.landing-body .site-card + .site-card {
    border-top: 1px solid rgba(23, 32, 38, 0.1);
  }

  body.info-body.landing-body .site-card p {
    max-width: none;
  }

  body.info-body.landing-body .site-proof {
    width: 100%;
    margin-top: 14px;
  }

  body.info-body.landing-body .site-proof span {
    min-height: 36px;
    padding: 5px 11px 5px 6px;
  }

  body.info-body.landing-body .site-proof span::before {
    width: 25px;
    height: 25px;
  }

  body.info-body.landing-body .site-proof strong {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-brand img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 820px) {
  body.info-body.landing-body .pricing-grid {
    gap: 10px;
  }

  body.info-body.landing-body .pricing-card,
  body.info-body.landing-body .pricing-card.is-featured {
    padding: 14px;
    border-radius: 13px;
    box-shadow: 0 9px 18px rgba(39, 55, 63, 0.075);
    transform: none;
  }

  body.info-body.landing-body .pricing-tag {
    min-height: 22px;
    margin-bottom: 8px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  body.info-body.landing-body .pricing-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.05;
  }

  body.info-body.landing-body .pricing-card p {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.32;
  }

  body.info-body.landing-body .pricing-card ul {
    display: grid;
    gap: 3px;
    margin: 8px 0 0;
    padding-left: 14px;
    color: #53616a;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  body.info-body.landing-body .pricing-action {
    min-height: 34px;
    margin-top: 12px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

body.info-body.landing-body .pricing-card .price {
  display: block;
  margin-top: 5px;
  color: #356d6c;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1;
}

body.info-body.landing-body .pricing-action {
  gap: 8px;
}

body.info-body.landing-body .pricing-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .profile-parent-auth {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .profile-parent-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-parent-auth-actions .parent-primary,
  .profile-parent-auth-actions .parent-secondary {
    width: 100%;
  }

  .auth-sheet .parent-auth-field div {
    grid-template-columns: 1fr;
  }

  .auth-sheet .parent-auth-field .parent-primary {
    width: 100%;
  }

  body.info-body.landing-body .pricing-card .price {
    margin-top: 4px;
    font-size: 0.88rem;
  }

  body.info-body.landing-body .pricing-action {
    justify-content: space-between;
    width: 100%;
  }

  body.info-body.landing-body .pricing-action svg {
    width: 15px;
    height: 15px;
  }
}

.parent-panel:focus,
.parent-panel:focus-visible {
  outline: none;
}

.profile-lock {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(23, 32, 38, 0.82);
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 8px 10px rgba(31, 49, 56, 0.16));
  pointer-events: none;
}

.profile-lock svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.profile-puzzle.is-undone img {
  opacity: 0.3;
  filter:
    grayscale(1)
    saturate(0)
    brightness(1.18)
    contrast(0.78)
    drop-shadow(0 8px 12px rgba(31, 49, 56, 0.08));
}

.profile-puzzle.is-undone span,
.profile-puzzle.is-undone small {
  color: rgba(23, 32, 38, 0.32);
}

.profile-puzzle.is-locked img {
  opacity: 0.28;
  filter:
    grayscale(1)
    saturate(0)
    brightness(1.1)
    contrast(0.82)
    drop-shadow(0 8px 12px rgba(31, 49, 56, 0.08));
}

.profile-puzzle.is-locked span {
  color: rgba(23, 32, 38, 0.38);
}

.profile-puzzle.is-locked .profile-lock {
  color: rgba(23, 32, 38, 0.86);
}

.profile-puzzle.is-locked small {
  background: rgba(23, 32, 38, 0.08);
  color: rgba(23, 32, 38, 0.48);
}

@media (min-width: 821px) {
  .profile-modal {
    top: 68px;
  }

  .profile-sheet {
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
  }
}
