/* במקביל: the second task. Each challenge's photograph is a canvas over the pour film (two.js); the touch targets are
   invisible, each standing over its own candle, cup or fireplace in it. */
.two-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; transform-origin: 50% 40%; opacity: 0; }
.two-srcs { position: absolute; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.two-srcs video { width: 2px; height: 2px; }
#s-play > .two { position: absolute; inset: 0; width: auto; max-width: none; z-index: 2; pointer-events: none; }
#s-play > .two[hidden] { display: none; }
/* Above the words on the table while pouring; under the result once it is shown. */
#s-play.won > .two, #s-play.missed > .two { z-index: 0; }
#s-play.won > .two .two-hit, #s-play.missed > .two .two-hit { pointer-events: none; }
.two-hit { position: absolute; pointer-events: auto; background: none; border: 0; padding: 0; margin: 0; touch-action: none;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
/* A touch that does not count yet (before the pour, or out of order): a gold ring opens at the wick. */
.two-hit::after { content: ""; position: absolute; left: 50%; top: 26px; width: 30px; height: 30px; translate: -50% -50%; border-radius: 50%;
  border: 1px solid rgba(230, 207, 156, .85); opacity: 0; pointer-events: none; }
.two-hit.no::after { animation: two-no .5s ease-out; }
@keyframes two-no { 0% { opacity: 1; scale: .6; } 100% { opacity: 0; scale: 1.5; } }

/* Where the second finger goes, shown once the pour has begun and the task has not: the same fingerprint as on the bottle. */
.two-fp { position: absolute; left: 50%; top: -24px; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  border: 1px solid rgba(230, 207, 156, .75); background: rgba(10, 6, 7, .45); opacity: 0; transition: opacity .3s; }
.two-fp svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-hi, #f1dcae); stroke-width: 1.5; stroke-linecap: round; }
.two.pouring:not(.started) .two-fp { opacity: 1; animation: two-ping 1.1s ease-in-out infinite; }
@keyframes two-ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 207, 156, .5); } 60% { box-shadow: 0 0 0 10px rgba(230, 207, 156, 0); } }
#neck-cue.ping .nc-tap { animation: two-ping .55s 2; }
/* After a candle out of order, the next one to light shows itself with a slow gold ring at its wick. */
.two.hinted .hk-c.next:not(.lit)::after { opacity: 1; animation: two-ping 1.1s ease-in-out infinite; }

/* The fireplace: the finger is the match; its filmed flame burns above it, and a ring fills while it is held. */
.logs .two-fp { top: 42%; }
.m-ring { position: absolute; width: 70px; height: 70px; translate: -50% -50%; rotate: -90deg; opacity: 0; pointer-events: none; transition: opacity .2s; }
.m-ring circle { fill: none; stroke: rgba(255, 236, 196, .22); stroke-width: 2; }
.m-ring .arc { stroke: #e6c88a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.two-fire.caught .m-ring .arc { stroke: #f08a4b; }
.two-fire.holding .m-ring { opacity: 1; }
/* The wine and place line would sit over the candles on the table; the intro already named both. */
body:has(#two:not([hidden])) #p-brand { opacity: 0; }
