* { box-sizing: border-box; }
:root { color-scheme: light; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.canteen { --page:#f9eee0; --panel:#fff7e8; --ink:#35221a; --muted:#77544b; --edge:#d9bdb0; --accent:#8e2d24; --button:#fff7e8; --corner:3px; --hero:#8e2d24; --hero-ink:#ffebcc; --hero-muted:#ffe0b0; }
.wool { --page:#e9eee2; --panel:#fafbf2; --ink:#1e3428; --muted:#4c6051; --edge:#b9c8b3; --accent:#30553f; --button:#fff; --corner:23px; --hero:#263c30; --hero-ink:#f3f4cf; --hero-muted:#d8e7d3; }
.morning { --page:#e8eeff; --panel:#f8faff; --ink:#15234e; --muted:#47577b; --edge:#b7c9ef; --accent:#234bb2; --button:#fff; --corner:9px; --hero:#172752; --hero-ink:#fbfdff; --hero-muted:#bfd3ff; }
.ration { --page:#eee8d0; --panel:#f8f2df; --ink:#293b32; --muted:#506052; --edge:#bfb89d; --accent:#354b3b; --button:#f9f5df; --corner:0px; --hero:#d1c6a0; --hero-ink:#26372e; --hero-muted:#425248; }
.blade { color-scheme:dark; --page:#0c111c; --panel:#141c2b; --ink:#f3f4f9; --muted:#b4bfce; --edge:#3f4b61; --accent:#dce5f2; --button:#131c2c; --corner:0px; --hero:#101927; --hero-ink:#f3f4f9; --hero-muted:#c4cada; }
.ember { color-scheme:dark; --page:#221616; --panel:#301c1b; --ink:#fff0d2; --muted:#e2bdac; --edge:#774436; --accent:#ffc373; --button:#3a2118; --corner:14px; --hero:#551f1a; --hero-ink:#fff0d2; --hero-muted:#ffd7b7; }
.parcel { --page:#f3eaf4; --panel:#fff7ff; --ink:#3a2344; --muted:#6d5275; --edge:#dac2dc; --accent:#672b74; --button:#fff5ff; --corner:28px; --hero:#462452; --hero-ink:#fff0d1; --hero-muted:#f5dafa; }
.harbour { color-scheme:dark; --page:#0e2623; --panel:#16302c; --ink:#e7fff4; --muted:#abd0c2; --edge:#426962; --accent:#baf4d8; --button:#10332a; --corner:5px; --hero:#163f37; --hero-ink:#e7fff4; --hero-muted:#bce2d3; }
.shell { width: min(1180px, 100% - 64px); margin-inline: auto; }
.notice { margin: 0; text-align: center; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: 12px; padding: 6px 12px; }
.top, .footer, nav, .brand, .footer > div, .workspace-head, .actions, .ref-row { display: flex; align-items: center; }
.top, .footer { justify-content: space-between; min-height: 69px; gap: 20px; }
nav, .footer > div, .brand { gap: 18px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.brand { gap: 9px; font: 700 15px/1 system-ui, sans-serif; letter-spacing: .075em; }
.brand img { border-radius: min(var(--corner), 10px); }
nav { font-size: 13px; }
.mast { display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; }
.hero { display: grid; position: relative; overflow: hidden; min-height: 440px; isolation: isolate; align-items: end;
  border-radius: var(--corner); border: 1px solid var(--edge); background: var(--hero); color: var(--hero-ink); }
.art { position: absolute; inset: 0; z-index: -2; background: var(--hero); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg, var(--hero) 0%, transparent 84%); }
.intro { padding: 28px 31px; text-shadow: 0 1px 7px #0004; }
.eyebrow { display:flex; flex-wrap:wrap; gap:12px; align-items:center; color: var(--hero-muted);
  font: 700 11px/1.4 system-ui, sans-serif; letter-spacing:.14em; }
.independent { font-size: 12px; letter-spacing: 0; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2.25rem, 5.7vw, 4.4rem); letter-spacing: -.04em; line-height: 1.15; margin: 12px 0; }
.canteen h1, .ration h1, .parcel h1 { font-family: "Songti SC", SimSun, serif; font-weight: 900; letter-spacing: .01em; }
.morning h1, .harbour h1 { font-family: Bahnschrift, "Microsoft YaHei", system-ui, sans-serif; font-weight: 750; }
.blade h1 { letter-spacing: .05em; }
.ration .hero::after { background: linear-gradient(0deg, var(--hero) 18%, #d1c6a000 85%); }
.ration .intro { text-shadow: none; }
.wool .art { inset: 0 0 10% 11%; }
.morning .art img { object-position: center 42%; }
.blade .hero::after { background: linear-gradient(90deg, var(--hero), #10192700 100%); }
.ember .hero::after { background: linear-gradient(0deg, var(--hero) 1%, #551f1a00 72%); }
.parcel .art img { object-position: center 60%; }
.harbour .hero::after { background: linear-gradient(335deg, var(--hero) 4%, #163f3700 99%); }
.intro-copy { max-width: 36ch; font-size: 16px; line-height: 1.7; }
.opening { margin-top: 16px; color: var(--hero-muted); font-size: 13px; }
.workspace { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--corner);
  padding: 27px; align-self: stretch; display: flex; flex-direction: column; }
.workspace-head { justify-content: space-between; gap: 12px; align-items: start; }
.workspace-head h2 { font-size: 21px; line-height: 1.35; padding-top: 8px; }
#status { margin-top: 10px; color: var(--muted); min-height: 3.3em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); border-block: 1px solid var(--edge);
  margin: 13px 0 18px; }
.stats > div { padding: 10px 6px; min-width: 0; }
.stats dt, .security { color: var(--muted); font-size: 12px; }
.stats dd { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap:anywhere; }
button, input { font: inherit; }
button { min-height: 43px; border: 1px solid var(--accent); color: var(--accent); background: transparent;
  padding: 7px 13px; border-radius: min(var(--corner), 12px); cursor:pointer; white-space:nowrap; }
button:hover:not(:disabled) { filter: brightness(1.17); }
button:disabled { opacity: .5; cursor: default; }
#claim { color: var(--button); background: var(--accent); font-weight: 750; }
.actions { gap: 10px; flex-wrap: wrap; align-items: stretch; }
.actions button { flex: 1 1 auto; }
#referral { margin-top: 16px; }
#referral label { display:block; font-size: 12px; color: var(--muted); margin-bottom:5px; }
.ref-row { gap: 8px; }
input { width: 100%; min-width: 0; color: var(--ink); border: 1px solid var(--edge); background: var(--page); padding: 8px; min-height: 42px; }
.security { display: flex; gap: 15px; flex-wrap: wrap; padding-top: 18px; margin-top: auto; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-block: 1px solid var(--edge); }
.rules article { padding: 18px 19px; }
.rules article + article { border-inline-start: 1px solid var(--edge); }
.rules h2 { font-size: 15px; margin-bottom: 4px; }
.rules p, .footer { color: var(--muted); font-size: 13px; }
.footer a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 850px) {
  .shell { width: min(720px, 100% - 40px); }
  .mast { grid-template-columns: 1fr; }
  .hero { min-height: 390px; }
}
@media (max-width: 510px) {
  .shell { width: calc(100% - 28px); }
  .hero { min-height: 340px; }
  .intro { padding: 20px; }
  .workspace { padding: 17px; }
  .rules { grid-template-columns: 1fr; }
  .rules article { padding: 12px 5px; }
  .rules article + article { border-inline-start: 0; border-top: 1px solid var(--edge); }
  .footer { align-items: start; padding: 10px 0; }
  .footer > div { flex-wrap: wrap; gap: 6px 12px; }
}

