:root {
  color-scheme: light;
  --paper: #f6eee1;
  --ink: #261b16;
  --sub: #665347;
  --rule: #b8a592;
  --accent: #982d21;
  --signal: #ff674c;
  --card: #eadcc9;
  font-family: ui-sans-serif, system-ui, "Noto Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px); max-width: 1560px; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.masthead, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.wordmark, .series, .board figcaption, footer { font-family: ui-monospace, "Courier New", monospace; }
.wordmark { text-transform: uppercase; font-weight: 800; font-size: .9rem; text-decoration: none; }
.wordmark span, .series { color: var(--accent); }
.lang select, input, select { border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); padding: 8px 10px; }
.intro { display: grid; grid-template-columns: 3fr 2fr; align-items: end; gap: 20px; padding: 36px 0 23px; }
.series { margin: 0 0 8px; text-transform: uppercase; font-size: .78rem; letter-spacing: .07em; font-weight: 700; }
h1, h2 { margin: 0; font-family: Georgia, "Noto Serif CJK TC", "Noto Serif CJK SC", serif; }
h1 { font-size: clamp(2.2rem, 7.5vw, 6.2rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.intro-text { color: var(--sub); margin: 0 0 3px; font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.55; max-width: 31ch; }
.navigator { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--rule); padding: 10px 0; }
.navigator button { padding: 4px; border: 1px solid transparent; background: var(--card); color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 4px; }
.navigator button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.navigator img { display: block; width: 100%; aspect-ratio: 2.1; object-fit: cover; background: var(--card); }
.navigator span { padding: 0 2px; font-size: clamp(.64rem, 1vw, .82rem); line-height: 1.15; overflow-wrap: anywhere; }
.composition { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); border-top: 1px solid var(--rule); }
.board { background: #211915; color: var(--paper); padding: clamp(10px, 2.4vw, 30px); margin: 0; align-self: start; }
.board img { display: block; background: #312318; width: 100%; object-fit: contain; height: auto; aspect-ratio: 1; }
.board figcaption { display: flex; justify-content: space-between; padding-top: 12px; color: #f0d2b4; font-size: .78rem; }
.purchase { padding: clamp(16px, 2.5vw, 34px); }
.purchase h2 { font-weight: 500; font-size: clamp(1.55rem, 3.7vw, 2.9rem); }
#market { color: var(--sub); margin: 9px 0 17px; font-size: .87rem; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 6px; font-size: .84rem; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.offer { border: 1px solid var(--rule); background: transparent; color: var(--ink); text-align: left; padding: 9px 9px 7px; }
.offer[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f8ddcb; }
.offer:disabled { opacity: .46; }
.offer strong, .offer small { display: block; }
.offer strong { font-size: .83rem; margin-bottom: 2px; }
.offer small { color: var(--sub); }
.download { margin: 12px 0 15px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .84rem; }
.download a { color: var(--accent); }
.refund-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.refund-actions button { font-size: .83rem; padding: 6px 9px; }
#refund-row { display: grid; width: 100%; gap: 6px; }
#refund-row label { font-size: .82rem; color: var(--sub); }
#refund-row input { width: 100%; }
form { display: grid; gap: 6px; }
form label { font-size: .82rem; color: var(--sub); }
form input, form select { width: 100%; min-width: 0; }
#second-row label, #budget-row label { display: block; margin-bottom: 6px; }
#action, #claim-refund, #reset-order { padding: 10px; border: 1px solid var(--ink); text-align: center; }
#action, #claim-refund { background: var(--ink); color: var(--paper); }
#action:disabled { opacity: .48; }
#reset-order { background: transparent; color: var(--ink); }
#check-refund { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
#checkout-notice { min-height: 1.3em; margin: 4px 0 0; white-space: pre-line; font-size: .85rem; overflow-wrap: anywhere; }
.seat-index { border-top: 1px solid var(--rule); padding: 22px 0 26px; }
.index-intro { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 13px; }
.index-intro h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; }
#index-status { color: var(--sub); font-size: .84rem; }
.seat-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seat-map article { background: var(--card); padding: 7px; min-width: 0; }
.seat-map h3 { margin: 0 0 6px; font-size: .81rem; font-weight: 500; }
.seat-map article > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.seat-map button { min-height: 36px; padding: 4px 1px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.seat-map button[data-taken="true"] { background: var(--accent); color: var(--paper); }
.seat-map button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
footer { border-top: 1px solid var(--rule); padding: 15px 0 24px; font-size: .73rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 13px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 760px) {
  .intro, .composition { grid-template-columns: 1fr; }
  .intro { gap: 12px; padding-top: 26px; }
  .intro-text { max-width: 40ch; }
  .navigator { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seat-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase { padding-left: 0; padding-right: 0; }
  footer { align-items: flex-start; flex-direction: column; }
}
