:root {
  color-scheme: light;
  --burgundy: #84121c;
  --red: #b11b22;
  --cream: #fff7e6;
  --paper: #fffbf3;
  --gold: #ffd45e;
  --ink: #2c1515;
  --muted: #73504a;
  --line: #ead7c3;
  background: var(--cream);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
:is(a, button, input):focus-visible { outline: 3px solid #9e2321; outline-offset: 4px; }
.brandbar a:focus-visible, .contact-link:focus-visible { outline-color: #d69420; }
.wrap { width: min(100% - 48px, 1040px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; top: 12px; left: 12px; padding: 8px 13px; color: var(--ink); background: var(--gold); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.brandbar { border-bottom: 1px solid #810e18; color: var(--cream); background: #9c161f; }
.brandbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; width: min(100% - 48px, 1160px); margin-inline: auto; }
.brand, .home-link { text-decoration: none; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; font-size: 1.26rem; font-weight: 900; letter-spacing: -.04em; }
.brand small { color: #ffdf9e; font-size: .72rem; font-weight: 650; letter-spacing: .03em; }
.home-link { padding-block: 7px; font-size: .82rem; }
.home-link span { margin-left: 3px; color: var(--gold); }

.hero { overflow: hidden; background: radial-gradient(ellipse at 72% 25%, #cf392b, transparent 57%), linear-gradient(115deg, #9f151d, #b41a21 58%, #7f101c); color: var(--cream); }
.hero-grid { display: grid; min-height: 370px; grid-template-columns: 1fr minmax(180px, 38%); align-items: center; gap: clamp(14px, 3vw, 38px); padding-block: 42px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 8px; color: #ffdf8a; font-size: .88rem; font-weight: 720; letter-spacing: .14em; }
h1 { color: var(--cream); font-size: clamp(3rem, 9vw, 7.2rem); line-height: 1.01; font-weight: 950; letter-spacing: -.105em; text-shadow: 2px 5px #731320; }
.hero-detail { margin-top: 22px; font-size: clamp(.92rem, 2vw, 1.2rem); }
.illustration { display: grid; position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin-inline: auto; place-items: center; isolation: isolate; }
.illustration-disc { position: absolute; z-index: -1; width: 81%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 9px #ffdf831f, 0 0 0 10px #ffcf6490; }
.illustration-disc::before { content: ""; position: absolute; inset: 7%; border: 1px solid #93201960; border-radius: 50%; }
.illustration img { position: absolute; top: 50%; left: 50%; width: 108%; height: auto; transform: translate(-50%, -50%) rotate(4deg); filter: drop-shadow(2px 4px #6f100a50); }
.spark { position: absolute; z-index: 1; color: var(--gold); line-height: 1; }
.spark-one { top: 6%; right: 7%; font-size: clamp(1.55rem, 5vw, 3.3rem); }
.spark-two { bottom: 14%; left: 8%; font-size: clamp(1.25rem, 4vw, 2.8rem); }
.spark-three { top: 23%; left: 4%; font-size: clamp(.9rem, 3vw, 1.8rem); }

.content { padding-block: 30px 55px; }
h2 { font-size: clamp(1.32rem, 3vw, 1.85rem); line-height: 1.25; letter-spacing: -.045em; }
.status-panel { display: flex; min-height: 115px; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 20px clamp(19px, 3vw, 35px); border: 1px solid #e3c28c; border-left: 4px solid #ae1a20; background: #fff0d2; }
.status-panel p, .rules-panel p { margin-top: 7px; color: var(--muted); }
.contact-link { display: inline-flex; min-height: 48px; align-items: center; gap: 16px; padding: 8px 17px; border-radius: 6px; color: #fff9ed; background: var(--burgundy); font-size: .92rem; font-weight: 700; text-decoration: none; }
.contact-link:hover { background: var(--red); }
.lookup-panel { margin-top: 14px; padding: 22px clamp(19px, 3vw, 35px); border: 1px solid var(--line); background: var(--paper); }
.lookup-panel form { margin-top: 14px; }
.lookup-panel label { display: block; font-size: .94rem; font-weight: 700; }
#lookup-hint { margin: 3px 0 10px; color: var(--muted); font-size: .91rem; }
.lookup-controls { display: flex; flex-wrap: wrap; gap: 8px; max-width: 580px; }
.lookup-controls :is(input, button) { min-height: 48px; border-radius: 6px; font: inherit; }
.lookup-controls input { flex: 1 1 265px; min-width: 0; padding: 9px 11px; border: 1px solid #a38676; background: #fff; color: var(--ink); letter-spacing: .035em; }
.lookup-controls input[aria-invalid="true"] { border-color: var(--red); }
.lookup-controls button { min-width: 110px; padding: 8px 17px; border: 1px solid transparent; background: var(--burgundy); color: #fff9ed; cursor: pointer; font-weight: 700; }
.lookup-controls button:hover { background: var(--red); }
.lookup-controls button:disabled { cursor: wait; opacity: .72; }
.lookup-error { margin-top: 7px; color: var(--burgundy); font-size: .92rem; }
.lookup-error:empty { margin-top: 0; }
#result-copy { margin-top: 14px; }
#result-title { color: var(--burgundy); font-size: 1.08rem; font-weight: 800; }
#result-detail { margin-top: 4px; color: var(--muted); }
#result-contact { margin-top: 12px; }
.steps { margin-top: 34px; }
.steps ol { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 5px 9px; min-height: 120px; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.steps li::before { content: counter(step); width: 25px; aspect-ratio: 1; border-radius: 50%; color: #fff8e7; background: var(--burgundy); text-align: center; font-size: .8rem; font-weight: 800; line-height: 25px; }
.steps li span { grid-column: 2; color: var(--muted); font-size: .9rem; }
.rules-panel { margin-top: 30px; padding-block: 23px 0; border-top: 1px solid var(--line); }
.rules-panel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin-block: 14px; }
.rules-panel dt { font-weight: 750; }
.rules-panel dd { margin: 0; overflow-wrap: anywhere; }
.rules-panel h3 { margin-top: 18px; font-size: 1.04rem; }
.rules-panel :is(ul,ol) { padding-inline-start: 23px; }
.rules-panel li { margin-bottom: 6px; }
.footer { padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .81rem; }
.footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .wrap, .brandbar-inner { width: calc(100% - 32px); }
  .brandbar-inner { min-height: 58px; }
  .hero-grid { min-height: 234px; grid-template-columns: 1fr minmax(98px, 36%); gap: 9px; padding-block: 28px; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: -.09em; white-space: nowrap; }
  .hero-detail { margin-top: 14px; }
  .eyebrow { font-size: .8rem; letter-spacing: .1em; }
  .illustration img { width: 116%; }
  .illustration-disc { width: 87%; }
  .content { padding-block: 18px 40px; }
  .lookup-controls button { width: 100%; }
  .steps ol { grid-template-columns: 1fr; gap: 7px; }
  .steps li { min-height: unset; }
}
