:root {
  color-scheme: light;
  --paper: #f8efda;
  --light: #fffaf0;
  --ink: #2f2822;
  --mute: #665347;
  --red: #8c2827;
  --dark-red: #65201e;
  --gold: #b68444;
  --line: #dfccb1;
  --serif: "Yu Mincho", "Noto Serif TC", Georgia, serif;
  font-family: system-ui, "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f5ead5; background-image: repeating-linear-gradient(104deg, #d8bd901c 0 1px, transparent 1px 7px); }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { color: var(--dark-red); }
button, input { font: inherit; }
button { min-height: 42px; padding: .58rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--light); color: var(--ink); cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--red); }
button:disabled { cursor: default; opacity: .64; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.top { background: #362a25; color: var(--paper); padding: .9rem max(1.15rem, calc((100vw - 1136px)/2)); display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.top a { color: var(--paper); text-decoration: none; }
.wordmark { font-family: Georgia, serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -.075em; line-height: 1; }
.wordmark span { color: #e4a263; font-size: .53em; margin-left: .22em; }
nav { display: flex; gap: 1.3rem; font-size: .86rem; }
main { width: min(1136px, calc(100% - 2.4rem)); margin: auto; }
.facts { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem 1.4rem; flex-wrap: wrap; font-size: .8rem; margin: .75rem 0; color: var(--mute); }
.mast { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 293px; border-block: 1px solid #bb956b; background: #efdbb8; background-image: repeating-linear-gradient(2deg,#fff5d979 0 1px,transparent 1px 4px), radial-gradient(ellipse at 70% 50%, #f9e8cb, #ebcfaa); }
.mast[data-phase="1"] { background-image: repeating-linear-gradient(43deg,#45726b15 0 1px,transparent 1px 8px), linear-gradient(105deg,#f5ead3,#cfdfce); }
.mast[data-phase="2"] { background-image: repeating-linear-gradient(0deg,#f6dda4 0 1px,transparent 1px 6px), linear-gradient(105deg,#f9ebd0,#efc3a1); }
.mast[data-phase="3"] { background-image: radial-gradient(#735d8742 1px,transparent 1px), linear-gradient(105deg,#f3ead5,#ddd0df); background-size: 11px 11px,auto; }
.mast-inner { z-index: 1; padding: 2.45rem 0 2.7rem 3.35rem; }
.mast-jp { margin: 0 0 .5rem; font-family: var(--serif); font-size: .85rem; letter-spacing: .28em; color: var(--red); font-weight: 700; }
h1,h2,h3,p,figure { margin: 0; }
h1 { font: 700 clamp(3.05rem,6.2vw,6rem)/.95 var(--serif); letter-spacing: -.06em; color: var(--dark-red); }
:lang(zh-TW) h1 { letter-spacing: .04em; }
.mast-copy { font-family: var(--serif); font-size: clamp(.97rem,1.7vw,1.32rem); margin-top: .9rem; }
.gate { position: absolute; display: block; width: min(50%,560px); height: auto; right: 3.5%; bottom: 0; z-index: -1; }
.clock { display: grid; position: absolute; bottom: 1rem; right: 1rem; padding: .5rem .7rem; gap: .05rem; border: 1px solid #bf9d70; border-radius: 6px; background: #fff3dae9; color: var(--dark-red); font-variant-numeric: tabular-nums; }
.clock span,.clock small { font-size: .67rem; }
.clock time { font-family: Georgia, serif; font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.workroom { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(245px,.9fr); gap: 1.2rem; margin-top: 1.2rem; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 11px; background: var(--light); box-shadow: 0 4px 15px #6a402409; }
.play,.archive { padding: 1.15rem; }
.panelhead,figcaption { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
h2 { font: 700 1.65rem/1 var(--serif); color: var(--dark-red); }
.panelhead p { margin-top: .43rem; font-size: .79rem; color: var(--mute); }
.primary { background: var(--red); color: #fff9ed; border-color: var(--red); font-weight: 650; }
.primary:hover:not(:disabled) { background: var(--dark-red); }
.modes { margin-top: .85rem; display: flex; gap: .5rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.modes button { border-color: transparent; background: transparent; color: var(--mute); }
.modes button[aria-pressed="true"] { background: #f2e2c8; border-color: #ccb187; color: var(--dark-red); font-weight: 650; }
.modes small { margin-left: .3rem; }
#boards { display: grid; gap: .55rem; margin: .65rem 0 .75rem; }
.board { display: grid; grid-template-columns: minmax(100px, 1.2fr) repeat(3,minmax(0,1fr)); align-items: stretch; gap: .4rem; }
.board-title { display: grid; align-content: center; justify-items: start; gap: .05rem; grid-template-columns: 2rem auto; align-items: center; }
.glyph { grid-row: span 2; display: inline-grid; place-items: center; color: var(--red); }
.glyph svg { width: 1.5rem; height: 1.5rem; }
.board-title h3 { font: 700 1rem/1.15 var(--serif); }
.board-title small { color: var(--mute); font-size: .67rem; }
.sign { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .19rem; padding: .44rem .25rem; min-height: 56px; font-size: .76rem; }
.sign span { color: var(--mute); font-variant-numeric: tabular-nums; }
.sign[aria-pressed="true"] { border-color: var(--gold); background: #f4e3b8; }
.actions,.gold-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
#collect-info,#paid-quote { color: var(--mute); font-size: .75rem; }
.gold-controls { padding: .65rem 0; margin-bottom: .65rem; border-block: 1px solid var(--line); }
.gold-controls label { display: block; font-weight: 650; font-size: .75rem; margin-bottom: .3rem; }
.gold-controls input { max-width: 5rem; min-height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: .3rem; }
.gold-controls .primary { margin-left: auto; }
#notice { min-height: 1.4rem; padding-top: .35rem; color: var(--mute); font-size: .78rem; }
#tx-link { font-size: .78rem; }
.specimen { padding: .8rem; background: #f4e7cd; }
figcaption { margin-bottom: .6rem; }
figcaption h2 { font-size: 1.06rem; }
figcaption time { font-size: .65rem; color: var(--mute); }
#art { display: block; width: 100%; height: auto; max-height: 445px; border-radius: .55rem; object-fit: contain; }
.archive { margin-top: 1.22rem; }
.archive time { font-size: .75rem; color: var(--mute); }
#history { display: grid; grid-template-columns: repeat(24, minmax(0,1fr)); gap: .22rem; margin-top: .7rem; }
.history-hour { display: grid; align-items: center; padding: .36rem .18rem; gap: .15rem; }
.history-hour[aria-pressed="true"] { border-color: var(--red); background: #f2e2c8; }
.line { display: flex; justify-content: center; gap: 2px; }
.line i { width: 5px; height: 5px; border-radius: 50%; background: #e6d8bf; }
.line .lit { background: var(--red); }
#history-detail { font-size: .8rem; color: var(--mute); margin-top: .62rem; }
footer { display: flex; gap: 1.1rem; margin: 1.3rem 0 1.65rem; font-size: .8rem; }
@media (max-width: 760px) {
  main { width: calc(100% - 1.6rem); }
  .workroom { grid-template-columns: 1fr; }
  .specimen { justify-self: center; width: min(100%,420px); }
  .mast { min-height: 280px; align-items: start; }
  .mast-inner { padding: 1.65rem 1rem; }
  .gate { width: min(90%,490px); right: 0; }
  #history { grid-template-columns: repeat(12,minmax(0,1fr)); }
}
@media (max-width: 450px) {
  .mast { min-height: 250px; }
  .mast-copy { max-width: 12rem; }
  .play,.archive { padding: .72rem; }
  .board { grid-template-columns: 1.12fr repeat(3,minmax(0,1fr)); gap: .25rem; }
  .board-title { grid-template-columns: 1.2rem auto; gap: .13rem; }
  .glyph svg { width: 1.08rem; height: 1.08rem; }
  .board-title h3 { font-size: .82rem; }
  .sign { font-size: .7rem; }
  .panelhead .primary { white-space: nowrap; padding-inline: .5rem; }
  .gold-controls .primary { margin-left: 0; }
  #history { grid-template-columns: repeat(8,minmax(0,1fr)); }
}
