:root {
  color-scheme: light;
  --paper: #efe7d6;
  --white: #fbf8f1;
  --ink: #1b1712;
  --muted: #665c4e;
  --line: #c4b79e;
  --accent: #c4361f;
  --display: 'ZCOOL QingKe HuangYou', 'PingFang SC', sans-serif;
  --pixel: 'Pixelify Sans', ui-monospace, monospace;
  --number: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
img { display: block; max-width: 100%; }
input, select, textarea { min-width: 0; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -100px; background: var(--ink); color: var(--white); z-index: 50; padding: 10px 20px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 3px solid var(--ink); }
.header-inner { max-width: 1280px; min-height: 76px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 180px; height: auto; }
.brand small { font: 22px var(--display); color: var(--accent); letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; align-self: stretch; }
.main-nav a { display: flex; align-items: center; position: relative; white-space: nowrap; font-weight: 650; }
.main-nav a.active::after { content: ''; position: absolute; bottom: 16px; left: 0; right: 0; height: 4px; background: var(--accent); }
.main-nav a:hover, .my-link:hover { color: var(--accent); }
.main-nav .mobile-my-link { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.my-link { font-size: 13px; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 21px; border: 2px solid var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.primary { background: var(--accent); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ink-button { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.ink-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); }
.secondary { background: transparent; }
.secondary:hover { background: var(--white); }
.button.small { min-height: 38px; font-size: 12px; padding: 8px 12px; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 5px; font-size: 13px; }
.inline-link:hover { color: var(--accent); }
.main-container { max-width: 1280px; margin: auto; padding: 0 40px; }
/* The original paper-and-ink composition, with the treasury in the first screen. */
.program-header { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); column-gap: 56px; row-gap: 32px; padding-top: 32px; }
.program-intro { padding: 2px 0 0; }
.hero-title-row { display: flex; align-items: flex-start; gap: 27px; }
.program-intro h1 { font: 400 clamp(64px,7.8vw,100px)/.99 var(--display); letter-spacing: -1px; }
.season-stamp { display: block; color: var(--accent); border: 3px solid var(--accent); padding: 7px 9px; font: 24px/1.2 var(--display); transform: rotate(-7deg); margin-top: 10px; white-space: nowrap; }
.program-intro p { color: #3b342c; font-size: 16px; line-height: 1.9; margin: 18px 0 21px; }
.hero-actions { display: flex; gap: 15px; }
.guild-scene { position: relative; align-self: stretch; min-height: 318px; overflow: hidden; background: #c7d0ac; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); isolation: isolate; }
.scene-corner { position: absolute; z-index: 4; top: 13px; left: 14px; font: 13px var(--pixel); color: #334938; }
.guild-scene img { position: absolute; max-width: none; image-rendering: pixelated; }
.guild-ground { position: absolute; inset: 115px -60px -70px; background: url('../assets/grass.png') repeat; background-size: 192px; z-index: -1; }
.guild-castle { width: 320px; height: 256px; left: calc(50% - 180px); bottom: 36px; z-index: 2; }
.guild-house { width: 128px; height: 192px; right: -5px; bottom: 38px; z-index: 3; }
.guild-tree { width: 192px; height: 192px; }
.tree-back { right: -33px; top: 20px; }
.tree-front { left: -76px; bottom: 8px; z-index: 3; }
.guild-sign { width: 64px; height: 128px; left: 44%; bottom: -9px; z-index: 4; }
.scene-plaque { position: absolute; left: 15px; bottom: 14px; padding: 3px 9px; border: 2px solid var(--ink); background: var(--paper); font-size: 11px; z-index: 5; }
.pool-overview { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 50px; background: var(--ink); color: var(--paper); padding: 24px 30px; }
.pool-label { display: flex; align-items: baseline; gap: 13px; font: 24px var(--display); color: #ef7052; }
.pool-label > span { font: 17px var(--pixel); }
.pool-amount { font: 700 clamp(45px,5.8vw,75px)/1.1 var(--pixel); white-space: nowrap; letter-spacing: -1px; margin: 8px 0 7px; }
.pool-main > p { font-size: 11px; color: #c7bba7; }
.pool-account { align-self: center; min-width: 0; }
.pool-stats { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
.pool-stats span { font-size: 11px; color: #c7bba7; display: block; margin-bottom: 9px; white-space: nowrap; }
.pool-stats strong { font: 600 clamp(15px,1.7vw,22px) var(--number); letter-spacing: -.5px; }
.pool-stats i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; }
.legend-paid { background: #e0492c; }
.legend-pending { background: var(--paper); }
.pool-progress { display: flex; margin-top: 25px; height: 9px; background: #4a4238; }
.pool-progress > span { background: #e0492c; }
.pool-progress > i { background: var(--paper); }
.pool-progress-label { display: flex; justify-content: space-between; margin-top: 10px; gap: 12px; font-size: 10px; color: #c7bba7; }
.pool-progress-label a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.board-section { padding-top: 44px; }
.board-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 42px; align-items: start; }
.board-content { min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { font: 46px/1.1 var(--display); }
.section-heading h2 > span { font: 14px var(--number); color: var(--muted); margin-left: 8px; vertical-align: middle; }
.section-heading > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.category-tabs, .bounty-filters { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 6px; margin-left: -3px; scrollbar-width: thin; }
.category-tab { border: 2px solid var(--ink); padding: 7px 12px; font-size: 12px; white-space: nowrap; font-weight: 600; }
.category-tab:hover { background: var(--white); }
.category-tab.active { color: var(--paper); background: var(--ink); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0; }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--ink); padding: 0 11px; background: var(--white); max-width: 320px; width: 60%; }
.search-field .icon { width: 15px; height: 15px; color: var(--muted); }
.search-field input { width: 100%; border: 0; background: none; color: var(--ink); padding: 9px 0; font-size: 12px; }
.sort-field select { font-size: 12px; border: 0; background: transparent; padding: 8px 0; color: var(--muted); cursor: pointer; }
.list-heading { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-bottom: 3px solid var(--ink); padding-bottom: 9px; }
.contribution-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; min-height: 129px; border-bottom: 1px solid #8c816d; }
.contribution-mark { display: none; }
.row-main { flex: 1; min-width: 0; }
.row-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.row-meta time { margin-left: 3px; font-family: var(--number); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; background: #aebca4; border: 2px solid var(--ink); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.row-meta .avatar { width: 22px; height: 22px; border-width: 1px; }
.contribution-row h3 { margin: 9px 0 5px; font-size: 16px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.contribution-row h3 button { padding: 0; text-align: left; font: inherit; }
.contribution-row h3 button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.impact { font-size: 12px; color: var(--muted); }
.preview-button { display: block; padding: 0; flex: none; border: 1px solid var(--ink); }
.work-preview { height: 67px; width: 82px; background: #c7d0ac; overflow: hidden; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }
.building-preview { padding: 3px; }
.building-preview img { object-fit: contain; image-rendering: pixelated; }
.row-reward { flex: 0 0 136px; text-align: right; }
.row-reward strong { font: 600 21px var(--number); display: block; margin-bottom: 12px; white-space: nowrap; letter-spacing: -.8px; }
.row-reward strong small { font: 10px var(--pixel); margin-left: 2px; color: var(--muted); letter-spacing: 0; }
.row-reward .undecided { font: 14px var(--display); color: var(--muted); }
.status { display: inline-block; color: var(--ink); border: 2px solid currentColor; padding: 1px 7px; font: 16px/1.3 var(--display); white-space: nowrap; transform: rotate(-5deg); }
.status i { display: none; }
.status.paid { color: var(--accent); }
.status.pending { color: var(--muted); border-style: dashed; }
.status.rejected { color: #875b17; border-style: dashed; }
.sidebar { padding-top: 3px; }
.leaderboard { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--white); }
.side-heading { background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; }
.side-heading h3 { font: 28px var(--display); }
.side-heading a { font-size: 11px; }
.leader-list { counter-reset: guild-rank; }
.leader-row { display: flex; align-items: center; gap: 9px; padding: 14px 14px; border-bottom: 1px solid var(--ink); }
.leader-row > div { flex: 1; min-width: 0; }
.leader-row strong { display: block; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.leader-row small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.leader-row > b { font: 600 17px var(--number); text-align: right; }
.leader-row > b small { font: 11px var(--pixel); }
.leader-row:first-child { background: var(--accent); color: var(--white); }
.leader-row:first-child small { color: #f7e5d6; }
.leader-row:hover { background: #e4d9c2; color: var(--ink); }
.leader-row:hover small { color: var(--muted); }
.side-footnote { font-size: 10px; color: var(--muted); padding: 11px 16px; }
.submission-notes { margin-top: 32px; padding: 24px 20px 22px; background: #f2e4b4; position: relative; }
.submission-notes::before { content: ''; position: absolute; width: 74px; height: 22px; top: -10px; left: calc(50% - 37px); background: #e8dfc9c7; border: 1px solid #b8a78566; transform: rotate(-4deg); }
.submission-notes h3 { font: 28px var(--display); }
.submission-notes ol { font-size: 12px; padding-left: 17px; color: #594b35; margin: 15px 0 20px; }
.submission-notes li { margin-bottom: 10px; line-height: 1.9; }
.demo-aside { font-size: 11px; color: var(--muted); margin-top: 25px; }
/* Bounty papers keep the supplied design's pins, slight angles and tear lines. */
.bounty-section { padding-top: 68px; }
.section-intro { color: var(--muted); margin: -7px 0 28px; }
.bounty-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 28px; padding: 8px 5px; }
.bounty-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 27px 24px 23px; transform: rotate(-.6deg); }
.bounty-card:nth-child(2n) { transform: rotate(.7deg); }
.bounty-card::before { content: ''; position: absolute; top: -10px; left: calc(50% - 8px); width: 16px; height: 16px; border: 3px solid var(--ink); border-radius: 50%; background: var(--accent); }
.bounty-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bounty-top > span { font: 31px var(--display); color: var(--accent); }
.bounty-top small { font-size: 11px; color: var(--muted); }
.bounty-card h2 { font: 30px/1.25 var(--display); margin: 19px 0 15px; }
.bounty-card > p { color: #504739; font-size: 13px; line-height: 1.9; }
.bounty-card ul { list-style: square; margin: 18px 0 25px; padding-left: 15px; font-size: 12px; line-height: 1.9; color: #504739; }
.bounty-bottom { border-top: 2px dashed var(--ink); margin-top: auto; padding-top: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.bounty-bottom small { font-size: 10px; color: var(--muted); }
.bounty-bottom strong { display: block; font: 36px var(--display); color: var(--accent); line-height: 1.1; margin-top: 7px; }
.bounty-bottom strong span { font: 13px var(--pixel); }
.bounty-filters { margin: 30px 0 29px; padding-bottom: 8px; }
.bounty-filters .category-tab { padding: 9px 15px; font-size: 13px; }
.free-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block: 3px solid var(--ink); padding: 23px 0; margin-top: 43px; }
.free-submit p { font: 30px/1.4 var(--display); }
.free-submit .inline-link { flex: none; }
.site-footer { background: var(--ink); color: var(--paper); margin-top: 70px; }
.footer-inner { max-width: 1280px; margin: auto; padding: 42px 40px 25px; }
.footer-callout { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.footer-callout > p { font: 46px var(--display); }
.footer-callout .primary { border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #534a3e; padding-top: 20px; }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand img { width: 160px; height: auto; }
.footer-brand span { color: #c1b5a1; font: 11px system-ui,sans-serif; }
.footer-right { display: flex; gap: 20px; color: #c1b5a1; font-size: 11px; }
.footer-right a:hover { color: var(--white); }
.inner-page { min-height: 65vh; padding-top: 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-context { display: block; font-size: 11px; color: var(--accent); margin-bottom: 13px; }
.page-heading h1 { font: 76px/1.1 var(--display); margin-bottom: 16px; }
.page-heading p { font-size: 14px; color: #514739; max-width: 700px; }
.page-emblem { display: none; }
.demo-notice { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-left: 3px solid var(--ink); background: #e5dac3; font-size: 11px; color: #60533e; margin-bottom: 22px; }
.demo-notice .icon { width: 14px; height: 14px; }
.demo-label { margin-left: auto; flex: none; font-size: 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--white); }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 620px; }
th { padding: 13px 17px; border-bottom: 4px double var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
td { padding: 21px 17px; border-bottom: 1px solid var(--line); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f2ead9; }
td small { font-size: 11px; color: var(--muted); }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell b { font-size: 14px; font-weight: 650; }
.person-cell small { display: block; font-size: 11px; color: var(--muted); }
.rank { min-width: 16px; font: 18px var(--pixel); color: var(--muted); }
.avatar-large { width: 40px; height: 40px; }
.work-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.work-links button, .table-title { padding: 0; text-align: left; font-size: 13px; }
.work-links button:hover, .table-title:hover { color: var(--accent); text-decoration: underline; }
.amount-cell { font: 600 20px var(--number); white-space: nowrap; color: var(--accent); }
.amount-cell small { font: 11px var(--pixel); }
.table-subtitle { display: block; margin-top: 7px; font-size: 10px; color: var(--muted); }
.receipt-link { font-size: 11px; color: var(--muted); padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.reward-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 3px solid var(--ink); margin: 29px 0 34px; }
.reward-stats > div { padding: 22px 17px; border-right: 2px solid var(--ink); }
.reward-stats > div:last-child { border: 0; }
.reward-stats span { display: block; font-size: 12px; margin-bottom: 12px; }
.reward-stats b { font: 600 clamp(19px,2vw,25px) var(--number); letter-spacing: -.8px; white-space: nowrap; }
.reward-stats > div:nth-child(2) b { color: var(--accent); }
.reward-stats small { font: 10px var(--pixel); color: var(--muted); }
.quiet-note { color: var(--muted); font-size: 11px; line-height: 1.9; }
.inner-page > .quiet-note { margin-top: 18px; }
.guide-categories { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-block: 2px solid var(--ink); margin-top: 30px; }
.guide-categories article { padding: 25px 25px 25px 0; }
.guide-categories .icon { color: var(--accent); width: 24px; height: 24px; margin-bottom: 16px; }
.guide-categories h2 { font: 25px var(--display); margin-bottom: 10px; }
.guide-categories p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.process-section { padding: 38px 0; }
.process-section > h2 { font: 35px var(--display); margin-bottom: 26px; }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.process-grid article > span { font: 48px var(--pixel); color: var(--accent); }
.process-grid h3 { font-size: 15px; margin: 12px 0 10px; }
.process-grid p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.guide-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 2px solid var(--ink); padding-top: 30px; }
.guide-rules h2 { font: 32px var(--display); margin-bottom: 17px; }
.guide-rules > section > .icon { display: none; }
.guide-rules ul { padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 2.3; }
details { padding: 14px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 13px; }
details p { padding-top: 12px; font-size: 12px; color: var(--muted); }
.mine-list { max-width: 900px; margin-top: 24px; }
.empty-state { text-align: center; padding: 65px 20px; border-bottom: 1px solid var(--ink); }
.empty-state > .icon { color: var(--accent); width: 30px; height: 30px; margin-bottom: 20px; }
.empty-state h2, .empty-state h3 { font: 30px var(--display); }
.empty-state p { font-size: 13px; color: var(--muted); margin: 14px 0 24px; }
.admin-explainer { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 24px 0; }
/* Existing validated forms and review workflow share the same paper treatment. */
dialog { width: 700px; max-width: calc(100vw - 36px); max-height: 91dvh; padding: 0; border: 3px solid var(--ink); background: var(--white); color: var(--ink); box-shadow: 8px 8px 0 #1b1712; overflow: auto; }
dialog::backdrop { background: #1b17129e; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { padding: 23px 28px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.eyebrow { font-size: 11px; color: var(--accent); }
.dialog-heading h2 { font: 36px/1.3 var(--display); margin-top: 7px; overflow-wrap: anywhere; }
.close-button { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); }
.close-button:hover { background: var(--ink); color: var(--paper); }
.detail-scroll { padding: 24px 28px; }
.large-art { width: 100%; height: 230px; }
.large-art img { object-fit: contain; }
.large-art.building-preview { padding: 15px; }
.detail-meta { display: flex; align-items: center; gap: 14px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.detail-meta .person-cell { flex: 1; }
.category-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: var(--muted); }
.category-tag .icon { width: 14px; height: 14px; }
.detail-section { padding-top: 25px; }
.detail-section h3 { font-size: 15px; margin-bottom: 13px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 2; color: #514739; }
.impact-callout { border-left: 3px solid var(--accent); padding: 8px 12px; margin-top: 18px; font-size: 12px; background: var(--paper); }
.impact-callout .icon { display: none; }
.evidence-file { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--ink); padding: 13px; background: var(--paper); margin-bottom: 9px; font-size: 12px; overflow-wrap: anywhere; }
.evidence-file > span { flex: 1; min-width: 0; }
.evidence-file small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.detail-reward { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-block: 2px solid var(--ink); padding: 18px 0; margin-top: 25px; }
.detail-reward > div > span { display: block; font-size: 12px; color: var(--muted); }
.detail-reward strong { font: 600 36px var(--number); color: var(--accent); }
.detail-reward strong small { font: 14px var(--pixel); }
.timeline { list-style: none; margin: 0 0 22px; padding: 0; }
.timeline li { position: relative; padding: 0 0 23px 24px; margin-left: 5px; border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { content: ''; width: 10px; height: 10px; background: var(--white); border: 2px solid var(--muted); position: absolute; left: -6px; top: 5px; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline b { display: block; font-size: 13px; margin-bottom: 5px; }
.timeline span { display: block; color: var(--muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.follower-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; border-block: 1px solid var(--line); padding: 15px 0; margin-bottom: 12px; }
.follower-metrics span { color: var(--muted); font-size: 11px; }
.follower-metrics b { display: block; font: 600 25px var(--number); margin-top: 7px; color: var(--ink); }
.form-scroll { padding: 24px 28px 8px; }
.form-intro { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
form label:not(.upload-zone) { display: block; font-size: 13px; margin-bottom: 18px; }
form label > span { color: var(--accent); }
form input:not([type=checkbox]):not([type=file]), form select, form textarea { display: block; width: 100%; padding: 11px 12px; margin-top: 8px; border: 2px solid var(--ink); border-radius: 0; background: #fffdf8; color: var(--ink); font-size: 14px; resize: vertical; }
form input::placeholder, form textarea::placeholder { font-size: 12px; color: #897d69; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint { display: block; font-size: 11px; color: var(--muted) !important; line-height: 1.9; margin-top: 7px; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 9px; font-size: 12px !important; line-height: 1.9; color: #514739; }
.checkbox-label > input { width: 16px; height: 16px; flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.checkbox-label > span { color: inherit; }
.upload-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 9px; }
.upload-label > span { font-size: 11px; color: var(--muted); }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 2px dashed var(--ink); padding: 28px 12px; background: var(--paper); cursor: pointer; }
.upload-zone.dragging { background: #f2e4b4; border-color: var(--accent); }
.upload-zone > .icon { width: 25px; height: 25px; margin-bottom: 10px; }
.upload-zone strong { font-size: 13px; font-weight: 500; }
.upload-zone strong > span { color: var(--accent); margin-left: 6px; }
.upload-zone small { font-size: 10px; color: var(--muted); margin-top: 8px; text-align: center; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.file-list { margin: 10px 0 20px; }
.file-list > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.file-list span { flex: 1; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.file-list small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.file-list button { font-size: 22px; padding: 0 4px; }
.consent { padding-top: 15px; border-top: 2px dashed var(--ink); }
.form-error { color: #af2816; font-size: 13px; margin: 10px 0; }
.form-error:empty { display: none; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 28px; background: var(--paper); border-top: 2px solid var(--ink); position: sticky; bottom: 0; z-index: 4; }
.dialog-footer > span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.dialog-footer .icon { width: 14px; height: 14px; }
.review-contribution { font-size: 15px; margin-bottom: 20px; }
.review-contribution small { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.review-amount { font-size: 12px; color: var(--muted); margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.review-amount strong { display: block; font: 600 32px var(--number); color: var(--accent); }
.review-amount small { font: 14px var(--pixel); }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,10px); width: max-content; max-width: calc(100vw - 30px); background: var(--ink); color: var(--paper); padding: 14px 20px; border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--accent); font-size: 13px; z-index: 30; opacity: 0; visibility: hidden; transition: .15s; pointer-events: none; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
@media (max-width: 1120px) {
  .header-inner { gap: 21px; padding-inline: 28px; }
  .brand small { display: none; }
  .main-nav { gap: 21px; }
  .header-actions { gap: 15px; }
  .main-container { padding-inline: 28px; }
  .program-header { column-gap: 36px; }
  .board-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 28px; }
  .row-reward { flex-basis: 115px; }
  .row-reward strong { font-size: 19px; }
  .contribution-row .preview-button { display: none; }
  .pool-overview { gap: 30px; padding-inline: 25px; }
  .pool-stats { gap: 12px; }
  .reward-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reward-stats > div:nth-child(2) { border-right: 0; }
  .reward-stats > div:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .reward-stats b { font-size: 27px; }
  .bounty-grid { gap: 26px 22px; }
  .bounty-card { padding: 25px 18px 20px; }
  .bounty-top { flex-wrap: wrap; gap: 4px; }
  .bounty-card h2 { font-size: 27px; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 13px; }
  .brand small { display: inline; }
  .header-actions { margin-left: auto; }
  .my-link { display: none; }
  .main-nav { order: 3; flex-basis: 100%; height: 49px; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .main-nav .mobile-my-link { display: flex; }
  .main-nav a { font-size: 12px; flex: none; }
  .main-nav a.active::after { bottom: 3px; height: 3px; }
  .program-header { gap: 26px; }
  .program-intro h1 { font-size: 72px; }
  .hero-title-row { gap: 15px; }
  .season-stamp { font-size: 19px; padding: 6px; }
  .program-intro p { font-size: 13px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 12px; padding-inline: 14px; }
  .guild-scene { min-height: 300px; }
  .pool-overview { grid-template-columns: 1fr 1.2fr; padding: 24px 20px; gap: 22px; }
  .pool-label { font-size: 20px; }
  .pool-amount { font-size: 45px; }
  .pool-stats { grid-template-columns: 1fr 1fr; }
  .pool-stats > div:last-child { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pool-stats > div:last-child span { margin-bottom: 0; }
  .pool-progress { margin-top: 15px; }
  .board-layout { grid-template-columns: minmax(0,1fr); }
  .contribution-row .preview-button { display: block; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
  .submission-notes { margin-top: 0; align-self: start; }
  .demo-aside { grid-column: 1/-1; margin-top: -4px; }
  .bounty-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bounty-section .bounty-card:last-child { grid-column: 1/-1; }
  .guide-categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .header-inner { padding-inline: 20px; }
  .brand { gap: 8px; }
  .brand-logo { width: 144px; }
  .brand small { font-size: 17px; }
  .header-actions .button { min-height: 35px; padding: 7px 10px; font-size: 11px; box-shadow: 3px 3px 0 var(--ink); }
  .main-nav { gap: 22px; height: 46px; }
  .main-container { padding-inline: 20px; }
  .program-header { grid-template-columns: minmax(0,1fr); gap: 25px; padding-top: 26px; }
  .program-intro { position: relative; }
  .hero-title-row { align-items: center; gap: 20px; }
  .program-intro h1 { font-size: 60px; line-height: 1; }
  .program-intro h1 br { display: none; }
  .season-stamp { font-size: 17px; margin-top: 0; padding: 5px 6px; border-width: 2px; }
  .program-intro p { margin: 15px 0 18px; font-size: 13px; }
  .hero-actions .button { min-height: 40px; font-size: 12px; padding-inline: 18px; }
  .guild-scene { grid-row: 3; min-height: 228px; margin-right: 4px; box-shadow: 5px 5px 0 var(--ink); }
  .guild-castle { bottom: 10px; }
  .guild-house { bottom: 7px; right: -14px; }
  .tree-back { top: -39px; right: -40px; }
  .tree-front { bottom: -26px; left: -77px; }
  .guild-ground { top: 85px; }
  .guild-sign { bottom: -33px; left: 46%; }
  .scene-corner { font-size: 10px; top: 9px; left: 9px; }
  .scene-plaque { bottom: 10px; left: 10px; font-size: 10px; }
  .pool-overview { grid-row: 2; grid-template-columns: minmax(0,1fr); gap: 17px; padding: 20px; }
  .pool-main { display: grid; grid-template-columns: 1fr; }
  .pool-label { font-size: 22px; justify-content: space-between; }
  .pool-label > span { font-size: 16px; }
  .pool-amount { font-size: clamp(40px,13vw,61px); margin-block: 6px 5px; }
  .pool-main > p { font-size: 10px; }
  .pool-stats { grid-template-columns: 1fr 1fr 1.2fr; gap: 9px; border-top: 1px solid #5b5144; padding-top: 14px; }
  .pool-stats > div:last-child { display: block; grid-column: auto; }
  .pool-stats span { font-size: 9px; margin-bottom: 7px; }
  .pool-stats > div:last-child span { margin-bottom: 7px; }
  .pool-stats strong { font-size: 14px; letter-spacing: -.6px; }
  .pool-stats i { width: 5px; height: 5px; margin-right: 4px; }
  .pool-progress { margin-top: 16px; height: 7px; }
  .pool-progress-label { font-size: 9px; }
  .board-section { padding-top: 34px; }
  .section-heading { gap: 12px; margin-bottom: 20px; }
  .section-heading h2 { font-size: 37px; }
  .section-heading > span { font-size: 10px; }
  .section-heading h2 > span { font-size: 11px; }
  .category-tab { font-size: 11px; padding: 7px 11px; }
  .filter-row { margin: 16px 0; gap: 10px; }
  .search-field { width: 65%; padding-inline: 9px; }
  .search-field input { font-size: 11px; }
  .sort-field select { font-size: 11px; max-width: 90px; }
  .list-heading { font-size: 10px; }
  .contribution-row { gap: 12px; padding: 17px 0; }
  .row-meta { gap: 5px; font-size: 10px; }
  .row-meta time { display: none; }
  .contribution-row h3 { font-size: 14px; margin-block: 8px 5px; }
  .impact { font-size: 11px; }
  .row-reward { flex-basis: 92px; }
  .row-reward strong { font-size: 17px; margin-bottom: 10px; }
  .row-reward strong small { display: block; font-size: 9px; margin-top: 3px; }
  .row-reward .undecided { font-size: 14px; }
  .status { font-size: 15px; padding-inline: 5px; }
  .contribution-row .preview-button { display: none; }
  .sidebar { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .leader-row { padding-inline: 18px; }
  .leader-row > b { font-size: 19px; }
  .demo-aside { grid-column: auto; margin-top: -12px; }
  .bounty-section { padding-top: 45px; }
  .bounty-section > .section-heading { align-items: flex-end; }
  .bounty-section .section-heading .inline-link { font-size: 11px; max-width: 130px; text-align: right; }
  .section-intro { font-size: 12px; margin-bottom: 24px; }
  .bounty-grid { grid-template-columns: minmax(0,1fr); gap: 29px; padding-inline: 3px; }
  .bounty-section .bounty-card:last-child { grid-column: auto; }
  .bounty-card { padding: 24px 22px; }
  .bounty-top { flex-wrap: nowrap; }
  .bounty-card h2 { font-size: 30px; }
  .bounty-bottom { flex-wrap: wrap; }
  .bounty-filters { margin-block: 23px; }
  .bounty-filters .category-tab { font-size: 12px; padding: 8px 12px; }
  .free-submit { align-items: flex-start; flex-direction: column; gap: 15px; padding-block: 21px; margin-top: 30px; }
  .free-submit p { font-size: 27px; }
  .site-footer { margin-top: 45px; }
  .footer-inner { padding: 30px 20px 22px; }
  .footer-callout { align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-direction: column; }
  .footer-callout > p { font-size: 34px; }
  .footer-callout .button { font-size: 12px; }
  .footer-bottom { gap: 16px; }
  .footer-brand span { font-size: 10px; }
  .footer-right { flex-wrap: wrap; gap: 10px 17px; font-size: 10px; }
  .inner-page { padding-top: 28px; }
  .page-heading { align-items: flex-start; gap: 15px; flex-wrap: wrap; margin-bottom: 23px; }
  .page-heading h1 { font-size: 50px; margin-bottom: 13px; }
  .page-context { font-size: 10px; margin-bottom: 10px; }
  .page-heading p { font-size: 12px; }
  .page-heading .button { font-size: 12px; }
  .demo-notice { padding: 10px; gap: 7px; font-size: 10px; }
  .demo-label { font-size: 9px; }
  .reward-stats { margin-block: 22px 27px; }
  .reward-stats > div { padding: 16px 11px; }
  .reward-stats span { font-size: 11px; margin-bottom: 9px; }
  .reward-stats b { font-size: 20px; letter-spacing: -1px; }
  .reward-stats small { display: block; font-size: 10px; margin-top: 5px; letter-spacing: 0; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tbody { display: block; }
  .table-wrap tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 18px 15px; gap: 18px 14px; border-bottom: 1px solid var(--ink); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .table-wrap td:first-child { grid-column: 1/-1; }
  .table-wrap td::before { display: block; margin-bottom: 7px; font: 10px/1.4 system-ui,sans-serif; color: var(--muted); letter-spacing: 0; }
  .table-wrap .table-title { font-size: 14px; font-weight: 600; line-height: 1.8; }
  .table-wrap .amount-cell { font-size: 20px; }
  .table-wrap .amount-cell small { font-size: 10px; }
  .ledger-table td:nth-child(2)::before { content: attr(data-label); }
  .ledger-table td:nth-child(3)::before { content: attr(data-label); }
  .ledger-table td:nth-child(4) { grid-column: 1/-1; border-top: 1px dashed var(--line); padding-top: 12px; }
  .ledger-table .receipt-link { font-size: 11px; }
  .contributors-table td:nth-child(2) { grid-column: 1/-1; }
  .contributors-table td:nth-child(2)::before { content: attr(data-label); }
  .contributors-table td:nth-child(3)::before { content: attr(data-label); }
  .contributors-table td:nth-child(4)::before { content: attr(data-label); }
  .contributors-table td:nth-child(4) { font: 17px var(--number); }
  .admin-table td:nth-child(2)::before { content: attr(data-label); }
  .admin-table td:nth-child(3)::before { content: attr(data-label); }
  .admin-table td:nth-child(4) { grid-column: 1/-1; }
  .guide-categories { grid-template-columns: 1fr 1fr; }
  .guide-categories article { padding: 22px 17px 22px 0; }
  .guide-categories article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .guide-categories h2 { font-size: 24px; }
  .guide-categories p { font-size: 11px; }
  .process-section > h2 { font-size: 31px; }
  .process-grid { gap: 25px 20px; }
  .process-grid h3 { font-size: 13px; }
  .process-grid p { font-size: 11px; }
  .guide-rules { grid-template-columns: 1fr; gap: 25px; }
  .guide-rules ul { font-size: 12px; }
  .admin-explainer { align-items: flex-start; font-size: 12px; }
  .empty-state { padding: 42px 10px; }
  dialog { max-width: calc(100vw - 24px); max-height: 93dvh; box-shadow: 4px 4px 0 var(--ink); }
  .dialog-heading { padding: 18px; gap: 12px; }
  .dialog-heading h2 { font-size: 28px; }
  .eyebrow { font-size: 10px; }
  .close-button { width: 30px; height: 30px; }
  .detail-scroll, .form-scroll { padding: 18px; }
  .large-art { height: 190px; }
  .detail-meta { flex-wrap: wrap; gap: 12px; }
  .detail-meta .person-cell { flex-basis: 100%; }
  .detail-section h3 { font-size: 14px; }
  .preserve-lines { font-size: 12px; }
  .evidence-file { padding: 11px; font-size: 11px; }
  .evidence-file small { font-size: 9px; }
  .detail-reward strong { font-size: 29px; }
  .detail-reward strong small { font-size: 11px; }
  .follower-metrics { grid-template-columns: 1fr 1fr; gap: 15px; }
  .follower-metrics b { font-size: 23px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-intro { font-size: 12px; }
  form label:not(.upload-zone) { font-size: 12px; }
  form input:not([type=checkbox]):not([type=file]), form select, form textarea { font-size: 16px; padding: 10px; }
  .upload-label { align-items: flex-start; flex-direction: column; gap: 3px; font-size: 12px; }
  .upload-zone strong { font-size: 12px; }
  .dialog-footer { padding: 15px 18px; gap: 10px; }
  .dialog-footer > span { font-size: 10px; }
  .dialog-footer > span .icon { display: none; }
  .dialog-footer .button { font-size: 11px; padding: 9px 12px; }
  .toast { font-size: 12px; }
}
@media (max-width: 370px) {
  .header-inner, .main-container { padding-inline: 16px; }
  .brand small { display: none; }
  .main-nav { gap: 19px; }
  .main-nav a { font-size: 11px; }
  .program-intro h1 { font-size: 49px; }
  .hero-title-row { gap: 13px; }
  .season-stamp { font-size: 14px; }
  .program-intro p { font-size: 12px; }
  .pool-overview { padding: 17px; }
  .pool-stats strong { font-size: 12px; }
  .pool-stats span { font-size: 8px; }
  .row-reward { flex-basis: 83px; }
  .row-reward strong { font-size: 15px; }
  .row-meta .meta-divider { display: none; }
  .row-meta > span:not(.avatar) { font-size: 9px; }
  .reward-stats b { font-size: 18px; }
  .bounty-card { padding-inline: 18px; }
  .page-heading h1 { font-size: 44px; }
  .dialog-footer { padding-inline: 13px; }
  .dialog-footer .button { padding-inline: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Language controls remain reachable in both the header and modal dialogs. */
.language-control { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; color: var(--muted); }
.language-control > span { font: 11px var(--number); border-bottom: 1px solid currentColor; line-height: 1.5; }
.language-select { max-width: 92px; min-height: 34px; background: transparent; border: 0; color: var(--ink); font-size: 12px; cursor: pointer; padding: 5px 0 5px 3px; }
.dialog-tools { display: flex; align-items: center; flex: none; gap: 12px; }
.dialog-tools .language-select { max-width: 86px; }
html:lang(en) { --display: 'Pixelify Sans', 'Segoe UI', sans-serif; }
html:lang(ja) { --display: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; }
html:lang(en) .program-intro h1 { font-size: clamp(50px,5.5vw,70px); line-height: 1.05; letter-spacing: -2px; }
html:lang(en) .hero-title-row { gap: 17px; }
html:lang(en) .season-stamp { font-size: 18px; }
html:lang(ja) .program-intro h1 { font-size: clamp(44px,5vw,64px); font-weight: 800; line-height: 1.3; }
html:lang(ja) .season-stamp { font-size: 17px; }
html:lang(en) .page-heading h1 { font-size: 65px; overflow-wrap: anywhere; }
html:lang(ja) .page-heading h1 { font-size: 53px; font-weight: 800; }
html:lang(en) .section-heading h2 { font-size: 37px; }
html:lang(ja) .section-heading h2 { font-size: 31px; font-weight: 800; }
html:lang(en) .status { font: 600 11px/1.4 system-ui,sans-serif; }
html:lang(ja) .status { font-size: 12px; font-weight: 700; }
html:lang(en) .bounty-card h2 { font-size: 27px; }
html:lang(ja) .bounty-card h2 { font-size: 23px; font-weight: 800; line-height: 1.5; }
html:not(:lang(zh-CN)) .pool-stats span { white-space: normal; min-height: 30px; }
html:not(:lang(zh-CN)) .row-reward .undecided { white-space: normal; font-size: 12px; }
html:not(:lang(zh-CN)) .side-heading h3 { font-size: 24px; }
html:not(:lang(zh-CN)) .program-intro p { font-size: 14px; }
html:not(:lang(zh-CN)) .free-submit p { font-size: 26px; }
html:not(:lang(zh-CN)) .dialog-heading h2 { font-size: 28px; }
@media (min-width: 821px) and (max-width: 1140px) {
  .header-inner { flex-wrap: wrap; padding-top: 12px; gap: 0; }
  .header-actions { margin-left: auto; gap: 20px; }
  .main-nav { order: 3; flex-basis: 100%; height: 47px; gap: 28px; }
  .main-nav a.active::after { bottom: 3px; }
}
@media (max-width: 820px) {
  .header-actions { gap: 12px; }
  .brand small { display: none; }
  html:lang(en) .program-intro h1 { font-size: 48px; }
  html:lang(ja) .program-intro h1 { font-size: 47px; }
  html:not(:lang(zh-CN)) .hero-title-row { flex-wrap: wrap; gap: 12px; }
  html:not(:lang(zh-CN)) .season-stamp { transform: rotate(-5deg); font-size: 13px; }
}
@media (max-width: 580px) {
  .language-select { max-width: 78px; font-size: 11px; }
  .language-control > span { display: none; }
  .header-actions { gap: 9px; }
  .main-nav { gap: 20px; }
  html:lang(en) .main-nav { gap: 16px; }
  html:lang(en) .main-nav a { font-size: 11px; }
  html:not(:lang(zh-CN)) .program-intro h1 br { display: block; }
  html:lang(en) .program-intro h1 { font-size: 52px; }
  html:lang(ja) .program-intro h1 { font-size: 40px; }
  html:not(:lang(zh-CN)) .hero-title-row { flex-wrap: nowrap; gap: 16px; }
  html:not(:lang(zh-CN)) .program-intro p { font-size: 12px; }
  html:not(:lang(zh-CN)) .pool-label { font-size: 20px; }
  html:not(:lang(zh-CN)) .pool-stats span { font-size: 9px; min-height: 28px; }
  html:lang(en) .page-heading h1 { font-size: 43px; }
  html:lang(ja) .page-heading h1 { font-size: 34px; }
  html:lang(en) .section-heading h2 { font-size: 31px; }
  html:lang(ja) .section-heading h2 { font-size: 26px; }
  html:not(:lang(zh-CN)) .section-heading > span { white-space: normal; text-align: right; }
  html:not(:lang(zh-CN)) .row-meta { font-size: 9px; }
  html:not(:lang(zh-CN)) .detail-reward strong { font-size: 24px; overflow-wrap: anywhere; }
  html:not(:lang(zh-CN)) .guide-categories h2 { font-size: 21px; }
  html:not(:lang(zh-CN)) .footer-callout > p { font-size: 29px; }
  .dialog-heading { flex-wrap: wrap; }
  .dialog-heading > div:first-child { flex: 1; min-width: 110px; }
  .dialog-tools { gap: 7px; }
  .dialog-tools .language-select { max-width: 76px; }
  html:not(:lang(zh-CN)) .dialog-footer > span { flex: 1; min-width: 0; }
  html:not(:lang(zh-CN)) .dialog-footer .button { max-width: 58%; white-space: normal; }
  html:not(:lang(zh-CN)) .follower-metrics b { font-size: 19px; }
}
@media (max-width: 370px) {
  .brand-logo { width: 128px; }
  .language-select { max-width: 73px; }
  html:lang(en) .program-intro h1 { font-size: 43px; }
  html:lang(ja) .program-intro h1 { font-size: 34px; }
  html:not(:lang(zh-CN)) .season-stamp { font-size: 11px; }
  html:not(:lang(zh-CN)) .pool-stats span { font-size: 8px; }
  html:lang(en) .section-heading h2 { font-size: 27px; }
  html:not(:lang(zh-CN)) .row-reward { flex-basis: 81px; }
}

html:lang(en) .hero-title-row { position: relative; display: block; }
html:lang(en) .season-stamp { position: absolute; right: 0; bottom: 6px; width: 160px; white-space: normal; font-size: 16px; }
html:lang(en) .program-intro h1 { font-size: clamp(44px,5vw,64px); }
@media (max-width: 820px) {
  html:lang(en) .program-intro h1 { font-size: clamp(34px,5.5vw,43px); }
  html:lang(en) .season-stamp { width: 128px; font-size: 13px; padding: 5px; }
}
@media (max-width: 580px) {
  html:lang(en) .program-intro h1 { font-size: 48px; }
  html:lang(en) .season-stamp { width: 137px; font-size: 13px; bottom: 0; }
}
@media (max-width: 370px) {
  html:lang(en) .program-intro h1 { font-size: 41px; }
  html:lang(en) .season-stamp { width: 120px; font-size: 12px; }
}

html:lang(en) .status { max-width: 100%; white-space: normal; text-align: center; }
.hero-actions { flex-wrap: wrap; }
@media (max-width: 580px) {
  .guide-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-categories article { min-width: 0; }
  html:lang(en) .guide-categories h2 { overflow-wrap: anywhere; font-size: 19px; }
}
@media (min-width: 581px) and (max-width: 820px) {
  html:lang(en) .season-stamp { position: static; display: table; margin: 12px 0 0; }
}

/* Wallet identity sits on its own row so the game navigation stays usable. */
.account-bar { max-width: 1280px; margin: auto; padding: 7px 40px 9px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px dashed var(--line); font-size: 12px; }
.account-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.account-bar a, .account-bar button:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.account-bar a.button { color: var(--accent); text-decoration: none; }
.account-bar b { font-family: var(--number); margin-left: 5px; }
.account-bar .button { min-height: 32px; padding: 4px 10px; }
.account-registration { margin: 20px 0; }
.privacy-notice { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0 20px; padding: 13px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; }
.privacy-notice .icon { margin-top: 2px; }
.wallet-address { overflow-wrap: anywhere; font-family: var(--number); }
#account-dialog { max-width: 560px; }
#account-dialog .form-scroll { padding: 24px; }
#resubmit-form label { display: block; margin-top: 20px; }
#resubmit-form textarea, #resubmit-form input { display: block; width: 100%; margin-top: 8px; }
.dialog-heading .eyebrow, .timeline span { overflow-wrap: anywhere; }
.evidence-file:disabled { cursor: default; opacity: .7; }
@media (max-width: 820px) {
  .account-bar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 580px) {
  .account-bar { padding: 7px 20px; gap: 10px; font-size: 10px; }
  .account-bar > span { flex: 0 1 auto; min-width: 0; }
  .account-bar > div { flex: 1 1 auto; justify-content: flex-end; gap: 10px; }
  .account-bar .button { font-size: 10px; white-space: normal; max-width: 125px; }
  .account-bar b { display: block; margin-left: 0; }
  .privacy-notice { padding: 10px; font-size: 11px; }
  .dialog-footer .button { white-space: normal; }
  #account-dialog .form-scroll { padding: 18px; }
}
