/* Wish My Tree — tool styles (v5: painted-scene UI, DESIGN.md v3).
   Palette: night #0B2317 bg, panel-deep #10301E, snow #F5F8F3 cards,
   berry #E5484D the only action color, gold #E9B44C for star/milestone
   accents only, cream #FFF8EC text on dark, ink #1E3325 text on snow. */
.wmt { --night:#0B2317; --panel-deep:#10301E; --snow:#F5F8F3; --snowshade:#DCE9E4;
  --action:#E5484D; --action-d:#C93338; --gold:#E9B44C; --gold-soft:#F2CD6E;
  --ink:#1E3325; --cream:#FFF8EC; --muted:#5F7263; --field-bd:#C4D4C2;
  font-family: Nunito, system-ui, sans-serif; color: var(--cream); }
.wmt [hidden] { display: none !important; }
.wmt * { box-sizing: border-box; }
.wmt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared bits ---------- */
.wmt-h { font-weight: 900; font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.wmt-sub { color: var(--muted); font-size: .93rem; margin: 0 0 10px; }
.wmt-label { display: block; font-weight: 800; font-size: .85rem; margin: 12px 0 5px; color: #44604C; }
.wmt-input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--field-bd); border-radius: 12px; font: inherit;
  background: #fff; color: var(--ink); }
.wmt-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.wmt textarea { width: 100%; min-height: 92px; padding: 11px 13px; border: 1.5px solid rgba(255,248,236,.35); border-radius: 12px;
  font: inherit; background: rgba(6,26,16,.55); color: var(--cream); resize: vertical; }
.wmt textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.wmt-count { text-align: right; font-size: .8rem; color: rgba(255,248,236,.65); margin-top: 3px; }
.wmt-check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .92rem; cursor: pointer; }
.wmt-msg { margin: 10px 0 0; font-size: .92rem; color: #FFB3AB; font-weight: 700; }
.wmt-msg.ok { color: #A9E5B5; }
.wmt-card .wmt-msg { color: var(--action-d); }
.wmt-card .wmt-msg.ok { color: #2C7A3F; }
.wmt-fine { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.wmt-warn { background: #FDF1E3; border: 1px solid #E8B25F; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 0; color: #6B4A12; }
.wmt-savehint { font-size: .88rem; font-weight: 700; color: #7A4A12; margin: 8px 0 0; }
.wmt-xpromo { font-size: .9rem; margin: 12px 0 0; color: var(--muted); }
.wmt-xpromo a { color: var(--action-d); font-weight: 800; }
.create-meta { color: rgba(255,248,236,.75); font-size: .85rem; margin: 2px 0 0; font-weight: 700; }

.wmt-btn { appearance: none; border: 1.5px solid var(--action); background: #FFFDF6; color: var(--action-d);
  font: inherit; font-weight: 800; border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.wmt-btn:hover { filter: brightness(1.05); }
.wmt-btn:active { transform: translateY(1px); }
.wmt-btn.primary { background: var(--action); color: #fff; border-color: var(--action); }
.wmt-btn.primary:hover { background: var(--action-d); }
.wmt-btn.big { width: 100%; padding: 13px 20px; font-size: 1.03rem; margin-top: 14px; }
.wmt-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.wmt-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wmt-btnrow .wmt-btn { flex: 1; }
.wmt-linkrow { display: flex; gap: 8px; }
.wmt-linkrow .wmt-input { flex: 1; min-width: 0; }
.wmt-linkrow .wmt-btn { flex: none; }
.wmt-codebig { font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 1.7rem; letter-spacing: .12em;
  color: var(--ink); margin: 2px 0 4px; }

/* cards on the night background */
.wmt-card { background: var(--snow); color: var(--ink); border-radius: 20px; padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28); margin-top: 16px; }
.wmt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wmt-cards .wmt-card { margin-top: 16px; }
.wmt-created-h { font-weight: 900; font-size: 1.1rem; margin-bottom: 4px; }

/* pickers (color dots + topper icons, on dark) */
.wmt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.wmt-swatch { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1.5px solid rgba(255,248,236,.28); border-radius: 999px; background: rgba(255,248,236,.07); cursor: pointer; }
.wmt-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.wmt-swatch:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233,180,76,.5); background: rgba(233,180,76,.12); }
.wmt-swatch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: block; }
.d-pine { background: linear-gradient(180deg,#3E9B4F,#14532D); }
.d-frosty { background: linear-gradient(180deg,#CFEEF5,#6FB3CC); }
.d-blush { background: linear-gradient(180deg,#F2B8C6,#C95F83); }
.d-gold { background: linear-gradient(180deg,#EEC95E,#A5761F); }
.d-midnight { background: linear-gradient(180deg,#46548C,#1A2347); }
.sw-top { display: flex; color: var(--gold-soft); }
.sw-top svg { width: 24px; height: 24px; fill: currentColor; display: block; }

/* ---------- homepage hero ---------- */
.wmt-hero { position: relative; border-radius: 20px; overflow: hidden; background: #0A2018;
  box-shadow: 0 10px 28px rgba(0,0,0,.28); height: clamp(500px, 58vw, 660px); }
.wmt-hero-stage { position: absolute; inset: 0; }
.wmt-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; display: block; }
.wmt-hero-topper { position: absolute; left: 81.5%; top: .5%; width: 4.4%; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.wmt-hero-topper svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.wmt-hero-orns { position: absolute; inset: 0; z-index: 2; }
.wmt-hero-col { position: relative; z-index: 3; height: 100%; width: min(480px, 50%); padding: 30px 8px 30px 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 17px; }
.wmt-h1 { font-size: 2.25rem; line-height: 1.13; font-weight: 900; margin: 0; color: var(--cream);
  text-shadow: 0 2px 14px rgba(4,18,9,.55); }
.wmt-hero-lines { margin: 0; font-size: 1.03rem; line-height: 1.55; color: #EAF3E4; font-weight: 600;
  text-shadow: 0 1px 10px rgba(4,18,9,.6); }
.wmt-hero-lines span { display: block; }
.wmt-pickrow { display: flex; flex-direction: column; gap: 7px; }
.wmt-picklabel { font-weight: 800; font-size: .85rem; color: var(--snowshade); }
.wmt-makerow { display: flex; gap: 10px; align-items: stretch; }
.wmt-makerow .wmt-input { flex: 1; min-width: 0; background: rgba(6,26,16,.55); border-color: rgba(255,248,236,.38); color: var(--cream); }
.wmt-makerow .wmt-input::placeholder { color: rgba(255,248,236,.55); }
.wmt-makerow .wmt-btn { flex: none; padding: 11px 22px; font-size: 1rem; }
.wmt-hero-col .wmt-msg { margin: 0; }
.wmt-demoline { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.demo-line { color: #CFE3D2; font-size: .9rem; margin: 0; flex: 1; }
.wmt-minechip { flex: none; background: rgba(255,248,236,.12); border: 1px solid rgba(233,180,76,.6); color: var(--gold-soft);
  font: inherit; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.wmt-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wmt-mine li { display: flex; gap: 8px; align-items: center; }
.mine-open { flex: 1; text-align: left; background: #fff; border: 1.5px solid var(--field-bd); border-radius: 12px;
  padding: 10px 13px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.mine-copy { background: none; border: none; color: var(--action-d); font: inherit; font-weight: 800; cursor: pointer; padding: 8px; }

/* ---------- ornaments on a scene (hero + tree frame) ---------- */
.orn { position: absolute; background: none; border: none; padding: 0; cursor: pointer; z-index: 1; }
.orn .orn-box { display: block; aspect-ratio: .8; }
.orn .orn-box img { width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); transition: transform .18s ease; }
.orn:hover, .orn:focus-visible { z-index: 6; }
.orn:hover .orn-box img, .orn:focus-visible .orn-box img { transform: scale(1.07); }
.orn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.orn-cap { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 1px;
  background: rgba(6,26,16,.72); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 0 7px; border-radius: 999px; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.orn.empty { cursor: pointer; }
.orn.empty .hookdot { display: block; width: 44%; aspect-ratio: 1; margin: 16% auto 0; border-radius: 50%;
  border: 1.6px dashed rgba(255,248,236,.45); background: rgba(255,248,236,.05); position: relative; }
.orn.empty .hookdot::after { content: '+'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,248,236,.65); font-weight: 800; font-size: 13px; }
.orn.empty:hover .hookdot, .orn.empty:focus-visible .hookdot { background: rgba(255,248,236,.16); border-color: rgba(255,248,236,.8); }

/* ---------- tree page scene ---------- */
.wmt-backlink { display: inline-block; margin-bottom: 12px; color: var(--gold-soft); font-weight: 800; text-decoration: none; }
.wmt-tscene { position: relative; border-radius: 20px; overflow: hidden; background: #0A2018;
  box-shadow: 0 10px 28px rgba(0,0,0,.28); padding: 20px 20px 14px; }
.wmt-tblur { position: absolute; inset: -24px; background-size: cover; background-position: center; z-index: 0; }
.wmt-trow { position: relative; z-index: 1; display: flex; gap: 20px; align-items: flex-start; }
.wmt-tinfo { width: 306px; flex: none; padding: 8px 2px 0 6px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.wmt-tree-title { font-weight: 900; font-size: 1.55rem; line-height: 1.15; color: var(--cream);
  text-shadow: 0 2px 12px rgba(4,18,9,.6); overflow-wrap: break-word; }
.wmt-tstatus { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mile-count { font-weight: 800; color: var(--gold-soft); font-size: .95rem; }
.code-chip { background: rgba(255,248,236,.12); border: 1px solid rgba(233,180,76,.6); color: var(--gold-soft);
  font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 3px 9px; letter-spacing: .04em; }
.code-chip b { font-family: ui-monospace, Menlo, monospace; }
.wmt-mile { display: flex; flex-direction: column; gap: 5px; }
.mile-line { margin: 0; font-size: .93rem; font-weight: 700; color: var(--cream); line-height: 1.45; }
.wmt-strand svg { width: 100%; height: auto; display: block; }
.wmt-stages { display: flex; justify-content: space-between; padding: 0 2px; }
.wmt-stage-node { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem;
  font-weight: 800; color: rgba(255,248,236,.42); }
.wmt-stage-node svg { width: 17px; height: 17px; display: block; }
.wmt-stage-node.reached { color: var(--gold); }
.wmt-stage-node.next { color: var(--cream); }
.wmt-stage-node.next svg { filter: drop-shadow(0 0 5px rgba(233,180,76,.85)); }
.wmt-tframewrap { flex: 1; display: flex; justify-content: center; min-width: 0; }
.wmt-tframe { position: relative; aspect-ratio: 2 / 3; height: min(68vh, 640px); flex: none; }
.wmt-timg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .6s ease;
  -webkit-mask-image: radial-gradient(118% 102% at 50% 46%, #000 66%, transparent 98%);
  mask-image: radial-gradient(118% 102% at 50% 46%, #000 66%, transparent 98%); }
.wmt-timg.is-on { opacity: 1; }
.wmt-topper { position: absolute; left: 50%; top: .6%; width: 11%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.wmt-topper svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.wmt-orns-layer { position: absolute; inset: 0; z-index: 2; }
.wmt-sharebar { position: relative; z-index: 1; margin: 14px auto 2px; width: fit-content; max-width: 520px;
  display: flex; align-items: center; gap: 10px; background: rgba(6,26,16,.66); border: 1px solid rgba(255,248,236,.22);
  border-radius: 999px; padding: 6px 6px 6px 16px; backdrop-filter: blur(6px); }
.wmt-sharebar-link { font-family: ui-monospace, Menlo, monospace; font-size: .83rem; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.wmt-sharebar .wmt-btn { min-height: 38px; padding: 7px 16px; flex: none; }
.wmt-cta { text-align: center; margin-top: 22px; color: var(--cream); }
.wmt-cta .wmt-btn { display: inline-block; width: auto; text-decoration: none; }

/* templates inside the share card */
.wmt-tpls { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wmt-tpl { text-align: left; background: #fff; border: 1.5px solid var(--field-bd); border-radius: 12px; padding: 10px 13px;
  font: inherit; cursor: pointer; width: 100%; color: var(--ink); }
.wmt-tpl:hover { border-color: var(--gold); }
.tpl-t { font-weight: 800; font-size: .92rem; display: block; }
.tpl-p { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- modal (dark sheet) ---------- */
.wmt-modal { position: fixed; inset: 0; background: rgba(6,20,11,.66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 60; }
.wmt-sheet { background: var(--panel-deep); color: var(--cream); border: 1px solid rgba(233,180,76,.35); border-radius: 20px; max-width: 520px; width: 100%;
  max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; position: relative; box-shadow: 0 16px 48px rgba(0,0,0,.45); }
.wmt-sheet h3 { margin: 0 24px 8px 0; font-size: 1.2rem; }
.wmt-sheet .wmt-label { color: var(--snowshade); }
.wmt-sheet .wmt-sub { color: rgba(255,248,236,.75); }
.wmt-sheet .wmt-fine { color: rgba(255,248,236,.6); }
.wmt-sheet .wmt-input { background: rgba(6,26,16,.55); border-color: rgba(255,248,236,.35); color: var(--cream); }
.wmt-sheet .wmt-xpromo { color: rgba(255,248,236,.75); }
.wmt-sheet .wmt-xpromo a { color: var(--gold-soft); }
.wmt-x { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.7rem; line-height: 1;
  cursor: pointer; color: rgba(255,248,236,.65); padding: 6px; }
.wish-card { text-align: center; }
.wish-card.flip { animation: wmtflip .5s ease; }
@keyframes wmtflip { from { transform: rotateY(70deg); opacity: .2; } to { transform: rotateY(0); opacity: 1; } }
.wish-orn { width: 84px; height: 104px; margin: 0 auto 4px; display: flex; align-items: flex-start; justify-content: center; }
.wish-orn img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.wish-orn.sm { width: 48px; height: 60px; }
.wish-from { margin: 4px 0; }
.wish-traits { margin: 4px 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.trait { background: rgba(233,180,76,.16); border: 1px solid rgba(233,180,76,.55); color: var(--gold-soft); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.wish-sealed { color: rgba(255,248,236,.8); }
.wmt-note-text { background: rgba(255,248,236,.07); border: 1px solid rgba(255,248,236,.2); border-radius: 12px; padding: 14px; font-size: 1.05rem;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word; text-align: left; margin-top: 8px; color: var(--cream); }
.wmt-report { background: none; border: none; color: rgba(255,248,236,.55); font: inherit; font-size: .85rem; cursor: pointer;
  text-decoration: underline; margin-top: 14px; padding: 6px; }
.wish-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.wish-mini { background: rgba(255,248,236,.06); border: 1px solid rgba(255,248,236,.16); border-radius: 14px; padding: 12px; text-align: center; }
.wish-mini .wmt-note-text { font-size: .95rem; padding: 10px; }

/* ornament + trait pickers (in the dark sheet) */
.wmt-orns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.wmt-orns button { background: rgba(255,248,236,.06); border: 2px solid rgba(255,248,236,.18); border-radius: 12px; padding: 5px; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; justify-content: center; }
.wmt-orns button img { max-width: 100%; max-height: 52px; object-fit: contain; display: block; }
.wmt-orns button.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233,180,76,.35); }
.wmt-traits { display: flex; flex-wrap: wrap; gap: 7px; }
.tchip { background: rgba(255,248,236,.06); border: 1.5px solid rgba(255,248,236,.3); color: var(--cream); border-radius: 999px; padding: 7px 14px; font: inherit;
  font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 40px; }
.tchip.sel { background: var(--action); border-color: var(--action); color: #fff; }

/* story */
.story-wrap { display: flex; justify-content: center; margin: 10px 0; }
.story-wrap canvas { width: min(270px, 72vw); height: auto; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* toast + effects */
.wmt-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(16px); background: #22301F;
  color: var(--cream); border: 1px solid var(--gold); border-radius: 12px; padding: 11px 16px; font-size: .93rem; font-weight: 700;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 80; max-width: min(92vw, 480px); text-align: center; }
.wmt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.burst-p { position: fixed; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 90; }
.shake { animation: wmtshake .5s ease; }
@keyframes wmtshake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.wmt-snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wmt-trow { flex-direction: column; }
  .wmt-tinfo { width: 100%; padding: 2px 2px 0; }
  .wmt-tframe { height: auto; width: min(100%, 440px); }
  .wmt-sharebar { max-width: 100%; }
  .wmt-sharebar-link { max-width: 44vw; }
}
@media (max-width: 820px) {
  .wmt-hero { height: auto; display: flex; flex-direction: column; }
  .wmt-hero-col { order: 1; width: 100%; height: auto; padding: 24px 20px 14px; gap: 14px; }
  .wmt-h1 { font-size: 1.65rem; }
  .wmt-hero-stage { order: 2; position: relative; inset: auto; height: 330px; flex: none; }
  .wmt-hero-img { object-position: 72% 50%; }
  .wmt-makerow { flex-wrap: wrap; }
  .wmt-makerow .wmt-btn { width: 100%; }
  .wmt-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wmt-tscene { padding: 14px 12px 10px; }
  .wmt-card { padding: 15px; }
  .wmt-sheet { padding: 17px; }
  .wish-wall { grid-template-columns: 1fr; }
  .wmt-codebig { font-size: 1.4rem; }
  .wmt-tree-title { font-size: 1.3rem; }
}

/* ===== v7 illustrated layered refactor (DESIGN v5) ===== */
.wmt{--night:#0B2317;--cream:#FFF8EC;--action:#E5484D;--gold:#E9B44C;font-family:Nunito,system-ui,sans-serif;color:var(--cream)}
.wmt-hero{position:relative;border-radius:28px;overflow:hidden;background:#0B2317;min-height:min(92dvh,860px)}
.wmt-hero-stage{position:absolute;inset:0}.wmt-hero-img{width:100%;height:100%;object-fit:cover;object-position:center 78%}
.wmt-hero-orns{display:none}
.wmt-hero-col{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;padding:34px 24px;height:100%;min-height:inherit}
.wmt-h1{font-size:clamp(30px,6vw,44px);line-height:1.15;font-weight:800;letter-spacing:-.01em;margin:18px 0 12px;max-width:560px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.wmt-hero-lines{display:flex;flex-direction:column;font-size:16px;line-height:1.5;font-weight:600;opacity:.92;margin:0 0 auto}
.wmt-btn.primary{background:var(--action);color:#fff;border:0;border-radius:18px;min-height:56px;padding:14px 28px;font-weight:800;box-shadow:0 12px 28px rgba(229,72,77,.32);cursor:pointer}
.wmt-btn.primary.big{width:min(100%,560px);font-size:17px}
.create-meta{font-size:13px;font-weight:600;opacity:.75;margin:12px 0 6px}
.wmt-flow{margin:22px auto;max-width:640px;background:rgba(6,26,16,.55);border:1px solid rgba(255,248,236,.16);border-radius:28px;padding:20px;backdrop-filter:blur(8px)}
.flow-top{display:flex;justify-content:space-between;align-items:center;font-weight:800}
.flow-icon{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,248,236,.28);background:transparent;color:var(--cream);font-size:24px;cursor:pointer}
.flow-progress{display:flex;gap:8px;align-items:center;margin:16px 0}.flow-progress i{flex:1;height:4px;border-radius:99px;background:rgba(255,248,236,.18)}.flow-progress i.on{background:var(--gold)}
.flow-progress span{font-size:13px;font-weight:700;opacity:.75}
.flow-scene{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:4/5;max-height:560px;margin:0 auto;width:100%}
.flow-scene>img:first-child{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#wmt-cr-tree{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);height:84%}
#wmt-cr-topper{position:absolute;left:50%;bottom:86%;transform:translateX(-50%);width:52px;color:var(--gold)}
.flow-step{text-align:center;padding:18px 0 6px}.flow-step h2{margin:0 0 14px;font-size:28px}
.flow-step .wmt-pickrow{justify-content:center}.flow-next{width:100%;margin-top:16px}
.wmt-input{background:var(--cream);color:#1E3325;border:0;border-radius:16px;min-height:56px;padding:14px 18px;font:600 16px Nunito;width:100%}
.wmt-makerow{display:flex;flex-direction:column;gap:14px}
.bg-swatches{gap:12px}.bg-swatch{flex-direction:column;gap:8px}.bg-swatch img{width:92px;height:120px;object-fit:cover;border-radius:14px}
.wmt-tscene{position:relative;border-radius:28px;overflow:hidden;background:#0B2317}
.wmt-tframe{position:relative;aspect-ratio:4/5;max-height:760px;margin:0 auto;overflow:hidden;border-radius:24px}
.wmt-tbg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.wmt-timg{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);height:86%;opacity:0;transition:opacity .5s}
.wmt-timg.is-on{opacity:1}
.wmt-topper{position:absolute;left:50%;bottom:87%;transform:translateX(-50%);width:54px;color:var(--gold);z-index:5}
.wmt-orns-layer{position:absolute;inset:0;z-index:6}
.orn-cap{background:rgba(6,26,16,.55);backdrop-filter:blur(6px);border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700}
.wmt-sharebar{display:flex;gap:12px;align-items:center;justify-content:center;padding:16px}
.hang-step .wmt-btn.big{width:100%;margin-top:16px}
@media(max-width:640px){.wmt-hero{min-height:calc(100dvh - 120px)}.flow-scene{aspect-ratio:3/4}}


/* ===== v7.1 draft visual fixes: one-screen hero + create panel ===== */
.wmt-hero{display:block;height:calc(100dvh - 104px);min-height:500px;max-height:860px}
.wmt-hero-stage{position:absolute;inset:0;height:auto;order:initial}
.wmt-hero-stage::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(4,24,15,.46),rgba(4,24,15,0) 38%)}
.wmt-hero-img{object-position:center 86%}
.wmt-hero-tree{position:absolute;left:50%;bottom:122px;z-index:2;height:min(50dvh,460px);width:auto;max-width:88%;object-fit:contain;transform:translateX(-50%);pointer-events:none}
.wmt-hero .wmt-hero-topper{left:50%;top:auto;bottom:calc(118px + min(50dvh,460px));width:44px;z-index:3;transform:translateX(-50%)}
.wmt-hero-col{order:initial;width:100%;height:100%;min-height:0;padding:24px 24px 14px;align-items:center;text-align:center}
.wmt-hero .wmt-h1{margin:0;max-width:680px}
.wmt-hero-lines{margin-top:10px;text-shadow:0 1px 12px rgba(4,24,15,.65)}
.wmt-hero-col .wmt-btn.primary.big{margin-top:auto}
.wmt-hero .create-meta{display:inline-flex;align-items:center;min-height:32px;margin:10px 0 0;padding:6px 14px;border:1px solid rgba(255,248,236,.22);border-radius:999px;background:rgba(6,26,16,.72);backdrop-filter:blur(8px);color:#FFF8EC;opacity:1;text-shadow:none}
.wmt-create-mode .wmt-hero,.wmt-create-mode .wmt-demoline,.wmt-create-mode .wmt-cards,.wmt-create-mode #wmt-mine-card{display:none}
.wmt-flow{display:flex;flex-direction:column;height:calc(100dvh - 104px);min-height:500px;max-height:860px;max-width:760px;margin:0 auto;padding:18px 20px;overflow:hidden;scroll-margin-top:76px}
.flow-top{flex:none}.flow-icon{width:40px;height:40px;flex:none}
.flow-progress{flex:none;margin:10px 0 12px}
.flow-scene{flex:1 1 auto;min-height:180px;aspect-ratio:auto;max-height:none;width:100%}
.flow-scene>img:first-child{object-position:center 78%}
#wmt-cr-tree{bottom:3%;height:88%;max-width:92%;object-fit:contain}
#wmt-cr-topper{bottom:88%;width:46px}
.flow-step{flex:none;padding:12px 0 0}
.flow-step h2{margin:0 0 10px;font-size:26px;line-height:1.2}
.flow-step .wmt-sub{margin:0 0 12px;color:rgba(255,248,236,.78)}
.flow-step .wmt-picklabel{display:none}
.flow-step .wmt-swatches{justify-content:center}
.flow-step .wmt-makerow{align-items:center}
.flow-step .wmt-input{width:min(520px,100%)}
.flow-step .wmt-count{width:min(520px,100%);margin:6px auto 0}
.flow-next,.flow-save{flex:none;width:100%;margin-top:12px}
#wmt-styles .wmt-swatch,#wmt-toppers .wmt-swatch{width:auto;min-width:104px;height:50px;padding:0 14px;gap:8px;border-radius:999px}
#wmt-styles .sw-dot{width:20px;height:20px;flex:none}
.sw-label{font-size:14px;font-weight:800;color:#FFF8EC;white-space:nowrap}
#wmt-styles .wmt-swatch:has(input:checked),#wmt-toppers .wmt-swatch:has(input:checked),.bg-swatch:has(input:checked){border:2px solid var(--gold);background:rgba(233,180,76,.24);box-shadow:0 0 0 3px rgba(233,180,76,.34)}
#wmt-styles .wmt-swatch:has(input:checked)::after,#wmt-toppers .wmt-swatch:has(input:checked)::after{content:"✓";position:absolute;top:-8px;right:-6px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--gold);color:#1E3325;font-size:12px;font-weight:900}
.bg-swatch{width:auto;height:auto;padding:10px;border-radius:18px}
.bg-swatch img{width:76px;height:92px}
@media(max-height:720px){
  .wmt-hero-col{padding-top:16px}.wmt-hero .wmt-h1{font-size:30px}.wmt-hero-lines{font-size:15px;line-height:1.4}
  .wmt-hero-tree{bottom:94px;height:42dvh}.wmt-hero .wmt-hero-topper{bottom:calc(90px + 42dvh);width:38px}
}
@media(max-width:640px){
  .wmt-hero{height:calc(100dvh - 96px);border-radius:24px}
  .wmt-hero-col{padding:20px 20px 18px}
  .wmt-flow{height:calc(100dvh - 96px);padding:16px;border-radius:24px}
  #wmt-styles .wmt-swatch,#wmt-toppers .wmt-swatch{min-width:96px}
  .bg-swatch img{width:68px;height:82px}
}

/* ===== v7.2 user feedback: bigger hero tree, narrower centered buttons ===== */
.wmt-hero-tree{bottom:158px;height:min(57dvh,525px)}
.wmt-hero .wmt-hero-topper{bottom:calc(154px + min(57dvh,525px))}
.wmt-hero-col .wmt-btn.primary.big{width:min(72%,340px);align-self:center}
.wmt-flow .flow-next,.wmt-flow .flow-save{width:min(72%,340px);align-self:center;margin-left:auto;margin-right:auto}
@media(max-height:720px){
  .wmt-hero-tree{bottom:124px;height:47dvh}
  .wmt-hero .wmt-hero-topper{bottom:calc(120px + 47dvh)}
}
@media(max-width:640px){
  .wmt-hero-col{padding-top:14px}
  .wmt-hero .wmt-h1{font-size:27px}
  .wmt-hero-lines{font-size:14.5px;margin-top:8px}
  .wmt-hero-tree{bottom:140px;height:56dvh}
  .wmt-hero .wmt-hero-topper{bottom:calc(136px + 56dvh)}
}

/* ===== v7.3 fix: subtitle/star clearance + centered flow message ===== */
.wmt-hero-col{padding-top:18px}
.wmt-hero-tree{bottom:150px;height:min(54dvh,500px,calc(100dvh - 104px - 150px - 196px))}
.wmt-hero .wmt-hero-topper{bottom:calc(146px + min(54dvh,500px,calc(100dvh - 104px - 150px - 196px)))}
.wmt-flow .wmt-msg{text-align:center;align-self:center;margin-left:auto;margin-right:auto;width:100%}
@media(max-height:720px){
  .wmt-hero-tree{bottom:118px;height:min(45dvh,calc(100dvh - 104px - 118px - 178px))}
  .wmt-hero .wmt-hero-topper{bottom:calc(114px + min(45dvh,calc(100dvh - 104px - 118px - 178px)))}
}
@media(max-width:640px){
  .wmt-hero-tree{bottom:136px;height:min(53dvh,calc(100dvh - 96px - 136px - 182px))}
  .wmt-hero .wmt-hero-topper{bottom:calc(132px + min(53dvh,calc(100dvh - 96px - 136px - 182px)))}
}

/* ===== v7.4 fix: tree page single scene layer (no double background) ===== */
.wmt-tblur{inset:0;background-size:cover;background-position:center 82%}
.wmt-tscene{padding:22px 22px 16px}
.wmt-tframe{background:transparent;border-radius:0;overflow:visible;box-shadow:none}
.wmt-timg{object-fit:contain;max-width:100%;-webkit-mask-image:none;mask-image:none}
.wmt-topper{bottom:88%}
@media(max-width:900px){
  .wmt-tscene{padding:16px 14px 12px}
  .wmt-trow{gap:8px}
  .wmt-tinfo{gap:8px}
  .wmt-tframe{width:min(76vw,340px);height:auto}
  .wmt-sharebar{padding:10px 6px}
  .wmt-sharebar-link{display:none}
}


/* ===== v7.5 fix: tree page asset/geometry repair =====
   One scene background only (.wmt-tblur); the tree frame itself is a
   borderless positioning box. Its 5:7 ratio plus a 90%-high tree makes
   the rendered tree 91.2% of frame width, so the ornament layer inset
   below is exactly the tree image box and hooks cannot spill outside. */
.wmt-tblur{inset:0;background-repeat:no-repeat;background-size:cover;background-position:center 82%;filter:none;transform:none}
.wmt-tframe{width:min(460px,100%);height:auto;aspect-ratio:5/7;max-height:none;margin:0 auto;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none;outline:0}
.wmt-timg{inset:auto;left:50%;bottom:2%;width:auto;height:90%;max-width:96%;object-fit:contain;object-position:center bottom;background:transparent;border:0;outline:0;box-shadow:none;transform:translateX(-50%)}
.wmt-orns-layer{inset:8% 4.4% 2%;overflow:visible;border:0;outline:0;box-shadow:none}
.wmt-topper{bottom:89%}
@media(max-width:900px){
  .wmt-tframe{width:min(88vw,400px);height:auto}
}
