* { box-sizing: border-box; }
:root { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #211b34; background: #f8f7fd; line-height: 1.6; --muted: #5e5573; --accent: #5630aa; --line: #e6e0f1; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 5.5vw, 4.5rem); letter-spacing: -.055em; line-height: 1.12; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
.shell { width: min(1080px, calc(100% - 36px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: white; }
.bar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { text-decoration: none; color: #211b34; font-weight: 850; letter-spacing: -.03em; }
.brand small { display: inline-block; color: var(--muted); margin-left: .4rem; font-weight: 500; }
.logo { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-right: .25rem; background: #21163d; color: #e8deff; border-radius: .65rem; }
nav a { font-size: .9rem; font-weight: 650; }
main { padding-block: 28px 48px; min-height: 68vh; }
.single-draw { max-width: 440px; padding-top: clamp(30px, 10vh, 100px); }
.draw-sheet { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 6vw, 32px); overflow-wrap: anywhere; }
.draw-heading { margin-bottom: .85rem; }
.draw-heading :is(h1, h3) { font-size: clamp(1.45rem, 6vw, 2rem); letter-spacing: -.025em; line-height: 1.35; }
.clean-list .prize-line { display: flex; justify-content: space-between; gap: 1rem; }
.prize-line span { flex-shrink: 0; color: var(--muted); }
.clean-list.prizes { margin-bottom: .55rem; }
.entry-area { margin: 1rem 0; }
.entry-area > .badge { margin-bottom: .5rem; }
.entry-area > .primary { width: 100%; }
.entry-area form { margin-top: .65rem; }
.entry-heading { font-size: 1rem; }
.entry-login { overflow-wrap: anywhere; }
.entry-login form { text-align: left; }
.entry-login form > .primary { width: 100%; }
.entry-login > .quiet { margin-top: .6rem; }
.invitation { margin-block: .75rem; }
.invitation .secondary { margin-top: .5rem; }
.public-winners { border-top: 1px solid var(--line); padding-block: .8rem; }
.public-winners h2 { font-size: 1.05rem; }
.clean-list .winner-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .8rem; text-align: left; }
.public-winners .quiet:not([hidden]) { margin-top: .45rem; }
.public-winners .quiet[hidden] { display: none; }
.next-round { font-weight: 700; }
.draw-rules { border-top: 1px solid var(--line); padding-top: .75rem; margin-bottom: 0; font-size: .88rem; }
.draw-rules p:first-of-type { margin-top: .55rem; }
.draw-links { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; padding: .75rem .2rem 0; font-size: .85rem; }
.draw-links details { margin: 0; }
.draw-rules summary, .draw-links summary { color: var(--muted); font-weight: 500; }
.draw-nav { display: grid; gap: .3rem; margin-top: .45rem; }
.design-white { --accent: #17634d; }
.design-white .draw-sheet { border-color: #d9e7e0; box-shadow: 0 6px 22px #143c2c0d; }
.design-white .prize-line { border-top: 1px solid #e6eee9; }
.design-ticket { --accent: #a2410e; }
.design-ticket .draw-sheet { background: #fff7ea; border-color: #ebc796; }
.design-ticket .draw-heading { border-bottom: 1px dashed #b77b49; padding-bottom: .55rem; }
.design-ticket .prize-line { background: #ffebcc; border-radius: 8px; padding-inline: .65rem; }
.design-center { --accent: #194ea3; }
.design-center .draw-sheet { background: #f1f6ff; border-color: #d8e4f5; text-align: center; }
.design-center .clean-list .prize-line { justify-content: center; flex-wrap: wrap; gap: .15rem .5rem; }
.design-center .draw-rules { text-align: left; }
.design-center .button.primary { border-radius: 99px; }
.design-prize { --accent: #792454; }
.design-prize .draw-sheet { background: #fff6fa; border-color: #f2d4e2; }
.design-prize .draw-heading :is(h1, h3) { color: var(--muted); font-size: 1.05rem; font-weight: 650; }
.design-prize .clean-list .prize-line { display: grid; gap: .15rem; }
.design-prize .prize-line strong { color: #682044; font-size: 1.45rem; line-height: 1.4; }
.design-list { --accent: #2c3843; }
.design-list .draw-sheet { background: transparent; border: 0; padding-inline: 0; }
.design-list .clean-list .prize-line { border-block: 1px solid #d7dbe3; }
.design-list .entry-area > .primary { width: auto; }
.design-banner { --accent: #1f5945; }
.design-banner .draw-sheet { border-color: #d5e1da; }
.design-banner .draw-heading { background: #204437; color: #fff; padding: .7rem .85rem; border-radius: 8px; }
.design-banner .draw-heading :is(h1, h3) { margin-bottom: 0; }
.design-banner .draw-heading .badge { margin-top: .45rem; }
.design-simple { --accent: #222; color: #222; }
body:has(.single-draw.design-simple) { background: #fff; }
.design-simple .draw-sheet { background: #fff; border: 0; border-radius: 0; text-align: center; }
.single-draw.design-simple .draw-sheet { padding-inline: 0; }
.design-simple .draw-heading :is(h1, h3) { letter-spacing: 0; }
.design-simple .clean-list .prize-line { justify-content: center; flex-wrap: wrap; gap: .15rem .5rem; border: 0; padding-block: .15rem; }
.design-simple .entry-area > .primary { max-width: 15rem; border-radius: .4rem; }
.design-simple .draw-rules { border: 0; padding-top: 0; }
.design-simple .draw-rules[open] { text-align: left; }
.design-simple .draw-links { justify-content: center; gap: 1rem; }
.single-draw.design-simple .compare-back { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem .85rem; }
.draw-compare { padding-top: clamp(22px, 6vh, 54px); }
.compare-heading { margin-bottom: 1.3rem; }
.compare-heading h1 { font-size: clamp(1.55rem, 5vw, 2.3rem); letter-spacing: -.025em; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1.25rem; }
.compare-option { display: flex; flex-direction: column; min-width: 0; }
.compare-option > .muted { margin-bottom: .75rem; }
.compare-option .draw-sheet { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.compare-option .draw-heading h3 { font-size: 1.25rem; }
.compare-option .draw-body { display: flex; flex: 1; flex-direction: column; }
.compare-option .entry-area { margin: auto 0 0; padding-top: .55rem; }
.compare-option .button { text-align: center; cursor: default; }
.compare-option .button:hover { filter: none; }
.compare-open { align-self: flex-start; margin-top: .6rem; font-weight: 700; }
.compare-back { display: block; margin-top: 1rem; font-size: .85rem; }
@media (min-width: 460px) and (max-width: 900px) {
  .compare-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .compare-option > h2 { font-size: .98rem; }
  .compare-option > .muted { min-height: 3em; font-size: .78rem; }
  .compare-option .draw-sheet { border-radius: 12px; padding: .65rem; }
  .compare-option .draw-heading h3 { font-size: .95rem; }
  .compare-option.design-prize .draw-heading h3 { font-size: .82rem; }
  .compare-option.design-prize .prize-line strong { font-size: 1.03rem; }
  .compare-option.design-banner .draw-heading { padding: .45rem; }
  .compare-option .prize-line { flex-wrap: wrap; gap: .1rem .3rem; }
  .compare-option .prize-line, .compare-option .draw-body > .muted, .compare-option .button, .compare-open { font-size: .78rem; }
}
.section-heading, .row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.section-heading { margin: 1rem 0 .75rem; }
.section-heading h2 { margin: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding: clamp(16px, 3vw, 26px); margin-bottom: 16px; }
.badge { display: inline-block; position: relative; border-radius: 99px; padding: .22rem .65rem; background: #eee9f7; color: #49365c; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.badge.open, .badge.joined, .badge.won { background: #dff4dc; color: #21542a; }
.badge.closed, .badge.awaiting_draw { background: #fff0d2; color: #6b4208; }
.badge.drawn { background: #e8deff; color: #4a288a; }
.muted { color: var(--muted); font-size: .9rem; }
.button { display: inline-block; border-radius: .65rem; padding: .6rem .95rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; border: 1px solid transparent; line-height: 1.4; }
.button.primary { color: #fff; background: var(--accent); }
.button.secondary { color: var(--accent); background: #f4efff; border-color: #ded3f5; }
.button:disabled { opacity: .55; cursor: wait; }
.button:hover:not(:disabled) { filter: brightness(.93); }
:focus-visible { outline: 3px solid #aa78f4; outline-offset: 3px; }
.button.quiet { padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-block: 18px 28px; color: var(--muted); font-size: .85rem; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.clean-list li:last-child { border-bottom: 0; }
code { padding: .1em .35em; background: #f2edf9; color: #3b235c; border-radius: .35em; overflow-wrap: anywhere; white-space: pre-wrap; }
.field { display: grid; gap: .25rem; max-width: 38rem; margin-bottom: .8rem; font-size: .94rem; font-weight: 650; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: .6rem .75rem; font: inherit; font-weight: 400; color: inherit; background: #fcfbff; border: 1px solid #dcd1ec; border-radius: .55rem; }
textarea { min-height: 6rem; resize: vertical; }
.check { display: flex; gap: .4rem; align-items: center; margin-bottom: .75rem; }
.notice { color: #6a2f27; margin: .65rem 0 0; }
.notice:empty { display: none; }
.claim { background: #edf8e9; padding: 1rem; border-radius: .75rem; margin-block: .75rem; }
.claim p:last-child { margin-bottom: 0; }
.panel > .button, .panel > .badge { margin-block: .3rem; margin-right: .35rem; }
.subpanel { padding: .85rem 0; border-top: 1px solid var(--line); }
.table-wrap { overflow: auto; max-height: 24rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
th, td { padding: .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
details { margin: .65rem 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 700; }
