:root {
  --navy: #0c3d70;
  --blue: #2e6be3;
  --ink: #1e2937;
  --muted: #78818f;
  --line: #e9ebf1;
  --surface: #ffffff;
  --canvas: #f3f4f9;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(26, 47, 82, 0.04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.ticker { overflow: hidden; background: #061b35; color: #f7fbff; font-size: 13px; white-space: nowrap; }
.ticker-track { display: flex; gap: 34px; width: max-content; min-height: 34px; align-items: center; padding: 0 20px; animation: ticker 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; }
.ticker-track b { color: #4ee994; font-weight: 800; }
.ticker-label i { width: 7px; height: 7px; border-radius: 50%; background: #22d980; box-shadow: 0 0 0 4px rgba(34, 217, 128, .1); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-35%); } }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(17, 33, 59, .05); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; align-items: center; gap: 32px; max-width: 1200px; min-height: 66px; margin: 0 auto; padding: 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: white; font-size: 22px; font-style: italic; font-weight: 900; }
.main-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 29px); flex: 1; color: #596273; font-size: 14px; }
.main-nav a { white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-picker { position: relative; }
.language-button, .language-menu { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: #677181; }
.language-button { padding: 9px 14px; font-size: 14px; }
.language-menu { position: absolute; top: calc(100% + 9px); inset-inline-end: 0; display: grid; min-width: 172px; max-height: min(65dvh, 26rem); padding: 6px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 38px rgba(22, 38, 67, .14); }
.language-menu[hidden] { display: none; }
.language-menu button { border: 0; border-radius: 8px; background: transparent; padding: 9px 10px; color: var(--ink); text-align: start; white-space: nowrap; }
.language-menu button:hover, .language-menu button[aria-pressed="true"] { background: #f3f6ff; color: var(--blue); }
.primary-button { border: 0; border-radius: 12px; background: var(--blue); color: white; font-weight: 700; box-shadow: 0 10px 18px rgba(46, 107, 227, .22); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button:hover { background: #235cd2; box-shadow: 0 12px 24px rgba(46, 107, 227, .3); transform: translateY(-2px); }
.nav-login { min-width: 74px; padding: 10px 18px; }

.shell { width: min(100% - 32px, 1168px); margin-right: auto; margin-left: auto; }
.news-area { padding-top: 42px; }
.news-carousel { position: relative; overflow: hidden; min-height: 480px; }
.news-slide { display: none; padding: 31px 32px 28px; border: 1px solid rgba(232, 235, 242, .9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.news-slide.is-active { display: block; animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.kicker, .eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.news-slide h1, .news-slide h2 { max-width: 760px; margin: 0; color: #222b36; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; letter-spacing: -.04em; }
.news-summary { max-width: 960px; margin: 10px 0 22px; color: #727b88; font-size: 16px; }
.news-slide img { width: 100%; height: 266px; border-radius: 14px; object-fit: cover; }
.text-link { border: 0; background: transparent; color: var(--blue); font-weight: 600; }
.news-slide .text-link { display: block; margin: 18px auto 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding-top: 24px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d1d5df; }
.carousel-dots button.is-active { background: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 227, .12); }

.campaign { padding: 104px 24px 85px; text-align: center; }
.campaign h2 { max-width: 820px; margin: 0 auto 17px; color: var(--navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.24; letter-spacing: -.05em; }
.campaign > p:not(.eyebrow) { margin: 0 auto 30px; color: #7b8390; }
.large-button { min-width: 152px; padding: 16px 28px; border-radius: 999px; font-size: 17px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { display: grid; justify-items: center; gap: 4px; padding: 26px 16px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 9px; border-radius: 50%; font-size: 24px; font-weight: 800; }
.stat-icon.gold { background: #fff4bd; color: #c99e00; }
.stat-icon.blue { background: #e4efff; color: var(--blue); }
.stat-icon.mint { background: #ddfaeb; color: #1d9a69; }
.stat-icon.green { background: #dffaea; color: #25a66d; }
.stat-card strong { color: var(--blue); font-size: 22px; }
.stat-card > span:last-child { color: #7a838e; font-size: 13px; }

.steps-card, .leaderboard-card, .reviews-card, .faq-card { margin-top: 64px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: #1e2835; font-size: 28px; line-height: 1.25; letter-spacing: -.04em; }
.section-heading p { margin: 9px 0 0; color: #7c8490; }
.centered { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { min-height: 178px; padding: 22px; border-radius: 14px; background: #f5f6fb; }
.step-number { display: block; margin-bottom: 9px; color: #dfe2ea; font-size: 42px; font-weight: 800; line-height: 1; }
.step-card h3 { margin: 0 0 7px; color: #26364a; font-size: 18px; }
.step-card p { margin: 0; color: #697483; font-size: 14px; line-height: 1.55; }
.row-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.row-heading .text-link { margin-top: 3px; white-space: nowrap; }
.section-note { font-size: 13px; }
.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: 35px 42px 1fr auto; align-items: center; gap: 12px; min-height: 72px; border-bottom: 1px solid #f0f1f5; }
.user-row:last-child { border-bottom: 0; }
.rank { color: #9da4ae; text-align: right; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #dce0e6; color: #526071; font-weight: 800; }
.avatar-dark { background: #0c3d70; color: white; }
.username { color: #3c4653; }
.score { color: #d3aa20; font-size: 14px; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
blockquote { margin: 0; padding: 22px; border: 1px solid #eff0f3; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(32, 48, 75, .03); }
blockquote span { color: #e8bd19; letter-spacing: 2px; }
blockquote p { margin: 13px 0 15px; color: #687382; font-size: 14px; font-style: italic; }
blockquote cite { color: #1e2835; font-size: 14px; font-style: normal; font-weight: 800; }
.faq-list { display: grid; }
.faq-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 19px 0; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; color: #2b3541; text-align: left; }
.faq-item:last-child { border-bottom: 0; }
.faq-item b { color: var(--blue); font-size: 20px; font-weight: 400; }
.faq-answer { display: none; grid-column: 1 / -1; color: #7b8490; font-size: 14px; }
.faq-item[aria-expanded="true"] .faq-answer { display: block; }
.faq-item[aria-expanded="true"] b { transform: rotate(45deg); }
.brands { padding: 64px 0 86px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-card { display: grid; place-items: center; gap: 10px; padding: 18px 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.brand-card img { width: min(160px, 100%); height: 50px; border-radius: 7px; object-fit: cover; }
.brand-card strong { color: #4a5562; font-size: 13px; }
.site-footer { padding: 48px 20px 34px; background: var(--navy); color: white; text-align: center; }
.site-footer h2 { margin: 0 0 18px; font-size: clamp(22px, 3vw, 30px); }
.site-footer p { margin: 0; color: #adbed2; font-size: 13px; }
.browser-help-link { margin-top: 12px; padding: 4px 8px; border: 0; background: transparent; color: #d3e0f1; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.browser-help-link:hover { color: white; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(360px, calc(100% - 44px)); padding: 13px 17px; border-radius: 12px; background: #17283f; color: white; box-shadow: 0 18px 36px rgba(12, 33, 61, .25); font-size: 14px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.auth-area, .member-area { display: flex; align-items: center; gap: 10px; }
.member-balance { color: var(--blue); font-size: 14px; font-weight: 700; white-space: nowrap; }
.member-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dbeafe; color: #2563eb; font-weight: 700; }
.member-logout { padding: 0; border: 0; background: transparent; color: #6b7280; font-size: 13px; }
.member-logout:hover { color: #2563eb; }
.auth-dialog, .content-dialog { position: fixed; max-height: calc(100dvh - 32px); margin: auto; padding: 32px; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 24px 55px rgba(15, 23, 42, .24); }
.auth-dialog::backdrop, .content-dialog::backdrop { background: rgba(0, 0, 0, .6); }
body:has(dialog[open]) { overflow: hidden; }
.login-dialog { width: min(90%, 384px); }
.register-dialog { width: min(90%, 448px); }
.auth-dialog.browser-dialog {
  width: min(calc(100% - 28px), 430px);
  max-width: none;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid #3a4a62;
  border-radius: 20px;
  background: #19263b;
  color: #f2f6fc;
  color-scheme: dark;
  text-align: center;
  box-shadow: 0 24px 66px rgba(5, 13, 25, .5);
}
.browser-dialog::backdrop { background: rgba(8, 14, 25, .68); }
.browser-dialog .dialog-close { color: #bdcbdc; }
.browser-dialog .dialog-close:hover { color: #fff; }
.browser-dialog-heading { margin-block: 4px 22px; }
.browser-dialog-mark {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
}
.browser-dialog h2 { margin: 0 0 8px; font-size: clamp(20px, 5vw, 23px); line-height: 1.3; }
.browser-dialog p { margin: 0; color: #c4d0df; font-size: 15px; line-height: 1.55; }
.browser-domain-box {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}
.browser-domain-box .auth-input {
  min-inline-size: 0;
  border-color: #465970;
  border-radius: 11px;
  background: #203149;
  color: #b6d6ff;
  font-family: ui-monospace, monospace;
  font-size: 15px;
  text-align: center;
  text-overflow: ellipsis;
}
.browser-domain-box .auth-input:focus { border-color: #91bfff; box-shadow: 0 0 0 2px #91bfff33; }
.browser-copy {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: #315fc9;
  color: #fff;
  padding: 9px 14px;
  font-weight: 700;
  line-height: 1.35;
}
.browser-copy:hover { background: #3b6bd8; }
.browser-dialog button:focus-visible { outline-color: #a7ccff; }
.browser-copy-status { margin-top: 8px; color: #a0e9d8; font-size: 14px; }
.content-dialog { width: min(90%, 720px); }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 18px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #9ca3af; font-size: 26px; font-weight: 400; line-height: 1; }
.dialog-close:hover { color: #4b5563; }
.login-title { margin: 0 0 24px; color: #1f2937; font-size: 20px; font-weight: 700; line-height: 28px; text-align: center; }
.modal-brand { margin-bottom: 24px; font-size: 20px; letter-spacing: -.5px; }
.modal-brand .brand-mark { background: #2563eb; }
.register-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 32px; }
.auth-description { margin: 0 0 24px; color: #6b7280; font-size: 14px; line-height: 20px; }
.auth-input { display: block; width: 100%; min-height: 46px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: white; color: #1f2937; font: inherit; font-size: 16px; line-height: 24px; outline: none; }
.auth-input::placeholder { color: #9ca3af; }
.auth-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.login-dialog .auth-input { margin-bottom: 12px; }
.login-dialog .auth-input[type="password"] { margin-bottom: 16px; }
.auth-field + .auth-field { margin-top: 16px; }
.auth-field label { display: block; margin-bottom: 4px; color: #374151; font-size: 14px; font-weight: 500; line-height: 20px; }
.auth-submit { width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 12px; background: #2563eb; color: white; font-size: 16px; font-weight: 700; line-height: 24px; }
.auth-submit:hover { background: #1d4ed8; }
.auth-submit:active { transform: scale(.99); }
.auth-submit:disabled { cursor: wait; opacity: .7; }
.register-dialog .auth-submit { margin-top: 24px; }
.auth-switch { margin: 16px 0 0; color: #6b7280; font-size: 14px; line-height: 20px; text-align: center; }
.register-dialog .auth-switch { margin-top: 20px; }
.auth-switch button { padding: 0; border: 0; background: transparent; color: #2563eb; font-size: inherit; font-weight: 700; }
.auth-switch button:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.content-dialog h2 { margin: 0 20px 24px 0; font-size: 24px; line-height: 1.35; }
.content-dialog > img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; }
.content-dialog > p { margin: 20px 0 0; color: #6b7280; }
button:focus-visible, a:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
section[id] { scroll-margin-top: 150px; }

@media (max-width: 980px) {
  .nav-wrap { gap: 16px; }
  .main-nav { order: 3; width: 100%; flex-basis: 100%; justify-content: space-between; gap: 10px; padding: 0 2px 12px; overflow-x: auto; }
  .site-header .nav-wrap { flex-wrap: wrap; padding-top: 10px; }
  .nav-actions { margin-inline-start: auto; }
}

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
}

@media (max-width: 560px) {
  .auth-dialog { padding: 28px 24px; }
  .member-area { gap: 6px; }
  .member-balance { font-size: 12px; }
  .content-dialog { padding: 28px 20px; }
  .shell { width: min(100% - 22px, 1168px); }
  .nav-wrap { padding-right: 11px; padding-left: 11px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 29px; height: 29px; font-size: 19px; }
  .language-button { padding: 8px 9px; font-size: 12px; }
  .nav-login { min-width: 60px; padding: 9px 10px; font-size: 13px; }
  .main-nav { font-size: 13px; }
  .news-area { padding-top: 22px; }
  .news-slide { padding: 22px 18px 24px; }
  .news-slide img { height: 190px; }
  .news-summary { font-size: 14px; }
  .campaign { padding: 74px 10px 64px; }
  .campaign h2 { font-size: 27px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 18px 8px; }
  .stat-card strong { font-size: 18px; }
  .stat-card > span:last-child { font-size: 11px; }
  .steps-card, .leaderboard-card, .reviews-card, .faq-card { margin-top: 30px; padding: 24px 18px; }
  .row-heading { display: block; }
  .row-heading .text-link { margin-top: 12px; padding: 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-card { padding: 12px 8px; }
  .brand-card img { height: 39px; }
  .site-footer { padding-right: 16px; padding-left: 16px; }
}

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