@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-latin-italic-600.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/spectral-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-latin-italic-400.woff2") format("woff2");
}

:root {
  --parch: #efe6d2;
  --parch-deep: #e4d7bb;
  --paper: #fffaf0;
  --crimson: #8e2b20;
  --crimson-dark: #6f1f17;
  --forest: #2c4a33;
  --forest-dark: #1f3525;
  --gold: #c9962e;
  --ink: #241c12;
  --ink-soft: #4a3f30;
  --line: rgba(36, 28, 18, 0.16);
  --shadow: 0 22px 60px rgba(36, 28, 18, 0.16);
  --soft-shadow: 0 10px 30px rgba(36, 28, 18, 0.1);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(circle at 85% 70%, rgba(142, 43, 32, 0.055), transparent 28%),
    var(--parch);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(36, 28, 18, 0.018) 0, rgba(36, 28, 18, 0.018) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 9px);
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 12px 18px;
  color: var(--paper);
  background: var(--crimson-dark);
  border: 2px solid var(--gold);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 4px solid #f6c95e;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--parch);
  background: rgba(31, 53, 37, 0.97);
  border-bottom: 1px solid rgba(201, 150, 46, 0.48);
  box-shadow: 0 8px 24px rgba(20, 35, 25, 0.16);
  backdrop-filter: blur(12px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 9px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--parch);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 150, 46, 0.8);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.brand span {
  display: block;
  line-height: 1.05;
}

.brand b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #e1bd6b;
  font-size: 0.63rem;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.quiet-button,
.home-link {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--parch);
  background: transparent;
  border: 1px solid rgba(239, 230, 210, 0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}

.quiet-button:hover,
.home-link:hover {
  color: #fff;
  background: rgba(239, 230, 210, 0.1);
  border-color: var(--gold);
}

.install-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff9e9;
  background: var(--crimson);
  border-color: rgba(201, 150, 46, 0.8);
}

.install-button svg,
.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-button {
  min-width: 46px;
  font-family: var(--font-display);
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  color: var(--parch);
  background:
    radial-gradient(circle at 74% 30%, rgba(201, 150, 46, 0.18), transparent 25%),
    linear-gradient(145deg, #1a2f21 0%, var(--forest) 48%, #17261b 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(1px);
}

.hero::before {
  top: -180px;
  left: -100px;
  width: 470px;
  height: 470px;
  background: rgba(142, 43, 32, 0.18);
}

.hero::after {
  right: -170px;
  bottom: -230px;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(201, 150, 46, 0.18);
  box-shadow: 0 0 0 52px rgba(201, 150, 46, 0.035), 0 0 0 104px rgba(201, 150, 46, 0.025);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: clamp(34px, 8vw, 100px);
  width: min(1120px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 28px 104px;
}

.eyebrow,
.panel-kicker {
  margin-bottom: 10px;
  color: var(--crimson);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero .eyebrow,
.how-section .eyebrow {
  color: #e7bd5f;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 6.3rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.24);
}

.hero h1 em {
  display: block;
  color: #e5b64e;
  font-weight: 500;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 24px;
  color: #f5ecd9;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}

.hero-badges span {
  padding: 7px 12px;
  color: #f3e7cd;
  background: rgba(17, 37, 24, 0.44);
  border: 1px solid rgba(239, 230, 210, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button-primary {
  color: #fff9ea;
  background: var(--crimson);
  border-color: rgba(255, 227, 163, 0.36);
  box-shadow: 0 8px 22px rgba(111, 31, 23, 0.25);
}

.button-primary:hover:not(:disabled) {
  background: var(--crimson-dark);
  box-shadow: 0 10px 26px rgba(111, 31, 23, 0.34);
}

.button-secondary {
  color: var(--forest-dark);
  background: #fff8e8;
  border-color: rgba(44, 74, 51, 0.32);
  box-shadow: 0 5px 16px rgba(36, 28, 18, 0.08);
}

.button-secondary:hover:not(:disabled) {
  background: #fffdf7;
  border-color: var(--forest);
}

.button-ghost-dark {
  color: var(--forest-dark);
  background: transparent;
  border-color: rgba(44, 74, 51, 0.36);
}

.button-ghost-dark:hover:not(:disabled) {
  background: rgba(44, 74, 51, 0.07);
}

.button-large {
  min-height: 56px;
  padding: 15px 25px;
  font-size: 1.08rem;
}

.button-full {
  width: 100%;
}

.button-magic {
  position: relative;
  overflow: hidden;
  color: #fff8e5;
  background: linear-gradient(120deg, var(--crimson-dark), var(--crimson) 50%, #a33a2d);
  border-color: rgba(201, 150, 46, 0.8);
  box-shadow: 0 10px 30px rgba(111, 31, 23, 0.3);
}

.button-magic::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.18) 47%, transparent 68%);
  transform: translateX(-120%);
}

.button-magic:hover::before {
  animation: shimmer 0.75s ease;
}

.magic-stars {
  color: #f8d987;
}

@keyframes shimmer {
  to { transform: translateX(120%); }
}

.storybook-scene {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 244, 193, 0.75) 0 8%, transparent 8.4%),
    linear-gradient(#7e9a91 0 48%, #2f5d3a 48% 100%);
  border: 10px solid #d5b66d;
  border-radius: 46% 46% 24px 24px;
  box-shadow:
    0 0 0 2px #67471f,
    0 0 0 15px rgba(255, 248, 226, 0.13),
    0 28px 60px rgba(0, 0, 0, 0.34);
}

.storybook-scene::before {
  position: absolute;
  inset: 10px;
  z-index: 8;
  pointer-events: none;
  content: "";
  border: 2px solid rgba(255, 239, 190, 0.68);
  border-radius: 45% 45% 16px 16px;
}

.storybook-scene::after {
  display: none;
}

.visitor-sample {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-label {
  position: absolute;
  top: 23px;
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 54px);
  padding: 6px 11px;
  color: #fff8e3;
  background: rgba(31, 53, 37, 0.88);
  border: 1px solid rgba(239, 211, 143, 0.8);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.moon {
  position: absolute;
  top: 9%;
  right: 14%;
  width: 17%;
  aspect-ratio: 1;
  background: #f2da96;
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(247, 222, 148, 0.42);
}

.mountain {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  background: #314c3d;
  clip-path: polygon(50% 4%, 100% 92%, 76% 82%, 65% 92%, 44% 77%, 27% 91%, 0 94%);
}

.mountain-back {
  top: 26%;
  left: -7%;
  opacity: 0.78;
}

.mountain-front {
  top: 20%;
  right: -8%;
  background: #233b2d;
}

.gnome-silhouette {
  position: absolute;
  z-index: 4;
  bottom: 21%;
  left: 50%;
  width: 44%;
  height: 50%;
  transform: translateX(-50%);
}

.gnome-silhouette span {
  position: absolute;
  display: block;
}

.gnome-silhouette .hat {
  top: 0;
  left: 13%;
  z-index: 4;
  width: 64%;
  height: 47%;
  background: linear-gradient(100deg, #6f1f17, #a53629 65%, #be4c3a);
  border-radius: 78% 22% 32% 40%;
  clip-path: polygon(2% 90%, 91% 100%, 65% 63%, 46% 32%, 22% 0);
  transform: rotate(-8deg);
  filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.24));
}

.gnome-silhouette .head {
  top: 34%;
  left: 26%;
  z-index: 3;
  width: 48%;
  aspect-ratio: 1;
  background: #dba77c;
  border-radius: 50%;
}

.gnome-silhouette .head::after {
  position: absolute;
  top: 46%;
  left: 16%;
  width: 76%;
  height: 95%;
  content: "";
  background: #e5e0d0;
  clip-path: polygon(0 0, 100% 0, 73% 100%, 53% 79%, 38% 98%);
}

.gnome-silhouette .body {
  right: 10%;
  bottom: 0;
  left: 10%;
  height: 45%;
  background: #8d7041;
  border-radius: 50% 50% 16% 16%;
}

.gnome-silhouette .pack {
  right: 1%;
  bottom: 4%;
  z-index: -1;
  width: 34%;
  height: 35%;
  background: #71482a;
  border: 3px dashed #b58e50;
  border-radius: 43% 48% 22% 20%;
}

.mushroom {
  position: absolute;
  z-index: 7;
  width: 42px;
  height: 31px;
  background: #e2d4ad;
  border-radius: 5px 5px 16px 16px;
}

.mushroom::before {
  position: absolute;
  top: -17px;
  left: -10px;
  width: 62px;
  height: 29px;
  content: "";
  background:
    radial-gradient(circle at 28% 37%, #f6e8c6 0 7%, transparent 8%),
    radial-gradient(circle at 62% 58%, #f6e8c6 0 6%, transparent 7%),
    radial-gradient(circle at 75% 26%, #f6e8c6 0 5%, transparent 6%),
    var(--crimson);
  border-radius: 60% 60% 32% 32%;
}

.mushroom-one { bottom: 15%; left: 9%; transform: scale(0.72); }
.mushroom-two { right: 9%; bottom: 13%; transform: scale(0.48); }

.flower {
  position: absolute;
  z-index: 6;
  color: #eac25f;
  font-size: 2rem;
  text-shadow: 0 0 0 #91402d;
}

.flower-one { bottom: 22%; left: 20%; }
.flower-two { right: 16%; bottom: 25%; color: #d96b55; }

.scene-caption {
  position: absolute;
  right: 9%;
  bottom: 5%;
  left: 9%;
  z-index: 10;
  margin: 0;
  padding: 9px 12px 7px;
  color: var(--ink);
  background: #eadbb7;
  border: 1px solid #8f6b30;
  border-radius: 48% 48% 10px 10px;
  font-size: 0.8rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.scene-caption b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero-ridge {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 42px;
  background: var(--parch);
  clip-path: polygon(0 74%, 4% 53%, 8% 70%, 13% 42%, 18% 68%, 24% 39%, 29% 63%, 35% 29%, 41% 61%, 47% 37%, 52% 66%, 58% 34%, 63% 59%, 68% 28%, 74% 60%, 80% 35%, 86% 65%, 92% 44%, 96% 68%, 100% 50%, 100% 100%, 0 100%);
}

.maker-section {
  position: relative;
  padding: 88px 24px 105px;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: var(--forest-dark);
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.wizard-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.97);
  border: 1px solid rgba(36, 28, 18, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 58px 1fr 58px 1fr;
  align-items: center;
  padding: 20px clamp(18px, 4vw, 40px);
  background: var(--forest-dark);
  border-bottom: 3px solid var(--gold);
}

.step {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  color: rgba(239, 230, 210, 0.62);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.step:disabled {
  cursor: default;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--forest-dark);
  background: rgba(239, 230, 210, 0.55);
  border: 2px solid transparent;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}

.step-copy {
  min-width: 0;
}

.step-copy b,
.step-copy small {
  display: block;
}

.step-copy b {
  color: inherit;
  font-size: 0.98rem;
}

.step-copy small {
  margin-top: 1px;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.is-active,
.step.is-complete {
  color: var(--parch);
}

.step.is-active .step-number {
  color: var(--forest-dark);
  background: #f4cf75;
  border-color: #fff3d1;
  box-shadow: 0 0 0 4px rgba(201, 150, 46, 0.2);
}

.step.is-complete .step-number {
  position: relative;
  color: transparent;
  background: var(--gold);
}

.step.is-complete .step-number::after {
  position: absolute;
  color: var(--forest-dark);
  content: "✓";
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
}

.step-line {
  width: 100%;
  height: 2px;
  background: rgba(239, 230, 210, 0.24);
}

.wizard-content {
  padding: clamp(28px, 5vw, 58px);
}

.wizard-panel[hidden] {
  display: none;
}

.wizard-panel.is-active {
  animation: panel-in 0.35s ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.panel-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.panel-heading h3 {
  margin-bottom: 11px;
  color: var(--forest-dark);
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.adult-gate {
  margin-top: 16px;
  padding: 13px 15px;
  color: #5f2a18 !important;
  background: #fff1d7;
  border: 1px solid rgba(142, 43, 32, 0.28);
  border-left: 5px solid var(--crimson);
  border-radius: 9px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.adult-gate strong {
  display: block;
  margin-bottom: 2px;
}

.panel-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--crimson);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.panel-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.panel-heading-row > div {
  max-width: 680px;
}

.surprise-button {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.surprise-button svg {
  color: var(--crimson);
}

.photo-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.photo-stage {
  position: relative;
  isolation: isolate;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(44, 74, 51, 0.06), rgba(142, 43, 32, 0.05)),
    var(--parch-deep);
  border: 2px dashed rgba(44, 74, 51, 0.42);
  border-radius: 18px;
  box-shadow: inset 0 0 0 9px rgba(255, 250, 240, 0.48);
}

.photo-stage.has-photo {
  border-style: solid;
  border-color: var(--forest);
  box-shadow: 0 15px 38px rgba(36, 28, 18, 0.17), inset 0 0 0 7px #fff8e8;
}

.photo-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  color: var(--forest);
  text-align: center;
}

.photo-empty svg {
  width: 68px;
  margin-bottom: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.photo-empty b {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.photo-empty span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.remove-photo {
  position: absolute;
  top: 13px;
  right: 13px;
  min-height: 42px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(31, 53, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.photo-actions {
  display: grid;
  gap: 13px;
}

.choice-button {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 78px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(44, 74, 51, 0.28);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(36, 28, 18, 0.06);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.choice-button:hover {
  border-color: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36, 28, 18, 0.1);
}

.choice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--crimson);
  background: var(--parch);
  border-radius: 50%;
}

.choice-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.choice-button b,
.choice-button small {
  display: block;
}

.choice-button b {
  color: var(--forest-dark);
  font-size: 1.05rem;
}

.choice-button small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.position-control {
  padding: 15px 16px 12px;
  background: rgba(228, 215, 187, 0.58);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.position-control label {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.position-control input[type="range"] {
  width: 100%;
  accent-color: var(--crimson);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.privacy-note {
  display: flex;
  gap: 13px;
  margin-top: 5px;
  padding: 16px;
  color: var(--forest-dark);
  background: #edf2e9;
  border: 1px solid rgba(44, 74, 51, 0.22);
  border-radius: 11px;
}

.privacy-note svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  margin-top: 2px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.7;
}

.privacy-note b {
  display: block;
  margin-bottom: 2px;
}

.privacy-note p {
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.friendly-error {
  margin-top: 22px;
  padding: 14px 17px;
  color: #602019;
  background: #fde8e0;
  border: 1px solid #c66d5d;
  border-left: 5px solid var(--crimson);
  border-radius: 8px;
  font-weight: 600;
}

.credit-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 150, 46, 0.2), transparent 35%),
    #fff8e8;
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(72, 46, 22, 0.1);
}

.credit-offer[hidden] {
  display: none;
}

.credit-offer-art {
  display: grid;
  width: 54px;
  height: 54px;
  color: #fff7d6;
  background: var(--crimson);
  border: 3px solid var(--gold);
  border-radius: 50%;
  place-items: center;
  font-size: 1.65rem;
  box-shadow: 0 6px 16px rgba(123, 46, 28, 0.2);
}

.credit-offer .panel-kicker {
  margin-bottom: 3px;
}

.credit-offer h4,
.credit-offer p {
  margin-bottom: 4px;
}

.credit-offer h4 {
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.credit-balance {
  color: var(--forest-dark);
  font-weight: 800;
}

.credit-fine-print,
.credit-action-status {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.credit-offer-actions {
  display: grid;
  gap: 9px;
  min-width: 215px;
}

.credit-action-status {
  grid-column: 2 / -1;
  margin: 0;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.panel-footer-end {
  justify-content: flex-end;
}

.style-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field-card {
  padding: 17px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 15px rgba(36, 28, 18, 0.045);
}

.field-card label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  color: var(--forest-dark);
}

.field-card label > span:last-child {
  min-width: 0;
}

.field-card b,
.field-card small {
  display: block;
}

.field-card b {
  font-size: 0.97rem;
}

.field-card small {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.25;
}

.field-number {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.field-card select,
.name-field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 43px 10px 13px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid rgba(36, 28, 18, 0.3);
  border-radius: 8px;
  font-size: 1rem;
}

.field-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--forest) 50%),
    linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 22px,
    calc(100% - 13px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field-card select:focus,
.name-field input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.22);
  outline: 0;
}

.recipe-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  color: var(--parch);
  background: var(--forest);
  border: 1px solid var(--forest-dark);
  border-radius: 12px;
}

.recipe-mark {
  flex: 0 0 auto;
  color: #f2ce78;
  font-size: 1.7rem;
}

.recipe-preview span {
  display: block;
  color: #e7c569;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recipe-preview p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.creator-panel {
  min-width: 0;
}

.identity-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  margin: -3px 0 28px;
  padding: 18px;
  color: #f9f1df;
  background:
    linear-gradient(135deg, rgba(201, 150, 46, 0.16), transparent 48%),
    var(--forest-dark);
  border: 1px solid rgba(201, 150, 46, 0.74);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(31, 53, 37, 0.14);
}

.identity-lock-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #f2cf78;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 207, 120, 0.5);
  border-radius: 50%;
}

.identity-lock-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.identity-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: #f2cf78;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-lock-badge > span:first-child {
  color: #79cf87;
  font-size: 0.7rem;
  text-shadow: 0 0 8px rgba(121, 207, 135, 0.85);
}

.identity-lock h4 {
  margin: 0 0 5px;
  color: #fff8e8;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.identity-lock p {
  max-width: 820px;
  margin: 0;
  color: #e9dfc9;
  font-size: 0.88rem;
  line-height: 1.48;
}

.art-style-picker,
.presentation-picker {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(36, 28, 18, 0.16);
  border-radius: 18px;
}

.art-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.art-style-card,
.presentation-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 148px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #fffdf8;
  border: 2px solid rgba(36, 28, 18, 0.2);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 28, 18, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.presentation-card {
  min-height: 92px;
  padding: 15px;
}

.art-style-card:hover,
.presentation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 74, 51, 0.58);
}

.art-style-card.is-selected,
.presentation-card.is-selected {
  background: linear-gradient(145deg, #f6f8ee, #fffaf0 70%);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.3), 0 12px 28px rgba(31, 53, 37, 0.12);
}

.art-style-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff8e8;
  background: var(--crimson);
  border: 2px solid #e1bb62;
  border-radius: 18px 18px 18px 6px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.art-style-campfire .art-style-icon {
  background: #8b5124;
  border-radius: 50%;
}

.presentation-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff8e8;
  background: var(--forest);
  border: 2px solid #e1bb62;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.art-style-copy,
.presentation-copy {
  min-width: 0;
}

.art-style-copy b,
.art-style-copy small,
.presentation-copy b {
  display: block;
}

.art-style-copy b,
.presentation-copy b {
  margin-top: 5px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.15;
}

.art-style-copy small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.42;
}

.art-style-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.art-style-card.is-selected > .art-style-check,
.presentation-card.is-selected > .art-style-check {
  opacity: 1;
  transform: scale(1);
}

.presentation-error {
  margin-top: 12px;
}

.creator-mode-picker {
  margin-bottom: 30px;
}

.creator-section-heading {
  margin-bottom: 15px;
}

.creator-section-heading h4,
.custom-build-heading h4 {
  margin: 2px 0 5px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.12;
}

.creator-section-heading p,
.custom-build-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.creator-overline {
  display: block;
  color: var(--crimson);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.creator-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.creator-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #fffdf8;
  border: 2px solid rgba(36, 28, 18, 0.2);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 28, 18, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.creator-mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 74, 51, 0.55);
}

.creator-mode-card.is-selected {
  background: linear-gradient(145deg, #f6f8ee, #fffaf0 70%);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.3), 0 12px 28px rgba(31, 53, 37, 0.12);
}

.mode-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff8e8;
  background: var(--crimson);
  border: 2px solid #e1bb62;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.creator-mode-card:last-child .mode-card-icon {
  background: var(--forest);
}

.mode-card-copy {
  min-width: 0;
}

.mode-card-copy b,
.mode-card-copy small {
  display: block;
}

.mode-card-copy b {
  margin-top: 5px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.mode-card-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.recommended-pill {
  display: inline-flex;
  padding: 3px 8px;
  color: #fff8e8;
  background: var(--crimson);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-card-check,
.preset-card-check,
.creator-choice-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.is-selected > .mode-card-check,
.is-selected > .preset-card-check,
.is-selected > .creator-choice-check {
  opacity: 1;
  transform: scale(1);
}

.creator-form {
  margin: 0;
}

.quick-build,
.custom-build {
  min-width: 0;
}

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

.preset-card {
  --preset-accent: var(--crimson);
  --preset-soft: #f7e5dd;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(circle at 88% 10%, var(--preset-soft), transparent 42%),
    #fffdf8;
  border: 2px solid rgba(36, 28, 18, 0.18);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(36, 28, 18, 0.065);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.preset-card:hover {
  transform: translateY(-3px);
  border-color: var(--preset-accent);
}

.preset-card.is-selected {
  border-color: var(--preset-accent);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.32), 0 11px 25px rgba(36, 28, 18, 0.12);
}

.preset-tone-rose { --preset-accent: #a33e57; --preset-soft: #f5dce4; }
.preset-tone-gold { --preset-accent: #9e711a; --preset-soft: #f5e5b8; }
.preset-tone-amber { --preset-accent: #9b541e; --preset-soft: #f5ddc5; }
.preset-tone-blue { --preset-accent: #3d5579; --preset-soft: #dde5f2; }
.preset-tone-green { --preset-accent: #2c6541; --preset-soft: #dcebdc; }

.preset-card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 14px;
  color: #fffaf0;
  background: var(--preset-accent);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 17px 17px 17px 5px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  box-shadow: 0 5px 12px rgba(36, 28, 18, 0.16);
}

.preset-card-copy {
  align-self: end;
  min-width: 0;
}

.preset-card-copy b,
.preset-card-copy small {
  display: block;
}

.preset-card-copy b {
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.15;
}

.preset-card-copy small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.38;
}

.preset-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--preset-accent);
}

.quick-build-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.quick-build-tools .button {
  width: 100%;
  min-height: 56px;
}

.dice-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.quick-selection {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  color: #fff8e8;
  background: var(--forest-dark);
  border: 1px solid rgba(201, 150, 46, 0.7);
  border-radius: 12px;
}

.quick-selection > span {
  color: #efcc75;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-selection p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.custom-build {
  padding: 20px;
  background: rgba(228, 215, 187, 0.24);
  border: 1px solid rgba(36, 28, 18, 0.16);
  border-radius: 18px;
}

.custom-build-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.custom-build-heading .text-button {
  flex: 0 0 auto;
  min-height: 44px;
}

.creator-progress-block {
  margin-bottom: 15px;
  padding: 13px 15px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.creator-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--forest-dark);
  font-size: 0.83rem;
}

.creator-progress-copy span {
  color: var(--ink-soft);
  white-space: nowrap;
}

.creator-progress-track {
  height: 9px;
  overflow: hidden;
  background: var(--parch-deep);
  border-radius: 999px;
}

.creator-progress-track > span {
  display: block;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.category-rail {
  display: grid;
  grid-auto-columns: minmax(100px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 4px 3px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.category-tab {
  position: relative;
  display: grid;
  min-height: 74px;
  padding: 8px 7px;
  place-items: center;
  color: var(--ink-soft);
  background: #fffdf8;
  border: 1px solid rgba(36, 28, 18, 0.2);
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  scroll-snap-align: start;
}

.category-tab.is-active {
  color: #fff8e8;
  background: var(--forest);
  border-color: var(--forest-dark);
  box-shadow: 0 0 0 2px rgba(201, 150, 46, 0.5);
}

.category-tab-icon {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.category-tab-check {
  position: absolute;
  top: 4px;
  right: 5px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #fff;
  background: var(--crimson);
  border-radius: 50%;
  font-size: 0.56rem;
}

.category-tab.is-active .category-tab-check {
  color: var(--forest-dark);
  background: #f0ce79;
}

.creator-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.5fr);
  gap: 16px;
  align-items: start;
}

.creator-editor,
.build-sheet {
  min-width: 0;
  background: #fffdf8;
  border: 1px solid rgba(36, 28, 18, 0.17);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(36, 28, 18, 0.06);
}

.creator-editor {
  padding: 18px;
}

.face-subgroup-rail {
  display: flex;
  gap: 7px;
  margin: -3px 0 17px;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.face-subgroup {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 7px 13px;
  color: var(--forest-dark);
  background: #f5efdf;
  border: 1px solid rgba(44, 74, 51, 0.26);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.face-subgroup.is-active {
  color: #fff8e8;
  background: var(--crimson);
  border-color: var(--crimson-dark);
}

.creator-field-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}

.creator-field-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff8e8;
  background: var(--forest);
  border: 2px solid #d6ae50;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.creator-category-name {
  color: var(--crimson);
}

.creator-field-heading > div > span {
  display: block;
  color: var(--crimson);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.creator-field-heading h5 {
  margin: 1px 0 4px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.creator-field-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.creator-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.creator-choice-card {
  --choice-accent: #8e2b20;
  --choice-soft: #f6e3dc;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  min-width: 0;
  min-height: 104px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(145deg, #fff, var(--choice-soft));
  border: 2px solid rgba(36, 28, 18, 0.16);
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.creator-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--choice-accent);
}

.creator-choice-card.is-selected {
  border-color: var(--choice-accent);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.25);
}

.choice-tone-2 { --choice-accent: #2c6541; --choice-soft: #e2eee2; }
.choice-tone-3 { --choice-accent: #9e711a; --choice-soft: #f5e9c8; }
.choice-tone-4 { --choice-accent: #495f83; --choice-soft: #e1e7f0; }
.choice-tone-5 { --choice-accent: #9a3e60; --choice-soft: #f2e0e7; }
.choice-tone-6 { --choice-accent: #6b5634; --choice-soft: #ede6d9; }
.choice-tone-7 { --choice-accent: #496a6b; --choice-soft: #e0eceb; }

.creator-choice-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 48px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--choice-accent);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 1.26rem;
}

.creator-choice-swatch {
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.72) 0 4px, rgba(255,255,255,.18) 4px 8px);
}

.creator-choice-copy {
  min-width: 0;
}

.creator-choice-copy b,
.creator-choice-copy small {
  display: block;
}

.creator-choice-copy b {
  color: var(--forest-dark);
  font-size: 0.9rem;
  line-height: 1.2;
}

.creator-choice-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.creator-choice-check {
  align-self: start;
  width: 22px;
  height: 22px;
  background: var(--choice-accent);
}

.build-sheet {
  position: sticky;
  top: 96px;
  padding: 16px;
}

.build-sheet-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.build-sheet-heading > span {
  color: var(--gold);
  font-size: 1.5rem;
}

.build-sheet-heading div > span {
  display: block;
  color: var(--crimson);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.build-sheet h5 {
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.build-sheet > p {
  margin: 11px 0 9px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
}

.build-sheet dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.build-sheet dl > div {
  display: grid;
  grid-template-columns: minmax(72px, 0.75fr) minmax(0, 1.25fr);
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed rgba(36, 28, 18, 0.13);
  font-size: 0.86rem;
  line-height: 1.25;
}

.build-sheet dt {
  color: var(--ink-soft);
}

.build-sheet dd {
  min-width: 0;
  margin: 0;
  color: var(--forest-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.custom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.custom-nav .button {
  min-width: min(230px, 46%);
}

.creator-photo-back {
  display: block;
  margin: 13px auto 0;
}

.quick-panel-footer {
  margin-top: 28px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(380px, 1.32fr);
  gap: clamp(28px, 5vw, 55px);
  align-items: start;
}

.review-photo-wrap {
  position: sticky;
  top: 104px;
  width: min(350px, 100%);
  justify-self: center;
}

.review-photo-wrap canvas {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--parch-deep);
  border: 7px solid #fff8e8;
  border-radius: 15px;
  box-shadow: 0 15px 36px rgba(36, 28, 18, 0.18), 0 0 0 1px rgba(36, 28, 18, 0.25);
}

.review-seal {
  position: absolute;
  right: -12px;
  bottom: -12px;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: #fff6df;
  background: var(--crimson);
  border: 3px double #e2b955;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  transform: rotate(-9deg);
  box-shadow: 0 5px 14px rgba(36, 28, 18, 0.2);
}

.name-field {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(228, 215, 187, 0.46);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.name-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-dark);
  font-weight: 600;
}

.name-field label span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 400;
}

.name-field input {
  padding-right: 13px;
}

.name-field small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.review-details h4 {
  margin-bottom: 9px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.review-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 0 0 8px;
}

.review-list div {
  padding: 8px 0;
  border-bottom: 1px dotted rgba(36, 28, 18, 0.22);
}

.review-list dt {
  color: var(--ink-soft);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-list dd {
  margin: 1px 0 0;
  color: var(--forest-dark);
  font-size: 0.91rem;
  font-weight: 600;
}

.text-button {
  min-height: 44px;
  padding: 7px 1px;
  color: var(--crimson-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  cursor: pointer;
}

.consent-box {
  margin: 25px 0 0;
  padding: 16px;
  background: #edf2e9;
  border: 1px solid rgba(44, 74, 51, 0.24);
  border-radius: 12px;
}

.consent-box legend {
  padding: 0 7px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 5px;
  cursor: pointer;
}

.check-row + .check-row {
  border-top: 1px solid rgba(44, 74, 51, 0.12);
}

.check-row input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--forest);
}

.check-row b,
.check-row small {
  display: block;
}

.check-row b {
  color: var(--forest-dark);
  font-size: 0.94rem;
}

.check-row small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-row-optional {
  margin-top: 9px;
  background: #fff8e8;
  border: 1px solid rgba(201, 150, 46, 0.55) !important;
  border-radius: 9px;
}

.consent-details {
  margin: 12px 5px 0;
  padding-top: 11px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(44, 74, 51, 0.18);
  font-size: 0.88rem;
}

.consent-details summary {
  min-height: 44px;
  padding: 9px 0;
  color: var(--forest-dark);
  font-weight: 700;
  cursor: pointer;
}

.consent-details ul {
  margin: 5px 0 8px;
  padding-left: 22px;
  line-height: 1.5;
}

.consent-details li + li {
  margin-top: 6px;
}

.progress-card,
.result-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-card {
  padding: clamp(42px, 8vw, 80px) 24px;
  text-align: center;
}

.progress-card h2,
.result-card h2 {
  margin-bottom: 12px;
  color: var(--forest-dark);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.magic-orbit {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 25px;
  background: radial-gradient(circle, rgba(201, 150, 46, 0.26), transparent 64%);
}

.magic-orbit::before,
.magic-orbit::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 2px dashed rgba(142, 43, 32, 0.45);
  border-radius: 50%;
  animation: orbit-spin 7s linear infinite;
}

.magic-orbit::after {
  inset: 20px;
  border-color: rgba(44, 74, 51, 0.45);
  animation-direction: reverse;
  animation-duration: 5s;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.orbit-hat {
  position: absolute;
  top: 38px;
  left: 44px;
  z-index: 2;
  width: 56px;
  height: 64px;
  background: var(--crimson);
  clip-path: polygon(14% 100%, 86% 100%, 65% 62%, 54% 34%, 35% 0);
  transform: rotate(-7deg);
}

.magic-orbit i {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  animation: twinkle 1.5s ease-in-out infinite alternate;
}

.magic-orbit i:nth-child(2) { top: 20px; right: 27px; }
.magic-orbit i:nth-child(3) { bottom: 22px; left: 21px; animation-delay: 0.4s; }
.magic-orbit i:nth-child(4) { right: 12px; bottom: 44px; animation-delay: 0.8s; }

@keyframes twinkle { to { opacity: 0.25; transform: scale(0.55) rotate(45deg); } }

.progress-card > p:not(.panel-kicker):not(.progress-tip) {
  color: var(--ink-soft);
}

.progress-track {
  width: min(620px, 100%);
  height: 17px;
  margin: 28px auto 11px;
  overflow: hidden;
  background: var(--parch-deep);
  border: 1px solid rgba(36, 28, 18, 0.19);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold), var(--crimson));
  border-radius: inherit;
  transition: width 0.6s ease;
}

.progress-tip {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-style: italic;
}

.progress-committed {
  width: min(620px, 100%);
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--forest-dark) !important;
  background: #edf2e9;
  border: 1px solid rgba(44, 74, 51, 0.36);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.progress-elapsed {
  margin: 0 0 5px;
  color: var(--forest-dark) !important;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.progress-cancel {
  margin-top: 18px;
}

.result-card {
  padding: clamp(30px, 6vw, 62px);
}

.result-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.result-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.result-image-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(540px, 100%);
  aspect-ratio: 2 / 3;
  justify-self: center;
  padding: 9px;
  background: #d7bd7c;
  border: 1px solid #755322;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(36, 28, 18, 0.25), inset 0 0 0 4px #f4dfab;
}

.result-image-frame::after {
  position: absolute;
  inset: 15px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 2px solid rgba(255, 242, 201, 0.74);
  border-radius: 10px;
}

.result-image-frame img,
.result-image-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.result-ribbon {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 4;
  padding: 8px 10px;
  color: #fff8e4;
  background: rgba(31, 53, 37, 0.9);
  border: 1px solid rgba(201, 150, 46, 0.86);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.result-actions {
  display: grid;
  gap: 12px;
}

.saved-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 5px;
  padding: 15px;
  color: var(--forest-dark);
  background: #edf2e9;
  border: 1px solid rgba(44, 74, 51, 0.35);
  border-left: 5px solid var(--forest);
  border-radius: 9px;
}

.saved-notice > span {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-weight: 800;
}

.saved-notice b,
.saved-notice small {
  display: block;
}

.saved-notice b {
  margin-bottom: 3px;
}

.saved-notice small {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.result-privacy-controls {
  margin-top: 5px;
  padding: 0 13px 12px;
  color: var(--ink-soft);
  background: rgba(228, 215, 187, 0.28);
  border: 1px solid rgba(36, 28, 18, 0.16);
  border-radius: 9px;
  font-size: 0.86rem;
}

.result-privacy-controls summary {
  min-height: 44px;
  padding: 11px 1px;
  color: var(--forest-dark);
  font-weight: 700;
  cursor: pointer;
}

.result-privacy-controls p {
  margin: 0 0 11px;
  line-height: 1.45;
}

.remove-saved-button {
  min-height: 46px;
  color: var(--crimson-dark);
  border-color: rgba(142, 43, 32, 0.42);
}

.remove-saved-button:hover:not(:disabled) {
  background: rgba(142, 43, 32, 0.07);
}

.remove-saved-status {
  min-height: 0;
  margin: 10px 1px 0 !important;
  color: var(--forest-dark);
  font-weight: 600;
}

.remove-saved-status:empty {
  display: none;
}

.restart-button {
  justify-self: center;
  margin-top: 5px;
}

.share-hint {
  min-height: 26px;
  margin: 0;
  color: var(--forest);
  font-size: 0.84rem;
  text-align: center;
}

.saved-creations-section {
  padding: 70px 24px 78px;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 150, 46, 0.12), transparent 28%),
    var(--parch-pale);
  border-top: 1px solid rgba(36, 28, 18, 0.14);
}

.saved-creations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.saved-creation-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 15px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid rgba(36, 28, 18, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 53, 37, 0.08);
}

.saved-creation-thumb {
  width: 82px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--parch-deep);
  border: 2px solid var(--gold);
  border-radius: 9px;
}

.saved-creation-pending-thumb {
  display: grid;
  place-items: center;
  color: var(--forest);
  background:
    radial-gradient(circle, rgba(201, 150, 46, 0.25), transparent 58%),
    var(--parch-pale);
  border-style: dashed;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.saved-creation-card.is-pending {
  border-style: dashed;
  box-shadow: none;
}

.saved-creation-copy {
  min-width: 0;
}

.saved-creation-copy h3 {
  margin: 0 0 3px;
  color: var(--forest-dark);
  font-size: 1.15rem;
}

.saved-creation-copy > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.saved-creation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-creation-actions .button {
  min-height: 42px;
  padding: 8px 11px;
  font-size: 0.82rem;
}

.saved-creation-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--forest-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.saved-creation-card[aria-busy="true"] {
  opacity: 0.72;
}

.how-section {
  padding: 90px 24px;
  color: var(--parch);
  background:
    linear-gradient(rgba(31, 53, 37, 0.96), rgba(31, 53, 37, 0.98)),
    var(--forest-dark);
  border-top: 3px solid var(--gold);
}

.light-heading h2 {
  color: var(--parch);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.how-grid article {
  position: relative;
  padding: 28px 25px;
  background: rgba(239, 230, 210, 0.065);
  border: 1px solid rgba(201, 150, 46, 0.35);
  border-radius: 15px;
}

.how-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--forest-dark);
  background: #e6bf60;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}

.how-grid h3 {
  margin-bottom: 8px;
  color: #f1d083;
  font-size: 1.45rem;
}

.how-grid p {
  margin: 0;
  color: #eee4d0;
  font-size: 0.94rem;
}

.privacy-promise {
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 12px 19px;
  color: #f5ead3;
  background: rgba(9, 28, 16, 0.3);
  border: 1px solid rgba(239, 230, 210, 0.27);
  border-radius: 999px;
  font-size: 0.88rem;
  text-align: center;
}

.install-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  width: min(1040px, calc(100% - 48px));
  margin: 70px auto;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.install-section > img {
  width: 94px;
  height: 94px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.install-section .eyebrow {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.install-section h2 {
  margin-bottom: 5px;
  color: var(--forest-dark);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.install-section p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

footer {
  padding: 50px 24px calc(45px + env(safe-area-inset-bottom));
  color: var(--parch);
  background: #14271a;
  border-top: 2px solid var(--gold);
  text-align: center;
}

footer > img {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
}

.footer-name {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-place {
  color: #d8b65f;
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 24px 0 19px;
}

footer nav a,
footer nav button {
  min-height: 44px;
  padding: 9px 0;
  color: #f2e4c8;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(201, 150, 46, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-note {
  margin: 0;
  color: rgba(239, 230, 210, 0.68);
  font-size: 0.78rem;
  font-style: italic;
}

.info-dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.info-dialog::backdrop {
  background: rgba(18, 28, 20, 0.76);
  backdrop-filter: blur(4px);
}

.info-dialog > form,
.info-dialog > .dialog-form {
  position: relative;
  overflow-y: auto;
  max-height: calc(100dvh - 36px);
  padding: 34px;
}

.info-dialog > form > img {
  width: 84px;
  height: 84px;
  margin: 0 auto 15px;
  border-radius: 50%;
}

.info-dialog h2 {
  margin-bottom: 15px;
  color: var(--forest-dark);
  font-size: 2rem;
  text-align: center;
}

.info-dialog p,
.info-dialog li {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.info-dialog ol,
.info-dialog ul {
  margin: 0 0 24px;
  padding-left: 23px;
}

.info-dialog li + li {
  margin-top: 9px;
}

.credit-code-box {
  margin: 18px 0;
  padding: 15px;
  background: #fffaf0;
  border: 1px solid rgba(44, 74, 51, 0.24);
  border-radius: 12px;
}

.credit-code-box > span,
.credit-dialog label {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-dark);
  font-weight: 800;
}

.credit-code-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  color: var(--forest-dark);
  background: #edf2e9;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  user-select: all;
}

.credit-code-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.credit-dialog form {
  padding: 0;
}

.credit-dialog input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font: inherit;
}

.credit-dialog-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--forest-dark) !important;
  font-weight: 700;
  text-align: center;
}

.install-dialog-lead {
  margin: -3px 0 18px;
  text-align: center;
}

.install-instructions {
  margin-bottom: 18px;
}

.install-instructions ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.install-instructions li {
  position: relative;
  min-height: 52px;
  padding: 14px 14px 14px 56px;
  background: #fffaf0;
  border: 1px solid rgba(44, 74, 51, 0.2);
  border-radius: 12px;
  line-height: 1.4;
  counter-increment: install-step;
}

.install-instructions li::before {
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff8e8;
  background: var(--forest);
  border-radius: 50%;
  font-weight: 800;
  content: counter(install-step);
}

.install-dialog-actions {
  display: grid;
  gap: 9px;
}

.install-support-note {
  margin: 14px 4px 0;
  font-size: 0.82rem !important;
  line-height: 1.45;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--forest-dark);
  background: var(--parch);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 2.5rem;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1000;
  max-width: min(390px, calc(100% - 36px));
  padding: 13px 17px;
  color: #fff9e9;
  background: var(--forest-dark);
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  padding: 18px;
  color: #fff;
  background: var(--crimson-dark);
  border: 2px solid #fff;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 330px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .storybook-scene {
    width: 330px;
  }

  .step-copy small {
    display: none;
  }

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

  .review-list {
    grid-template-columns: 1fr;
  }

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

  .creator-workbench {
    grid-template-columns: 1fr;
  }

  .build-sheet {
    position: static;
  }

  .build-sheet dl {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .install-section {
    grid-template-columns: auto 1fr;
  }

  .install-section .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand b {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.54rem;
  }

  .home-link {
    display: none;
  }

  .install-button span {
    display: none;
  }

  .install-button {
    width: 46px;
    justify-content: center;
    padding: 9px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 66px 22px 92px;
    text-align: center;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(3.25rem, 16vw, 5.1rem);
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .storybook-scene {
    width: min(330px, 89vw);
    justify-self: center;
  }

  .maker-section {
    padding: 70px 12px 82px;
  }

  .section-heading {
    padding: 0 10px;
  }

  .wizard-shell,
  .progress-card,
  .result-card {
    border-radius: 16px;
  }

  .steps {
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
    padding: 14px 12px;
  }

  .step {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }

  .step-number {
    width: 34px;
    height: 34px;
  }

  .step-copy b {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .wizard-content {
    padding: 27px 18px 22px;
  }

  .panel-heading {
    margin-bottom: 26px;
  }

  .panel-heading h3 {
    font-size: 2.15rem;
  }

  .panel-heading-row {
    display: block;
  }

  .surprise-button {
    width: 100%;
    margin-top: 18px;
  }

  .photo-layout,
  .review-layout,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .photo-stage {
    width: min(380px, 100%);
  }

  .style-form {
    grid-template-columns: 1fr;
  }

  .creator-mode-grid,
  .art-style-grid,
  .presentation-grid,
  .preset-grid,
  .quick-build-tools,
  .creator-option-grid {
    grid-template-columns: 1fr;
  }

  .creator-mode-card {
    min-height: 118px;
  }

  .preset-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 14px;
    min-height: 126px;
    align-items: center;
  }

  .preset-card-icon {
    margin-bottom: 0;
  }

  .custom-build {
    padding: 15px;
  }

  .custom-build-heading {
    display: block;
  }

  .custom-build-heading .text-button {
    margin-top: 10px;
  }

  .creator-progress-copy {
    flex-wrap: wrap;
  }

  .creator-editor {
    padding: 15px;
  }

  .build-sheet dl {
    grid-template-columns: 1fr;
  }

  .custom-nav {
    flex-direction: column-reverse;
  }

  .custom-nav .button {
    width: 100%;
    min-width: 0;
  }

  .quick-selection {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .field-card {
    padding: 15px;
  }

  .review-photo-wrap {
    position: relative;
    top: auto;
    width: min(290px, 82vw);
    margin-bottom: 8px;
  }

  .panel-footer {
    flex-direction: column-reverse;
  }

  .panel-footer .button {
    width: 100%;
  }

  .panel-footer-end {
    flex-direction: column;
  }

  .credit-offer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .credit-offer-art {
    margin: 0 auto;
  }

  .credit-offer-actions {
    min-width: 0;
  }

  .credit-offer-actions .button {
    width: 100%;
  }

  .credit-action-status {
    grid-column: 1;
  }

  .credit-code-actions {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 30px 18px;
  }

  .result-image-frame {
    width: min(430px, 100%);
  }

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

  .privacy-promise {
    border-radius: 12px;
  }

  .install-section {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    padding: 25px 20px;
    text-align: center;
  }

  .install-section > img {
    margin: 0 auto;
  }

  .info-dialog > form,
  .info-dialog > .dialog-form {
    padding: 30px 21px 22px;
  }
}

@media (max-width: 390px) {
  .brand span {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-badges span:last-child {
    display: none;
  }

  .wizard-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .identity-lock {
    gap: 11px;
    padding: 14px;
  }

  .identity-lock-icon {
    width: 42px;
    height: 42px;
  }

  .identity-lock-icon svg {
    width: 24px;
    height: 24px;
  }

  .identity-lock h4 {
    font-size: 1.1rem;
  }

  .identity-lock p {
    font-size: 0.78rem;
  }

  .art-style-picker,
  .presentation-picker {
    padding: 14px;
  }

  .art-style-card,
  .presentation-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    min-height: 132px;
    padding: 14px;
  }

  .art-style-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .presentation-card {
    min-height: 78px;
  }

  .presentation-icon {
    width: 46px;
    height: 46px;
  }

  .art-style-check {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  .creator-mode-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .mode-card-icon {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .mode-card-check {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  .preset-card {
    gap: 11px;
    padding: 13px;
  }

  .preset-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .custom-build {
    padding: 10px;
    border-radius: 13px;
  }

  .category-rail {
    grid-auto-columns: 92px;
  }

  .creator-editor,
  .build-sheet {
    padding: 12px;
  }

  .creator-field-heading {
    gap: 10px;
  }

  .creator-field-icon {
    width: 43px;
    height: 43px;
  }

  .creator-choice-card {
    gap: 9px;
    min-height: 100px;
    padding: 10px;
  }

  .creator-choice-visual {
    width: 43px;
    height: 54px;
  }

  .field-card label {
    gap: 8px;
  }

  .field-number {
    width: 31px;
    height: 31px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(36, 28, 18, 0.42);
  }

  .button,
  .field-card,
  .wizard-shell,
  .choice-button {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .hero,
  .section-heading,
  .wizard-shell,
  .progress-card,
  .how-section,
  .install-section,
  footer,
  .result-actions,
  .result-heading {
    display: none !important;
  }

  body,
  .maker-section,
  .result-card {
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .result-layout {
    display: block;
  }

  .result-image-frame {
    width: 7in;
    margin: 0 auto;
    box-shadow: none;
  }
}
