:root {
  --bg-top: #071e14;
  --bg-mid: #0e3323;
  --bg-bottom: #174631;
  --card-bg: #fffdf8;
  --surface-soft: #f7efe2;
  --border: #e6d8c3;
  --border-strong: #d3be9c;
  --text: #1c241f;
  --muted: #5d645c;
  --red: #b91c1c;
  --red-hover: #991b1b;
  --green: #166534;
  --green-hover: #14532d;
  --gold: #c89635;
  --gold-light: #f7d983;
  --error: #991b1b;
  --error-bg: #fef2f2;
  --radius: 22px;
  --shadow: 0 30px 70px rgba(3, 14, 9, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 217, 131, 0.2), transparent 44%),
    radial-gradient(circle at 12% 28%, rgba(185, 28, 28, 0.24), transparent 44%),
    radial-gradient(circle at 88% 70%, rgba(185, 28, 28, 0.16), transparent 42%),
    linear-gradient(175deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
  color: var(--text);
  line-height: 1.55;
  padding: 2.5rem 1.25rem 4.5rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft falling snow */
.snow-layer {
  position: fixed;
  inset: -100vh 0 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}

.snow-back {
  background-image:
    radial-gradient(2px 2px at 24px 40px, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 110px 140px, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 190px 80px, rgba(255, 255, 255, 0.45) 50%, transparent 100%),
    radial-gradient(2px 2px at 260px 210px, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  background-size: 300px 280px;
  animation: snowfall 24s linear infinite;
}

.snow-front {
  background-image:
    radial-gradient(3.5px 3.5px at 60px 70px, rgba(255, 255, 255, 0.68) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 170px 190px, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(4px 4px at 290px 110px, rgba(255, 255, 255, 0.48) 50%, transparent 100%);
  background-size: 360px 320px;
  animation: snowfall 15s linear infinite;
}

@keyframes snowfall {
  from { transform: translateY(0); }
  to { transform: translateY(100vh); }
}

/* Christmas string lights */
.festive-lights {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 0.75rem;
  pointer-events: none;
  z-index: 2;
}

.festive-lights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0b291c, #174631, #0b291c);
  border-bottom: 1.5px solid rgba(247, 217, 131, 0.38);
}

.festive-lights span {
  width: 11px;
  height: 16px;
  border-radius: 50% 50% 55% 55%;
  margin-top: 6px;
  animation: twinkle 2.8s ease-in-out infinite;
}

.festive-lights span:nth-child(even) {
  margin-top: 12px;
}

.festive-lights span:nth-child(3n+1) {
  background: radial-gradient(circle at 35% 35%, #fff7d6, #f7d983 60%, #c89635);
  box-shadow: 0 0 18px 5px rgba(247, 217, 131, 0.78);
}

.festive-lights span:nth-child(3n+2) {
  background: radial-gradient(circle at 35% 35%, #fecaca, #ef4444 60%, #991b1b);
  box-shadow: 0 0 18px 5px rgba(239, 68, 68, 0.72);
  animation-delay: 0.9s;
}

.festive-lights span:nth-child(3n) {
  background: radial-gradient(circle at 35% 35%, #d1fae5, #34d399 60%, #059669);
  box-shadow: 0 0 18px 5px rgba(52, 211, 153, 0.65);
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.88); }
}

/* Layered Christmas pine forest & snowdrift horizon */
.pine-horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pine-tree {
  position: absolute;
  bottom: 12px;
  width: 160px;
  height: 185px;
  background: linear-gradient(180deg, #0b2d1f 0%, #061b12 100%);
  clip-path: polygon(
    50% 0%,
    68% 28%, 58% 28%,
    78% 58%, 65% 58%,
    90% 92%, 10% 92%,
    35% 58%, 22% 58%,
    42% 28%, 32% 28%
  );
  opacity: 0.72;
}

.pine-tree.p1 { left: -24px; transform: scale(1.1); }
.pine-tree.p2 { left: 90px; bottom: 4px; transform: scale(0.78); opacity: 0.52; }
.pine-tree.p3 { left: 210px; bottom: 0; transform: scale(0.62); opacity: 0.4; }
.pine-tree.p4 { right: 200px; bottom: 0; transform: scale(0.68); opacity: 0.42; }
.pine-tree.p5 { right: 82px; bottom: 6px; transform: scale(0.85); opacity: 0.56; }
.pine-tree.p6 { right: -22px; transform: scale(1.15); }

.snow-drift {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -48px;
  height: 82px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at center, rgba(255, 253, 248, 0.22) 0%, rgba(255, 253, 248, 0.08) 70%, transparent 100%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.nav-pill {
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(247, 217, 131, 0.28);
  color: rgba(255, 253, 248, 0.85);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-pill:hover {
  background: rgba(255, 253, 248, 0.18);
  color: #ffffff;
}

.nav-pill.active {
  background: var(--gold-light);
  color: var(--bg-top);
  border-color: var(--gold-light);
}

.header {
  text-align: center;
  margin-bottom: 1.85rem;
}

.ribbon {
  display: inline-block;
  padding: 0.36rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, #991b1b 100%);
  border: 1px solid rgba(247, 217, 131, 0.65);
  color: #fff9eb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

h1 {
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-size: clamp(2.9rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5rem;
  color: #fffdf8;
  text-shadow: 0 4px 26px rgba(247, 217, 131, 0.34);
}

h2 {
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.35rem;
  color: var(--red);
}

.subtitle {
  margin: 0 auto;
  max-width: 460px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.96rem;
}

.card {
  background: var(--card-bg);
  border: 1.5px solid rgba(247, 217, 131, 0.55);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red),
    var(--red) 10px,
    var(--gold-light) 10px,
    var(--gold-light) 16px,
    var(--green) 16px,
    var(--green) 26px
  );
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.event-fields,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form {
  margin-top: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label,
.add-form label,
.hint-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.38rem;
  color: var(--text);
}

input[type="text"],
input[type="password"],
input[type="url"],
select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder {
  color: #9ba099;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.14);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.input-group {
  display: flex;
  gap: 0.65rem;
}

.input-group input {
  flex: 1;
}

.hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.alert {
  margin-top: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(185, 28, 28, 0.22);
}

.participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.4rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
}

.participants-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.participants-list:not(:empty) {
  margin-bottom: 1rem;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--green);
}

.excl-chip {
  background: rgba(185, 28, 28, 0.06);
  border-color: rgba(185, 28, 28, 0.24);
  color: var(--red);
}

.chip-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.15rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.chip-remove:hover {
  color: var(--red);
}

.empty-state {
  text-align: center;
  padding: 1.4rem 1rem;
  margin-top: 0.25rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Exclusions */
.exclusions-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.exclusion-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.excl-sep {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.exclusions-list:not(:empty) {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.actions-split {
  flex-direction: row;
  flex-wrap: wrap;
}

.actions-split .btn {
  flex: 1 1 160px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.35);
  filter: brightness(1.04);
}

.btn-green {
  background: var(--green);
  color: #ffffff;
}

.btn-green:hover:not(:disabled) {
  background: var(--green-hover);
}

.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: #efe5d5;
}

.btn-whatsapp {
  background: #ffffff;
  color: var(--green);
  border-color: var(--green);
}

.btn-whatsapp:hover {
  background: var(--green);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.btn-danger-outline {
  background: #ffffff;
  color: var(--red);
  border-color: rgba(185, 28, 28, 0.35);
}

.btn-danger-outline:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.btn-sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.btn-link:hover {
  color: var(--red);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.result-header {
  margin-bottom: 1.25rem;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.link-person-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.link-person {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.14rem 0.58rem;
  border-radius: 999px;
}

.status-revealed {
  background: rgba(22, 101, 52, 0.12);
  color: var(--green);
}

.status-pending {
  background: rgba(200, 150, 53, 0.18);
  color: #8a6116;
}

.status-hint {
  background: rgba(185, 28, 28, 0.1);
  color: var(--red);
}

.link-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Admin dashboard */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.admin-top-actions {
  display: flex;
  gap: 0.45rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.15rem;
}

.admin-draws-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.draw-card-item {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.draw-card-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.draw-card-main:hover .draw-card-title {
  color: var(--green);
}

.draw-card-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.draw-card-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.draw-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.draw-card-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.admin-detail-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.detail-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--text);
}

.detail-notes {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.85rem;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.detail-toolbar {
  margin-top: 1rem;
}

.detail-links {
  margin-top: 1rem;
}

/* Reveal screen */
.card-reveal {
  padding: 1rem;
}

.reveal-frame {
  border: 1.5px solid rgba(200, 150, 53, 0.5);
  border-radius: 16px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcf6ea 100%);
}

.reveal-greeting {
  font-size: clamp(2.15rem, 6vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.reveal-meta {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green);
}

.reveal-notes {
  margin: 0 auto 0.85rem;
  max-width: 420px;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface-soft);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
}

.reveal-instruction {
  max-width: 380px;
  margin: 0 auto;
}

.reveal-box {
  margin: 1.5rem auto 0;
  padding: 1.75rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.08), rgba(200, 150, 53, 0.16));
  border: 1.5px solid rgba(185, 28, 28, 0.3);
  animation: popIn 0.3s ease-out;
}

.reveal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.reveal-name {
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-size: clamp(2.35rem, 7vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
}

.target-hint-box {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(185, 28, 28, 0.25);
  text-align: left;
}

.target-hint-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.target-hints-list,
.my-hints-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.my-hints-list:not(:empty) {
  margin-top: 0.9rem;
}

.hint-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  text-align: left;
}

.hint-card-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hint-card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.hint-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.hint-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hint-form {
  text-align: left;
}

.hint-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.reveal-footer {
  margin-top: 1.75rem;
}

.card-error {
  text-align: center;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 60;
}

.modal-card {
  background: var(--card-bg);
  border: 1.5px solid var(--gold-light);
  border-radius: 18px;
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--red);
}

.modal-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #ffffff;
  border: 1px solid rgba(247, 217, 131, 0.6);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 70;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .snow-layer,
  .festive-lights span {
    animation: none;
  }
}

@media (max-width: 560px) {
  body {
    padding: 2.25rem 0.9rem 3.5rem;
  }

  .card {
    padding: 1.35rem;
  }

  .field-row,
  .exclusion-controls {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }

  .link-item,
  .draw-card-item {
    flex-direction: column;
    align-items: stretch;
  }

  .link-actions,
  .draw-card-right {
    justify-content: flex-end;
  }
}
