/* PEPMAS scene: shared by /pepmas and PEPMAS.EXE in PondOS (scene.js) */
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url(/meme/fonts/vt323-latin-400-normal.woff2) format("woff2"); }
.pms { --gold: #ffd54a; --cream: #f6f0dc; --pine: #0e2618; --pine-2: #143523; --holly: #c62828;
  --term: "VT323", "Lucida Console", monospace; --wordart: Impact, "Arial Black", "Haettenschweiler", sans-serif;
  color: #fff; font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
.pms *, .pms *::before, .pms *::after { box-sizing: border-box; }

/* ----- the night ----- */
.pms-scene { position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; gap: 6px; padding: 36px 14px 0;
  background: radial-gradient(120% 70% at 75% 0%, #2c5d8a 0%, transparent 60%), radial-gradient(80% 50% at 10% 10%, rgba(120,255,180,.2), transparent 70%), linear-gradient(180deg, #0b1a3a 0%, #10284a 55%, #173b2a 100%); }
.pms-scene::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -22px; height: 56px; background: #eef6ff; border-radius: 50%; box-shadow: 0 -6px 20px rgba(255,255,255,.35); }
.pms .pms-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; background: transparent !important; box-shadow: none !important; }
.pms-lights { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; justify-content: space-around; z-index: 4; border-top: 2px solid #1d2a1d; }
.pms-lights::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 14px at 50% -4px, transparent 92%, #1d2a1d 93%, #1d2a1d 100%, transparent 101%) 0 0 / 50px 30px repeat-x; }
.pms-lights i { position: relative; width: 9px; height: 13px; margin-top: 9px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 10px 3px var(--c); animation: pms-blink 1.6s calc(var(--d) * .4s) infinite steps(2); }
.pms-lights i::before { content: ""; position: absolute; top: -3px; left: 2px; width: 5px; height: 4px; background: #3a3a2a; border-radius: 1px; }
.pms-lights i:nth-child(4n+1) { --c: #ff4d4d; } .pms-lights i:nth-child(4n+2) { --c: #ffd54a; } .pms-lights i:nth-child(4n+3) { --c: #5dff7a; } .pms-lights i:nth-child(4n) { --c: #5ab8ff; }
.pms-lights i:nth-child(odd) { margin-top: 12px; }
@keyframes pms-blink { 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }
.pms-santa { position: relative; z-index: 2; width: 210px; min-height: 160px; height: auto; flex: none; margin-bottom: 8px; filter: drop-shadow(0 0 18px rgba(255,214,90,.35)) drop-shadow(0 8px 6px rgba(0,0,0,.45)); animation: pms-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pms-bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.pms-main { position: relative; z-index: 5; flex: 1; min-width: 0; text-align: center; padding-bottom: 40px; align-self: center; }
.pms-kick { margin: 0; font: 400 19px/1 var(--term); letter-spacing: 2px; color: #bfe6ff; text-shadow: 0 0 8px #5ab8ff; }
.pms .pms-title { margin: 4px 0 2px; padding: 0; border: 0; background: none; font: 900 clamp(52px, 11vw, 82px)/1 var(--wordart); letter-spacing: 3px; }
.pms-title em { display: block; margin: 0 0 -.06em; font: 900 italic .46em/1 "Figtree", system-ui, sans-serif; letter-spacing: 1px; color: #fff; transform: rotate(-4deg); text-shadow: 0 0 12px rgba(255,90,79,.95), 3px 3px 0 #b5121b; }
.pms-title span { display: inline-block; color: transparent; background: linear-gradient(100deg, #fff3b0 0%, #ffd54a 30%, #c98a00 45%, #fff 50%, #ffd54a 55%, #ffb300 80%, #fff3b0 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255,213,74,.55)) drop-shadow(3px 3px 0 #7a1010); animation: pms-shine 3.5s linear infinite; }
@keyframes pms-shine { to { background-position: -250% 0; } }
.pms-sub { margin: 0 0 12px; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 3px #000; }
.pms-sub b { color: var(--gold); }
.pms-stage { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pms-hint { margin: 8px 0 0; font-size: 13px; color: #e6f2ff; text-shadow: 0 1px 2px #000, 0 0 6px #000; }
.pms-hint b { color: #fff; }

/* ----- the big gift ----- */
.pms-gift { position: relative; width: 96px; height: 92px; border: 0; padding: 0; background: none; cursor: pointer; animation: pms-wiggle 2.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255,213,74,.5)); }
.pms-gift:hover, .pms-gift:focus-visible { animation-duration: .6s; outline: none; filter: drop-shadow(0 0 26px rgba(255,213,74,.95)); }
@keyframes pms-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-5deg); } 90% { transform: rotate(3deg); } }
.pms-box, .pms-lid { position: absolute; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent 42%, #ffd54a 42%, #ffe58a 50%, #e0a800 58%, transparent 58%), linear-gradient(160deg, #e53935, #a31515); }
.pms-box { bottom: 0; width: 80px; height: 60px; box-shadow: inset 0 -8px 0 rgba(0,0,0,.18), 0 3px 0 #5d0a0a; }
.pms-box::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 12px; background: linear-gradient(#ffe58a, #e0a800); }
.pms-lid { bottom: 58px; width: 92px; height: 20px; z-index: 1; box-shadow: 0 3px 0 rgba(0,0,0,.25); transition: transform .7s cubic-bezier(.2,1.6,.4,1), opacity .7s .3s; }
.pms-bow { position: absolute; left: 50%; bottom: 76px; z-index: 2; width: 0; transition: transform .7s cubic-bezier(.2,1.6,.4,1), opacity .7s .3s; }
.pms-bow::before, .pms-bow::after { content: ""; position: absolute; bottom: 0; width: 26px; height: 18px; border: 5px solid #ffd54a; border-radius: 50% 50% 10% 50%; }
.pms-bow::before { right: 0; transform: rotate(-20deg); } .pms-bow::after { left: 0; transform: rotate(20deg) scaleX(-1); }
.pms-gift.open { animation: none; }
.pms-gift.open .pms-lid { transform: translate(-30%, -90px) rotate(-38deg); opacity: 0; }
.pms-gift.open .pms-bow { transform: translate(30px, -110px) rotate(50deg); opacity: 0; }
.pms-gift.open .pms-box { box-shadow: 0 -20px 40px 10px rgba(255,230,120,.9), inset 0 -8px 0 rgba(0,0,0,.18); }
.pms-burst { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.pms-coin, .pms-spark { position: absolute; animation: pms-fly 1.6s cubic-bezier(.15,.7,.3,1) forwards; }
.pms-coin { width: 22px; height: 22px; margin: -11px; }
.pms-spark { width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px 2px currentColor; }
@keyframes pms-fly { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)) scale(1); opacity: 0; } }
.pms-reveal { width: min(100%, 340px); padding: 10px 12px 8px; background: rgba(8,20,40,.75); border: 2px solid var(--gold); box-shadow: 0 0 24px rgba(255,213,74,.45); animation: pms-pop .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes pms-pop { from { transform: scale(.4); opacity: 0; } }
.pms-reveal p { margin: 0; }
.pms-r-k { font: 400 19px/1 var(--term); color: var(--gold); letter-spacing: 1px; }
.pms-r-big { font: 900 42px/1.1 var(--wordart); color: #fff; text-shadow: 0 0 14px rgba(255,213,74,.8); }
.pms-r-big small { font-size: 20px; color: var(--gold); }
.pms-r-line { font-size: 13px; margin: 2px 0 8px !important; }
.pms-r-line b { color: var(--gold); font-variant-numeric: tabular-nums; }
.pms-r-small { font-size: 11px; opacity: .8; margin-top: 6px !important; }

/* ----- festive 98 buttons ----- */
.pms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border: 0; cursor: pointer; text-decoration: none; font: 700 13px/1.1 "Figtree", system-ui, sans-serif;
  background: linear-gradient(#1f4d30, #143523); color: var(--cream);
  box-shadow: inset 1px 1px 0 #4f8a62, inset -1px -1px 0 #04120a, inset 2px 2px 0 rgba(255,255,255,.08), 0 0 0 1px var(--gold); }
.pms-btn:hover { background: linear-gradient(#26603b, #1a4229); }
.pms-btn:active { box-shadow: inset 1px 1px 0 #04120a, inset -1px -1px 0 #4f8a62, 0 0 0 1px var(--gold); transform: translateY(1px); }
.pms-btn.go { width: 100%; padding: 12px 18px; font-size: 17px; color: #fff; background: repeating-linear-gradient(135deg, #d62b2b 0 14px, #b71c1c 14px 28px);
  box-shadow: inset 1px 1px 0 #ff8a80, inset -1px -1px 0 #5d0a0a, 0 0 0 2px var(--gold); text-shadow: 0 1px 0 #5d0a0a; animation: pms-glow 1.4s ease-in-out infinite; }
@keyframes pms-glow { 50% { box-shadow: inset 1px 1px 0 #ff8a80, inset -1px -1px 0 #5d0a0a, 0 0 0 2px var(--gold), 0 0 18px rgba(255,213,74,.8); } }

/* ----- the calendar: 30 gifts in the snow, each a bit bigger ----- */
.pms-cal { container-type: inline-size; padding: 12px 12px 10px; color: var(--cream);
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 1px, transparent 2px) 0 0 / 26px 26px, radial-gradient(circle at 70% 80%, rgba(255,255,255,.06) 0 1.5px, transparent 2.5px) 0 0 / 34px 34px,
    repeating-linear-gradient(45deg, rgba(198,40,40,.07) 0 6px, transparent 6px 24px), repeating-linear-gradient(-45deg, rgba(255,213,74,.04) 0 6px, transparent 6px 24px), var(--pine); }
.pms-cal-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.pms-cal-h b { font: 400 22px/1 var(--term); color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.pms-cal-h span { font-size: 12px; opacity: .8; }
.pms-gifts { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(30, 1fr); gap: 14px 3px; align-items: end;
  background: linear-gradient(transparent calc(100% - 20px), #e9f2fb calc(100% - 20px)) ; border-radius: 0 0 6px 6px; }
.pms-gifts li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.pms-gifts li > b { font: 700 10px/20px "Figtree", system-ui, sans-serif; color: #36506b; height: 20px; }
.pmg { position: relative; width: min(100%, 26px); height: var(--h); padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.pmg-box, .pmg-lid { position: absolute; left: 0; right: 0; background: linear-gradient(90deg, transparent 40%, var(--r) 40%, var(--r) 60%, transparent 60%), var(--p); }
.pmg-box { bottom: 0; top: 6px; box-shadow: inset -3px -3px 0 rgba(0,0,0,.2), inset 2px 2px 0 rgba(255,255,255,.25); }
.pmg-box::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 3px; background: var(--r); }
.pmg-lid { top: 0; height: 8px; left: -2px; right: -2px; box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .3s; }
.pmg-lid::after { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 7px; margin-left: -5px; border: 2px solid var(--r); border-radius: 50% 50% 0 0; }
.pmg:hover .pmg-lid, .pmg:focus-visible .pmg-lid { transform: translateY(-4px) rotate(-6deg); }
.pmg:focus-visible { outline: 2px dotted var(--gold); outline-offset: 3px; }
.pmg.sel { filter: drop-shadow(0 0 6px #fff); }
/* opened days: the lid sits beside the box, a green tick on the front */
.pmg.past .pmg-lid { transform: translate(7px, -2px) rotate(28deg); opacity: .9; }
.pmg.past .pmg-box { filter: saturate(.55) brightness(.9); }
.pmg-ok { position: absolute; left: 50%; bottom: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #2e9a3e; color: #fff; font: 900 11px/16px sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
/* today: glowing, bouncing, with a flag */
.pmg.now { animation: pms-hop 1.1s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--gold)) drop-shadow(0 0 14px rgba(255,213,74,.7)); }
@keyframes pms-hop { 50% { transform: translateY(-5px); } }
.pmg-flag { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 2px 5px; background: var(--holly); color: #fff; font: 400 14px/1 var(--term); font-style: normal; letter-spacing: 1px; white-space: nowrap; box-shadow: 0 0 0 1px var(--gold); }
.pmg-flag::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--gold); }
.pmg.star::before { content: "✦"; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); color: var(--gold); font-size: 14px; text-shadow: 0 0 6px var(--gold); animation: pms-blink2 1.8s infinite; }
.pmg.star.now::before { display: none; }
@keyframes pms-blink2 { 50% { opacity: .3; } }
.pms-cal-info { margin: 10px 0 0; min-height: 20px; font-size: 13px; text-align: center; }
.pms-cal-info b { color: var(--gold); }
.pms-cal-info a { color: #9fe8a0; }
@container (max-width: 620px) {
  .pms-gifts { grid-template-columns: repeat(15, 1fr); gap: 26px 4px; background: none; }
  .pms-gifts li { border-bottom: 0; }
  .pms-gifts li > b { color: var(--cream); opacity: .8; }
}

@media (max-width: 560px) {
  .pms-scene { flex-direction: column; align-items: center; padding-top: 30px; min-height: 0; }
  .pms-santa { width: 96px; min-height: 0; margin: 0 0 -4px; }
  .pms .pms-title { font-size: 50px; }
  .pms-sub { font-size: 14px; margin-bottom: 18px; }
  .pms-main { padding-bottom: 30px; }
  .pms-stage { min-height: 118px; }
  .pms-gift { transform: scale(.85); }
  .pms-r-big { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .pms *, .pms *::before { animation: none !important; } }
.pms-gifts li:first-child .pmg-flag, .pms-gifts li:nth-child(16) .pmg-flag { left: -2px; transform: none; }
.pms-gifts li:first-child .pmg-flag::after, .pms-gifts li:nth-child(16) .pmg-flag::after { left: 12px; }
