/* Dee Utensils Grand Opening — additions on top of site.css */
[hidden] { display: none !important; }

/* ---------- Coin orbit hero ---------- */
.coin {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 15%); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 200deg, #6b4307, var(--gold-light), var(--gold), #7a4b06, #ffe3a3, var(--gold-deep), #6b4307);
  box-shadow: 0 18px 46px rgba(0,0,0,.7), 0 0 36px rgba(240,169,43,.28), inset 0 0 0 1px rgba(255,255,255,.25);
  padding: calc(var(--s, 15%) * 0.09);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.coin-face {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a2709, #120b02 70%);
  box-shadow: inset 0 0 0 2px rgba(255,210,122,.55), inset 0 0 0 7px #120b02, inset 0 0 0 8px rgba(255,210,122,.35);
  color: var(--gold-light);
}
.coin-face svg { width: 46%; height: 46%; filter: drop-shadow(0 0 6px rgba(240,169,43,.45)); }
.coin.photo { padding: calc(var(--s, 15%) * 0.05); }
.coin.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #1a1206; }
.crest {
  position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, #2c1e07, #0b0803 70%);
  box-shadow: 0 0 0 2px rgba(255,210,122,.6), 0 0 0 10px rgba(240,169,43,.12), 0 0 80px rgba(240,169,43,.35), inset 0 0 40px rgba(0,0,0,.8);
}
.crest-inner { display: grid; gap: 4px; justify-items: center; }
.crest img { width: 62%; }
.crest strong { font-size: clamp(14px, 2.4vw, 24px); letter-spacing: .12em; color: var(--gold-light); font-weight: 700; line-height: 1; }
.crest em { font-style: normal; font-size: clamp(11px, 1.5vw, 15px); letter-spacing: .3em; color: var(--fg); font-weight: 600; padding: 4px 12px; border: 1px solid rgba(255,210,122,.5); border-radius: 999px; margin-top: 4px; }

/* ---------- Countdown ---------- */
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 44px auto 0; }
.cd-cell { display: grid; justify-items: center; gap: 10px; }
.flip {
  position: relative; width: clamp(64px, 12vw, 108px); height: clamp(72px, 13vw, 118px);
  border-radius: 14px; background: linear-gradient(#1b1b1b 50%, #121212 50%);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.flip::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.85); box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.flip span { font-size: clamp(32px, 6.4vw, 60px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flip.tick span { animation: tick .45s ease; }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cd-done { text-align: center; color: var(--gold-light); font-size: 22px; font-weight: 600; margin-top: 40px; }

.flyer { width: min(760px, 100%); margin: 56px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(240,169,43,.35); box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(240,169,43,.15); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; }
.steps li span { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold); display: block; margin-bottom: 30px; }
.steps li strong { display: block; font-size: 20px; margin-bottom: 8px; }
.steps li p { color: var(--muted); }

/* ---------- Share row ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row .btn { flex: 0 0 auto; }
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.numbers a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); font-weight: 600; font-variant-numeric: tabular-nums; }
.numbers a:hover { border-color: rgba(240,169,43,.5); }
.numbers svg { width: 18px; height: 18px; color: var(--gold); }

.tour { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--hair); background: #000; }
.tour video { width: 100%; max-height: 640px; object-fit: cover; }
.tour-cap { display: block; color: var(--muted); font-size: 14px; margin-top: 12px; }
.address { margin-top: 24px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(240,169,43,.3); background: rgba(240,169,43,.06); display: grid; gap: 2px; }
.address strong { color: var(--gold-light); font-size: 18px; letter-spacing: .04em; }
.address span { color: var(--soft); }

/* ---------- Card creator ---------- */
.creator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.step-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.step-tab { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); display: grid; gap: 10px; }
.step-tab .track { height: 4px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.step-tab .track i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .35s; }
.step-tab.done .track i, .step-tab.active .track i { width: 100%; }
.step-tab.active, .step-tab.done { color: var(--fg); }
.panel { display: none; }
.panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ctrl { background: var(--surface); border: 1px solid var(--hair); border-radius: 22px; padding: 28px; }
.ctrl + .ctrl { margin-top: 16px; }
.ctrl-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.ctrl-title > span { font-size: 13px; font-weight: 700; color: var(--gold-ink); background: var(--gold); border-radius: 8px; padding: 4px 8px; }
.ctrl-title h3 { font-size: 20px; }
.ctrl-title p { color: var(--muted); font-size: 14px; }
.upload-zone { border: 1.5px dashed #3a3a3a; border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.upload-zone.has-photo { border-color: rgba(240,169,43,.55); background: rgba(240,169,43,.05); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 14px; font-weight: 600; }
.ok-line svg { width: 18px; height: 18px; }
.range { width: 100%; accent-color: var(--gold); margin: 10px 0 4px; }
.hint { color: var(--muted); font-size: 13px; }
.counter { text-align: right; color: var(--muted); font-size: 12px; margin-top: 6px; }
.big-input { height: 58px; font-size: 18px; }
.radios { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.radios legend { font-size: 14px; color: var(--soft); margin-bottom: 10px; }
.radios label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--chip); cursor: pointer; border: 1px solid transparent; }
.radios label:has(input:checked) { border-color: var(--gold); background: rgba(240,169,43,.08); }
.radios input, .check input { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); margin: 10px 0; cursor: pointer; }
.step-actions { display: flex; gap: 10px; margin-top: 18px; }
.step-actions .btn { flex: 1; }
.fallback { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--chip); color: var(--soft); font-size: 14px; display: grid; gap: 10px; }
.fallback[hidden] { display: none; }
.preview-col { position: sticky; top: 110px; }
.preview-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.canvas-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: box-shadow .4s; }
.canvas-wrap.ready { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 2px var(--gold), 0 0 50px rgba(240,169,43,.3); }
.canvas-wrap { position: relative; }
.canvas-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; touch-action: pan-y pinch-zoom; }
.canvas-wrap.moving canvas { touch-action: none; cursor: grab; }
.canvas-wrap.moving { box-shadow: 0 0 0 3px var(--gold), 0 0 50px rgba(240,169,43,.45); }
.move-btn { display: flex; width: 100%; justify-content: center; margin-top: 12px; height: 46px; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--chip); color: #fff; border: 1px solid rgba(255,210,122,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.move-btn svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.move-btn[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.canvas-wrap.has-photo canvas { cursor: grab; }
.canvas-wrap.has-photo canvas:active { cursor: grabbing; }

.sparkle-intro { min-height: 50vh; display: grid; place-items: center; text-align: center; color: var(--soft); }
.sparkle-intro .burst { font-size: 34px; color: var(--gold); letter-spacing: 10px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.92); } }

/* ---------- Camera modal ---------- */
.cam { position: fixed; inset: 0; z-index: 96; background: rgba(0,0,0,.88); display: none; place-items: center; padding: 16px; }
.cam.open { display: grid; }
.cam-box { width: min(560px, 100%); background: #0d0d0d; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.cam-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cam-head h2 { font-size: 22px; }
.cam-frame { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; }
.cam-frame video, .cam-frame img { width: 100%; height: 100%; object-fit: cover; }
.cam-frame .wait { position: absolute; color: var(--muted); font-size: 14px; }
.cam-frame::after { content: ""; position: absolute; inset: 12%; border: 2px dashed rgba(255,255,255,.35); border-radius: 50%; pointer-events: none; }
.cam-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cam-actions .btn { flex: 1; }

/* ---------- Toast variants ---------- */
.toast.error { background: #ffdfda; color: #5a0c00; }
.toast.info { background: #fff3d6; color: #3a2500; }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .creator { grid-template-columns: 1fr; gap: 24px; }
  .preview-col { position: static; order: -1; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .ctrl { padding: 20px; }
  .coin.photo { padding: 3px; }
  .coin.photo img { border-width: 2px; }
}

/* ---------- Landing: invitation button first, then the flyer ---------- */
.hero-top { padding-top: 44px; }
.hero-top .hero-cta { margin-top: 0; }
.hero-top .flyer { margin-top: 32px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; border-radius: 12px; }
.btn-lg svg { width: 20px; height: 20px; }
.flyer img { width: 100% !important; height: auto !important; aspect-ratio: 810 / 1080; object-fit: cover; }
.footer-bottom .credit { color: var(--gold-light); font-weight: 600; }
.footer-bottom .credit:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .hero-top { padding-top: 28px; }
  .hero-top .hero-cta { flex-direction: column; gap: 10px; }
  .hero-top .hero-cta .btn { width: 100%; }
  .hero-top .flyer { margin-top: 22px; border-radius: 16px; }
}

/* ---------- RSVP (saved on the server) ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-done { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px; border-radius: 14px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.4); }
.rsvp-done .feature-ico { margin: 0; flex-shrink: 0; background: rgba(52,211,153,.15); color: #34d399; border-color: rgba(52,211,153,.4); }
.rsvp-done b { display: block; font-size: 17px; color: #fff; }
.rsvp-done p { color: var(--soft); font-size: 14px; margin: 2px 0 6px; }
