/* The Season 1 finale, live for everyone (js/holiday-ui.js Holiday.liveCard): one card over the menus ten minutes before the
   show and once more when it goes live. The field journal's page, the red rule, a pulsing LIVE dot (still under calm and
   reduced motion). It never covers anything for long: Not now closes it, and nothing behind it is locked. */
.hol-live { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% 40%, #0b0b0dcc, #050506f2); animation: hl-in .28s steps(4); }
.hol-live .hl-card { --tk: #d9a441; position: relative; width: min(400px, 100%); padding: 28px 20px 20px; text-align: center; color: #f2eee6; isolation: isolate;
  background: linear-gradient(var(--tk), var(--tk)) 6px 10px / 10px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) 6px 10px / 2px 10px no-repeat,
    linear-gradient(var(--tk), var(--tk)) calc(100% - 6px) 10px / 10px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) calc(100% - 6px) 10px / 2px 10px no-repeat,
    linear-gradient(var(--tk), var(--tk)) 6px calc(100% - 10px) / 10px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) 6px calc(100% - 10px) / 2px 10px no-repeat,
    linear-gradient(var(--tk), var(--tk)) calc(100% - 6px) calc(100% - 10px) / 10px 2px no-repeat, linear-gradient(var(--tk), var(--tk)) calc(100% - 6px) calc(100% - 10px) / 2px 10px no-repeat,
    linear-gradient(180deg, #c8202a 0 4px, #57503f 4px 6px, #26231e 6px calc(100% - 4px), #16140f calc(100% - 4px));
  border: 0; box-shadow: 0 0 0 2px #0b0b0b, 0 6px 0 2px #050505, 0 18px 50px #000a; }
.hol-live .hl-card::before { content: none; }
.hol-live .hl-card::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16; background: url(../assets/ui/command-etch.svg) center 30% / 140% auto no-repeat; pointer-events: none; }
.hol-live .hl-kick { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 3px; background: #0b0b0b; font: 400 12px/1 var(--display, inherit); letter-spacing: .16em; text-transform: uppercase; color: #f27661; }
.hol-live .hl-dot { width: 8px; height: 8px; background: #e0353e; box-shadow: 0 0 0 2px #0b0b0b, 0 0 8px #e0353e; animation: hl-pulse 1.2s steps(2) infinite; }
.hol-live h2 { margin: 14px 0 4px; font: 400 30px/1 var(--display, inherit); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 3px 0 #000; }
.hol-live .hl-what { margin: 0; font: 400 15px/1 var(--display, inherit); color: #d9bd8b; letter-spacing: .1em; text-transform: uppercase; }
.hol-live .hl-clock { margin: 18px auto 6px; display: grid; gap: 6px; justify-items: center; }
.hol-live .hl-clock b { padding: 8px 14px 5px; background: linear-gradient(180deg, #d9a441 0 2px, #0b0b0b 2px); box-shadow: 0 0 0 2px #0b0b0b, 0 4px 0 2px #050505; font: 400 46px/1 var(--display, ui-monospace, monospace); font-variant-numeric: tabular-nums; letter-spacing: .05em; color: #fff; }
.hol-live .hl-clock b.hl-on { font-size: 40px; color: #ff5a4f; background: linear-gradient(180deg, #ff5a4f 0 2px, #0b0b0b 2px); letter-spacing: .08em; text-transform: uppercase; }
.hol-live .hl-clock small { font: 400 12px/1 var(--display, inherit); letter-spacing: .14em; text-transform: uppercase; color: #a79f92; }
.hol-live .hl-note { margin: 12px 8px 18px; font-size: 13px; line-height: 1.4; color: #c9c2b6; text-wrap: balance; }
.hol-live .hl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 300px; margin: 0 auto; }
.hol-live .hl-row .btn { min-width: 0; min-height: 46px; margin: 0; }
.hol-live .hl-row .btn.ghost { color: #e8dfcd; border: 0; background: linear-gradient(180deg, #57503f 0 2px, #322e27 2px calc(100% - 4px), #1d1a16 calc(100% - 4px)); box-shadow: 0 0 0 2px #0b0b0b, 0 3px 0 2px #050505; }
.hol-live.calm, .hol-live.calm .hl-dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .hol-live, .hol-live .hl-dot { animation: none; } }
@keyframes hl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hl-pulse { 50% { opacity: .3; } }
/* the tester's phase buttons (Settings, Dev.on() only) */
.hol-dev { margin: 10px 0; }
.hol-dev small { display: block; margin-bottom: 6px; color: #a79f92; }
.hol-dev div { display: flex; flex-wrap: wrap; gap: 6px; }
.hol-dev .btn.on { border-color: #c8202a; color: #fff; }
/* the Campaign screen once Season 1's war is over (js/war.js html, the holiday calendar) */
.war-quiet { padding: 14px 14px 12px; text-align: center; background: linear-gradient(170deg, #211f1b, #121113 72%); border: 1px solid #5a4d40; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a914; border-top: 2px solid #c8202a; }
.war-quiet small { display: block; font: 700 11px/1 var(--display, inherit); letter-spacing: .14em; text-transform: uppercase; color: #f27661; }
.war-quiet > b { display: block; margin: 8px 0 4px; font: 800 22px/1.1 var(--display, inherit); text-transform: uppercase; color: #f2eee6; }
.war-quiet p { margin: 4px 0; font-size: 13px; color: #c9c2b6; }
.war-quiet .wq-next { margin-top: 10px; color: #d9bd8b; }
.war-quiet .wq-next b { font-variant-numeric: tabular-nums; color: #fff; }
/* Hold the Holiday (js/hold-holiday.js): the dock button glitching into a Christmas tree, and the truce over the match. */
.hold-btn .hold-ic .hh-tree, .hold-btn .hh-lbl { display: none; }
.hold-btn.hh-flash .hold-ic > svg:not(.hh-tree), .hold-btn.hh-flash .hold-txt > b:not(.hh-lbl) { display: none; }
.hold-btn.hh-flash .hold-ic .hh-tree { display: block; filter: drop-shadow(0 0 4px #e7b84a88); }
.hold-btn svg.hh-tree, .dock-row .hold-btn svg.hh-tree { stroke: none; stroke-width: 0; image-rendering: pixelated; } /* the dock's line-icon stroke must not outline every pixel */
.hold-btn.hh-flash .hh-lbl { display: block; color: #f2eee6; text-shadow: 1px 0 #c8202a, -1px 0 #2f8f5a; }
/* The holiday title is longer than the normal label. Keep it wrapped and readable in the compact portrait dock instead of
   inheriting the 42px Hold the Line ellipsis rule. */
.dock-row .hold-btn.hh-flash .hold-txt > b.hh-lbl,
.dock-row:has(#h-tactics > .tbtn:nth-child(3)) .hold-btn.hh-flash .hold-txt > b.hh-lbl,
.dock-row:has(#h-tactics > .tbtn:nth-child(4)) .hold-btn.hh-flash .hold-txt > b.hh-lbl {
  width: 100%; max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal;
  font-size: clamp(9px, 3vw, 13px); line-height: .98; letter-spacing: .01em;
}
.hold-btn.hh-glitch.hh-flash { animation: hh-jitter .27s steps(3) infinite; }
.hold-btn.hh-tree { box-shadow: inset 0 0 0 1px #1e5b3c, 0 0 10px #e7b84a33; }
.hold-btn.hh-tree.hh-flash .hh-lbl { text-shadow: none; }
@keyframes hh-jitter { 0% { transform: translate(1px, 0); filter: hue-rotate(0); } 50% { transform: translate(-1px, 1px); filter: saturate(1.6); } 100% { transform: none; } }
.hh-show { position: fixed; inset: 0; z-index: 8500; pointer-events: none; display: grid; place-items: center; background: radial-gradient(70% 50% at 50% 50%, #e7b84a22, transparent 70%), linear-gradient(#0b0b0d33, #0b0b0d00 40%); transition: opacity .8s; }
.hh-show.out { opacity: 0; }
.hh-show .hh-stamp { display: grid; justify-items: center; gap: 6px; padding: 14px 22px 12px; background: linear-gradient(180deg, #c8202a 0 4px, #57503f 4px 6px, #26231e 6px calc(100% - 4px), #16140f calc(100% - 4px)); box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 4px #1e5b3c, 0 8px 0 4px #050505; transform: rotate(-2deg); animation: hh-slam .32s steps(4); }
.hh-show .hh-stamp svg { width: 48px; height: 48px; image-rendering: pixelated; }
.hh-show .hh-stamp b { font: 400 28px/1 var(--display, inherit); letter-spacing: .05em; text-transform: uppercase; color: #f2eee6; text-shadow: 0 3px 0 #000; }
.hh-show .hh-stamp small { padding: 3px 8px 2px; background: #0b0b0b; font: 400 12px/1 var(--display, inherit); letter-spacing: .14em; text-transform: uppercase; color: #d9bd8b; }
.hh-show .hh-snow { position: absolute; inset: 0; overflow: hidden; }
.hh-show .hh-snow i { position: absolute; top: -8px; width: 4px; height: 4px; background: #f2f6fa; box-shadow: 0 0 0 1px #0b0b0b55; opacity: .85; animation: hh-fall linear infinite; }
.hh-show.still .hh-stamp, .hh-show.still .hh-snow i { animation: none; }
@keyframes hh-slam { from { transform: rotate(-2deg) scale(1.6); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
@keyframes hh-fall { to { transform: translate(18px, 105vh); } }
@media (prefers-reduced-motion: reduce) { .hold-btn.hh-glitch.hh-flash, .hh-show .hh-stamp, .hh-show .hh-snow i { animation: none; } }
/* The day's new holiday piece glitching in (Gage 12-02). Shared: any element with .hol-glitching, or a stage's own selectors under
   body.hol-fresh-N (css/holiday.css). A flicker, an RGB split, scanlines and a torn slice, in steps; still under calm and reduced
   motion. The Hold the Holiday button uses it on its first day (js/hold-holiday.js mode 'glitch'). */
@keyframes hol-glitch {
  0%, 100% { transform: none; filter: none; clip-path: none; opacity: 1; }
  8% { transform: translate(2px, 0); filter: drop-shadow(-2px 0 0 #ff2a3a) drop-shadow(2px 0 0 #2ad4ff); }
  12% { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 52%, 100% 52%, 100% 100%, 0 100%); transform: translate(-3px, 0); }
  16% { opacity: .35; transform: none; clip-path: none; }
  20% { opacity: 1; filter: drop-shadow(2px 0 0 #ff2a3a) drop-shadow(-2px 0 0 #2ad4ff); }
  24% { filter: none; }
  61% { transform: translate(-1px, 1px); clip-path: polygon(0 0, 100% 0, 100% 64%, 0 64%, 0 70%, 100% 70%, 100% 100%, 0 100%); }
  64% { transform: none; clip-path: none; opacity: .55; }
  67% { opacity: 1; }
}
.hol-glitching { animation: hol-glitch 2.6s steps(1, end) infinite; position: relative; }
.hold-btn.hh-glitch { animation: hol-glitch 3.2s steps(1, end) infinite; }
.hold-btn.hh-glitch::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, #ffffff22 0 1px, transparent 1px 3px); }
.hold-btn.hh-glitch.hh-flash::after { opacity: 1; }
.hold-btn.hh-glitch.hh-flash .hh-tree { filter: drop-shadow(-2px 0 0 #ff2a3acc) drop-shadow(2px 0 0 #2ad4ffcc) drop-shadow(0 0 5px #e7b84a99); }
body.calm .hol-glitching, body.calm .hold-btn.hh-glitch, html.fx-lite .hol-glitching, html.fx-lite .hold-btn.hh-glitch { animation: none; }
@media (prefers-reduced-motion: reduce) { .hol-glitching, .hold-btn.hh-glitch, .hold-btn.hh-glitch::after { animation: none; } }
