:root {
  --paper: #f8f1e6;
  --paper-deep: #efe3d1;
  --card: #fffdf8;
  --ink: #26221d;
  --muted: #7d7469;
  --line: rgba(54, 44, 34, 0.12);
  --tomato: #e85d3f;
  --tomato-dark: #be3f27;
  --tomato-soft: #fde4d9;
  --green: #4e7254;
  --green-soft: #e6eee2;
  --gold: #d3a64f;
  --shadow: 0 18px 46px rgba(70, 47, 25, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  color-scheme: light;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #dfd1be;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.62), transparent 22rem),
    linear-gradient(135deg, #dcc9ae, #f1e8da 52%, #d8c5ae);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-frame {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 203, 145, 0.23), transparent 20rem),
    var(--paper);
  box-shadow: 0 0 80px rgba(61, 42, 20, 0.2);
  overflow: hidden;
}

.app-frame::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 50%;
  width: min(100%, 520px);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 22px 10px;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: inset 0 -5px 8px rgba(104, 34, 18, 0.15);
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 19px;
  height: 3px;
  border-radius: 4px;
  background: #fff7eb;
}

.brand-mark span:nth-child(1) { transform: translateY(-6px); }
.brand-mark span:nth-child(2) { width: 24px; }
.brand-mark span:nth-child(3) { transform: translateY(6px); width: 15px; }

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
}

.icon-button svg,
.bottom-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 2px 22px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 93, 63, 0.14);
  border-radius: 12px;
  background: rgba(255, 247, 236, 0.72);
  color: #765d4c;
  font-size: 12px;
  line-height: 1.45;
}

.notice-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 4px rgba(232, 93, 63, 0.1);
}

.announcement-switch {
  display: inline-block;
  animation: announcement-in 350ms ease;
}

@keyframes announcement-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-strip.closed {
  border-color: var(--line);
  color: var(--muted);
}

.notice-strip.closed .notice-dot {
  background: #9f968b;
  box-shadow: none;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.view {
  display: none;
  padding: 0 20px 26px;
  animation: view-in 280ms ease-out;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--tomato-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 2px 13px;
}

.section-heading h2,
.page-title {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.section-heading p,
.page-lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-link {
  border: 0;
  background: none;
  color: var(--tomato-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.hero-menu {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border-radius: 32px 32px 24px 24px;
  background: #d7b380;
  box-shadow: var(--shadow);
}

.quality-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(78, 114, 84, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(115deg, rgba(230, 238, 226, 0.96), rgba(255, 252, 245, 0.93));
}

.quality-banner::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -28px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(78, 114, 84, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(78, 114, 84, 0.035);
}

.quality-banner strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quality-banner i {
  margin: 0 4px;
  color: #95a88d;
  font-style: normal;
  font-weight: 400;
}

.hero-menu img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.hero-menu::after {
  content: "";
  position: absolute;
  inset: 130px 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(31, 21, 12, 0.8));
}

.hero-topline {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-pill,
.stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(36, 27, 18, 0.72);
  color: #fff8ec;
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fffaf0;
}

.hero-copy h1 {
  margin: 0 0 6px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 0;
  max-width: 85%;
  color: rgba(255, 250, 240, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.hero-price {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #fffaf0;
  font-weight: 800;
}

.hero-price small {
  font-size: 12px;
}

.hero-price strong {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}

.hero-copy {
  bottom: 20px;
  padding-right: 90px;
}

.time-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mini-card strong {
  display: block;
  margin-top: 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  font-weight: 600;
}

.mini-card.accent {
  border-color: rgba(232, 93, 63, 0.19);
  background: var(--tomato-soft);
}

.mini-card.accent strong {
  color: var(--tomato-dark);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active {
  transform: scale(0.985);
}

.primary-button {
  width: 100%;
  margin-top: 13px;
  border: 1px solid var(--tomato);
  background: var(--tomato);
  color: #fffaf0;
  box-shadow: 0 10px 22px rgba(190, 63, 39, 0.18);
}

.primary-button:hover { background: var(--tomato-dark); }
.primary-button:disabled { opacity: 0.46; cursor: not-allowed; box-shadow: none; }

.secondary-button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.ghost-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.danger-button {
  border: 1px solid rgba(170, 55, 40, 0.2);
  background: #fff4f0;
  color: #a33f2f;
  font-size: 12px;
  min-height: 40px;
}

.wide { width: 100%; }

.delivery-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.summary-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-copy {
  min-width: 0;
  flex: 1;
}

.summary-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: #a69a8e;
  font-size: 20px;
}

.discount-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #303d32;
  color: #f5ebdc;
}

.discount-banner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -35px;
  top: -46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.03), 0 0 0 32px rgba(255, 255, 255, 0.025);
}

.discount-number {
  position: relative;
  z-index: 1;
  min-width: 64px;
  color: #f6c86f;
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.discount-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.discount-copy strong {
  display: block;
  font-size: 13px;
}

.discount-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(245, 235, 220, 0.68);
  font-size: 10px;
  line-height: 1.5;
}

.upcoming-heading {
  margin-top: 22px;
}

.upcoming-bookings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.upcoming-booking {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.82);
  text-align: left;
  cursor: pointer;
}

.upcoming-booking small,
.upcoming-booking strong,
.upcoming-booking span,
.upcoming-booking em {
  display: block;
}

.upcoming-booking small {
  color: var(--tomato-dark);
  font-size: 9px;
  font-weight: 800;
}

.upcoming-booking strong {
  margin-top: 5px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.upcoming-booking span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-booking em {
  margin-top: 9px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.upcoming-booking:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.78);
}

.menu-row.today {
  border-color: rgba(232, 93, 63, 0.3);
  box-shadow: 0 10px 26px rgba(82, 55, 27, 0.08);
}

.menu-row img {
  width: 104px;
  height: 84px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--paper-deep);
}

.menu-row-copy {
  min-width: 0;
}

.menu-row-copy small {
  color: var(--tomato-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.menu-row-copy h3 {
  margin: 5px 0 4px;
  overflow: hidden;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row-price {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  padding: 3px 3px 2px 0;
}

.menu-row-price strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

.closed-label {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.menu-book-button {
  padding: 7px 11px;
  border: 1px solid rgba(232, 93, 63, 0.2);
  border-radius: 8px;
  background: var(--tomato-soft);
  color: var(--tomato-dark);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.page-hero {
  margin: 4px 2px 20px;
}

.page-hero .page-title {
  font-size: 32px;
}

.page-lead {
  max-width: 380px;
}

.week-date {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 11px;
}

.order-card {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
}

.order-card-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.order-card-head h3 {
  margin: 5px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
}

.status {
  align-self: start;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--paper-deep);
  color: #796753;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status.paid,
.status.delivered {
  background: var(--green-soft);
  color: var(--green);
}

.status.pending_payment {
  background: #fff1d7;
  color: #8a621c;
}

.status.no_show {
  background: #f1e5e0;
  color: #89584b;
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 13px;
  font-size: 11px;
  color: var(--muted);
}

.order-card-body strong {
  color: var(--ink);
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: #fcf8f1;
}

.order-code {
  color: var(--muted);
  font-size: 10px;
}

.order-code strong {
  margin-left: 5px;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 52px 20px;
  border: 1px dashed rgba(63, 51, 39, 0.2);
  border-radius: 22px;
  text-align: center;
}

.empty-state .empty-illustration {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 28px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.empty-state p {
  margin: 0 auto 16px;
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: var(--ink);
  color: #f9f1e4;
}

.profile-card::after {
  content: "午";
  position: absolute;
  right: -3px;
  bottom: -35px;
  color: rgba(255, 255, 255, 0.045);
  font-family: "Songti SC", serif;
  font-size: 142px;
}

.profile-card-label {
  color: rgba(249, 241, 228, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.profile-balance {
  margin: 10px 0 3px;
  font-family: Georgia, serif;
  font-size: 39px;
  font-weight: 400;
}

.profile-balance small {
  margin-right: 4px;
  font-size: 16px;
}

.profile-tier {
  color: rgba(249, 241, 228, 0.64);
  font-size: 11px;
}

.profile-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 19px;
}

.profile-actions button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ed;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.settings-list {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.72);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row.static-row {
  cursor: default;
}

.setting-label {
  color: var(--muted);
  font-size: 12px;
}

.setting-value {
  max-width: 64%;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-card {
  margin-top: 14px;
  padding: 17px;
  border-radius: 19px;
  background: #efe6d6;
}

.rules-card h3 {
  margin: 0 0 9px;
  font-family: "Songti SC", serif;
  font-size: 16px;
}

.rules-card ol {
  margin: 0;
  padding-left: 18px;
  color: #6e6255;
  font-size: 11px;
  line-height: 1.85;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 520px);
  padding: 8px 12px calc(9px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(54, 44, 34, 0.1);
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 54px;
  padding: 6px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #968a7e;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--tomato-dark);
  background: rgba(232, 93, 63, 0.08);
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.sheet::backdrop {
  background: rgba(28, 22, 17, 0.48);
  backdrop-filter: blur(3px);
}

.sheet[open] {
  animation: sheet-in 250ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

@keyframes sheet-in {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-panel {
  position: relative;
  max-height: 92vh;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid rgba(53, 41, 29, 0.12);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-grab {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: rgba(57, 46, 34, 0.18);
}

.sheet-close {
  position: absolute;
  top: 15px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.sheet-close.is-hidden {
  display: none;
}

.sheet-title {
  margin: 0 30px 4px 0;
  font-family: "Songti SC", serif;
  font-size: 25px;
}

.sheet-subtitle {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.form-group {
  margin-top: 14px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 46px minmax(70px, 1fr) 46px auto;
  gap: 7px;
  align-items: center;
}

.quantity-stepper button,
.quantity-stepper input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
}

.quantity-stepper button {
  padding: 0;
  font-size: 21px;
  cursor: pointer;
}

.quantity-stepper input {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  outline: none;
  appearance: textfield;
}

.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.quantity-stepper > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.form-label {
  display: block;
  margin: 0 0 7px 2px;
  color: #6d6256;
  font-size: 11px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid rgba(62, 48, 34, 0.16);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink);
  font-size: 14px;
  transition: border 140ms ease, box-shadow 140ms ease;
}

.textarea {
  min-height: 78px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(232, 93, 63, 0.62);
  box-shadow: 0 0 0 3px rgba(232, 93, 63, 0.09);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-option {
  position: relative;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  display: block;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.65);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.mode-option span strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}

.mode-option input:checked + span {
  border-color: var(--tomato);
  background: var(--tomato-soft);
  box-shadow: inset 0 0 0 1px var(--tomato);
}

.price-breakdown {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #efe6d7;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: #74685a;
  font-size: 11px;
}

.price-line.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(57, 45, 31, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.price-line.total strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.pay-options {
  display: grid;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
}

.pay-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--tomato);
}

.pay-option-copy {
  flex: 1;
}

.pay-option-copy strong {
  display: block;
  font-size: 13px;
}

.pay-option-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.notice-box {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(232, 93, 63, 0.08);
  color: #825344;
  font-size: 10px;
  line-height: 1.65;
}

.qr-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fffaf1;
  text-align: center;
}

.qr-card img {
  display: block;
  width: min(220px, 70vw);
  margin: 0 auto 12px;
  border-radius: 8px;
}

.qr-code {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.qr-tip {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.detail-list {
  margin-top: 15px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; }

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
}

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  max-width: min(88vw, 430px);
  padding: 11px 15px;
  transform: translate(-50%, 12px);
  border-radius: 11px;
  background: rgba(37, 31, 25, 0.94);
  color: #fff8ee;
  box-shadow: 0 10px 28px rgba(30, 22, 16, 0.24);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.45;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skeleton {
  min-height: 210px;
  border-radius: 24px;
  background: linear-gradient(100deg, #eadfce 20%, #f5ecdf 38%, #eadfce 55%);
  background-size: 250% 100%;
  animation: shimmer 1.2s infinite;
}

.hero-skeleton { min-height: 400px; margin-top: 8px; }
.skeleton-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.skeleton-card-row .skeleton { min-height: 76px; }

@keyframes shimmer {
  to { background-position-x: -250%; }
}

@media (max-width: 380px) {
  .view { padding-right: 15px; padding-left: 15px; }
  .topbar { padding-right: 18px; padding-left: 18px; }
  .notice-strip { margin-right: 18px; margin-left: 18px; }
  .menu-row { grid-template-columns: 86px 1fr auto; gap: 10px; }
  .menu-row img { width: 86px; height: 78px; }
  .profile-balance { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
