/*
 * Startbild, Szene „Irish Pub“ (Schnittstelle: frontend/js/quizStage/startScenes/README.md). Alle Selektoren unter .pq-start--irishpub.
 * Die Pub-Fassade an einem verregneten Abend. Bewegung: Regenfäden fallen (transform), Pfützenringe weiten sich, Lampen- und Fensterschein
 * flackern sanft, das Wirtshausschild pendelt minimal; nur transform/opacity. Maße in vw/vh.
 */
.pq-start--irishpub {
  --pqs-plate: rgb(24 13 6 / 0.82);
  --pqs-plate-edge: rgb(243 210 122 / 0.28);
  --pqs-ink: #fff6e0;
  --pqs-ink-soft: #f1dfb4;
  --pqs-accent: #f3d27a;
  --pqs-shine: #fffbe8;
  --pqs-title-font: Georgia, "Times New Roman", serif;
  --pqs-title-weight: 700;
  --pqs-title-tracking: 0;
  background: #0a1015;
}

.pq-start--irishpub .pqs-ip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a1015;
}

/* Nachthimmel, regenschwer. */
.pq-start--irishpub .pqs-ip__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgb(120 150 170 / 0.22), transparent 70%),
    linear-gradient(180deg, #0b141b 0%, #15242c 55%, #0f1a20 100%);
}

/* Fassade: flaschengrüne Bretterwand mit waagrechten Fugen und feiner Maserung. */
.pq-start--irishpub .pqs-ip__front {
  position: absolute;
  inset: 5vh 0 15vh;
  background:
    repeating-linear-gradient(180deg, rgb(0 0 0 / 0.34) 0 0.35vh, transparent 0.35vh 5.2vh),
    repeating-linear-gradient(180deg, rgb(255 255 255 / 0.035) 0 0.15vh, transparent 0.15vh 1.3vh),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.1) 0 0.1vw, transparent 0.1vw 11vw),
    linear-gradient(180deg, #1f4d38 0%, #194130 55%, #123225 100%);
  box-shadow: inset 0 0 12vh rgb(0 0 0 / 0.5);
}
.pq-start--irishpub .pqs-ip__cornice {
  position: absolute;
  inset: 0 0 auto;
  height: 3.2vh;
  background: linear-gradient(180deg, #8a5a2c, #5f3a1a 70%, #3d2210);
  box-shadow: 0 0.6vh 1.4vh rgb(0 0 0 / 0.55), inset 0 0.25vh 0 rgb(255 220 160 / 0.35), 0 -0.3vh 0 #c9a24a;
}
/* Schriftloses Blendenschild mit Messingrand und Kleeblatt (leer: der Titel steht auf der Tafel davor). */
.pq-start--irishpub .pqs-ip__fascia {
  position: absolute;
  left: 24vw;
  right: 24vw;
  top: 5.5vh;
  height: 9vh;
  border-radius: 0.8vh;
  background: linear-gradient(180deg, #14100b, #0b0805);
  box-shadow: 0 0 0 0.45vh #c9a24a, 0 0 0 0.9vh #3d2210, 0 1vh 2vh rgb(0 0 0 / 0.55);
}
.pq-start--irishpub .pqs-ip__sign-clover svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fenster: Holzrahmen, Fensterkreuz, warmes Licht, Vorhang unten, Gläser auf dem Sims. */
.pq-start--irishpub .pqs-ip__win {
  position: absolute;
  top: 27vh;
  width: 24vw;
  height: 38vh;
}
.pq-start--irishpub .pqs-ip__win--l { left: 5vw; }
.pq-start--irishpub .pqs-ip__win--r { right: 5vw; }
.pq-start--irishpub .pqs-ip__winglow {
  position: absolute;
  inset: -9vh -9vw;
  background: radial-gradient(ellipse closest-side, rgb(255 190 100 / 0.38), rgb(255 160 70 / 0.12) 60%, rgb(255 150 60 / 0) 100%);
  animation: pqs-ip-flicker 7s ease-in-out var(--o) infinite;
  will-change: opacity;
}
.pq-start--irishpub .pqs-ip__pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1vh solid #4a2c14;
  border-radius: 1vh 1vh 0.4vh 0.4vh;
  background:
    radial-gradient(ellipse 80% 70% at 50% 60%, #ffe3a6 0%, #ffc56a 55%, #e8903a 100%);
  box-shadow: 0 0 0 0.35vh #c9a24a, inset 0 0 4vh rgb(150 70 10 / 0.55);
}
.pq-start--irishpub .pqs-ip__curtain {
  position: absolute;
  inset: 52% 0 0;
  background:
    repeating-linear-gradient(90deg, rgb(120 70 30 / 0.25) 0 0.25vw, transparent 0.25vw 1.5vw),
    linear-gradient(180deg, #f3e4c2, #e2cd9e);
  border-top: 0.5vh solid #b98f4a;
}
.pq-start--irishpub .pqs-ip__glass {
  position: absolute;
  bottom: 0;
  width: 3.4vw;
  height: calc(var(--h) * 0.24);
  margin-left: -1.7vw;
  border-radius: 0.3vh 0.3vh 0.8vh 0.8vh;
  background: linear-gradient(180deg, #c97d12 0%, #8a4a06 100%);
  opacity: 0.9;
}
.pq-start--irishpub .pqs-ip__glass.has-foam::before {
  content: "";
  position: absolute;
  inset: -0.9vh -0.15vw auto;
  height: 1.2vh;
  border-radius: 0.8vh 0.8vh 0.2vh 0.2vh;
  background: #fff4d6;
}
.pq-start--irishpub .pqs-ip__mullion {
  position: absolute;
  background: #4a2c14;
  box-shadow: 0 0 0 0.12vh rgb(201 162 74 / 0.5);
}
.pq-start--irishpub .pqs-ip__mullion--v { left: calc(50% - 0.5vh); top: 0; bottom: 0; width: 1vh; }
.pq-start--irishpub .pqs-ip__mullion--h { top: calc(50% - 0.5vh); left: 0; right: 0; height: 1vh; }
.pq-start--irishpub .pqs-ip__sill {
  position: absolute;
  left: -1vw;
  right: -1vw;
  bottom: -2vh;
  height: 2.4vh;
  background: linear-gradient(180deg, #7a4b22, #3d2210);
  box-shadow: 0 1vh 1.6vh rgb(0 0 0 / 0.5), inset 0 0.25vh 0 rgb(255 220 160 / 0.35);
}

/* Laternen an der Wand (an den Rändern). */
.pq-start--irishpub .pqs-ip__lantern {
  position: absolute;
  top: 40vh;
  width: 3.6vh;
}
.pq-start--irishpub .pqs-ip__lantern--l { left: 1.4vw; }
.pq-start--irishpub .pqs-ip__lantern--r { right: 1.4vw; }
.pq-start--irishpub .pqs-ip__lantern svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1.4vh rgb(255 200 110 / 0.75)); }
.pq-start--irishpub .pqs-ip__lglow {
  position: absolute;
  left: 50%;
  top: 4vh;
  width: 22vh;
  height: 22vh;
  margin: -11vh 0 0 -11vh;
  background: radial-gradient(circle closest-side, rgb(255 200 110 / 0.45), rgb(255 160 70 / 0.12) 60%, rgb(255 150 60 / 0) 100%);
  animation: pqs-ip-flicker var(--fl) ease-in-out var(--o) infinite;
  will-change: opacity;
}

/* Wirtshausschild am Ausleger (pendelt kaum): leer, dunkles Holz mit Messingrand und grünem Kleeblatt. */
.pq-start--irishpub .pqs-ip__bracket {
  position: absolute;
  left: 2.5vw;
  top: 14vh;
  width: 0;
  height: 0;
}
.pq-start--irishpub .pqs-ip__arm {
  position: absolute;
  left: -0.5vw;
  top: 0;
  width: 9vw;
  height: 0.7vh;
  background: #0b0705;
  box-shadow: 0 0.3vh 0.6vh rgb(0 0 0 / 0.5);
}
.pq-start--irishpub .pqs-ip__swing {
  position: absolute;
  left: 5.5vw;
  top: 0.7vh;
  width: 0;
  transform-origin: 50% 0;
  animation: pqs-ip-sway 8s ease-in-out infinite alternate;
}
.pq-start--irishpub .pqs-ip__chain {
  display: block;
  position: absolute;
  left: -1.6vw;
  top: 0;
  width: 3.2vw;
  height: 2.4vh;
  border-left: 0.2vh solid #0b0705;
  border-right: 0.2vh solid #0b0705;
  transform: scaleX(0.9);
}
.pq-start--irishpub .pqs-ip__signboard {
  position: absolute;
  left: -2.4vw;
  top: 2.4vh;
  width: 4.8vw;
  height: 7.2vh;
  min-width: 6.4vh;
  display: grid;
  place-items: center;
  border-radius: 0.8vh;
  background: linear-gradient(180deg, #2b190c, #170d06);
  box-shadow: 0 0 0 0.35vh #c9a24a, 0 0 0 0.7vh #3d2210, 0 1vh 1.8vh rgb(0 0 0 / 0.55);
}
.pq-start--irishpub .pqs-ip__sign-clover { width: 3.6vh; height: 3.6vh; }

/* Nasses Pflaster: dunkel, mit Spiegelung der Fenster. */
.pq-start--irishpub .pqs-ip__street {
  position: absolute;
  inset: auto 0 0;
  height: 17vh;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.25) 0 0.2vw, transparent 0.2vw 5vw),
    linear-gradient(180deg, #1d2a30 0%, #0d1519 100%);
  border-top: 0.5vh solid #0a0f12;
  box-shadow: inset 0 1.6vh 2.4vh rgb(0 0 0 / 0.45);
}
.pq-start--irishpub .pqs-ip__reflect {
  position: absolute;
  top: 0;
  width: 24vw;
  height: 100%;
  background: linear-gradient(180deg, rgb(255 190 100 / 0.42), rgb(255 160 70 / 0.12) 60%, rgb(255 150 60 / 0));
}
.pq-start--irishpub .pqs-ip__reflect--l { left: 5vw; }
.pq-start--irishpub .pqs-ip__reflect--r { right: 5vw; }

/* Regen: dünne helle Fäden, leicht schräg. */
.pq-start--irishpub .pqs-ip__rain { position: absolute; inset: 0; }
.pq-start--irishpub .pqs-ip__drop {
  position: absolute;
  top: 0;
  width: 0.18vh;
  min-width: 1.5px;
  height: var(--len);
  background: linear-gradient(180deg, rgb(200 222 240 / 0), rgb(200 222 240 / 0.95));
  opacity: calc(var(--a) + 0.25);
  transform: translate(0, -12vh) rotate(8deg);
  animation: pqs-ip-rain var(--d) linear var(--o) infinite;
  will-change: transform;
}
@keyframes pqs-ip-rain {
  from { transform: translate(0, -12vh) rotate(8deg); }
  to { transform: translate(-14vh, 112vh) rotate(8deg); }
}

/* Pfützenringe: ein dünner Ring weitet sich und verblasst. */
.pq-start--irishpub .pqs-ip__ripple {
  position: absolute;
  width: var(--s);
  height: calc(var(--s) * 0.28);
  margin: calc(var(--s) * -0.14) 0 0 calc(var(--s) * -0.5);
  border: 0.15vh solid rgb(190 215 235 / 0.6);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
  animation: pqs-ip-ripple 3.2s ease-out var(--o) infinite;
  will-change: transform, opacity;
}
@keyframes pqs-ip-ripple {
  0% { transform: scale(0.2); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes pqs-ip-flicker {
  0%, 100% { opacity: 0.9; }
  18% { opacity: 1; }
  34% { opacity: 0.82; }
  52% { opacity: 0.97; }
  71% { opacity: 0.86; }
  86% { opacity: 1; }
}
@keyframes pqs-ip-sway {
  from { transform: rotate(-1.6deg); }
  to { transform: rotate(1.6deg); }
}

.pq-start--irishpub .pqs-ip__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 80% at 50% 45%, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / 0.6) 100%);
}

/* Standbild: Schein ruhig, Regen als feste Striche auf verschiedenen Höhen, Pfützenringe als zarte Kreise. */
.pq-start--irishpub.is-still .pqs-ip__winglow,
.pq-start--irishpub.is-still .pqs-ip__lglow { opacity: 0.95; }
.pq-start--irishpub.is-still .pqs-ip__drop { transform: translate(0, var(--still)) rotate(8deg); }
.pq-start--irishpub.is-still .pqs-ip__ripple { opacity: 0.4; transform: scale(0.7); }
@media (prefers-reduced-motion: reduce) {
  .pq-start--irishpub .pqs-ip__winglow,
  .pq-start--irishpub .pqs-ip__lglow { opacity: 0.95; }
  .pq-start--irishpub .pqs-ip__drop { transform: translate(0, var(--still)) rotate(8deg); }
  .pq-start--irishpub .pqs-ip__ripple { opacity: 0.4; transform: scale(0.7); }
}
