:root {
    --bg: #eef3f9;
    --panel: #ffffff;
    --panel-soft: rgba(9, 50, 110, 0.04);
    --text: #153055;
    --muted: #526987;
    --muted-soft: #47627f;
    --muted-strong: #3d5674;
    --on-dark-muted: rgba(255, 255, 255, 0.84);
    --on-dark-strong: rgba(255, 255, 255, 0.94);
    --accent-soft-bg: rgba(15, 79, 168, 0.12);
    --accent-soft-border: rgba(15, 79, 168, 0.16);
    --border: rgba(17, 54, 104, 0.12);
    --shadow: 0 20px 40px rgba(12, 38, 79, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --rose: #f44760;
    --cyan: #1b67c8;
    --gold: #ffd447;
    --green: #1d9d76;
    --brand: #0f4fa8;
    --brand-dark: #0b2d66;
    --gold-ink: #4f3200;
    --gold-ink-soft: #674100;
    --font-sans: "Segoe UI", "Microsoft YaHei", sans-serif;
    --font-display: Georgia, "Times New Roman", "Noto Serif SC", serif;
    --shadow-soft: 0 14px 30px rgba(11, 45, 102, 0.06);
    --shadow-strong: 0 28px 54px rgba(11, 45, 102, 0.12);
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes sheen-sweep {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(220%);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 212, 71, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(15, 79, 168, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #edf3f9 48%, #f5f8fc 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 45, 102, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(11, 45, 102, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 85%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.5), transparent 18%),
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.34), transparent 22%),
        radial-gradient(circle at 50% 75%, rgba(15, 79, 168, 0.05), transparent 30%);
    opacity: 0.7;
}

a {
    color: inherit;
    text-decoration: none;
}

[data-card-link] {
    cursor: pointer;
}

button,
select {
    font: inherit;
}

#app {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 79, 168, 0.25), transparent);
}

.site-utility {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    color: rgba(255, 255, 255, 0.92);
}

.site-utility__inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-utility__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 10px 0;
    font-size: 0.92rem;
}

.site-utility__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 0;
}

.site-utility__link {
    opacity: 0.92;
}

.site-utility__link:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-header__inner,
.site-footer__inner,
.site-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.site-nav-groups {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4px 0 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    animation: fade-rise 0.55s ease both;
}

.nav-group-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 16px 26px rgba(11, 45, 102, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    position: relative;
}

.nav-group-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 79, 168, 0.22);
    background: linear-gradient(180deg, rgba(15, 79, 168, 0.06), #fff);
    box-shadow: 0 22px 36px rgba(11, 45, 102, 0.08);
}

.nav-group-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), rgba(255, 212, 71, 0.8));
    opacity: 0.55;
}

.nav-group-card__eyebrow {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-group-card__body {
    color: var(--muted-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #ffe98f);
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong,
.hero-feature-card h1,
.hero-side-card h2,
.digest-feature-card h3,
.section-header h2,
.result-card__head h3,
.news-card h3,
.more-lottery-card__head h3,
.lottery-card__body h3,
.history-preview .section-header h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.site-brand small,
.muted {
    color: var(--muted);
}

.site-brand small {
    color: var(--muted-soft);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav__link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-soft);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    letter-spacing: 0.01em;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: rgba(15, 79, 168, 0.09);
    color: var(--brand-dark);
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-soft);
}

.locale-switcher--utility {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    justify-content: flex-end;
}

.locale-switcher select {
    min-width: 148px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.locale-switcher--utility select {
    min-width: 156px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.locale-switcher--utility select option {
    color: var(--text);
}

.site-main {
    padding: 28px 0 72px;
}

.hero-panel,
.detail-hero,
.section-block,
.current-draw-panel,
.history-table-wrapper,
.feature-card,
.lottery-card,
.result-card,
.history-preview,
.stat-box {
    box-shadow: var(--shadow);
}

.hero-panel,
.detail-hero,
.section-block {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.site-main--portal {
    padding-top: 24px;
}

.site-main--content {
    display: grid;
    gap: 24px;
}

.content-page-hero {
    padding: 28px 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        linear-gradient(140deg, rgba(10, 40, 88, 0.04), transparent 42%),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    box-shadow: var(--shadow);
}

.content-page-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(1.82rem, 2.7vw, 2.55rem);
    line-height: 1.06;
    color: var(--brand-dark);
}

.content-page-hero p {
    max-width: 70ch;
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.72;
}

.quick-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(17, 54, 104, 0.08);
    box-shadow: 0 18px 32px rgba(11, 45, 102, 0.05);
    animation: fade-rise 0.6s ease both;
}

.quick-nav__item {
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(11, 45, 102, 0.05);
    color: var(--brand-dark);
    font-weight: 700;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quick-nav__item::after {
    content: "›";
    color: rgba(15, 79, 168, 0.46);
    font-size: 1rem;
    font-weight: 800;
}

.quick-nav__item:nth-child(2) { animation-delay: 0.04s; }
.quick-nav__item:nth-child(3) { animation-delay: 0.08s; }
.quick-nav__item:nth-child(4) { animation-delay: 0.12s; }
.quick-nav__item:nth-child(5) { animation-delay: 0.16s; }
.quick-nav__item:nth-child(6) { animation-delay: 0.2s; }

.quick-nav__item:hover {
    background: rgba(15, 79, 168, 0.04);
    border-color: rgba(15, 79, 168, 0.18);
    transform: translateY(-1px);
}

.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted-soft);
    font-size: 0.95rem;
}

.breadcrumb strong {
    color: var(--brand-dark);
}

.hero-portal,
.portal-layout {
    display: grid;
    gap: 24px;
}

.hero-portal {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    margin-bottom: 22px;
    align-items: start;
    animation: fade-rise 0.6s ease both;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 24px;
    margin-top: 24px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 24px;
    align-items: start;
}

.hero-feature-card,
.hero-side-card,
.service-card,
.news-card,
.guide-step,
.detail-sidecard {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-feature-card,
.hero-side-card {
    padding: 28px;
}

.hero-feature-card {
    background:
        linear-gradient(135deg, rgba(10, 40, 88, 0.04), transparent 45%),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.28), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
    overflow: hidden;
    position: relative;
}

.hero-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 35%),
        repeating-linear-gradient(120deg, rgba(15, 79, 168, 0.025) 0 2px, transparent 2px 20px);
    pointer-events: none;
}

.hero-feature-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -24% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 79, 168, 0.08), transparent 70%);
    pointer-events: none;
    animation: soft-float 8s ease-in-out infinite;
}

.hero-feature-card h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.3vw, 2.9rem);
    line-height: 1.02;
}

.hero-edition-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(11, 45, 102, 0.96), rgba(15, 79, 168, 0.92));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(10, 40, 88, 0.14);
}

.hero-edition-bar strong {
    color: #fff;
    margin-right: 6px;
}

.hero-edition-bar__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-feature-card p,
.hero-side-card p {
    color: var(--muted-soft);
    line-height: 1.7;
}

.hero-feature-card__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.hero-feature-card__headline {
    max-width: 540px;
    position: relative;
    padding-left: 18px;
}

.hero-feature-card__headline::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-dark), var(--gold));
}

.hero-feature-card__headline p {
    max-width: 46ch;
    font-size: 0.95rem;
    line-height: 1.62;
    margin: 0;
    color: var(--muted-strong);
}

.hero-result-board {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(11, 45, 102, 0.12);
    background:
        linear-gradient(180deg, rgba(11, 45, 102, 0.03), rgba(255, 255, 255, 0.98)),
        linear-gradient(120deg, rgba(255, 212, 71, 0.12), transparent 40%);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(14px);
    isolation: isolate;
}

.hero-result-board::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand) 68%, rgba(255, 212, 71, 0.88));
}

.hero-result-board::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%);
    pointer-events: none;
    opacity: 0.6;
    transform: translateX(-120%);
    animation: sheen-sweep 4.8s ease-in-out infinite 1.2s;
}

.hero-result-board__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hero-result-board__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-result-board__header strong {
    display: block;
    font-size: clamp(1.48rem, 2.5vw, 2rem);
    line-height: 1.08;
    color: var(--brand-dark);
}

.hero-result-board__issue {
    min-width: 138px;
    text-align: right;
}

.hero-result-board__issue span,
.hero-result-board__meta span {
    display: block;
    color: var(--muted-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-result-board__issue strong {
    margin-top: 6px;
    font-size: 1.28rem;
}

.hero-result-board__numbers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0 20px;
    border-top: 1px solid rgba(17, 54, 104, 0.08);
    border-bottom: 1px solid rgba(17, 54, 104, 0.08);
}

.hero-result-board__numbers .number-pill,
.hero-result-board__numbers .rank-pill {
    min-width: 46px;
    min-height: 46px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #1a65cb, #0b3f86);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    box-shadow: 0 10px 18px rgba(11, 45, 102, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.hero-result-board__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hero-result-board__meta article {
    position: relative;
    padding: 12px 14px 11px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 249, 255, 0.94));
    border: 1px solid rgba(15, 79, 168, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.hero-result-board__meta article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 79, 168, 0.36), rgba(255, 212, 71, 0.72));
}

.hero-result-board__meta strong {
    display: block;
    margin-top: 6px;
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.hero-result-board__meta article:nth-child(2) strong {
    font-size: 0.95rem;
    color: #355173;
}

.hero-feature-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hero-feature-stat {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 79, 168, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hero-feature-stat:first-child {
    background: linear-gradient(180deg, rgba(11, 45, 102, 0.05), rgba(255, 255, 255, 0.9));
}

.hero-feature-stat span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.hero-feature-stat strong {
    display: block;
    margin-top: 10px;
    color: var(--brand-dark);
    font-size: 1.15rem;
}

.hero-feature-stat--numbers .table-numbers {
    margin-top: 12px;
}

.hero-feature-stat--numbers .number-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
    flex: 0 0 36px;
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6b7d, #d62839);
    box-shadow: 0 8px 16px rgba(214, 40, 57, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.hero-feature-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 79, 168, 0.18);
}

.hero-feature-stat--numbers strong {
    margin-top: 0;
}

.hero-side-card {
    background: linear-gradient(180deg, #153b7b 0%, #0b2d66 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    animation: fade-rise 0.7s ease both;
}

.hero-side-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 212, 71, 0.22), transparent 70%);
    animation: soft-float 9s ease-in-out infinite;
}

.hero-side-card .section-header__eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--on-dark-strong);
}

.hero-side-card span,
.hero-side-card p {
    color: var(--on-dark-muted);
}

.hero-side-card__metric span {
    color: var(--on-dark-strong);
}

.hero-side-card h2,
.hero-side-card strong,
.hero-side-card b {
    color: #fff;
}

.hero-side-card__metric {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-side-card__metric:last-of-type {
    border-bottom: 0;
}

.hero-side-card__metric strong {
    display: block;
    margin-top: 7px;
    font-size: 1.34rem;
}

.hero-feature-card__actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-feature-card__actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 7px 14px rgba(15, 79, 168, 0.12);
}

.hero-feature-card__actions .button:hover {
    box-shadow: 0 12px 20px rgba(15, 79, 168, 0.18);
}

.hero-channel-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: -2px;
}

.hero-channel-card {
    display: grid;
    gap: 8px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 54, 104, 0.1);
    box-shadow: 0 18px 30px rgba(12, 38, 79, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hero-channel-card strong {
    font-size: 1.08rem;
}

.hero-channel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 79, 168, 0.22);
    background: #fff;
}

.hero-channel-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(15, 79, 168, 0.4), transparent);
}

.hero-channel-card:nth-child(1),
.hero-channel-card:nth-child(2),
.hero-channel-card:nth-child(3),
.hero-channel-card:nth-child(4) {
    animation: fade-rise 0.58s ease both;
}

.hero-channel-card:nth-child(2) { animation-delay: 0.06s; }
.hero-channel-card:nth-child(3) { animation-delay: 0.12s; }
.hero-channel-card:nth-child(4) { animation-delay: 0.18s; }

.hero-channel-card__eyebrow {
    color: var(--brand-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-channel-card__meta {
    display: grid;
    gap: 6px;
}

.hero-channel-card__meta span {
    color: var(--muted-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hero-channel-card__meta b {
    color: var(--brand-dark);
}

.hero-side-card__metric--inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.section-header > p {
    margin: 0;
    max-width: 78ch;
    color: var(--muted-strong);
    line-height: 1.72;
}

.service-card,
.news-card,
.guide-step,
.detail-sidecard {
    padding: 24px;
}

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.96));
    box-shadow: 0 12px 24px rgba(11, 45, 102, 0.05);
}

.section-block--services .service-card,
.section-block--news .news-card,
.section-block--digest .digest-feature-card,
.section-block--digest .digest-side-card {
    border-color: rgba(15, 79, 168, 0.1);
}

.service-card,
.news-card,
.digest-feature-card,
.digest-side-card,
.more-lottery-card,
.history-preview,
.overview-stat,
.overview-panel,
.lottery-card,
.insight-card,
.bulletin-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.portal-main > .section-block,
.portal-sidebar > .section-block {
    animation: fade-rise 0.55s ease both;
}

.portal-main > .section-block:nth-child(2),
.portal-sidebar > .section-block:nth-child(2) { animation-delay: 0.06s; }
.portal-main > .section-block:nth-child(3),
.portal-sidebar > .section-block:nth-child(3) { animation-delay: 0.12s; }
.portal-main > .section-block:nth-child(4),
.portal-sidebar > .section-block:nth-child(4) { animation-delay: 0.18s; }

.service-card:hover,
.news-card:hover,
.digest-feature-card:hover,
.digest-side-card:hover,
.more-lottery-card:hover,
.history-preview:hover,
.overview-stat:hover,
.overview-panel:hover,
.lottery-card:hover,
.insight-card:hover,
.bulletin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 36px rgba(11, 45, 102, 0.09);
    border-color: rgba(15, 79, 168, 0.16);
}

.detail-sidecard--brand {
    background: linear-gradient(180deg, rgba(15, 79, 168, 0.06), #ffffff);
}

.detail-sidecard h3 {
    margin: 0 0 14px;
}

.detail-sidecard p {
    color: var(--muted-strong);
    line-height: 1.7;
}

.detail-sidecard__metrics {
    display: grid;
    gap: 14px;
}

.detail-sidecard__metrics span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-sidecard__metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
    color: var(--brand-dark);
}

.detail-linklist {
    display: grid;
    gap: 10px;
}

.detail-linklist a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 79, 168, 0.05);
    border: 1px solid rgba(15, 79, 168, 0.08);
    color: var(--brand-dark);
    font-weight: 600;
}

.detail-linklist--compact a {
    display: grid;
    gap: 6px;
}

.detail-linklist--compact a strong {
    color: var(--brand-dark);
}

.detail-linklist--compact a span {
    color: var(--muted-strong);
    font-size: 0.84rem;
    font-weight: 500;
}

.detail-note-list {
    margin-top: 18px;
}

.detail-note-list p {
    margin: 0;
}

.service-card__eyebrow,
.news-card__tag {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card h3,
.news-card h3,
.guide-step h3 {
    margin: 0 0 10px;
}

.service-card p,
.news-card p,
.guide-step p {
    color: var(--muted-strong);
    line-height: 1.7;
}

.service-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.service-card__stats span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.service-card__stats strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.news-card--featured {
    grid-row: span 2;
}

.digest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 20px;
}

.digest-feature-card,
.digest-side-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.digest-feature-card {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(10, 40, 88, 0.04), transparent 40%),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.22), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    position: relative;
    overflow: hidden;
}

.digest-feature-card::after {
    content: "";
    position: absolute;
    inset: auto 28px 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.65), rgba(255, 212, 71, 0.8));
}

.digest-feature-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.8vw, 2.45rem);
    line-height: 1.1;
}

.digest-feature-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.digest-feature-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 54, 104, 0.09);
}

.digest-feature-card__meta strong {
    color: var(--brand-dark);
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.news-card__meta strong {
    color: var(--brand-dark);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.digest-side-grid {
    display: grid;
    gap: 16px;
}

.digest-side-card {
    padding: 22px;
    background: rgba(15, 79, 168, 0.03);
}

.digest-side-card h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.digest-side-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

.digest-side-card__tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-card--featured {
    background:
        linear-gradient(180deg, rgba(15, 79, 168, 0.08), rgba(255, 255, 255, 1));
    position: relative;
    overflow: hidden;
}

.news-card--featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 212, 71, 0.2), transparent 70%);
    transform: translate(28%, -28%);
    pointer-events: none;
}

.news-card--featured::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.26), transparent 72%);
}

.news-card:not(.news-card--featured) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
}

.news-card__meta {
    display: grid;
    gap: 6px;
    margin: 18px 0 22px;
}

.news-card__meta span {
    color: var(--muted-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.news-card__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.news-card__chips span,
.news-card__tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.editorial-grid,
.policy-grid,
.jackpot-grid {
    display: grid;
    gap: 18px;
}

.editorial-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
}

.editorial-card,
.policy-card,
.jackpot-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    box-shadow: var(--shadow-soft);
}

.editorial-card,
.policy-card {
    padding: 22px;
}

.editorial-card--lead {
    display: grid;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(10, 40, 88, 0.05), transparent 42%),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 255, 0.98));
}

.editorial-card__tag,
.policy-card__tag,
.jackpot-card__tag {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.editorial-card h3,
.policy-card h3,
.jackpot-card h3 {
    margin: 12px 0 10px;
}

.editorial-card p,
.policy-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.72;
}

.editorial-card strong:not(.button),
.policy-card strong:not(.button) {
    color: var(--brand-dark);
}

.editorial-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 54, 104, 0.09);
}

.article-header {
    display: grid;
    gap: 14px;
}

.article-header h2 {
    margin: 0;
}

.article-header p {
    margin: 0;
    max-width: 78ch;
    color: var(--muted-strong);
    line-height: 1.74;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 54, 104, 0.09);
}

.article-body {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.article-body > p {
    margin: 0;
    max-width: 84ch;
    color: var(--text);
    line-height: 1.78;
}

.news-timeline {
    display: grid;
    gap: 14px;
}

.news-timeline__item {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    box-shadow: var(--shadow-soft);
}

.news-timeline__item > strong {
    color: var(--brand-dark);
    font-size: 0.95rem;
}

.news-timeline__item h3 {
    margin: 8px 0 10px;
}

.news-timeline__item p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.72;
}

.news-timeline__tag {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.claim-table-wrapper {
    overflow: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

.claim-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

.claim-table th,
.claim-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(17, 54, 104, 0.09);
    text-align: left;
    vertical-align: top;
}

.claim-table th {
    color: var(--muted-strong);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.claim-table td {
    color: var(--text);
    line-height: 1.7;
}

.policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#resultDetailMetaCards .policy-card h3 {
    margin: 12px 0 10px;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.policy-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.jackpot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jackpot-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.jackpot-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.24), rgba(255, 212, 71, 0.72), transparent 72%);
}

.jackpot-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.jackpot-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-weight: 800;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.theme-rose .jackpot-card__icon {
    background: linear-gradient(135deg, #ff6d89, var(--rose));
}

.theme-cyan .jackpot-card__icon {
    background: linear-gradient(135deg, #3f86e0, var(--cyan));
}

.theme-gold .jackpot-card__icon {
    background: linear-gradient(135deg, #ffe17d, var(--gold));
    color: #6b4300;
}

.theme-green .jackpot-card__icon {
    background: linear-gradient(135deg, #47bf99, var(--green));
}

.jackpot-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.jackpot-card__metrics span,
.jackpot-card__foot span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.jackpot-card__metrics strong,
.jackpot-card__foot strong {
    display: block;
    margin-top: 8px;
    color: var(--brand-dark);
    font-size: 1.14rem;
}

.jackpot-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 54, 104, 0.09);
}

.guide-steps {
    display: grid;
    gap: 16px;
}

.guide-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.guide-rule-card {
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
    border: 1px solid rgba(15, 79, 168, 0.12);
    box-shadow: var(--shadow-soft);
}

.guide-rule-card__header {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.guide-rule-card__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), #3278dd);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.guide-rule-card h3 {
    margin: 0 0 6px;
}

.guide-rule-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.65;
}

.guide-rule-card .rule-list {
    margin-top: 0;
}

.theme-gold.guide-rule-card .guide-rule-card__icon {
    background: linear-gradient(135deg, #f1c44d, #cf9712);
    color: #593700;
}

.guide-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.guide-step span {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #3278dd);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 79, 168, 0.18);
}

.guide-step__content {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

.guide-step__content h3,
.guide-step__content p {
    margin: 0;
}

.guide-step__content p {
    max-width: 90ch;
    line-height: 1.72;
}

.hero-panel__eyebrow,
.section-header__eyebrow,
.detail-hero__eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header__eyebrow--mini {
    margin-bottom: 10px;
    padding: 6px 12px;
    font-size: 11px;
}

.hero-panel h1,
.detail-hero h1,
.section-header h2 {
    margin: 0;
}

.hero-panel h1,
.detail-hero h1 {
    font-size: clamp(1.82rem, 3.5vw, 3.15rem);
    line-height: 1.04;
}

.hero-panel p,
.detail-hero p {
    color: var(--muted-strong);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-panel__content {
    max-width: 760px;
}

.hero-panel__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #1a65cb, #0d4fa7);
    color: #fff;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 12px 22px rgba(15, 79, 168, 0.18);
}

.button--ghost {
    background: #fff;
    border-color: rgba(15, 79, 168, 0.18);
    color: var(--brand-dark);
    box-shadow: 0 10px 18px rgba(11, 45, 102, 0.06);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15, 79, 168, 0.22);
}

.hero-panel__stat {
    display: flex;
    align-items: center;
}

.hero-stat {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.hero-stat span,
.hero-stat small {
    color: var(--muted-soft);
}

.hero-stat strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-block {
    margin-top: 0;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    position: relative;
    overflow: hidden;
}

.section-block::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.16), rgba(255, 212, 71, 0.16), transparent 68%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.section-header > div {
    position: relative;
    padding-right: 32px;
}

.section-header > div::after {
    content: "";
    position: absolute;
    left: calc(100% - 12px);
    top: 50%;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.28), transparent);
}

.section-header h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
}

.section-header--compact {
    margin-bottom: 18px;
}

.lottery-grid,
.results-grid,
.history-preview-grid,
.bulletin-grid,
.insight-grid,
.more-lotteries-grid {
    display: grid;
    gap: 20px;
}

.lottery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.results-grid,
.bulletin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.more-lotteries-grid,
.insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.results-grid .result-card:first-child,
.results-grid .result-card:last-child {
    grid-column: 1 / -1;
}

.overview-grid,
.overview-metrics,
.schedule-list {
    display: grid;
    gap: 20px;
}

.overview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: start;
}

.overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lottery-card,
.result-card,
.history-preview,
.bulletin-card,
.insight-card,
.overview-stat,
.overview-panel,
.schedule-item {
    background: rgba(15, 79, 168, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.section-block--results {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.99));
}

.section-block--services {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.section-block--digest {
    background:
        linear-gradient(180deg, rgba(244, 248, 255, 0.92), rgba(255, 255, 255, 0.99));
}

.section-block--quick {
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(255, 255, 255, 0.99));
}

.section-block--quick .quick-nav {
    margin-top: 8px;
}

.section-block--quick .quick-nav__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    border: 1px solid rgba(15, 79, 168, 0.1);
    box-shadow: 0 12px 24px rgba(11, 45, 102, 0.05);
}

.section-block--news {
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.section-block--news .bulletin-grid {
    margin-top: 18px;
}

.section-block--guide-rules {
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.99));
}

.section-block--channels,
.section-block--overview,
.section-block--insights {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.section-block--home-channels {
    margin-top: 8px;
}

.section-block--archive {
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(245, 249, 255, 0.98));
}

.lottery-card {
    display: grid;
    grid-template-columns: 90px 1fr;
}

.lottery-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #08111d;
}

.lottery-card__body,
.result-card,
.history-preview,
.bulletin-card,
.insight-card,
.overview-stat,
.overview-panel {
    padding: 22px;
}

.lottery-card__body {
    display: grid;
    gap: 14px;
}

.more-lottery-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: rgba(15, 79, 168, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.more-lottery-card::after,
.lottery-card::after,
.history-preview::after,
.insight-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.15), rgba(255, 212, 71, 0.5), transparent 72%);
}

.bulletin-card {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg, rgba(15, 79, 168, 0.05), rgba(255, 255, 255, 1));
}

.bulletin-card__tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.overview-stat {
    min-height: 168px;
}

.overview-stat span,
.overview-stat small {
    color: var(--muted-strong);
}

.overview-stat strong {
    display: block;
    margin: 14px 0 10px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-item {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 79, 168, 0.22);
    background: rgba(15, 79, 168, 0.05);
}

.schedule-item__main,
.schedule-item__meta,
.schedule-item__foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.schedule-item__main span,
.schedule-item__meta span,
.schedule-item__foot span {
    color: var(--muted-strong);
}

.schedule-item__meta strong {
    font-size: 1.2rem;
}

.schedule-item__main b,
.schedule-item__meta b,
.schedule-item__foot b {
    color: var(--text);
}

.more-lottery-card__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.more-lottery-card__eyebrow,
.result-card__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.more-lottery-card__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.more-lottery-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

.lottery-card__body > p {
    margin: 0;
}

.more-lottery-card__meta,
.result-card__meta {
    display: grid;
    gap: 14px;
}

.more-lottery-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.more-lottery-card__meta span,
.result-card__meta span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.more-lottery-card__meta strong,
.result-card__meta strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
}

.more-lottery-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.more-lottery-card__foot span,
.result-card__summary {
    color: var(--muted-soft);
}

.result-card__summary {
    padding-top: 16px;
    border-top: 1px solid rgba(17, 54, 104, 0.09);
    line-height: 1.6;
}

.results-grid .result-card:is(:first-child, :last-child) {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(11, 45, 102, 0.03), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.16), transparent 35%);
    box-shadow: var(--shadow-strong);
    position: relative;
}

.results-grid .result-card:is(:first-child, :last-child)::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-dark), rgba(255, 212, 71, 0.88));
}

.results-grid .result-card:is(:first-child, :last-child) .result-card__head h3 {
    font-size: 1.6rem;
}

.results-grid .result-card:is(:first-child, :last-child) .result-card__numbers {
    gap: 12px;
    margin: 18px 0 8px;
}

.results-grid .result-card:is(:first-child, :last-child) .number-pill,
.results-grid .result-card:is(:first-child, :last-child) .rank-pill {
    min-width: 43px;
    min-height: 43px;
}

.results-grid .result-card:not(:first-child):not(:last-child) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
}

.results-grid .result-card:not(:first-child):not(:last-child) .result-card__head h3 {
    font-size: 1.18rem;
}

.results-grid .result-card:not(:first-child):not(:last-child) .result-card__meta {
    grid-template-columns: 1fr;
    gap: 12px;
}

.lottery-card__tag {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lottery-card__body h3,
.result-card__head h3,
.bulletin-card h3,
.site-footer h3 {
    margin: 0 0 10px;
}

.lottery-card__body p,
.bulletin-card p,
.site-footer p,
.history-mini span {
    color: var(--muted-strong);
}

.lottery-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.lottery-card__meta dt {
    color: var(--muted-strong);
    font-size: 0.85rem;
}

.lottery-card__meta dd {
    margin: 6px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.lottery-card__numbers,
.result-card__numbers,
.history-mini__numbers,
.table-numbers,
.number-board {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-numbers .number-pill {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    line-height: 1;
    flex: 0 0 36px;
}

.lottery-card__insights {
    display: grid;
    gap: 12px;
    margin: 18px 0 20px;
}

.lottery-card__insights > div > span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-strong);
    font-size: 0.85rem;
}

.lottery-card__summary {
    color: var(--muted-strong);
    line-height: 1.7;
}

.number-board--ranking {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.number-board--grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.number-pill,
.rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.rank-pill {
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    border-radius: 18px;
}

.theme-rose .lottery-card__icon,
.theme-rose .number-pill,
.theme-rose .rank-pill,
.theme-rose.current-draw-panel,
.theme-rose.detail-hero {
    background: linear-gradient(135deg, #ff6d89, var(--rose));
}

.theme-cyan .lottery-card__icon,
.theme-cyan .number-pill,
.theme-cyan .rank-pill,
.theme-cyan.current-draw-panel,
.theme-cyan.detail-hero {
    background: linear-gradient(135deg, #3f86e0, var(--cyan));
}

.theme-gold .lottery-card__icon,
.theme-gold .number-pill,
.theme-gold .rank-pill,
.theme-gold.current-draw-panel,
.theme-gold.detail-hero {
    background: linear-gradient(135deg, #ffe17d, var(--gold));
    color: #6b4300;
}

.theme-green .lottery-card__icon,
.theme-green .number-pill,
.theme-green .rank-pill,
.theme-green .more-lottery-card__icon,
.theme-green.current-draw-panel,
.theme-green.detail-hero {
    background: linear-gradient(135deg, #47bf99, var(--green));
}

.theme-rose .more-lottery-card__icon {
    background: linear-gradient(135deg, #ff6d89, var(--rose));
}

.theme-cyan .more-lottery-card__icon {
    background: linear-gradient(135deg, #3f86e0, var(--cyan));
}

.theme-gold .more-lottery-card__icon {
    background: linear-gradient(135deg, #ffe17d, var(--gold));
    color: #6b4300;
}

.theme-gold.detail-hero p,
.theme-gold.detail-hero .detail-hero__back,
.theme-gold.current-draw-panel .hero-metric span,
.theme-gold.current-draw-panel .stat-box span {
    color: var(--gold-ink-soft);
}

.theme-gold.detail-hero .detail-hero__eyebrow {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(79, 50, 0, 0.16);
    color: var(--gold-ink);
}

.theme-gold.detail-hero h1,
.theme-gold.detail-hero strong,
.theme-gold.current-draw-panel strong,
.theme-gold.current-draw-panel .hero-metric strong,
.theme-gold.current-draw-panel .stat-box strong {
    color: var(--gold-ink);
}

.theme-rose.schedule-item {
    box-shadow: inset 0 0 0 1px rgba(255, 93, 132, 0.16);
}

.theme-cyan.schedule-item {
    box-shadow: inset 0 0 0 1px rgba(79, 217, 255, 0.16);
}

.theme-gold.schedule-item {
    box-shadow: inset 0 0 0 1px rgba(255, 203, 91, 0.16);
}

.theme-green.schedule-item {
    box-shadow: inset 0 0 0 1px rgba(121, 212, 109, 0.16);
}

.result-card__head,
.history-mini,
.detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.history-table td,
.history-table th,
.history-table__empty,
.detail-hero__back,
.hero-metric span,
.stat-box span {
    color: var(--muted);
}

.history-table td {
    color: var(--text);
}

.history-table th,
.history-table__empty {
    color: var(--muted-strong);
}

.current-draw-panel,
.history-table-wrapper,
.detail-sidecard {
    position: relative;
    overflow: hidden;
}

.current-draw-panel::before,
.history-table-wrapper::before,
.detail-sidecard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 79, 168, 0.3), rgba(255, 212, 71, 0.55), transparent 78%);
}

.history-preview__list {
    display: grid;
    gap: 14px;
}

.insight-card h3 {
    margin: 0 0 14px;
}

.insight-card .table-numbers {
    gap: 6px;
}

.insight-card .number-pill,
.insight-card .rank-pill {
    color: var(--brand-dark);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(15, 79, 168, 0.12);
    box-shadow: 0 8px 16px rgba(11, 45, 102, 0.08), inset 0 -2px 0 rgba(15, 79, 168, 0.06);
}

.insight-card .rank-pill span {
    color: var(--muted-soft);
}

.insight-card .rank-pill strong {
    color: var(--brand-dark);
}

.insight-card--wide {
    grid-column: span 2;
}

.trend-list {
    display: grid;
    gap: 10px;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 54, 104, 0.09);
    transition: transform 0.16s ease, padding-left 0.16s ease;
}

.trend-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.trend-item:hover {
    transform: translateX(4px);
    padding-left: 4px;
}

.trend-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.trend-item small {
    color: var(--muted-soft);
}

.insight-summary {
    display: grid;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(17, 54, 104, 0.09);
}

.summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-row span {
    color: var(--muted-strong);
}

.summary-row strong {
    color: var(--brand-dark);
}

.history-mini {
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17, 54, 104, 0.09);
}

.history-mini__label {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--muted-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-mini:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.history-mini strong a,
.history-table__issue-link {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-card__actions {
    margin-top: 16px;
}

.checker-form,
.archive-toolbar,
.archive-pagination,
.detail-nav-grid,
.checker-lines,
.checker-form__controls,
.checker-form__actions,
.checker-results {
    display: grid;
    gap: 16px;
}

.checker-form__controls,
.archive-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checker-results__summary {
    display: grid;
    gap: 12px;
    justify-items: end;
    text-align: right;
}

.checker-results__summary p,
.checker-form__note,
.checker-results__note {
    margin: 0;
}

.checker-results__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.checker-form__note,
.checker-results__note,
.checker-result__label {
    color: var(--muted-strong);
    line-height: 1.65;
}

.checker-result__label {
    display: block;
    margin-top: 14px;
    font-size: 0.84rem;
    font-weight: 700;
}

.section-block--checker-form[data-mode="results"] {
    border-color: rgba(15, 79, 168, 0.16);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.section-block--checker-results[data-mode="results"] {
    border-color: rgba(15, 79, 168, 0.22);
    box-shadow: 0 26px 44px rgba(11, 45, 102, 0.12);
}

.archive-toolbar__tabs,
.archive-toolbar__filters,
.checker-line__numbers,
.detail-nav-grid {
    display: grid;
    gap: 12px;
}

.archive-toolbar__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-toolbar__filters {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.archive-tab,
.checker-form input,
.checker-form select {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
}

.archive-tab {
    min-height: 44px;
    padding: 0 14px;
    font-weight: 700;
}

.archive-tab.is-active {
    background: linear-gradient(180deg, rgba(15, 79, 168, 0.12), rgba(255, 255, 255, 0.98));
    border-color: rgba(15, 79, 168, 0.28);
}

.checker-form label,
.archive-toolbar label,
.checker-ball-field {
    display: grid;
    gap: 8px;
}

.checker-form input,
.checker-form select,
.archive-toolbar input {
    min-height: 46px;
    padding: 0 12px;
}

.checker-line {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
}

.checker-line__numbers {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}

.checker-ball-field input {
    text-align: center;
    font-weight: 700;
}

.checker-result,
.detail-nav-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.checker-result__head,
.checker-result__match {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.checker-result__exact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checker-result__exact a,
.checker-result__match a,
.detail-nav-card strong {
    color: var(--brand-dark);
}

.archive-pagination {
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.archive-actions {
    margin-top: 18px;
}

.detail-hero {
    align-items: end;
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.detail-hero p,
.detail-hero .detail-hero__back {
    color: var(--on-dark-muted);
}

.detail-hero .detail-hero__eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 212, 71, 0.22), transparent 36%);
    pointer-events: none;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 32px 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 72%);
}

.detail-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
}

.hero-metric strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 1.4rem;
}

.current-draw-panel .hero-metric span,
.current-draw-panel .stat-box span {
    color: var(--on-dark-muted);
}

.current-draw-panel {
    padding: 24px;
    color: #fff;
    border-radius: var(--radius-lg);
}

.current-draw-panel .number-board {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.current-draw-panel .number-pill,
.current-draw-panel .rank-pill {
    color: var(--brand-dark);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 247, 255, 0.94));
    box-shadow: 0 10px 20px rgba(9, 33, 72, 0.18), inset 0 -2px 0 rgba(17, 54, 104, 0.08);
}

.current-draw-panel .rank-pill span {
    color: var(--muted-soft);
}

.current-draw-panel .rank-pill strong {
    color: var(--brand-dark);
}

.theme-gold.current-draw-panel .number-board {
    background: rgba(107, 67, 0, 0.08);
    border-color: rgba(107, 67, 0, 0.14);
}

.theme-gold.current-draw-panel .number-pill,
.theme-gold.current-draw-panel .rank-pill {
    color: var(--gold-ink);
    background: linear-gradient(180deg, rgba(255, 250, 234, 0.98), rgba(255, 239, 184, 0.94));
    box-shadow: 0 10px 20px rgba(107, 67, 0, 0.16), inset 0 -2px 0 rgba(107, 67, 0, 0.08);
}

.theme-gold.current-draw-panel .rank-pill span,
.theme-gold.current-draw-panel .rank-pill strong {
    color: var(--gold-ink);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.stat-box {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-box strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 1.15rem;
}

.history-table-wrapper {
    overflow: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.history-table th,
.history-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(17, 54, 104, 0.09);
    text-align: left;
}

.history-table .table-numbers {
    gap: 6px;
}

.history-table .number-pill,
.history-table .rank-pill {
    color: var(--brand-dark);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(15, 79, 168, 0.12);
    box-shadow: 0 8px 16px rgba(11, 45, 102, 0.08), inset 0 -2px 0 rgba(15, 79, 168, 0.06);
}

.history-table .rank-pill span {
    color: var(--muted-soft);
}

.history-table .rank-pill strong {
    color: var(--brand-dark);
}

.rule-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted-strong);
    line-height: 1.8;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #0c2d63, #08214a);
    color: #fff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 42px;
}

.site-footer__partners {
    display: grid;
    gap: 14px;
    padding: 0 0 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-header--light h3,
.section-header--light p {
    color: #fff;
}

.section-header--light p {
    margin: 0;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.78);
}

.section-header--light .section-header__eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.partner-card {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 14px 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 58%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 24px rgba(2, 10, 28, 0.12);
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 58%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 30px rgba(2, 10, 28, 0.16);
}

.partner-card__logo {
    width: 96px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
}

.partner-card__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.partner-card strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    flex: 1;
}

.footer-directory__col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-directory__col h4 {
    margin: 0 0 6px;
    color: #fff;
}

.footer-directory__col a,
.footer-directory__note {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.footer-directory__note {
    font-size: 0.92rem;
}

.site-footer__note {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.error-state {
    width: min(760px, calc(100% - 32px));
    margin: 72px auto;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

@media (max-width: 1080px) {
    .site-nav-groups,
    .site-header__inner,
    .site-footer__inner,
    .hero-portal,
    .detail-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-utility__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-utility__actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0;
    }

    .service-grid,
    .quick-nav,
    .news-grid,
    .editorial-grid,
    .digest-layout,
    .lottery-grid,
    .results-grid,
    .more-lotteries-grid,
    .bulletin-grid,
    .history-preview-grid,
    .insight-grid,
    .overview-grid,
    .overview-metrics,
    .schedule-list,
    .policy-grid,
    .jackpot-grid,
    .stats-grid,
    .detail-hero__meta,
    .hero-feature-card__layout,
    .hero-feature-card__stats,
    .hero-channel-rail,
    .hero-result-board__meta,
    .result-card__meta,
    .more-lottery-card__meta,
    .guide-rules-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-grid .result-card:first-child,
    .news-card--featured {
        grid-row: span 1;
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .site-utility__links,
    .site-utility__actions {
        width: 100%;
    }

    .site-utility__actions {
        justify-content: flex-start;
    }

    .locale-switcher--utility {
        width: 100%;
        justify-content: space-between;
    }

    .locale-switcher--utility select {
        min-width: 0;
        width: 100%;
        max-width: 180px;
    }

    .site-main,
    .site-header__inner,
    .site-footer__inner {
        width: min(100% - 20px, 1240px);
    }

    .hero-feature-card,
    .hero-side-card,
    .detail-hero,
    .section-block {
        padding: 20px;
    }

    .guide-rules-grid,
    .guide-rule-card__header {
        grid-template-columns: 1fr;
    }

    .checker-results__summary {
        justify-items: start;
        text-align: left;
    }

    .checker-results__actions {
        justify-content: flex-start;
    }

    .section-header > div::after,
    .detail-hero::after,
    .digest-feature-card::after {
        display: none;
    }

    .service-grid,
    .quick-nav,
    .news-grid,
    .editorial-grid,
    .digest-layout,
    .lottery-grid,
    .results-grid,
    .more-lotteries-grid,
    .bulletin-grid,
    .history-preview-grid,
    .insight-grid,
    .overview-grid,
    .overview-metrics,
    .schedule-list,
    .policy-grid,
    .jackpot-grid,
    .stats-grid,
    .detail-hero__meta,
    .site-nav-groups,
    .hero-feature-card__layout,
    .hero-feature-card__stats,
    .hero-channel-rail,
    .hero-result-board__meta,
    .result-card__meta,
    .more-lottery-card__meta,
    .number-board--ranking,
    .number-board--grid {
        grid-template-columns: 1fr;
    }

    .insight-card--wide {
        grid-column: span 1;
    }

    .news-timeline__item {
        grid-template-columns: 1fr;
    }

    .lottery-card {
        grid-template-columns: 1fr;
    }

    .lottery-card__icon {
        min-height: 76px;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .footer-directory {
        grid-template-columns: 1fr 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-side-card__metric--inline,
    .service-card__stats,
    .guide-step {
        grid-template-columns: 1fr;
    }

    .more-lottery-card__foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .digest-feature-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-result-board__issue {
        min-width: 0;
        text-align: left;
    }

    .hero-result-board__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-item__main,
    .schedule-item__meta,
    .schedule-item__foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-directory {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__partners {
        padding-bottom: 32px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
