/* NightWin theme — self-hosted fonts, dark casino shell */
@font-face {
    font-family: 'Outfit';
    src: url('/media/fonts/outfit-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/media/fonts/outfit-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/media/fonts/outfit-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('/media/fonts/space-grotesk-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('/media/fonts/space-grotesk-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --nw-bg-deep: #05051a;
    --nw-bg-panel: #0c0c2e;
    --nw-bg-card: #12123a;
    --nw-accent: #7c5cff;
    --nw-accent-hot: #c94fd4;
    --nw-gold: #ffd447;
    --nw-text: #eceaf8;
    --nw-text-dim: #9b97c4;
    --nw-border: rgba(139, 125, 255, 0.18);
    --nw-radius: 12px;
    --nw-dock-h: 64px;
    --nw-ticker-h: 38px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.55;
    color: var(--nw-text);
    background: var(--nw-bg-deep);
    min-height: 100vh;
    padding-bottom: var(--nw-dock-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ── Top chrome ── */
.nw-top-chrome {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(180deg, #0a0a28 0%, var(--nw-bg-deep) 100%);
    border-bottom: 1px solid var(--nw-border);
}

.nw-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.nw-brand-img { height: 28px; width: auto; }
.nw-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    font-style: italic;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #fff 40%, var(--nw-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nw-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nw-search-trigger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nw-bg-card);
}
.nw-search-trigger .nw-nav-glyph { width: 18px; height: 18px; }

.nw-cta-ghost, .nw-cta-solid {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.nw-cta-ghost {
    color: var(--nw-text-dim);
    border: 1px solid var(--nw-border);
}
.nw-cta-solid {
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 100%);
    color: #fff;
}

/* ── Horizontal nav strip (desktop) ── */
.nw-nav-strip {
    border-top: 1px solid var(--nw-border);
    background: var(--nw-bg-panel);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nw-nav-strip::-webkit-scrollbar { display: none; }

.nw-nav-strip-list {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.nw-nav-strip-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 24px;
    background: var(--nw-bg-card);
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nw-text-dim);
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.nw-nav-strip-link.is-active,
.nw-nav-strip-link:hover {
    color: var(--nw-gold);
    border-color: rgba(255, 212, 71, 0.35);
}

.nw-nav-glyph-wrap { display: flex; flex-shrink: 0; }
.nw-nav-glyph { width: 20px; height: 20px; }

/* ── Drawer panel ── */
.nw-drawer-veil {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 26, 0.75);
    z-index: 950;
    backdrop-filter: blur(2px);
}
.nw-drawer-veil.is-visible { display: block; }

.nw-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--nw-bg-panel);
    z-index: 960;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    border-left: 1px solid var(--nw-border);
    padding: 20px 16px calc(var(--nw-dock-h) + 16px);
}
.nw-drawer-panel.is-open { transform: translateX(0); }

.nw-drawer-brand { margin-bottom: 20px; }

.nw-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--nw-radius);
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--nw-text-dim);
}
.nw-drawer-link.is-active {
    background: var(--nw-bg-card);
    color: var(--nw-gold);
}

/* ── Page canvas ── */
.nw-page-canvas {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
}

.nw-trail-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8rem;
}
.nw-crumb-link { color: var(--nw-text-dim); }
.nw-crumb-link:hover { color: var(--nw-gold); }
.nw-crumb-sep { color: var(--nw-text-dim); opacity: 0.5; }

/* ── Banner slider ── */
.nw-banner-rail {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    display: flex;
    gap: 12px;
    padding-bottom: 4px;
}
.nw-banner-rail::-webkit-scrollbar { display: none; }

.nw-banner-card {
    flex: 0 0 min(92%, 520px);
    scroll-snap-align: start;
    border-radius: var(--nw-radius);
    background: var(--nw-bg-card);
    border: 1px solid var(--nw-border);
    overflow: hidden;
}

.nw-banner-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--nw-bg-panel);
    padding: 8px;
}
.nw-banner-visual picture,
.nw-banner-visual img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.nw-banner-body { padding: 14px 16px 16px; }
.nw-banner-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}
.nw-banner-sub { font-size: 0.85rem; color: var(--nw-text-dim); margin-bottom: 12px; }
.nw-banner-action {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 20px;
    background: var(--nw-gold);
    color: #1a1030;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Upcoming matches rail (home) ── */
.nw-upcoming-block {
    margin-bottom: 24px;
}
.nw-upcoming-rail {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.nw-upcoming-rail::-webkit-scrollbar { display: none; }
.nw-upcoming-track {
    display: flex;
    gap: 10px;
    width: max-content;
    min-width: 100%;
}
.nw-upcoming-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--nw-border);
    background: linear-gradient(180deg, rgba(12, 12, 46, 0.65) 0%, rgba(8, 8, 42, 0.45) 100%);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.nw-upcoming-card:hover,
.nw-upcoming-card:focus-visible {
    border-color: rgba(255, 212, 71, 0.4);
    background: rgba(91, 76, 219, 0.16);
    outline: none;
}
.nw-upcoming-card:active {
    transform: scale(0.98);
}
.nw-upcoming-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.nw-upcoming-league {
    font-size: 0.68rem;
    color: var(--nw-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.nw-upcoming-kickoff {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--nw-accent);
    font-variant-numeric: tabular-nums;
}
.nw-upcoming-teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.nw-upcoming-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.nw-upcoming-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(139, 125, 255, 0.15);
    border: 1px solid var(--nw-border);
}
.nw-upcoming-logo-empty {
    display: inline-block;
}
.nw-upcoming-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nw-upcoming-odds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
}
.nw-upcoming-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(91, 76, 219, 0.12);
    border: 1px solid rgba(139, 125, 255, 0.2);
}
.nw-upcoming-odd-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--nw-text-dim);
    text-transform: uppercase;
}
.nw-upcoming-odd-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffd447;
    font-variant-numeric: tabular-nums;
}
.nw-upcoming-odd-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--nw-text-dim);
}
@media (min-width: 720px) {
    .nw-upcoming-card {
        flex-basis: 240px;
    }
}

/* ── Game sections ── */
.nw-game-block { margin-bottom: 28px; }

.nw-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.nw-block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}
.nw-show-more {
    font-size: 0.8rem;
    color: var(--nw-accent);
    font-weight: 600;
}

.nw-game-rail {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nw-game-rail::-webkit-scrollbar { display: none; }

.nw-game-grid {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.nw-game-tile {
    flex: 0 0 120px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--nw-bg-card);
    border: 1px solid var(--nw-border);
}
.nw-game-thumb-wrap { position: relative; aspect-ratio: 5 / 7; }
.nw-game-thumb { width: 100%; height: 100%; object-fit: cover; }
.nw-game-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 26, 0.6);
    opacity: 0;
    transition: opacity 0.22s;
}
.nw-game-play span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--nw-gold);
    color: #0a0a1e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
}
.nw-game-tile:hover .nw-game-play { opacity: 1; }
.nw-game-name {
    padding: 8px 6px;
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bonuses ── */
.nw-bonus-zone { margin-bottom: 32px; }
.nw-bonus-zone .nw-block-head { margin-bottom: 16px; }
.nw-bonus-zone .nw-block-title {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fff 40%, var(--nw-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.nw-bonus-tile {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(18, 18, 58, 0.95) 0%, rgba(12, 12, 46, 0.98) 100%);
    border: 1px solid var(--nw-border);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.nw-bonus-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: 0 12px 40px rgba(124, 92, 255, 0.18);
}
.nw-bonus-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.nw-bonus-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 26, 0.7) 100%);
    pointer-events: none;
}
.nw-bonus-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.nw-bonus-tile:hover .nw-bonus-visual img { transform: scale(1.04); }
.nw-bonus-inner { padding: 16px 18px 18px; }
.nw-bonus-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.nw-bonus-desc {
    font-size: 0.82rem;
    color: var(--nw-text-dim);
    margin-bottom: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-bonus-amount {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--nw-gold);
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 212, 71, 0.1);
    border: 1px solid rgba(255, 212, 71, 0.25);
}
.nw-bonus-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(124, 92, 255, 0.15);
    color: var(--nw-accent);
    border: 1px solid rgba(124, 92, 255, 0.25);
}
.nw-bonus-fine {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--nw-border);
    font-size: 0.72rem;
    color: var(--nw-text-dim);
    opacity: 0.85;
    line-height: 1.45;
}

/* ── Football odds board ── */
.nw-odds-zone { margin-bottom: 32px; }
.nw-odds-zone .nw-block-head { margin-bottom: 18px; }
.nw-odds-zone .nw-block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 700;
    color: #fff;
}
.nw-odds-updated {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--nw-text-dim);
}
.nw-odds-empty {
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px dashed var(--nw-border);
    color: var(--nw-text-dim);
    text-align: center;
}
.nw-odds-section { margin-bottom: 28px; }
.nw-odds-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.nw-odds-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nw-odds-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--nw-border);
    background: linear-gradient(180deg, rgba(12, 12, 46, 0.65) 0%, rgba(8, 8, 42, 0.45) 100%);
}
.nw-odds-row.is-live {
    border-color: rgba(255, 77, 109, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.08);
}
.nw-odds-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.nw-odds-league {
    font-size: 0.76rem;
    color: var(--nw-text-dim);
    letter-spacing: 0.02em;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nw-odds-kickoff {
    font-size: 0.74rem;
    color: var(--nw-accent);
}
.nw-odds-countdown {
    flex-shrink: 0;
}
.nw-odds-countdown-clock {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.76rem, 2.2vw, 0.84rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #ffd447;
    background: rgba(91, 76, 219, 0.12);
    border: 1px solid rgba(139, 125, 255, 0.22);
    white-space: nowrap;
}
.nw-odds-countdown-sep {
    color: rgba(139, 125, 255, 0.5);
    padding: 0 1px;
    user-select: none;
}
.nw-odds-countdown.is-started .nw-odds-countdown-clock {
    color: #ff6b8a;
    border-color: rgba(255, 77, 109, 0.35);
    background: rgba(255, 77, 109, 0.1);
}
.nw-odds-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nw-odds-badge-live {
    background: rgba(255, 77, 109, 0.18);
    color: #ff6b8a;
    border: 1px solid rgba(255, 77, 109, 0.35);
}
.nw-odds-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nw-odds-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.nw-odds-team-logo,
.nw-odds-team-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(139, 125, 255, 0.15);
    border: 1px solid var(--nw-border);
}
.nw-odds-team-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nw-odds-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.nw-odds-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 8px;
    background: rgba(91, 76, 219, 0.12);
    border: 1px solid rgba(139, 125, 255, 0.2);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
a.nw-odds-price:hover,
a.nw-odds-price:focus-visible {
    border-color: rgba(255, 212, 71, 0.45);
    background: rgba(91, 76, 219, 0.22);
    outline: none;
}
a.nw-odds-price:active {
    transform: scale(0.97);
    background: rgba(255, 212, 71, 0.12);
}
a.nw-odds-price.is-updated {
    border-color: rgba(255, 212, 71, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 212, 71, 0.15);
}
a.nw-odds-price.is-updated .nw-odds-price-value {
    color: #fff7cc;
}
.nw-odds-price-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--nw-text-dim);
    text-transform: uppercase;
}
.nw-odds-price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd447;
}
.nw-odds-price-empty { grid-column: 1 / -1; }
@media (min-width: 720px) {
    .nw-odds-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
        align-items: center;
    }
    .nw-odds-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── SEO text block (only place with h1-h3) ── */
.nw-seo-article {
    max-width: 100%;
    margin: 28px 0 36px;
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(12, 12, 46, 0.55) 0%, rgba(8, 8, 42, 0.35) 100%);
    border-radius: 14px;
    border: 1px solid var(--nw-border);
}
.nw-seo-article h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nw-border);
    line-height: 1.3;
    background: linear-gradient(90deg, #fff 35%, var(--nw-accent) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-seo-article h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--nw-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nw-seo-article h2::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--nw-accent), var(--nw-accent-hot));
    flex-shrink: 0;
}
.nw-seo-article h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--nw-text);
}
.nw-seo-article p {
    margin-bottom: 14px;
    color: var(--nw-text-dim);
    line-height: 1.65;
    font-size: 0.88rem;
}
.nw-seo-article a {
    color: var(--nw-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nw-seo-article a:hover { color: #fff; text-decoration: underline; }
.nw-seo-article img {
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--nw-border);
}
.nw-seo-article ul, .nw-seo-article ol {
    margin: 14px 0;
    padding: 14px 18px 14px 36px;
    color: var(--nw-text-dim);
    border-radius: 10px;
    background: rgba(18, 18, 58, 0.4);
    border: 1px solid var(--nw-border);
}
.nw-seo-article li {
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 0.86rem;
}
.nw-seo-article li::marker { color: var(--nw-accent); }
.nw-seo-article blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--nw-accent);
    border-radius: 0 10px 10px 0;
    background: rgba(18, 18, 58, 0.5);
    color: var(--nw-text-dim);
    font-style: italic;
    line-height: 1.6;
}

/* Table horizontal scroll on mobile */
.nw-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
    border-radius: 10px;
    border: 1px solid var(--nw-border);
    background: rgba(18, 18, 58, 0.4);
}
.nw-table-scroll table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}
.nw-table-scroll th,
.nw-table-scroll td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--nw-border);
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
}
.nw-table-scroll th {
    background: rgba(124, 92, 255, 0.12);
    font-weight: 600;
    color: var(--nw-gold);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nw-table-scroll tr:last-child td,
.nw-table-scroll tr:last-child th { border-bottom: none; }
.nw-table-scroll tr:hover td { background: rgba(124, 92, 255, 0.05); }
.nw-table-scroll caption { padding: 10px; font-size: 0.8rem; color: var(--nw-text-dim); }

/* ── Contact page ── */
.nw-contact-shell {
    max-width: 720px;
    margin: 0 auto 32px;
}
.nw-contact-shell .nw-seo-article {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.nw-contact-shell .nw-seo-article h1 {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 30%, var(--nw-accent) 70%, var(--nw-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-contact-shell .nw-seo-article > p:first-of-type {
    text-align: center;
    font-size: 1rem;
    color: var(--nw-text-dim);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.nw-contact-shell .nw-seo-article h2 {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nw-gold);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nw-border);
}
.nw-contact-shell .nw-seo-article h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--nw-text);
}
.nw-contact-shell .nw-seo-article h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nw-accent), var(--nw-accent-hot));
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}
.nw-contact-shell .nw-seo-article h3 + p {
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: var(--nw-radius);
    background: linear-gradient(135deg, rgba(18, 18, 58, 0.9) 0%, rgba(12, 12, 46, 0.95) 100%);
    border: 1px solid var(--nw-border);
    color: var(--nw-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nw-contact-shell .nw-seo-article h3 + p:hover {
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: 0 4px 24px rgba(124, 92, 255, 0.12);
}
.nw-contact-shell .nw-seo-article a {
    color: var(--nw-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nw-contact-shell .nw-seo-article a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Legal pages (privacy, terms) ── */
.nw-legal-shell {
    max-width: 800px;
    margin: 0 auto 40px;
}
.nw-legal-shell .nw-seo-article {
    background: linear-gradient(180deg, rgba(12, 12, 46, 0.6) 0%, rgba(8, 8, 42, 0.4) 100%);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 32px 24px;
    backdrop-filter: blur(6px);
}
.nw-legal-shell .nw-seo-article h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nw-border);
    background: linear-gradient(90deg, #fff 40%, var(--nw-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-legal-shell .nw-seo-article > p:first-of-type {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--nw-text-dim);
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(18, 18, 58, 0.5);
    border-left: 3px solid var(--nw-accent);
}
.nw-legal-shell .nw-seo-article h2 {
    font-size: 1.1rem;
    color: var(--nw-gold);
    margin: 28px 0 12px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nw-legal-shell .nw-seo-article h2::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--nw-accent), var(--nw-accent-hot));
    flex-shrink: 0;
}
.nw-legal-shell .nw-seo-article h3 {
    color: var(--nw-text);
    font-size: 0.95rem;
    margin: 20px 0 10px;
}
.nw-legal-shell .nw-seo-article p {
    line-height: 1.65;
    font-size: 0.88rem;
}
.nw-legal-shell .nw-seo-article .nw-list-block ul,
.nw-legal-shell .nw-seo-article .nw-list-block ol {
    padding: 14px 18px 14px 36px;
    margin: 12px 0 16px;
    border-radius: 10px;
    background: rgba(18, 18, 58, 0.45);
    border: 1px solid var(--nw-border);
}
.nw-legal-shell .nw-seo-article li {
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 0.86rem;
}
.nw-legal-shell .nw-seo-article li::marker {
    color: var(--nw-accent);
}
.nw-legal-shell .nw-seo-article a {
    color: var(--nw-gold);
    text-decoration: none;
    font-weight: 600;
}
.nw-legal-shell .nw-seo-article a:hover {
    text-decoration: underline;
}
.nw-legal-shell .nw-seo-article blockquote {
    border-left-color: var(--nw-gold);
    border-radius: 0 8px 8px 0;
}

/* FAQ / HowTo */
.nw-faq-stack { margin: 20px 0; }
.nw-faq-entry {
    border: 1px solid var(--nw-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(18, 18, 58, 0.4);
    transition: border-color 0.2s;
}
.nw-faq-entry:hover { border-color: rgba(124, 92, 255, 0.3); }
.nw-faq-q {
    padding: 14px 16px;
    background: rgba(124, 92, 255, 0.08);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--nw-text);
    border-bottom: 1px solid var(--nw-border);
}
.nw-faq-a {
    padding: 14px 16px;
    color: var(--nw-text-dim);
    font-size: 0.86rem;
    line-height: 1.6;
}

.nw-howto-box {
    margin: 20px 0;
    padding: 20px;
    background: rgba(18, 18, 58, 0.45);
    border-radius: 12px;
    border: 1px solid var(--nw-border);
}
.nw-howto-steps { counter-reset: nwstep; list-style: none; padding: 0; margin: 0; }
.nw-howto-step {
    counter-increment: nwstep;
    padding: 14px 0 14px 36px;
    position: relative;
    border-bottom: 1px solid var(--nw-border);
}
.nw-howto-step:last-child { border-bottom: none; }
.nw-howto-step::before {
    content: counter(nwstep);
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1a1030;
    background: var(--nw-gold);
}
.nw-howto-step strong {
    display: block;
    margin-bottom: 6px;
    color: var(--nw-text);
    font-size: 0.9rem;
}
.nw-howto-step p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
}

.nw-list-block ul, .nw-list-block ol {
    padding: 14px 18px 14px 36px;
    margin: 14px 0;
    color: var(--nw-text-dim);
    border-radius: 10px;
    background: rgba(18, 18, 58, 0.4);
    border: 1px solid var(--nw-border);
}
.nw-list-block li { margin-bottom: 8px; line-height: 1.55; font-size: 0.86rem; }
.nw-list-block li::marker { color: var(--nw-accent); }

/* Payment methods */
.nw-pay-zone { margin: 28px 0; }
.nw-pay-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.nw-pay-chip {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--nw-bg-card);
    border: 1px solid var(--nw-border);
    text-align: center;
    min-width: 90px;
}
.nw-pay-chip img { margin: 0 auto 6px; max-height: 28px; width: auto; }
.nw-pay-chip span { font-size: 0.72rem; color: var(--nw-text-dim); }

/* App info table */
.nw-app-hero {
    position: relative;
    margin: 0 0 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--nw-border);
    background: linear-gradient(145deg, rgba(18, 18, 58, 0.95) 0%, rgba(8, 8, 42, 0.98) 100%);
}
.nw-app-hero-glow {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}
.nw-app-specs { margin: 0; position: relative; z-index: 1; }
.nw-app-specs .nw-table-scroll {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.nw-app-specs .nw-table-scroll table { min-width: 100%; }
.nw-app-specs tr {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nw-border);
    transition: background 0.2s;
}
.nw-app-specs tr:last-child { border-bottom: none; }
.nw-app-specs tr:hover { background: rgba(124, 92, 255, 0.06); }
.nw-app-specs td:first-child {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.25);
}
.nw-app-specs td:last-child {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--nw-text-dim);
    padding-top: 8px;
}
.nw-app-specs tr:first-child td:last-child { padding-top: 0; }
.nw-app-icon { width: 20px; height: 20px; color: var(--nw-gold); }
.nw-app-brand-row { display: flex; align-items: center; gap: 14px; }
.nw-app-brand-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--nw-border);
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.25);
    background: var(--nw-bg-card);
    padding: 4px;
}
.nw-app-brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--nw-text);
    background: linear-gradient(90deg, #fff 30%, var(--nw-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-app-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--nw-gold) 0%, #ffb347 100%);
    color: #1a1030;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 24px rgba(255, 212, 71, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nw-app-dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 212, 71, 0.5);
}

/* ── Footer ── */
.nw-site-tail {
    position: relative;
    background: linear-gradient(180deg, #08082a 0%, var(--nw-bg-deep) 100%);
    border-top: 1px solid var(--nw-border);
    padding: 0 16px calc(var(--nw-dock-h) + 24px);
    margin-top: 40px;
    overflow: hidden;
}
.nw-tail-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--nw-accent) 35%, var(--nw-gold) 50%, var(--nw-accent-hot) 65%, transparent 100%);
    box-shadow: 0 0 32px rgba(124, 92, 255, 0.45), 0 0 64px rgba(201, 79, 212, 0.2);
}
.nw-tail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 40px;
}
.nw-tail-brand {
    text-align: center;
    margin-bottom: 28px;
}
.nw-tail-brand .nw-brand-img { margin: 0 auto; }
.nw-tail-brand .nw-brand-text { font-size: 1.5rem; }
.nw-tail-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.nw-tail-cta {
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.nw-tail-cta:hover { transform: translateY(-2px); }
.nw-tail-cta--primary {
    color: var(--nw-text-dim);
    border: 1px solid var(--nw-border);
    background: rgba(18, 18, 58, 0.6);
}
.nw-tail-cta--primary:hover {
    border-color: rgba(124, 92, 255, 0.45);
    color: var(--nw-text);
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.15);
}
.nw-tail-cta--secondary {
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}
.nw-tail-cta--secondary:hover {
    box-shadow: 0 6px 28px rgba(201, 79, 212, 0.45);
}
.nw-tail-cta--accent {
    background: var(--nw-gold);
    color: #1a1030;
    box-shadow: 0 4px 20px rgba(255, 212, 71, 0.25);
}
.nw-tail-cta--accent:hover {
    box-shadow: 0 6px 28px rgba(255, 212, 71, 0.4);
}
.nw-tail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 28px;
    border-radius: var(--nw-radius);
    background: rgba(12, 12, 46, 0.55);
    border: 1px solid var(--nw-border);
    backdrop-filter: blur(8px);
}
.nw-tail-block {
    padding: 4px 8px;
}
.nw-tail-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--nw-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nw-tail-heading::before {
    content: '';
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--nw-accent), var(--nw-accent-hot));
    border-radius: 2px;
    flex-shrink: 0;
}
.nw-tail-links { display: flex; flex-direction: column; gap: 2px; }
.nw-tail-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--nw-text-dim);
    transition: color 0.2s, padding-left 0.2s;
}
.nw-tail-link:hover,
.nw-tail-link.is-active {
    color: var(--nw-text);
    padding-left: 6px;
}
.nw-tail-link.is-active { color: var(--nw-gold); }
.nw-tail-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nw-tail-social .nw-tail-link {
    padding: 8px;
    border-radius: 10px;
    background: var(--nw-bg-card);
    border: 1px solid var(--nw-border);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nw-tail-social .nw-tail-link:hover {
    padding-left: 8px;
    border-color: rgba(124, 92, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.2);
}
.nw-tail-social-img {
    border-radius: 6px;
    display: block;
}
.nw-tail-bottom {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--nw-border);
    text-align: center;
}
.nw-tail-safe { margin-bottom: 20px; }
.nw-tail-safe-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nw-text-dim);
    margin-bottom: 14px;
}
.nw-tail-safe-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.nw-tail-safe-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--nw-bg-card);
    border: 1px solid var(--nw-border);
    transition: border-color 0.2s, opacity 0.2s;
}
.nw-tail-safe-list li a:hover {
    border-color: rgba(255, 212, 71, 0.3);
    opacity: 1;
}
.nw-tail-safe-img {
    opacity: 0.9;
    max-height: 28px;
    width: auto;
}
.nw-tail-copy {
    font-size: 0.78rem;
    color: var(--nw-text);
    line-height: 1.5;
    margin-bottom: 6px;
}
.nw-tail-disclaimer {
    font-size: 0.72rem;
    color: var(--nw-text-dim);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.85;
}

/* ── Live wins ticker ── */
.nw-win-ticker {
    position: relative;
    height: var(--nw-ticker-h);
    background: linear-gradient(90deg, #0a0a28 0%, #12123a 50%, #0a0a28 100%);
    border-top: 1px solid var(--nw-border);
    border-bottom: 1px solid rgba(255, 212, 71, 0.12);
    overflow: hidden;
}
.nw-win-ticker-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(124, 92, 255, 0.08) 50%, transparent 100%);
    pointer-events: none;
}
.nw-win-ticker-viewport {
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.nw-win-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    gap: 48px;
    padding: 0 24px;
    white-space: nowrap;
    animation: nw-win-ticker-scroll 55s linear infinite;
}
.nw-win-ticker:hover .nw-win-ticker-track {
    animation-play-state: paused;
}
.nw-win-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--nw-text-dim);
    flex-shrink: 0;
}
.nw-win-ticker-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nw-gold);
    box-shadow: 0 0 8px rgba(255, 212, 71, 0.6);
    flex-shrink: 0;
}
.nw-win-ticker-user {
    font-weight: 600;
    color: var(--nw-text);
}
.nw-win-ticker-amount {
    font-weight: 700;
    color: var(--nw-gold);
}
.nw-win-ticker-game {
    font-weight: 600;
    color: var(--nw-accent-hot);
}
@keyframes nw-win-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .nw-win-ticker-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px 20px;
        padding: 6px 12px;
        white-space: normal;
    }
    .nw-win-ticker {
        height: auto;
        min-height: var(--nw-ticker-h);
    }
    .nw-win-ticker-viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.nw-online-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    padding: 0 16px;
    background: rgba(8, 8, 40, 0.95);
    border-bottom: 1px solid var(--nw-border);
    font-size: 0.74rem;
    color: var(--nw-text-dim);
}
.nw-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
    flex-shrink: 0;
    animation: nw-online-pulse 2s ease-in-out infinite;
}
.nw-online-count {
    font-weight: 700;
    color: var(--nw-text);
}
.nw-online-label {
    font-weight: 500;
}
@keyframes nw-online-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
    .nw-online-dot { animation: none; }
}
@media (min-width: 993px) {
    .nw-online-bar { font-size: 0.78rem; height: 30px; }
}

/* ── Live chat ── */
.nw-chat {
    position: fixed;
    right: 16px;
    bottom: calc(var(--nw-dock-h) + 16px);
    z-index: 895;
}
.nw-chat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nw-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 79, 212, 0.5);
}
.nw-chat-toggle .nw-nav-glyph { width: 22px; height: 22px; }
.nw-chat.is-open .nw-chat-toggle { display: none; }
.nw-chat-panel {
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 32px));
    height: min(480px, calc(100vh - var(--nw-dock-h) - 96px));
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #12123a 0%, #0a0a28 100%);
    border: 1px solid var(--nw-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 255, 0.12);
}
.nw-chat-panel[hidden] { display: none !important; }
.nw-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(18, 18, 58, 0.85);
    border-bottom: 1px solid var(--nw-border);
}
.nw-chat-head-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.nw-chat-head-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
    flex-shrink: 0;
}
.nw-chat-head-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--nw-text);
}
.nw-chat-head-status {
    font-size: 0.72rem;
    color: var(--nw-text-dim);
}
.nw-chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--nw-text-dim);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.2s, background 0.2s;
}
.nw-chat-close:hover {
    color: var(--nw-text);
    background: rgba(255, 255, 255, 0.08);
}
.nw-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nw-chat-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
}
.nw-chat-msg--agent {
    align-self: flex-start;
    background: rgba(124, 92, 255, 0.18);
    border: 1px solid rgba(124, 92, 255, 0.25);
    color: var(--nw-text);
    border-bottom-left-radius: 4px;
}
.nw-chat-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.nw-chat-msg-meta {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.85;
}
.nw-chat-typing {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(124, 92, 255, 0.18);
    border: 1px solid rgba(124, 92, 255, 0.25);
}
.nw-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nw-text-dim);
    animation: nw-chat-typing 1.2s ease-in-out infinite;
}
.nw-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.nw-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes nw-chat-typing {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.nw-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--nw-border);
    background: rgba(8, 8, 40, 0.95);
}
.nw-chat-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--nw-border);
    background: var(--nw-bg-card);
    color: var(--nw-text);
    font-size: 0.82rem;
}
.nw-chat-input:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.45);
}
.nw-chat-input:disabled {
    opacity: 0.65;
}
.nw-chat-send {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--nw-gold);
    color: #1a1030;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.nw-chat-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
@media (min-width: 993px) {
    .nw-chat { bottom: 24px; right: 24px; }
    .nw-chat-panel {
        height: min(520px, calc(100vh - 120px));
    }
}
@media (max-width: 480px) {
    .nw-chat-toggle-label { display: none; }
    .nw-chat-toggle {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ── Bottom dock ── */
.nw-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nw-dock-h);
    display: flex;
    align-items: stretch;
    background: linear-gradient(0deg, #0a0a28 0%, var(--nw-bg-panel) 100%);
    border-top: 1px solid var(--nw-border);
    z-index: 890;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nw-dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--nw-text-dim);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nw-dock-item:hover, .nw-dock-item.is-active { color: var(--nw-gold); }
.nw-dock-glyph .nw-nav-glyph { width: 22px; height: 22px; }
.nw-dock-burger { color: var(--nw-gold); }

/* ── 404 ── */
.nw-error-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    text-align: center;
    padding: 48px 20px 80px;
    overflow: hidden;
}
.nw-error-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.35) 0%, rgba(201, 79, 212, 0.15) 40%, transparent 70%);
    pointer-events: none;
    animation: nw-error-pulse 4s ease-in-out infinite;
}
@keyframes nw-error-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
}
.nw-error-code {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(5rem, 18vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 50%, var(--nw-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(124, 92, 255, 0.4));
}
.nw-error-title {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 3.5vw, 1.45rem);
    font-weight: 600;
    margin-bottom: 12px;
    max-width: 420px;
    line-height: 1.35;
}
.nw-error-desc {
    position: relative;
    z-index: 1;
    color: var(--nw-text-dim);
    margin-bottom: 32px;
    max-width: 400px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.nw-error-home {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--nw-accent) 0%, var(--nw-accent-hot) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nw-error-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201, 79, 212, 0.5);
}

/* ── Desktop overrides ── */
@media (min-width: 993px) {
    body { padding-bottom: 0; }
    .nw-bottom-dock { display: none; }
    .nw-drawer-panel, .nw-drawer-veil { display: none !important; }
    .nw-site-tail { padding-bottom: 32px; }
    .nw-win-ticker-item { font-size: 0.82rem; }
    .nw-game-tile { flex: 0 0 140px; }
    .nw-banner-card { flex: 0 0 min(48%, 520px); }
}

@keyframes nw-pulse-solid {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
    50%       { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
}
@keyframes nw-pulse-ghost {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

@media (max-width: 992px) {
    .nw-nav-strip { display: none; }
    .nw-page-canvas { padding-bottom: 8px; }
    .nw-cta-ghost {
        display: inline-flex;
        animation: nw-pulse-ghost 2.4s ease-in-out infinite;
    }
    .nw-cta-solid {
        animation: nw-pulse-solid 2s ease-in-out infinite;
    }
    .nw-topbar-tools .nw-cta-ghost,
    .nw-topbar-tools .nw-cta-solid {
        padding: 10px 19px;
        font-size: 1.02rem;
    }
}

@media (max-width: 480px) {
    .nw-topbar-row { padding: 8px 12px; }
    .nw-topbar-tools { gap: 6px; }
    .nw-topbar-tools .nw-cta-ghost,
    .nw-topbar-tools .nw-cta-solid {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    .nw-game-tile  { flex: 0 0 108px; }
}
