/* 0.57 «Сезоны» Halloween — «Кто вампир?» (public/vampire-game.js): a candle-lit dinner in a haunted mansion — a night
   room in plum and violet, a long table with candles, portraits on the wall whose eyes follow the pointer, the guests'
   seats round the table (their clues in parchment bubbles), a gilt mirror for one's own film card, bats. Phones first:
   the room fills the screen, the seats two to a row; reduced motion: no flicker, no flying, no glancing portraits. */
.hv-season { margin: 4px 0 12px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(150, 70, 200, .2), rgba(240, 122, 26, .06)); border: 1px solid rgba(190, 130, 255, .3); }
.hv-season-l { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffb35c; margin-bottom: 6px; }
.hv-entry-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.hv-entry-btn:hover, .hv-entry-btn:focus-visible { border-color: #c48cff; background: rgba(255, 255, 255, .08); }
.hv-entry-ico { font-size: 28px; line-height: 1; }
.hv-entry-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-entry-t small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.hv-board { position: fixed; inset: 0; z-index: 2650; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(6, 3, 12, .78); }
.hv-board.hidden { display: none; }
.hv-room {
  position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: calc(100dvh - 36px); overflow: hidden; border-radius: 18px; color: #f3ecff;
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(255, 170, 70, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #1d1030 0%, #2a1442 55%, #1a0e28 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(200, 150, 255, .18);
}
.hv-room::before { /* the wainscot */ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, rgba(60, 28, 16, .0), rgba(60, 28, 16, .55)); }
.hv-wall { position: absolute; left: 0; right: 0; top: 78px; display: flex; justify-content: space-between; padding: 0 18px; pointer-events: none; opacity: .9; }
.hv-portrait { position: relative; width: 46px; height: 58px; border-radius: 6px; background: linear-gradient(#3b2a1c, #2a1b10); box-shadow: inset 0 0 0 3px #b8892e, inset 0 0 0 5px #5b3d12, 0 4px 10px rgba(0, 0, 0, .5); }
.hv-portrait::before { content: ''; position: absolute; left: 11px; right: 11px; top: 12px; bottom: 6px; border-radius: 45% 45% 10% 10%; background: #52406a; }
.hv-portrait i { position: absolute; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 4px rgba(255, 240, 180, .7); }
.hv-portrait i:nth-child(1) { left: 16px; } .hv-portrait i:nth-child(2) { right: 16px; }
.hv-portrait i::after { content: ''; position: absolute; left: 1.5px; top: 1.5px; width: 2px; height: 2px; border-radius: 50%; background: #120a1c; transform: translate(var(--ex, 0), var(--ey, 0)); transition: transform .25s ease; }
.hv-bats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hv-bat { position: absolute; width: 34px; height: 18px; opacity: .85; animation: hv-fly 9s linear infinite; }
.hv-bat.b2 { width: 24px; top: 22%; animation-duration: 12s; animation-delay: -5s; opacity: .6; }
.hv-bat svg { width: 100%; height: 100%; animation: hv-flap .32s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes hv-fly { from { left: -40px; top: 18%; } 50% { top: 9%; } to { left: calc(100% + 40px); top: 15%; } }
@keyframes hv-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.hv-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px 4px 18px; }
.hv-title { font-family: 'Rubik Wet Paint', 'Creepster', 'Chalkduster', fantasy; font-size: 22px; letter-spacing: .02em; color: #ffb35c; text-shadow: 0 0 10px rgba(255, 120, 30, .45); }
.hv-where { flex: 1; min-width: 0; color: #cdb8ec; font-size: 14.5px; }
.hv-x { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(220, 190, 255, .4); background: rgba(0, 0, 0, .2); color: #f3ecff; font-size: 24px; line-height: 1; cursor: pointer; }
.hv-time { position: relative; z-index: 1; height: 4px; margin: 4px 18px; visibility: hidden; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.hv-time.on { visibility: visible; }
.hv-time > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #9b5cff, #ffb35c); transform-origin: left; }
.hv-main { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: auto; padding: 14px 76px 18px; }
.hv-x:focus-visible, .hv-go:focus-visible, .hv-end:focus-visible, .hv-seat:focus-visible, .hv-say:focus-visible, .hv-in:focus-visible, .hv-rn:focus-visible { outline: 3px solid #ffb35c; outline-offset: 2px; }
.hv-h { margin: 0 0 6px; font-size: clamp(19px, 3.6vw, 25px); line-height: 1.25; text-align: center; }
.hv-p { margin: 0 auto 12px; max-width: 560px; color: #d9c9f2; font-size: 15px; line-height: 1.45; text-align: center; }
.hv-note { margin: 10px 0 0; color: #cdb8ec; font-size: 14px; text-align: center; }

/* The intro */
.hv-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hv-rules { margin: 0; padding: 0 0 0 22px; max-width: 560px; color: #eadcff; font-size: 15.5px; line-height: 1.55; }
.hv-rounds { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; color: #cdb8ec; font-size: 14px; }
.hv-rn { min-width: 44px; min-height: 44px; border-radius: 22px; border: 1px solid rgba(220, 190, 255, .35); background: rgba(0, 0, 0, .2); color: #f3ecff; font: inherit; font-weight: 700; cursor: pointer; }
.hv-rn.on { background: #ffb35c; border-color: #ffb35c; color: #2a1442; }
.hv-go, .hv-say { min-height: 48px; padding: 0 24px; border-radius: 24px; border: 0; background: #ffb35c; color: #2a1442; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
.hv-go:disabled, .hv-say:disabled { opacity: .5; cursor: default; }
.hv-end { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(220, 190, 255, .35); background: rgba(0, 0, 0, .25); color: #e6d6ff; font: inherit; font-size: 14px; cursor: pointer; z-index: 2; }

/* The mirror: one's own film */
.hv-mirror { position: relative; display: flex; gap: 14px; align-items: center; margin: 0 auto 12px; padding: 12px 16px; max-width: 460px; border-radius: 48% 48% 14px 14px / 30% 30% 14px 14px; background: radial-gradient(80% 70% at 40% 25%, rgba(210, 225, 255, .18), rgba(40, 30, 70, .55)); box-shadow: inset 0 0 0 3px #c99a3a, inset 0 0 0 6px #6b4a14, inset 0 0 22px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .45); }
.hv-mirror.small { max-width: 380px; padding: 8px 14px; gap: 10px; }
.hv-poster { position: relative; flex: none; width: 78px; height: 116px; border-radius: 4px; overflow: hidden; background: #2a1b3a; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.hv-mirror.small .hv-poster { width: 46px; height: 68px; }
.hv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-film { min-width: 0; }
.hv-film small { display: block; color: #cdb8ec; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.hv-film b { display: block; font-size: clamp(18px, 3.4vw, 23px); line-height: 1.2; overflow-wrap: anywhere; }
.hv-mirror.small .hv-film b { font-size: 16px; }
.hv-film span { color: #d9c9f2; font-size: 14px; }

/* The table and its seats */
.hv-table { position: relative; margin: 34px auto 0; max-width: 760px; padding: 18px 12px 14px; border-radius: 26px; background: linear-gradient(180deg, #5a2f1c, #3e1f12); box-shadow: inset 0 2px 0 rgba(255, 200, 140, .15), inset 0 -6px 0 rgba(0, 0, 0, .25), 0 10px 26px rgba(0, 0, 0, .45); }
.hv-candles { position: absolute; left: 0; right: 0; top: -22px; display: flex; justify-content: space-around; pointer-events: none; }
.hv-candle { position: relative; width: 10px; height: 26px; border-radius: 3px; background: linear-gradient(90deg, #f3ead2, #fffaf0 40%, #d9cfb4); }
.hv-candle::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 10px; height: 16px; margin-left: -5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff8c8, #ffc23d 45%, #ff7a1a 75%, transparent 76%); box-shadow: 0 0 16px 6px rgba(255, 170, 60, .35); animation: hv-flicker 1.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hv-candle:nth-child(2)::before { animation-delay: -.5s; } .hv-candle:nth-child(3)::before { animation-delay: -.9s; }
@keyframes hv-flicker { 0% { transform: rotate(-3deg); opacity: .92; } 50% { transform: rotate(2deg); opacity: 1; } 100% { transform: rotate(-1deg); opacity: .86; } }
.hv-seats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hv-seats > .hv-seat { box-sizing: border-box; flex: 0 1 162px; min-width: 0; }
.hv-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 10px 6px; border-radius: 16px; border: 1px solid rgba(255, 210, 160, .16); background: rgba(28, 12, 34, .86); color: #f3ecff; font: inherit; text-align: center; }
button.hv-seat { cursor: pointer; }
button.hv-seat:hover:not(:disabled) { border-color: #ffb35c; background: rgba(40, 14, 50, .6); }
.hv-seat.me { border-color: rgba(196, 140, 255, .55); }
.hv-seat.picked { border-color: #ffb35c; background: rgba(255, 179, 92, .16); box-shadow: 0 0 0 2px rgba(255, 179, 92, .35); }
.hv-seat.vamp { border-color: #ff4d6d; background: rgba(120, 10, 40, .4); }
.hv-seat:disabled { cursor: default; }
.hv-av { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #3a2452; display: grid; place-items: center; font-weight: 800; color: #e6d6ff; box-shadow: 0 0 0 2px rgba(255, 200, 140, .25); }
.hv-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.hv-clue { display: block; max-width: 100%; padding: 4px 9px; border-radius: 10px; background: #f4e7c8; color: #3a2214; font-size: 13.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.hv-clue.l2 { background: #e8d5ff; color: #2a1442; }
.hv-clue.none { background: rgba(255, 255, 255, .08); color: #b9a6d8; font-weight: 500; }
.hv-tag { font-size: 12px; color: #ffb35c; font-weight: 700; }
.hv-votes { position: absolute; top: 6px; right: 8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #ffb35c; color: #2a1442; font-size: 12.5px; font-weight: 800; line-height: 22px; }

/* The clue box */
.hv-ask { display: flex; gap: 8px; max-width: 460px; margin: 4px auto 0; }
.hv-in { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 24px; border: 1px solid rgba(220, 190, 255, .4); background: rgba(10, 4, 18, .55); color: #f3ecff; font: inherit; font-size: 17px; }
.hv-in::placeholder { color: #9c88bd; }

/* The reveal */
.hv-verdict { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; text-align: center; }
.hv-big { font-size: 56px; line-height: 1; }
.hv-verdict.caught .hv-big { animation: hv-pop .6s ease-out; }
.hv-verdict.escaped .hv-big { animation: hv-away 1.6s ease-in forwards; }
@keyframes hv-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hv-away { 0% { transform: translate(0, 0); } 40% { transform: translate(-30px, -10px); } 100% { transform: translate(140px, -60px); opacity: 0; } }
.hv-verdict.caught { background: radial-gradient(60% 100% at 50% 0%, rgba(255, 210, 120, .22), transparent 70%); border-radius: 18px; padding-top: 6px; }
.hv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 0 auto 12px; }
.hv-two .hv-mirror { margin: 0; max-width: none; }
.hv-gain { color: #9fe0a8; font-weight: 800; font-size: 13px; }

/* The podium */
.hv-steps { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 8px 0 12px; padding: 0; list-style: none; }
.hv-step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 120px; padding: 10px 6px; border-radius: 14px 14px 4px 4px; background: rgba(255, 255, 255, .06); text-align: center; }
.hv-step.p1 { min-height: 150px; background: linear-gradient(180deg, rgba(255, 179, 92, .35), rgba(255, 179, 92, .08)); order: 2; }
.hv-step.p2 { min-height: 120px; order: 1; } .hv-step.p3 { min-height: 100px; order: 3; }
.hv-step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-step small { color: #d9c9f2; font-size: 12.5px; }
.hv-rows { margin: 8px auto 0; padding: 0; max-width: 460px; list-style: none; }
.hv-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14.5px; }
.hv-row.me { color: #ffb35c; }
.hv-row .hv-pl { width: 22px; text-align: right; color: #cdb8ec; }
.hv-row .hv-rn2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .hv-board { padding: 0; }
  .hv-room { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .hv-wall { display: none; }
  .hv-top { padding: 10px 10px 2px 14px; }
  .hv-where { order: 3; flex-basis: 100%; font-size: 13.5px; }
  .hv-main { padding: 10px 12px 18px; }
  .hv-seats { gap: 8px; }
  .hv-seats > .hv-seat { flex: 0 1 calc(50% - 4px); }
  .hv-two { grid-template-columns: 1fr; }
  .hv-step { width: 96px; }
  .hv-mirror { gap: 10px; padding: 10px 12px; }
  .hv-poster { width: 60px; height: 90px; }
}
@media (max-width: 340px) { .hv-title { font-size: 19px; } .hv-seats { gap: 6px; } .hv-seat { padding: 8px 4px; } }
/* 0.66 «Подсадной» — the same room in the ordinary skin all year (.hv-board.plain): the hall's own dark panel and amber,
   no portraits, bats or candles, a plain card instead of the gilt mirror, a plain table; the Halloween skin above returns
   in the season. */
.hv-board.plain { background: rgba(6, 8, 12, .74); }
.hv-board.plain .hv-room { color: var(--text); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); }
.hv-board.plain .hv-room::before, .hv-board.plain .hv-wall, .hv-board.plain .hv-bats, .hv-board.plain .hv-candles { display: none; }
.hv-board.plain .hv-title { font-family: inherit; font-weight: 800; font-size: 20px; letter-spacing: 0; color: var(--text); text-shadow: none; }
.hv-board.plain .hv-mirror { border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); box-shadow: none; }
.hv-board.plain .hv-mirror::before, .hv-board.plain .hv-mirror::after { display: none; }
.hv-board.plain .hv-table { margin-top: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.hv-board.plain .hv-seat { border-color: var(--line); background: rgba(255, 255, 255, .04); }
.hv-board.plain .hv-seat.me { border-color: rgba(88, 101, 242, .7); }
.hv-board.plain .hv-seat.picked { border-color: var(--accent); background: rgba(229, 160, 13, .14); box-shadow: 0 0 0 2px rgba(229, 160, 13, .35); }
.hv-board.plain .hv-seat.vamp { border-color: var(--bad); background: rgba(255, 107, 107, .14); }
.hv-board.plain .hv-clue { background: #e8eaee; color: #14171e; }
.hv-board.plain .hv-clue.l2 { background: #cdd3ff; color: #14171e; }
.hv-board.plain .hv-clue.none { background: rgba(255, 255, 255, .06); color: var(--muted); }
.hv-board.plain .hv-go, .hv-board.plain .hv-say, .hv-board.plain .hv-rn.on { background: var(--accent); border-color: var(--accent); color: #14171e; }
.hv-board.plain .hv-in { border-color: var(--line); background: rgba(0, 0, 0, .35); color: var(--text); }
.hv-board.plain .hv-in::placeholder { color: var(--muted); }
.hv-board.plain .hv-verdict.caught { background: radial-gradient(60% 100% at 50% 0%, rgba(62, 207, 122, .16), transparent 70%); }
.hv-board.plain .hv-step.p1 { background: linear-gradient(180deg, rgba(229, 160, 13, .3), rgba(229, 160, 13, .06)); }
.hv-board.plain .hv-step small { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hv-bat, .hv-bat svg, .hv-candle::before, .hv-verdict .hv-big { animation: none !important; }
  .hv-bat { left: 70%; top: 12%; }
  .hv-portrait i::after { transition: none; transform: none; }
}
