/* Announcements (ticker + lobby jumbotron) and 2D kiosk decorations. Built on brand.css tokens. */

/* ================= Ticker ================= */
.ticker[hidden] { display: none; }
.ticker { background: var(--brand-hero); color: #fff; border-bottom: 1px solid rgba(148,255,239,.16); position: relative; z-index: 40; }
.ticker::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent-on-dark) 50%, var(--brand-primary)); opacity: .9; }
.t-bar { display: flex; align-items: stretch; min-height: 46px; }
.t-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 max(var(--gutter), env(safe-area-inset-left));
  font: 600 .74rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent-on-dark);
  border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap;
}
.t-spark { width: 13px; height: 13px; fill: var(--brand-accent-on-dark); flex: none; }
.t-view {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.t-track { display: flex; width: max-content; }
.t-set { display: flex; align-items: center; padding-right: 8px; }
.t-set[hidden] { display: none; }
.t-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 14px; min-height: 44px; margin-left: 10px;
  color: #fff; text-decoration: none; white-space: nowrap; border-radius: var(--radius); position: relative;
}
.t-item + .t-item::before { content: ""; position: absolute; left: -7px; top: 50%; width: 5px; height: 5px; border-radius: 1px; transform: translateY(-50%) rotate(45deg); background: var(--brand-primary-bright); opacity: .75; }
a.t-item:hover { background: rgba(255,255,255,.07); color: #fff; }
a.t-item:hover b { text-decoration: underline; text-decoration-color: var(--brand-accent-on-dark); text-underline-offset: 3px; }
a.t-item:focus-visible { outline: 2px solid var(--brand-accent-on-dark); outline-offset: -2px; }
.t-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; line-height: 1; background: rgba(148,255,239,.12); box-shadow: inset 0 0 0 1px rgba(148,255,239,.25); flex: none; }
.t-txt { font-size: .92rem; }
.t-txt b { font-weight: 600; color: #fff; }
.t-msg { color: #C4C4C4; margin-left: 8px; }
.t-pause {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 46px; min-height: 46px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 16px; border: 0; border-left: 1px solid rgba(255,255,255,.1);
  background: transparent; color: #E6E6E6; font: 500 .85rem/1 var(--font-display); cursor: pointer;
}
.t-pause:hover { color: var(--brand-accent-on-dark); background: rgba(255,255,255,.05); }
.t-pause[aria-pressed="true"] { color: var(--brand-accent-on-dark); }
.t-pause[hidden] { display: none; }
.t-pause svg { flex: none; }
/* Everything fits: no scrolling, no fade, no button. */
.ticker.t-static .t-view { -webkit-mask-image: none; mask-image: none; }
/* Reduced motion: step through one item at a time. */
.t-step .t-item { display: none; margin-left: 6px; }
.t-step .t-item.on { display: inline-flex; animation: t-in .5s var(--ease); }
.t-step .t-item::before { display: none; }
.t-step .t-track, .t-step .t-set { width: 100%; min-width: 0; }
.t-step .t-item.on { max-width: 100%; }
.t-step .t-txt { overflow: hidden; text-overflow: ellipsis; }
@keyframes t-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  .t-label > span { display: none; }
  .t-label { padding: 0 12px 0 14px; }
  .t-pause { padding: 0 14px 0 12px; }
  .t-pause .t-pl { display: none; }
  .t-item { padding: 6px 12px 6px 10px; }
  .t-txt { font-size: .88rem; }
}

/* ================= Jumbotron ================= */
.jumbo { max-width: var(--maxw); margin: -56px auto 0; padding: 0 var(--gutter); position: relative; z-index: 3; }
.jumbo ~ .choices { margin-top: 22px; }
.j-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--brand-line); }
.j-stage { display: grid; }
.j-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.j-slide.on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.j-visual {
  position: relative; overflow: hidden; min-height: 320px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 20% 10%, var(--brand-primary-bright) 0%, var(--brand-primary) 42%, var(--brand-primary-deep) 100%);
}
.j-visual::before { /* soft rings */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 50% 55%, transparent 0 88px, rgba(255,255,255,.08) 89px 90px, transparent 91px 130px, rgba(255,255,255,.07) 131px 132px, transparent 133px 175px, rgba(255,255,255,.06) 176px 177px, transparent 178px);
}
.j-anniversary .j-visual, .j-praise .j-visual { background: radial-gradient(120% 90% at 20% 10%, #2A6E80 0%, #173F4A 55%, #0A0A0A 100%); }
.j-prayer .j-visual, .j-furlough .j-visual { background: radial-gradient(120% 90% at 80% 10%, var(--brand-primary) 0%, var(--brand-primary-deep) 50%, #0B3D4A 100%); }
.j-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-slide.has-pic .j-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,.35)); }
.j-art { position: relative; width: min(78%, 240px); height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.j-badge { position: absolute; z-index: 3; left: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 4px rgba(148,255,239,.55); }
.j-slide:not(.has-pic) .j-badge { display: none; }
.j-body { padding: clamp(24px, 3.4vw, 44px) clamp(22px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.j-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 .8rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary-deep); }
.j-spark { width: 16px; height: 16px; fill: var(--brand-primary); flex: none; animation: j-twinkle 2.4s ease-in-out infinite; }
.j-when { color: var(--brand-muted); letter-spacing: .06em; font-weight: 500; }
.j-when::before { content: "·"; margin-right: 10px; color: var(--brand-line); }
.j-body h2 { font: 300 clamp(1.7rem, 3.6vw, 2.5rem)/1.12 var(--font-display); color: var(--brand-ink); margin: 0; letter-spacing: -.01em; }
.j-msg { font-size: clamp(1.02rem, 1.6vw, 1.15rem); margin: 0; color: var(--brand-text); max-width: 52ch; }
.j-who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.j-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--brand-primary-tint); }
.j-who b { display: block; color: var(--brand-ink); font-weight: 600; line-height: 1.25; }
.j-who small { display: block; color: var(--brand-muted); font-size: .85rem; line-height: 1.3; }
.j-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.j-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--brand-line); background: #FBFBFB; }
.j-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brand-line); background: #fff; color: var(--brand-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.j-arrow:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.j-dots { display: flex; gap: 2px; }
.j-dots button { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.j-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #CFCFCF; transition: width .3s var(--ease), background-color .3s; }
.j-dots button[aria-current="true"]::before { width: 24px; background: var(--brand-primary); }
.j-pause { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--brand-line); background: #fff; color: var(--brand-ink); font: 500 .9rem/1 var(--font-display); cursor: pointer; }
.j-pause:hover { border-color: var(--brand-primary); color: var(--brand-primary-deep); }
.j-pause svg { width: 16px; height: 16px; }

/* confetti + sparkle */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: .95; transform: rotate(var(--r)); animation: j-fall var(--d) linear var(--dl) infinite; }
.confetti i.c { width: 9px; height: 9px; border-radius: 50%; }
.confetti i.s { width: 6px; height: 18px; border-radius: 3px; }
.j-slide.has-pic .confetti i { opacity: .9; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
@keyframes j-fall { 0% { transform: translateY(-40vh) rotate(var(--r)); } 100% { transform: translateY(40vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes j-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(45deg); opacity: .6; } }
.j-slide:not(.on) .confetti i, .j-slide:not(.on) .j-spark { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .confetti i { animation: none !important; }
  .j-spark { animation: none !important; }
  .j-slide { transition: none; }
}
@media (max-width: 900px) { .jumbo { margin-top: -36px; } }
@media (max-width: 720px) {
  .j-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .j-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .j-slide:not(.has-pic) .j-visual { aspect-ratio: auto; height: 170px; }
  .j-art { width: 150px; }
  .j-body { padding: 20px 20px 22px; }
  .j-when { flex-basis: 100%; }
  .j-when::before { display: none; }
  .j-actions .btn { flex: 1 1 auto; }
  .j-ctrl { gap: 4px; padding: 8px 10px; }
  .j-pause { margin-left: 4px; padding: 0 12px; }
}

/* ================= Kiosk hero decorations ================= */
.kiosk.has-decor { --band: clamp(84px, 8vw, 112px); --land-h: clamp(150px, 15vw, 230px); }
.k-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.k-decor .land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--land-h); display: block; }
.k-bunting { position: absolute; left: 0; right: 0; top: 0; height: 44px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.kiosk.has-decor .k-hero .inner { padding-top: calc(clamp(28px, 5vw, 56px) + 26px); padding-bottom: calc(clamp(16px, 3vw, 32px) + var(--band)); }
.kiosk.has-decor .k-hero::after { background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%), linear-gradient(0deg, rgba(0,0,0,0) calc(var(--land-h) - 10px), rgba(0,0,0,.08) 100%); }
.kiosk.has-decor .k-hero { border-bottom: 6px solid var(--k-ground, var(--k-secondary)); }
.k-props { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: min(100%, var(--maxw)); height: var(--band); }
.k-prop { position: absolute; bottom: 0; width: 72px; height: 72px; }
.k-prop svg, .k-corner svg, .c-prop {
  width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(1.6px 0 0 #fff) drop-shadow(-1.6px 0 0 #fff) drop-shadow(0 1.6px 0 #fff) drop-shadow(0 -1.6px 0 #fff) drop-shadow(0 5px 6px rgba(0,0,0,.22));
}
.k-prop.p0 { left: 3%;  width: 84px; height: 84px; transform: rotate(-5deg); }
.k-prop.p1 { left: 36%; width: 62px; height: 62px; transform: rotate(6deg); bottom: 4px; }
.k-prop.p2 { left: 56%; width: 74px; height: 74px; transform: rotate(-3deg); }
.k-prop.p3 { left: 76%; width: 58px; height: 58px; transform: rotate(8deg); bottom: 8px; }
.k-prop.p4 { left: 90%; width: 70px; height: 70px; transform: rotate(-7deg); }
.k-greet { align-items: center; flex-wrap: wrap; }
.k-greet small { align-self: center; }
.k-flag { height: .72em; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 14px rgba(0,0,0,.28); background: rgba(255,255,255,.2); flex: none; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.k-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font: 600 .86rem/1.2 var(--font-body); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: inherit; backdrop-filter: blur(2px); }
.k-chip svg { flex: none; color: var(--k-accent); }

/* Section corner stickers */
.k-section { position: relative; }
.k-corner { position: absolute; top: -18px; right: 22px; width: 52px; height: 52px; transform: rotate(8deg); pointer-events: none; }
.k-section:nth-of-type(2n) .k-corner { transform: rotate(-7deg); }
.k-section > h2 { padding-right: 64px; }

/* Family + important dates */
.fam { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fam li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--k-paper); }
.fam .av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 1.25rem/1 var(--font-display); background: var(--k-primary); color: var(--k-on-primary, #fff); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--k-accent); }
.fam .who { display: grid; gap: 2px; min-width: 0; }
.fam b { color: var(--k-ink); font-size: 1.05rem; line-height: 1.25; }
.fam small { color: var(--brand-muted); font-size: .88rem; }
.fam .bday { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--k-ink); margin-top: 2px; }
.fam .bday svg { color: var(--k-primary); flex: none; }
.dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dates li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--k-paper); }
.dates li.past { opacity: .7; }
.dates .cal { flex: none; width: 56px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); }
.dates .cal small { display: block; background: var(--k-primary); color: var(--k-on-primary, #fff); font: 700 .7rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 0; }
.dates .cal b { display: block; font: 700 1.4rem/1 var(--font-display); color: var(--k-ink); padding: 6px 0 7px; }
.dates .what { display: grid; gap: 2px; min-width: 0; }
.dates .what b { color: var(--k-ink); line-height: 1.25; }
.dates .what small { color: var(--brand-muted); font-size: .88rem; }
.dates .note { font-size: .92rem; }
.k-fam { grid-template-columns: 1fr 1fr; }

/* ================= List cards ================= */
.mcard .c-bunting { position: absolute; left: 0; right: 0; top: 0; height: 20px; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.mcard .ph .c-flag { position: absolute; top: 26px; right: 12px; z-index: 2; width: 38px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.3); }
.mcard .c-props { position: absolute; right: 8px; bottom: 6px; z-index: 1; display: flex; align-items: flex-end; }
.mcard .c-prop { width: 40px; height: 40px; }
.mcard .c-prop + .c-prop { width: 34px; height: 34px; margin-left: -4px; transform: rotate(8deg); }
.mcard .c-prop:first-child { transform: rotate(-6deg); }
.mcard:hover .c-prop:first-child { transform: rotate(-12deg) translateY(-2px); }
.mcard .c-prop { transition: transform .25s var(--ease); }

@media (max-width: 900px) {
  .k-fam { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kiosk.has-decor { --band: 70px; --land-h: 120px; }
  .k-bunting { height: 30px; background-size: auto 30px !important; }
  .kiosk.has-decor .k-hero .inner { padding-top: 40px; }
  .k-prop.p0 { left: 2%; width: 58px; height: 58px; }
  .k-prop.p1 { left: 40%; width: 48px; height: 48px; }
  .k-prop.p2 { left: auto; right: 3%; width: 56px; height: 56px; }
  .k-prop.p3, .k-prop.p4 { display: none; }
  .k-corner { width: 40px; height: 40px; top: -14px; right: 14px; }
  .k-section > h2 { padding-right: 44px; }
}
@media (max-width: 380px) {
  .k-prop.p1 { display: none; }
  .k-corner { display: none; }
  .k-section > h2 { padding-right: 0; }
}
