:root {
    --ink: #151310;
    --ink-soft: #514b42;
    --paper: #f8f5ee;
    --paper-deep: #eee8db;
    --card: rgba(255, 253, 248, 0.9);
    --line: #cfc6b6;
    --line-soft: rgba(116, 103, 82, 0.2);
    --red: #a9161b;
    --red-dark: #781014;
    --green: #1f854f;
    --black: #11110f;
    --gold: #a77c32;
    --shadow: 0 18px 48px rgba(56, 45, 31, 0.08);
    --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 4%, rgba(175, 34, 34, 0.03), transparent 24rem),
        linear-gradient(90deg, rgba(112, 97, 71, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(112, 97, 71, 0.018) 1px, transparent 1px),
        var(--paper);
    background-size: auto, 32px 32px, 32px 32px, auto;
    font-family: var(--serif);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(169, 22, 27, 0.4);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: #fff;
    background: var(--red);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(250, 248, 242, 0.94);
    border-top: 1px solid var(--line);
}

.masthead {
    position: relative;
    min-height: 152px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.brand-mark {
    position: relative;
    display: block;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    overflow: hidden;
    background: #fffdf7;
}

.brand-sun {
    position: absolute;
    top: 14px;
    left: 47px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red);
}

.brand-castle {
    position: absolute;
    top: 38px;
    left: 18px;
    width: 50px;
    height: 28px;
    border-bottom: 3px solid var(--ink);
}

.brand-castle::before,
.brand-castle::after,
.brand-castle i::before,
.brand-castle i::after {
    position: absolute;
    content: "";
}

.brand-castle::before {
    left: 9px;
    bottom: 13px;
    width: 33px;
    height: 3px;
    background: var(--ink);
    box-shadow: 3px 8px 0 var(--ink), 8px 14px 0 var(--ink);
    transform: skewX(-28deg);
}

.brand-castle::after {
    left: 18px;
    bottom: 19px;
    width: 22px;
    height: 3px;
    background: var(--ink);
    transform: skewX(-28deg);
}

.brand-castle i:nth-child(1) {
    position: absolute;
    left: 23px;
    bottom: 13px;
    width: 10px;
    height: 19px;
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
}

.brand-castle i:nth-child(2) {
    position: absolute;
    right: 2px;
    bottom: 0;
    width: 14px;
    height: 12px;
    border: 2px solid var(--ink);
    border-bottom: 0;
}

.brand-castle i:nth-child(3) {
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 14px;
    height: 12px;
    border: 2px solid var(--ink);
    border-bottom: 0;
}

.brand-waves {
    position: absolute;
    right: 11px;
    bottom: 11px;
    left: 11px;
    height: 10px;
    border-top: 2px solid var(--ink);
    border-radius: 50%;
}

.brand-waves::before,
.brand-waves::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 8px;
    content: "";
    border-top: 2px solid var(--ink);
    border-radius: 50%;
}

.brand-waves::before { top: 3px; }
.brand-waves::after { top: 7px; }

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: clamp(2rem, 4.4vw, 4.35rem);
    line-height: 0.97;
    font-weight: 500;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.brand-copy span {
    font-size: clamp(0.96rem, 1.5vw, 1.5rem);
    color: #2a2721;
    letter-spacing: 0.015em;
}

.masthead-silhouette {
    position: absolute;
    right: 2%;
    bottom: -6px;
    width: min(47%, 650px);
    height: 128px;
    color: #4e4a42;
    opacity: 0.1;
}

.silhouette-city,
.silhouette-tower,
.silhouette-castle {
    position: absolute;
    bottom: 0;
}

.silhouette-city {
    right: 0;
    width: 45%;
    height: 88px;
    background:
        linear-gradient(90deg, transparent 0 8%, currentColor 8% 23%, transparent 23% 28%, currentColor 28% 53%, transparent 53% 58%, currentColor 58% 69%, transparent 69% 74%, currentColor 74% 100%);
    clip-path: polygon(0 100%, 0 48%, 7% 48%, 7% 16%, 21% 16%, 21% 62%, 31% 62%, 31% 32%, 46% 32%, 46% 63%, 57% 63%, 57% 8%, 71% 8%, 71% 47%, 84% 47%, 84% 30%, 100% 30%, 100% 100%);
}

.silhouette-tower {
    right: 42%;
    width: 30px;
    height: 118px;
    background: currentColor;
    clip-path: polygon(46% 0, 54% 0, 58% 20%, 73% 34%, 60% 34%, 75% 100%, 25% 100%, 40% 34%, 27% 34%, 42% 20%);
}

.silhouette-castle {
    left: 2%;
    width: 47%;
    height: 108px;
    background: currentColor;
    clip-path: polygon(0 100%, 0 84%, 12% 84%, 8% 76%, 24% 76%, 19% 67%, 34% 67%, 28% 57%, 46% 57%, 39% 46%, 53% 46%, 48% 35%, 61% 35%, 55% 23%, 67% 23%, 61% 11%, 76% 26%, 71% 36%, 87% 36%, 82% 49%, 100% 49%, 94% 62%, 100% 62%, 100% 100%);
}

.nav-frame {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(253, 251, 246, 0.97);
}

.nav-shell {
    min-height: 65px;
    display: flex;
    align-items: stretch;
}

.public-navigation {
    display: flex;
    align-items: stretch;
    width: 100%;
    font-family: var(--sans);
}

.public-navigation > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 0.92rem;
    color: #211e19;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.public-navigation > a::after {
    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;
    height: 2px;
    content: "";
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.public-navigation > a:hover,
.public-navigation > a.active {
    color: var(--red);
}

.public-navigation > a:hover::after,
.public-navigation > a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
}

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    min-width: 130px;
    padding: 0 13px;
    color: #fff;
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.83rem;
    transition: background 0.2s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
    background: var(--red-dark);
}

.language-glyph {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: var(--black);
    background: #fff;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 0.7rem;
}

.language-chevron {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.language-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% - 5px);
    right: 0;
    min-width: 170px;
    padding: 7px;
    background: #fffdf8;
    border: 1px solid var(--line);
    box-shadow: 0 14px 35px rgba(30, 24, 17, 0.18);
}

.language-menu[hidden] {
    display: none;
}

.language-menu a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 11px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.85rem;
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="true"] {
    color: var(--red);
    background: #f4eee3;
}

.section-pad {
    padding-block: 30px;
}

.section-pad-sm {
    padding-block: 0 30px;
}

.hero-section {
    background:
        radial-gradient(circle at 5% 90%, rgba(169, 22, 27, 0.035), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.5fr);
    gap: 20px;
}

.editorial-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.editorial-card::before {
    position: absolute;
    inset: 5px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(137, 119, 91, 0.06);
}

.countdown-card,
.result-card {
    min-height: 340px;
    padding: 36px 42px 29px;
}

.countdown-card {
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at -4% 105%, transparent 0 54px, rgba(157, 136, 99, 0.08) 55px 56px, transparent 57px 70px, rgba(157, 136, 99, 0.06) 71px 72px, transparent 73px),
        linear-gradient(135deg, rgba(255,255,255,.8), rgba(248,244,235,.85));
}

.countdown-card::after {
    position: absolute;
    right: 24px;
    top: 25px;
    width: 84px;
    height: 58px;
    content: "";
    opacity: 0.1;
    background:
        linear-gradient(160deg, transparent 45%, var(--gold) 46% 49%, transparent 50%) 0 0 / 38px 18px repeat-x;
}

.card-kicker {
    color: var(--red);
    font-size: 1.28rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.countdown-intro {
    margin: 13px 0 6px;
    color: var(--ink-soft);
}

.countdown-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 5px 0 0;
    font-variant-numeric: tabular-nums;
    font-size: clamp(3.3rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.countdown-value b {
    font-weight: 400;
    font-size: 0.74em;
}

.countdown-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 355px;
    margin: 6px auto 0;
    padding: 0 3px;
    font-family: var(--sans);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.fine-rule {
    width: 84%;
    height: 1px;
    margin: 28px auto 14px;
    background: var(--line);
}

.next-draw-line {
    margin: 0;
    color: #332f29;
    font-size: 0.9rem;
}

.card-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.card-subtitle {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.84rem;
}

.verification-seal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--green);
    background: rgba(31, 133, 79, 0.07);
    border: 1px solid rgba(31, 133, 79, 0.22);
    font-family: var(--sans);
    font-size: 0.72rem;
    white-space: nowrap;
}

.verification-seal i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-style: normal;
    font-size: 0.68rem;
}

.winning-numbers {
    display: grid;
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 17px;
    margin: 32px 0 27px;
}

.winning-numbers span {
    min-height: 122px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(249,245,236,.5));
    border: 1px solid #b9ae9b;
    box-shadow: 0 6px 15px rgba(61, 49, 34, 0.04);
    font-size: clamp(3.1rem, 7vw, 5.7rem);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.result-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.result-meta p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
}

.result-meta span {
    color: var(--ink-soft);
}

.result-meta strong {
    font-weight: 500;
    text-align: right;
}

.information-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.9fr) minmax(280px, 0.92fr) minmax(340px, 1.1fr);
    align-items: stretch;
    gap: 20px;
}

.middle-stack {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.calendar-card,
.verification-card,
.archive-card,
.newsroom-card {
    padding: 24px;
}

.section-title-row {
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.section-title-row h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--red);
    font-size: 1.03rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.line-icon {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    color: var(--ink);
}

.calendar-icon {
    border: 2px solid var(--ink);
    border-radius: 2px;
}

.calendar-icon::before {
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--ink);
}

.calendar-icon::after {
    position: absolute;
    top: -4px;
    left: 5px;
    width: 2px;
    height: 7px;
    content: "";
    background: var(--ink);
    box-shadow: 10px 0 0 var(--ink);
}

.shield-icon {
    border: 1.8px solid var(--ink);
    border-radius: 11px 11px 13px 13px;
    font-family: var(--sans);
    font-size: 0.75rem;
}

.archive-icon {
    border: 1.8px solid var(--ink);
}

.archive-icon::before {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 2px;
    content: "";
    background: var(--ink);
    box-shadow: 0 5px 0 var(--ink), 0 10px 0 var(--ink);
}

.calendar-controls {
    display: grid;
    grid-template-columns: 35px 1fr 35px;
    align-items: center;
    margin: 16px 0 12px;
    text-align: center;
}

.calendar-controls a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    font-size: 1.4rem;
}

.calendar-controls a:hover {
    color: var(--red);
    border-color: var(--line);
}

.calendar-controls strong {
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-weekdays {
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--sans);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.calendar-days {
    row-gap: 3px;
    padding-top: 7px;
}

.calendar-days span {
    position: relative;
    min-height: 34px;
    display: grid;
    place-items: center;
    font-family: var(--sans);
    font-size: 0.8rem;
}

.calendar-days span.muted {
    color: #aaa194;
}

.calendar-days span.draw-day::after {
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    content: "";
    background: var(--red);
    border-radius: 50%;
}

.calendar-days span.today {
    width: 34px;
    margin-inline: auto;
    color: #fff;
    background: var(--red);
    border-radius: 50%;
}

.calendar-days span.today::after {
    background: #fff;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 19px 0 7px;
    font-family: var(--sans);
    font-size: 0.72rem;
}

.calendar-legend i {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

.calendar-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.verification-card {
    overflow: hidden;
}

.verification-card::after {
    position: absolute;
    right: -32px;
    bottom: -25px;
    width: 150px;
    height: 150px;
    content: "";
    opacity: 0.07;
    border: 2px solid var(--red);
    border-radius: 48% 52% 50% 44%;
    transform: rotate(24deg);
}

.verification-card > p {
    position: relative;
    z-index: 1;
    margin: 19px 0 15px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.text-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.text-link:hover {
    color: var(--red);
}

.verification-detail {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(169, 22, 27, 0.04);
    border-left: 2px solid var(--red);
}

.verification-detail strong {
    font-size: 0.8rem;
    font-weight: 500;
}

.verification-detail span {
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.section-deck {
    margin: 16px 0 11px;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.archive-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-list li {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 14px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-soft);
}

.archive-list li:last-child {
    border-bottom: 0;
}

.archive-list li > span:first-child {
    display: grid;
    gap: 1px;
}

.archive-list strong {
    font-size: 0.8rem;
    font-weight: 500;
}

.archive-list small {
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.62rem;
}

.archive-number {
    grid-row: span 2;
    font-family: var(--sans);
    font-size: 1.04rem;
    letter-spacing: 0.21em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.archive-status {
    display: none;
}

.newsroom-title p {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.72rem;
}

.bulletin-list {
    position: relative;
    z-index: 1;
}

.bulletin-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line-soft);
}

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

.bulletin-art {
    position: relative;
    min-height: 90px;
    overflow: hidden;
    background: #d9d4c8;
}

.bulletin-art::before,
.bulletin-art::after,
.bulletin-art i {
    position: absolute;
    content: "";
}

.bulletin-art.art-1 {
    background: linear-gradient(180deg, #b9d3dc 0 46%, #e3decf 46% 64%, #789368 64%);
}

.bulletin-art.art-1::before {
    right: 20px;
    bottom: 21px;
    width: 22px;
    height: 59px;
    background: #6e716e;
    clip-path: polygon(45% 0, 55% 0, 59% 25%, 78% 44%, 62% 44%, 83% 100%, 17% 100%, 38% 44%, 22% 44%, 41% 25%);
}

.bulletin-art.art-2 {
    background: linear-gradient(180deg, #c8d5d8 0 42%, #e5ddd0 42% 61%, #778b5e 61%);
}

.bulletin-art.art-2::before {
    right: 9px;
    bottom: 24px;
    left: 9px;
    height: 35px;
    background: #5b6656;
    clip-path: polygon(0 100%, 0 72%, 12% 72%, 8% 55%, 27% 55%, 19% 38%, 43% 38%, 34% 20%, 58% 20%, 49% 0, 71% 20%, 63% 38%, 85% 38%, 77% 55%, 100% 55%, 100% 100%);
}

.bulletin-art.art-3 {
    background: linear-gradient(180deg, #c7d7db 0 44%, #ece6d9 44% 56%, #789071 56%);
}

.bulletin-art.art-3::before {
    right: 9px;
    bottom: 28px;
    left: 9px;
    height: 38px;
    background: repeating-linear-gradient(90deg, #6c7473 0 13px, transparent 13px 16px);
    clip-path: polygon(0 100%, 0 45%, 19% 45%, 19% 12%, 46% 12%, 46% 57%, 64% 57%, 64% 0, 100% 0, 100% 100%);
}

.bulletin-copy time {
    display: block;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.59rem;
    text-transform: uppercase;
}

.bulletin-copy h3 {
    margin: 3px 0 3px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.bulletin-copy > p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.72rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bulletin-copy details {
    margin-top: 6px;
}

.bulletin-copy summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
    font-size: 0.7rem;
}

.bulletin-copy summary::-webkit-details-marker {
    display: none;
}

.bulletin-copy details[open] summary {
    color: var(--red);
}

.bulletin-copy details > div {
    margin-top: 9px;
    padding: 10px;
    color: var(--ink-soft);
    background: #f3eee4;
    border-left: 2px solid var(--red);
    font-size: 0.72rem;
}

.empty-state {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    padding: 18px;
    color: var(--ink-soft);
    background: rgba(119, 104, 81, 0.055);
    border: 1px dashed var(--line);
    font-size: 0.82rem;
}

.contact-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--red-dark);
}

.contact-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.11;
    background:
        radial-gradient(circle at 0 100%, transparent 0 28px, #fff 29px 30px, transparent 31px 49px, #fff 50px 51px, transparent 52px) 0 0 / 100px 50px repeat;
}

.contact-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 220px;
}

.contact-inner > div {
    max-width: 760px;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.7;
}

.contact-inner h2 {
    margin: 7px 0 8px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 500;
}

.contact-inner p {
    margin: 0;
    opacity: 0.84;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 21px;
    color: var(--ink);
    background: #fffaf0;
    border: 1px solid rgba(255,255,255,.8);
    font-family: var(--sans);
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: #f5f0e5;
    background: #10100e;
}

.site-footer::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.055;
    background:
        radial-gradient(circle at 0 100%, transparent 0 23px, #fff 24px 25px, transparent 26px) 0 0 / 50px 25px repeat;
}

.footer-top,
.footer-bottom {
    position: relative;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding-block: 47px 31px;
}

.footer-brand {
    display: grid;
    gap: 3px;
}

.footer-brand strong {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.footer-brand span {
    font-size: 0.77rem;
    opacity: 0.78;
}

.footer-top nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 25px;
    font-family: var(--sans);
    font-size: 0.74rem;
}

.footer-top nav a:hover {
    color: #ffb9b9;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 74px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-family: var(--sans);
    font-size: 0.68rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.68;
}

.staff-link {
    opacity: 0.38;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.staff-link:hover {
    opacity: 0.9;
}

@media (max-width: 1240px) {
    .public-navigation > a {
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .public-navigation > a::after {
        right: 10px;
        left: 10px;
    }

    .information-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsroom-card {
        grid-column: 1 / -1;
    }

    .bulletin-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 26px;
    }
}

@media (max-width: 980px) {
    html {
        scroll-padding-top: 20px;
    }

    .page-shell {
        width: min(100% - 32px, 920px);
    }

    .masthead {
        min-height: 126px;
    }

    .brand-mark {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .brand-sun {
        top: 11px;
        left: 39px;
        width: 15px;
        height: 15px;
    }

    .brand-castle {
        top: 31px;
        left: 12px;
        transform: scale(.86);
        transform-origin: left top;
    }

    .brand-waves {
        bottom: 8px;
    }

    .nav-shell {
        min-height: 58px;
        display: block;
    }

    .nav-toggle {
        width: 100%;
        min-height: 58px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        color: var(--ink);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: var(--sans);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .nav-toggle-lines {
        width: 25px;
        display: grid;
        gap: 5px;
    }

    .nav-toggle-lines i {
        display: block;
        height: 1px;
        background: var(--ink);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .public-navigation {
        display: none;
        padding: 4px 0 18px;
        border-top: 1px solid var(--line-soft);
    }

    .public-navigation.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .public-navigation > a {
        justify-content: flex-start;
        min-height: 47px;
        padding: 0 12px;
        border-bottom: 1px solid var(--line-soft);
    }

    .public-navigation > a::after {
        top: 12px;
        right: auto;
        bottom: 12px;
        left: 0;
        width: 2px;
        height: auto;
        transform: scaleY(0);
    }

    .public-navigation > a:hover::after,
    .public-navigation > a.active::after {
        transform: scaleY(1);
    }

    .language-switcher {
        grid-column: 1 / -1;
        margin: 14px 0 0;
    }

    .language-trigger {
        width: 100%;
    }

    .language-menu {
        top: calc(100% + 4px);
        right: 0;
        left: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .countdown-card,
    .result-card {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 24px, 680px);
    }

    .masthead {
        min-height: 105px;
    }

    .brand {
        gap: 13px;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-width: 2px;
    }

    .brand-sun {
        top: 8px;
        left: 33px;
        width: 13px;
        height: 13px;
    }

    .brand-castle {
        top: 25px;
        left: 8px;
        transform: scale(.75);
    }

    .brand-waves {
        right: 7px;
        bottom: 7px;
        left: 7px;
    }

    .brand-copy strong {
        font-size: clamp(1.25rem, 6.2vw, 2rem);
        white-space: normal;
    }

    .brand-copy span {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .masthead-silhouette {
        display: none;
    }

    .public-navigation.open {
        grid-template-columns: 1fr;
    }

    .section-pad {
        padding-block: 18px;
    }

    .section-pad-sm {
        padding-bottom: 18px;
    }

    .countdown-card,
    .result-card {
        padding: 27px 20px 22px;
    }

    .countdown-value {
        gap: 6px;
        font-size: clamp(3rem, 17vw, 4.2rem);
    }

    .fine-rule {
        margin-top: 20px;
    }

    .card-heading-row {
        display: grid;
    }

    .verification-seal {
        justify-self: start;
    }

    .winning-numbers {
        gap: 8px;
        margin-block: 23px 20px;
    }

    .winning-numbers span {
        min-height: 79px;
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .result-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-meta p + p {
        padding-top: 8px;
        border-top: 1px solid var(--line-soft);
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

    .newsroom-card {
        grid-column: auto;
    }

    .calendar-card,
    .verification-card,
    .archive-card,
    .newsroom-card {
        padding: 20px;
    }

    .bulletin-list {
        display: block;
    }

    .bulletin-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 13px;
    }

    .contact-inner {
        display: grid;
        gap: 25px;
        padding-block: 28px;
    }

    .primary-button {
        justify-self: start;
    }

    .footer-top {
        display: grid;
        padding-block: 35px 27px;
    }

    .footer-top nav {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
        padding-block: 20px;
    }
}

@media (max-width: 420px) {
    .winning-numbers {
        gap: 5px;
    }

    .winning-numbers span {
        min-height: 70px;
        font-size: 2.65rem;
    }

    .countdown-labels {
        font-size: 0.58rem;
    }

    .bulletin-item {
        grid-template-columns: 1fr;
    }

    .bulletin-art {
        min-height: 115px;
    }
}

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

@media print {
    .nav-frame,
    .contact-section,
    .staff-link,
    .site-footer nav {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .editorial-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* Standalone public menu pages */
.page-main {
    min-height: 58vh;
}

.single-page-section {
    min-height: 620px;
}

.narrow-page {
    max-width: 1120px;
}

.page-intro {
    max-width: 780px;
    margin-bottom: 30px;
}

.page-intro h1 {
    margin: 8px 0 12px;
    font: 500 clamp(2.3rem, 5vw, 4.6rem)/1.02 var(--serif);
    letter-spacing: 0.015em;
}

.page-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.compact-intro {
    margin-bottom: 25px;
}

.compact-intro p {
    margin-top: 8px;
}

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

.menu-window {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-window:hover {
    transform: translateY(-3px);
    border-color: rgba(169, 22, 27, 0.45);
    box-shadow: var(--shadow);
}

.menu-window > span {
    color: var(--red);
    font: 700 0.72rem var(--sans);
    letter-spacing: 0.12em;
}

.menu-window h2 {
    margin: 15px 0 8px;
    font: 500 1.55rem var(--serif);
}

.menu-window p {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.menu-window strong {
    margin-top: auto;
    color: var(--red);
    font: 700 0.77rem var(--sans);
}

.standalone-result {
    min-height: 390px;
    padding: clamp(30px, 5vw, 65px);
}

.standalone-result .winning-numbers {
    width: min(760px, 100%);
    margin-inline: auto;
}

.standalone-result .result-meta {
    grid-template-columns: repeat(3, 1fr);
}

.recent-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.recent-strip article {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 17px;
    text-align: center;
}

.recent-strip time {
    color: var(--ink-soft);
    font: 0.72rem var(--sans);
}

.recent-strip strong {
    color: var(--red);
    font: 500 1.7rem var(--serif);
    letter-spacing: 0.12em;
}

.standalone-calendar {
    padding: clamp(24px, 5vw, 54px);
}

.standalone-calendar .calendar-days span {
    min-height: 58px;
}

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

.result-index-card {
    display: grid;
    gap: 15px;
    padding: 25px;
}

.result-index-card time,
.result-index-card > span {
    color: var(--ink-soft);
    font: 0.76rem var(--sans);
}

.mini-number-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.mini-number-row b {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    font: 500 2rem var(--serif);
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.standalone-newsroom {
    display: grid;
    gap: 16px;
}

.bulletin-window {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.bulletin-window .bulletin-art {
    min-height: 145px;
}

.bulletin-window time {
    color: var(--ink-soft);
    font: 0.72rem var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bulletin-window h2 {
    margin: 7px 0;
    font: 500 1.45rem var(--serif);
}

.bulletin-window p {
    margin: 0;
    color: var(--ink-soft);
}

.bulletin-window details {
    margin-top: 15px;
    color: var(--ink-soft);
}

.bulletin-window summary {
    color: var(--red);
    cursor: pointer;
    font: 700 0.78rem var(--sans);
}

.bulletin-window details div {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.history-window {
    overflow: hidden;
}

.history-table-wrap {
    overflow-x: auto;
}

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

.history-table th,
.history-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}

.history-table th {
    color: var(--red);
    background: rgba(240, 233, 220, 0.58);
    font: 700 0.72rem var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.history-table td {
    color: var(--ink-soft);
    font-family: var(--sans);
}

.history-table td strong {
    color: var(--ink);
    font-family: var(--serif);
}

.history-digits {
    display: inline-grid;
    grid-template-columns: repeat(4, 42px);
    gap: 6px;
}

.history-digits b {
    min-height: 46px;
    display: grid;
    place-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    font: 500 1.55rem var(--serif);
}

.pagination {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    background: rgba(240, 233, 220, 0.38);
    font: 0.78rem var(--sans);
}

.pagination a {
    color: var(--red);
    font-weight: 700;
}

.pagination a:last-child {
    text-align: right;
}

.contact-window {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 38px;
    padding: clamp(28px, 5vw, 55px);
}

.contact-window > div > span {
    color: var(--red);
    font: 700 0.72rem var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-window h2 {
    margin: 8px 0;
    font: 500 clamp(1.8rem, 4vw, 3.2rem) var(--serif);
}

.contact-window p {
    margin: 0;
    color: var(--ink-soft);
}

.contact-window dl {
    display: grid;
    gap: 16px;
    margin: 0;
}

.contact-window dl div {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line-soft);
}

.contact-window dt {
    color: var(--ink-soft);
    font: 0.69rem var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-window dd {
    margin: 5px 0 0;
    font-family: var(--sans);
}

@media (max-width: 980px) {
    .home-menu-grid,
    .results-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recent-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-window {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-menu-grid,
    .results-card-grid,
    .recent-strip {
        grid-template-columns: 1fr;
    }

    .page-intro h1 {
        font-size: 2.3rem;
    }

    .standalone-result .result-meta {
        grid-template-columns: 1fr;
    }

    .bulletin-window {
        grid-template-columns: 1fr;
    }

    .history-table th,
    .history-table td {
        padding: 14px 12px;
    }

    .history-digits {
        grid-template-columns: repeat(4, 32px);
        gap: 4px;
    }

    .history-digits b {
        min-height: 38px;
        font-size: 1.25rem;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}
