/* Global reset / base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ddw-bg: #05060b;
    --ddw-bg-alt: #0c0f1a;
    --ddw-surface: #141725;
    --ddw-surface-soft: #181c2b;
    --ddw-accent: #ffb347; /* теплий "дербі" акцент */
    --ddw-accent-soft: #ffd9a1;
    --ddw-accent-green: #31d47a;
    --ddw-text: #f5f7ff;
    --ddw-muted: #a1a6c7;
    --ddw-border: rgba(255,255,255,0.07);
    --ddw-radius-lg: 24px;
    --ddw-radius-md: 16px;
    --ddw-shadow-soft: 0 18px 46px rgba(0,0,0,0.8);
    --ddw-shadow-hero: 0 28px 70px rgba(0,0,0,0.9);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #1a2034 0, #05060b 55%) fixed,
        var(--ddw-bg);
    color: var(--ddw-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ddw-accent-green);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Layout wrapper */
.ddw-site-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* HEADER */

.ddw-site-header {
    padding: 14px 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ddw-site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ddw-site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ddw-site-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 20%, #fff3d4, #ffb347 40%, #7d3b00 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #1a0f00;
    box-shadow: 0 10px 26px rgba(0,0,0,0.8);
}

.ddw-site-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ddw-site-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ddw-site-tagline {
    font-size: 12px;
    color: var(--ddw-muted);
}

/* NAV */

.ddw-main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ddw-main-nav > ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.ddw-main-nav li {
    margin: 0;
}

.ddw-main-nav a {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5,9,25,0.9);
    color: #e5e8ff;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
}
.ddw-main-nav a:hover {
    background: rgba(16,22,52,0.95);
}

.ddw-nav-cta {
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--ddw-accent-green), #4eef9c);
    color: #02170a;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.75);
    white-space: nowrap;
}
.ddw-nav-cta:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

/* Buttons */

.ddw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ddw-accent), var(--ddw-accent-green));
    color: #1a0f04;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.85);
}
.ddw-btn-primary:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.ddw-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    font-weight: 600;
    color: var(--ddw-text);
}
.ddw-btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
}

.ddw-btn-claim {
    min-width: 150px;
}

/* HERO */

.ddw-hero {
    margin-top: 18px;
    padding: 24px 22px 22px;
    border-radius: var(--ddw-radius-lg);
    background:
        radial-gradient(circle at top left, #403056, #151729 45%, #090b13 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--ddw-shadow-hero);
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: flex-start;
}

.ddw-hero-main {
    max-width: 640px;
}

.ddw-hero-kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--ddw-muted);
}

.ddw-hero-kicker {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.45);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.ddw-hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    border: 1px dashed rgba(255,255,255,0.16);
}

.ddw-hero-title {
    margin: 2px 0 10px;
    font-size: 28px;
    line-height: 1.16;
}

.ddw-hero-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ddw-accent-soft);
}

.ddw-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ddw-hero-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    color: #edefff;
}

.ddw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ddw-hero-small-note {
    font-size: 11px;
    color: var(--ddw-muted);
}

/* HERO SIDE */

.ddw-hero-side {
    border-radius: var(--ddw-radius-md);
    background: radial-gradient(circle at top right, #26345d, #161826);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ddw-hero-side-title {
    margin: 0 0 4px;
    font-size: 14px;
    color: #f3f4ff;
}

.ddw-hero-side-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--ddw-accent-soft);
}
.ddw-hero-side-list li {
    margin-bottom: 4px;
}

.ddw-hero-side-disclaimer {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--ddw-muted);
}

/* GENERIC PAGE WRAPPER */

.ddw-page-wrapper {
    background: var(--ddw-surface);
    border-radius: var(--ddw-radius-lg);
    border: 1px solid var(--ddw-border);
    box-shadow: var(--ddw-shadow-soft);
    padding: 20px 18px 22px;
    margin-top: 20px;
}

.ddw-article-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.ddw-article-content {
    font-size: 14px;
    color: #e1e4ff;
    line-height: 1.7;
}

.ddw-article-empty {
    font-size: 14px;
    color: var(--ddw-muted);
}

/* SPORTSBOOK TABLE */

.ddw-sb-section {
    margin-top: 26px;
    border-radius: var(--ddw-radius-lg);
    background: linear-gradient(145deg, #111321, #05060b);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--ddw-shadow-soft);
    overflow: hidden;
}

.ddw-sb-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ddw-sb-title {
    margin: 0 0 4px;
    font-size: 19px;
}

.ddw-sb-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--ddw-muted);
}

.ddw-sb-tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    color: #d9ddff;
    background: rgba(0,0,0,0.5);
}

.ddw-sb-head-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 2.4fr) minmax(0, 2fr) 110px 150px;
    gap: 0;
    padding: 10px 20px;
    font-size: 12px;
    color: var(--ddw-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ddw-sb-head-cell {
    opacity: 0.9;
}

.ddw-sb-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 2.4fr) minmax(0, 2fr) 110px 150px;
    gap: 0;
    align-items: stretch;
    padding: 14px 20px;
    background: rgba(14,17,33,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.ddw-sb-row:nth-child(odd) {
    background: rgba(18,21,39,0.98);
}
.ddw-sb-row:hover {
    background: rgba(24,28,50,0.98);
    transform: translateY(-1px);
    box-shadow: 0 16px 46px rgba(0,0,0,0.9);
}

.ddw-sb-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    color: #f1f3ff;
}

.ddw-sb-cell-rank {
    justify-content: center;
}

.ddw-sb-rank-number {
    font-weight: 800;
    font-size: 16px;
    color: var(--ddw-accent-green);
}

/* Brand cell */

.ddw-sb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ddw-sb-logo-wrap {
    width: 80px;
    height: 72px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #202432, #070811 70%);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ddw-sb-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ddw-sb-logo-placeholder {
    font-weight: 700;
    font-size: 18px;
    color: var(--ddw-accent-soft);
}

.ddw-sb-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ddw-sb-brand-name {
    font-weight: 700;
    font-size: 15px;
}

.ddw-sb-brand-sub {
    font-size: 11px;
    color: var(--ddw-muted);
}

/* Bonus / rating / CTA */

.ddw-sb-bonus {
    font-size: 13px;
    color: #f9f4ff;
}

.ddw-sb-rating {
    justify-content: center;
}

.ddw-sb-star {
    margin-right: 2px;
    color: #ffd35a;
}

.ddw-sb-star-empty {
    color: #3e445c;
}

.ddw-sb-cta {
    justify-content: flex-end;
}

.ddw-sb-note {
    padding: 10px 20px 14px;
    font-size: 11px;
    color: var(--ddw-muted);
    background: rgba(7,9,20,0.96);
}

/* SWEEPS TEASER */

.ddw-sweeps-teaser {
    margin-top: 22px;
    padding: 18px 18px 20px;
    border-radius: var(--ddw-radius-lg);
    background: var(--ddw-surface-soft);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--ddw-shadow-soft);
}

.ddw-sweeps-teaser h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.ddw-sweeps-teaser p {
    margin: 4px 0 10px;
    font-size: 14px;
    color: var(--ddw-accent-soft);
}

/* SWEEPS PAGE */

.ddw-sweeps-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    color: #eef1ff;
    padding: 24px 0 32px;
}

.ddw-sweeps-hero {
    padding: 22px 20px 20px;
    border-radius: var(--ddw-radius-lg);
    background: radial-gradient(circle at top left, #43366b, #151729 55%, #090b13 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--ddw-shadow-hero);
}

.ddw-sweeps-hero-title {
    margin: 0 0 8px;
    font-size: 26px;
}

.ddw-sweeps-hero-text {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ddw-accent-soft);
}

.ddw-sweeps-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ddw-sweeps-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 11px;
    color: #f3f4ff;
}

/* Sweeps table */

.ddw-sweeps-table-section {
    border-radius: var(--ddw-radius-lg);
    background: radial-gradient(circle at top, #171b30, #060710);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--ddw-shadow-soft);
    overflow: hidden;
}

.ddw-sweeps-table-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ddw-sweeps-table-title {
    margin: 0 0 4px;
    font-size: 18px;
}

.ddw-sweeps-table-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--ddw-muted);
}

.ddw-sweeps-table-tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #daddff;
}

.ddw-sweeps-head-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 2.4fr) minmax(0, 2fr) 150px;
    gap: 0;
    padding: 10px 18px;
    font-size: 12px;
    color: var(--ddw-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ddw-sweeps-head-cell {
    opacity: 0.9;
}

.ddw-sweeps-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 2.4fr) minmax(0, 2fr) 150px;
    gap: 0;
    align-items: stretch;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(14,17,33,0.98);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.ddw-sweeps-row:nth-child(odd) {
    background: rgba(18,21,39,0.98);
}
.ddw-sweeps-row:hover {
    background: rgba(24,28,50,0.98);
    transform: translateY(-1px);
    box-shadow: 0 16px 46px rgba(0,0,0,0.9);
}

.ddw-sweeps-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    color: #f3f4ff;
}

.ddw-sweeps-cell-rank {
    justify-content: center;
}

.ddw-sweeps-rank-number {
    font-weight: 800;
    font-size: 16px;
    color: var(--ddw-accent-green);
}

/* Brand cell */

.ddw-sweeps-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ddw-sweeps-logo-wrap {
    width: 96px;
    height: 80px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #23293b, #070811 70%);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ddw-sweeps-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ddw-sweeps-logo-placeholder {
    font-weight: 700;
    font-size: 18px;
    color: var(--ddw-accent-soft);
}

.ddw-sweeps-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ddw-sweeps-brand-name {
    font-weight: 700;
    font-size: 15px;
}

.ddw-sweeps-brand-sub {
    font-size: 11px;
    color: var(--ddw-muted);
}

/* Bonus / CTA */

.ddw-sweeps-bonus-text {
    font-size: 13px;
    color: #f9f4ff;
}

.ddw-sweeps-cta {
    justify-content: flex-end;
}

.ddw-sweeps-note {
    padding: 10px 18px 14px;
    font-size: 11px;
    color: var(--ddw-muted);
    background: rgba(7,9,20,0.96);
}

/* Sweeps guide */

.ddw-sweeps-guide {
    margin-top: 8px;
    padding: 16px 18px 18px;
    border-radius: var(--ddw-radius-lg);
    background: var(--ddw-surface);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--ddw-shadow-soft);
}

.ddw-sweeps-guide h2 {
    margin-top: 0;
    font-size: 20px;
}

.ddw-sweeps-guide h3 {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 16px;
}

.ddw-sweeps-guide p {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d9ddff;
}

.ddw-sweeps-guide ul {
    margin: 4px 0 10px 20px;
    padding: 0;
    font-size: 14px;
}

.ddw-sweeps-guide li {
    margin-bottom: 4px;
}

/* FOOTER */

.ddw-site-footer {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: 12px;
    color: var(--ddw-muted);
}

.ddw-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.7fr);
    gap: 20px;
    margin-bottom: 16px;
}

.ddw-footer-col h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #f3f4ff;
}

.ddw-footer-logo-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.ddw-footer-tagline {
    margin: 0;
    font-size: 12px;
    color: var(--ddw-accent-soft);
}

.ddw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ddw-footer-links li {
    margin-bottom: 4px;
}
.ddw-footer-links a {
    color: #c8ceff;
}

.ddw-footer-text {
    margin: 0 0 6px;
    color: var(--ddw-muted);
}

.ddw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 8px;
    font-size: 11px;
    color: var(--ddw-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ddw-footer-sep {
    opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .ddw-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 20px 16px 18px;
    }
}

@media (max-width: 900px) {
    .ddw-sb-head-row {
        display: none;
    }
    .ddw-sb-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 8px;
        padding: 12px 14px;
    }
    .ddw-sb-cta {
        justify-content: flex-start;
    }
    .ddw-btn-claim {
        width: 100%;
    }

    .ddw-sweeps-head-row {
        display: none;
    }
    .ddw-sweeps-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 8px;
        padding: 12px 14px;
    }
    .ddw-sweeps-cta {
        justify-content: flex-start;
    }
    .ddw-sweeps-cta .ddw-btn-claim {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .ddw-site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ddw-footer-top {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
}

@media (max-width: 560px) {
    .ddw-footer-top {
        grid-template-columns: minmax(0,1fr);
    }
}
