/* ═══════════════════════════════════════════════════════════════
   giveaway.css  — Albion Online Tools Giveaway Pages
   Covers: /giveaways/index.php  &  /giveaways/giveaway.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
    --gw-gold:        #FFD700;
    --gw-gold-dim:    #c9a800;
    --gw-gold-rgb:    255, 215, 0;
    --gw-silver:      #C8C8C8;
    --gw-bronze:      #CD7F32;
    --gw-live:        #22d66a;
    --gw-live-rgb:    34, 214, 106;
    --gw-card-bg:     rgba(18, 21, 28, 0.78);
    --gw-border:      rgba(255, 215, 0, 0.15);
    --gw-panel-bg:    rgba(255, 255, 255, 0.04);
    --gw-radius:      16px;
    --gw-radius-sm:   10px;
    --gw-text:        #e8e8f0;
    --gw-muted:       #8888a8;
}

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes gw-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes gw-pulse-ring {
    0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; }
}
@keyframes gw-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-18px) rotate(5deg); }
}
@keyframes gw-sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    33%       { opacity: 1;   transform: scale(1.3) rotate(15deg); }
    66%       { opacity: 0.5; transform: scale(0.9) rotate(-10deg); }
}
@keyframes gw-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes gw-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gw-countdown-tick {
    0%   { transform: scale(1.15); color: var(--gw-gold); }
    100% { transform: scale(1);    color: inherit; }
}
@keyframes gw-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--gw-gold-rgb), 0.3); }
    50%       { box-shadow: 0 0 40px rgba(var(--gw-gold-rgb), 0.6); }
}
@keyframes gw-banner-slide {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes gw-enter-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(var(--gw-gold-rgb), 0.5); }
    50%       { box-shadow: 0 6px 36px rgba(var(--gw-gold-rgb), 0.85); }
}

/* ══════════════════════════════════════════════════════════════
   INDEX PAGE
   ══════════════════════════════════════════════════════════════ */

/* ─── Page wrapper ──────────────────────────────────────────── */
.gw-page {
    min-height: 100vh;
}

/* ─── Full-width hero banner ────────────────────────────────── */
.gw-hero-banner {
    position: relative;
    padding: 160px 0 60px;
    margin-bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(var(--gw-gold-rgb), 0.07) 0%, transparent 70%),
        linear-gradient(135deg, #0d0f18 0%, #131825 60%, #0d0f18 100%);
    border-bottom: 1px solid var(--gw-border);
    overflow: hidden;
}
.gw-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(var(--gw-gold-rgb), 0.04) 0, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--gw-live-rgb), 0.04) 0, transparent 40%);
    pointer-events: none;
}
.gw-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.gw-hero-text {
    flex: 1;
    min-width: 0;
    animation: gw-fade-up 0.6s ease both;
}
.gw-hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--gw-live-rgb), 0.12);
    border: 1px solid rgba(var(--gw-live-rgb), 0.35);
    color: var(--gw-live);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.gw-mega-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.gw-mega-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gw-gold) 0%, #ffec6e 50%, var(--gw-gold-dim) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gw-shimmer 4s linear infinite;
}
.gw-hero-sub {
    color: var(--gw-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 32px;
}
.gw-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.gw-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gw-hero-stat-num {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gw-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gw-hero-stat-num i { font-size: 1rem; }
.gw-hero-stat-lbl {
    font-size: 0.78rem;
    color: var(--gw-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gw-hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ─── Hero decorative right side ────────────────────────────── */
.gw-hero-deco {
    position: relative;
    width: 220px;
    height: 180px;
    flex-shrink: 0;
    display: none;
}
@media (min-width: 768px) { .gw-hero-deco { display: block; } }
.gw-deco-gift {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    animation: gw-float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(var(--gw-gold-rgb), 0.4));
    user-select: none;
}
.gw-deco-sparkle {
    position: absolute;
    font-size: 1.8rem;
    animation: gw-sparkle 3s ease-in-out infinite;
    user-select: none;
}
.gw-deco-s1 { top: 5%;  left: 10%; animation-delay: 0s;    }
.gw-deco-s2 { top: 70%; left: 75%; animation-delay: 0.8s;  }
.gw-deco-s3 { top: 15%; left: 80%; animation-delay: 1.6s;  }

/* ─── Content area ──────────────────────────────────────────── */
.gw-content-area {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ─── Section wrapper ───────────────────────────────────────── */
.gw-section {
    margin-bottom: 48px;
}
.gw-archive-section { margin-top: 8px; }

/* ─── Section label ─────────────────────────────────────────── */
.gw-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gw-label-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
}
.gw-label-icon.live {
    background: rgba(var(--gw-live-rgb), 0.15);
    color: var(--gw-live);
    box-shadow: 0 0 12px rgba(var(--gw-live-rgb), 0.25);
}
.gw-label-icon.trophy {
    background: rgba(var(--gw-gold-rgb), 0.1);
    color: var(--gw-gold);
}
.gw-label-badge {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.gw-label-badge.live {
    background: rgba(var(--gw-live-rgb), 0.18);
    color: var(--gw-live);
    border: 1px solid rgba(var(--gw-live-rgb), 0.3);
}
.gw-label-badge.closed {
    background: rgba(255,255,255,0.06);
    color: var(--gw-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Live dot ──────────────────────────────────────────────── */
.gw-live-dot {
    position: relative;
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gw-live);
    flex-shrink: 0;
    animation: gw-pulse-dot 1.8s ease-in-out infinite;
}
.gw-live-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--gw-live);
    animation: gw-pulse-ring 1.8s ease-out infinite;
}
.gw-live-dot.small { width: 6px; height: 6px; }

/* ─── Generic badge ─────────────────────────────────────────── */
.gw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}
.gw-badge.live {
    background: rgba(var(--gw-live-rgb), 0.18);
    color: var(--gw-live);
    border: 1px solid rgba(var(--gw-live-rgb), 0.4);
}
.gw-badge.free {
    background: rgba(var(--gw-gold-rgb), 0.12);
    color: var(--gw-gold);
    border: 1px solid rgba(var(--gw-gold-rgb), 0.3);
}
.gw-badge.ended {
    background: rgba(255,255,255,0.08);
    color: var(--gw-muted);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ─── Featured active giveaway card ─────────────────────────── */
.gw-featured-card {
    display: flex;
    gap: 0;
    border-radius: var(--gw-radius);
    overflow: hidden;
    background: rgba(12, 15, 24, 0.9);
    border: 1px solid rgba(var(--gw-gold-rgb), 0.22);
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: gw-fade-up 0.5s ease both;
    position: relative;
    min-height: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.gw-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(var(--gw-gold-rgb), 0.4), 0 0 40px rgba(var(--gw-gold-rgb), 0.08);
    border-color: rgba(var(--gw-gold-rgb), 0.55);
    color: inherit;
    text-decoration: none;
}
/* Gold left accent stripe */
.gw-featured-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gw-gold) 0%, rgba(var(--gw-gold-rgb), 0.2) 100%);
    border-radius: 4px 0 0 4px;
    z-index: 2;
}
/* Blurred prize image as card background */
.gw-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.12) saturate(0.5);
    transform: scale(1.15);
    z-index: 0;
    transition: filter 0.4s ease;
}
.gw-featured-card:hover .gw-featured-bg {
    filter: blur(22px) brightness(0.18) saturate(0.6);
}
.gw-featured-img {
    width: 280px;
    min-width: 280px;
    height: 260px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}
.gw-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    /* No filter — preserve original image quality */
}
.gw-featured-card:hover .gw-featured-img img {
    transform: scale(1.05);
}
/* Smooth fade from image into card body */
.gw-featured-img::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 72px;
    background: linear-gradient(to right, transparent, rgba(12,15,24,0.88));
    z-index: 2;
    pointer-events: none;
}
.gw-featured-body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.gw-featured-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gw-featured-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.gw-featured-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.gw-meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}
.gw-meta-chip.entries { color: #a0cfff; }
.gw-meta-chip.entries i { color: #6ab4ff; }
.gw-meta-chip.date { color: var(--gw-muted); }
.gw-meta-chip.date i { color: #6a6a9a; }
.gw-meta-chip strong { color: #fff; }

/* ─── Enter Now pill (inside featured card) ─────────────────── */
.gw-enter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--gw-gold) 0%, #ffec6e 50%, var(--gw-gold-dim) 100%);
    background-size: 200% auto;
    color: #0d0f18;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 50px;
    align-self: flex-start;
    margin-top: 4px;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: gw-enter-pulse 2.5s ease-in-out infinite;
}
.gw-featured-card:hover .gw-enter-pill {
    background-position: right center;
    transform: translateX(4px);
}

/* ─── Empty state ───────────────────────────────────────────── */
.gw-empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: var(--gw-radius);
    background: rgba(255,255,255,0.02);
}
.gw-empty-state .gw-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    filter: grayscale(0.4);
}
.gw-empty-state h4 { color: #fff; font-weight: 700; margin-bottom: 8px; }
.gw-empty-state p  { color: var(--gw-muted); margin: 0; }

/* ─── Archive horizontal scroll ───────────────────────────────────── */
/* ─── Closed giveaway list cards ────────────────────────────── */
.gw-closed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gw-closed-card {
    display: flex;
    border-radius: var(--gw-radius);
    overflow: hidden;
    background: rgba(14, 17, 26, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: inherit;
    min-height: 210px;
    height: 210px;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: gw-fade-up 0.4s ease both;
}
.gw-closed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.16);
    color: inherit;
    text-decoration: none;
}
/* Subtle left accent stripe */
.gw-closed-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px 0 0 3px;
    z-index: 3;
    transition: background 0.25s;
}
.gw-closed-card:hover::before { background: rgba(255,255,255,0.22); }
/* Blurred image background (depth effect) */
.gw-closed-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.1) saturate(0.4);
    transform: scale(1.15);
    z-index: 0;
    transition: filter 0.4s ease;
}
.gw-closed-card:hover .gw-closed-bg {
    filter: blur(22px) brightness(0.15) saturate(0.5);
}
/* Image panel */
.gw-closed-img {
    width: 260px;
    min-width: 260px;
    height: 210px;   /* fixed height — object-fit:cover crops any image to this box */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.gw-closed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.gw-closed-card:hover .gw-closed-img img { transform: scale(1.04); }
/* ─── Small image: show contained with pattern background ─────
   Applied via JS when naturalWidth < 220px                     */
.gw-closed-img.gw-img-small,
.gw-featured-img.gw-img-small {
    background-image: url('https://i.imgur.com/YoQMjtt.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.gw-closed-img.gw-img-small img,
.gw-featured-img.gw-img-small img {
    object-fit: contain !important;
    padding: 16px;
    transform: none !important; /* disable zoom-in on hover for small icons */
    transition: none !important;
}
/* Smooth fade from image into card body */
.gw-closed-img::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 64px;
    background: linear-gradient(to right, transparent, rgba(14,17,26,0.88));
    z-index: 2;
    pointer-events: none;
}
/* Red CLOSED badge */
.gw-closed-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #c0392b;
    color: #fff;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 2;
}
/* Content panel */
.gw-closed-body {
    flex: 1;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.gw-closed-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #d8d8ee;
    margin: 0;
    letter-spacing: 0.03em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}
.gw-closed-card:hover .gw-closed-title { color: #fff; }
/* Meta row */
.gw-closed-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.gw-closed-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gw-closed-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(var(--gw-gold-rgb), 0.08);
    border: 1px solid rgba(var(--gw-gold-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gw-gold);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.gw-closed-meta-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gw-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
}
.gw-closed-meta-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #c8c8e0;
}
/* See Results button */
.gw-see-results {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #9898b8;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
}
.gw-closed-card:hover .gw-see-results {
    background: rgba(var(--gw-gold-rgb), 0.1);
    border-color: rgba(var(--gw-gold-rgb), 0.3);
    color: var(--gw-gold);
    transform: translateX(4px);
}


/* ══════════════════════════════════════════════════════════════
   DETAIL PAGE  (giveaway.php)
   ══════════════════════════════════════════════════════════════ */

.gw-detail-page {
    margin-top: 120px !important;
    padding-bottom: 80px;
}

/* ─── Prize banner (full-width, cinematic) ──────────────────── */
.gw-prize-banner {
    position: relative;
    border-radius: var(--gw-radius);
    overflow: hidden;
    min-height: 320px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}
.gw-prize-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.gw-prize-banner-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) brightness(0.35) saturate(0.7);
    transform: scale(1.08);
}
.gw-prize-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(10, 12, 20, 0.96) 0%,
        rgba(10, 12, 20, 0.75) 50%,
        rgba(10, 12, 20, 0.2) 100%
    );
}
.gw-prize-banner-overlay::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(10,12,20,0.9), transparent);
}
.gw-prize-banner-content {
    position: relative;
    z-index: 2;
    padding: 40px 40px 36px;
    flex: 1;
    animation: gw-banner-slide 0.6s ease both;
}
.gw-prize-banner-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.gw-prize-banner-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    max-width: 520px;
}
.gw-prize-banner-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 0;
}
.gw-prize-banner-prize {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 20px 0;
}
.gw-prize-banner-prize img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: var(--gw-radius-sm);
    filter: drop-shadow(0 8px 24px rgba(var(--gw-gold-rgb), 0.4));
    transition: transform 0.4s ease;
}
.gw-prize-banner-prize img:hover { transform: scale(1.05) rotate(2deg); }

/* ─── Two-column detail layout ──────────────────────────────── */
.gw-detail-row { margin-top: 0; }

/* ─── Left column: Main content ─────────────────────────────── */
.gw-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.gw-detail-desc {
    color: var(--gw-text);
    font-size: 1rem;
    line-height: 1.7;
    padding: 24px;
    background: var(--gw-panel-bg);
    border-radius: var(--gw-radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Winners section ───────────────────────────────────────── */
.gw-winners-card {
    border-radius: var(--gw-radius-sm);
    border: 1px solid rgba(var(--gw-gold-rgb), 0.25);
    background: linear-gradient(135deg, rgba(var(--gw-gold-rgb), 0.05) 0%, rgba(255,255,255,0.02) 100%);
    overflow: hidden;
}
.gw-winners-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(var(--gw-gold-rgb), 0.15);
    background: rgba(var(--gw-gold-rgb), 0.06);
}
.gw-winners-trophy { font-size: 1.6rem; }
.gw-winners-card-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gw-gold);
    margin: 0;
}
.gw-winners-list {
    list-style: none;
    margin: 0;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gw-winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e8e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.gw-winner-item:hover { background: rgba(255,255,255,0.07); }
.gw-winner-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Oxanium', sans-serif;
}
.gw-winner-item:nth-child(1) .gw-winner-rank { background: rgba(var(--gw-gold-rgb), 0.18); color: var(--gw-gold); }
.gw-winner-item:nth-child(2) .gw-winner-rank { background: rgba(200,200,200,0.15); color: var(--gw-silver); }
.gw-winner-item:nth-child(3) .gw-winner-rank { background: rgba(205,127,50,0.18); color: var(--gw-bronze); }
.gw-winner-item:nth-child(n+4) .gw-winner-rank { background: rgba(255,255,255,0.06); color: var(--gw-muted); }

/* ─── "You're in the draw" banner ───────────────────────────── */
.gw-entered-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(var(--gw-live-rgb), 0.12) 0%, rgba(var(--gw-live-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--gw-live-rgb), 0.3);
    border-radius: var(--gw-radius-sm);
    animation: gw-fade-up 0.4s ease both;
}
.gw-entered-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(var(--gw-live-rgb), 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gw-live);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.gw-entered-title {
    font-weight: 700;
    color: var(--gw-live);
    margin: 0 0 3px;
    font-size: 1rem;
}
.gw-entered-sub {
    color: rgba(var(--gw-live-rgb), 0.75);
    font-size: 0.85rem;
    margin: 0;
}

/* ─── Login / connect form area ─────────────────────────────── */
.gw-login-area {
    padding: 28px;
    background: var(--gw-panel-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--gw-radius-sm);
}

/* ─── Action panel (right column, sticky) ───────────────────── */
.gw-action-panel {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gw-action-box {
    background: var(--gw-card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--gw-radius);
    overflow: hidden;
}
.gw-action-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    font-family: 'Oxanium', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gw-muted);
}
.gw-action-box-header i { font-size: 0.85rem; }
.gw-action-box-body {
    padding: 20px;
}

/* ─── Countdown ─────────────────────────────────────────────── */
.countdown-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(var(--gw-gold-rgb), 0.12);
    border-radius: 10px;
    padding: 12px 10px 10px;
    flex: 1;
    min-width: 56px;
}
.countdown-value {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gw-gold);
    line-height: 1;
    animation: gw-countdown-tick 0.3s ease;
}
.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gw-muted);
    margin-top: 4px;
}

/* ─── Entry count ───────────────────────────────────────────── */
.gw-entry-count-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--gw-radius-sm);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--gw-text);
    font-size: 0.9rem;
}
.gw-entry-count-panel i { color: #6ab4ff; }
.gw-entry-count-panel strong {
    color: #fff;
    font-family: 'Oxanium', sans-serif;
    font-size: 1.1rem;
}

/* ─── Requirements checklist ─────────────────────────────────── */
.gw-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.gw-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.gw-step:last-child { border-bottom: none; }
.gw-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gw-muted);
    transition: all 0.25s;
}
.gw-step.done .gw-step-num {
    background: rgba(var(--gw-live-rgb), 0.18);
    border-color: rgba(var(--gw-live-rgb), 0.4);
    color: var(--gw-live);
}
.gw-step-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--gw-muted);
    transition: color 0.25s;
}
.gw-step.done .gw-step-text { color: var(--gw-text); }
.gw-step-status {
    font-size: 0.9rem;
    flex-shrink: 0;
}
.gw-step.done .gw-step-status { color: var(--gw-live); }
.gw-step:not(.done) .gw-step-status { color: rgba(255,255,255,0.2); }

/* ─── Action buttons ─────────────────────────────────────────── */
.gw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 50px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.gw-btn-enter {
    background: linear-gradient(135deg, var(--gw-gold) 0%, #ffec6e 40%, var(--gw-gold-dim) 100%);
    background-size: 200% auto;
    color: #0d0f18;
    animation: gw-enter-pulse 2.5s ease-in-out infinite, gw-shimmer 4s linear infinite;
}
.gw-btn-enter:hover {
    transform: translateY(-2px);
    color: #0d0f18;
    text-decoration: none;
}
.gw-btn-discord {
    background: #5865F2;
    color: #fff;
}
.gw-btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88,101,242,0.45);
    color: #fff;
    text-decoration: none;
}
.gw-btn-disabled {
    background: rgba(255,255,255,0.06);
    color: var(--gw-muted);
    cursor: not-allowed;
    border: 1px solid rgba(255,255,255,0.1);
}
.gw-btn-disabled:hover { transform: none; opacity: 0.8; }
.gw-btn-success {
    background: rgba(var(--gw-live-rgb), 0.18);
    color: var(--gw-live);
    border: 1px solid rgba(var(--gw-live-rgb), 0.35);
    cursor: default;
}

/* ─── Alert overrides ───────────────────────────────────────── */
.alert-glass-success {
    background: rgba(var(--gw-live-rgb), 0.1);
    border: 1px solid rgba(var(--gw-live-rgb), 0.3);
    color: var(--gw-live);
    border-radius: 10px;
}
.alert-glass-warning {
    background: rgba(255,195,0,0.1);
    border: 1px solid rgba(255,195,0,0.3);
    color: #ffc300;
    border-radius: 10px;
}

/* ─── Back navigation button ────────────────────────────────── */
.gw-back-nav {
    margin-bottom: 20px;
}
.gw-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gw-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}
.gw-back-btn i {
    transition: transform 0.2s;
}
.gw-back-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    text-decoration: none;
}
.gw-back-btn:hover i {
    transform: translateX(-3px);
}

/* ─── Pagination overrides ──────────────────────────────────── */
.pagination {
    gap: 4px;
}
.pagination .page-link {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.09);
    color: var(--gw-muted);
    border-radius: 8px !important;
    margin: 0;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 13px;
    transition: all 0.18s;
    line-height: 1.4;
}
.pagination .page-link:hover {
    background: rgba(var(--gw-gold-rgb), 0.1);
    border-color: rgba(var(--gw-gold-rgb), 0.28);
    color: var(--gw-gold);
}
.pagination .page-item.active .page-link {
    background: rgba(var(--gw-gold-rgb), 0.16);
    border-color: rgba(var(--gw-gold-rgb), 0.45);
    color: var(--gw-gold);
    box-shadow: 0 0 12px rgba(var(--gw-gold-rgb), 0.2);
}
.pagination .page-item.disabled .page-link {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .gw-action-panel { position: static; }
    .gw-prize-banner-prize { display: none; }
    .gw-prize-banner-overlay {
        background: linear-gradient(to top, rgba(10,12,20,0.97) 0%, rgba(10,12,20,0.7) 100%);
    }
    /* Slightly smaller closed cards on tablet */
    .gw-closed-img { width: 220px; min-width: 220px; }
}
@media (max-width: 767px) {
    .gw-hero-banner { padding: 110px 0 40px; }
    .gw-detail-page { margin-top: 80px !important; }

    /* Active giveaway card — stack vertically */
    .gw-featured-card { flex-direction: column; min-height: unset; height: auto; }
    .gw-featured-img { width: 100%; min-width: 0; height: 200px; }
    .gw-featured-body { padding: 16px 18px; gap: 10px; }
    .gw-featured-title { font-size: 1.2rem; }
    .gw-enter-pill { width: 100%; justify-content: center; }

    /* Closed cards — stack vertically */
    .gw-closed-card { flex-direction: column; height: auto; min-height: unset; }
    .gw-closed-img { width: 100%; min-width: 0; height: 180px; }
    .gw-closed-body { padding: 14px 16px; gap: 10px; justify-content: flex-start; }
    .gw-closed-title { font-size: 1rem; }
    .gw-closed-meta { gap: 12px; }
    .gw-closed-meta-icon { width: 30px; height: 30px; }
    .gw-see-results { padding: 8px 14px; font-size: 0.75rem; }

    /* Pagination — compact on small screens */
    .pagination .page-link { padding: 5px 10px; font-size: 0.75rem; }

    /* On mobile, images stack on top → gradient should fade downward */
    .gw-closed-img::after {
        right: 0; bottom: 0; top: auto; left: 0;
        width: auto; height: 48px;
        background: linear-gradient(to bottom, transparent, rgba(14,17,26,0.88));
    }
    .gw-featured-img::after {
        right: 0; bottom: 0; top: auto; left: 0;
        width: auto; height: 48px;
        background: linear-gradient(to bottom, transparent, rgba(12,15,24,0.88));
    }

    /* Detail page */
    .gw-prize-banner { min-height: 200px; }
    .gw-prize-banner-content { padding: 20px 16px; }
    .gw-prize-banner-title { font-size: 1.4rem; }
}
