@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--paper:#26121b;--card:#39202b;--green:#fff3e1;--red:#ffcc90;--muted:#e0cabe;--line:#eabf9042;--gold:#e8b965;font-family:"DM Sans",sans-serif;color:var(--green);background:var(--paper)}
*,*::before,*::after{box-sizing:border-box}
body {
  margin: 0;
  background: radial-gradient(ellipse at 8% 16%, #752e392f, transparent 55%),
    radial-gradient(ellipse at 94% 74%, #b0763021, transparent 46%), #26121b;
}
[hidden]{display:none!important}
.shell{width:min(1160px,calc(100% - 72px));margin-inline:auto}
.top{background:linear-gradient(110deg,#30131c,#24121b);border-bottom:1px solid var(--line)}
.navbar{height:79px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font:700 22px "Playfair Display",Georgia,serif;white-space:nowrap}
.brand-icon{background:radial-gradient(circle at 32% 18%,#cf7968,#8e2938 60%,#541c25);color:#ffe5ac;border:1px solid #dfac72;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font:24px Georgia}
.brand small{display:block;font:700 10px "DM Sans",sans-serif;letter-spacing:.15em;margin-top:3px;color:var(--muted)}
nav{display:flex;align-items:center;gap:27px}nav a{color:inherit;text-decoration:none;font-weight:600;font-size:14px}
button,summary{cursor:pointer}button,input,textarea,select{font:inherit}button{font-weight:700}
.primary,.outline{border-radius:9px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.primary{border:1px solid #ffd29a;background:linear-gradient(155deg,#ffe3a7,#e7ac68);color:#401b20;box-shadow:0 4px 18px #16091642}.primary:hover{background:#ffe5ac}
.outline{border:1px solid #e6b98a80;background:transparent;color:var(--green)}.outline:hover{background:#ffffff18}
.small{padding:9px 13px;font-size:14px}
:focus-visible{outline:3px solid #bd761d;outline-offset:3px}
a{color:var(--red)}
.hero {
  min-height: 490px; margin-top: 26px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; border-radius: 28px; color: #fff4e5;
  border: 1px solid #efc58b61; box-shadow: 0 16px 48px #11050d66;
  background: linear-gradient(90deg, #1d0914 0%, #290c1aed 29%, transparent 63%),
    url('/navidad.webp') right center / auto 112% no-repeat, #1d0914;
}
.hero-copy{max-width:58%;padding:48px 22px 48px clamp(26px,5vw,74px);position:relative;z-index:1}
.eyebrow,.section-label{font-size:13px;font-weight:700;letter-spacing:.17em}
.eyebrow{color:#f1cc83;margin:0 0 15px;display:flex;align-items:center;gap:8px}.eyebrow span{font-size:20px}
h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:"Playfair Display",Georgia,serif}
h1{font-weight:600;overflow-wrap:anywhere;font-size:clamp(48px,6vw,84px);line-height:.99;letter-spacing:-.058em;margin-bottom:22px}
h1 em{color:#f3c97f;font-weight:500}
.hero-description{font-size:17px;line-height:1.6;color:#f1ebdd;max-width:365px;margin-bottom:23px}
.hero-button{background:#f4d08c;color:#253d33;padding:13px 17px}.hero-button:hover{background:#ffdf9e}.hero-button span{color:#70363a}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 30px}
.steps article,.panel{background:linear-gradient(140deg,#71425055,#43263199 55%,#31202acc);border:1px solid var(--line);border-radius:15px}
.steps article,.panel-header{display:flex;align-items:center;gap:13px}.steps article{padding:16px}
.step-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:11px;font-size:24px}.green{background:#e8eee5;color:#365a44}.rose{background:#f4e5e1;color:#9f3c41}.gold{background:#f7edda;color:#8a5e22}
.steps h2{font-size:18px;margin:0 0 3px}.steps p,.muted{color:var(--muted);margin-bottom:0}.steps p{font-size:14px}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.panel{padding:22px;min-width:0}
.panel-header{margin-bottom:17px}.panel h2,.panel h3{font-size:25px;margin-bottom:4px}.panel h3{font-size:23px}
.status{background:#150c164d;padding:12px;border-radius:8px;margin-bottom:12px;color:var(--muted)}
footer{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-block:19px;margin-top:32px;color:var(--muted);font-size:14px}
.workspace{margin-bottom:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-label{color:var(--red);margin-bottom:6px}.section-heading h2{font-size:29px}
form{display:grid;gap:12px;margin-top:15px}form button{justify-self:start}
label{display:grid;gap:5px;font-size:14px;font-weight:700}
input,textarea,select{width:100%;border:1px solid #efd3b369;border-radius:8px;padding:10px;background:#23121fe6;color:var(--green);font-size:16px}
textarea{min-height:76px;resize:vertical}summary{font-weight:700;color:var(--red);margin-top:16px}
.entry{margin:10px 0;padding:11px 12px;background:#190f1870;border-radius:8px;overflow-wrap:anywhere}
.entry p{white-space:pre-wrap;margin:4px 0}.entry small{display:block;color:var(--muted);margin-top:4px}.entry img{display:block;max-width:100%;max-height:210px;margin-top:8px;border-radius:6px}.entry button{display:block;margin-top:7px}
#people{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.chip{background:#59404b;padding:5px 9px;border-radius:20px;font-size:14px}
dialog{border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#784d5cd9,#351e2bed 55%,#452835e8);color:var(--green);width:min(450px,calc(100% - 28px));padding:24px}
dialog::backdrop{background:#10040d85}dialog h2{font-size:29px;margin:0 30px 8px 0}.close{position:absolute;right:13px;top:10px;background:none;border:0;color:inherit;font-size:27px}#dialog-feedback:empty{display:none}#dialog-feedback{margin:12px 0 0}
#toast{position:fixed;bottom:18px;right:18px;background:#492636;color:white;padding:12px 17px;border-radius:8px;max-width:calc(100vw - 36px);z-index:2}
@media(max-width:850px){.shell{width:calc(100% - 36px)}.hero-copy{padding-left:31px}.steps article{padding:12px;gap:9px}.steps h2{font-size:16px}}

nav span { display: none; }
.chip, .section-heading h2 { overflow-wrap: anywhere; }
@media (max-width: 640px), (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
  body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      calc(72px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  html { scroll-padding-block: 14px calc(76px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 28px); }
  .navbar { height: 62px; }
  .brand { font-size: 19px; }
  .brand-icon { width: 36px; height: 36px; }
  nav {
    position: fixed; inset: auto 0 0; z-index: 3;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    padding: 4px env(safe-area-inset-right) calc(4px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    background: var(--card); border-top: 1px solid var(--line);
  }
  nav a, nav .small {
    display: grid; place-content: center; justify-items: center; gap: 1px;
    min-height: 48px; border: 0; padding: 2px; font-size: 13px; line-height: 1.2;
  }
  nav span { display: block; font: 20px/1 Georgia, serif; color: var(--red); }
  .hero {
    margin-top: 12px; display: flex; align-items: flex-end; min-height: 0; border-radius: 22px;
    background: linear-gradient(0deg,#210e19 16%,#260e1bf0 42%,transparent 66%),
      url('/navidad.webp') right top / auto 75% no-repeat, #210e19;
  }
  .hero-copy { max-width: 100%; width: 100%; padding: clamp(175px,49vw,245px) 22px 24px; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  h1 { font-size: clamp(42px, 11.5vw, 64px); margin-bottom: 17px; }
  .hero-description { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
  .hero-button, form button { width: 100%; }
  .steps, .columns { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 0; margin: 14px 0 24px; border-block: 1px solid var(--line); }
  .steps article { padding: 10px 4px; gap: 12px; border: 0; border-radius: 0; background: transparent; }
  .steps article + article { border-top: 1px solid var(--line); }
  .steps h2 { font-size: 17px; }
  .panel { padding: 16px; }
  .section-heading > div, form, label, input, select { min-width: 0; }
  .section-heading .small { flex-shrink: 0; }
  button, summary, input, select { min-height: 44px; }
  .entry a, #dialog-feedback a { display: inline-flex; align-items: center; min-height: 44px; }
  summary { padding-block: 12px; }
  dialog {
    position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; margin: 0;
    max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    padding: 24px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .close { width: 44px; }
  #toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
  footer { flex-wrap: wrap; }
}
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; left: 64%; top: 18%; width: 12px; height: 12px; color: #ffdfa8; animation: glimmer 4.8s ease-in-out infinite alternate; }
.sparkles i::before { content: '✦'; font: 18px/1 Georgia, serif; text-shadow: 0 0 10px #ffbb58; }
.sparkles i:nth-child(2) { left: 85%; top: 32%; animation-delay: -3s; }
.sparkles i:nth-child(3) { left: 54%; top: 71%; animation-delay: -2s; }
.sparkles i:nth-child(4) { left: 91%; top: 65%; animation-delay: -4s; }
.sparkles i:nth-child(5) { left: 37%; top: 8%; animation-delay: -1s; }
@keyframes glimmer { from { opacity: .18; transform: scale(.6); } to { opacity: .92; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .sparkles i { animation: none; opacity: .6; } }
dialog, #wish-form, #message-form {
  -webkit-backdrop-filter: blur(20px) saturate(130%); backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px #ffe6bd55, 0 16px 48px #13081144;
}
dialog::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog { border-color: #ffd9a788; }
dialog h2 { line-height: 1.15; }
dialog p { line-height: 1.5; }
#code-help { font-size: 14px; }
#recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
#recent-list a, .home-enter { text-decoration: none; }
#recent-list a { overflow-wrap: anywhere; }
#recent-list { margin-top: 10px; }
.home-enter { text-align: center; }
#share, #organize { margin-block: 3px; }
#wish-form, #message-form {
  padding: 16px; border-radius: 15px; border: 1px solid var(--line);
  background: linear-gradient(145deg,#97616d51,#422434a6);
}
input::placeholder, textarea::placeholder { color: #c2a8b3; }
#toast { border: 1px solid var(--line); }
dialog form [role=status]:empty { display: none; }
@media (max-width: 640px) {
  nav { background: #381c2ae8; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .home-enter { max-width: 118px; font-size: 12px; padding: 7px 10px; min-height: 44px; }
  .sparkles i:nth-child(3), .sparkles i:nth-child(4) { top: 23%; }
}
