
:root {
  --red: #ef4a3c;
  --red-dark: #dc382e;
  --green: #1fa971;
  --ink: #202129;
  --muted: #737783;
  --line: #eceef2;
  --surface: #ffffff;
  --bg: #f6f7fb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 56px; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 800; }
.brand-mark, footer strong span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff6555, #e92e26); box-shadow: 0 8px 18px rgba(239,74,60,.2); }
.help-button { border: 1px solid #ebecef; border-radius: 11px; background: #fff; color: var(--red); padding: 10px 16px; text-decoration: none; font-size: 14px; }

.compact-shell { padding-bottom: 42px; }
.entry-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; margin-bottom: 24px; }
.simple-hero, .quick-card { min-height: 440px; border-radius: 28px; box-shadow: 0 16px 46px rgba(36,38,50,.07); }
.simple-hero { padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 5% 5%,rgba(255,190,104,.22),transparent 32%),radial-gradient(circle at 95% 10%,rgba(44,185,130,.14),transparent 34%),linear-gradient(145deg,#fff,#fff9f6 62%,#f1fbf6); }
.simple-hero h1 { margin: 0; max-width: 510px; font-size: clamp(42px,5vw,64px); line-height: 1.08; letter-spacing: -.045em; }
.simple-hero h1 em { display: block; color: var(--red); font-style: normal; }
.simple-hero > p { max-width: 520px; margin: 22px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.live-line { display: flex; align-items: center; gap: 18px; color: #6d7079; font-size: 12px; }
.live-line span { display: flex; align-items: center; gap: 8px; }
.live-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e6f7ef; }
.live-line b { color: #9a9da7; font-weight: 600; }
.quick-card { padding: 34px 36px 28px; background: #fff; border: 1px solid rgba(32,33,41,.04); }
.quick-card.ready { box-shadow: 0 16px 46px rgba(31,169,113,.09); }
.quick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.quick-head > span { color: var(--red); font-size: 12px; font-weight: 800; }
.quick-card.ready .quick-head > span { color: var(--green); }
.quick-head button { border: 0; border-radius: 9px; padding: 8px 11px; color: #898c96; background: #f4f5f7; font-size: 11px; }
.quick-card > h2 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.quick-card > p { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.claim-primary { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg,#23b47d,#16885c); box-shadow: 0 12px 26px rgba(31,169,113,.2); font-weight: 800; }
.claim-primary span { font-size: 21px; }
.text-action { width: 100%; margin-top: 11px; border: 0; background: transparent; color: #858893; font-size: 12px; }
.text-action:hover { color: var(--red); }
.quick-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.quick-form .input-row { height: 50px; }
.quick-form .primary-button { height: 54px; }
.quick-steps { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: #858994; font-size: 11px; }
.quick-steps span { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.quick-steps b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e9f8f1; font-size: 10px; }
.compact-queue { margin-top: 0; }
.compact-empty { min-height: 130px; }
.simple-help { margin-top: 24px; padding: 28px 30px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; border-radius: 22px; background: #202129; color: #fff; }
.simple-help > div > span { color: #f3bd55; font-size: 11px; font-weight: 800; }
.simple-help h2 { margin: 6px 0 0; font-size: 24px; }
.simple-help ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.simple-help li { display: flex; align-items: center; gap: 10px; }
.simple-help li > b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; color: #202129; background: #f3bd55; }
.simple-help li span { display: grid; gap: 3px; }
.simple-help li strong { font-size: 12px; }
.simple-help li small { color: #999ca7; font-size: 10px; line-height: 1.45; }
.compact-notice { margin-bottom: 10px; }
.hero { min-height: 370px; position: relative; display: grid; grid-template-columns: 1.28fr 1fr; align-items: center; gap: 40px; padding: 50px 44px 64px; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 4% 7%, rgba(255,190,104,.2), transparent 27%), radial-gradient(circle at 94% 8%, rgba(44,185,130,.16), transparent 31%), linear-gradient(135deg,#fff 35%,#fff9f6 67%,#f1fbf6); box-shadow: 0 20px 60px rgba(36,38,50,.07); }
.hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 44px solid rgba(239,74,60,.05); left: -110px; bottom: -115px; }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: clamp(44px,5.25vw,68px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 24px 0; color: var(--muted); line-height: 1.85; }
.hero-promise { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px 11px 10px; border: 1px solid #f2d887; border-radius: 15px; background: linear-gradient(120deg,#fff8df,#ffe9a6); }
.hero-promise > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #f0ae3a; font-weight: 900; }
.hero-promise div { display: grid; gap: 2px; }
.hero-promise small { color: #9a792e; font-size: 11px; font-weight: 800; }
.hero-promise strong { font-size: 15px; }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 22px 45px rgba(36,38,50,.09); backdrop-filter: blur(10px); }
.hero-card small { color: var(--green); font-weight: 800; }
.hero-card h2 { margin: 12px 0; font-size: 22px; line-height: 1.4; }
.hero-card p { color: var(--muted); line-height: 1.75; margin: 0 0 20px; font-size: 14px; }
.tag-row { display: flex; gap: 9px; flex-wrap: wrap; }
.tag-row span { padding: 7px 11px; border-radius: 9px; background: #eaf8f1; color: #21895f; font-size: 12px; font-weight: 700; }
.stats-card { width: 560px; min-height: 90px; margin: -29px auto 34px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; color: #fff; background: #202129; border-radius: 20px; box-shadow: 0 18px 36px rgba(25,27,35,.18); }
.stats-card div { display: grid; place-items: center; align-content: center; gap: 3px; }
.stats-card div + div { border-left: 1px solid rgba(255,255,255,.09); }
.stats-card strong { font-size: 27px; }
.stats-card span { color: #92949e; font-size: 12px; }
.available-card, .panel, .queue-section, .my-team-card { background: #fff; border: 1px solid rgba(32,33,41,.035); box-shadow: 0 12px 36px rgba(36,38,50,.05); }
.available-card { border-radius: 23px; padding: 25px 30px 29px; margin-bottom: 24px; }
.section-heading, .queue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading > div, .queue-head > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2, .queue-head h2 { margin: 0; font-size: 21px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e9f8f1; }
.section-heading b { min-width: 23px; padding: 4px 7px; border-radius: 999px; background: #fff0ee; color: var(--red); font-size: 11px; text-align: center; }
.section-heading > button { border: 0; border-radius: 9px; padding: 8px 12px; background: #f5f5f8; color: var(--muted); font-size: 12px; }
.available-card > p { margin: 15px 0 20px; color: var(--muted); font-size: 13px; }
.available-action { width: 100%; min-height: 64px; border: 0; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: #cc392f; background: #fff0ee; text-align: left; }
.available-action.ready { color: #147e55; background: #e9f8f1; }
.available-action span { display: grid; gap: 3px; }
.available-action strong { font-size: 14px; }
.available-action small { opacity: .75; }
.available-action b { font-size: 22px; }
.my-team-card { border-radius: 20px; margin-bottom: 24px; padding: 19px 22px; display: flex; align-items: center; gap: 15px; }
.my-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e9f8f1; color: var(--green); font-size: 24px; }
.my-copy { display: grid; gap: 2px; margin-right: auto; }
.my-copy small { color: var(--green); font-weight: 800; }
.my-copy strong { letter-spacing: .06em; }
.my-copy span { color: var(--muted); font-size: 12px; }
.my-team-card button { border: 0; border-radius: 11px; padding: 11px 15px; color: #fff; background: var(--green); font-size: 12px; font-weight: 800; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.panel { min-height: 356px; border-radius: 24px; padding: 30px; }
.panel-title { min-height: 32px; display: flex; align-items: center; gap: 12px; }
.panel-title h2 { margin: 0; font-size: 21px; }
.panel-title i { margin-left: auto; color: var(--green); font-size: 11px; font-style: normal; font-weight: 700; }
.mode-tag { border-radius: 8px; padding: 6px 9px; font-size: 11px; font-weight: 800; }
.mode-tag.red { color: var(--red); background: #fff0ee; }
.mode-tag.dark { color: #fff; background: #202129; }
.panel > p { color: var(--muted); line-height: 1.75; font-size: 13px; min-height: 46px; }
.panel form label { display: block; margin: 14px 0 8px; font-size: 12px; font-weight: 700; }
.input-row { height: 46px; display: flex; align-items: center; border: 1px solid #e6e8ed; border-radius: 12px; overflow: hidden; }
.input-row:focus-within { border-color: rgba(31,169,113,.6); box-shadow: 0 0 0 3px rgba(31,169,113,.09); }
.input-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 14px; color: var(--ink); font-weight: 700; }
.input-row input::placeholder { color: #b5b7bf; font-weight: 400; }
.ocr-button { height: 100%; border: 0; padding: 0 12px; color: var(--green); background: transparent; font-size: 12px; font-weight: 800; }
.ocr-note { display: block; margin: 7px 0 13px; color: #9699a4; font-size: 10px; }
.primary-button { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg,#f2594c,#e53b31); color: #fff; box-shadow: 0 10px 24px rgba(239,73,61,.2); font-weight: 800; }
.primary-button span { font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 16px; color: #858994; font-size: 11px; }
.steps span { display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; }
.steps b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e9f8f1; color: var(--green); font-size: 10px; }
.match-button { width: 100%; min-height: 94px; margin: 20px 0 34px; padding: 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 0; border-radius: 16px; color: #747781; background: #eef0f3; text-align: left; }
.match-button.is-ready { color: #147e55; background: #e9f8f1; }
.match-button .bolt { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.7); }
.match-button > span:nth-child(2) { display: grid; gap: 4px; }
.match-button small { font-size: 11px; }
.match-button > b { font-size: 20px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; transform: translateX(-50%); min-width: 290px; max-width: calc(100vw - 32px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px 13px 18px; color: #fff; background: #30313a; border-radius: 13px; box-shadow: 0 15px 40px rgba(0,0,0,.22); font-size: 13px; }
.toast.good { background: #168559; }
.toast button { border: 0; color: inherit; background: transparent; font-size: 18px; }
.queue-section { border-radius: 24px; padding: 31px 30px 18px; }
.queue-head b { color: var(--red); font-size: 11px; }
.queue-head p { margin: 4px 0 0; color: #9a9da7; font-size: 11px; }
.queue-list { margin-top: 18px; }
.queue-item { min-height: 76px; display: grid; grid-template-columns: 40px 170px 1fr auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.queue-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff0ee; color: var(--red); font-weight: 900; }
.queue-code { display: grid; gap: 3px; }
.queue-code strong { letter-spacing: .07em; }
.queue-code small, .queue-desc { color: #999ca6; font-size: 11px; }
.status-pill { min-width: 67px; padding: 6px 9px; border-radius: 999px; text-align: center; font-size: 10px; font-style: normal; font-weight: 800; }
.status-pill.waiting { color: #9a792e; background: #fff7dc; }
.status-pill.claimed { color: #9a792e; background: #fff3ca; }
.status-pill.success { color: #168559; background: #e9f8f1; }
.privacy-line { padding: 16px 0 2px; border-top: 1px solid var(--line); color: #9a9da7; text-align: center; font-size: 11px; }
.empty-list { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 7px; color: #979aa5; }
.empty-list span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #fff0ee; color: var(--red); font-weight: 900; }
.empty-list p { margin: 0; font-size: 12px; }
.notice { margin: 24px 0 26px; padding: 20px 24px; display: flex; align-items: center; gap: 15px; border: 1px solid #f7e9b3; border-radius: 18px; color: #705a1b; background: #fff9e8; }
.notice > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f7d467; }
.notice h3, .notice p { margin: 0; }
.notice h3 { font-size: 14px; }
.notice p { margin-top: 4px; font-size: 12px; line-height: 1.6; }
footer { min-height: 74px; padding: 12px 4px; display: flex; align-items: center; justify-content: space-between; color: #999ca6; font-size: 11px; }
footer strong { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; }
footer strong span { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.intro-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(27,28,34,.58); backdrop-filter: blur(4px); }
.intro-card { width: min(330px,100%); position: absolute; top: 83px; right: max(24px,calc((100vw - 1120px)/2)); padding: 25px 22px 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.intro-card::before { content: ""; position: absolute; top: -9px; right: 27px; width: 18px; height: 18px; transform: rotate(45deg); background: #fff; }
.intro-card > button:first-child, .modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f2f5; color: #8b8e98; font-size: 20px; }
.intro-card > small, .help-modal > small, .claim-modal > small { color: var(--red); font-weight: 800; }
.intro-card h2 { margin: 9px 0; font-size: 21px; }
.intro-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.intro-card .primary-button { height: 50px; }
.help-modal, .claim-modal { width: min(720px,100%); max-height: calc(100vh - 36px); overflow: auto; position: relative; padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.help-modal > h2, .claim-modal > h2 { margin: 7px 0 22px; font-size: 25px; }
.help-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.help-paths article { padding: 22px; border-radius: 18px; background: #fff8f7; }
.help-paths article + article { background: #f2faf6; }
.help-paths span { color: var(--red); font-size: 11px; font-weight: 800; }
.help-paths article + article span { color: var(--green); }
.help-paths h3 { margin: 8px 0; font-size: 17px; }
.help-paths p, .help-paths li { color: var(--muted); font-size: 12px; line-height: 1.7; }
.help-paths ol { margin: 13px 0 0; padding-left: 19px; }
.claim-modal { width: min(430px,100%); text-align: center; }
.success-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 27px; font-weight: 900; }
.claim-modal > small { color: var(--green); }
.claim-modal > h2 { margin-bottom: 15px; }
.code-copy { width: 100%; border: 1px dashed #f0b5af; border-radius: 16px; padding: 17px; display: grid; gap: 3px; color: var(--red); background: #fff7f6; }
.code-copy strong { font-size: 27px; letter-spacing: .13em; }
.code-copy span { font-size: 10px; }
.claim-modal ol { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.claim-modal li { color: var(--muted); font-size: 13px; }
.claim-modal li b { width: 24px; height: 24px; margin-right: 8px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--green); background: #e9f8f1; }
.claim-modal > p { color: #999ca6; font-size: 11px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .page-shell { width: min(100%,430px); padding: 0 10px 36px; }
  .topbar { height: 64px; padding: 0 4px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .help-button { border: 0; padding: 8px 4px; color: #777b86; background: transparent; }
  .compact-shell { padding-bottom: 28px; }
  .entry-shell { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .simple-hero, .quick-card { min-height: auto; border-radius: 22px; }
  .simple-hero { padding: 26px 20px 24px; }
  .simple-hero h1 { font-size: 38px; line-height: 1.1; }
  .simple-hero > p { margin: 16px 0 18px; font-size: 13px; line-height: 1.75; }
  .live-line { justify-content: space-between; gap: 8px; font-size: 10px; }
  .quick-card { padding: 21px 18px 18px; }
  .quick-card > h2 { font-size: 23px; }
  .quick-card > p { margin: 8px 0 18px; line-height: 1.65; }
  .quick-steps { margin-top: 17px; padding-top: 15px; font-size: 9px; }
  .quick-steps b { width: 17px; height: 17px; }
  .simple-help { padding: 22px 18px; grid-template-columns: 1fr; gap: 18px; border-radius: 20px; }
  .simple-help h2 { font-size: 21px; }
  .simple-help ol { grid-template-columns: 1fr; gap: 14px; }
  .simple-help li strong { font-size: 13px; }
  .simple-help li small { font-size: 11px; }
  .compact-notice { margin-top: 16px; }
  .hero { min-height: auto; display: block; padding: 30px 24px 82px; border-radius: 28px; }
  .hero h1 { font-size: clamp(40px,12vw,51px); line-height: 1.08; }
  .eyebrow { display: none; }
  .hero-copy > p { margin: 23px 0 20px; font-size: 14px; line-height: 2; }
  .hero-promise { width: 100%; }
  .hero-card { margin-top: 14px; padding: 20px; border-radius: 19px; }
  .hero-card h2 { font-size: 22px; }
  .stats-card { width: calc(100% - 20px); min-height: 90px; margin: -57px auto 35px; border-radius: 18px; }
  .available-card { padding: 22px 17px; border-radius: 21px; }
  .section-heading h2 { font-size: 19px; }
  .available-action { padding: 13px 15px; }
  .my-team-card { padding: 16px; align-items: center; }
  .my-team-card button { max-width: 98px; }
  .action-grid { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 23px 19px; border-radius: 21px; }
  .panel-title { flex-wrap: wrap; }
  .panel-title h2 { font-size: 20px; }
  .panel-title i { font-size: 10px; }
  .panel > p { min-height: 0; }
  .ocr-button { padding: 0 8px; }
  .match-button { margin-bottom: 24px; }
  .steps { font-size: 10px; }
  .queue-section { padding: 23px 17px 12px; border-radius: 21px; }
  .queue-head { align-items: center; }
  .queue-head p { max-width: 110px; text-align: right; line-height: 1.5; }
  .queue-item { grid-template-columns: 36px 1fr auto; gap: 10px; padding: 10px 0; }
  .queue-desc { display: none; }
  .status-pill { min-width: 62px; padding-inline: 7px; }
  .notice { padding: 17px; align-items: flex-start; }
  footer { display: grid; justify-items: center; gap: 10px; text-align: center; }
  footer p { margin: 0; line-height: 1.7; }
  .intro-card { top: 76px; right: 14px; left: 14px; width: auto; }
  .help-modal { padding: 29px 19px 20px; }
  .help-paths { grid-template-columns: 1fr; }
  .claim-modal { padding: 31px 20px 22px; }
  .code-copy strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
