:root {
  color-scheme: light;
  font-family: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: #302023;
  background: #f5eee5;
  -webkit-text-size-adjust: 100%;
  --wine: #632638;
  --dark-wine: #3c1520;
  --gold: #f6d5a0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p, h1, h2 { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.page { max-width: 544px; margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 51px 20px 61px;
  color: #fff5e4;
  background: radial-gradient(ellipse at 50% 50%, #703144, transparent 72%), var(--dark-wine);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 344px;
  top: -62px;
  border: 1px solid #eac28d38;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #eac28d17, 0 0 0 29px #eac28d12;
  pointer-events: none;
}
.hero::before { left: -380px; transform: rotate(-26deg); }
.hero::after { right: -380px; transform: rotate(26deg); }
.organizer { font-size: .875rem; color: var(--gold); letter-spacing: .09em; }
h1 {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: clamp(1.875rem, 9vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .045em;
  margin-top: 13px;
}
.floor, .seat-floor { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.floor { margin-top: 19px; font-size: .875rem; }
.pin {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  color: #a86530;
}
.hero .pin { color: var(--gold); }

.lookup {
  position: relative;
  margin: -29px 16px 0;
  padding: 23px 20px 22px;
  border: 1px solid #eadbc9;
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 12px 36px #592a2610;
}
form { display: grid; gap: 10px; }
label { font-size: .9375rem; font-weight: 700; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #d6c5ba;
  border-radius: 10px;
  color: #302023;
  background: #fbf8f4;
  font-size: 1rem;
}
input::placeholder { color: #796963; opacity: 1; }
input:focus, :is(button, .navigation):focus-visible { outline: 2px solid #9b663d; outline-offset: 3px; }
.submit {
  min-height: 52px;
  margin-top: 2px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: white;
  font-weight: 700;
  letter-spacing: .04em;
}
.submit:hover { background: var(--dark-wine); }
.submit:disabled { opacity: .72; cursor: wait; }
.status { margin-top: 16px; font-size: .875rem; line-height: 1.6; color: #6f504e; }
.status.error { color: #8b2c36; }
.seat {
  margin-top: 19px;
  padding: 16px 14px 17px;
  border: 1px solid #e8ccab;
  border-radius: 13px;
  text-align: center;
  background: #f9eddf;
}
.seat:focus { outline: 2px solid #b8895d; outline-offset: 3px; }
.welcome { color: #6f504e; font-size: .875rem; overflow-wrap: anywhere; }
.seat h2 { margin: 1px 0; font-size: clamp(1.875rem, 9vw, 2.45rem); line-height: 1.2; color: var(--wine); }
.room { margin-top: 4px; font-size: 1.35rem; font-weight: 700; }
.seat-floor { margin-top: 8px; color: #6a4338; font-size: .875rem; }
.matches { display: grid; gap: 8px; margin-top: 10px; }
.match {
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
  color: var(--wine);
  background: #fbf8f4;
  border: 1px solid #d6c5ba;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.venue {
  margin: 14px 16px 0;
  padding: 16px 20px;
  border: 1px solid #eadbc9;
  border-radius: 15px;
  background: #fffdf9;
}
.venue h2 { font-size: .9375rem; line-height: 1.5; }
.venue p { margin: 4px 0 10px; color: #705b54; font-size: .8125rem; line-height: 1.65; }
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dfbf9c;
  border-radius: 9px;
  background: #faf0e4;
  color: var(--wine);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.navigation:hover { background: #f3e1ce; }
footer { padding: 20px 12px 28px; color: #705b54; text-align: center; font-size: .8125rem; }
noscript p { margin-top: 12px; }

@media (min-width: 560px) {
  body { padding: 48px 18px; }
  .hero { border-radius: 24px 24px 9px 9px; }
  .lookup { margin-inline: 24px; padding-inline: 26px; }
  .venue { margin-inline: 24px; padding-inline: 26px; }
}
