:root {
  color-scheme: light;
  --paper: #f6f1e5;
  --paper-deep: #eee4d0;
  --white: #fffdf8;
  --ink: #30251f;
  --muted: #6f5c4e;
  --line: #ded0b4;
  --red: #751a25;
  --red-dark: #4f1019;
  --gold: #c6a15a;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { color: var(--white); background: var(--red); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.topbar, .admin-top { height: 68px; padding: 0 max(22px, calc((100% - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--white); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 148px; height: 58px; object-fit: cover; object-position: left center; }
.top-link { color: var(--red); text-decoration: none; font-size: 12px; }
.top-link span { color: var(--gold); margin-left: 5px; }

.hero { min-height: 405px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 70px; padding: 46px max(26px, calc((100% - 940px) / 2)); color: #fff7e6; background: var(--red-dark); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(212, 181, 119, .3); }
.hero::before { width: 410px; height: 410px; border-radius: 50%; right: -110px; top: -195px; }
.hero::after { width: 280px; height: 280px; border-radius: 50%; right: -44px; top: -130px; }
.hero-copy { position: relative; z-index: 1; width: min(590px, 68%); }
.hero-overline { color: #e3c98f; font-size: 12px; letter-spacing: 2px; margin: 0 0 18px; }
.hero h1 { color: #f4dfae; font: 800 52px/1.34 var(--serif); margin: 0; }
.hero-copy > p:not(.hero-overline) { font: 500 15px/1.8 var(--serif); color: #fff3d9; margin: 16px 0 29px; }
.hero-bottom { display: flex; align-items: center; gap: 13px; color: #dbbf81; font-size: 10px; }
.hero-bottom span + span { border-left: 1px solid rgba(219, 191, 129, .55); padding-left: 13px; letter-spacing: 1px; }
.hero-poster { position: relative; z-index: 1; display: block; width: 182px; height: 306px; object-fit: cover; object-position: top; border: 1px solid rgba(226, 194, 126, .65); box-shadow: 0 10px 20px rgba(0, 0, 0, .32); }

.intro { max-width: 900px; margin: 0 auto; padding: 49px 25px 48px; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.seal { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--red); color: var(--red); font: 700 18px var(--serif); }
.section-title p { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.section-title h2 { margin: 0; font: 700 19px/1.5 var(--serif); }
.event-description { max-width: 720px; margin: 0 0 22px 50px; color: #69594b; font: 14px/1.9 var(--serif); }
.event-facts { display: grid; grid-template-columns: 1fr 1.5fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { min-width: 0; padding: 17px 19px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact small { display: block; color: var(--red); font-size: 11px; margin-bottom: 6px; }
.fact strong { display: block; font-size: 11px; line-height: 1.75; font-weight: 600; }
.date-steps { display: flex; align-items: center; gap: 15px; margin: 18px 0 0 50px; }
.date-steps > div { display: flex; align-items: baseline; gap: 8px; }
.date-steps small { display: block; color: var(--muted); font-size: 10px; }
.date-steps strong { color: var(--ink); font-size: 11px; }
.date-steps b { width: 30px; height: 1px; background: var(--gold); }

.signup-section { padding: 44px max(22px, calc((100% - 850px) / 2)) 64px; background: var(--paper-deep); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.section-caption { color: var(--muted); font-size: 10px; margin: 0 0 3px; }
.section-heading h2 { color: var(--red); font: 700 24px/1.4 var(--serif); margin: 0; }
.signup-status { display: flex; align-items: center; gap: 7px; padding-bottom: 3px; color: var(--muted); font-size: 10px; }
.signup-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.signup-status.open i { background: #438454; }
.signup-status.ended i { background: #a33; }
.channel-list { display: grid; gap: 9px; }
.channel { display: grid; grid-template-columns: minmax(0, 1fr) 98px; align-items: stretch; overflow: hidden; background: var(--white); border: 1px solid #e3d6be; transition: border-color .18s, background .18s; }
.channel.selected { border-color: var(--red); background: #fffaf0; }
.channel.closed { opacity: .64; background: #f3eee4; }
.channel-main { min-width: 0; padding: 13px 17px 11px; }
.channel-heading { display: flex; align-items: center; gap: 12px; }
.channel-index { color: #b79a65; font: 600 11px var(--serif); }
.channel-heading > div { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.channel-name { color: var(--ink); font: 700 16px var(--serif); }
.channel-range { color: var(--muted); font-size: 11px; }
.channel-price { flex: 0 0 auto; color: var(--red); font: 700 20px var(--serif); }
.channel-price small { color: var(--muted); font: 10px var(--sans); }
.channel-note { margin: 3px 0 8px 27px; color: #6f5c4e; font-size: 11px; }
.channel-progress { height: 2px; margin-left: 27px; background: #eee6d7; }
.channel-progress i { display: block; height: 100%; background: var(--gold); }
.channel-bottom { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0 27px; color: #6f5c4e; font-size: 10px; }
.channel-badge { color: var(--red); }
.channel-select { border: 0; border-left: 1px solid #eee4d3; background: #faf6eb; color: var(--red); font-size: 11px; cursor: pointer; transition: color .18s, background .18s; }
.channel-select:hover:not(:disabled), .channel.selected .channel-select { color: #fff4dc; background: var(--red); }
.channel-select:disabled { color: #978b7c; background: #eee9df; cursor: not-allowed; }

.signup-form { margin-top: 24px; padding: 23px 25px 24px; background: var(--white); border-top: 2px solid var(--gold); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 15px; padding-bottom: 11px; border-bottom: 1px solid #eee5d4; }
.form-heading h3 { margin: 0; font: 700 16px var(--serif); }
.form-heading span, .form-note { color: #746553; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 17px; }
.form-grid label, .admin-content label { display: flex; flex-direction: column; gap: 6px; color: #71604e; font-size: 11px; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .admin-content input, .admin-content textarea { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #e1d7c5; border-radius: 0; outline: none; background: #fffefa; color: var(--ink); font: 12px var(--sans); }
.form-grid input:focus, .form-grid select:focus, .admin-content input:focus, .admin-content textarea:focus { border-color: var(--gold); }
.form-grid input::placeholder { color: #75685b; }
.submit-btn, .admin-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px; margin-top: 19px; border: 0; background: var(--red); color: #fff6e4; font-size: 13px; cursor: pointer; transition: background .18s; }
.submit-btn:hover:not(:disabled), .admin-button:hover { background: #8e2830; }
.submit-btn:disabled { background: #a99c8f; cursor: not-allowed; }
.submit-btn span { color: #e9c778; font-size: 18px; }
.form-note { margin: 10px 0 0; text-align: center; }
.closing { display: flex; align-items: center; justify-content: center; min-height: 128px; color: #f0d99f; background: var(--red); }
.closing p { margin: 0; font: 700 19px var(--serif); }
.footer { display: flex; justify-content: space-between; padding: 13px max(22px, calc((100% - 850px) / 2)); color: #d4bd8d; background: var(--red-dark); font-size: 10px; }

.toast { position: fixed; z-index: 9; left: 50%; bottom: 28px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 12px 18px; background: #30251f; color: #fff7e9; font-size: 12px; transition: .22s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
dialog { width: min(400px, calc(100% - 36px)); border: 0; padding: 36px 28px; text-align: center; background: var(--paper); color: var(--ink); box-shadow: 0 18px 80px #1d080b66; }
dialog::backdrop { background: #1e070bcc; }
.dialog-close { position: absolute; top: 10px; right: 13px; border: 0; background: transparent; color: var(--muted); font-size: 23px; }
.success-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%; background: #e8dfc4; color: var(--red); font-size: 20px; }
dialog h2 { margin: 8px; font: 700 21px var(--serif); }
dialog p:not(.eyebrow) { color: #786753; font-size: 12px; line-height: 1.9; }
.dialog-done { width: 100%; height: 43px; margin-top: 12px; border: 0; background: var(--red); color: #fff3d8; }

.admin-shell { min-height: 100vh; background: var(--paper); }
.admin-top { border-bottom: 1px solid var(--line); }
.admin-content { max-width: 920px; margin: auto; padding: 42px 24px 80px; }
.admin-title { margin-bottom: 24px; }
.admin-title h1 { margin: 0 0 8px; color: var(--red); font: 700 28px var(--serif); }
.admin-title > p:last-child { color: var(--muted); font-size: 12px; }
.login-panel, .settings-panel, .registrations-panel { border: 1px solid var(--line); background: var(--white); }
.login-panel { max-width: 430px; padding: 26px; }
.login-panel form { display: grid; gap: 16px; }
.login-panel .admin-button { margin-top: 0; }
.admin-tabs { display: flex; align-items: center; gap: 22px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.admin-tabs button { padding: 12px 1px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.admin-tabs button.active { border-bottom: 2px solid var(--red); color: var(--red); }
.admin-tabs button span { margin-left: 4px; color: #a48b66; }
.admin-tabs button.logout { margin-left: auto; color: var(--red); }
.settings-panel { padding: 0; }
.settings-group { display: grid; gap: 13px; padding: 23px 26px; border-bottom: 1px solid #eee6d9; }
.settings-group h2, .registrations-panel h2 { margin: 0 0 2px; font: 700 15px var(--serif); }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.channel-settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.channel-setting { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid #e9dfce; }
.channel-setting strong { grid-column: 1 / -1; color: var(--red); font: 600 13px var(--serif); }
.channel-setting input { height: 36px; padding: 0 8px; font-size: 11px; }
.admin-content textarea { height: auto; padding: 10px 11px; resize: vertical; }
.upload-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.upload-row img { width: 68px; height: 90px; border: 1px solid var(--line); object-fit: cover; }
.upload-row span { color: var(--muted); font-size: 10px; }
.upload-button, .export-button { display: inline-flex; align-items: center; justify-content: center; height: 37px; padding: 0 13px; border: 1px solid #d8c6a5; color: var(--red); font-size: 11px; cursor: pointer; }
.save-button { max-width: 260px; margin: 21px 26px 24px; }
.registrations-panel { padding: 22px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.list-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.export-button { background: var(--white); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
th, td { padding: 11px 9px; border-bottom: 1px solid #eee6d9; text-align: left; }
th { color: var(--muted); font-weight: 500; }
td { color: #4d3b30; }
.empty-row { padding: 28px; color: var(--muted); text-align: center; }
.admin-shell[hidden], [hidden] { display: none !important; }

@media (min-width: 900px) { .hero { min-height: 430px; } }
@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 16px; }
  .brand img { width: 130px; height: 51px; }
  .hero { min-height: 335px; justify-content: flex-start; gap: 8px; padding: 36px 19px 32px; }
  .hero-copy { flex: 1 1 0; width: auto; min-width: 0; }
  .hero-overline { max-width: 235px; font-size: 10px; line-height: 1.8; letter-spacing: 1px; }
  .hero h1 { font-size: 34px; line-height: 1.45; }
  .hero-copy > p:not(.hero-overline) { max-width: 230px; margin: 11px 0 20px; font-size: 12px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 2px; font-size: 9px; }
  .hero-bottom span + span { padding: 0; border: 0; }
  .hero-poster { flex: 0 0 76px; width: 76px; height: 170px; object-position: top; }
  .hero::before { width: 270px; height: 270px; right: -170px; top: -112px; }
  .hero::after { width: 190px; height: 190px; right: -126px; top: -72px; }
  .intro { padding: 34px 18px 33px; }
  .event-description { margin: 0 0 18px; font-size: 12px; line-height: 1.85; }
  .event-facts { grid-template-columns: 1fr; }
  .fact { padding: 12px 2px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact small { margin-bottom: 2px; }
  .fact strong { font-size: 11px; }
  .date-steps { gap: 9px; margin: 14px 0 0; }
  .date-steps > div { gap: 5px; flex-direction: column; }
  .date-steps b { width: 24px; margin-bottom: 7px; }
  .signup-section { padding: 34px 14px 42px; }
  .section-heading { align-items: flex-start; margin-bottom: 15px; }
  .section-heading h2 { font-size: 21px; }
  .signup-status { max-width: 145px; padding-top: 14px; font-size: 9px; }
  .channel-list { gap: 8px; }
  .channel { grid-template-columns: minmax(0, 1fr) 76px; }
  .channel-main { padding: 11px 10px 9px; }
  .channel-heading { gap: 8px; }
  .channel-heading > div { align-items: flex-start; flex-direction: column; gap: 0; }
  .channel-name { font-size: 14px; }
  .channel-range { font-size: 10px; }
  .channel-price { font-size: 17px; }
  .channel-price small { display: block; text-align: right; font-size: 8px; }
  .channel-note, .channel-progress, .channel-bottom { margin-left: 21px; }
  .channel-note { margin-top: 2px; margin-bottom: 6px; font-size: 10px; }
  .channel-bottom { font-size: 9px; }
  .channel-badge { white-space: nowrap; }
  .channel-select { padding: 0 4px; font-size: 10px; }
  .signup-form { margin-top: 17px; padding: 20px 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid label.wide { grid-column: auto; }
  .form-grid input, .form-grid select { height: 44px; }
  .closing { min-height: 100px; }
  .closing p { font-size: 17px; }
  .footer { padding: 11px 15px; }
  .admin-top { height: 58px; padding: 0 15px; }
  .admin-content { padding: 31px 14px 55px; }
  .login-panel, .settings-group, .registrations-panel { padding: 18px 14px; }
  .settings-grid, .channel-settings { grid-template-columns: 1fr; }
  .channel-setting { grid-template-columns: 1fr 1fr; }
  .save-button { max-width: calc(100% - 28px); margin: 18px 14px; }
  .admin-tabs { gap: 14px; }
  .admin-tabs button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Registration page refresh: campaign colors from the supplied red seal and poster. */
:root {
  --paper: #fffaf1;
  --paper-deep: #f4ead6;
  --white: #fffefa;
  --ink: #35241e;
  --muted: #70554b;
  --line: #e2cda9;
  --red: #bd2628;
  --red-dark: #5a1018;
  --gold: #d5a74f;
}
body { background: var(--paper); }
.topbar { height: 66px; background: var(--red-dark); }
.brand { gap: 9px; color: #fffaf1; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; font: 700 16px/1.25 var(--serif); }
.brand-name small { color: #edcf8e; font: 11px/1.4 var(--sans); letter-spacing: 1px; }
.top-link { color: #fff1d3; }
.top-link span { color: #f0c565; }
.hero { display: block; width: 100%; min-height: 0; padding: 0; background: var(--red-dark); }
.hero::before, .hero::after { display: none; }
.hero-art { width: 100%; margin: 0; overflow: hidden; border: 0; box-shadow: none; }
.hero-poster { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; border: 0; box-shadow: none; }
.hero-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 900px) {
  .hero-poster { height: min(38vw, 560px); object-fit: cover; }
}
.hero-copy > p:not(.hero-overline) { margin: 0 0 8px; color: #fff5df; font: 500 14px/1.7 var(--serif); }
.hero-bottom { justify-content: center; color: #f0d18e; font-size: 11px; flex-wrap: wrap; }
.hero-bottom span + span { border-left-color: rgba(240, 209, 142, .55); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.intro { padding-top: 37px; padding-bottom: 38px; }
.section-title { gap: 11px; }
.seal { width: 38px; height: 38px; border: 0; color: #fff7e7; background: var(--red); font-size: 16px; }
.section-title p { color: var(--red); }
.section-title h2 { color: var(--red-dark); }
.event-description { color: #59453d; }
.event-facts { border-top-color: var(--line); border-bottom-color: var(--line); }
.fact small { color: var(--red); }
.date-steps strong { color: var(--red-dark); }
.date-steps b { background: var(--red); }
.signup-section { padding-top: 37px; background: #f7efdf; }
.section-caption { color: var(--red); }
.section-heading h2 { color: var(--red-dark); }
.signup-status { color: #5b4a40; }
.signup-status.open i { background: #4d7b49; }
.channel-list { gap: 11px; }
.channel { grid-template-columns: minmax(0, 1fr) 105px; border: 1px solid #dfcba9; border-radius: 8px; box-shadow: 0 3px 10px rgba(86, 41, 24, .06); }
.channel.selected { border-color: var(--red); background: #fff8eb; box-shadow: 0 4px 14px rgba(151, 31, 29, .13); }
.channel.closed { opacity: .68; }
.channel-main { padding: 14px 16px 12px; }
.channel-heading { gap: 10px; }
.channel-index { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; color: #fffaf1; background: var(--red); font: 700 11px var(--sans); }
.channel-heading > div { gap: 7px; }
.channel-name { color: var(--red-dark); }
.channel-range { color: #70554b; }
.channel-price { color: var(--red); font-variant-numeric: tabular-nums; }
.channel-note { color: #624b40; }
.channel-progress { height: 3px; border-radius: 4px; background: #f0e4cf; }
.channel-progress i { border-radius: inherit; background: linear-gradient(90deg, #bd2628, #d5a74f); }
.channel-bottom { color: #624b40; }
.channel-badge { color: var(--red); font-weight: 600; }
.channel-select { border-left-color: #eadcc4; background: #fff8eb; color: var(--red); font-weight: 600; }
.channel-select:hover:not(:disabled), .channel.selected .channel-select { background: var(--red); }
.channel-select:disabled { color: #725f51; background: #eee5d7; }
.signup-form { margin-top: 20px; border-top: 3px solid var(--red); border-radius: 0; box-shadow: 0 4px 16px rgba(86, 41, 24, .06); }
.form-heading h3 { color: var(--red-dark); }
.form-grid input, .form-grid select { border-color: #ddc9a8; border-radius: 4px; background: #fffdf7; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(189, 38, 40, .12); }
.submit-btn { border-radius: 4px; background: var(--red); font-weight: 700; }
.submit-btn:hover:not(:disabled) { background: #a51d24; }
.submit-btn:disabled { background: #9e8c7e; color: #fffaf1; }
.closing { min-height: 94px; padding: 12px; color: #f7e1ad; background: var(--red-dark); }
.footer { color: #f0d9a6; background: #3d0c13; }
.footer .build-meta { margin-left: auto; color: #d7bb91; }
::selection { background: var(--red); }
:focus-visible { outline-color: var(--red); }
@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 16px; }
  .footer { flex-wrap: wrap; gap: 4px 12px; }
  .footer .build-meta { width: 100%; margin-left: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 15px; }
  .hero { padding: 0; }
  .hero-art { width: 100%; max-width: none; }
  .hero-poster { height: auto; object-fit: contain; }
  .intro { padding: 31px 18px 30px; }
  .signup-section { padding: 31px 14px 38px; }
  .channel { grid-template-columns: minmax(0, 1fr) 78px; }
  .channel-main { padding: 11px 10px 9px; }
  .channel-heading { gap: 7px; }
  .channel-index { width: 23px; height: 23px; flex-basis: 23px; font-size: 10px; }
  .channel-heading > div { gap: 1px; }
  .channel-name { font-size: 13px; }
  .channel-range { font-size: 9px; }
  .channel-price { font-size: 16px; }
  .channel-note, .channel-progress, .channel-bottom { margin-left: 30px; }
  .channel-note { font-size: 10px; }
  .channel-bottom { font-size: 9px; }
  .channel-select { padding: 0 3px; font-size: 10px; }
  .signup-form { padding: 18px 14px 20px; }
}
