 /* --- Global Christmas Theme --- */

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

  /* The browser's default [hidden] rule loses to any author class that sets
     display (e.g. .pricing-options { display: flex }), so an element with
     both hidden and such a class stays visible. Force it to actually hide. */
  [hidden] {
    display: none !important;
  }

  .cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    width: 220px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(30, 130, 68, 0.95), rgba(18, 95, 50, 0.97));
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Segoe UI', sans-serif;
  }

  .cookie-banner p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-banner-link {
    color: #ffcc00;
    text-decoration: underline;
  }

  .cookie-banner-link:hover {
    color: #fff;
  }

  .cookie-banner-actions {
    display: flex;
    gap: 8px;
  }

  .cookie-banner-actions button {
    flex: 1;
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
  }

  .cookie-banner-reject {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .cookie-banner-reject:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .cookie-banner-accept {
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    color: #7a1f1f;
  }

  .cookie-banner-accept:hover {
    background: linear-gradient(135deg, #ffd93d, #ffaf3c);
  }

  body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #b71c1c, #d32f2f, #c62828);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

  /* --- Slot Machine --- */
  .slot {
    width: 500px;
    height: 60px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    text-align: center;
    font-size: 28px;
    margin-bottom: 0px;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
  }

  .reel {
    display: flex;
    flex-direction: column;
  }

  .name {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
  }

  input, button {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    margin: 5px;
  }

  input {
    background: #fff;
    color: #b71c1c;
    border: 2px solid #fff;
  }

  button {
    background: #fff;
    color: #b71c1c;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
  }

  button:hover {
    background: #ffe6e6;
    transform: scale(1.05);
  }

  /* Keyboard-accessible focus states */
  button:focus-visible,
  input:focus-visible,
  a:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
  }

  /* --- Snow Effect --- */
  .snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    user-select: none;
    animation: fall linear infinite;
    opacity: 0.9;
  }

  @keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
  }

  /* --- Notification Popup --- */
  .notification {
  position: fixed;
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 9999; /* ⬅️ Ensure this is higher than the modal */
  }

  .notification.show {
    opacity: 1;
    transform: translateY(0);
  }

  .notification-body {
    padding: 15px 20px;
    text-align: center;
  }

  .notification button {
   display: none; /* hide the old button */
  }
  .notification button:hover {
    background: #ffd6d6;
  }

  /* --- Large Info Modal --- */
  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 20;
  }

  .modal.show {
    opacity: 1;
    pointer-events: auto;
  }

  .report-frame {
    width: 90%;
    max-width: 440px;
    padding: 8px;
    border-radius: 20px;
    background: repeating-linear-gradient(45deg, #b71c1c, #b71c1c 8px, #ffcc00 8px, #ffcc00 12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }

  .modal-content-nice,
  .modal-content-naughty {
    position: relative;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .north-pole-stamp {
    position: absolute;
    top: 66px;
    right: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transform: rotate(-12deg);
    pointer-events: none;
  }

  .modal-content-nice {
    background: linear-gradient(135deg, rgba(30, 130, 68, 0.92), rgba(18, 95, 50, 0.95));
  }

  .modal-content-naughty {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9), rgba(120, 20, 20, 0.95));
  }

  .modal-content-nice h2,
  .modal-content-naughty h2 {
    margin: 0 0 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #ffcc00;
    text-shadow: 1px 1px #000;
  }

  .report-name {
    margin: 0 0 18px;
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 600;
  }

  .report-name.name-md {
    font-size: 17px;
  }

  .report-name.name-sm {
    font-size: 14px;
  }

  .report-review {
    font-size: 11px;
    font-style: italic;
    opacity: 0.85;
    margin: 0 0 18px;
  }

  .report-status {
    font-size: 16px;
    margin: 0 0 20px;
  }

  .report-status b {
    color: #ffcc00;
  }

  .report-notes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    font-size: 16px;
  }

  .report-notes.notes-md {
    font-size: 14px;
  }

  .report-notes.notes-sm {
    font-size: 12.5px;
  }

  .report-notes li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 11px;
    line-height: 1.4;
  }

  .report-notes li:last-child {
    margin-bottom: 0;
  }

  .report-notes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffcc00;
    font-weight: 700;
    font-size: 0.9em;
  }

  /* Naughty notes list things that should stop, not things that were done -
     a green tick reads as "well done", which is backwards here. */
  .modal-content-naughty .report-notes li::before {
    content: "✗";
  }

  .report-divider {
    height: 1px;
    margin: 0 0 18px;
    background: linear-gradient(to right, transparent, rgba(255, 204, 0, 0.5), transparent);
  }

  .report-message {
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.35;
  }

  .report-image {
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  }

  .personalize-cta-secondary {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    color: #7a1f1f;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.25s;
  }

  .personalize-cta-secondary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 14px rgba(255, 204, 0, 0.5);
  }

  .my-reports-mini-link {
    display: block;
    width: auto;
    margin: 0 auto 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
  }

  .my-reports-mini-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
  }

  .reports-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .reports-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 6px 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: #fff;
    transition: background 0.25s;
  }

  .reports-list-item:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .reports-list-item-main {
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 6px 0;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
  }

  /* Without this, the global button:hover rule's near-white background
     wins here (higher specificity than .reports-list-item-main alone
     doesn't cover :hover), making the white text unreadable on hover. */
  .reports-list-item-main:hover {
    background: none;
    transform: none;
  }

  .reports-list-item-delete {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
  }

  .reports-list-item-delete:hover {
    background: rgba(198, 40, 40, 0.7);
    transform: scale(1.08);
  }

  .reports-list-item-badge {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .reports-list-item-badge.nice {
    background: rgba(46, 125, 50, 0.7);
  }

  .reports-list-item-badge.naughty {
    background: rgba(198, 40, 40, 0.7);
  }

  .report-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /* .personalize-cta defaults to a full-width block button for its other
     standalone uses - scope it to flex-fit when paired with Close here. */
  .report-actions .personalize-cta {
    width: auto;
    flex: 1;
    margin-top: 0;
  }

  #shareReport {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  #shareReport:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .close-button {
    background: #c62828;
    color: #fff;
  }

  .modal-content-parents {
    background: linear-gradient(135deg, rgba(30, 130, 68, 0.92), rgba(18, 95, 50, 0.95));
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: #fff;
    padding: 22px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .modal-content-parents h2 {
    margin: 0 0 12px;
    font-size: 22px;
    text-align: center;
    color: #ffcc00;
    text-shadow: 1px 1px #000;
  }

  .modal-content-parents h4 {
    color: #ffcc00;
    margin: 14px 0 6px;
  }

  .modal-content-parents ul {
    margin: 0 0 10px;
    padding-left: 18px;
  }

  .modal-content-parents li {
    list-style: disc;
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .modal-content-parents p {
    margin: 0 0 8px;
    line-height: 1.35;
  }

  .parents-note {
    font-size: 13px;
    opacity: 0.85;
    font-style: italic;
  }

  .about-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
  }

  .about-link:hover {
    color: #fff;
  }

  .parents-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .parents-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    background: #ffcc00;
    color: #0b3d0b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, background 0.25s;
  }

  .parents-actions a:hover {
    transform: scale(1.03);
    background: #ffd93d;
  }

  .parents-actions a.naughty {
    background: #b71c1c;
    color: #fff;
  }

  .parents-actions a.naughty:hover {
    background: #d32f2f;
  }

  .parents-intro {
    line-height: 1.4;
    opacity: 0.95;
  }

  .personalize-cta {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    color: #7a1f1f;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.25s;
  }

  .personalize-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(255, 204, 0, 0.55);
  }

  .personalize-price {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    background: rgba(122, 31, 31, 0.15);
    border-radius: 999px;
    font-size: 13px;
  }

  .pricing-options {
    display: flex;
    gap: 12px;
    margin: 16px 0;
  }

  .pricing-option {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.25s, background 0.25s;
  }

  .pricing-option:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.14);
  }

  .pricing-option-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
  }

  .pricing-option-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 26px;
    font-weight: 600;
  }

  .pricing-option-desc {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
  }

  .pricing-option-best {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.28), rgba(255, 159, 28, 0.28));
    border: 1px solid #ffcc00;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.3);
  }

  .pricing-option-best:hover {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.4), rgba(255, 159, 28, 0.4));
  }

  .pricing-option-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    background: #ffcc00;
    color: #7a1f1f;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 999px;
    white-space: nowrap;
  }

  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
  }

  .auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s;
  }

  .auth-button:hover {
    transform: scale(1.02);
  }

  .auth-button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .auth-button-google {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
  }

  .auth-button-apple {
    background: #000;
    color: #fff;
    border-color: #000;
  }

  .personalize-field {
    margin-bottom: 12px;
  }

  .personalize-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #ffcc00;
  }

  .personalize-field input,
  .personalize-field select {
    width: 100%;
    text-align: left;
    font-size: 15px;
  }

  .list-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 16px;
  }

  .slider-label {
    font-size: 14px;
    font-weight: 600;
  }

  .slider-toggle {
    position: relative;
    display: inline-block;
  }

  .slider-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider-track {
    display: block;
    width: 52px;
    height: 28px;
    background: #b71c1c;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: background 0.25s;
    cursor: pointer;
  }

  .slider-thumb {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.25s;
  }

  .slider-toggle input:checked ~ .slider-track {
    background: #0b3d0b;
  }

  .slider-toggle input:checked ~ .slider-track .slider-thumb {
    transform: translateX(24px);
  }

  .slider-toggle input:focus-visible ~ .slider-track {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
  }

  #closeParentsModal,
  #closePersonalizeModal,
  #closeCheckoutModal {
    margin-top: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .candy-cane-bar {
  width: 100%;
  height: 12px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.candy-cane-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    45deg,
    #e53935,
    #e53935 6px,
    #fff 6px,
    #fff 12px
  );
  border-radius: 6px;
  transition: width 0.3s linear;
}

/* --- Header (Fixed, glassmorphism surface) --- */
.christmas-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 130, 68, 0.8), rgba(18, 95, 50, 0.85));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #b71c1c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 9999;
}

.christmas-header h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 17px;
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
  margin: 0;
  text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 255, 255, 0.35);
  z-index: 5;
}

.header-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 48px;
}

.header-accent {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: #ffcc00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.header-accent-top {
  align-self: flex-start;
  margin-bottom: -2px;
}

.header-accent-bottom {
  align-self: flex-end;
  margin-top: -2px;
}

/* Santa Sleigh Animation */
.santa-container {
  position: absolute;
  top: 10px;
  left: -120px;
  animation: flySleigh 16s linear infinite;
}

.santa-container img {
  width: auto;
  height: 30px;
  margin-right: 10px;
}

/* Animate sleigh flying across the screen. The container's own -120px
   base offset eats into the vw-based end value disproportionately on
   narrow viewports (it was landing short of the edge on mobile) - calc()
   here guarantees it clears fully off-screen regardless of viewport
   width, rather than a plain vw value that only worked out on desktop. */
@keyframes flySleigh {
  0% { transform: translateX(-150px); }
  50% { transform: translateX(50vw); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

.naughty-nice-section {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30, 130, 68, 0.8), rgba(18, 95, 50, 0.85));
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.naughty-nice-section h2,h4 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffcc00;
  text-shadow: 1px 1px #000;
}

.naughty-nice-section ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

.naughty-nice-section li {
  padding: 8px 0;
  border-bottom: 1px solid #fff;
}

.top-secret-stamp {
  position: absolute;
  top: 30px;
  left: 0px;
  font-size: 35px;
  color: rgba(255,0,0,0.3);
  transform: rotate(-25deg);
  font-weight: bold;
  pointer-events: none;
  text-shadow: 1px 1px 2px #000;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

.red-light {
  width: 15px;
  height: 15px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  animation: blink 1s infinite;
}

li {
  list-style-type: none; /* removes the bullet */
}

/* --- Mobile-first base layout (phones, and any viewport smaller than the tiers below) --- */
.seo-blurb {
  display: none;
  max-width: 600px;
  margin: 3rem auto 1rem;
  padding: 0 1.5rem;
  text-align: center;
}

.seo-blurb summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.seo-blurb summary:hover {
  color: rgba(255, 255, 255, 0.85);
}

.seo-blurb-card {
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(30, 130, 68, 0.92), rgba(18, 95, 50, 0.95));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.seo-blurb-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* On wide screens, float the opened card to the right so it doesn't
   sit on top of the centered Santa image when expanded. */
@media screen and (min-width: 1272px) {
  .seo-blurb {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .seo-blurb summary {
    position: fixed;
    right: 24px;
    top: 130px;
  }

  .seo-blurb-card {
    position: fixed;
    right: 24px;
    top: 160px;
    width: 260px;
    margin-top: 0;
  }
}

footer {
  margin-top: -5%;
}

#searchArea {
  display: none;
  margin-top: 25%;
  width: 92%;
}

.slot {
  width: 100%;
}

.name-input-wrap {
  position: relative;
  width: 100%;
}

#targetName {
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  width: 96%;
  text-align: center;
  text-transform: capitalize;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#targetName.found {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.45);
}

#targetName::placeholder {
  text-transform: none;
}

/* Old-computer-alert look for the Search button while it briefly shows
   "Child Found" - flat grey, hard bevel, monospace, no rounded corners. */
#spinButton.child-found {
  background: linear-gradient(135deg, rgba(30, 130, 68, 0.8), rgba(18, 95, 50, 0.85));
  color: #fff;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

#spinButton.child-found:hover {
  background: linear-gradient(135deg, rgba(30, 130, 68, 0.8), rgba(18, 95, 50, 0.85));
}

#spinButton {
  display: block;
  margin: 5px auto;
  font-size: 11px;
}

#accessButton {
  margin: auto;
  margin-left: 38%;
  background: #0b3d0b; /* dark green parchment feel */
  color: #ffcc00;
  text-shadow: 1px 1px #000;
  border: 1px solid #ffcc00;
}

#elf1, #elf2 {
  width: 85px;
  height: 85px;
}

#santa1 {
  width: 180px;
  height: 180px;
}

.naughty-nice-section {
  margin-top: 22%;
  width: 85%;
  padding: 22px 14px;
  font-size: 15px;
}

.naughty-nice-section h2 {
  font-size: 19px;
}

.top-secret-stamp {
  top: 24px;
  font-size: 18px;
}

.header-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  font-size: 10px;
  white-space: nowrap;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 204, 0, 0.6);
  transform: scale(1.05);
}

/* Tablet */
@media screen and (min-width: 550px) {
  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  footer {
    margin-top: -15%;
  }

  #searchArea {
    margin-top: 25%;
    width: 50%;
  }

  #targetName {
    width: 46%;
  }

  #spinButton {
    font-size: 12px;
  }

  #accessButton {
    margin-left: 41%;
  }

  #elf1, #elf2 {
    width: 150px;
    height: 150px;
  }

  #santa1 {
    width: 250px;
    height: 250px;
  }

  .naughty-nice-section {
    margin-top: 22%;
    width: 90%;
    font-size: 18px;
  }

  .header-link {
    font-size: 10px;
  }
}

/* Small desktop */
@media screen and (min-width: 900px) {
  .christmas-header h1 {
    font-size: 44px;
  }

  .header-accent {
    font-size: 20px;
  }

  .slot {
    width: 98%;
  }

  #targetName {
    width: 45%;
  }

  #spinButton {
    font-size: 15px;
  }

  #elf1, #elf2 {
    width: 200px;
    height: 200px;
  }

  #santa1 {
    width: 300px;
    height: 300px;
  }

  .header-link {
    font-size: 12.5px;
  }
}

/* Desktop */
@media screen and (min-width: 1024px) {
  footer {
    margin-top: 50%;
  }

  .christmas-header {
    margin-bottom: 8%;
  }

  #searchArea {
    margin-top: 15%;
    width: 60%;
  }

  .slot {
    width: 100%;
  }

  #targetName {
    font-size: 18px;
    width: 48%;
  }

  #spinButton {
    font-size: 12px;
  }

  #elf1, #elf2 {
    width: 150px;
    height: 150px;
  }

  .naughty-nice-section {
    margin-top: 14%;
    width: 100%;
    font-size: 20px;
  }

  .header-link {
    font-size: 15px;
  }
}

/* Ultra-wide screens */
@media screen and (min-width: 1800px) {
  footer {
    margin-top: 10%;
  }

  .christmas-header {
    margin-bottom: 5%;
  }

  #searchArea {
    margin-top: 9%;
  }

  #spinButton {
    font-size: 16px;
  }

  .header-link {
    font-size: 16px;
  }
}

/* Super ultra-wide (optional) */
@media screen and (min-width: 2400px) {
  footer {
    margin-top: 12%;
  }

  .christmas-header {
    margin-bottom: -5%;
  }

  #spinButton {
    font-size: 16px;
  }

  .header-link {
    font-size: 16px;
  }
}

/* Short viewports (wide-but-shallow browser windows) — the width tiers above
   size margins as a % of width and size Santa/elf images for tall viewports,
   which overflows when height is constrained regardless of how wide it is. */
@media screen and (max-height: 650px) {
  /* Modals vertically-center within the full viewport, which fights the
     fixed header on short screens (card renders half-hidden behind it).
     Anchor to the top with a header-height gap instead. */
  .modal {
    align-items: flex-start;
    padding-top: 118px;
    overflow-y: auto;
  }

  .naughty-nice-section {
    margin-top: 140px;
    padding: 16px 14px;
  }

  #searchArea {
    margin-top: 140px;
  }

  #santa1 {
    width: 180px;
    height: 180px;
  }

  #elf1, #elf2 {
    width: 100px;
    height: 100px;
  }

  .modal-content-nice,
  .modal-content-naughty {
    padding: 16px 20px;
    max-height: 92vh;
  }

  .modal-content-nice h2,
  .modal-content-naughty h2 {
    margin-bottom: 4px;
  }

  .report-name {
    margin-bottom: 8px;
  }

  .report-review {
    margin-bottom: 8px;
  }

  .report-status {
    margin-bottom: 10px;
  }

  .report-notes {
    margin-bottom: 10px;
  }

  .report-notes li {
    margin-bottom: 6px;
  }

  .report-divider {
    margin-bottom: 10px;
  }

  .report-message {
    margin-bottom: 10px;
  }

  .report-image {
    display: none;
  }

  .personalize-cta-secondary {
    margin-bottom: 8px;
    padding: 7px 14px;
  }

  /* Compact the personalize form (the tallest of the modal-content-parents
     forms - dropdown + name + toggle + 3 notes + buttons) so it needs less
     internal scrolling on short screens. */
  .modal-content-parents {
    padding: 14px 18px;
    max-height: 88vh;
  }

  .modal-content-parents h2 {
    margin-bottom: 6px;
    font-size: 19px;
  }

  .modal-content-parents p.parents-intro {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .personalize-field {
    margin-bottom: 8px;
  }

  .personalize-field label {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .personalize-field input,
  .personalize-field select {
    padding: 6px 10px;
    font-size: 13px;
  }

  .list-slider {
    margin: 2px 0 10px;
  }

  .reports-list {
    max-height: 200px;
    margin: 10px 0;
  }

  .reports-list-item {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Extremely short viewports (e.g. a wide browser window shrunk to a sliver
   of height) - even the compaction above can't fit under a full 3-line
   header, so shrink the header itself too, freeing up real room instead of
   just relying on internal modal scrolling. */
@media screen and (max-height: 400px) {
  .header-accent {
    display: none;
  }

  .christmas-header h1 {
    font-size: 18px;
  }

  .modal {
    padding-top: 60px;
  }

  .naughty-nice-section {
    margin-top: 76px;
  }

  #searchArea {
    margin-top: 76px;
  }
}
