:root {
  --bg: #11100f;
  --panel: #1a1816;
  --panel-2: #24201d;
  --line: rgba(255,255,255,.1);
  --text: #f7f2e8;
  --muted: #9f978d;
  --red: #d54a37;
  --red-dark: #8e2d20;
  --gold: #d8ad60;
  --teal: #6aa59a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #090807; color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.desktop-stage { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; gap: clamp(30px, 7vw, 120px); padding: 24px; background: radial-gradient(circle at 20% 20%, rgba(213,74,55,.12), transparent 28%), #090807; }
.phone-shell { position: relative; width: min(430px, 100%); min-height: calc(100vh - 48px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: var(--bg); box-shadow: 0 36px 100px rgba(0,0,0,.55); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 13px 18px; background: rgba(17,16,15,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(216,173,96,.7); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 17px; }
.brand span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: #746d65; font-size: 6px; letter-spacing: .2em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.age-pill { padding: 3px 7px; border: 1px solid rgba(213,74,55,.6); border-radius: 20px; color: #ed8778; font-size: 8px; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.hero { position: relative; min-height: 440px; padding: 48px 22px 34px; overflow: hidden; background: linear-gradient(155deg, #251712 0%, #171411 55%, #11100f 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: "6/49"; position: absolute; right: -17px; bottom: -48px; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 150px; line-height: 1; }
.hero-orbit { position: absolute; top: 43px; right: -79px; width: 230px; height: 230px; border: 1px solid rgba(216,173,96,.19); border-radius: 50%; animation: spin 24s linear infinite; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 30px; border: 1px solid rgba(216,173,96,.11); border-radius: 50%; }
.hero-orbit::after { inset: 66px; }
.hero-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px rgba(213,74,55,.8); }
.hero-orbit i:nth-child(1) { left: 8px; top: 80px; }
.hero-orbit i:nth-child(2) { right: 33px; top: 25px; background: var(--gold); }
.hero-orbit i:nth-child(3) { left: 80px; bottom: 17px; background: var(--teal); }
.hero-orbit b { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(216,173,96,.11); font-family: var(--serif); font-size: 65px; font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow, .section-kicker { margin: 0; color: var(--gold); font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { position: relative; display: flex; align-items: center; gap: 7px; margin-bottom: 26px; color: #cdb99a; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(213,74,55,.13); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 { position: relative; z-index: 2; max-width: 310px; margin: 0 0 18px; font-size: 55px; line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: #ed7968; font-style: normal; }
.hero-copy { position: relative; z-index: 2; max-width: 355px; margin: 0 0 26px; color: #ddd2c5; font-size: 18px; font-weight: 500; line-height: 1.85; letter-spacing: .01em; }
.notice-pill { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 8px; max-width: 345px; padding: 10px 11px; border: 1px solid rgba(213,74,55,.35); border-radius: 10px; background: rgba(213,74,55,.09); color: #d9c2bc; font-size: 9px; }
.notice-pill span { display: grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); color: white; font-size: 9px; }

.draw-card { position: relative; z-index: 3; margin: -30px 15px 0; padding: 21px 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: linear-gradient(160deg, #24201c, #1a1816); box-shadow: 0 22px 45px rgba(0,0,0,.3); }
.draw-head, .section-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.draw-head h2 { margin: 5px 0 0; font-size: 26px; }
.draw-status, .demo-tag { padding: 4px 7px; border: 1px solid rgba(216,173,96,.38); border-radius: 20px; color: var(--gold); font-size: 7px; letter-spacing: .12em; }
.draw-meta { display: flex; justify-content: space-between; gap: 12px; margin: 17px 0; color: var(--muted); font-size: 9px; }
.draw-meta b { color: #e4d7c4; font-weight: 500; }
.ball-row { display: grid; grid-template-columns: repeat(6, 1fr) 14px 1fr; gap: 5px; align-items: center; }
.ball-row span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #e65b48, #ac2b20); color: white; font-family: var(--serif); font-size: 18px; box-shadow: inset 0 1px 2px rgba(255,255,255,.22), 0 4px 12px rgba(0,0,0,.3); }
.ball-row span:nth-child(2n) { background: linear-gradient(135deg, #4c92b5, #256c90); }
.ball-row span:nth-child(3n) { background: linear-gradient(135deg, #58a083, #2b7057); }
.ball-row i { color: #655e57; font-style: normal; text-align: center; }
.ball-row .special { background: linear-gradient(135deg, #e2bb71, #ab7a2d) !important; color: #21190e !important; }
.draw-note { margin: 14px 0 0; color: #746d65; font-size: 8px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 20px 15px 4px; }
.quick-grid a { display: grid; grid-template-columns: 35px 1fr; column-gap: 10px; align-items: center; min-height: 80px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.quick-icon { grid-row: span 2; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-size: 16px; }
.quick-icon.red { background: rgba(213,74,55,.14); color: #e97968; }
.quick-icon.gold { background: rgba(216,173,96,.12); color: var(--gold); }
.quick-icon.teal { background: rgba(106,165,154,.12); color: var(--teal); }
.quick-icon.gray { background: rgba(255,255,255,.07); color: #aaa198; }
.quick-grid strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.quick-grid small { color: var(--muted); font-size: 8px; }
.section { padding: 38px 18px; }
.section-title-row { margin-bottom: 20px; }
.section-title-row h2 { margin: 5px 0 0; font-size: 31px; }
.history-list { border-top: 1px solid var(--line); }
.history-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-row > div:first-child { display: flex; flex-direction: column; }
.history-row b { color: #e7dccd; font-size: 9px; font-weight: 500; }
.history-row small { color: #6f6861; font-size: 8px; }
.mini-balls { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.mini-balls span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #322b26; color: #d8cfc3; font-family: var(--serif); font-size: 10px; }
.mini-balls span.special { border: 1px solid rgba(216,173,96,.5); color: var(--gold); }
.load-more { width: 100%; margin-top: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #a69e95; font-size: 9px; cursor: pointer; }
.load-more span { margin-left: 5px; color: var(--gold); }
.calendar-section { padding-top: 22px; }
.calendar-card { display: flex; align-items: center; gap: 15px; padding: 17px; border-radius: 14px; background: var(--panel-2); }
.calendar-date { display: flex; flex-direction: column; align-items: center; min-width: 65px; padding-right: 15px; border-right: 1px solid var(--line); }
.calendar-date strong { color: var(--gold); font-family: var(--serif); font-size: 39px; font-weight: 400; line-height: 1; }
.calendar-date span { margin-top: 5px; color: #7c746b; font-size: 7px; letter-spacing: .08em; }
.calendar-card h3 { margin: 5px 0 4px; font-size: 20px; }
.calendar-card p { margin: 0; color: var(--muted); font-size: 8px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.calendar-days span { display: flex; flex-direction: column; align-items: center; padding: 8px 3px; border: 1px solid transparent; border-radius: 9px; color: #7d756d; font-size: 8px; }
.calendar-days small { margin-top: 4px; color: #b5aca2; font-family: var(--serif); font-size: 15px; }
.calendar-days .active { border-color: rgba(213,74,55,.4); background: rgba(213,74,55,.08); color: #e27a6b; }
.calendar-days .next { border-color: rgba(216,173,96,.4); color: var(--gold); }
.rules-section { padding-top: 21px; }
.rule-accordion { border-top: 1px solid var(--line); }
.rule-accordion details { border-bottom: 1px solid var(--line); }
.rule-accordion summary { display: flex; justify-content: space-between; padding: 15px 0; list-style: none; font-family: var(--serif); font-size: 17px; cursor: pointer; }
.rule-accordion summary::-webkit-details-marker { display: none; }
.rule-accordion summary span { color: var(--gold); font-family: var(--sans); transition: transform .2s ease; }
.rule-accordion details[open] summary span { transform: rotate(45deg); }
.rule-accordion p { margin: -2px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.notice-section { margin: 10px 15px 26px; padding: 25px 20px; border: 1px solid rgba(213,74,55,.28); border-radius: 16px; background: linear-gradient(140deg, rgba(213,74,55,.16), rgba(213,74,55,.04)); }
.notice-section h2 { margin: 12px 0 15px; font-size: 29px; line-height: 1.15; }
.notice-section p { margin: 0 0 10px; color: #b7aaa2; font-size: 10px; }
.faq-section { padding-top: 12px; }
.mini-faq { display: grid; gap: 7px; }
.mini-faq article { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.mini-faq strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.mini-faq p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.footer { display: flex; flex-direction: column; gap: 7px; padding: 25px 20px 85px; border-top: 1px solid var(--line); background: #0c0b0a; }
.footer > div { display: flex; align-items: center; gap: 8px; }
.brand-mark.small { width: 26px; height: 26px; font-size: 12px; }
.footer strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.footer p, .footer > span { margin: 0; color: #68615a; font-size: 8px; letter-spacing: .05em; }
.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(430px, 100%); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); background: rgba(18,16,15,.95); border-top: 1px solid var(--line); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #777067; font-size: 8px; }
.bottom-nav span { font-size: 17px; }
.bottom-nav a.active { color: var(--gold); }
.desktop-note { position: sticky; top: 42px; width: 280px; padding-top: 65px; color: #e6dece; }
.desktop-note span { color: var(--red); font-size: 8px; letter-spacing: .2em; }
.desktop-note strong { display: block; margin: 14px 0 15px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.1; }
.desktop-note p { color: #81796f; font-size: 11px; line-height: 1.8; }
body.light-mode { --bg: #f4f0e8; --panel: #fffdf8; --panel-2: #e9e1d6; --text: #191614; --muted: #6f675e; --line: rgba(25,22,20,.12); }
body.light-mode .desktop-stage { background: #e5ded4; }
body.light-mode .phone-shell { box-shadow: 0 36px 90px rgba(60,45,30,.2); }
body.light-mode .topbar { background: rgba(244,240,232,.9); }
body.light-mode .hero { background: linear-gradient(155deg, #ead9d0 0%, #f5f0e7 55%, #f4f0e8 100%); }
body.light-mode .hero-copy, body.light-mode .eyebrow { color: #5e554c; }
body.light-mode .draw-card { background: linear-gradient(160deg, #fffdf8, #efe7dc); box-shadow: 0 20px 45px rgba(71,52,34,.12); }
body.light-mode .notice-pill { color: #744f48; }
body.light-mode .quick-grid a, body.light-mode .mini-faq article { background: rgba(255,255,255,.45); }
body.light-mode .calendar-card { background: #e9e1d6; }
body.light-mode .footer { background: #e4dcd1; }
body.light-mode .bottom-nav { background: rgba(244,240,232,.96); }
@media (max-width: 800px) {
  .desktop-stage { display: block; padding: 0; }
  .desktop-note { display: none; }
  .phone-shell { width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
  .bottom-nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit { animation: none; }
}

.desktop-nav { display: none; }

@media (min-width: 801px) {
  body {
    background:
      radial-gradient(circle at 8% 12%, rgba(213,74,55,.15), transparent 24%),
      radial-gradient(circle at 92% 30%, rgba(216,173,96,.11), transparent 28%),
      #080706;
  }
  .desktop-stage { display: block; padding: 0; background: transparent; }
  .phone-shell {
    width: 100%; max-width: none; min-height: 100vh;
    overflow: visible; border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
  }
  .desktop-note { display: none; }
  .topbar {
    display: grid; grid-template-columns: 1fr auto 1fr;
    min-height: 84px; padding: 13px clamp(28px, 4.2vw, 76px);
    background: rgba(13,12,11,.92); border-bottom-color: rgba(255,255,255,.12);
  }
  .desktop-nav {
    display: flex; align-items: center; gap: clamp(20px, 3vw, 42px);
    font-size: 10px; letter-spacing: .08em; color: #8d857b;
  }
  .desktop-nav a { position: relative; padding: 9px 0; }
  .desktop-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--gold); transform: scaleX(0); transition: transform .25s ease;
  }
  .desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
  .desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
  .topbar-actions { justify-self: end; }
  .bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .hero {
    position: relative;
    display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 38px;
    width: calc(100% - 9vw); max-width: 1500px; min-height: 610px;
    margin: 34px auto 0; padding: 72px clamp(48px, 6.5vw, 112px);
    overflow: hidden; border: 1px solid rgba(216,173,96,.16); border-radius: 30px;
    background:
      radial-gradient(circle at 82% 42%, rgba(216,173,96,.14), transparent 30%),
      radial-gradient(circle at 70% 5%, rgba(213,74,55,.18), transparent 26%),
      linear-gradient(145deg, #251712 0%, #161310 62%, #0f0e0d 100%);
  }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: linear-gradient(to right, transparent, #000 48%, #000);
    pointer-events: none;
  }
  .hero::after { right: 2%; bottom: -30px; font-size: 280px; }
  .hero-orbit {
    position: relative; top: auto; right: auto; grid-column: 2; grid-row: 1 / span 5;
    justify-self: center; align-self: center;
    width: min(33vw, 440px); height: min(33vw, 440px);
    border-color: rgba(216,173,96,.35);
    box-shadow: 0 0 80px rgba(216,173,96,.06), inset 0 0 80px rgba(213,74,55,.04);
  }
  .hero-orbit::before { inset: 48px; border-color: rgba(216,173,96,.2); }
  .hero-orbit::after { inset: 104px; border-color: rgba(216,173,96,.15); }
  .hero-orbit i { width: 10px; height: 10px; }
  .hero-orbit i:nth-child(1) { left: 13px; top: 153px; }
  .hero-orbit i:nth-child(2) { right: 50px; top: 35px; }
  .hero-orbit i:nth-child(3) { left: 154px; bottom: 28px; }
  .hero-orbit b { font-size: 120px; color: rgba(216,173,96,.17); }
  .hero .eyebrow, .hero h1, .hero-copy, .hero .notice-pill { grid-column: 1; }
  .hero .eyebrow { margin-bottom: 31px; }
  .hero h1 { max-width: 780px; margin-bottom: 29px; font-size: clamp(76px, 7.6vw, 126px); }
  .hero-copy { max-width: 650px; margin-bottom: 32px; font-size: 23px; font-weight: 500; line-height: 1.75; }
  .notice-pill { max-width: 610px; font-size: 10px; }
  .draw-card {
    width: calc(100% - 18vw); max-width: 1120px;
    margin: -72px auto 0; padding: 30px 38px; border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0,0,0,.42);
  }
  .draw-head h2 { font-size: 36px; }
  .draw-status { padding: 6px 11px; font-size: 8px; }
  .draw-meta { margin: 20px 0 22px; font-size: 10px; }
  .ball-row { grid-template-columns: repeat(6, 72px) 24px 72px; justify-content: start; gap: 12px; }
  .ball-row span { font-size: 25px; }
  .draw-note { font-size: 9px; }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr); gap: 14px;
    width: calc(100% - 13vw); max-width: 1240px; margin: 28px auto 0; padding: 0;
  }
  .quick-grid a { min-height: 102px; padding: 18px; border-radius: 14px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
  .quick-grid a:hover { transform: translateY(-3px); border-color: rgba(216,173,96,.32); background: rgba(216,173,96,.04); }
  .quick-grid strong { font-size: 21px; }
  .quick-grid small { font-size: 9px; }
  .desktop-two-col {
    display: grid; grid-template-columns: 1.26fr .74fr; gap: 42px;
    width: calc(100% - 13vw); max-width: 1240px; margin: 55px auto 0;
    padding-bottom: 45px; border-bottom: 1px solid var(--line);
  }
  .desktop-two-col .section { width: 100%; padding: 0; }
  .section-title-row h2 { font-size: 42px; }
  .history-row { grid-template-columns: 145px 1fr; padding: 17px 0; }
  .history-row b { font-size: 11px; }
  .history-row small { font-size: 9px; }
  .mini-balls span { width: 32px; height: 32px; font-size: 12px; }
  .calendar-card { padding: 20px; }
  .calendar-date strong { font-size: 52px; }
  .calendar-days { margin-top: 16px; }
  .rules-section {
    width: calc(100% - 13vw); max-width: 1240px; margin: 0 auto;
    padding: 52px 0; display: grid; grid-template-columns: .55fr 1.45fr; gap: 55px;
  }
  .rules-section .section-title-row { margin: 0; align-self: start; }
  .rule-accordion { border-top: 0; border-bottom: 1px solid var(--line); }
  .rule-accordion details:first-child { border-top: 1px solid var(--line); }
  .rule-accordion summary { padding: 18px 0; font-size: 21px; }
  .rule-accordion p { font-size: 11px; }
  .notice-section {
    width: calc(100% - 13vw); max-width: 1240px;
    margin: 12px auto 45px; padding: 52px 62px;
    border-radius: 24px; grid-template-columns: .55fr 1.45fr; align-items: start;
  }
  .notice-section h2 { font-size: clamp(46px, 5vw, 74px); }
  .notice-section p { font-size: 13px; line-height: 1.9; }
  .faq-section { width: calc(100% - 13vw); max-width: 1240px; margin: 0 auto; padding: 30px 0 70px; }
  .mini-faq { grid-template-columns: repeat(3, 1fr); }
  .mini-faq article { min-height: 118px; padding: 21px; }
  .mini-faq strong { font-size: 18px; }
  .mini-faq p { font-size: 10px; }
  .footer { padding: 40px clamp(28px, 6.5vw, 105px); }
  body.light-mode { background: #e6dfd4; }
  body.light-mode .hero { background: radial-gradient(circle at 82% 42%, rgba(184,126,34,.12), transparent 30%), linear-gradient(145deg, #eadbd2 0%, #f4efe7 62%, #f4f0e8 100%); }
}
@media (min-width: 801px) and (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr .72fr; padding: 58px; }
  .hero h1 { font-size: 72px; }
  .hero-orbit { width: 300px; height: 300px; }
  .ball-row { grid-template-columns: repeat(6, 58px) 20px 58px; gap: 8px; }
  .desktop-two-col { grid-template-columns: 1fr; }
}

.ball-row span.ball-red, .mini-balls span.ball-red { background: linear-gradient(135deg, #e65b48, #ac2b20); color: #fff; }
.ball-row span.ball-green, .mini-balls span.ball-green { background: linear-gradient(135deg, #58a083, #2b7057); color: #fff; }
.ball-row span.ball-blue, .mini-balls span.ball-blue { background: linear-gradient(135deg, #4c92b5, #256c90); color: #fff; }
.mini-balls span.ball-red, .mini-balls span.ball-green, .mini-balls span.ball-blue { font-family: var(--serif); }
.snapshot-note { margin-top: 13px; padding: 15px; border: 1px dashed rgba(216,173,96,.28); border-radius: 10px; color: var(--muted); font-size: 9px; text-align: center; letter-spacing: .04em; }
.load-more:disabled { cursor: default; opacity: .64; }

@media (max-width: 800px) {
  .quick-grid a:last-child { grid-column: 1 / -1; }
}
