:root {
  color-scheme: dark;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #f7efe4;
  background: #100d0b;
  --paper: #100d0b;
  --surface: #211915;
  --ink: #f7efe4;
  --muted: #c4b3a3;
  --gold: #e8c38a;
  --line: #705639;
  --gutter: clamp(16px, 5.2vw, 25px);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { min-height: 44px; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold); }
p, h1, h2, h3 { margin: 0; }
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--paper);
  isolation: isolate;
}
.loading { padding: 36px var(--gutter); color: var(--muted); }
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 155px;
  background:
    linear-gradient(0deg, var(--paper), transparent 85%),
    linear-gradient(90deg, var(--paper) 10%, #100d0be6 39%, #100d0b30 100%),
    url("/poster.jpg") center 28% / 100% auto;
}
.header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) calc(var(--gutter) - 10px) 10px;
  min-height: 70px;
}
.wordmark { font-weight: 750; font-size: 27px; letter-spacing: -1.1px; text-align: center; }
.header .back {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}
.content { padding: 21px var(--gutter) 25px; }
h1 { margin-bottom: 24px; font-size: clamp(25px, 7.8vw, 36px); letter-spacing: -.025em; line-height: 1.22; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 17px; line-height: 1.35; }
.muted, .label { color: var(--muted); }
.label { font-size: 13px; }
.notice { margin-top: 15px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.status { color: #ffd098; font-size: 14px; line-height: 1.5; margin-block: 12px; }
.status:empty { display: none; }
.dock {
  margin-top: auto;
  padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom));
  background: var(--paper);
}
.sticky { position: sticky; bottom: 0; z-index: 2; }
.primary, .outline {
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 51px;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  padding: 10px;
}
.primary { background: var(--gold); color: #1d140c; }
.primary:disabled { background: #3a3028; color: #cfbaaa; }
.outline { background: transparent; color: var(--ink); border-color: var(--gold); }
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  text-underline-offset: 4px;
  text-decoration: underline;
  font-size: 14px;
}
.dock .link { display: flex; width: fit-content; margin: 4px auto 0; }
.hero {
  position: relative;
  min-height: clamp(366px, 60vh, 570px);
  min-height: clamp(366px, 60svh, 570px);
  padding: max(32px, env(safe-area-inset-top)) var(--gutter) 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #110d0a;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #100d0b5c, transparent 28%, #100d0b10 48%, #100d0be8),
    url("/poster.jpg") center 27% / 100% auto no-repeat;
}
.hero .wordmark { font-size: clamp(36px, 10vw, 52px); color: #fff; line-height: 1; }
.hero-title { font-size: clamp(33px, 9vw, 45px); font-weight: 350; letter-spacing: .12em; line-height: 1.30; }
.hero-date { margin-top: 16px; font-size: 14px; }
.hero-cities { margin-top: 8px; font-size: 12px; letter-spacing: .035em; }
.home-details { padding: 18px var(--gutter) 4px; border-top: 1px solid var(--line); }
.home-details h1 { margin-bottom: 13px; font-size: clamp(21px, 6vw, 30px); }
.home-details .period { padding-block: 12px; border-block: 1px solid var(--line); }
.period strong { display: block; font-size: clamp(23px, 6vw, 30px); font-weight: 550; margin-top: 2px; font-variant-numeric: tabular-nums; }
.home-rule { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 13px; font-size: 13px; }
.home-dock { display: grid; grid-template-columns: 1fr 1.64fr; gap: 10px; padding-top: 9px; }
.field { margin-top: 25px; }
.field label { display: block; margin-bottom: 9px; font-size: 15px; }
.field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.field input::placeholder { color: #c0ad9a; opacity: .8; }
.code-field { position: relative; }
.code-field input { padding-right: 122px; }
.code-field .link { position: absolute; right: 12px; top: 4px; text-decoration: none; }
.code-field .link:disabled { color: var(--muted); }
.cards { display: grid; gap: 12px; }
.card, .city-row, .slot, .day {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.card { padding: 17px; }
.city-row {
  display: grid;
  grid-template-columns: 56px 1fr 14px;
  gap: 8px;
  align-items: center;
  padding: 14px;
  text-align: left;
  min-height: 59px;
}
.city-row strong { font-size: 19px; }
.city-row span:last-child { color: var(--gold); font-size: 22px; line-height: 1; }
.city-row .hotel { font-size: 14px; }
.hotel-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hotel-line h2 { font-size: 19px; }
.hotel-line .link { flex: none; }
.date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 19px; }
.day { padding: 0; border-radius: 6px; font-size: clamp(10px, 3vw, 13px); font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--gold); color: #1d140c; border-color: var(--gold); }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.slot { min-height: 53px; padding: 6px 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.slot span { display: block; }
.slot .remaining { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.slot[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.slot:disabled { color: #9c968e; background: #272421; border-color: #4d4740; }
.slot:disabled .remaining { color: #9c968e; }
.selection { margin-bottom: 8px; font-size: 14px; }
.card-head, .detail-row, .record-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head .link { min-height: 31px; margin-top: -6px; }
.appointment-time { display: block; white-space: nowrap; font-size: clamp(20px, 6.2vw, 28px); font-variant-numeric: tabular-nums; margin: 8px 0 14px; }
.card h2 { border-top: 1px solid var(--line); padding-top: 12px; }
.address { margin-top: 6px; color: var(--muted); font-size: 13px; }
.detail-row { font-size: 14px; }
.detail-row strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.booking-details { display: grid; gap: 10px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.confirm-privacy { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-size: 14px; }
.confirm-privacy label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.confirm-privacy input { width: 19px; height: 19px; accent-color: var(--gold); }
.success-mark { color: var(--gold); font-weight: 500; }
.record { margin-bottom: 13px; }
.record h2 { padding: 0 0 10px; border: 0; font-size: 17px; }
.record-row { padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.record-row:last-child { padding-bottom: 0; }
.record-row.heading { color: var(--muted); font-size: 13px; }
dialog { width: min(calc(100% - 36px), 420px); border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #000b; }
dialog p { margin-block: 13px; white-space: pre-wrap; line-height: 1.6; }
