/* My Stocking Wall — warm paper chrome, fireplace mantel as the one memory point */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-2: #e0a03a;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --font-title: "Fraunces", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --hearth: #1c110e;
  --brick: #6a3b2c;
  --walnut: #4a2e22;
  --flame: #f3a53a;
  --wall-green: #52573b;
  --font-cuff: "Figtree", "Inter", system-ui, sans-serif;
  --cuff-ink: #2f221c;
  --font-script: "Pinyon Script", cursive;
  --font-note: "EB Garamond", Georgia, "Times New Roman", serif;
  --title-gold: #baa269;
  --ember: #c44522;
  --ember-deep: #a8381c;
  --copper: #b28544;
  --paper: #f3efe7;
  --paper-edge: #e0d8c8;
  --sheet-muted: #6a6256;
  --sheet-ink: #2f221c;
  --field-bg: #fbf8f3;
  --cream: #e9e5df;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9a3f1e; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid rgba(43, 33, 24, .08); background: var(--card); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header-inner { min-height: 64px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 6px; bottom: 5px;
  background: var(--card); border-radius: 0 0 8px 6px / 0 0 10px 8px;
  box-shadow: inset 0 6px 0 #f3e6d4;
}
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 22px; line-height: 1.2; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600; }
.nav a:hover { color: var(--text); }

.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hero-copy h1, .wall-head h1, .hang-page h1, .page-body h1 {
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 8px; }
.card {
  background: var(--card);
  border: 1px solid rgba(43, 33, 24, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px;
}
.create-form, .hang-form, .success-card { display: grid; gap: 16px; }
label, fieldset { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
label span, legend { font-size: 14px; font-weight: 600; color: var(--text); }
label em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid rgba(43, 33, 24, .18);
  border-radius: 12px; padding: 12px 16px; min-height: 44px;
}
textarea { resize: vertical; min-height: 120px; }
.fine-print { font-size: 14px; color: var(--muted); margin: 0; }
.form-msg { margin: 0; color: var(--accent); font-size: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 20px; border-radius: 12px;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9a3f1e; color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: rgba(43, 33, 24, .22); }
.btn-secondary:hover { background: rgba(43, 33, 24, .04); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-field { display: grid; gap: 8px; }
.link-field input { font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(43, 33, 24, .12); border-radius: 12px; background: #fff; }
.hook { padding: 16px; background: #fff6ea; }
.upgrade-link, .text-btn { font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.upgrade-hook a { font-weight: 600; }

/* Locked hanging board — fireplace A + holly tile + v4-B decor, layout B */
.scene {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--wall-green); color: #f3e6d4;
  aspect-ratio: 16/9; box-shadow: var(--shadow-2);
  isolation: isolate;
  container-type: inline-size;
  container-name: board;
}
.scene-bg, .scene-decor {
  position: absolute; inset: 0; pointer-events: none;
  background-repeat: no-repeat;
}
.scene-bg {
  z-index: 1;
  background-image: url("/_a/fireplace-a-tile-only-169.cae9a817d5.png");
  background-size: 100% 100%;
  background-position: 0 0;
}
.scene::before {
  content: none;
  pointer-events: none;
}
.scene-decor {
  z-index: 4;
  background-image: url("/_a/decor-v4-b-layer.bf627d1286.png");
  background-size: 100% 100%;
  background-position: 0 0;
}
.scene-scroll {
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden;
  display: grid;
}
.scene-cords-slot, .scene-rail {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.scene-cords-slot { pointer-events: none; z-index: 1; }
.scene-rail { z-index: 2; }
.scene-cords {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: visible;
}
.stocking {
  position: absolute;
  left: var(--hang-x); top: var(--hang-y);
  width: var(--stocking-w);
  border: 0; background: none; padding: 0; margin: 0;
  cursor: pointer; color: inherit; font: inherit; text-align: center;
  transform: translate(-20.593%, -8.161%);
  z-index: 2;
}
.stocking-sway {
  display: block; width: 100%; position: relative;
  transform-origin: 20.593% 8.161%;
  transform: rotate(var(--tilt, 0deg));
  animation: sway 4.6s ease-in-out infinite;
}
.stocking:nth-child(2n) .stocking-sway { animation-delay: -1.2s; }
.stocking:nth-child(3n) .stocking-sway { animation-delay: -2.1s; }
.stocking-art { width: 100%; height: auto; display: block; pointer-events: none; }
.stocking-name {
  position: absolute;
  left: 19.12%; top: 22.91%;
  width: 60.36%; height: 12.63%;
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 0;
  font-family: var(--font-cuff);
  font-weight: 600;
  font-size: var(--name-size, 1.22cqw);
  line-height: 1;
  color: var(--cuff-ink);
  letter-spacing: 0;
  text-align: start;
  overflow: hidden;
  min-width: 0;
  pointer-events: none;
}
.stocking-name-text {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: start;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.stocking-seal {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  font-size: var(--seal-size, 0.86cqw);
  line-height: 1.2;
  color: #f3e6d4;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  white-space: nowrap;
  pointer-events: none;
}
.stocking.is-preview { cursor: default; opacity: .95; }
.stocking.is-new .stocking-sway { animation: drop-in .7s ease, sway 4.6s ease-in-out .7s infinite; }
.stocking.is-new .stocking-sway::before,
.stocking.is-open .stocking-sway::before {
  content: "";
  position: absolute;
  inset: 6% -12% -10%;
  background: radial-gradient(ellipse at 50% 42%, rgba(210, 189, 138, .5), transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.scene-caption { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.count { font-weight: 600; margin: 0 0 8px; }
.greeting { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.wall-page, .hang-page { padding: 48px 0 64px; }
.wall-head, .wall-foot, .owner-panel { margin-bottom: 24px; }
.wall-stage .scene { aspect-ratio: 16/9; }
.owner-panel { display: grid; gap: 16px; }
.shot { margin: 48px auto; }
.shot figure { margin: 0; }
.shot img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-2); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose, .faq, .comments, .recover { padding: 48px 0; }
.prose { max-width: 760px; }
.prose h2, .faq h2, .comments h2, .recover h2, .owner-panel h2, .success-card h2 {
  font-family: var(--font-title); font-size: 28px; line-height: 1.2; margin: 0 0 16px;
}
.prose h3 { font-family: var(--font-title); font-size: 22px; line-height: 1.2; margin: 32px 0 12px; }
.prose p, .prose li { max-width: 70ch; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--card); border: 1px solid rgba(43,33,24,.08); border-radius: 12px; padding: 16px 24px; }
.faq-list summary { font-weight: 600; cursor: pointer; }
.faq-list details p { margin: 12px 0 0; }
.comments form { display: grid; gap: 12px; margin: 0 0 24px; }
.comment { border-top: 1px solid rgba(43,33,24,.08); padding: 16px 0; }
.empty-invite { color: var(--muted); }
.mine-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mine-list a { font-weight: 600; }
.note-dialog { border: 0; padding: 0; background: transparent; max-width: 480px; width: calc(100% - 32px); }
.note-dialog::backdrop { background: rgba(28, 17, 14, .55); }
.note-sheet { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-2); }
.note-from { font-family: var(--font-title); font-size: 22px; margin: 0 0 12px; }
.note-body { white-space: pre-wrap; margin: 0 0 24px; }
.site-footer { border-top: 1px solid rgba(43,33,24,.08); padding: 48px 0 32px; background: var(--card); }
.footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand { font-family: var(--font-title); font-size: 22px; margin: 0; }
.footer-tag, .footer-copy { margin: 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { color: var(--text); }

@keyframes sway {
  0%, 100% { transform: rotate(calc(var(--tilt, 0deg) - 2deg)); }
  50% { transform: rotate(calc(var(--tilt, 0deg) + 2.4deg)); }
}
@keyframes drop-in {
  0% { transform: translateY(-24px) rotate(calc(var(--tilt, 0deg) - 4deg)); opacity: 0; }
  60% { transform: translateY(4px) rotate(var(--tilt, 0deg)); opacity: 1; }
  100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stocking-sway, .stocking.is-new .stocking-sway { animation: none; transform: rotate(var(--tilt, 0deg)); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero-copy h1, .wall-head h1, .hang-page h1, .page-body h1 { font-size: 32px; }
  .hero, .prose, .faq, .comments, .recover, .wall-page, .hang-page { padding: 32px 0; }
  .hero-grid, .hang-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn, .btn-row .btn { width: 100%; }
  .header-inner { align-items: flex-start; }
  .scene, .wall-stage .scene {
    aspect-ratio: auto;
    height: min(80vh, calc(100cqi * 844 / 390));
    min-height: 28rem;
  }
  .scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/_a/tile-leaf.3485be6e5d.png");
    background-repeat: repeat;
    background-position: top center;
    background-size: calc(240 / 540 * 100cqi) calc(240 / 540 * 100cqi);
    opacity: 0.16;
  }
  .scene-bg, .scene-decor {
    inset: auto;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: calc(720 / 540 * 100cqi);
    background-size: calc(1280 / 540 * 100%) auto;
    background-position: center top;
  }
  .scene-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(173 / 390 * 100cqi), #000 calc(179 / 390 * 100cqi), #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, transparent calc(173 / 390 * 100cqi), #000 calc(179 / 390 * 100cqi), #000 100%);
  }
  .scene-cords { height: var(--rail-h, 100%); }
  .stocking-name { font-size: var(--name-size, 3.63cqi); }
  .stocking-seal { font-size: var(--seal-size, 2.4cqi); }
  .nav { width: 100%; }
}
.hang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pay-note { margin-top: 24px; padding: 16px; border-radius: 12px; background: #fff6ea; }

/* Sticky wall name — stays visible while hanging or writing a note */
.wall-pin {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid rgba(43, 33, 24, .08);
  box-shadow: var(--shadow-1);
}
.wall-pin-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 8px 0;
}
.wall-pin-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.wall-pin-code {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0;
}

/* Two hard-to-confuse link groups */
.link-group {
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}
.link-group h3 {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}
.link-group-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.link-group-public {
  background: var(--card);
  border: 1px solid rgba(43, 33, 24, .08);
  box-shadow: var(--shadow-1);
}
.link-group-public .link-group-kicker { color: #2f7d4f; }
.link-group-private {
  background: #2b2118;
  color: #fffaf2;
  border: 2px solid #c2562f;
}
.link-group-private .link-group-kicker { color: #e0a03a; }
.link-group-private p, .link-group-private label span { color: #f3e6d4; }
.link-group-private input[type="text"] { background: #fffaf2; color: var(--text); }
.link-group-private .btn-secondary { color: #fffaf2; border-color: rgba(255,250,242,.4); }
.link-group-private .btn-secondary:hover { background: rgba(255,250,242,.08); color: #fffaf2; }
.success-card { display: grid; gap: 16px; }
.code-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.code-label { font-size: 14px; font-weight: 600; }
.code-display strong, [data-msw-public-code], [data-msw-owner-code] {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: .12em;
  line-height: 1.2;
}
.public-code-line { font-size: 16px; margin: 0 0 16px; }
.missing-card { margin: 24px auto; }
.premium-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Blocking in-app browser prompt (not footer text) */
.inapp-block {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 17, 14, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.inapp-sheet {
  width: min(480px, 100%);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 16px;
}
.inapp-sheet h2 {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}
.inapp-code {
  font-family: var(--font-title);
  font-size: 36px;
  letter-spacing: .14em;
  text-align: center;
  margin: 0;
}
.note-actions { display: grid; gap: 8px; margin: 0 0 16px; }

.code-page { padding: 48px 0 64px; }
.code-page .lead, .enter .lead { max-width: 70ch; }
.enter { padding: 48px 0; }

@media (max-width: 640px) {
  .wall-pin-name { font-size: 16px; }
  .code-display strong, [data-msw-public-code], [data-msw-owner-code] { font-size: 22px; }
  .inapp-code { font-size: 28px; }
}


/* Homepage pass: stocking mark, short hero, image then form, How it works */
.brand-mark {
  width: 24px;
  height: 40px;
  border-radius: 0;
  background: none;
  position: relative;
  flex: none;
  display: block;
}
.brand-mark::after { content: none; display: none; }
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.hero-intro { text-align: center; max-width: 40rem; margin: 0 auto 28px; }
.hero-intro h1 { margin-bottom: 14px; }
.hero-lead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
}
.hero-lead-row .lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: none;
}
.help-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
}
.hero-visual { max-width: 720px; margin: 0 auto 32px; }
.hero-create { max-width: 560px; margin: 0 auto; }

.how { padding: 56px 0 24px; }
.how-head { text-align: center; margin: 0 0 32px; }
.how-head h2 {
  font-family: var(--font-title);
  font-size: 36px;
  line-height: 1.2;
  margin: 0;
}
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
}
.how-steps li {
  background: var(--card);
  border: 1px solid rgba(43, 33, 24, .08);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  padding: 24px 20px 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how-steps h3 {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}
.how-steps p { margin: 0; color: var(--muted); font-size: 16px; }

.help-intro { padding: 48px 0 8px; max-width: 44rem; }
.help-intro h1 {
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.help-page .how { padding-top: 24px; }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-copy h1, .hero-intro h1, .wall-head h1, .hang-page h1, .page-body h1, .help-intro h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-head h2 { font-size: 28px; }
}

.link-field input.link-input-tail {
  text-align: right;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
}
.link-tail {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  word-break: break-all;
  margin: 0;
}
.link-group-private .link-tail { color: rgba(243, 230, 212, .78); }
.count[data-msw-loading="1"] { color: var(--muted); font-weight: 500; }

.confirm-block {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 17, 14, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-sheet {
  width: min(480px, 100%);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 16px;
}
.confirm-sheet h2 {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}
.confirm-sheet p { margin: 0; }
.form-retry { margin-top: 8px; }

/* Created success experience: see end of file */


/* ——— Hang / wall / unwrap sheets (locked 2026-12-03 interactions) ——— */
.btn-ember {
  background: var(--ember);
  color: var(--cream);
  border: 0;
  border-radius: 7px;
  font-family: var(--font-cuff);
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 2px 0 var(--ember-deep);
}
.btn-ember:hover { background: var(--ember-deep); color: var(--cream); }
.btn-ember-sm {
  min-height: 38px;
  height: 38px;
  padding: 8px 18px;
  font-size: 14px;
  width: auto;
}
.btn-outline {
  background: var(--field-bg);
  color: var(--sheet-ink);
  border: 1px solid rgba(186, 162, 105, .86);
  border-radius: 7px;
  font-family: var(--font-cuff);
  font-weight: 600;
  font-size: 14px;
}
.btn-outline:hover { background: #fff; color: var(--sheet-ink); }

.copper-text-btn {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-cuff);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--copper);
  text-align: center;
  cursor: pointer;
}
.copper-text-btn:hover { color: #9a7038; }
.copper-text-btn:disabled { opacity: .55; cursor: default; }

.paper-sheet {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 0 90px 48px rgba(40, 32, 24, .28);
  color: var(--sheet-ink);
}

body[data-path="/hang"] .site-header,
body[data-path="hang"] .site-header,
body[data-path="/wall"] .site-header,
body[data-path="wall"] .site-header,
body[data-path="/w"] .site-header,
body[data-path="w"] .site-header,
body[data-path="/o"] .site-header,
body[data-path="o"] .site-header,
body[data-path="/created"] .site-header,
body[data-path="created"] .site-header,
body.is-wall-experience .site-header,
html.is-created-experience .site-header,
body.is-created-experience .site-header { display: none; }

body[data-path="/created"] .site-footer,
body[data-path="created"] .site-footer,
html.is-created-experience .site-footer,
body.is-created-experience .site-footer { display: none; }

body.is-wall-experience,
body[data-path="/hang"],
body[data-path="hang"],
body[data-path="/wall"],
body[data-path="wall"],
body[data-path="/w"],
body[data-path="w"],
body[data-path="/o"],
body[data-path="o"] {
  background: var(--wall-green);
}

.hang-page.hang-experience,
.wall-page.wall-experience { padding: 0 0 48px; }

/* Cover the fireplace/tile/decor/rail from first paint until stockings are visible. */
.hang-experience.is-scene-loading [data-msw-scene]::after,
.wall-experience.is-scene-loading [data-msw-scene]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--wall-green);
  pointer-events: none;
}
html.is-hang-return [data-msw-hang] { display: none !important; }
html.is-hang-return,
html.is-hang-return body {
  background: var(--wall-green);
}
/* Keep loading chrome visible on checkout return; do not leave a blank green screen. */
html.is-hang-return [data-msw-hung-chrome] { display: flex !important; }
html.is-hang-return .hang-experience.is-scene-loading [data-msw-hung-meta] {
  display: none !important;
}


.hang-stage,
.wall-stage-bleed {
  position: relative;
  width: 100%;
  background-color: var(--wall-green);
}
.hang-stage::before,
.wall-stage-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/_a/tile-leaf.3485be6e5d.png");
  background-repeat: repeat;
  background-position: top center;
  background-size: 120px 120px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.hang-stage .scene,
.wall-stage-bleed .scene {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16/9;
}

.wall-stage-bleed .wall-stage { width: 100%; }
.wall-stage-bleed .wall-stage .scene { aspect-ratio: 16/9; }

.wall-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 36px 0;
  pointer-events: none;
}
.wall-chrome a,
.wall-chrome button { pointer-events: auto; }
.wall-chrome-name,
.hang-page .wall-chrome-name,
h1.wall-chrome-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--title-gold);
  margin: 0;
}
.wall-chrome-meta,
.hang-page .wall-chrome-meta {
  font-family: var(--font-cuff);
  font-size: 12px;
  font-weight: 500;
  color: rgba(233, 229, 223, .82);
  margin: 8px 0 0;
  max-width: none;
}
.wall-chrome-sealed {
  margin: 10px 0 0;
  font-family: var(--font-cuff);
  font-size: 12px;
  font-weight: 500;
  color: rgba(233, 229, 223, .78);
  text-align: right;
}
.wall-chrome-right { display: flex; flex-direction: column; align-items: flex-end; }

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
}
.sheet-layer .paper-sheet { pointer-events: auto; }

.hang-sheet {
  width: min(520px, 100%);
  padding: 28px 36px 28px;
  display: grid;
  gap: 0;
}
.hang-stage.is-hung .sheet-layer {
  align-items: flex-end;
  padding-bottom: 6%;
}

.sheet-title,
h1.sheet-title,
h2.sheet-title,
.hang-page h1.sheet-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  color: var(--title-gold);
  text-align: center;
  margin: 0;
}
.sheet-sub {
  font-family: var(--font-cuff);
  font-size: 15px;
  font-weight: 500;
  color: var(--sheet-muted);
  text-align: center;
  margin: 4px 0 28px;
}
.sheet-field { display: grid; gap: 8px; margin: 0 0 6px; }
.sheet-label,
.hang-sheet .sheet-label {
  font-family: var(--font-cuff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sheet-muted);
}
.hang-sheet input[type="text"],
.hang-sheet textarea {
  font-family: var(--font-cuff);
  font-size: 17px;
  font-weight: 500;
  color: var(--sheet-ink);
  background: var(--field-bg);
  border: 1px solid #c8bfb2;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 36px;
}
.hang-sheet textarea {
  font-size: 14px;
  min-height: 86px;
  resize: vertical;
}
.sheet-fine {
  font-family: var(--font-cuff);
  font-size: 13px;
  font-weight: 500;
  color: var(--sheet-muted);
  margin: 8px 0 10px;
}
.sheet-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--font-cuff);
  font-size: 15px;
  font-weight: 500;
  color: var(--sheet-ink);
  line-height: 1.35;
}
.sheet-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  border: 1px solid rgba(47, 34, 28, .7);
  border-radius: 3px;
  background: var(--field-bg);
  cursor: pointer;
}
.sheet-check input[type="checkbox"]:checked {
  background: var(--field-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%232F221C' stroke-width='2' d='M3.2 8.6 L6.4 12.2 L12.8 4.2'/></svg>");
  background-size: 16px 16px;
}
.sheet-free {
  font-family: var(--font-cuff);
  font-size: 12px;
  font-weight: 500;
  color: var(--sheet-muted);
  text-align: center;
  margin: 16px 0 12px;
}
.hang-sheet .btn-ember { width: 100%; min-height: 44px; font-size: 17px; }
.sheet-premium-help {
  font-family: var(--font-cuff);
  font-size: 11px;
  font-weight: 400;
  color: var(--sheet-muted);
  text-align: center;
  margin: 8px 0 0;
}

.hung-sheet {
  width: min(560px, 100%);
  padding: 18px 28px 24px;
  border-radius: 14px;
  text-align: center;
}
.hung-sheet .sheet-title { font-size: 32px; }
.hung-lead {
  font-family: var(--font-cuff);
  font-size: 15px;
  font-weight: 500;
  color: var(--sheet-ink);
  margin: 8px 0 18px;
}
.hung-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hung-actions .btn {
  flex: 1;
  width: auto;
  min-height: 40px;
  font-size: 14px;
}

.hang-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9;
  max-width: min(520px, calc(100% - 32px));
  text-align: center;
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: var(--shadow-1);
}

.wall-tools {
  background: var(--bg);
  padding: 32px 0 16px;
}
.wall-experience .owner-panel,
.wall-experience .wall-foot,
.wall-experience .missing-card,
.hang-fallback { background: var(--bg); }
.wall-experience .owner-panel,
.wall-experience .wall-foot { margin: 0 auto; padding: 8px 0 24px; }
.hang-fallback { padding: 24px 0; }
.hang-fallback:has([data-msw-missing][hidden]) { display: none; }
body.is-wall-experience .site-footer,
body[data-path="/hang"] .site-footer,
body[data-path="/wall"] .site-footer,
body[data-path="/w"] .site-footer { background: var(--card); }

/* Note sheets: wall stays visible; no heavy modal dim */
.note-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 496px;
  width: min(496px, calc(100% - 48px));
  margin: 14vh 3% auto auto;
}
.note-dialog::backdrop { background: transparent; }
.note-dialog .note-sheet,
.note-sheet.paper-sheet {
  position: relative;
  background: var(--paper);
  border-radius: 14px;
  padding: 28px 40px 36px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 0 80px 40px rgba(36, 28, 22, .28);
}
.note-sheet .sheet-title { font-size: 36px; margin: 0 0 8px; }
.note-dialog.is-unwrap .sheet-title { font-size: 42px; margin-bottom: 6px; }
.note-meta,
[data-msw-dialog-from] {
  font-family: var(--font-cuff);
  font-size: 14px;
  font-weight: 500;
  color: var(--sheet-ink);
  text-align: center;
  margin: 0;
}
.note-dialog.is-unwrap .note-meta { color: var(--sheet-muted); font-size: 13px; }
.note-dialog.is-public-sealed .note-meta,
.note-dialog.is-owner-sealed .note-meta { display: none; }
.note-rule {
  display: block;
  width: 88px;
  height: 0;
  border: 0;
  border-top: 1px solid var(--title-gold);
  margin: 12px auto 22px;
}
.note-seal { margin: 18px auto 16px; }
.wax-envelope {
  display: block;
  width: 68px;
  height: 48px;
  margin: 0 auto;
  background: var(--field-bg);
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  position: relative;
}
.wax-envelope::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 22px;
  background: var(--paper-edge);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
.wax-envelope::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: var(--copper);
  border-radius: 50%;
}
.note-body {
  font-family: var(--font-cuff);
  font-size: 14px;
  font-weight: 500;
  color: var(--sheet-ink);
  text-align: center;
  margin: 0;
  white-space: normal;
}
.note-body p { margin: 0 0 8px; }
.note-dialog.is-unwrap .note-body,
.note-dialog.is-reread .note-body {
  font-family: var(--font-note);
  font-size: 20px;
  font-weight: 450;
  line-height: 1.55;
  text-align: left;
  color: var(--sheet-ink);
  white-space: normal;
}
.note-dialog.is-unwrap .note-body p,
.note-dialog.is-reread .note-body p {
  margin: 0 0 1em;
  white-space: pre-wrap;
}
.note-dialog.is-reread .sheet-title { font-size: 32px; }
.note-actions {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  justify-items: center;
}
.note-actions .copper-text-btn { width: auto; margin: 0; font-size: 12px; color: rgba(178, 133, 68, .85); }
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--sheet-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  opacity: .7;
}
.sheet-close::before { content: "\00d7"; }
.sheet-close:hover { opacity: 1; color: var(--sheet-ink); }

@media (max-width: 640px) {
  .hang-page.hang-experience,
  .wall-page.wall-experience { padding: 0 0 32px; }
  .wall-chrome { padding: 12px 16px 0; }
  .wall-chrome-name,
  .hang-page .wall-chrome-name { font-size: 28px; }
  .wall-chrome .btn,
  .wall-chrome .btn-ember,
  .wall-chrome .btn-ember-sm { width: auto; }
  .hang-stage { min-height: 100vh; }
  .hang-stage .scene,
  .wall-stage-bleed .scene,
  .wall-stage-bleed .wall-stage .scene {
    min-height: 100vh;
  }
  .hang-stage .sheet-layer {
    align-items: stretch;
    padding: 18vh 16px 22vh;
  }
  .hang-sheet {
    width: 100%;
    padding: 24px 22px 22px;
    overflow: auto;
  }
  .hang-page h1.sheet-title,
  .hang-sheet .sheet-title { font-size: 34px; }
  .hang-stage.is-hung .sheet-layer {
    align-items: flex-end;
    padding: 16px 16px 28vh;
  }
  .hung-actions { flex-direction: column; gap: 10px; }
  .hung-actions .btn { width: 100%; }
  .note-dialog {
    margin: 20vh auto auto;
    width: calc(100% - 32px);
    max-width: none;
  }
  .note-dialog .note-sheet,
  .note-sheet.paper-sheet { padding: 24px 28px 28px; }
  .note-sheet .sheet-title,
  .note-dialog.is-unwrap .sheet-title { font-size: 34px; }
  .note-dialog.is-unwrap .note-body,
  .note-dialog.is-reread .note-body { font-size: 18px; line-height: 1.5; }
}

/* ——— Created success page (locked two-group layout) ——— */
html.is-created-experience,
body.is-created-experience,
body[data-path="/created"],
body[data-path="created"] {
  background: #1c1612;
}

.created-page.created-experience {
  position: relative;
  min-height: 100vh;
  padding: 0;
  color: var(--sheet-ink);
}

.created-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--wall-green);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.created-front {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.created-chrome {
  padding: 16px 36px 0;
  flex: 0 0 auto;
}

.created-wall-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: var(--title-gold);
  margin: 0;
  text-shadow: 0 1px 0 rgba(210, 189, 138, .45);
}

.created-ready {
  font-family: var(--font-cuff);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--cream);
  word-spacing: 7px;
  margin: 8px 0 0;
}

.created-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: min(1200px, calc(100% - 80px));
  margin: auto auto 36px;
  align-items: stretch;
}

.created-status {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto 28px;
  flex: 0 0 auto;
}
.created-status .form-msg,
.created-status .form-retry {
  color: var(--cream);
}
.created-status .form-retry { margin-top: 8px; }

.created-keep,
.created-share {
  position: relative;
  border-radius: 16px;
  padding: 20px 28px 24px 34px;
  display: grid;
  gap: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  min-width: 0;
}

.created-keep {
  background: var(--paper);
  border: 1px solid rgba(178, 133, 68, .62);
}

.created-share {
  background: #f0f1ec;
  border: 1px solid rgba(186, 162, 105, .66);
}

.created-keep::before,
.created-share::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 16px 0 0 16px;
}
.created-keep::before { background: var(--ember); }
.created-share::before { background: var(--title-gold); }

.created-kicker {
  font-family: var(--font-cuff);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.created-kicker-keep { color: var(--ember); }
.created-kicker-share { color: var(--copper); }

.created-keep-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--title-gold);
  margin: 0 0 10px;
  text-shadow: 0 1px 0 rgba(210, 189, 138, .35);
}

.created-share-title {
  font-family: var(--font-cuff);
  font-weight: 650;
  font-size: 24px;
  line-height: 1.2;
  color: var(--sheet-ink);
  word-spacing: 7px;
  margin: 0 0 10px;
}

.created-access {
  font-family: var(--font-cuff);
  font-weight: 600;
  font-size: 15px;
  color: var(--sheet-ink);
  word-spacing: 7px;
  margin: 0 0 8px;
}

.created-blurb {
  font-family: var(--font-cuff);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sheet-muted);
  word-spacing: 7px;
  margin: 0 0 14px;
}

.created-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  min-width: 0;
}
.created-field > span {
  font-family: var(--font-cuff);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sheet-muted);
}

.created-field-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.created-field-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  background: var(--field-bg);
  border: 1px solid #c8bfb2;
  border-radius: 8px;
  color: var(--sheet-ink);
  font-family: var(--font-cuff);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: clip;
  word-break: keep-all;
  overflow-wrap: normal;
}

.created-field-row input[data-msw-owner-input],
.created-field-row input[data-msw-share-input] {
  font-size: 14px;
  letter-spacing: 0;
  padding: 8px 12px;
  min-height: 40px;
}

.created-field-row input[data-msw-owner-secret] {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .04em;
  padding: 8px 12px;
  min-height: 48px;
}

.created-field-row input[data-msw-public-code] {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 8px 12px;
  min-height: 46px;
}

.created-field-row .btn-copy {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 14px;
  min-height: 40px;
  height: auto;
  font-size: 13px;
}

.created-save {
  width: 100%;
  margin-top: 4px;
  min-height: 44px;
  border-radius: 7px;
}

/* Home embed of the same two-group partial — never the old one-list */
.hero-create [data-msw-created] {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
}
.hero-create .created-keep,
.hero-create .created-share {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}

@media (max-width: 800px) {
  .created-page.created-experience {
    min-height: 100%;
    overflow: auto;
    background: #2a2620;
  }
  .created-wall {
    position: relative;
    height: 188px;
    inset: auto;
    background-position: center 30%;
    background-size: cover;
  }
  .created-front {
    min-height: 0;
    margin-top: -188px;
    padding-top: 0;
    background: transparent;
  }
  .created-chrome {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 10px 16px 0;
    z-index: 2;
    min-height: 188px;
  }
  .created-wall-name { font-size: 28px; }
  .created-ready { font-size: 13px; }
  .created-access { display: none; }
  .created-cards {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin: 12px auto 12px;
    gap: 10px;
  }
  .created-status { width: calc(100% - 32px); margin: 0 auto 24px; }
  .created-keep,
  .created-share {
    padding: 16px 22px 20px 28px;
  }
  .created-keep-title { font-size: 30px; }
  .created-share-title { font-size: 22px; }
  .created-field-row {
    flex-wrap: nowrap;
  }
  .created-field-row input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
  }
  .created-field-row .btn-copy {
    flex: 0 0 auto;
    margin-left: 0;
    min-height: 38px;
  }
  .created-field-row input[data-msw-owner-input],
  .created-field-row input[data-msw-share-input] {
    font-size: 13px;
    min-height: 38px;
  }
  .created-field-row input[data-msw-owner-secret] {
    font-size: 18px;
    min-height: 44px;
  }
  .created-field-row input[data-msw-public-code] {
    font-size: 16px;
    min-height: 44px;
  }
}
