/*
Theme Name: Lottery Sambad Portal
Theme URI: https://lotterysambad-india.com/
Author: Lottery Sambad Portal
Description: Mobile-first independent lottery result information portal theme for Indian users.
Version: 1.0.0
Text Domain: lottery-sambad-portal
*/

:root {
    --red: #B80020;
    --gold: #FFD54A;
    --yellow: #FFD600;
    --green: #138A36;
    --dark: #111827;
    --paper: #FFF8E6;
    --white: #FFFFFF;
    --ink: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --line: rgba(17, 24, 39, 0.12);
    --soft-red: #FFF0F2;
    --soft-green: #EAF8EF;
    --soft-blue: #EEF6FF;
    --blue: #1D4ED8;
    --night: #18111F;
    --shadow: 0 16px 44px rgba(17, 24, 39, 0.11);
    --shadow-soft: 0 10px 24px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #FFFCF2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.68;
}

body.lsb-page-8pm-result {
    background: #130F18;
    color: #F8F4EF;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 1rem;
    font-weight: 800;
}

.lsb-page-8pm-result h1,
.lsb-page-8pm-result h2,
.lsb-page-8pm-result h3 {
    color: #FFF7ED;
}

h1 {
    font-size: clamp(2.1rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.65rem, 5vw, 2.65rem);
}

h3 {
    font-size: 1.1rem;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 252, 242, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.top-status-bar {
    background: var(--dark);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
}

.top-status-bar__inner {
    width: min(100% - 28px, var(--container));
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.top-status-bar__inner span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: var(--gold);
}

.site-header__inner {
    width: min(100% - 28px, var(--container));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--dark);
}

.brand-mark__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.brand-mark__text {
    white-space: nowrap;
}

.primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.primary-nav.is-open {
    display: flex;
}

.primary-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.93rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: var(--paper);
    color: var(--red);
}

.nav-toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--dark);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(184, 0, 32, 0.2);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-cta {
    display: none;
}

.btn:hover,
.btn:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
    background: #8E0019;
    box-shadow: 0 12px 26px rgba(184, 0, 32, 0.28);
}

.btn.secondary {
    background: var(--white);
    color: var(--dark);
    border-color: var(--line);
    box-shadow: none;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
    color: var(--red);
    border-color: rgba(184, 0, 32, 0.35);
}

.page-shell,
.home-shell {
    overflow: hidden;
}

.section,
.home-section {
    padding: 40px 0;
}

.home-section.article-section {
    padding-top: 52px;
}

.inner {
    width: min(100% - 28px, var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 900px;
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-dashboard {
    padding: 42px 0 34px;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 214, 0, 0.26), transparent 28%),
        linear-gradient(180deg, #FFF8E6 0%, #FFFCF2 100%);
}

.hero-grid {
    width: min(100% - 28px, var(--container));
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.hero-copy p {
    max-width: 680px;
    color: #4B5563;
    font-size: 1.05rem;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-image {
    margin-top: 22px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 0, 32, 0.16);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-board {
    background: var(--dark);
    color: var(--white);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 214, 0, 0.26);
}

.result-board h2,
.result-board h3 {
    color: var(--white);
}

.board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.board-date,
.digital {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.board-date {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 214, 0, 0.12);
    color: var(--yellow);
    font-weight: 800;
}

.draw-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.draw-row:first-of-type {
    border-top: 0;
}

.draw-time {
    color: var(--yellow);
    font-size: 1.15rem;
    font-weight: 900;
}

.status {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 900;
}

.status.updated {
    background: var(--green);
}

.status.pending {
    background: #7C5B00;
}

.status.view {
    background: var(--red);
}

.quick-card-grid,
.state-card-grid,
.download-grid,
.faq-grid,
.poster-grid,
.check-grid,
.contact-grid,
.guide-grid,
.safety-grid {
    display: grid;
    gap: 16px;
}

.quick-card,
.state-card,
.download-card,
.info-card,
.poster-card,
.check-card,
.safety-card,
.contact-panel,
.claim-item,
.faq-item,
.archive-date-card,
.note-panel,
.step-card {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.quick-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    min-height: 190px;
}

.quick-card strong,
.download-card strong,
.archive-date-card strong {
    color: var(--dark);
}

.card-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
}

.card-icon.red {
    background: var(--soft-red);
    color: var(--red);
}

.card-icon.yellow {
    background: #FFF3B0;
    color: #8A5F00;
}

.card-icon.green {
    background: var(--soft-green);
    color: var(--green);
}

.quick-card.morning {
    border-color: rgba(255, 214, 0, 0.6);
}

.quick-card.day {
    border-color: rgba(22, 93, 173, 0.28);
}

.quick-card.evening {
    border-color: rgba(184, 0, 32, 0.28);
}

.timeline {
    position: relative;
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--dark);
    color: var(--yellow);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
}

.timeline-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}

.download-card {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.download-card .btn {
    justify-self: start;
}

.live-results-section {
    padding-top: 34px;
}

.live-result-window {
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 214, 0, 0.2), rgba(255, 255, 255, 0.96)),
        var(--white);
    border: 1px solid rgba(184, 0, 32, 0.18);
    box-shadow: var(--shadow);
    padding: 20px;
}

.live-result-window__top {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.live-result-window__top p {
    max-width: 760px;
    color: var(--muted);
}

.live-result-meta {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 170px;
    padding: 14px;
    border-radius: 18px;
    background: var(--dark);
    color: var(--white);
}

.live-result-meta span,
.live-result-meta strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.live-result-meta strong {
    color: var(--yellow);
}

.live-result-meta small {
    color: #D1D5DB;
}

.live-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.live-summary-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.live-result-grid {
    display: grid;
    gap: 14px;
}

.live-result-card {
    display: grid;
    gap: 12px;
    min-height: 260px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.live-result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-result-card__head .digital {
    display: inline-flex;
    min-width: 64px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.live-result-value {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: var(--paper);
    color: var(--dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.live-result-status {
    display: inline-flex;
    width: max-content;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #F3F4F6;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 900;
}

.live-prize-list {
    display: grid;
    gap: 8px;
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    background: #F9FAFB;
    border: 1px solid var(--line);
    list-style: none;
    font-size: 0.9rem;
}

.live-prize-list[hidden] {
    display: none;
}

.live-prize-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.live-prize-list strong {
    color: var(--red);
}

.live-prize-list span {
    overflow-wrap: anywhere;
}

.number-toggle {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--dark);
    font-weight: 800;
    cursor: pointer;
}

.live-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.live-result-image {
    aspect-ratio: 10 / 7;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
}

.live-result-image[hidden] {
    display: none;
}

.live-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-result-card.is-updated {
    border-color: rgba(19, 138, 54, 0.34);
}

.live-result-card.is-updated .live-result-status {
    background: var(--green);
    color: var(--white);
}

.live-result-card.is-source-error {
    border-color: rgba(184, 0, 32, 0.32);
}

.live-result-card.is-source-error .live-result-status {
    background: var(--red);
    color: var(--white);
}

.live-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.live-result-actions small {
    color: var(--muted);
}

.live-result-window.is-loading [data-live-refresh] {
    opacity: 0.72;
    cursor: wait;
}

.yesterday-result-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white);
}

.yesterday-result-panel__head {
    display: grid;
    gap: 12px;
}

.yesterday-result-panel h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.yesterday-result-panel p {
    color: #D1D5DB;
}

.yesterday-date {
    display: inline-flex;
    width: max-content;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.18);
    color: var(--gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
}

.yesterday-result-grid {
    display: grid;
    gap: 10px;
}

.yesterday-result-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.yesterday-result-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.yesterday-result-card__top strong,
.yesterday-result-card b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.yesterday-result-card__top span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #374151;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
}

.yesterday-result-card[data-status="verified"] .yesterday-result-card__top span {
    background: var(--green);
}

.yesterday-result-card[data-status="source_error"] .yesterday-result-card__top span {
    background: var(--red);
}

.yesterday-result-card b {
    color: var(--gold);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.yesterday-result-card p {
    margin: 0;
    font-size: 0.9rem;
}

.latest-result-band {
    display: grid;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.latest-result-band p {
    max-width: 760px;
    color: var(--muted);
}

.result-article-grid {
    display: grid;
    gap: 16px;
}

.result-article-card {
    display: grid;
    gap: 12px;
    min-height: 260px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.result-article-card__top,
.result-article-actions,
.result-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.result-date,
.result-draw,
.result-filter-pills a,
.result-single-meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--dark);
    font-size: 0.84rem;
    font-weight: 900;
}

.result-draw {
    background: var(--red);
    color: var(--white);
}

.result-article-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.result-article-prize {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    background: #F9FAFB;
    border: 1px solid var(--border);
}

.result-article-prize span,
.result-article-card p,
.muted-note {
    color: var(--muted);
}

.result-article-prize strong,
.result-single-card strong {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.text-link {
    color: var(--red);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.result-single-hero {
    padding: 34px 0 28px;
    background: linear-gradient(135deg, var(--paper), #FFFFFF 58%, #FFF3F5);
}

.result-single-hero__grid,
.result-single-layout {
    display: grid;
    gap: 22px;
}

.result-single-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 24px;
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow);
}

.result-single-card span,
.result-single-card small {
    color: #D1D5DB;
}

.result-single-card strong {
    color: var(--gold);
    font-size: 1.6rem;
}

.result-single-main,
.result-single-side .side-panel,
.result-card-preview,
.result-prize-table {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.result-single-main {
    display: grid;
    gap: 22px;
    padding: 18px;
}

.result-card-preview {
    margin: 0;
    overflow: hidden;
}

.result-card-preview img {
    width: 100%;
    aspect-ratio: 1200 / 760;
    object-fit: cover;
}

.result-card-preview figcaption {
    padding: 10px 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.result-prize-table {
    overflow: hidden;
}

.result-prize-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.result-prize-row:first-child {
    border-top: 0;
}

.result-prize-row.head {
    background: var(--dark);
    color: var(--white);
    font-weight: 900;
}

.number-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.number-badges b {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.number-badges em {
    color: var(--muted);
    font-style: normal;
}

.result-single-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.side-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.side-panel a {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    color: var(--red);
    font-weight: 900;
}

.side-panel .result-article-grid {
    gap: 10px;
}

.side-panel .result-article-card {
    min-height: 0;
    padding: 14px;
}

.side-panel .result-article-card p,
.side-panel .result-article-actions {
    display: none;
}

.result-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.result-filter-pills a.is-active {
    background: var(--red);
    color: var(--white);
}

.result-pagination {
    margin-top: 24px;
}

.result-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.result-pagination a,
.result-pagination span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 900;
}

.result-pagination .current {
    background: var(--red);
    color: var(--white);
}

.state-card {
    padding: 22px;
    min-height: 210px;
}

.check-card,
.safety-card,
.info-card,
.faq-item {
    padding: 22px;
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 16px;
}

.step-card {
    position: relative;
    padding: 22px 22px 22px 72px;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
}

.archive-grid {
    display: grid;
    gap: 14px;
}

.archive-date-card {
    padding: 18px;
}

.archive-date {
    display: block;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.time-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.time-badges a,
.time-badges span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--dark);
    font-weight: 800;
    font-size: 0.85rem;
}

.bumper-highlight,
.notice-band,
.mobile-section,
.article-shell,
.tab-dashboard,
.morning-panel,
.bulletin-board,
.night-board,
.archive-calendar,
.guide-phone,
.claim-board,
.responsible-hero,
.contact-hero {
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}

.bumper-highlight,
.notice-band,
.article-shell {
    background: var(--white);
    padding: 24px;
}

.mobile-section {
    display: grid;
    gap: 22px;
    background: var(--dark);
    color: var(--white);
}

.mobile-section h2 {
    color: var(--white);
}

.mobile-section__copy {
    padding: 24px 24px 0;
}

.mobile-section__image {
    aspect-ratio: 1 / 1;
    background: #221A20;
}

.mobile-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.notice-list li {
    position: relative;
    padding-left: 24px;
    color: #374151;
}

.notice-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
}

.article-shell {
    background: linear-gradient(180deg, var(--white), var(--paper));
}

.article-content {
    max-width: 900px;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.4rem;
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-soft);
}

summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--dark);
    font-weight: 900;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 0 20px 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 22px 0 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--red);
    font-weight: 800;
}

.page-hero {
    padding: 34px 0 28px;
}

.page-intro {
    max-width: 820px;
    color: var(--muted);
    font-size: 1.05rem;
}

.tab-dashboard {
    background: var(--white);
    padding: 18px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.tab-buttons button {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--dark);
    font-weight: 900;
    cursor: pointer;
}

.tab-buttons button[aria-selected="true"] {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.tab-panel {
    display: grid;
    gap: 18px;
}

.result-placeholder {
    min-height: 260px;
    border-radius: 22px;
    border: 2px dashed rgba(184, 0, 32, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 214, 0, 0.2), rgba(255, 255, 255, 0.95)),
        var(--paper);
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
}

.note-panel {
    padding: 22px;
}

.morning-hero {
    background: linear-gradient(180deg, #FFF6B8, #F0FFF4);
}

.morning-panel {
    background: var(--white);
    display: grid;
    gap: 20px;
    padding: 22px;
}

.morning-ticket {
    min-height: 260px;
    border-radius: 22px;
    background: linear-gradient(135deg, #FFE36A, #E6F8EA);
    border: 1px solid rgba(19, 138, 54, 0.18);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.bulletin-page {
    background: linear-gradient(180deg, #EEF6FF 0%, #FFFFFF 42%);
}

.bulletin-board {
    background: #FFFFFF;
    padding: 22px;
    border-color: rgba(22, 93, 173, 0.18);
}

.bulletin-row {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(22, 93, 173, 0.16);
}

.bulletin-row:first-child {
    border-top: 0;
}

.bulletin-label {
    color: var(--blue);
    font-weight: 900;
}

.night-page {
    background: linear-gradient(180deg, #17111F, #23101A 54%, #130F18);
}

.night-board {
    background: #211524;
    border-color: rgba(255, 214, 0, 0.18);
    padding: 22px;
}

.night-board .result-placeholder {
    background: linear-gradient(135deg, rgba(184, 0, 32, 0.35), rgba(255, 214, 0, 0.08));
    border-color: rgba(255, 214, 0, 0.36);
    color: #FFF8E6;
}

.night-board p,
.night-page .page-intro,
.night-page .breadcrumb {
    color: #E7DAD8;
}

.night-page .note-panel,
.night-page .check-card,
.night-page details {
    background: #241827;
    border-color: rgba(255, 255, 255, 0.12);
    color: #F9F2EC;
}

.night-page summary,
.night-page .check-card h3 {
    color: #FFF7ED;
}

.archive-calendar {
    background: var(--white);
    padding: 20px;
}

.archive-filter-bar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.archive-filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.archive-filter-bar input,
.archive-filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--dark);
    padding: 0 12px;
    font: inherit;
}

.archive-date-card {
    display: grid;
    gap: 10px;
}

.archive-draw-summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #F9FAFB;
}

.archive-draw-summary[data-status="verified"] {
    border-color: rgba(19, 138, 54, 0.28);
    background: #F4FBF6;
}

.archive-draw-summary[data-status="source_error"] {
    border-color: rgba(184, 0, 32, 0.28);
    background: #FFF5F6;
}

.archive-draw-toggle {
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.archive-draw-summary > span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.archive-detail {
    display: grid;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.archive-detail[hidden] {
    display: none;
}

.archive-detail .live-prize-list {
    max-height: none;
}

.archive-detail-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.month-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.month-strip span {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--paper);
    font-weight: 900;
}

.poster-card {
    overflow: hidden;
}

.poster-card__image {
    aspect-ratio: 16 / 9;
    background: var(--paper);
}

.poster-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-card__body {
    padding: 18px;
}

.guide-phone {
    display: grid;
    gap: 18px;
    background: var(--white);
}

.guide-phone__copy {
    padding: 22px;
}

.guide-phone__image {
    background: var(--paper);
    aspect-ratio: 4 / 5;
}

.guide-phone__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claim-board {
    background: var(--white);
    padding: 22px;
}

.claim-item {
    padding: 18px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.claim-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.responsible-hero,
.contact-hero {
    background: var(--white);
    display: grid;
    gap: 20px;
    padding: 22px;
}

.responsible-hero__image,
.contact-visual {
    border-radius: 20px;
    overflow: hidden;
    background: var(--paper);
    aspect-ratio: 4 / 3;
}

.responsible-hero__image img,
.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-panel {
    padding: 22px;
}

.site-footer {
    margin-top: 50px;
    background: var(--dark);
    color: #E5E7EB;
    padding: 42px 0 20px;
}

.footer-grid,
.footer-bottom {
    width: min(100% - 28px, var(--container));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    gap: 24px;
}

.site-footer h2,
.site-footer .footer-brand {
    color: var(--white);
}

.site-footer h2 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.site-footer a {
    display: block;
    color: #F9FAFB;
    margin-bottom: 8px;
}

.site-footer p,
.footer-small {
    color: #C8D0DA;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    color: #C8D0DA;
}

@media (min-width: 700px) {
    .archive-filter-bar {
        grid-template-columns: minmax(150px, 0.9fr) minmax(130px, 0.75fr) minmax(150px, 0.9fr) auto;
        align-items: end;
    }

    .archive-filter-bar .btn {
        min-height: 46px;
    }

    .quick-card-grid,
    .live-result-grid,
    .result-article-grid,
    .download-grid,
    .state-card-grid,
    .check-grid,
    .safety-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .draw-row,
    .bulletin-row {
        grid-template-columns: 160px 1fr auto;
        align-items: center;
    }

    .result-prize-row {
        grid-template-columns: 170px 1fr;
        align-items: start;
    }

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

@media (min-width: 980px) {
    .site-header__inner {
        gap: 18px;
    }

    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .primary-nav a {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .header-cta {
        display: inline-flex;
    }

    .section,
    .home-section {
        padding: 64px 0;
    }

    .hero-dashboard {
        padding: 66px 0 54px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
        align-items: center;
        gap: 40px;
    }

    .hero-image {
        max-width: 620px;
    }

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

    .live-result-window {
        padding: 28px;
    }

    .live-result-window__top {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

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

    .yesterday-result-panel {
        padding: 20px;
    }

    .yesterday-result-panel__head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .latest-result-band {
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

    .result-single-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
        align-items: center;
    }

    .result-single-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .download-grid,
    .state-card-grid,
    .archive-grid.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .mobile-section,
    .guide-phone,
    .responsible-hero,
    .contact-hero,
    .morning-panel {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
        align-items: center;
    }

    .mobile-section__copy {
        padding: 34px 0 34px 34px;
    }

    .mobile-section__image,
    .guide-phone__image {
        aspect-ratio: 4 / 3;
    }

    .tab-panel {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    }

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

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1160px) {
    .primary-nav a {
        padding-inline: 11px;
        font-size: 0.92rem;
    }
}

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