/* «Voll Las Vegas» – the start page and the league tab (design wave 1, 28.11.2026; core/public/vegas.js).
   Only for packs with "features": { "vegasHome": true } (dormant saved design, off everywhere) – everything here is under html.vegas.
   Rules: no flashing faster than 3× per second; prefers-reduced-motion → static (gold stays, nothing blinks). */
/* colours (--vg-gold, --vg-red, …): the one set in vegas-duel.css under html.vegas. Dark themes: the selectors of
   vegas-duel.css – data-theme gameshow / modern (abendrot, nacht, Weihnacht night) and data-apptheme="dark" (titan). */

/* ---------------------------------------------------------------- marquee bulbs (word mark, duel button) */
.vg-marquee { position: absolute; pointer-events: none; z-index: 0; }
.vg-marquee svg { display: block; overflow: visible; }
.vg-marquee rect, .vg-chase circle { fill: none; stroke-linecap: round; }
html.vegas .vg-sock { stroke: #9a6a08; opacity: .55; }
html.vegas .tabbar .vg-chase .vg-sock { stroke-width: 8.5; }
html.vegas .vg-b1 { stroke: #ffc21a; filter: drop-shadow(0 0 3px rgba(255, 160, 0, 1)); animation: vgBulbs 1.1s steps(1, end) infinite; }
html.vegas .vg-b2 { stroke: #fff1b0; filter: drop-shadow(0 0 3px rgba(255, 200, 60, 1)); animation: vgBulbs 1.1s steps(1, end) infinite reverse; }
/* two sets of bulbs take turns: lit / dimmed (one change every 0.55 s) */
@keyframes vgBulbs { 0% { opacity: 1; } 50% { opacity: .4; } }

html.vegas .home-beta .kd-title { position: relative; isolation: isolate; }
html.vegas .home-beta .kd-title .vg-marquee { z-index: -1; }
html.vegas .home-beta .kd-title::before { content: ""; position: absolute; inset: -7px; z-index: -2; border-radius: 26px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 214, 102, .22), transparent 72%); }

/* the existing sparkles twinkle a little more often */
html.vegas .home-beta .spk { animation-duration: 4.5s; }

/* ---------------------------------------------------------------- the duel button: a glowing «spin» button with a light chase */
html.vegas .tabbar .vg-chase { position: absolute; left: 50%; top: -96px; width: 114px; height: 114px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
html.vegas .tabbar .vg-chase svg { display: block; width: 100%; height: 100%; overflow: visible; }
html.vegas .tabbar .vg-chase circle { stroke-width: 6.5; }
html.vegas .tabbar.no-lives .vg-chase { display: none; }
/* a glossy light on the button's own colour (--primary-bg may be a colour or a gradient) and a glow that breathes;
   the glow is a filter, so the button's own 3D shadow stays as the theme drew it */
html.vegas .tabbar:not(.no-lives) .tab-duel { background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.38), rgba(255,255,255,0) 58%), var(--primary-bg, var(--accent));
  animation: vgSpinGlow 2.4s ease-in-out infinite; }
@keyframes vgSpinGlow {
  0%, 100% { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent)); }
  50% { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 85%, transparent)) drop-shadow(0 0 6px rgba(255, 200, 80, .6)); }
}
html.vegas .tabbar:not(.no-lives) .tab-duel:active { animation: none; }

/* ---------------------------------------------------------------- the home: gold, neon, the banner */
/* the tier pill in gold light, the ring around the avatar in gold */
html.vegas .home-beta .pc-tier { box-shadow: 0 0 0 2px var(--vg-gold), 0 0 14px var(--vg-glow), 0 3px 8px rgba(0,0,0,.2); }
html.vegas .home-beta .pc-ring-fg:not(.down) { stroke: var(--vg-gold); filter: drop-shadow(0 0 4px var(--vg-glow)); }
html.vegas .home-beta .pc-streak { border-color: var(--vg-gold); color: var(--vg-gold-ink); box-shadow: 0 0 10px var(--vg-glow); }
html.vegas[data-theme="gameshow"] .home-beta .pc-streak, html.vegas[data-theme="modern"] .home-beta .pc-streak, html.vegas[data-apptheme="dark"] .home-beta .pc-streak { color: var(--vg-gold-2); }

/* the round buttons: a neon ring, each its own colour */
html.vegas .home-beta .pc-rc { --neon: #ff4fd8; border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 10px color-mix(in srgb, var(--neon) 70%, transparent), inset 0 0 8px color-mix(in srgb, var(--neon) 35%, transparent), 0 5px 0 var(--line), 0 10px 16px rgba(0,0,0,.12); }
html.vegas .home-beta .pc-rb[data-rb="daily"] .pc-rc { --neon: #ffb21e; }
html.vegas .home-beta .pc-rb[data-rb="practice"] .pc-rc { --neon: #19d3e6; }
html.vegas .home-beta .pc-rb[data-rb="players"] .pc-rc { --neon: #ff4fd8; }
html.vegas .home-beta .pc-rb[data-rb="rounds"] .pc-rc { --neon: #3ee07a; }
html.vegas .home-beta .pc-rb:active .pc-rc { box-shadow: 0 0 0 1px var(--neon), 0 0 16px var(--neon), 0 1px 0 var(--line); }

/* the urgency banner (week ranking or a series that ends first): calm with gold numbers; in the last 24 hours red,
   bigger and slowly pulsing */
.vg-banner { display: inline-flex; flex-direction: column; align-items: center; gap: .05em; max-width: 100%; padding: .32em 1.05em .38em; border-radius: 14px;
  background: var(--bg-solid); color: var(--text); border: 2px solid var(--vg-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vg-gold) 22%, transparent), 0 4px 12px rgba(0,0,0,.12); line-height: 1.25; }
.vg-bn-top { font-weight: 800; white-space: nowrap; }
.vg-bn-t { color: var(--text-2); }
.vg-bn-n { color: var(--vg-gold-ink); font-weight: 900; font-size: 1.12em; font-variant-numeric: tabular-nums; }
html.vegas[data-theme="gameshow"] .vg-bn-n, html.vegas[data-theme="modern"] .vg-bn-n, html.vegas[data-apptheme="dark"] .vg-bn-n { color: var(--vg-gold-2); }
.vg-bn-line { font-weight: 800; font-size: .95em; color: var(--text); text-align: center; max-width: 100%; }
.vg-banner.hot { background: linear-gradient(180deg, #e0313a, #a10f1c); color: #fff; border-color: var(--vg-gold-hi); animation: vgHot 1.6s ease-in-out infinite; }
.vg-banner.hot .vg-bn-t, .vg-banner.hot .vg-bn-line { color: #fff; }
.vg-banner.hot .vg-bn-n { color: var(--vg-gold-hi); font-size: 1.35em; text-shadow: 0 0 8px rgba(255, 210, 90, .8); }
@keyframes vgHot { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 233, 160, .35), 0 0 10px rgba(224, 49, 58, .45); } 50% { box-shadow: 0 0 0 3px rgba(255, 233, 160, .6), 0 0 26px rgba(224, 49, 58, .85); } }
html.vegas .home-beta .pc-sub.vg-sub, html.vegas .home-beta .pc-sub { margin-top: .55em; max-width: 100%; }

/* the hearts row: one heart per life, empty ones for lives lost, and the clock until all are back */
html.vegas .home-beta .pc-lives { display: flex; align-items: center; justify-content: center; gap: .5em; flex-wrap: wrap; margin-top: .45em; }
html.vegas .home-beta .pc-lives[hidden] { display: none; }
.vg-hearts { display: inline-flex; gap: .18em; }
.vg-hearts i { display: inline-flex; }
.vg-hearts svg { width: 1.15em; height: 1.15em; fill: #ff3b55; stroke: #a1001c; stroke-width: 1; filter: drop-shadow(0 0 3px rgba(255, 59, 85, .6)); }
.vg-hearts i.off svg { fill: transparent; stroke: var(--text-2); stroke-width: 1.8; opacity: .5; filter: none; }
.vg-refill { font-size: .8em; font-weight: 800; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the flame warning (from 18:00 when the flame has not been fed today) */
.vg-flame { display: inline-flex; align-items: center; gap: .55em; margin: .5em auto 0; padding: .32em 1em .32em .55em; border-radius: 999px; font: inherit; cursor: pointer;
  border: 2px solid #ff8a1e; background: linear-gradient(180deg, color-mix(in srgb, #ffb21e 18%, var(--bg-solid)), var(--bg-solid)); color: var(--text); text-align: left;
  box-shadow: 0 0 12px rgba(255, 138, 30, .5); -webkit-tap-highlight-color: transparent; max-width: 100%; }
.vg-fl { font-size: 1.6em; line-height: 1; display: inline-block; animation: vgFlame 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.vg-fl-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vg-fl-t b { font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-fl-t small { font-size: .8em; color: var(--text-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes vgFlame { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 138, 30, .5)); } 50% { transform: scale(1.18); filter: drop-shadow(0 0 9px rgba(255, 120, 20, .95)); } }
html.vegas .home-beta .pc-streak.vg-danger { border-color: #ff8a1e; animation: vgFlameRing 1.4s ease-in-out infinite; }
@keyframes vgFlameRing { 0%, 100% { box-shadow: 0 0 4px rgba(255, 138, 30, .5); } 50% { box-shadow: 0 0 16px rgba(255, 120, 20, 1); } }
html.vegas .home-beta .vg-flame { font-size: clamp(11.5px, 1.6cqh, 15px); margin: 0; }
/* the warning stands where the greeting was (the greeting goes while it is shown) */
html.vegas .home-beta.vg-danger .pc-hello { display: none; }
html.vegas .home-beta .vg-flame-wrap { flex: none; display: flex; justify-content: center; max-width: 100%; margin-top: auto; padding-top: clamp(16px, 3cqh, 30px); }

/* room: the banner (two lines) takes height – the avatar gives it back, so the round buttons stay
   clear of the bar on every screen (the sizes follow the box height, cqh: see the end of styles.css) */
html.vegas .home-beta.vg-home .pc-hero { width: min(196px, 19cqh, 52vw) !important; height: min(196px, 19cqh, 52vw) !important; }
html.vegas body.xmas .home-beta.vg-home .pc-hero { width: min(172px, 16cqh, 46vw) !important; height: min(172px, 16cqh, 46vw) !important; }
@media (max-height: 720px) {
  html.vegas .home-beta.vg-home .pc-hello { padding-top: 4px; }
  html.vegas .home-beta.vg-home .vg-banner { padding: .2em .9em .24em; }
}
@media (min-width: 700px) { /* wide screens: the banner in one row */
  html.vegas .vg-banner { flex-direction: row; align-items: baseline; gap: .7em; padding: .3em 1.1em; }
  html.vegas .vg-bn-line::before { content: "·"; margin-right: .7em; opacity: .6; }
}
@media (min-width: 700px) and (min-height: 760px) and (max-height: 940px) { /* wide but not tall (laptops): a smaller word mark */
  html.vegas .home-beta.vg-home .kd-title, html.vegas body.xmas .home-beta.vg-home .kd-title { font-size: min(8cqh, 132px); }
}
@media (min-width: 700px) and (min-height: 760px) {
  html.vegas .home-beta.vg-home .pc-hero { width: min(22cqh, 300px) !important; height: min(22cqh, 300px) !important; }
  html.vegas body.xmas .home-beta.vg-home .pc-hero { width: min(18cqh, 260px) !important; height: min(18cqh, 260px) !important; }
}
@media (max-height: 520px) { /* landscape: a normal page that scrolls, fixed sizes */
  html.vegas .home-beta.vg-home .pc-hero, html.vegas body.xmas .home-beta.vg-home .pc-hero { width: 132px !important; height: 132px !important; }
}

/* ---------------------------------------------------------------- the league tab */
/* the promotion / relegation zones of the series bar glow */
html.vegas .lg-ser-zone.up { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--ok, #2e9e5b) 80%, transparent); background: color-mix(in srgb, #2fe27a 70%, transparent); }
html.vegas .lg-ser-zone.dn { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--bad, #d6453d) 80%, transparent); background: color-mix(in srgb, #ff3b4a 65%, transparent); }
html.vegas .lg-ser.up { border-color: var(--ok, #2e9e5b); box-shadow: 0 0 14px color-mix(in srgb, var(--ok, #2e9e5b) 55%, transparent); }
html.vegas .lg-ser.down { border-color: var(--bad, #d6453d); box-shadow: 0 0 14px color-mix(in srgb, var(--bad, #d6453d) 55%, transparent); }
html.vegas .lg-ser.up .lg-ser-zone.up, html.vegas .lg-ser.down .lg-ser-zone.dn { animation: vgZone 2s ease-in-out infinite; }
@keyframes vgZone { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
html.vegas .lg-bar-fill.up { box-shadow: 0 0 10px var(--ok, #2e9e5b); } html.vegas .lg-bar-fill.down { box-shadow: 0 0 10px var(--bad, #d6453d); }

/* my own row: gold, framed by bulbs (vegas.js marquee) */
html.vegas .lg-list .lrow.me { position: relative; border: 2px solid var(--vg-gold) !important; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vg-gold) 34%, var(--bg-solid)), color-mix(in srgb, var(--vg-gold) 16%, var(--bg-solid))) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vg-gold) 30%, transparent), 0 0 16px var(--vg-glow); }
html.vegas .lg-list .lrow.me > :not(.vg-marquee) { position: relative; z-index: 1; }
html.vegas .lg-list .lrow.me .lpts { color: var(--vg-gold-ink); text-shadow: 0 0 6px rgba(255, 210, 90, .45); }
html.vegas[data-theme="gameshow"] .lg-list .lrow.me .lpts, html.vegas[data-theme="modern"] .lg-list .lrow.me .lpts, html.vegas[data-apptheme="dark"] .lg-list .lrow.me .lpts { color: var(--vg-gold-2); }
/* the countdown: the same banner as on the home */
.vg-lg-cd { display: flex; justify-content: center; margin: 12px 0 4px; font-size: 14px; }

/* ---------------------------------------------------------------- no motion wanted: everything stands still */
@media (prefers-reduced-motion: reduce) {
  html.vegas .vg-b1, html.vegas .vg-b2, html.vegas .tabbar .tab-duel, .vg-banner.hot, .vg-fl, html.vegas .home-beta .pc-streak.vg-danger,
  html.vegas .lg-ser-zone, html.vegas .home-beta .spk { animation: none !important; }
  html.vegas .vg-b2 { opacity: .55; }
}
