:root {
  --bg: #f4f4f4;
  --bg-strong: #ebebeb;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: #ffffff;
  --line: #1a1a1a;
  --text: #111111;
  --subtext: #4a4a4a;
  --accent: #111111;
  --accent-deep: #000000;
  --accent-soft: #efefef;
  --accent-cream: #f5f5f5;
  --danger: #111111;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.05), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 22%),
    linear-gradient(180deg, #f8f8f8 0%, var(--bg-strong) 22%, var(--bg) 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.landing-body {
  overflow-x: hidden;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.landing-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-intro-overlay {
  min-height: 100vh;
  padding: 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-intro-shell {
  width: min(100%, 520px);
}

.menu-intro-card {
  max-width: 460px;
  margin: 0 auto;
}

.success-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-card {
  max-width: 460px;
  width: 100%;
}

#menuApp {
  scroll-margin-top: 16px;
}

.hero-card,
.panel,
.category-card,
.order-card,
.landing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card,
.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.landing-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.landing-card::before,
.landing-card::after {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.landing-title {
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 22px;
}

.hero-copy,
.helper-text,
.notification-text,
.submit-hint,
.order-note,
.cart-meta,
.category-header p {
  color: var(--subtext);
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tag,
.pill,
.item-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.panel-title-row,
.category-header,
.order-head,
.summary-bar,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-stage {
  display: none;
}

.landing-poster {
  width: 100%;
  display: block;
}

.landing-hotspot {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7.2%;
  transform: translateX(-50%);
  width: 48%;
  height: 9.4%;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  outline: none;
}

.landing-hotspot:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.75);
}

.comic-btn {
  min-width: 180px;
  height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 3px solid #f5c33d;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.success-action-btn {
  width: min(100%, 320px);
  margin-top: 18px;
}

.orders-nav-btn {
  min-width: 132px;
  height: 46px;
  font-size: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-panel-toggle {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.order-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.order-panel-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-cream);
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.order-panel-arrow::before,
.order-panel-arrow::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
  top: 14px;
}

.order-panel-arrow::before {
  left: 8px;
  transform: rotate(35deg);
}

.order-panel-arrow::after {
  right: 8px;
  transform: rotate(-35deg);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.1);
}

.field.has-error input {
  border-color: #d93025;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12);
}

.field-error {
  color: #d93025;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.category-list,
.item-list,
.cart-list,
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.category-header {
  margin-bottom: 12px;
}

.category-card::after,
.menu-hero-card::after,
.panel::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  right: 14px;
  top: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
}

.menu-hero-card,
.panel,
.category-card,
.order-card {
  border: 1.5px solid rgba(17, 17, 17, 0.12);
}

.menu-hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 246, 0.98)),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 2px, transparent 2px 10px);
}

.hero-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.doodle {
  position: absolute;
  display: block;
  width: 72px;
  height: 72px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
}

.doodle-cat-face {
  top: 12px;
  right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 24 20 11l12 10M49 24 44 11 32 21'/%3E%3Cpath d='M13 27c0-10 8.5-18 19-18s19 8 19 18v9c0 10-8.5 18-19 18S13 46 13 36z'/%3E%3Cpath d='M25 33h.1M39 33h.1M28 42c2.5 2 5.5 2 8 0M24 39l-8 2M40 39l8 2M31 37l1.5-2 1.5 2'/%3E%3C/g%3E%3C/svg%3E");
}

.doodle-cat-stretch {
  left: 14px;
  bottom: 12px;
  width: 92px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 64'%3E%3Cg fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 43c7-11 18-17 35-17 16 0 26 6 32 16'/%3E%3Cpath d='M24 43c-1 7-4 12-9 14M40 44c0 8-1 12-4 15M62 44c1 8 2 12 5 15M77 42c1 8 4 12 8 14'/%3E%3Cpath d='M24 28l4-10 8 8M61 26l7-8 3 10'/%3E%3Cpath d='M26 29c2-7 10-12 21-12 13 0 22 7 24 18'/%3E%3Cpath d='M37 31h.1M55 31h.1M44 38c3 2 5 2 8 0'/%3E%3C/g%3E%3C/svg%3E");
}

.menu-hero-card::after,
.panel::after,
.category-card::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 31c0-9 7-16 18-16s18 7 18 16v9c0 9-7 16-18 16S18 49 18 40z'/%3E%3Cpath d='M22 28l4-11 10 8M50 28l-4-11-10 8M30 36h.1M42 36h.1M33 44c2 2 4 2 6 0'/%3E%3C/g%3E%3C/svg%3E");
}

.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 243, 243, 0.98));
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.item-card-with-options {
  align-items: center;
}

.item-spec-summary {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.item-spec-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--subtext);
}

.item-spec-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-spec-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.spec-trigger-btn {
  height: 36px;
  padding: 0 14px;
  flex-shrink: 0;
}

.spec-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.spec-panel-overlay[hidden] {
  display: none !important;
}

.spec-panel {
  width: min(100%, 560px);
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
}

.spec-panel-close {
  width: 36px;
  height: 36px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

.spec-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.spec-panel-image {
  width: 84px;
  height: 84px;
}

.spec-group {
  margin-top: 16px;
}

.spec-group-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.spec-panel-hint {
  margin-top: 14px;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.5;
}

.spec-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.spec-chip.is-selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.spec-panel-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spec-confirm-btn {
  min-width: 164px;
}

.item-card-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.item-visual {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  filter: grayscale(1);
}

.item-visual-color {
  filter: none;
}

.item-copy {
  min-width: 0;
}

.item-name {
  font-size: 18px;
  font-weight: 700;
}

.item-note {
  margin-top: 6px;
  color: var(--subtext);
  font-size: 13px;
}

.order-price,
.summary-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-deep);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--card-strong);
  border: 1px solid rgba(17, 17, 17, 0.16);
  flex-shrink: 0;
}

.qty-control span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.qty-control button,
.primary-btn,
.ghost-btn {
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.qty-control button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.cart-row,
.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.18);
}

.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-delete-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cart-row:last-child,
.order-item-row:last-child {
  border-bottom: none;
}

.summary-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.order-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.order-submit-btn {
  min-width: 154px;
}

.summary-label {
  color: var(--subtext);
  font-size: 12px;
  font-weight: 600;
}

.primary-btn {
  min-width: 146px;
  height: 50px;
  border-radius: 16px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111111, #000000);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.nav-link-btn {
  flex-shrink: 0;
}

.danger-btn {
  color: var(--danger);
}

.sticky-order-panel {
  position: sticky;
  bottom: 10px;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 246, 0.98)),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 2px, transparent 2px 10px);
}

.sticky-order-panel.is-collapsed .order-panel-arrow {
  transform: rotate(0deg);
}

.sticky-order-panel:not(.is-collapsed) .order-panel-arrow {
  transform: rotate(180deg);
}

.empty-state {
  padding: 20px 4px;
  text-align: center;
}

.notification-panel {
  border-color: rgba(17, 17, 17, 0.18);
}

.order-card {
  padding: 16px;
}

.customer-history-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 246, 0.98)),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 2px, transparent 2px 10px);
}

.order-items {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .landing-shell {
    padding: 12px 10px 18px;
  }

  .menu-intro-overlay {
    padding: 12px 10px 18px;
  }

  .success-shell {
    padding: 12px 10px 18px;
  }

  .app-shell {
    padding: 14px 12px 28px;
  }

  h1 {
    font-size: 28px;
  }

  .landing-card {
    max-width: 440px;
  }

  .comic-btn {
    width: min(100%, 320px);
    font-size: 20px;
  }

  .orders-nav-btn {
    width: auto;
    min-width: 124px;
    font-size: 16px;
  }


  .meta-grid {
    grid-template-columns: 1fr;
  }

  .panel-title-row,
  .order-panel-actions,
  .summary-bar,
  .order-head,
  .category-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card .panel-title-row {
    gap: 14px;
  }

  .doodle {
    opacity: 0.14;
  }

  .item-card {
    align-items: stretch;
    flex-direction: column;
  }

  .item-card-main {
    align-items: flex-start;
  }

  .item-option-row {
    align-items: stretch;
    flex-direction: column;
  }

  .item-visual {
    width: 100px;
    height: 100px;
  }

  .item-spec-summary,
  .item-spec-actions,
  .spec-panel-footer,
  .spec-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .item-spec-summary {
    min-width: 0;
    width: 100%;
  }

  .spec-trigger-btn,
  .spec-confirm-btn {
    width: 100%;
  }

  .qty-control {
    width: 100%;
    justify-content: space-between;
  }

  .primary-btn {
    width: 100%;
  }
}
