@charset "UTF-8";

/* CAMBIA LOS COLORES AQUÍ. El resto del diseño utiliza estas variables. */
:root {
  --green: #174c3e;
  --ink: #253d34;
  --cream: #fbf8f0;
  --gold: #9a6b23;
  --line: #e5dfce;
  --muted: #62685c;
  --red: #a0334a;
  --mint: #e1f3e9;
  --peach: #ffecd9;
  --shadow: 0 10px 35px #38306c0b;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 5% 0%, #e6eee4 0, transparent 36%),
              radial-gradient(ellipse at 96% 4%, #fff0d1 0, transparent 28%), var(--cream);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--green); text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bc762d; outline-offset: 4px; }
[hidden] { display: none !important; }

/* ESTRUCTURA */
header {
  max-width: 1160px;
  margin: auto;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 750 26px/1.2 system-ui; }
.brand-icon { width: 45px; height: 45px; border-radius: 14px; }
.brand span { display: block; margin-top: 6px; font: 650 9px/1.4 system-ui; letter-spacing: 1.6px; color: var(--muted); }
.hello { font-size: 13px; color: var(--muted); white-space: nowrap; }
nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  gap: 7px;
  max-width: 1100px;
  margin: auto;
  padding: 9px;
  background: #fffdfbf5;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 4px 20px #39326508;
}
nav a { padding: 11px 22px; border-radius: 11px; color: var(--muted); text-decoration: none; font-size: 14px; min-height: 44px; text-align: center; }
nav a[aria-current] { background: var(--green); color: white; font-weight: 700; box-shadow: 0 4px 10px #5144a021; }
.updates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; max-width: 1100px; margin: 13px auto 0; padding: 0 8px; font-size: 12px; }
.updates a { text-decoration: none; padding: 5px 0; }
.updates a span { display: inline-block; color: #843b17; background: var(--peach); border-radius: 7px; font-weight: 700; }
.updates a span:not(:empty) { padding: 1px 6px; margin-left: 3px; }
#update-status:not(:empty) { flex-basis: 100%; color: var(--green); }
.connection-status { color: var(--muted); font-size: 11px; margin-left: auto; }
.connection-status.offline { color: #914122; font-weight: 600; }
main { max-width: 1160px; margin: auto; padding: 25px 30px 45px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid > * { min-width: 0; }
.card { padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: #fffefd; box-shadow: var(--shadow); margin-bottom: 24px; min-width: 0; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-heading { padding: 34px 4px 28px; max-width: 800px; }
.hero { position: relative; padding: 44px 12px 50px; text-align: center; overflow: hidden; }
.hero::before { content: "✧"; color: #c69a57; font-size: 38px; position: absolute; left: 12%; top: 48px; transform: rotate(-15deg); }
.hero::after { content: "✦"; color: #a89bd6; font-size: 22px; position: absolute; right: 14%; bottom: 65px; }
.hero p:not(.eyebrow) { max-width: 490px; margin: 17px auto 26px; color: var(--muted); }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 2px; margin: 0 0 13px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.16; font-weight: 500; }
h1 { font-size: clamp(37px, 5vw, 66px); letter-spacing: -1.7px; margin: 12px 0 23px; }
h2 { font-size: 29px; letter-spacing: -.5px; margin: 0 0 20px; }
h3 { font-size: 21px; margin: 25px 0 12px; }
.page-heading h1 { font-size: 48px; }
.seal { display: none; }
.muted { color: var(--muted); font-size: 13px; }
.centered { text-align: center; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* BOTONES Y FORMULARIOS */
.button, button {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 8px; min-height: 48px; padding: 13px 23px;
  background: var(--green); color: white; border: 1px solid var(--green);
  border-radius: 12px; font-size: 14px; font-weight: 700;
  line-height: 1.45; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.button:hover, button:hover { background: #103b30; }
.button:active, button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .65; }
.secondary { color: var(--green); background: #f1f5eb; border-color: #c9d5bf; }
.secondary:hover { color: var(--green); background: #e4eddc; }
.text-button { padding: 9px 0; border: 0; background: transparent; color: var(--green); text-decoration: underline; box-shadow: none; }
.text-button:hover { color: #3f327e; background: transparent; }
form:has(input[value="delete_post"]) .text-button,
form:has(input[value="delete_photo"]) .text-button { color: var(--red); font-size: 12px; }
label { display: block; font-size: 14px; font-weight: 650; margin: 0 0 21px; }
input, select, textarea { display: block; width: 100%; min-height: 49px; padding: 12px 14px; margin-top: 8px; border: 1px solid #bcb4d1; border-radius: 11px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; }
textarea::placeholder, input::placeholder { color: #746c86; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--green); }
textarea { resize: vertical; line-height: 1.6; }
input[type="file"] { max-width: 100%; padding: 10px; font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { width: 22px; min-height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--green); }
.check span { font-weight: 400; }
.notice, .alert { border-radius: 14px; padding: 18px 21px; margin-bottom: 22px; border: 1px solid #bcd9cb; background: #e7f5ed; color: #24553f; }
.alert { background: #fff0f1; border-color: #e6b6bf; color: #8a2c42; }
.inline-error { margin-top: 14px; font-size: 13px; }

/* GRUPO, PARQUE Y PERFILES */
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eeeaf5; }
.people li:last-child { border-bottom: 0; }
.avatar { flex-shrink: 0; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: #eee7ff; color: #5144a0; font: 700 17px system-ui; }
.people li:nth-child(3n+2) .avatar { background: var(--peach); color: #865119; }
.people li:nth-child(3n) .avatar { background: var(--mint); color: #245c43; }
.badge { margin-left: auto; border-radius: 7px; padding: 3px 8px; font-size: 10px; white-space: nowrap; background: #f1ecfa; color: #625a77; }
.badge.confirmed { background: #e1f3e9; color: #255b41; }
.badge.pending { background: #fff0d9; color: #775114; }
.profile-links { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; }
.profile-links a { min-height: 44px; padding: 9px 16px; border-radius: 12px; border: 1px solid #d8d0eb; text-decoration: none; font-size: 14px; background: #fffefd; }
.profile-photo { display: block; width: 100%; max-height: 450px; margin: 20px 0; border-radius: 15px; object-fit: contain; background: #f3effa; }
.social-profile { scroll-margin-top: 95px; }
.social-profile .profile-photo { max-height: 310px; }
.post-author { display: flex; align-items: center; gap: 12px; }
.post-author small { display: block; color: var(--muted); font-size: 11px; }
.post .multiline { font-size: 17px; line-height: 1.75; }

/* CONVERSACIONES Y AVISOS */
.conversation { max-height: 520px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.bubble { margin: 12px 22px 12px 0; padding: 15px 17px; border-radius: 15px 15px 15px 3px; background: #f2eef9; }
.bubble.mine { margin: 12px 0 12px 22px; border-radius: 15px 15px 3px 15px; background: #e4f2e9; }
.bubble p { margin: 7px 0; }
.bubble strong, .bubble small { font-size: 12px; }
.bubble small { color: var(--muted); }
.message-toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: flex; gap: 15px; align-items: center; max-width: 440px; border-radius: 15px; padding: 18px; background: #302653; color: #fff; box-shadow: 0 8px 30px #30265340; font-size: 13px; }
.message-toast a { color: #ffda9e; font-weight: 700; white-space: nowrap; }
.message-toast button { min-height: 36px; min-width: 32px; padding: 4px; font-size: 21px; border: 0; background: transparent; }
.alert-settings { padding: 3px 0 18px; }
.alert-settings .check { margin-top: 20px; }

/* SORTEO, PIE Y AYUDA */
.check-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.check-summary span { padding: 14px 5px; border-radius: 13px; background: #ede7ff; text-align: center; font-size: 11px; }
.check-summary span:nth-child(2) { background: #e1f3e9; }
.check-summary span:nth-child(3) { background: #fff0d9; }
.check-summary strong { display: block; font: 750 27px system-ui; margin-bottom: 5px; }
.sort-checks { width: 100%; border-collapse: collapse; font-size: 13px; }
.sort-checks th, .sort-checks td { padding: 11px 5px; text-align: left; border-bottom: 1px solid #ece7f3; }
.sort-checks th { font-size: 11px; color: var(--muted); }
.sort-checks td:not(:first-child), .sort-checks th:not(:first-child) { text-align: center; }
.status-ok { color: #256143; font-weight: 700; }
.hash { display: block; padding: 14px; border-radius: 10px; background: #f3eff9; overflow-wrap: anywhere; font-size: 13px; }
.reveal { list-style: none; padding: 0; }
.reveal li { display: flex; flex-wrap: wrap; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.reveal li span { font-size: 13px; color: var(--muted); }
.audit { padding-left: 17px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
details { margin-top: 24px; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--green); font-size: 13px; font-weight: 600; }
.shortcut-help { max-width: 680px; margin: 22px auto; padding: 0 8px; }
.shortcut-help li { margin: 12px 0; }
.shortcut-help ol { padding-left: 22px; }
footer { padding: 25px 20px 35px; text-align: center; font-size: 12px; color: var(--muted); line-height: 2; }
.creator { display: block; margin-top: 12px; font-size: 11px; }
.creator a { text-decoration: none; font-weight: 650; }
.creator a:hover { text-decoration: underline; }
.privacy { max-width: 780px; margin: 0 auto 35px; }

/* MÓVIL: navegación completa y campos cómodos sin desplazamiento horizontal. */
@media (max-width: 700px) {
  header { padding: 20px 16px; }
  .brand { font-size: 24px; gap: 9px; }
  .brand-icon { width: 38px; height: 38px; border-radius: 12px; }
  .brand span { font-size: 7px; letter-spacing: 1.2px; }
  .hello { font-size: 12px; }
  nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; border-radius: 0; border-left: 0; border-right: 0; padding: 7px 9px; }
  nav a { padding: 11px 1px; font-size: 11px; border-radius: 10px; }
  .updates { padding: 0 17px; margin-top: 10px; gap: 4px 15px; font-size: 11px; }
  .connection-status { flex-basis: 100%; margin-left: 0; }
  .connection-status:empty { display: none; }
  main { padding: 15px 16px 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card { border-radius: 18px; padding: 24px 20px; margin-bottom: 20px; }
  .hero { padding: 34px 2px 37px; }
  .hero h1 { font-size: clamp(37px, 10vw, 48px); }
  .hero::before { left: 0; top: 17px; font-size: 24px; }
  .hero::after { right: 0; bottom: 42px; font-size: 18px; }
  .page-heading { padding: 25px 3px 22px; }
  .page-heading h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  button { width: 100%; }
  .text-button { width: auto; }
  .people li { gap: 9px; }
  .badge { padding: 3px 7px; font-size: 9px; }
  .message-toast { right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; padding: 14px; gap: 10px; }
  .message-toast button { width: auto; flex-shrink: 0; }
  .sort-checks { font-size: 12px; }
  .sort-checks th, .sort-checks td { padding: 11px 3px; }
  .privacy { margin-left: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 360px) and (max-width: 700px) { nav a { font-size: 12px; } }
.recipient-name,.people strong{overflow-wrap:anywhere;min-width:0}
.recipient-dialog .recipient-name{font:500 43px/1.2 Georgia,serif;color:var(--green);margin:17px 0}
@media(max-width:700px){.recipient-dialog .recipient-name{font-size:38px}}
.person-profile{padding:10px 20px}.person-profile>summary{display:flex;align-items:center;gap:12px;min-height:58px}.person-profile>summary strong{font-size:17px;color:var(--ink)}.person-profile>summary::after{content:'+';margin-left:auto;font-size:21px;color:var(--gold)}.person-profile[open]>summary::after{content:'−'}.person-profile[open]>summary{border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:12px}.person-profile .profile-photo{max-height:320px}
/* NAVIDAD Y REYES: una estrella, un regalo y espacio para respirar. */
.phase-banner{display:flex;flex-direction:column;gap:3px;border:1px solid #d5b874;border-radius:12px;padding:11px 15px;margin:0 0 18px;background:#fff1cc;color:#68470d;font-size:11px;line-height:1.5}
.phase-banner strong{font-size:11px;letter-spacing:.3px}.phase-banner.real{background:#174c3e;border-color:#174c3e;color:#fff5da}.phase-banner span{opacity:.9}
.winter-hero{padding:13px 4px 22px;text-align:left}.winter-hero h1{font-size:45px;margin:8px 0 12px;letter-spacing:-1.4px}.winter-hero p:not(.eyebrow){margin:0;max-width:600px;font-size:15px}.winter-hero::before{content:'✦';left:auto;right:5px;top:12px;font-size:29px;color:#b69049}.winter-hero::after{display:none}
.game-card{max-width:760px}.game-card h2{font-size:28px}.game-card>p{margin:12px 0}.gift-button{width:100%;margin-top:16px;min-height:56px;background:#174c3e;color:#fff8e5}.reveal-date{padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.ready-count{display:flex;gap:12px;align-items:baseline}.ready-count strong{font-size:25px}.ready-count span{font-size:12px;color:var(--muted)}progress{width:100%;height:7px;margin:12px 0 22px;accent-color:#174c3e}
.compact-details,.reveal-card{padding-top:10px;padding-bottom:10px;max-width:760px}.compact-details summary,.reveal-card summary{font-size:14px;min-height:45px;justify-content:space-between}.compact-details summary::after,.reveal-card summary::after{content:'+';font-size:20px;color:var(--gold)}.compact-details[open] summary::after,.reveal-card[open] summary::after{content:'−'}
.park-invitation{display:block;padding:10px 2px 4px;font-size:14px;text-decoration:none;color:var(--green)}.recipient-dialog{border:1px solid #dac995;border-radius:25px;padding:35px 30px;max-width:440px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;background:#fffcf4;color:var(--ink);text-align:center;box-shadow:0 20px 80px #0b2d2555}.recipient-dialog::backdrop{background:#102e29b8;backdrop-filter:blur(4px)}.recipient-dialog h2{font-size:27px}.recipient-dialog form{display:flex;justify-content:flex-end;margin:-16px -12px 6px}.recipient-dialog .dialog-close{width:36px;min-height:36px;padding:0;border:0;background:transparent;color:var(--muted);font-size:25px}.gift-mark{font-size:50px;line-height:1.4;color:#a4752c}.recipient-name{font:500 43px/1.2 Georgia,serif;color:var(--green);margin:15px 0}.recipient-dialog>p:not(.eyebrow):not(.recipient-name){font-size:14px;color:var(--muted)}
.exclusion-list{list-style:none;padding:0}.exclusion-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:13px}.exclusion-list .text-button{font-size:12px}.wall-photo{width:100%;max-height:540px;object-fit:contain;border-radius:14px;margin:12px 0;background:#f4efe3}.composer details{margin:0 0 14px}.post-comments{border-top:1px solid var(--line);padding-top:6px}.post-comments summary{font-size:13px}.comment{padding:11px 12px;margin:9px 0;border-radius:11px;background:#f4f5ec;font-size:13px}.comment p{margin:5px 0}.comment small{color:var(--muted);font-size:10px}.post-comments textarea{min-height:70px}.post-comments label{font-size:12px}.post-comments form{margin-top:18px}
nav a[aria-current]{box-shadow:0 3px 10px #174c3e18}.avatar{background:#e3ecdc;color:#365238}.people li:nth-child(3n+2) .avatar{background:#fff0d6;color:#865119}.people li:nth-child(3n) .avatar{background:#e8e6f3;color:#585278}.hash{background:#f4efdf}.check-summary span{background:#e6eddc}.check-summary span:nth-child(2){background:#e9f1e7}.check-summary span:nth-child(3){background:#fff0d6}.message-toast{background:#163f35}.bubble{background:#f3eedf}.bubble.mine{background:#e3eddf}.profile-links a{border-color:#ddd6c0}.profile-photo{background:#f5efe0}.text-button:hover{color:#103b30}.brand span{letter-spacing:1.2px}
@media(min-width:900px){.winter-hero{padding:25px 4px 28px}.winter-hero h1{font-size:56px}.game-card,.compact-details,.reveal-card{max-width:760px;margin-left:auto;margin-right:auto}.winter-hero{max-width:760px;margin:auto}.park-invitation{max-width:760px;margin:auto}.phase-banner{max-width:760px;margin-left:auto;margin-right:auto}}
@media(max-width:700px){header{padding:15px 16px}.brand{font-size:22px}.brand-icon{width:35px;height:35px}.brand span{font-size:7px}.updates{margin-top:5px;font-size:10px;gap:3px 18px}.updates a{padding:2px 0}.updates .connection-status:empty{display:none}main{padding-top:12px}.phase-banner{margin-bottom:15px}.phase-banner span{font-size:10px}.winter-hero{padding-top:8px;padding-bottom:22px}.winter-hero h1{font-size:37px;padding-right:26px}.winter-hero p:not(.eyebrow){font-size:14px}.winter-hero .eyebrow{font-size:8px;letter-spacing:1.3px;max-width:90%}.game-card{padding:23px 20px}.game-card h2{font-size:26px}.game-card p{font-size:14px}.compact-details,.reveal-card{padding:9px 17px;margin-bottom:13px}.recipient-name{font-size:38px}.recipient-dialog{padding:30px 22px}.page-heading{padding:20px 2px}.page-heading h1{font-size:36px;margin:8px 0 12px}.page-heading p{font-size:14px}.composer{padding:22px 18px}.composer label{margin-bottom:12px}.post-comments button{min-height:43px}.check-summary strong{font-size:23px}}

/* Pasos cortos y una única acción principal para descubrir el resultado. */
.game-steps{list-style:none;padding:0;margin:0 auto 24px;max-width:760px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game-steps li{display:flex;gap:10px;align-items:flex-start;padding:15px 12px;background:#f0f2e9;border:1px solid #dce4d7;border-radius:14px}.game-steps li>span{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;background:#174c3e;color:#fff8e5;border-radius:50%;font-size:13px;font-weight:700}.game-steps strong{display:block;font-size:13px;line-height:1.5}.game-steps small{display:block;color:#52635b;font-size:12px;margin-top:3px;line-height:1.5}.practice-controls{border-top:1px solid #e1dccb;margin-top:20px;padding-top:8px}.practice-controls summary{font-size:13px}.practice-controls p{font-size:13px}.recipient-dialog [hidden]{display:none!important}.recipient-dialog #recipient-intro p,.recipient-dialog #recipient-result>p:not(.recipient-name){font-size:15px;line-height:1.7;color:#52635b}.recipient-dialog #recipient-result .recipient-name{font-size:46px;line-height:1.2;margin:18px 0;color:#174c3e;overflow-wrap:anywhere}.recipient-dialog #recipient-result h2{font-size:23px}.recipient-dialog .text-button{margin:16px auto 0;display:block;min-height:44px;font-size:14px}.recipient-dialog .button,.recipient-dialog #reveal-recipient{width:100%;min-height:54px;font-size:15px}.secret-envelope{width:130px;height:89px;margin:25px auto 30px;position:relative;border-radius:8px;background:#e9c77f;box-shadow:0 12px 22px #153f3618;overflow:hidden}.secret-envelope:before{content:'';position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 66%);background:#f6dfaa}.secret-envelope:after{content:'';position:absolute;inset:0;clip-path:polygon(0 100%,50% 44%,100% 100%);background:#dfb864}.secret-envelope span{position:absolute;z-index:1;left:calc(50% - 16px);top:38px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#174c3e;color:#fff3ca;font-size:19px}.is-opening .secret-envelope{animation:envelope-wait .35s ease-in-out 3 alternate}.result-star{display:block;font-size:52px;line-height:1.3;color:#b28435;margin:14px 0 18px}#recipient-result:not([hidden]){animation:result-arrives .4s ease-out}.reveal-wait{margin-bottom:0}.winter-hero h1{line-height:1.12}
@keyframes envelope-wait{from{transform:rotate(-4deg) translateY(0)}to{transform:rotate(4deg) translateY(-6px)}}@keyframes result-arrives{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.game-steps{grid-template-columns:1fr;gap:7px;margin-bottom:20px}.game-steps li{padding:10px 12px;align-items:center}.game-steps li>div{flex:1}.game-steps strong{font-size:14px}.game-steps small{font-size:12px;margin-top:0}.game-card .gift-button{font-size:16px}.phase-banner strong{font-size:12px}.phase-banner span{font-size:12px}.recipient-dialog #recipient-result .recipient-name{font-size:40px}.recipient-dialog{padding:28px 22px}.recipient-dialog h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.is-opening .secret-envelope,#recipient-result:not([hidden]){animation:none}}
