:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #2b2022;
  background: #f4f1ed;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f4f1ed;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.lookup-panel {
  width: min(100%, 520px);
  padding: 42px 40px 38px;
  border: 1px solid rgba(99, 73, 79, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 22px 60px rgba(55, 38, 42, 0.12);
}

.date-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 30px;
  color: #8f243c;
  font: 600 13px/1 Arial, sans-serif;
}

.date-mark i {
  width: 28px;
  height: 1px;
  background: #c9a4ad;
  transform: rotate(-52deg);
}

header {
  margin: 18px 0 34px;
  text-align: center;
}

.occasion,
.location {
  margin: 0;
  color: #79686c;
  font-size: 12px;
  text-transform: uppercase;
}

.occasion {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 10px 0 9px;
  color: #2f2024;
  font-family: "Songti SC", SimSun, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

form label {
  display: block;
  margin-bottom: 8px;
  color: #55474a;
  font-size: 14px;
  font-weight: 600;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 10px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #cabfc1;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #2b2022;
  font-size: 16px;
}

input:focus {
  border-color: #8f243c;
  box-shadow: 0 0 0 3px rgba(143, 36, 60, 0.11);
}

button {
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #8f243c;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #761b30;
}

button:active {
  transform: translateY(1px);
}

.result {
  display: grid;
  min-height: 118px;
  margin-top: 18px;
  place-items: center;
  border-top: 1px solid #eadfe1;
  text-align: center;
}

.result:empty {
  min-height: 0;
  border-top: 0;
}

.result-card {
  width: 100%;
  padding-top: 20px;
}

.result-name {
  margin: 0 0 4px;
  color: #79686c;
  font-size: 14px;
}

.table-number {
  margin: 0;
  color: #8f243c;
  font-family: "Songti SC", SimSun, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
}

.not-found {
  margin: 0;
  padding-top: 18px;
  color: #6c5d60;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding-top: 10vh;
  }

  .lookup-panel {
    padding: 34px 22px 30px;
  }

  h1 {
    font-size: 27px;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button:active {
    transform: none;
  }
}
