/* «Voll Las Vegas» – the duel screens (vegas.js, screens/duel.js, components.js). Two scopes (owner, 28.11.2026):
   the casino LOOK (features.vegasLook, a saved design – off in every pack for now) under `.screen.duel.vegas`; the
   EFFECTS that are on in Kieferduell (features.jackpot, urgency, scoreRoll) under `.screen.duel.vg-fx` or on the
   `.vg-*` elements that only vegas.js creates. Other apps never see any of it. Gold and neon around the content – the question text and the answers stay as calm
   and readable as before. prefers-reduced-motion: no blinking, flashing or shaking (the gold stays). Nothing
   blinks faster than 3 times per second. */
/* the one set of casino colours for both vegas style sheets (vegas-home.css uses them too); only the .vg-* elements
   and the scopes above use them, so they can sit on :root for every app */
:root {
  --vg-gold: #f5b800;
  --vg-gold-2: #ffd54a;
  --vg-gold-3: #fff1b8;
  --vg-gold-deep: #a86a00;
  --vg-gold-hi: #ffe9a0;
  --vg-gold-lo: #a8740a;
  --vg-gold-ink: #7a5200; /* gold text on light backgrounds (≥ 4.5:1 on white and on the gold-tinted rows) */
  --vg-glow: rgba(255, 196, 60, .65);
  --vg-neon: #ff2d7a;
  --vg-red: #e5263b;
  --vg-bulb-off: #8a6a1c;
}

/* ------------------------------------------------------------ header card: a marquee of light bulbs */
.screen.duel.vegas .scorebar { position: relative; border: 2px solid var(--vg-gold); box-shadow: 0 0 0 1px var(--vg-gold-deep), 0 6px 22px -10px var(--vg-gold), inset 0 0 0 1px color-mix(in srgb, var(--vg-gold-2) 40%, transparent); }
.screen.duel.vegas .scorebar::before,
.screen.duel.vegas .scorebar::after {
  content: ""; position: absolute; inset: -7px; border-radius: calc(var(--r-lg) + 7px); padding: 6px; pointer-events: none;
  background: radial-gradient(circle, #fffbe8 0 1.4px, var(--vg-gold-2) 2px, var(--vg-gold) 2.7px, transparent 3.3px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 2px var(--vg-gold-2));
}
/* the second set sits between the first: the two blink in turn (a chase), 1.25 times per second */
.screen.duel.vegas .scorebar::after { background-position: 9px 9px; animation: vgBlink 1.6s steps(1, end) infinite; }
.screen.duel.vegas .scorebar::before { animation: vgBlink 1.6s steps(1, end) .8s infinite; }
@keyframes vgBlink { 0% { opacity: 1; } 50% { opacity: .22; } }
.screen.duel.vegas .scorebar .ps { color: var(--vg-gold-deep); text-shadow: 0 1px 0 #fff6d0; }
.screen.duel.vegas .scorebar .me .ps { color: var(--accent); }
.screen.duel.vegas .scorebar .sb-ring .val { stroke: var(--vg-gold); }
.screen.duel.vegas.vg-urgent .scorebar::before, .screen.duel.vegas.vg-urgent .scorebar::after { animation-duration: .7s; }

/* the pill on top */
.screen.duel.vegas .duel-pill { border: 1.5px solid var(--vg-gold); box-shadow: 0 0 10px -2px var(--vg-gold-2); }

/* ------------------------------------------------------------ slot counter + «+N» */
.vg-rolling { display: inline-flex; align-items: flex-end; }
.vg-reel { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; }
.vg-strip { display: block; transform: translateY(0); }
.vg-strip.go { transform: translateY(calc(var(--n) * -1.1em)); transition: transform var(--d) cubic-bezier(.15,.7,.25,1.04); }
.vg-rc { display: inline-block; }
.vg-plus {
  position: fixed; z-index: 75; pointer-events: none; transform: translate(-50%, -30%); font-weight: 900; font-size: 22px; line-height: 1;
  color: var(--ok, #1fcf6b); text-shadow: 0 2px 0 rgba(0,0,0,.18); animation: vgPlus 1.25s cubic-bezier(.2,.9,.3,1) both;
}
.vg-plus.gold { font-size: 30px; color: var(--vg-gold-2); -webkit-text-stroke: 1px var(--vg-gold-deep); text-shadow: 0 0 12px var(--vg-gold), 0 2px 0 var(--vg-gold-deep); }
@keyframes vgPlus { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }

/* ------------------------------------------------------------ wheel: bulbs, gold rim, no small caption */
.vg-wheel .vg-bulb { fill: var(--vg-gold-2); stroke: var(--vg-gold-deep); stroke-width: 1.4; filter: drop-shadow(0 0 3px var(--vg-gold-2)); }
.vg-wheel .vg-bulb.b1 { animation: vgBulb 1s steps(1, end) infinite; }
.vg-wheel .vg-bulb.b0 { animation: vgBulb 1s steps(1, end) .5s infinite; }
@keyframes vgBulb { 0% { fill: var(--vg-gold-3); } 50% { fill: var(--vg-bulb-off); filter: none; } }
.vg-wheel .glow { box-shadow: 0 0 0 3px var(--vg-gold), 0 0 34px 4px color-mix(in srgb, var(--vg-gold-2) 70%, transparent), 0 0 70px 10px color-mix(in srgb, var(--vg-neon) 22%, transparent); }
.screen.duel.vegas .wheel-cap { visibility: hidden; } /* the big reveal says it */
.screen.duel.vegas .wheel-title { color: var(--vg-gold-deep); text-shadow: 0 0 14px color-mix(in srgb, var(--vg-gold-2) 70%, transparent); letter-spacing: .14em; }

/* the mode reveal: zooms in with a golden flash */
.screen.duel.vegas .intro.vg-reveal .intro-card { animation: vgZoom .75s cubic-bezier(.2,1.45,.35,1) both; }
.screen.duel.vegas .intro.vg-reveal .intro-ico { width: 124px; height: 124px; font-size: 72px; box-shadow: 0 0 0 5px var(--vg-gold), 0 0 0 9px color-mix(in srgb, var(--vg-gold-2) 45%, transparent), 0 0 46px 6px color-mix(in srgb, var(--vg-gold-2) 75%, transparent); }
.screen.duel.vegas .intro.vg-reveal .intro-name { font-size: 54px; color: var(--vg-gold-deep); text-shadow: 0 2px 0 #fff3c4, 0 0 22px color-mix(in srgb, var(--vg-gold-2) 80%, transparent); }
.screen.duel.vegas .intro.vg-reveal .intro-cd .n { color: var(--vg-gold-deep); text-shadow: 0 0 18px var(--vg-gold-2); }
@keyframes vgZoom { 0% { opacity: 0; transform: scale(.2) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.12) rotate(1deg); } 100% { transform: none; } }
.vg-gold-flash { position: fixed; inset: 0; z-index: 72; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255,241,184,.95), rgba(245,184,0,.55) 38%, rgba(245,184,0,0) 72%); animation: vgFlash .85s ease-out both; }
@keyframes vgFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ jackpot */
.vg-jp-flash { position: fixed; inset: 0; z-index: 74; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255,213,74,.55), rgba(20,10,0,.55) 75%); animation: vgJpOut 1.9s ease-in both; }
.vg-jp-card { text-align: center; padding: 18px 30px 16px; border-radius: 22px; background: linear-gradient(180deg, #2a1600, #120800); border: 3px solid var(--vg-gold);
  box-shadow: 0 0 0 4px var(--vg-gold-deep), 0 0 50px 8px rgba(255,213,74,.7); animation: vgZoom .6s cubic-bezier(.2,1.45,.35,1) both; position: relative; }
.vg-jp-card::before { content: ""; position: absolute; inset: -12px; border-radius: 30px; padding: 6px; pointer-events: none;
  background: radial-gradient(circle, var(--vg-gold-3) 0 1.8px, var(--vg-gold-2) 2.4px, transparent 3.2px) 0 0 / 16px 16px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: vgBlink .8s steps(1, end) infinite; }
.vg-jp-word { font-family: var(--font-display); font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6cf, #ffd54a 45%, #e09b00 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #6b4300); }
.vg-jp-mult { font-size: 64px; line-height: 1; font-weight: 900; color: #fff; text-shadow: 0 0 18px var(--vg-gold-2), 0 3px 0 var(--vg-gold-deep); }
.vg-jp-sub { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--vg-gold-3); }
@keyframes vgJpOut { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
/* during the jackpot question: a gold frame around the question card, a tag on it */
.screen.duel.vg-fx .vg-jp .qbox { position: relative; border: 2.5px solid var(--vg-gold); box-shadow: 0 0 0 2px var(--vg-gold-deep), 0 0 26px -2px var(--vg-gold-2); }
.vg-jp-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 99px; white-space: nowrap; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: #3a2300; background: linear-gradient(180deg, #ffe58a, #f5b800); border: 1.5px solid var(--vg-gold-deep); box-shadow: 0 0 12px var(--vg-gold-2); }
.vg-jp-banner { margin: 6px auto 4px; max-width: 420px; text-align: center; padding: 10px 14px; border-radius: 16px; background: linear-gradient(180deg, #2a1600, #140900); border: 2.5px solid var(--vg-gold);
  box-shadow: 0 0 0 3px var(--vg-gold-deep), 0 0 30px -4px var(--vg-gold-2); animation: vgZoom .7s .25s cubic-bezier(.2,1.45,.35,1) both; }
.vg-jp-b-word { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05;
  background: linear-gradient(180deg, #fff6cf, #ffd54a 45%, #e09b00 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vg-jp-b-sub { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 700; color: var(--vg-gold-3); }
.vg-jp-banner .vg-jp-b-word { font-size: clamp(19px, 6.2vw, 28px); letter-spacing: .03em; overflow-wrap: anywhere; }
.vg-jp-banner.none { box-shadow: 0 0 0 2px var(--vg-gold-deep); }
.vg-jp-banner.none .vg-jp-b-word { font-size: 16px; letter-spacing: .02em; text-transform: none; }
/* the final cards of a jackpot duel: the points under the right answers («9 Punkte inkl. Jackpot ×3») */
.screen.duel.vg-fx .final-card .final-pts { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--text); }
.screen.duel.vg-fx .final-card .vg-jp-mini { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #3a2300;
  background: linear-gradient(180deg, #ffe58a, #f5b800); border: 1px solid var(--vg-gold-deep); white-space: nowrap; }

/* ------------------------------------------------------------ urgency: the last 5 seconds */
.screen.duel.vg-fx .qbox { position: relative; }
.vg-count { position: absolute; top: -16px; right: -8px; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #ff6b6b, var(--vg-red) 60%, #8f0d1b); color: #fff; font-weight: 900; font-size: 28px; font-variant-numeric: tabular-nums;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--vg-red), 0 0 22px 2px rgba(229,38,59,.6); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.2,1.5,.4,1); }
.vg-count.on { opacity: 1; transform: none; }
/* small phones (375 × 667): a little smaller and inside the gap above the card, clear of the score bar and the question text */
@media (max-width: 400px) { .vg-count { width: 44px; height: 44px; font-size: 24px; top: -10px; right: -4px; border-width: 2.5px; } }
.vg-count.on.tick span { display: inline-block; animation: vgTick .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes vgTick { 0% { transform: scale(1.5); } 100% { transform: none; } }
.vg-edge { position: fixed; inset: 0; z-index: 66; pointer-events: none; opacity: 0; transition: opacity .3s;
  box-shadow: inset 0 0 0 3px rgba(229,38,59,.75), inset 0 0 46px 10px rgba(229,38,59,.45); }
.vg-edge.on { opacity: 1; animation: vgPulse 1s ease-in-out infinite; }
@keyframes vgPulse { 0%, 100% { box-shadow: inset 0 0 0 3px rgba(229,38,59,.75), inset 0 0 46px 10px rgba(229,38,59,.45); } 50% { box-shadow: inset 0 0 0 4px rgba(229,38,59,.95), inset 0 0 80px 22px rgba(229,38,59,.6); } }
/* the side bars turn red with it */
.screen.duel.vg-fx.vg-urgent .vt.l .timer-fill, .screen.duel.vg-fx.vg-urgent .timer-slot .timer-fill { background: var(--vg-red); }
.vg-stamp { position: fixed; left: 50%; top: 44%; z-index: 76; pointer-events: none; transform: translate(-50%, -50%); }
.vg-stamp b { display: block; padding: 12px 26px; border-radius: 18px; font-family: var(--font-display); font-size: 40px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; animation: vgStamp 1.5s cubic-bezier(.2,1.5,.35,1) both; }
.vg-stamp.up b { color: #fff; background: var(--vg-red); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--vg-red), 0 12px 40px -6px rgba(229,38,59,.8); transform: rotate(-6deg); }
.vg-stamp.jp b { color: #3a2300; background: linear-gradient(180deg, #fff1b8, #ffd54a 50%, #f5b800); border: 3px solid var(--vg-gold-deep); box-shadow: 0 0 0 3px #fff3c4, 0 0 50px 6px rgba(255,213,74,.8); transform: rotate(-4deg); }
@keyframes vgStamp { 0% { opacity: 0; scale: 2.2; } 22% { opacity: 1; scale: 1; } 30% { translate: -6px 0; } 38% { translate: 6px 0; } 46% { translate: 0 0; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ reveal: sparkle on a right answer */
.screen.duel.vegas .vg-right .ans.correct { position: relative; overflow: visible; box-shadow: 0 0 0 2px var(--vg-gold), 0 0 22px -2px var(--vg-gold-2); }
.screen.duel.vegas .vg-right .ans.correct::before,
.screen.duel.vegas .vg-right .ans.correct::after { content: "✦"; position: absolute; pointer-events: none; color: var(--vg-gold-2); text-shadow: 0 0 8px var(--vg-gold); font-size: 18px; line-height: 1; animation: vgSpark 1.2s ease-out both; }
.screen.duel.vegas .vg-right .ans.correct::before { top: -10px; right: 72px; }
.screen.duel.vegas .vg-right .ans.correct::after { bottom: -8px; left: 38%; font-size: 14px; animation-delay: .25s; }
@keyframes vgSpark { 0% { opacity: 0; transform: scale(.2) rotate(0); } 35% { opacity: 1; transform: scale(1.35) rotate(90deg); } 100% { opacity: .85; transform: scale(1) rotate(180deg); } }

/* ------------------------------------------------------------ final */
.screen.duel.vegas .final-hero.win .big { background: linear-gradient(180deg, #fff6cf, #ffd54a 45%, #e09b00 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--vg-gold-deep)) drop-shadow(0 0 18px rgba(255,213,74,.55)); }
.screen.duel.vegas .final-hero .crown { color: var(--vg-gold-2); filter: drop-shadow(0 0 12px var(--vg-gold)); }
.screen.duel.vegas .final-card.winner { border-color: var(--vg-gold); box-shadow: 0 0 0 2px var(--vg-gold), 0 0 28px -4px var(--vg-gold-2); }
.screen.duel.vg-fx .final-card .sc { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ dark themes: the gold text reads on dark too */
[data-theme="gameshow"] .screen.duel.vegas .scorebar .ps,
[data-theme="modern"] .screen.duel.vegas .scorebar .ps,
[data-apptheme="dark"] .screen.duel.vegas .scorebar .ps { color: var(--vg-gold-2); text-shadow: none; }
[data-theme="gameshow"] .screen.duel.vegas .intro.vg-reveal .intro-name,
[data-theme="modern"] .screen.duel.vegas .intro.vg-reveal .intro-name,
[data-theme="gameshow"] .screen.duel.vegas .wheel-title,
[data-theme="modern"] .screen.duel.vegas .wheel-title,
[data-apptheme="dark"] .screen.duel.vegas .intro.vg-reveal .intro-name,
[data-apptheme="dark"] .screen.duel.vegas .wheel-title { color: var(--vg-gold-2); text-shadow: 0 0 18px rgba(255,213,74,.6); }

/* ------------------------------------------------------------ reduced motion: gold stays, nothing moves or blinks */
@media (prefers-reduced-motion: reduce) {
  .screen.duel.vegas .scorebar::before, .screen.duel.vegas .scorebar::after,
  .vg-wheel .vg-bulb, .vg-jp-card::before, .vg-edge.on { animation: none !important; }
  .screen.duel.vegas .intro.vg-reveal .intro-card, .vg-jp-card, .vg-jp-banner, .vg-count.on.tick span { animation: none; }
  .vg-gold-flash { display: none; }
  .vg-jp-flash { animation: vgJpOut 1.9s steps(1, end) both; }
  .vg-stamp b { animation: vgFade 1.5s steps(1, end) both; }
  .vg-plus { animation: vgFade 1s steps(1, end) both; transform: translate(-50%, -100%); }
  .screen.duel.vegas .vg-right .ans.correct::before, .screen.duel.vegas .vg-right .ans.correct::after { animation: none; }
  .vg-strip.go { transition: none; }
}
@keyframes vgFade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
