/* The Martini — holiday themes (branch halloween). Additive only: nothing here applies unless html[data-holiday] is
   set, or a .hol-ask / .set-hol / .hol-pal is on screen. Per-holiday decoration lives in its own file (halloween.css). */

/* —— holiday touches (v1.7.3 top bar): the holiday glass mark before the small plain production name, a festive ring on
      the User tab's avatar (a ring only: the tab keeps its size and its tap), a thin seasonal stripe on the day card —— */
html[data-holiday] .prod-name::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin: -2px -1px -2px -2px; background: var(--holiday-mark) center / contain no-repeat; }
html[data-holiday] .prod-name .brand-ic { display: none; }
html[data-holiday] .tab-user .tab-av { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
html[data-holiday] .day-card { background-image: var(--holiday-stripe); background-size: 100% 4px; background-repeat: no-repeat; background-position: top; }

/* —— Settings › Holidays —— */
.set-hol { display: grid; gap: 8px; }
.hol-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid var(--border-soft, var(--border)); background: var(--bg-elev, var(--surface)); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.hol-mark { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 24px; line-height: 1; background: var(--surface2) center / cover no-repeat; border: 1px solid var(--border); }
.hol-txt { display: grid; gap: 2px; min-width: 0; }
.hol-txt b { font-weight: 700; }
.hol-txt .quiet { font-size: 0.8rem; line-height: 1.3; }
.hol-sw { justify-self: end; width: 44px; height: 26px; border-radius: 99px; background: var(--border); position: relative; transition: background .15s; }
.hol-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.hol-row.is-on .hol-sw { background: var(--accent); }
.hol-row.is-on .hol-sw i { transform: translateX(18px); }

/* —— the holiday ask: a small card above the tab bar; the app behind stays usable —— */
.hol-ask { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 115; width: min(360px, calc(100vw - 24px)); animation: hol-in .28s cubic-bezier(.2,.9,.3,1.2) both; }
.hol-ask.is-out { animation: hol-out .2s ease-in both; }
.hol-ask-card { padding: 14px 14px 10px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 16px 44px var(--shadow-c, rgba(0,0,0,.25)), 0 2px 8px var(--shadow-c, rgba(0,0,0,.15)); }
.hol-ask-t { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.28rem; line-height: 1.2; margin: 10px 2px 4px; }
.hol-ask-p { margin: 0 2px 12px; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.hol-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hol-ask-btns .btn { min-height: 46px; }
.hol-ask-f { margin: 8px 2px 0; font-size: 0.74rem; text-align: center; }
.hol-pv { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: stretch; }
.hol-pv-ic { width: 76px; height: 76px; border-radius: 17px; display: block; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.hol-pv-ui { position: relative; overflow: hidden; border-radius: 12px; background: var(--pv-bg); border: 1px solid var(--pv-border); padding: 10px 8px 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-content: center; }
.hol-pv-stripe { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pv-stripe); }
.hol-pv-card { grid-column: 1 / -1; display: flex; gap: 6px; align-items: baseline; padding: 5px 7px; border-radius: 8px; background: var(--pv-surface); border: 1px solid var(--pv-border); border-left: 3px solid var(--pv-rolling); color: var(--pv-text); font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.hol-pv-pill { justify-self: start; font-size: 0.66rem; font-weight: 750; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--pv-rolling); color: var(--pv-rolling); }
.hol-pv-btn { font-size: 0.66rem; font-weight: 750; padding: 1px 8px; border-radius: 99px; background: var(--pv-accent); color: var(--pv-ink); }
@keyframes hol-in { from { opacity: 0; transform: translate(-50%, 18px) scale(.97); } }
@keyframes hol-out { to { opacity: 0; transform: translate(-50%, 12px); } }

/* reduced motion: the ask just appears */
@media (prefers-reduced-motion: reduce) { .hol-ask, .hol-ask.is-out { animation: none !important; } }
