:root {
  color-scheme: light;
  --paper: #f5f2e9; --sheet: #fffdf6; --ink: #172e43; --navy: #1b344b;
  --muted: #536575; --line: #bbbcb2; --red: #bd442c; --bright: #ec7551;
  --serif: "STIX Two Text", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", "Consolas", monospace;
  font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #b34b13; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: -80px; left: 8px; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #cdcdc0; }
.mast-inner, .brand, .masthead nav, .site-foot, .pass-foot, .pass-meta, .actions, .sheet-top,
.screen-title, .board-line, .board-head, .nick-info { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; gap: 12px; min-height: 84px; }
.brand { gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); line-height: 1.2; font-size: 17px; font-weight: 800; }
.brand small { font: 12px/1.35 Georgia, serif; letter-spacing: .035em; margin-top: 4px; }
.mark { display: inline-block; position: relative; width: 34px; height: 36px; }
.mark::before, .mark::after, .mark i { position: absolute; display: block; content: ""; }
.mark::before { width: 4px; height: 32px; background: var(--ink); bottom: 0; left: 3px; }
.mark::after { width: 26px; height: 17px; background: var(--ink); left: 8px; top: 3px; clip-path: polygon(0 0,100% 16%,72% 55%,100% 99%,0 86%); }
.mark i:first-child { width: 4px; height: 24px; background: var(--red); left: 0; top: 10px; transform: rotate(-17deg); transform-origin: bottom; }
.mark i:last-child { width: 17px; height: 2px; background: var(--ink); left: 0; bottom: 0; }
.masthead nav { align-self: stretch; gap: 36px; }
.masthead nav a { position: relative; display: grid; align-items: center; text-decoration: none; font-size: 14px; font-weight: 650; }
.masthead nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: var(--red); }
.masthead nav a:hover, .site-foot a:hover, .text-btn:hover { color: var(--red); }
main { flex: 1 0 auto; padding-block: clamp(28px,5vw,63px) clamp(38px,5vw,62px); }
main:focus, h1[tabindex]:focus { outline: none; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); }
.delegate-pass { position: relative; isolation: isolate; background: var(--sheet); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 0 5px 0 -2px var(--paper), 0 6px 0 -2px #b6b7aa; }
.pass-face { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--sheet); border-radius: 4px 4px 0 0; }
.face-copy { position: relative; z-index: 1; padding: clamp(35px,4.4vw,62px); width: 55%; }
.pass-label { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(19px,2.6vw,36px); color: #e4d5b8; font-size: 14px; font-weight: 650; letter-spacing: .13em; }
.pass-label::before { content: ""; width: 23px; height: 3px; background: var(--bright); }
.face-copy h1 { font-size: clamp(53px,6vw,88px); font-weight: 850; line-height: 1.09; letter-spacing: .025em; }
.face-copy h1 span { display: block; }
.face-copy p { margin-top: clamp(17px,2.2vw,30px); max-width: 26em; font-size: 16px; line-height: 1.8; color: #f1efdf; }
.face-copy p span { display: inline-block; }
.globe { width: 56%; height: 111%; object-fit: contain; position: absolute; z-index: 0; right: -1%; top: -5%; pointer-events: none; }
.pass-foot { position: relative; justify-content: space-between; gap: 24px; padding: 26px clamp(25px,4.4vw,62px); border-top: 2px dashed #a6aaa2; }
.pass-foot::before, .pass-foot::after { position: absolute; content: ""; top: -11px; width: 10px; height: 20px; background: var(--paper); border: 1px solid var(--ink); }
.pass-foot::before { left: -1px; border-left: 0; border-radius: 0 20px 20px 0; }
.pass-foot::after { right: -1px; border-right: 0; border-radius: 20px 0 0 20px; }
.pass-meta { gap: clamp(15px,3vw,40px); }
.meta-item { display: flex; flex-direction: column; }
.meta-item + .meta-item { border-left: 1px solid #c3c7bd; padding-left: clamp(15px,3vw,40px); }
.meta-item small, .board-head, .field-hint, .help, .rule p { font-size: 13px; color: var(--muted); }
.meta-item b { font-size: 19px; line-height: 1.4; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 48px; padding: 10px 24px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.4; }
.btn.primary { color: #fffdf8; background: var(--red); }
.btn.primary:hover { background: #a93421; }
.btn.secondary { background: transparent; border-color: #8d999e; }
.btn.secondary:hover { border-color: var(--ink); background: #edece3; }
.btn:disabled, .btn.primary:disabled { background: #d8d9d0; color: #525a58; border-color: transparent; }
.chev { display: inline-block; width: 9px; height: 9px; border-style: solid; border-width: 1.8px 1.8px 0 0; transform: rotate(45deg); }
.rules { margin-top: clamp(34px,4vw,52px); }
.rules h2 { font-size: 25px; margin-bottom: 17px; }
.rule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; border-top: 1px solid #a9aea8; }
.rule { padding-top: 16px; }
.rule strong { font-size: 15px; font-weight: 720; }
.rule p { margin-top: 3px; line-height: 1.75; }
.draw-mix { display: block; margin-top: .2em; }
.draw-mix span { display: inline-block; }
.site-foot { justify-content: space-between; padding-block: 16px max(22px,env(safe-area-inset-bottom)); border-top: 1px solid #c3c5ba; color: var(--muted); font-size: 12px; }
.site-foot a { text-decoration: none; padding: 8px 0 8px 10px; }
.notice:empty { display: none; }
.notice:not(:empty) { margin-top: 14px; border-left: 3px solid var(--red); padding: 8px 12px; color: #842c1d; background: #f9e8df; font-size: 14px; overflow-wrap: anywhere; }
.text-btn { border: 0; background: transparent; color: var(--ink); font-size: 14px; text-underline-offset: 4px; padding: 9px 1px; }
.text-btn:disabled { color: #7c8786; }
.inner { max-width: 740px; margin-inline: auto; }
.sheet-top { justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.sheet-top .section-name { font-size: 14px; font-weight: 650; }
.sheet-top .section-meta { font: 500 14px/1.5 var(--mono); color: var(--muted); }
.progress { display: flex; gap: 5px; margin-bottom: 21px; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: #d1d5cd; }
.progress i.done { background: var(--ink); }.progress i.here { background: var(--red); }
.sheet { background: var(--sheet); border: 1px solid #a5afa9; border-top: 4px solid var(--ink); border-radius: 3px; padding: clamp(22px,4.5vw,50px); }
.category { display: inline-block; color: var(--red); font-weight: 700; font-size: 14px; margin-bottom: 13px; }
.question { font-size: clamp(23px,3vw,35px); line-height: 1.5; letter-spacing: .005em; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 25px 0 0; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.option { position: relative; display: flex; align-items: center; gap: 15px; cursor: pointer; padding: 13px 16px; border: 1px solid #c4cac3; border-radius: 3px; background: #fcfaf3; min-height: 53px; line-height: 1.55; overflow-wrap: anywhere; }
.option:hover { border-color: #72858b; }
.option.picked { background: #e7ede9; border-color: var(--ink); box-shadow: inset 3px 0 var(--ink); }
.option input:focus-visible + .opt-mark { outline: 3px solid var(--red); outline-offset: 3px; }
.opt-mark { flex: 0 0 auto; display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #adb9b7; border-radius: 50%; color: var(--muted); font: 14px/1 var(--mono); }
.picked .opt-mark { border-color: var(--ink); background: var(--ink); color: var(--sheet); }
.actions { gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 23px; }
.actions.spread { justify-content: space-between; }
.screen-title { justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.screen-title h1, .submit-title { font-size: clamp(30px,4.3vw,48px); line-height: 1.2; }
.screen-title p, .intro { margin-top: 9px; color: var(--muted); }
.nick-label { display: block; margin: 25px 0 6px; font-weight: 700; }
.nick { width: 100%; height: 52px; border: 1px solid #99a6a5; border-radius: 3px; background: #fff; padding: 8px 14px; font-size: 17px; }
.nick-info { justify-content: space-between; gap: 10px; margin-top: 6px; }
.result-hero { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 32px; color: var(--sheet); background: var(--navy); border-radius: 4px; padding: clamp(25px,4.2vw,46px); }
.result-hero h1 { font-size: clamp(27px,3.4vw,42px); line-height: 1.4; }.result-hero p { color: #f0e6d1; font-size: 14px; margin-top: 4px; }
.score { flex-shrink: 0; display: flex; align-items: baseline; gap: 7px; line-height: 1; border-right: 1px solid #6c7c86; padding-right: clamp(17px,3vw,36px); }
.score b { font: 72px/1 Georgia,serif; color: #f9e4b9; }.score span { font: 23px/1.4 Georgia,serif; color: #edeadd; }
.review { margin-top: 34px; }.review h2 { font-size: 25px; margin: 0 0 14px; }
.review details { border-top: 1px solid #bbc2b9; }
.review details:last-of-type { border-bottom: 1px solid #bbc2b9; }
.review summary { display: grid; grid-template-columns: 2em 1fr 1em; gap: 13px; align-items: baseline; cursor: pointer; list-style: none; padding: 18px 3px; font-weight: 650; font-size: 16px; }
.review summary::-webkit-details-marker { display: none; }
.review summary::after { content: "+"; font: 21px/1 var(--mono); color: var(--muted); }
.review details[open] summary::after { content: "−"; }
.verdict { font: 600 13px/1.7 var(--sans); color: #356052; white-space: nowrap; }.verdict.wrong { color: #a13b27; }
.explain { padding: 0 0 20px; margin-left: 48px; font-size: 15px; }.explain p { margin-bottom: 6px; }.explain .answer { font-weight: 700; }.explain a { display: inline-block; padding-block: 3px; font-size: 13px; }
.board-sub { margin: 6px 0 20px; font-size: 14px; color: var(--muted); }
.board-head, .board-line { display: grid; grid-template-columns: 4em minmax(0,1fr) 4.2em; gap: 12px; padding: 12px 16px; }
.board-head { background: var(--navy); color: var(--sheet); border-radius: 3px 3px 0 0; }
.board-line { border: 1px solid #c2c7bf; border-top: 0; background: var(--sheet); min-height: 52px; }
.board-head > :last-child, .board-line > :last-child { text-align: right; }
.rank { font: 21px/1.2 Georgia,serif; font-variant-numeric: tabular-nums; }
.board-line.top .rank { color: var(--red); font-weight: 700; }.board-line.mine { background: #e7ece6; }
.board-line .name { overflow-wrap: anywhere; }.me-mark { font-size: 11px; padding: 2px 5px; margin-left: 7px; background: var(--ink); color: var(--sheet); border-radius: 2px; vertical-align: middle; }
.empty { padding: 34px 14px; text-align: center; border: 1px solid #b9c1b8; border-radius: 3px; background: var(--sheet); }
.empty p { color: var(--muted); margin-top: 7px; }
.my-rank { margin-top: 18px; font-size: 15px; }
@media (min-width: 1380px) { .face-copy { padding: 58px; } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 66px; }
  .masthead nav { gap: 18px; }
  .face-copy { width: 65%; padding: 30px; }
  .globe { width: 51%; height: 88%; top: 2%; right: -4%; }
  .face-copy p { max-width: 18em; font-size: 14px; }
  .pass-foot { padding: 18px 25px; gap: 16px; }
  .rule-grid { gap: 16px; }.rule-grid p { font-size: 12px; }
}
@media (max-width: 540px) {
  .brand { gap: 6px; }.brand strong { font-size: 14px; }.brand small { font-size: 10px; margin-top: 2px; }
  .mark { transform: scale(.84); transform-origin: left center; width: 29px; }.masthead nav { gap: 13px; }.masthead nav a { font-size: 13px; }
  main { padding-top: 23px; padding-bottom: 36px; }
  .face-copy { width: 100%; padding: 25px 22px 23px; }
  .pass-label { margin-bottom: 20px; font-size: 12px; }.pass-label::before { width: 16px; }
  .face-copy h1 { font-size: clamp(40px,11.5vw,62px); line-height: 1.13; letter-spacing: 0; width: fit-content; }
  .face-copy p { max-width: 24em; margin-top: 20px; font-size: 13px; }
  .globe { width: 47%; height: 76%; right: -2%; top: 6%; }
  .pass-foot { flex-direction: column; align-items: stretch; padding: 17px 22px 21px; gap: 15px; }
  .pass-meta { justify-content: space-between; gap: 10px; }.meta-item + .meta-item { padding-left: 14px; }
  .meta-item small { font-size: 12px; }.meta-item b { font-size: 16px; }
  .rules { margin-top: 31px; }.rules h2 { font-size: 23px; margin-bottom: 12px; }
  .rule-grid { display: block; }.rule { display: grid; grid-template-columns: 4.5em 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d7d8cd; }
  .rule strong { font-size: 14px; }.rule-grid p { margin: 0; font-size: 13px; }
  .sheet { padding: 23px 18px; }.options { margin-top: 19px; gap: 8px; }.option { padding: 11px; gap: 10px; min-height: 49px; }
  .actions { gap: 10px; }.actions .btn { padding-inline: 17px; }
  .result-hero { gap: 15px; }.result-hero h1 { font-size: 25px; }.result-hero p { font-size: 13px; }
  .score { padding-right: 15px; }.score b { font-size: 58px; }.score span { font-size: 17px; }
  .review summary { gap: 8px; }.explain { margin-left: 0; }
  .board-head, .board-line { padding-inline: 11px; grid-template-columns: 2.6em 1fr 3.4em; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .masthead nav { gap: 10px; }.masthead nav a { font-size: 12px; }
  .face-copy { padding-inline: 18px; }.pass-foot { padding-inline: 17px; }
  .globe { width: 44%; top: 1%; }
  .result-hero { padding-inline: 16px; }.score b { font-size: 46px; }.result-hero h1 { font-size: 22px; }
}
