/* ==========================================================================
   PHASE 5 — Christmas Eve feast, Christmas Dawn, endings
   ========================================================================== */
.fin-feast-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 170px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #1F1612;
}
.fin-feast-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.fin-feast-banner > div {
  position: relative;
  width: 100%;
  padding: 40px 16px 14px 16px;
  background: linear-gradient(to top, rgba(20, 12, 8, 0.92) 0%, rgba(20, 12, 8, 0.55) 65%, rgba(20, 12, 8, 0) 100%);
  color: #FFF4DE;
}
.fin-feast-banner span { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-amber-glow); }
.fin-feast-banner h3 { font-family: var(--font-display); font-size: 28px; margin: 2px 0; line-height: 1.15; }
.fin-feast-banner p { font-family: var(--font-prose); font-size: 15.5px; margin: 0; line-height: 1.45; }
.fin-feast-banner.is-lit img { animation: kenBurns 16s ease-in-out infinite alternate; }

.fin-seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .fin-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 2px dashed #C4AC94;
  background: #FAF6EE;
  cursor: pointer;
  text-align: center;
}
.fin-seat.is-set { border: 2px solid #4F8A6E; background: #F1F7F2; }
.fin-seat-face { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid #D49B35; }
.fin-seat strong { font-family: var(--font-ui); font-size: 15px; }
.fin-seat em { font-style: normal; font-family: var(--font-prose); font-size: 13px; line-height: 1.35; color: #6E5446; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 70px; }
.fin-seat em.is-mystery { color: #A08A76; }
.fin-plate { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; height: 84px; justify-content: center; overflow: hidden; }
.fin-plate i { font-style: normal; font-family: var(--font-ui); font-size: 13px; color: #A08A76; }
.fin-plate b { font-family: var(--font-ui); font-size: 13px; color: #244A3D; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-plate-dish { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #FFF; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.fin-plate-dish.is-emoji { display: flex; align-items: center; justify-content: center; font-size: 30px; background: #FFF; }
.fin-sub { font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7A5B4C; margin: 16px 0 8px 0; }
.fin-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fin-dish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #D6C2AC;
  background: #FAF6EE;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #2B1E17;
  text-align: center;
  line-height: 1.2;
}
.fin-dish-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 9px; }
.fin-dish-img.is-emoji { display: flex; align-items: center; justify-content: center; font-size: 34px; background: #FFF; }
.fin-dish.is-picked { border: 3px solid #E89B48; box-shadow: 0 0 0 3px rgba(232, 155, 72, 0.3); }
.fin-dish:not(.is-cooked) { opacity: 0.8; }

.fin-reacts { display: flex; flex-direction: column; gap: 8px; }
.fin-react {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: #FAF6EE;
  border: 1px solid #D6C2AC;
  opacity: 0;
  animation: finIn 0.5s ease forwards;
}
.fin-react.is-fav { background: #FFF7E8; border: 2px solid #E0A458; }
.fin-react img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: 0 0 auto; }
.fin-react strong { font-family: var(--font-ui); font-size: 15px; }
.fin-react strong span { color: #B52F42; }
.fin-react p { font-family: var(--font-handwritten); font-size: 22px; line-height: 1.3; margin: 2px 0 0 0; color: #2B1E17; }

/* Dawn */
.dawn-panel { text-align: left; }
.dawn-lines { min-height: 120px; }
.dawn-line { font-family: var(--font-display); font-size: 24px; line-height: 1.3; margin: 0 0 6px 0; opacity: 0; animation: finIn 0.9s ease forwards; color: #2B1E17; }
.dawn-parcel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 10px auto;
  width: 160px;
  padding: 12px;
  border-radius: 16px;
  background: #FFF7E8;
  border: 2px dashed #C48A3A;
  font-size: 56px;
  cursor: pointer;
  animation: parcelWiggle 2.4s ease-in-out infinite;
}
.dawn-parcel span { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: #8F2432; }
.dawn-parcel.is-open { animation: parcelOpen 0.45s ease forwards; }
.dawn-letter { background: #FAF6EE; border: 1px solid #D6C2AC; border-radius: 12px; padding: 14px 16px; animation: finIn 0.6s ease; }
.dawn-letter .handwritten-letter { font-family: var(--font-handwritten); font-size: 24px; margin: 0 0 6px 0; }
.dawn-letter p { font-family: var(--font-prose); font-size: 16px; line-height: 1.6; margin: 0 0 6px 0; }
.dawn-sign { font-family: var(--font-handwritten) !important; font-size: 22px !important; text-align: right; color: #6E4933; }
.dawn-title { font-family: var(--font-display); font-size: 28px; margin: 0 0 10px 0; }
.dawn-cinema.is-futures .arrival-stage { min-height: 22%; flex: 0 0 26%; }
.dawn-cinema.is-futures .arrival-panel { max-height: none; flex: 1 1 auto; }
.dawn-note-label { display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: #7A5B4C; margin: 12px 0 4px 0; }
.dawn-note { width: 100%; box-sizing: border-box; font-family: var(--font-prose); font-size: 17px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #C4AC94; background: #FAF6EE; }

.fin-futures { display: flex; flex-direction: column; gap: 8px; }
.fin-future { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: rgba(250, 246, 238, 0.9); border: 1px solid #D6C2AC; text-align: left; }
.fin-future.is-close { border: 2px solid #E0A458; background: #FFF7E8; }
.fin-future img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: 0 0 auto; }
.fin-future strong { font-family: var(--font-ui); font-size: 15px; }
.fin-future strong span { color: #B52F42; font-size: 13px; }
.fin-future p { font-family: var(--font-prose); font-size: 15.5px; line-height: 1.5; margin: 2px 0 0 0; color: #2B1E17; }
.fin-ep-sub { font-family: var(--font-display); font-size: 26px; margin: 18px 0 10px 0; color: #2B1E17; }

@keyframes finIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes parcelWiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-4deg); } 20% { transform: rotate(4deg); } 30% { transform: rotate(0); } }
@keyframes parcelOpen { to { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fin-react, .dawn-line { animation: none; opacity: 1; }
  .dawn-parcel, .fin-feast-banner.is-lit img { animation: none; }
}
