:root {
  color-scheme: light;
  --ink: #15171d;
  --muted: #687080;
  --line: rgba(24, 28, 36, 0.12);
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --brand: #0f766e;
  --brand-deep: #0b4f4a;
  --blue: #246bfe;
  --berry: #b4233c;
  --gold: #c28a2c;
  --danger: #c64040;
  --shadow: 0 24px 70px rgba(30, 44, 70, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(180, 35, 60, 0.12), transparent 34%),
    linear-gradient(180deg, #fffaf2 0%, #f6f7fb 44%, #eef7f5 100%);
}

html {
  scroll-behavior: smooth;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.snowfall {
  position: absolute;
  inset: -15vh 0 0;
  pointer-events: none;
  opacity: 0.78;
  background-repeat: repeat;
  animation-name: snow-drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.snow-near {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 2px, transparent 2.8px),
    radial-gradient(circle, rgba(255,255,255,0.8) 0 1.5px, transparent 2.3px);
  background-size: 96px 112px, 142px 156px;
  animation-duration: 14s;
}

.snow-mid {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.82) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.68) 0 1px, transparent 1.6px);
  background-size: 130px 160px, 190px 220px;
  animation-duration: 22s;
  animation-delay: -7s;
}

.snow-far {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.58) 0 1px, transparent 1.5px);
  background-size: 84px 120px;
  animation-duration: 32s;
  animation-delay: -12s;
  opacity: 0.55;
}

@keyframes snow-drift {
  from {
    transform: translate3d(0, -12vh, 0);
    background-position: 0 0, 0 0;
  }

  to {
    transform: translate3d(28px, 112vh, 0);
    background-position: 80px 420px, -60px 360px;
  }
}

.christmas-wash {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,0.86) 1.2px, transparent 1.8px),
    radial-gradient(circle at 88px 64px, rgba(15,118,110,0.16) 1px, transparent 1.7px),
    radial-gradient(circle at 140px 26px, rgba(180,35,60,0.14) 1px, transparent 1.8px);
  background-size: 170px 150px;
  opacity: 0.72;
}

.ribbon {
  position: absolute;
  width: 72vw;
  height: 32vh;
  border-radius: 8px;
  opacity: 0.72;
  filter: blur(1px);
  transform: rotate(-10deg);
}

.ribbon-a {
  top: 10vh;
  right: -24vw;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.22), rgba(194, 138, 44, 0.06), rgba(255, 255, 255, 0));
}

.ribbon-b {
  left: -28vw;
  bottom: 3vh;
  background: linear-gradient(90deg, rgba(180, 35, 60, 0.14), rgba(255, 255, 255, 0));
}

.pine-line {
  position: absolute;
  width: 230px;
  height: 230px;
  opacity: 0.14;
  background:
    linear-gradient(135deg, transparent 48%, var(--brand) 49% 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, var(--brand) 49% 51%, transparent 52%);
}

.pine-a {
  right: 7vw;
  top: 18vh;
  transform: rotate(8deg);
}

.pine-b {
  left: 5vw;
  bottom: 13vh;
  transform: rotate(-12deg);
}

.snow-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--blue));
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
  font-weight: 800;
}

.privacy-pill,
.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  font-size: 13px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 36px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 22px 0 54px;
}

.holiday-landing {
  align-items: start;
  padding-top: 42px;
}

.holiday-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid rgba(180,35,60,0.18);
  border-radius: 8px;
  color: var(--berry);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 12px 30px rgba(180,35,60,0.08);
  backdrop-filter: blur(16px);
  font-weight: 780;
}

.hero-actions,
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(15,118,110,0.16);
  border-radius: 8px;
  color: var(--brand-deep);
  background: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 740;
}

.hero-copy h1,
.participant-view h1,
.error-panel h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 630px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.setup-form,
.panel,
.sidebar,
.reveal-panel,
.error-panel,
.loading-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.setup-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-top: 30px;
  padding: 18px;
}

.split,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.82);
  outline: none;
  padding: 11px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(36, 107, 254, 0.58);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.12);
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--brand));
  box-shadow: 0 18px 34px rgba(180, 35, 60, 0.18);
  font-weight: 760;
}

.secondary-button {
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  font-weight: 690;
}

.text-button {
  margin-top: 14px;
  padding: 0;
  color: var(--brand-deep);
  background: transparent;
  font-weight: 720;
}

.icon-button {
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.danger {
  color: var(--danger);
}

.full {
  width: 100%;
}

.spaced {
  margin-top: 10px;
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.moon-card {
  position: absolute;
  top: 34px;
  right: 7%;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: 154px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 24px 60px rgba(30,44,70,0.16);
  backdrop-filter: blur(18px);
  animation: float-card 5s ease-in-out infinite;
}

.moon-card span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8dd 0 36%, #f4c76f 37% 70%, transparent 71%),
    var(--gold);
  box-shadow: 0 0 28px rgba(244,199,111,0.42);
}

.moon-card strong {
  margin-top: 3px;
  font-size: 18px;
}

.moon-card small {
  color: var(--muted);
  line-height: 1.25;
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.device-frame {
  width: min(390px, 100%);
  min-height: 560px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.35));
  box-shadow: 0 40px 90px rgba(20, 30, 50, 0.2);
  animation: device-glow 7s ease-in-out infinite;
}

@keyframes device-glow {
  0%, 100% {
    box-shadow: 0 40px 90px rgba(20, 30, 50, 0.2);
  }

  50% {
    box-shadow: 0 44px 110px rgba(180, 35, 60, 0.16);
  }
}

.status-strip {
  display: flex;
  gap: 7px;
  padding: 6px 0 22px;
}

.status-strip span {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(21,23,29,0.28);
}

.preview-card {
  display: grid;
  gap: 18px;
  min-height: 472px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(180,35,60,0.08), rgba(15,118,110,0.08)),
    rgba(255,255,255,0.76);
}

.preview-card h2 {
  margin: 0;
  font-size: 36px;
}

.ornament-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ornament-line i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: inset 0 4px 8px rgba(255,255,255,0.35), 0 10px 22px rgba(180,35,60,0.2);
  animation: ornament-swing 2.8s ease-in-out infinite;
}

.ornament-line i:nth-child(2) {
  background: var(--brand);
  animation-delay: -0.8s;
}

.ornament-line i:nth-child(3) {
  background: var(--gold);
  animation-delay: -1.6s;
}

@keyframes ornament-swing {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--brand-deep);
  background: rgba(15,118,110,0.1);
  font-size: 13px;
  font-weight: 760;
}

.preview-tag .icon {
  width: 15px;
  height: 15px;
}

.mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-list span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.74);
  font-weight: 700;
}

.draw-pulse {
  align-self: end;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--brand));
  box-shadow: 0 18px 40px rgba(15,118,110,0.24);
}

.whatsapp-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}

.whatsapp-preview strong,
.whatsapp-preview span {
  display: block;
}

.whatsapp-preview span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.draw-pulse .icon {
  width: 46px;
  height: 46px;
}

.workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 18px;
}

.sidebar h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.05;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-list dd {
  margin: 0;
  font-weight: 760;
  text-align: right;
}

.main-panels {
  display: grid;
  gap: 18px;
}

.guide-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.64);
  box-shadow: 0 14px 34px rgba(30,44,70,0.08);
}

.guide-step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, rgba(104,112,128,0.8), rgba(104,112,128,0.55));
  font-weight: 800;
}

.guide-step strong,
.guide-step small {
  display: block;
}

.guide-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.guide-step.active {
  border-color: rgba(180,35,60,0.34);
  background: rgba(255,255,255,0.82);
}

.guide-step.active span,
.guide-step.done span {
  background: linear-gradient(135deg, var(--berry), var(--brand));
}

.guide-step.done {
  border-color: rgba(15,118,110,0.22);
}

.panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading.compact {
  margin-bottom: 12px;
}

.panel h2,
.draw-section h2 {
  margin: 0;
  font-size: 23px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(160px, 1fr) 44px;
  gap: 10px;
  margin-bottom: 16px;
}

.participant-inline-form {
  grid-template-columns: 1fr 1fr 44px;
}

.import-box {
  margin: -4px 0 16px;
  border: 1px solid rgba(15,118,110,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.58);
}

.import-box summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--brand-deep);
  font-weight: 760;
  list-style: none;
}

.import-box summary::-webkit-details-marker {
  display: none;
}

.import-form {
  display: grid;
  gap: 12px;
  padding: 0 13px 13px;
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.import-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.import-preview div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
}

.import-preview strong,
.import-preview span {
  display: block;
}

.import-preview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.person-card,
.rule-row,
.assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.64);
}

.person-card strong,
.person-card span {
  display: block;
}

.person-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.person-card small {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--berry);
  background: rgba(180,35,60,0.08);
  font-size: 12px;
  font-weight: 760;
}

.person-card.ready small,
.person-card small.ok,
.message-status.ready {
  color: var(--brand-deep);
  background: rgba(15,118,110,0.1);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules-list,
.assignments,
.message-list {
  display: grid;
  gap: 8px;
}

.panel-copy {
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.local-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -4px 0 14px;
  padding: 11px;
  border: 1px solid rgba(194,138,44,0.2);
  border-radius: 8px;
  color: #7a5315;
  background: rgba(194,138,44,0.1);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.draw-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(180, 35, 60, 0.94), rgba(15, 118, 110, 0.94)),
    #0f766e;
  box-shadow: var(--shadow);
}

.draw-section p {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255,255,255,0.8);
}

.draw-section .eyebrow {
  color: rgba(255,255,255,0.76);
}

.draw-section .primary-button {
  color: var(--ink);
  background: white;
  box-shadow: none;
}

.privacy-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(15,118,110,0.1), rgba(255,255,255,0.72)),
    var(--panel);
}

.privacy-proof h2,
.privacy-proof p {
  margin: 0;
}

.privacy-proof p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.seal-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--berry));
  box-shadow: 0 18px 44px rgba(15,118,110,0.18);
}

.seal-mark .icon {
  width: 34px;
  height: 34px;
}

.assignment-row strong {
  color: var(--brand-deep);
}

.whatsapp {
  color: #128c4a;
}

.message-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.64);
}

.message-card strong {
  display: block;
  margin-bottom: 6px;
}

.message-status {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--berry);
  background: rgba(180,35,60,0.08);
  font-size: 12px;
  font-weight: 760;
}

.message-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: pre-line;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-view,
.error-panel,
.loading-panel {
  display: grid;
  place-items: center;
  width: min(980px, calc(100% - 32px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
}

.reveal-panel,
.error-panel,
.loading-panel {
  width: min(760px, 100%);
  padding: 24px;
}

.recipient-name {
  margin: 20px 0;
  font-size: clamp(54px, 12vw, 112px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--berry), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-stage {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(180,35,60,0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(180,35,60,0.08), rgba(15,118,110,0.08)),
    rgba(255,255,255,0.66);
}

.reveal-stage.revealed {
  justify-items: stretch;
  text-align: left;
}

.reveal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--brand));
  box-shadow: 0 18px 48px rgba(180,35,60,0.22);
  cursor: pointer;
  font-size: 17px;
  font-weight: 820;
  animation: reveal-pulse 1.9s ease-in-out infinite;
}

.reveal-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 42%;
  transform: rotate(18deg);
  background: rgba(255,255,255,0.28);
  animation: reveal-shine 2.4s ease-in-out infinite;
}

.reveal-button .icon {
  width: 22px;
  height: 22px;
}

@keyframes reveal-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes reveal-shine {
  0% {
    left: -40%;
  }

  65%, 100% {
    left: 125%;
  }
}

.acceptance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(180,35,60,0.18);
  border-radius: 8px;
  background: rgba(180,35,60,0.07);
}

.acceptance-panel.accepted {
  border-color: rgba(15,118,110,0.22);
  background: rgba(15,118,110,0.08);
}

.acceptance-panel strong,
.acceptance-panel p {
  display: block;
  margin: 0;
}

.acceptance-panel p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.wish-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.66);
}

.wish-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.participant-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.participant-block h2 {
  margin: 0;
  font-size: 22px;
}

.wishlist-simple {
  display: grid;
  gap: 16px;
}

.wishlist-title {
  align-items: flex-start;
}

.section-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.completion-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(180,35,60,0.16);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(180,35,60,0.08);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.completion-pill.ready {
  border-color: rgba(15,118,110,0.2);
  color: var(--brand-deep);
  background: rgba(15,118,110,0.1);
}

.wishlist-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wishlist-guide .guide-step {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
}

.wishlist-guide .guide-step span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--brand));
  font-size: 13px;
  font-weight: 900;
}

.wishlist-guide .guide-step strong {
  display: block;
  margin-bottom: 5px;
}

.wishlist-guide .guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.wishlist-profile {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 16px 42px rgba(21,23,29,0.08);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chips button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(15,118,110,0.16);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(15,118,110,0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.suggestion-chips button:hover {
  border-color: rgba(15,118,110,0.32);
  background: rgba(15,118,110,0.13);
}

.soft-details {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(21,23,29,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.46);
}

.soft-details summary {
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 780;
  cursor: pointer;
}

.soft-details > :not(summary) {
  margin: 0 12px 12px;
}

.simple-link-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15,118,110,0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,118,110,0.08), rgba(180,35,60,0.06)),
    rgba(255,255,255,0.62);
}

.simple-link-panel h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.simple-gift-form {
  align-items: end;
}

.simple-gift-form .link-field {
  grid-column: 1 / -1;
}

.advanced-gift-options {
  grid-column: 1 / -1;
}

.advanced-gift-options[open] {
  display: grid;
  gap: 10px;
}

.own-gifts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--ink);
}

.own-gifts-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.gift-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form .secondary-button {
  justify-self: start;
}

.gift-form textarea,
.gift-form .primary-button,
.gift-form .secondary-button {
  grid-column: 1 / -1;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gift-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
}

.gift-card.reserved {
  border-color: rgba(15,118,110,0.34);
  box-shadow: 0 12px 30px rgba(15,118,110,0.1);
}

.gift-image {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  color: var(--brand-deep);
  background:
    linear-gradient(135deg, rgba(180,35,60,0.08), rgba(15,118,110,0.12)),
    rgba(255,255,255,0.66);
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-image.empty-image {
  color: var(--muted);
}

.gift-image .icon {
  width: 38px;
  height: 38px;
}

.gift-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.gift-body strong {
  line-height: 1.2;
}

.gift-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gift-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.reserve-button {
  color: var(--brand-deep);
}

.question-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
}

.question-card strong {
  line-height: 1.3;
}

.question-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.answer-form {
  display: grid;
  gap: 8px;
}

.answer-form .secondary-button {
  justify-self: start;
}

.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(180,35,60,0.14);
  border-radius: 8px;
  color: var(--berry);
  background: rgba(180,35,60,0.08);
  font-weight: 720;
}

.participant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.participant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 10;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  color: white;
  background: rgba(21, 23, 29, 0.82);
  box-shadow: 0 20px 48px rgba(21,23,29,0.22);
  backdrop-filter: blur(18px);
  font-weight: 720;
}

@media (max-width: 860px) {
  .hero-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    min-height: auto;
  }

  .device-frame {
    min-height: 420px;
  }

  .preview-card {
    min-height: 340px;
  }

  .moon-card {
    position: relative;
    top: auto;
    right: auto;
    justify-self: end;
    margin-bottom: -34px;
  }

  .sidebar {
    position: static;
  }

  .inline-form,
  .split,
  .form-grid,
  .guide-panel,
  .wishlist-guide,
  .gift-form {
    grid-template-columns: 1fr;
  }

  .inline-form .icon-button {
    width: 100%;
  }

  .draw-section,
  .panel-heading,
  .wishlist-title,
  .acceptance-panel,
  .privacy-proof {
    align-items: stretch;
    flex-direction: column;
  }

  .seal-mark {
    width: 100%;
  }

  .import-actions {
    flex-direction: column;
  }

  .import-actions button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    width: min(100% - 20px, 1160px);
  }

  .privacy-pill {
    display: none;
  }

  .hero-grid,
  .workspace,
  .participant-view,
  .error-panel,
  .loading-panel {
    width: min(100% - 20px, 1160px);
  }

  .hero-copy h1,
  .participant-view h1,
  .error-panel h1 {
    font-size: 40px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .moon-card {
    justify-self: stretch;
    width: 100%;
    margin-bottom: 10px;
  }

  .setup-form,
  .panel,
  .sidebar,
  .reveal-panel {
    padding: 14px;
  }

  .person-card,
  .rule-row,
  .assignment-row,
  .message-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
  }

  .card-actions .icon-button {
    flex: 1;
  }

  .message-actions {
    width: 100%;
    flex-direction: column;
  }

  .message-actions .secondary-button {
    width: 100%;
  }

  .bulk-actions .primary-button,
  .bulk-actions .secondary-button {
    width: 100%;
  }

  .gift-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gift-actions .secondary-button,
  .gift-actions .icon-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
