:root {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #19334b;
  background: #f2f5f8;
  --ink: #19334b;
  --muted: #586c7b;
  --navy: #122b43;
  --gold: #b58b3e;
  --line: #d8e1e8;
  --a: #bb4677;
  --b: #258668;
  --c: #af8121;
  --d: #287da8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #1d70ae; outline-offset: 3px; }
.school-strip { background: #0d2337; color: #eef2f4; padding: 12px max(20px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid #b58b3e70; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.shell { max-width: 1240px; margin: auto; padding: 20px 22px 42px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 218px; padding: 32px 44px; margin-bottom: 14px; border: 1px solid #385068; border-radius: 17px; background: radial-gradient(circle at 77% 15%, #3d5670 0, #263f58 23%, #122b43 63%); color: #fff; box-shadow: 0 12px 27px #122b4318; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid #d6bc8150; border-bottom: 0; border-radius: 50% 50% 0 0; pointer-events: none; }
.hero::before { width: 390px; height: 320px; right: 40px; top: -85px; }
.hero::after { width: 300px; height: 260px; right: 85px; top: -48px; }
.eyebrow { margin: 0 0 10px; color: #a47d39; font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: #e1c787; }
.hero h1 { margin: 0 0 11px; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1.14; letter-spacing: .035em; }
.lede { max-width: 660px; margin: 0; color: #d8e1e9; font-size: 14px; line-height: 1.8; }
.ticket-mark { position: relative; width: 166px; min-width: 166px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e2cfaa; border-left: 7px solid var(--gold); border-radius: 10px; background: #fffdf8; color: var(--navy); transform: rotate(4deg); box-shadow: 0 11px 0 #071b2c70, 0 20px 35px #071b2c50; }
.ticket-mark::before, .ticket-mark::after { content: ""; position: absolute; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: #233c55; }
.ticket-mark::before { top: -6px; }
.ticket-mark::after { bottom: -6px; }
.ticket-mark span { font-size: 11px; letter-spacing: .25em; }
.ticket-mark strong { margin: 3px 0; font-family: "Songti SC", "STSong", serif; font-size: 26px; letter-spacing: .14em; }
.ticket-mark small { color: #947b58; font-size: 9px; font-weight: 800; letter-spacing: .24em; }
.sale-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 20px; border: 1px solid #dec995; border-radius: 12px; background: #fffaf0; }
.sale-bar > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.sale-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.sale-bar strong { font-size: 15px; }
.sale-bar small { grid-column: 2; margin-top: 2px; color: #786d5f; font-size: 11px; }
.countdown { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sale-bar.open { border-color: #91cdb4; background: #eaf7f0; }
.sale-bar.open .sale-dot { background: #258668; }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 20px #15344e0a; }
.panel h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; letter-spacing: -.02em; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading p:not(.eyebrow) { max-width: 290px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.support { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.map-panel { border-top: 3px solid var(--gold); }
.map-swipe-hint { display: none; }
.stage { position: relative; overflow: hidden; margin-bottom: 11px; padding: 11px; border-radius: 48% 48% 4px 4px / 16px 16px 4px 4px; background: linear-gradient(100deg, #172e47, #284762 50%, #172e47); color: #fff; box-shadow: inset 0 -3px 0 #b58b3e; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .25em; }
.map-scroll { overflow-x: auto; padding: 2px 2px 10px; scrollbar-color: #b7c9d5 #eef3f6; }
.floor-plan { min-width: 660px; }
.front-row { display: grid; grid-template-columns: 1fr 1.16fr 2.2fr 1.16fr 1fr; gap: 6px; }
.front-center { display: grid; grid-template-rows: 42px auto auto; gap: 6px; }
.rear-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.aisle { margin: 10px 0; color: #677f8e; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .3em; }
.zone-block { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 6px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); text-align: left; transition: box-shadow .15s ease, transform .15s ease; }
.zone-block:hover { box-shadow: 0 0 0 2px #122b4366; transform: translateY(-1px); }
.zone-block.selected { outline: 3px solid var(--navy); outline-offset: 1px; }
.zone-block strong { font-size: 12px; }
.zone-block small { margin: 2px 0 5px; color: #415766; font-size: 8px; }
.zone-a { border-color: #d999b3; background: #faeaf1; }
.zone-b { border-color: #91cbb0; background: #e7f5ed; }
.zone-c { border-color: #e3ca78; background: #fff6dc; }
.zone-d { border-color: #9dcee6; background: #e8f4fa; }
.vip { display: grid; place-content: center; border: 1px solid #d6b666; border-radius: 7px; background: #fff0c9; text-align: center; font-size: 11px; }
.vip strong { font-size: 12px; }
.vip small { font-size: 9px; }
.seat-grid { display: grid; grid-template-columns: repeat(var(--seat-cols), minmax(0, 1fr)); gap: 1px; }
.seat { display: grid; place-items: center; height: 13px; min-width: 0; overflow: hidden; border-radius: 2px; background: #fffefdc4; font-family: Arial, Helvetica, sans-serif; font-size: 6px; font-weight: 700; letter-spacing: -.1px; line-height: 1; }
.front-row > .zone-block .seat-grid { flex: 1; grid-auto-rows: minmax(0, 1fr); }
.front-row > .zone-block .seat { height: auto; min-height: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 10px; color: #4b6474; font-size: 11px; font-weight: 700; }
.swatch { display: inline-block; vertical-align: middle; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; }
.swatch.a { background: var(--a); }
.swatch.b { background: var(--b); }
.swatch.c { background: var(--c); }
.swatch.d { background: var(--d); }
.swatch.vip-color { background: #d6b666; }
.booking-panel { border-top: 3px solid var(--navy); }
.zone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.zone-card { display: flex; justify-content: space-between; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fa; font-size: 11px; }
.zone-card strong { font-size: 13px; }
.zone-card span { color: var(--muted); }
.zone-card:nth-child(1) { border-left: 4px solid var(--a); }
.zone-card:nth-child(2) { border-left: 4px solid var(--b); }
.zone-card:nth-child(3) { border-left: 4px solid var(--c); }
.zone-card:nth-child(4) { border-left: 4px solid var(--d); }
.booking-panel form > label { display: block; margin: 0 0 13px; font-size: 12px; font-weight: 800; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-fields label { margin-bottom: 13px; font-size: 12px; font-weight: 800; }
input, select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 11px; border: 1px solid #b9c8d2; border-radius: 7px; background: #fff; color: var(--ink); }
input:hover, select:hover { border-color: #728c9d; }
input[type=file] { padding: 9px; font-size: 11px; line-height: 1.4; }
.bank-box { margin: 3px 0 15px; padding: 12px 13px; border: 1px solid #e5d6b7; border-left: 4px solid var(--gold); border-radius: 5px; background: #fffbf2; font-size: 12px; }
.bank-box p { margin: 5px 0 0; line-height: 1.6; }
.micro { margin: -4px 0 13px; color: #667c8a; font-size: 11px; line-height: 1.6; }
.total { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.total strong { color: var(--navy); font-size: 22px; }
.primary { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 7px; background: var(--navy); color: #fff; font-weight: 900; }
.primary:not(:disabled):hover { background: #264763; }
.primary:disabled { background: #9baab5; cursor: not-allowed; }
.message { min-height: 1.5em; font-size: 12px; line-height: 1.6; }
.message.error { color: #a32929; }
.message.success { color: #16633d; }
.receipt { margin-top: 10px; padding: 17px; border: 1px solid #8bcbaa; border-radius: 9px; background: #eaf8f0; line-height: 1.7; }
.receipt strong { display: block; font-size: 18px; }
.receipt small { color: #41645b; }
footer { padding: 25px 2px 0; color: #667b89; font-size: 11px; line-height: 1.7; }
footer a { margin-left: 8px; color: var(--navy); font-weight: 800; }
.admin-shell { max-width: 900px; }
.admin-shell .hero { min-height: 170px; padding: 27px 36px; }
.admin-shell .hero::before { right: -40px; }
.admin-shell .hero::after { right: 5px; }
.admin-shell button:not(.primary) { min-height: 42px; padding: 9px 12px; border: 1px solid #aec0cc; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 800; }
.admin-shell button:not(.primary):hover { border-color: var(--navy); background: #f3f7fa; }
.admin-shell button:disabled { opacity: .5; cursor: not-allowed; }
.admin-shell #admin-app > .primary { width: auto; margin: 8px 9px 8px 0; }
.admin-shell #admin-app > input { max-width: 360px; }
.admin-toolbar, .admin-tabs { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tabs { justify-content: flex-start; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.admin-tabs [aria-current=page] { border-color: var(--navy) !important; background: var(--navy) !important; color: #fff !important; }
.admin-order { margin: 12px 0; padding: 15px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 9px; background: #fbfcfd; }
.admin-order h3 { margin: 0 0 9px; color: var(--navy); font-size: 16px; }
.admin-order p { margin: 5px 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.admin-order input { max-width: 460px; }
.admin-order button { margin: 8px 8px 2px 0; }
.admin-order .primary { width: auto; }
.proof-image { display: block; max-width: min(100%, 620px); max-height: 70vh; margin: 10px 0; border: 1px solid var(--line); object-fit: contain; }
.admin-shell label { display: block; margin: 12px 0; font-size: 12px; font-weight: 800; }
.admin-shell input[type=checkbox] { display: inline-block; width: 22px; min-height: 22px; margin-left: 12px; vertical-align: middle; }
.admin-zone-setting { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; margin: 10px 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; }
.admin-zone-setting strong { grid-column: 1 / -1; }
.admin-zone-setting label { margin: 0; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .panel-heading { align-items: start; flex-direction: column; gap: 5px; }
  .floor-plan { min-width: 700px; }
}
@media (max-width: 570px) {
  .school-strip { padding: 11px 15px; font-size: 10px; }
  .shell { padding: 12px 11px 30px; }
  .hero { min-height: 0; padding: 24px 21px; }
  .hero::before { right: -240px; }
  .hero::after { right: -195px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 12px; }
  .ticket-mark { display: none; }
  .sale-bar { align-items: start; flex-direction: column; gap: 8px; padding: 12px 14px; }
  .countdown { padding-left: 19px; font-size: 20px; }
  .panel { padding: 15px; }
  .map-panel { padding: 15px 11px; }
  .map-swipe-hint { display: block; margin: -4px 0 12px; color: #526a79; font-size: 11px; font-weight: 800; text-align: center; }
  .map-scroll { margin-right: -5px; }
  .floor-plan { min-width: 1120px; }
  .zone-block strong { font-size: 13px; }
  .zone-block small { font-size: 10px; }
  .seat { height: 17px; font-size: 10px; }
  .front-row > .zone-block .seat { min-height: 17px; }
  .zone-list { gap: 6px; }
  .zone-card { padding: 8px; }
  .admin-shell .hero { padding: 23px 21px; }
  .admin-zone-setting { grid-template-columns: 1fr 1fr; }
  .admin-zone-setting label:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
