@media (max-width: 1320px) {
    .shell { width: min(1240px, calc(100% - 38px)); }
    .nav-link { min-width: 150px; }
    .home-grid { grid-template-columns: 220px minmax(0, 1fr) 250px; }
    .result-top-grid { grid-template-columns: minmax(190px,.85fr) minmax(250px,1.25fr) minmax(175px,.75fr); padding-inline: 15px; }
    .first-digits span { width: 47px; height: 64px; font-size: 38px; }
    .secondary-digits span { width: 31px; height: 40px; font-size: 23px; }
    .support-column { padding-inline: 10px; }
    .number-grid { gap: 4px; }
}

@media (max-width: 1120px) {
    .next-draw-strip { grid-template-columns: 265px 220px 1fr; }
    .next-note { display: none; }
    .home-grid { grid-template-columns: 235px minmax(0, 1fr); }
    .history-card { grid-column: 1 / -1; }
    .mini-history { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
    .mini-history a:nth-last-child(-n+2) { border-bottom: 0; }
    .result-top-grid { grid-template-columns: minmax(180px,.8fr) minmax(240px,1.2fr) minmax(170px,.7fr); }
}

@media (max-width: 900px) {
    .shell { width: min(100% - 28px, 820px); }
    .utility-right { display: none; }
    .utility-inner { justify-content: center; }
    .brand-bar, .brand-inner { min-height: 94px; }
    .brand-logo { height: 72px; max-width: 60vw; }
    .official-seal { width: 265px; padding-left: 18px; }
    .official-seal span { font-size: 11px; }
    .seal-icon { width: 44px; height: 44px; }
    .nav-inner { position: relative; display: block; }
    .nav-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 6px; padding: 0; cursor: pointer; }
    .nav-toggle span { width: 22px; height: 2px; background: #fff; }
    .nav-toggle span:not(:first-child) { margin-left: -28px; transform: translateY(6px); }
    .nav-toggle span:nth-child(3) { transform: translateY(-6px); }
    .nav-toggle b { margin-left: 10px; font-size: 13px; text-transform: uppercase; }
    .nav-menu { position: absolute; top: 48px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; color: #fff; background: var(--navy-950); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-md); }
    .nav-menu.open { display: flex; }
    .nav-link { min-height: 50px; justify-content: flex-start; padding-inline: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-link.active::after { top: 0; right: auto; bottom: 0; left: 0; width: 4px; height: auto; }
    .next-draw-strip { grid-template-columns: 240px 1fr; }
    .next-date { display: none; }
    .countdown { padding-inline: 12px; }
    .home-grid { grid-template-columns: 1fr; }
    .result-column { grid-row: 1; }
    .schedule-card { grid-row: 2; }
    .history-card { grid-row: 3; grid-column: auto; }
    .schedule-timeline { display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px; }
    .schedule-timeline::before { display: none; }
    .schedule-item { min-height: 104px; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 8px; border-right: 1px solid var(--line); }
    .schedule-item:last-child { border-right: 0; }
    .schedule-item div > span { margin-top: 4px; }
    .result-top-grid { grid-template-columns: minmax(190px,.8fr) minmax(260px,1.2fr); }
    .secondary-prizes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0 0; border-top: 1px solid rgba(198,153,46,.4); }
    .secondary-prizes article { padding: 12px; }
    .secondary-prizes article + article { border-top: 0; border-left: 1px solid rgba(198,153,46,.4); }
    .filter-card form { grid-template-columns: 1fr 1fr; }
    .filter-period { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .shell { width: min(100% - 22px, 620px); }
    .utility-bar { min-height: 34px; }
    .utility-inner { min-height: 34px; }
    .utility-item:first-child, .utility-divider { display: none; }
    .brand-bar, .brand-inner { min-height: 82px; }
    .brand-inner { justify-content: center; }
    .brand-logo { height: 66px; max-width: min(92vw, 520px); object-position: center; }
    .official-seal { display: none; }
    .page-shell { padding-block: 10px 24px; }
    .next-draw-strip { grid-template-columns: 1fr; }
    .next-label { justify-content: center; min-height: 68px; padding: 10px 16px; text-align: left; }
    .next-label::after { display: none; }
    .calendar-ring { width: 46px; height: 46px; }
    .calendar-icon { width: 24px; height: 24px; }
    .countdown { justify-content: center; min-height: 82px; gap: 7px; padding: 9px; }
    .countdown > div { min-width: 72px; }
    .countdown strong { font-size: 27px; }
    .countdown > b { font-size: 20px; }
    .schedule-timeline { grid-template-columns: 1fr; }
    .schedule-item { min-height: 65px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .schedule-item:last-child { border-bottom: 0; }
    .result-top-grid { grid-template-columns: 1fr; padding: 14px; }
    .result-meta { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(198,153,46,.4); }
    .result-title-row { justify-content: center; }
    .result-meta dl { max-width: 410px; margin-inline: auto; }
    .first-prize-zone { min-height: 235px; padding: 18px 4px; }
    .secondary-prizes { grid-column: auto; }
    .support-prizes { grid-template-columns: 1fr; }
    .trophy-separator { display: none; }
    .support-column + .support-column { border-top: 1px solid rgba(255,255,255,.15); }
    .support-column { padding: 15px 13px; }
    .empty-result { min-height: 360px; flex-direction: column; text-align: center; }
    .mini-history { grid-template-columns: 1fr; }
    .mini-history a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
    .mini-history a:last-child { border-bottom: 0; }
    .page-heading { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
    .page-heading h1 { font-size: 28px; }
    .heading-stat { width: 100%; }
    .filter-card form { grid-template-columns: 1fr; }
    .filter-period { grid-column: auto; }
    .filter-card .button { width: 100%; }
    .page-actions { flex-direction: column; }
    .page-actions .button { width: 100%; }
    .schedule-board-head { display: none; }
    .schedule-board-row { grid-template-columns: 1fr 1fr; gap: 14px; min-height: 124px; padding: 16px; }
    .schedule-board-row.is-today { padding-left: 11px; }
    .mobile-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
    .live-stage { padding: 22px 14px 28px; }
    .live-meta-grid { grid-template-columns: 1fr; }
    .live-meta-grid > div { min-height: 72px; }
    .live-meta-grid > div + div { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
    .countdown-large > div { min-width: 75px; }
    .countdown-large strong { font-size: 30px; }
}

@media (max-width: 430px) {
    body { font-size: 14px; }
    .shell { width: calc(100% - 16px); }
    .brand-logo { height: 58px; }
    .next-label h1 { font-size: 19px; }
    .countdown > div { min-width: 65px; padding-inline: 5px; }
    .countdown strong { font-size: 24px; }
    .first-digits { gap: 5px; }
    .first-digits span { width: 48px; height: 62px; font-size: 37px; }
    .secondary-digits span { width: 35px; }
    .number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .number-grid span { min-height: 26px; font-size: 10px; }
    .result-meta dl div { grid-template-columns: 82px 1fr; }
    .schedule-board-row { grid-template-columns: 1fr; gap: 9px; }
    .footer-logo { max-width: 250px; }
    .live-emblem > span { width: 48px; height: 56px; }
    .live-emblem strong { font-size: 17px; }
}

@media (max-width: 360px) {
    .shell { width: calc(100% - 12px); }
    .countdown { gap: 4px; }
    .countdown > div { min-width: 61px; }
    .countdown strong { font-size: 22px; }
    .first-digits span { width: 43px; height: 58px; font-size: 34px; }
    .secondary-digits span { width: 31px; height: 40px; }
    .number-grid span { font-size: 9px; }
}

