/*!
 * HERO V5 — "Live Table" (2026-07)
 * Replaces hero-v4 ("Quiet Signal" — slim flat dark banner, no imagery,
 * deliberately no decorative layers). hero-v4.css / v3 / v2 stay on disk,
 * unenqueued, for rollback only — same pattern as every earlier swap.
 *
 * Brief: premium + animated + a real visual, not just type on a panel.
 *   - Two-column stage: copy left, a framed photo right in a glowing,
 *     slowly-rotating gradient ring, floating status chips + a pinned
 *     "live players" card overlapping the frame — the "premium SaaS hero"
 *     language, reused for a betting-agent directory.
 *   - Dark aurora shell (same near-black family as the v3 header bar) so
 *     the new dark header flows straight into the hero with no seam.
 *   - Animated: aurora drift, ring rotation, chip float, staggered
 *     load-in — but every loop respects prefers-reduced-motion.
 *   - Smart touches reused from wickets-home.js (no new JS written):
 *     .vk-tilt (pointer-parallax on the photo frame), .vk-magnetic (CTA
 *     pull), [data-scramble] (accent-word cipher-in), [data-count] +
 *     [data-reveal] (count-up / scroll-in, already used site-wide).
 *
 * CASCADE: enqueued where vk-hero-v4 used to be (after vk-overrides,
 * before vk-buttons), so `body.vk .vk-hero--v5` — equal specificity to
 * wickets-home.css's light-retrofit `body.vk h1{color:#1A1813!important}`
 * — wins on source order, the same trick v3/v4 used.
 */

/* ------------------------------------------------------------------
   Section shell — dark aurora stage
   ------------------------------------------------------------------ */
body.vk .vk-hero--v5 {
    display: block !important;
    position: relative;
    min-height: 0 !important;
    padding: clamp(22px, 2.6vw, 36px) var(--vk-pad) clamp(20px, 2.4vw, 32px) !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0B0906 0%, #15110A 60%, #17150F 100%) !important;
    border-bottom: 1px solid rgba(255, 199, 44, .16);
    isolation: isolate;
}
.hv5-aurora {
    position: absolute;
    inset: -10% -10% -30% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 46% at 14% 10%, rgba(255, 199, 44, .20), transparent 68%),
        radial-gradient(30% 40% at 85% 0%, rgba(232, 162, 0, .14), transparent 65%),
        radial-gradient(45% 40% at 60% 100%, rgba(200, 134, 11, .12), transparent 70%);
    filter: blur(10px);
    animation: hv5-aurora-drift 16s ease-in-out infinite alternate;
}
.hv5-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 199, 44, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 199, 44, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(65% 60% at 50% 20%, #000 0%, transparent 75%);
    mask-image: radial-gradient(65% 60% at 50% 20%, #000 0%, transparent 75%);
}
@keyframes hv5-aurora-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

.hv5-inner {
    position: relative;
    z-index: 1;
    max-width: var(--vk-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(36px, 6vw, 64px);
}

/* ------------------------------------------------------------------
   Copy column
   ------------------------------------------------------------------ */
.hv5-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 60ch;
}

.hv5-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #E9C266;
}
.hv5-eyebrow__rule {
    flex: 0 0 auto;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #FFC72C, #E8A200);
}

.vk-hero--v5 .hv5-title {
    font-family: var(--vk-font-bn);
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 1.2;
    padding-top: .1em;
    font-weight: 700;
    letter-spacing: -.01em;
    /* !important required — see cascade note above */
    color: #FBF6EC !important;
    margin: 0 0 18px;
}
.vk-hero--v5 .hv5-title .hv5-accent {
    color: #FFC72C !important;
    font-style: normal;
    text-shadow: 0 0 28px rgba(255, 199, 44, .35);
}

.hv5-lead {
    max-width: 56ch;
    margin: 0 0 32px;
    font-size: clamp(14.5px, 1.15vw, 16px);
    line-height: 1.75;
    color: #BFB6A0;
}

.hv5-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

/* ------------------------------------------------------------------
   Trust row — glass chips, not the v4 hairline column
   ------------------------------------------------------------------ */
.hv5-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 22px;
    padding: 14px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 199, 44, .14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hv5-trust__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hv5-trust__num {
    font-family: var(--vk-font-en);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: #FBF6EC;
    white-space: nowrap;
}
.hv5-trust__num .hv5-trust__plus { color: #FFC72C; }
.hv5-trust__lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.5;
    color: #8D8570;
    white-space: nowrap;
}
.hv5-trust__sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------------------
   Visual column — framed photo, rotating ring, floating chips + card
   ------------------------------------------------------------------ */
.hv5-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 460px);
    padding: 18px;
}
.hv5-visual__glow {
    position: absolute;
    inset: -6% -10%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(58% 55% at 50% 42%, rgba(255, 199, 44, .34), transparent 70%);
    filter: blur(38px);
    animation: hv5-glow-pulse 4.5s ease-in-out infinite;
}
@keyframes hv5-glow-pulse {
    0%, 100% { opacity: .75; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.07); }
}
/* Sits directly behind the frame, a few px larger on every side — the
   opaque frame covers the middle, so only a thin rotating glow rim shows
   around its edge. The gradient's angle is animated (not a box transform),
   so the box itself never rotates — a rotated square's corners would
   otherwise swing outside its own rounded-rect bounds. */
@property --hv5-ring-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.hv5-visual__ring {
    position: absolute;
    inset: 14px;
    z-index: 1;
    overflow: hidden;
    border-radius: 32px;
    pointer-events: none;
    background: conic-gradient(from var(--hv5-ring-angle), #FFC72C, #7A5200 24%, #7A5200 76%, #E8A200, #FFC72C);
    opacity: .9;
    animation: hv5-ring-spin 9s linear infinite;
}
@keyframes hv5-ring-spin {
    to { --hv5-ring-angle: 360deg; }
}
.hv5-visual__frame {
    position: relative;
    z-index: 2;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 199, 44, .28);
    box-shadow:
        0 34px 70px -20px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(0, 0, 0, .4);
    will-change: transform;
    transition: box-shadow .4s ease;
}
.hv5-visual__frame:hover {
    box-shadow:
        0 40px 84px -18px rgba(0, 0, 0, .72),
        0 0 46px -6px rgba(255, 199, 44, .35);
}
.hv5-visual__frame img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 58% 22%;
}
.hv5-visual__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 9, 6, 0) 55%, rgba(11, 9, 6, .55) 100%);
    pointer-events: none;
}

.hv5-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    color: #F5EFE0;
    background: rgba(11, 9, 6, .72);
    border: 1px solid rgba(255, 199, 44, .28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    animation: hv5-chip-float 5.5s ease-in-out infinite;
}
.hv5-chip svg { color: #FFC72C; flex-shrink: 0; }
.hv5-chip--top { top: 16px; left: 16px; }
.hv5-chip--bottom { bottom: 16px; right: 16px; animation-delay: -2.7s; }
.hv5-chip__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .22);
    animation: hv5-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes hv5-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
    50%      { box-shadow: 0 0 0 7px rgba(52, 211, 153, .08); }
}
@keyframes hv5-chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.hv5-float-card {
    position: absolute;
    z-index: 4;
    left: -8px;
    bottom: -20px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 18px 12px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #1C170D 0%, #14110A 100%);
    border: 1px solid rgba(255, 199, 44, .3);
    box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .6);
    animation: hv5-card-float 6s ease-in-out infinite;
}
.hv5-float-card__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE066, #FFC72C);
    color: #0A0500;
    flex-shrink: 0;
}
.hv5-float-card__text {
    font-size: 13px;
    font-weight: 600;
    color: #C9BFA6;
    line-height: 1.3;
    white-space: nowrap;
}
.hv5-float-card__text strong {
    display: block;
    font-family: var(--vk-font-en);
    font-size: 16px;
    font-weight: 800;
    color: #FBF6EC;
}
@keyframes hv5-card-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-6px) rotate(0deg); }
}

/* ------------------------------------------------------------------
   Entrance — staggered fade-up on load, visual gets fade+scale
   ------------------------------------------------------------------ */
@keyframes hv5-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hv5-visual-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hv5-eyebrow { animation: hv5-rise .6s cubic-bezier(.2, .7, .15, 1) both .02s; }
.hv5-lead    { animation: hv5-rise .6s cubic-bezier(.2, .7, .15, 1) both .28s; }
.hv5-cta     { animation: hv5-rise .6s cubic-bezier(.2, .7, .15, 1) both .38s; }
.hv5-trust   { animation: hv5-rise .6s cubic-bezier(.2, .7, .15, 1) both .46s; }
.hv5-visual  { animation: hv5-visual-in .7s cubic-bezier(.2, .7, .15, 1) both .22s; }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .hv5-inner { grid-template-columns: 1fr; gap: 40px; }
    .hv5-visual { justify-self: center; order: -1; width: min(100%, 420px); }
    .hv5-copy { align-items: center; text-align: center; max-width: 62ch; }
    .hv5-eyebrow { justify-content: center; }
    .hv5-cta { justify-content: center; }
    .hv5-trust { justify-content: center; }
}
@media (max-width: 560px) {
    .hv5-cta { flex-direction: column; align-items: stretch; width: 100%; }
    .hv5-cta .vk-btn { justify-content: center; }
    .vk-hero--v5 .hv5-title { font-size: clamp(27px, 8vw, 34px); }
    .hv5-trust { width: 100%; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; }
    .hv5-float-card { left: 50%; transform: translateX(-50%); bottom: -18px; }
    @keyframes hv5-card-float {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50%      { transform: translateX(-50%) translateY(-6px); }
    }
}

/* ------------------------------------------------------------------
   Motion safety
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .hv5-eyebrow, .hv5-lead, .hv5-cta, .hv5-trust, .hv5-visual { animation: none !important; opacity: 1 !important; }
    .hv5-aurora, .hv5-visual__glow, .hv5-visual__ring, .hv5-chip, .hv5-chip__dot, .hv5-float-card { animation: none !important; }
}
