.santa-page { max-width: 820px; }

.santa-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: .5rem 0 1.5rem;
}
.santa-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(233, 196, 106, .15), 0 12px 30px -8px rgba(0, 0, 0, .8);
}
.santa-head h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.pretend { margin: .15rem 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- Magic word ---------- */
.lock-card { padding: 2.5rem 1.75rem; text-align: center; }
.lock-card h2 { font-size: 2rem; margin-bottom: 1.25rem; }
#unlock-form { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
#password {
  width: min(100%, 17rem);
  min-width: 0;
  padding: .8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font: inherit;
  text-align: center;
}
#password::placeholder, #input::placeholder { color: rgba(183, 196, 184, .7); }
.error { margin: 1rem 0 0; color: #ff9d92; font-weight: 600; }

/* ---------- Chat ---------- */
.chat { padding: 1.25rem; }

.counter { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .25rem 0 1rem; }
.canes { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; }
.canes svg { width: 20px; height: 40px; transition: opacity .5s, filter .5s, transform .5s; }
.canes svg.used { opacity: .16; filter: grayscale(1); transform: scale(.88); }
#counter-text { margin: 0; color: var(--muted); font-size: .98rem; font-weight: 600; }

.messages {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-height: min(52vh, 520px);
  min-height: 120px;
  overflow-y: auto;
  padding: .5rem .25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.row { display: flex; align-items: flex-end; gap: .6rem; }
.row.fresh { animation: pop .35s cubic-bezier(.2, 1.2, .4, 1); }
.row.user { justify-content: flex-end; }
.row .mini-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.bubble {
  max-width: min(78%, 34rem);
  padding: .8rem 1.15rem;
  border-radius: 22px;
  font-size: 1.12rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.row.assistant .bubble { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.row.user .bubble {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  font-weight: 500;
  border-bottom-right-radius: 6px;
}
.row.goodbye .bubble { background: rgba(233, 196, 106, .16); border-color: var(--line-hi); }
.day-divider { align-self: center; padding: .15rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: .85rem; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.typing { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem .25rem; color: var(--muted); }
.typing img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.typing span { animation: typing-dot 1.2s infinite; }
.typing span:nth-of-type(2) { animation-delay: .2s; }
.typing span:nth-of-type(3) { animation-delay: .4s; }
@keyframes typing-dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.notice {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: 16px;
  background: rgba(233, 196, 106, .14);
  border: 1px solid var(--line-hi);
  text-align: center;
}

.send-form {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  padding: .45rem .45rem .45rem 1.1rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line);
}
.send-form:focus-within { border-color: var(--line-hi); }
#input {
  flex: 1;
  min-width: 0;
  max-height: 9rem;
  padding: .7rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  resize: none;
}
#input:focus, #input:focus-visible { outline: none; }
.send-btn {
  flex: none;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
@media (hover: hover) { .send-btn:hover { transform: scale(1.06); filter: brightness(1.06); } }
.send-btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ---------- Break / done cards ---------- */
.end-card { padding: 1.5rem 1rem 1rem; text-align: center; }
.end-card h2 { font-size: 1.75rem; margin-bottom: .6rem; }
.end-card p { margin: 0 auto; max-width: 34ch; color: var(--muted); }
.card-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }

@media (max-width: 520px) {
  .chat { padding: .9rem; border-radius: 22px; }
  .bubble { max-width: 86%; font-size: 1.05rem; }
  .row .mini-avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .row.fresh { animation: none; } .typing span { animation: none; } }
