:root {
  color-scheme: light;
  --paper: #f4f1e6;
  --ink: #16382d;
  --muted: #526759;
  --line: #d9ddcf;
  --green: #184638;
  --lime: #d7ed94;
  --white: #fdfbf4;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid #986031; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 6px; left: 6px; z-index: 5; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; min-height: 72px; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px "Songti SC", "Noto Serif CJK SC", serif; white-space: nowrap; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--lime); font-size: 16px; letter-spacing: 0; }
nav { display: flex; gap: 25px; }
.nav-link, .text-button { border: 0; background: transparent; color: var(--muted); font-size: 14px; padding: 10px 0; }
.nav-link[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px var(--ink); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.outline, .solid, .hero-link { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 17px; border: 1px solid var(--ink); color: var(--ink); font-weight: 650; background: transparent; font-size: 14px; }
.account { margin-left: auto; white-space: nowrap; }
.solid { background: var(--green); color: white; }
.outline:hover, .solid:hover { box-shadow: inset 0 0 0 1px currentColor; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 218px; gap: 30px; overflow: hidden; margin-top: 27px; min-height: 327px; padding: 47px 54px; background: #103a30; color: var(--white); }
.hero-copy, .edition { position: relative; z-index: 1; }
.eyebrow, .kicker, .edition-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.eyebrow { color: var(--lime); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
h1, h2 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
h1 { margin-top: 20px; font-size: clamp(40px, 6.3vw, 77px); font-weight: 900; line-height: 1.08; letter-spacing: -.04em; }
.hero p { margin: 19px 0 24px; color: #dde8d8; font-size: 15px; line-height: 1.7; }
.hero-link { gap: 18px; color: #122c1e; background: var(--lime); border-color: var(--lime); }
.hero-link:hover { background: #e6f6b7; }
.pitch { position: absolute; top: -30%; right: -4%; width: 59%; height: 159%; transform: rotate(-17deg); border: 1px solid #75aa8352; opacity: .75; background: repeating-linear-gradient(90deg, #77af8120 0 12.5%, transparent 12.5% 25%); }
.pitch::before { content: ""; position: absolute; left: 50%; height: 100%; border-left: 1px solid #75aa8366; }
.pitch i:first-child { position: absolute; width: 28%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #75aa8380; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pitch i:nth-child(2), .pitch i:nth-child(3) { position: absolute; width: 15%; height: 42%; top: 29%; border: 1px solid #75aa8380; }
.pitch i:nth-child(3) { right: 0; }
.edition { align-self: center; display: grid; gap: 4px; padding: 19px 20px; border: 1px solid #9bbfa080; background: #143b32eb; color: #e2eedb; font-size: 13px; }
.edition-label { color: var(--lime); }
.edition strong { color: var(--white); font: 700 49px Georgia, serif; font-variant-numeric: tabular-nums; }
.edition hr { width: 100%; border: 0; border-top: 1px solid #92ad9166; margin: 9px 0 4px; }
.board { padding-top: 38px; scroll-margin-top: 16px; }
.board-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.kicker { color: var(--muted); }
h2 { margin-top: 6px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.board-heading p, .scope, .notice, .board-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.board-views { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.market-handoff { scroll-margin-top: 16px; }
.market-handoff a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 14px; }
.filter { flex-shrink: 0; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 11px; font-size: 12px; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.market-games { margin-top: 14px; }
.game { min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 17px; }
.game.is-sample { border-color: #71866d; }
.game-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.game-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.teams { display: grid; gap: 7px; margin: 12px 0 13px; font-weight: 700; font-size: 16px; }
.teams div { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.teams small { font-size: 11px; color: var(--muted); font-weight: 400; flex: none; }
.teams strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.game-foot { padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.game-foot p { margin: 7px 0 0; line-height: 1.55; }
.game-foot .direction { color: var(--ink); font-weight: 700; }
.badge { display: inline-block; padding: 3px 6px; margin-left: 5px; color: #284f32; background: #e3edcf; font-size: 10px; }
.prob-bar { display: flex; gap: 2px; overflow: hidden; margin: 9px 0 5px; height: 5px; background: #e5e9d9; }
.prob-bar span:nth-child(1) { background: #245748; }
.prob-bar span:nth-child(2) { background: #799375; }
.prob-bar span:nth-child(3) { background: #9e6137; }
.prob-labels { display: flex; justify-content: space-between; gap: 4px; font-variant-numeric: tabular-nums; }
.game-foot .text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; padding: 0; }
.review-summary { margin-top: 16px; background: #e3ead8; padding: 13px 16px; font-size: 14px; line-height: 1.6; }
.board-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.board-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
#board-retry { min-height: 48px; }
#board-retry[aria-disabled="true"] { cursor: progress; }
progress.loading-spinner:indeterminate::-webkit-progress-bar { display: none; background: none; }
progress.loading-spinner:indeterminate::-webkit-progress-value { display: none; background: none; }
progress.loading-spinner:indeterminate::-moz-progress-bar { display: none; background: none; }
progress.loading-spinner:indeterminate {
  appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: conic-gradient(var(--ink) 120deg, transparent 0) var(--line);
  background-origin: border-box;
  animation: board-spin 1.5s linear infinite;
}
@supports (background-clip: border-area) {
  progress.loading-spinner:indeterminate { background-clip: border-area; }
}
@supports not (background-clip: border-area) {
  progress.loading-spinner:indeterminate {
    border: 0;
    mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  }
}
@keyframes board-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  progress.loading-spinner:indeterminate { animation-duration: 6s; }
}
@media (forced-colors: active) {
  progress.loading-spinner:indeterminate {
    forced-color-adjust: none;
    background: conic-gradient(CanvasText 120deg, transparent 0) Canvas;
  }
}
.scope { margin-top: 14px; }
.member-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 35px 0; background: #e3ead7; border: 1px solid #c9d5bd; padding: 26px; }
.member-banner p { color: var(--muted); line-height: 1.6; margin: 7px 0 0; }
.member-banner button { flex-shrink: 0; }
.footer { display: flex; align-items: center; gap: 18px; padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a:last-child { margin-left: auto; }
dialog { width: min(440px, calc(100% - 30px)); max-height: calc(100% - 30px); overflow: auto; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 25px; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: #142c24b5; overflow: hidden; overscroll-behavior: contain; }
.dialog-close { display: block; margin: 0; }
.close { position: absolute; top: 5px; right: 5px; min-width: 48px; min-height: 48px; font-size: 24px; border: 0; background: transparent; color: var(--ink); padding: 0 5px; }
dialog p { line-height: 1.55; }
form { display: grid; gap: 10px; margin-top: 16px; }
label { display: grid; gap: 4px; font-size: 13px; }
input { width: 100%; min-height: 48px; font-size: max(1rem, 1em); padding: 10px; border: 1px solid #869c8a; background: white; color: var(--ink); }
input:user-invalid { border-color: #9e3a22; outline: 1px solid #9e3a22; }
#credentials { gap: 8px; }
#credentials button { min-height: 48px; }
#credentials .field-hint { margin: -4px 0 0; min-height: 0; }
dialog .text-button { text-decoration: underline; }
.notice { min-height: 20px; margin-top: 10px; }
@media (max-width: 820px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { padding: 33px; } }
@media (max-width: 560px) {
  .shell { width: calc(100% - 30px); }
  .mast-inner { min-height: 62px; gap: 12px; }
  .brand { font-size: 19px; gap: 5px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }
  nav { gap: 10px; }
  .nav-link { font-size: 12px; }
  .account { padding: 0 8px; min-height: 34px; font-size: 12px; }
  .hero { margin-top: 15px; padding: 23px; grid-template-columns: 1fr; gap: 18px; }
  .pitch { width: 86%; right: -27%; }
  .hero p { margin: 13px 0 18px; font-size: 14px; }
  .edition { display: flex; gap: 6px; padding: 8px; align-items: baseline; flex-wrap: wrap; }
  .edition strong { font-size: 22px; }
  .edition hr { display: none; }
  .edition span:last-child { margin-left: auto; }
  .board { padding-top: 25px; }
  .board-heading { align-items: start; flex-direction: column; gap: 7px; }
  .filters { margin-top: 12px; }
  .games { grid-template-columns: minmax(0, 1fr); }
  .member-banner { flex-direction: column; align-items: start; gap: 12px; padding: 18px; }
  .footer { gap: 10px; font-size: 12px; }
}
.order-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.order-heading, .order-row > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-heading h3 { margin: 0; font-size: 16px; }
#orders { max-height: 235px; overflow: auto; color: var(--muted); font-size: 13px; }
.order-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-row strong { color: var(--ink); }
.order-row p { margin: 4px 0; }
.order-row a { text-decoration: underline; }
.order-row code { font-size: 11px; overflow-wrap: anywhere; }
.public-page { max-width: 1000px; padding-block: 42px; }
.public-page.market-page { max-width: 1120px; }
.public-page h1 { margin: 14px 0 22px; font-size: clamp(32px, 5vw, 56px); }
.public-page h2 { margin-block: 28px 12px; }
.public-page p, .public-page li { line-height: 1.8; }
.public-page { overflow-wrap: anywhere; }
.public-page a:not(.solid) { text-decoration: underline; text-underline-offset: 3px; }
.public-page .byline { color: var(--muted); font-size: 13px; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 10px; padding-left: 20px; }
.footer { flex-wrap: wrap; }
@media (pointer: coarse) {
  button, .hero-link, .footer a, nav a, .game-foot .text-button { min-height: 48px; }
  .footer a, nav a, .game-foot .text-button { display: inline-flex; align-items: center; }
  .filter, .account, .market-nav a { min-width: 48px; }
  .market-nav a { justify-content: center; }
}
@media (max-width: 380px) {
  .mast-inner { flex-wrap: wrap; gap: 6px 12px; padding-block: 8px; }
  .mast-inner nav:not(.market-nav) { order: 3; width: 100%; justify-content: space-between; }
}
