/* ==========================================================================
   <patron-walk> — folyamatos, scroll-vezérelt bejárás
   ========================================================================== */

patron-walk {
  display: block;
  position: relative;
  background: #0b0a09;
  --pw-ink: #f5efe4;
  --pw-muted: #a79c8e;
  --pw-accent: #d8232a;
  --pw-cream: #e7dcc8;
  --pw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

patron-walk .pw-track {
  position: relative;
  width: 100%;
  /* a magasságot a JS állítja: képkockák × px-frame + viewport */
}

patron-walk .pw-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 380px;
  overflow: hidden;
  background: #0b0a09;
}

patron-walk .pw-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0b0a09;
}
patron-walk .pw-canvas { position: relative; visibility: hidden; }
patron-walk[data-rendered-frame] .pw-canvas { visibility: visible; }
patron-walk .pw-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- HUD ------------------------------------------------------------- */
patron-walk .pw-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--pw-ink);
  font-family: var(--pw-font);
}

patron-walk .pw-brand {
  position: absolute;
  top: clamp(14px, 3vh, 28px);
  left: clamp(14px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 7px;
  border-radius: 13px;
  background: rgba(10, 8, 7, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

patron-walk .pw-mono {
  display: grid;
  place-items: center;
  width: clamp(30px, 4.6vh, 40px);
  height: clamp(30px, 4.6vh, 40px);
  border: 2px solid rgba(245, 239, 228, .55);
  border-radius: 8px;
  color: var(--pw-cream);
  font-weight: 800;
  font-size: clamp(14px, 2.2vh, 19px);
  line-height: 1;
  padding-bottom: 1px;
}

patron-walk .pw-brand b {
  display: block;
  font-size: clamp(10px, 1.5vh, 12px);
  letter-spacing: .2em;
  font-weight: 700;
}

patron-walk .pw-brand i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: clamp(8px, 1.1vh, 10px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pw-muted);
}

patron-walk .pw-rail {
  position: absolute;
  left: clamp(14px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: clamp(120px, 34vh, 320px);
  background: rgba(245, 239, 228, .18);
  border-radius: 2px;
}

patron-walk .pw-rail i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--pw-accent);
  border-radius: 2px;
}

patron-walk .pw-count {
  position: absolute;
  left: clamp(14px, 2vw, 30px);
  bottom: clamp(16px, 3.4vh, 36px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 8, 7, .38);
  font-size: clamp(9px, 1.2vh, 11px);
  letter-spacing: .2em;
  color: var(--pw-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

patron-walk .pw-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 54px);
  transform: translateX(-50%);
  padding: 9px 16px;
  border: 1.5px solid rgba(245, 239, 228, .18);
  border-radius: 999px;
  background: rgba(10, 8, 7, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: clamp(9px, 1.2vh, 11px);
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .45s ease, transform .45s ease;
}

patron-walk .pw-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

/* előtöltés jelzője, vékony vonal a tetején */
patron-walk .pw-load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(245, 239, 228, .08);
  transition: opacity .5s ease;
}

patron-walk .pw-load.is-done { opacity: 0; }

patron-walk .pw-load i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pw-accent);
  transition: width .3s linear;
  opacity: .8;
}

@media (max-width: 700px) {
  patron-walk .pw-brand i { display: none; }
  patron-walk .pw-rail { height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
  patron-walk * { transition: none !important; }
}
