:root {
    --hoffo-black: #050308;
    --hoffo-bg: #0A0514;
    --hoffo-dark: #12051F;
    --hoffo-deep-purple: #1A0633;
    --hoffo-purple: #6D19C9;
    --hoffo-neon: #8B1FE8;
    --hoffo-electric: #A020F0;
    --hoffo-light: #C084FC;
    --hoffo-soft: #E9D5FF;
    --hoffo-white: #FFFFFF;
    --hoffo-silver: #D9D9E3;
    --hoffo-magenta: #D946EF;
    --hoffo-input: #0B0612;
    --hoffo-danger: #9b1c2c;
    --font-display: "Barlow Condensed", Impact, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --glow: 0 0 24px rgba(139, 31, 232, 0.35);
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.site-main { min-width: 0; overflow-x: hidden; }
.header-inner { position: relative; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: var(--font-body);
    background: var(--hoffo-bg);
    color: var(--hoffo-silver);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hoffo-light); text-decoration: none; }
a:hover { color: var(--hoffo-white); }
h1, h2, h3, .display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hoffo-white);
    margin: 0 0 0.6rem;
    font-weight: 800;
}
.muted { color: rgba(217, 217, 227, 0.62); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.crystal-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}
.page-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(160, 32, 240, 0.18), transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(76, 10, 133, 0.22), transparent 40%),
        radial-gradient(ellipse at 10% 80%, rgba(26, 6, 51, 0.9), transparent 45%);
}
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.07;
    background-image: repeating-radial-gradient(circle at 0 0, #fff 0, #000 1px, transparent 2px);
    mix-blend-mode: overlay;
}

.site-header, .site-main, .site-footer, .ad-ticker, .layout-shell {
    position: relative;
    z-index: 2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(5, 3, 8, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(192, 132, 252, 0.22);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.header-inner {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}
.brand img {
    height: 58px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(139, 31, 232, 0.55));
}
.site-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--hoffo-silver);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.site-nav a:hover, .site-nav a.is-active {
    color: var(--hoffo-white);
    text-shadow: 0 0 12px rgba(160, 32, 240, 0.8);
    box-shadow: inset 0 -2px 0 var(--hoffo-neon);
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 44px;
    padding: 10px;
    background: linear-gradient(180deg, #8B1FE8, #4C0A85);
    border: 1px solid #C084FC;
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(160, 32, 240, 0.55);
    cursor: pointer;
    color: #fff;
}
.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
}
.nav-toggle-bars span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}
.nav-toggle[aria-expanded="true"] {
    background: linear-gradient(180deg, #A020F0, #6D19C9);
}
.header-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}
.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #666;
}
.header-live.is-on .live-dot {
    background: #ff3b4e;
    box-shadow: 0 0 10px #ff3b4e;
    animation: pulse 1.4s infinite;
}
.header-live.is-on a { color: #ff8a96; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.layout-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    gap: 20px;
    width: min(1760px, 100%);
    margin: 0 auto;
    padding: 18px 16px 48px;
    align-items: start;
}
.side-ad {
    position: sticky;
    top: 92px;
    width: 300px;
}
.side-ad .ad-slot {
    position: relative;
    display: block;
    width: 300px;
    height: 600px;
    border: 2px solid rgba(160, 32, 240, 0.65);
    box-shadow: 0 0 32px rgba(139, 31, 232, 0.45);
    background: #12051F;
}
.ad-slot {
    display: block;
    border: 1px solid rgba(192, 132, 252, 0.18);
    background: rgba(18, 5, 31, 0.5);
    overflow: hidden;
}
.ad-slot img { width: 100%; display: block; }
.ad-ticker {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    background: linear-gradient(90deg, #050308 0%, #1A0633 50%, #050308 100%);
    border-bottom: 1px solid rgba(160, 32, 240, 0.55);
    box-shadow: 0 0 24px rgba(139, 31, 232, 0.35);
}
.ad-ticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: hoffo-ad-marquee 28s linear infinite;
    text-decoration: none;
    color: #fff;
}
.ad-ticker-track:hover {
    animation-play-state: paused;
}
.ad-ticker-track span {
    display: inline-block;
    padding: 0 48px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 6px #C084FC,
        0 0 14px #A020F0,
        0 0 28px #8B1FE8,
        0 0 42px rgba(109, 25, 201, 0.8);
}
@keyframes hoffo-ad-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ad-ticker-track { animation: none; }
}
.ad-skyscraper img {
    width: 300px;
    height: 600px;
    max-width: 300px;
    max-height: 600px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.ad-mobile { display: none; padding: 8px 0 24px; }
.ad-mobile-inner {
    border: 2px solid rgba(160, 32, 240, 0.5);
    box-shadow: 0 0 20px rgba(139, 31, 232, 0.35);
}
.ad-mobile-inner img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(139, 31, 232, 0.28);
    background:
        linear-gradient(180deg, rgba(5, 3, 8, 0.35) 0%, rgba(10, 5, 20, 0.82) 70%, var(--hoffo-bg) 100%),
        url("../images/hoffo-banner.jpg") center / cover no-repeat;
    box-shadow: var(--glow);
    margin-bottom: 28px;
}
.hero-inner {
    text-align: center;
    padding: 48px 20px 56px;
    max-width: 860px;
}
.hero-logo {
    width: min(340px, 72vw);
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 28px rgba(160, 32, 240, 0.65));
    animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.badge {
    display: inline-block;
    border: 1px solid rgba(192, 132, 252, 0.4);
    padding: 6px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hoffo-light);
    margin-bottom: 10px;
}
.hero h1 {
    font-size: clamp(3.4rem, 12vw, 7rem);
    line-height: 0.85;
    font-style: italic;
    text-shadow: 0 0 28px rgba(160, 32, 240, 0.55);
    margin: 0;
}
.hero .slogan {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    letter-spacing: 0.12em;
    color: var(--hoffo-white);
    margin: 12px 0 8px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--hoffo-white);
    transition: 0.25s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(90deg, #4C0A85, #8B1FE8 55%, #A020F0);
    box-shadow: 0 0 18px rgba(139, 31, 232, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(160, 32, 240, 0.7); color: #fff; }
.btn-ghost {
    background: transparent;
    border-color: var(--hoffo-neon);
    color: var(--hoffo-light);
}
.btn-ghost:hover { background: rgba(139, 31, 232, 0.15); color: #fff; }
.btn-danger { background: var(--hoffo-danger); border-color: #c23; }
.live-status {
    margin-top: 18px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section { padding: 28px 0 12px; }
.section-head { margin-bottom: 18px; }
.section-head p { margin: 0; }

.card, .glass {
    background: linear-gradient(180deg, rgba(26, 6, 51, 0.55), rgba(10, 5, 20, 0.72));
    border: 1px solid rgba(192, 132, 252, 0.2);
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { text-align: center; padding: 18px 8px; border: 1px solid rgba(139, 31, 232, 0.25); }
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--hoffo-white);
    letter-spacing: 0.08em;
}

.video-card { position: relative; overflow: hidden; display: block; color: inherit; }
.video-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.video-card:hover { box-shadow: var(--glow); transform: scale(1.015); transition: 0.3s ease; }
.play-mark {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(139, 31, 232, 0.55);
}
.play-mark::after {
    content: "";
    position: absolute;
    left: 20px; top: 14px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.video-meta { padding: 12px 14px 16px; }
.video-meta small, .chip {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hoffo-light);
}

.schedule-card { border-left: 3px solid var(--hoffo-neon); }
.schedule-card .day { color: var(--hoffo-light); letter-spacing: 0.16em; font-size: 0.8rem; }

.social-card { transition: 0.25s ease; }
.social-card:hover { border-color: var(--hoffo-electric); box-shadow: var(--glow); }

.giveaway-card { display: flex; flex-direction: column; }
.giveaway-card img,
.giveaway-hero {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    background: rgba(10, 5, 20, 0.85);
}
.giveaway-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.section-home-giveaways { padding: 18px 0 8px; }
.section-head-compact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.section-head-compact h2 { margin: 0; font-size: 1.45rem; }
.home-giveaway-all {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hoffo-light);
    white-space: nowrap;
}
.home-giveaways { display: flex; flex-direction: column; gap: 10px; }
.home-giveaway {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(26, 6, 51, 0.55), rgba(10, 5, 20, 0.72));
    border: 1px solid rgba(192, 132, 252, 0.2);
    color: inherit;
    text-decoration: none;
}
.home-giveaway:hover { border-color: var(--hoffo-electric); box-shadow: var(--glow); color: #fff; }
.home-giveaway img {
    width: 96px;
    height: 72px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(10, 5, 20, 0.85);
}
.home-giveaway-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-giveaway .status-pill { font-size: 0.62rem; padding: 3px 7px; width: max-content; }
.home-giveaway-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-giveaway-meta {
    font-size: 0.85rem;
    color: rgba(217, 217, 227, 0.78);
}
.home-giveaway-cta {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #4C0A85, #8B1FE8 55%, #A020F0);
    padding: 8px 14px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.status-pill {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 4px 8px;
    border: 1px solid rgba(192, 132, 252, 0.4);
}
.status-active { color: var(--hoffo-light); box-shadow: var(--glow); }
.status-scheduled { color: var(--hoffo-silver); }
.status-ended { color: #888; }
.status-drawn { color: #f3d27a; border-color: rgba(243, 210, 122, 0.45); }

.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown div {
    min-width: 64px;
    text-align: center;
    background: rgba(5, 3, 8, 0.6);
    border: 1px solid rgba(192, 132, 252, 0.25);
    padding: 8px 6px;
}
.countdown strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.countdown span { font-size: 0.65rem; letter-spacing: 0.12em; }

.form-grid { display: grid; gap: 12px; }
label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hoffo-soft); }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    background: var(--hoffo-input);
    border: 1px solid rgba(192, 132, 252, 0.25);
    color: var(--hoffo-white);
    padding: 10px 12px;
    font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--hoffo-neon);
    box-shadow: 0 0 0 3px rgba(139, 31, 232, 0.25);
}
.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--hoffo-silver); min-height: 44px; }
.check input { width: 20px; min-height: 20px; margin-top: 4px; }
.alert { padding: 12px 14px; border: 1px solid rgba(192, 132, 252, 0.3); margin-bottom: 14px; }
.alert-error { border-color: #c23; color: #ffb4b4; }
.alert-ok { border-color: #3a8; color: #bff5d0; }
.flash-ok { background: rgba(26, 80, 40, 0.3); }

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(192, 132, 252, 0.18);
    background: linear-gradient(180deg, #12051F, #050308);
    padding: 36px 0 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.footer-grid a, .footer-grid h2 { display: block; }
.footer-grid h2 { font-size: 0.95rem; }
.footer-logo { height: 84px; width: auto; object-fit: contain; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(192, 132, 252, 0.12);
}
.copyright {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
}
.footer-credit {
    margin: 0 0 0 auto;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(192, 132, 252, 0.55);
    text-align: right;
    white-space: nowrap;
}

.ad-popup { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.ad-popup[hidden] { display: none !important; }
.ad-popup-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 8, 0.78); }
.ad-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(600px, calc(100% - 24px));
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--hoffo-neon);
    background: var(--hoffo-black);
    box-shadow: var(--glow);
}
.ad-popup-dialog img { width: 100%; object-fit: contain; max-height: 80vh; }
.ad-popup-close {
    position: absolute;
    right: 8px; top: 8px;
    width: 44px; height: 44px;
    background: rgba(5, 3, 8, 0.8);
    color: #fff;
    border: 1px solid var(--hoffo-light);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}
body.popup-open { overflow: hidden; }

.winners li { list-style: none; padding: 10px 0; border-bottom: 1px solid rgba(192,132,252,.15); }
.winners li strong { color: #f3d27a; }
.empty { padding: 28px; text-align: center; color: #999; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--hoffo-light);
    outline-offset: 2px;
}
