/* 🎮 "חוויות השוק" in the 3D souk (souk-play.js / souk-play3d.js): the HUD under the title, name tags
   over the market's character, the cards (the hidden gift, the clue, the character's chapter), the guest card. */
.bz-top { flex-wrap: wrap; }
.pl-hud {
  order: 3; flex-basis: 100%; max-width: max-content; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 4px 12px; border: 1px solid rgba(224, 180, 80, .7); border-radius: 999px; background: rgba(36, 16, 27, .78);
  color: #fff4d6; font: 600 13px Rubik, sans-serif; cursor: pointer; backdrop-filter: blur(6px);
}
.pl-hud.hide { display: none; }
.pl-hud:hover { background: rgba(94, 22, 54, .9); }
.pl-hud:focus-visible { outline: 3px solid #ffd36e; outline-offset: 2px; }
.pl-hr { white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { width: 70px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; flex: none; }
.pl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0b450, #ffe9a8); }
.pl-fl, .pl-fest { white-space: nowrap; }
.pl-fest { color: #ffe082; }

/* name tags over things in the scene */
.pl-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pl-tag {
  position: absolute; left: 0; top: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 0;
  padding: 5px 14px 6px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 248, 236, .97), rgba(255, 228, 196, .97));
  color: #2a1a10; font: 700 14px Rubik, sans-serif; white-space: nowrap; will-change: transform; transform-origin: 50% 100%;
  box-shadow: 0 0 0 1.5px #e0b450, 0 6px 16px rgba(0, 0, 0, .35);
}
.pl-tag::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #ffe4c4; }
.pl-tag small { font: 500 11px Rubik, sans-serif; color: #6b4a33; }
.pl-tag .pl-new { position: absolute; top: -12px; inset-inline-end: -10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: #b8336a; color: #fff; box-shadow: 0 0 0 2px #fff; animation: plBob 1.4s ease-in-out infinite; }
@keyframes plBob { 50% { transform: translateY(-4px); } }

/* cards in the souk (a dialog over the scene) */
.pl-card {
  position: absolute; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); max-height: calc(100% - 120px); overflow: auto; overscroll-behavior: contain;
  padding: 18px 18px 16px; border-radius: 16px; background: #fbf3df; color: #2a1a10; font: 400 15px/1.55 Rubik, sans-serif;
  box-shadow: 0 0 0 2px #e0b450, 0 18px 50px rgba(0, 0, 0, .6); animation: plCard .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes plCard { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
.pl-card h3 { margin: 4px 0 2px; font: 400 21px 'Secular One', Rubik, sans-serif; color: #5c1a3a; }
.pl-card h4 { margin: 2px 0 6px; font: 700 16px Rubik, sans-serif; color: #5c1a3a; }
.pl-x { position: absolute; top: 8px; inset-inline-start: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(92, 26, 58, .08); color: #5c1a3a; font-size: 18px; cursor: pointer; }
.pl-x:focus-visible { outline: 3px solid #b8336a; outline-offset: 1px; }
.pl-kick { margin: 0 0 4px; font: 700 13px Rubik, sans-serif; color: #8a5a00; letter-spacing: .2px; }
.pl-muted { margin: 4px 0; color: #6b4a33; font-size: 14px; }
.pl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pl-acts > * { flex: 1 1 140px; min-height: 44px; }
.pl-ipic { display: block; width: 100%; max-height: 42vh; object-fit: contain; border-radius: 10px; background: #fff; margin: 6px 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.pl-note {
  margin: 8px 0; padding: 16px 18px; border-radius: 4px; color: #2b1a0c; font: 400 18px/1.6 'Gveret Levin', Rubik, sans-serif;
  background: linear-gradient(135deg, #f6e7c1, #e4cd98); box-shadow: inset 0 0 30px rgba(120, 80, 20, .25), 0 4px 10px rgba(0, 0, 0, .15); transform: rotate(-1deg);
}
.pl-cl { margin: 6px 0 0; font-weight: 700; color: #5c1a3a; }
.pl-who { display: flex; align-items: center; gap: 12px; padding-inline-end: 34px; }
.pl-face { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: radial-gradient(circle at 35% 30%, #fff, #f2d9a6); box-shadow: 0 0 0 3px #e0b450, 0 6px 14px rgba(0, 0, 0, .2); }
.pl-greet { margin: 12px 0 8px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: 16px; }
.pl-chap { margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, #fffaf0, #f4e6c6); border: 1px solid #e3c98e; }
.pl-story { margin: 0; font-size: 16px; line-height: 1.7; white-space: pre-line; }
.pl-hint { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(184, 51, 106, .08); color: #5c1a3a; font-size: 14px; }

/* the guest's invitation */
.pl-guest {
  position: absolute; z-index: 25; inset-inline-end: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(340px, calc(100% - 24px));
  padding: 14px 16px; border-radius: 14px; background: rgba(251, 243, 223, .97); color: #2a1a10; font: 400 14px/1.5 Rubik, sans-serif;
  box-shadow: 0 0 0 2px #e0b450, 0 14px 40px rgba(0, 0, 0, .5); animation: plCard .35s ease-out;
}
.pl-guest p { margin: 0 0 8px; }
.pl-gt { font: 400 18px 'Secular One', Rubik, sans-serif; color: #5c1a3a; }
.pl-guest .btn { display: inline-flex; min-height: 44px; margin: 4px 0 0 6px; align-items: center; }
@media (max-width: 600px) {
  .pl-hud { font-size: 12px; padding: 3px 10px; }
  .pl-bar { width: 48px; }
  .pl-card { width: calc(100% - 16px); bottom: calc(8px + env(safe-area-inset-bottom)); padding: 16px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pl-card, .pl-guest, .pl-tag .pl-new { animation: none !important; } }
html.a11y-still :is(.pl-card, .pl-guest, .pl-tag .pl-new) { animation: none !important; }


/* 🗺️ a quest seal's tag */
.pl-qtag { background: rgba(78, 47, 21, .9) !important; color: #ffe6a8 !important; border-color: #c99a4b !important; }

/* 🥁 the parade: the big countdown and the arrow that points to it (owner, 2026-11-18) */
.pl-pcount { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none;
  text-align: center; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .75), 0 0 2px #000; background: radial-gradient(circle at 50% 46%, rgba(80, 10, 40, .38), transparent 60%); }
.pl-pcount.hide { display: none; }
.pl-pck { font: 700 clamp(18px, 3.6vw, 30px)/1.2 'Secular One', Rubik, sans-serif; color: #ffe08a; }
.pl-pcn { font: clamp(120px, 30vmin, 260px)/1 'Secular One', Rubik, sans-serif; color: #fff; -webkit-text-stroke: 3px #b8336a; }
.pl-pcn.pop { animation: plPop .9s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes plPop { 0% { transform: scale(1.9); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.pl-pcw { font: 600 clamp(15px, 2.6vw, 20px)/1.3 Rubik, sans-serif; background: rgba(0, 0, 0, .45); padding: 4px 12px; border-radius: 999px; }
.pl-parrow { position: absolute; left: 50%; bottom: calc(18px + var(--bottom-nav, 0px)); transform: translateX(-50%); z-index: 29; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pl-parrow.hide { display: none; }
.pl-pa { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 10, 30, .72); border: 3px solid #ffd36e;
  box-shadow: 0 0 22px rgba(255, 211, 110, .55); transition: transform .25s ease-out; }
.pl-pai { display: block; font-size: 40px; line-height: 1; color: #ffd36e; transform: rotate(-90deg); }   /* ➤ points right; turned to point up = straight ahead */
.pl-parrow.ok .pl-pa { border-color: #7dffb0; box-shadow: 0 0 26px rgba(125, 255, 176, .7); }
.pl-parrow.ok .pl-pai { color: #7dffb0; }
.pl-pal { font: 700 14px/1.2 Rubik, sans-serif; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .pl-pa { width: 58px; height: 58px; } .pl-pai { font-size: 32px; } .pl-pal { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .pl-pcn.pop { animation: none; } .pl-pa { transition: none; } }
html.a11y-still .pl-pcn.pop { animation: none; }

/* ⏱️ the parade five minutes ahead: a note + a small cute stopwatch (owner, 2026-11-19) */
.pl-pwatch { position: absolute; top: calc(58px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 28; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: linear-gradient(135deg, #fff4dc, #ffd9e8);
  border: 2px solid #b8336a; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); color: #4a1030; direction: rtl; }
.pl-pwatch.hide { display: none; }
.pl-pwi { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid #b8336a; flex: none; }
.pl-pwi::before { content: ''; position: absolute; top: -8px; left: 50%; width: 8px; height: 6px; margin-left: -4px; background: #b8336a; border-radius: 2px; }
.pl-pwh { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 12px; margin-left: -1px; background: #b8336a; border-radius: 2px; transform-origin: 50% 100%; transition: transform .3s; }
.pl-pwt { display: flex; flex-direction: column; line-height: 1.05; }
.pl-pwt small { font: 600 11px Rubik, sans-serif; }
.pl-pwn { font: 20px 'Secular One', Rubik, sans-serif; font-variant-numeric: tabular-nums; }
.pl-pwatch.soon .pl-pwi { animation: plTick 1s ease-in-out infinite; }
@keyframes plTick { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.pl-pnote { position: absolute; top: calc(104px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 31; width: min(420px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(43, 10, 30, .92); color: #fff;
  border: 2px solid #ffd36e; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); direction: rtl; animation: plNote .5s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity .5s; }
.pl-pnote.out { opacity: 0; }
.pl-pnote > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font: 500 14px/1.35 Rubik, sans-serif; }
.pl-pnote b { font: 17px 'Secular One', Rubik, sans-serif; color: #ffe08a; }
.pl-pnb { font-size: 30px; }
.pl-pnx { background: none; border: 0; color: #fff; font-size: 18px; min-width: 36px; min-height: 36px; cursor: pointer; }
@keyframes plNote { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-pnote, .pl-pwatch.soon .pl-pwi { animation: none; } }
