.wrap { width: min(calc(100% - 32px), 972px); margin: 0 auto; padding: 10px 0 26px; }
.menu-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.menu-logo { display: block; width: 57px; height: auto; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--brand-dark);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
.intro {
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 23px;
  border-radius: 20px;
  background: linear-gradient(110deg, #9f2818, #b83a21);
  color: var(--cream);
}
.intro h1 { font-size: clamp(1.85rem, 6.2vw, 3rem); font-weight: 850; letter-spacing: -.058em; line-height: 1.05; }
.intro p { margin-top: 9px; color: #ffe3c6; font-size: .9rem; line-height: 1.45; }
#builder { display: grid; grid-template-columns: minmax(0, 1fr) 235px; align-items: start; gap: 16px; }
.menu-fields { min-width: 0; }
.menu-fields > fieldset, .sides {
  min-width: 0;
  padding: 12px;
  margin: 0 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
fieldset { min-width: 0; }
legend {
  padding: 0 5px;
  margin-left: -2px;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.hint { margin: 0 0 10px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.type-options, .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf1;
  font-size: .88rem;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.choice:hover { border-color: #bc8862; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--selected); color: #712416; }
.choice:has(input:focus-visible) { outline: 3px solid #21624a; outline-offset: 2px; }
.choice input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.choice input:focus-visible { outline: none; }
.choice small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.type-choice { min-height: 60px; padding: 9px 11px; font-size: 1rem; }
.type-choice strong { display: block; }
.type-choice small { font-size: .78rem; }
.sides { padding: 0; }
.sides summary { min-height: 48px; padding: 13px; border-radius: 15px; color: var(--brand-dark); font-weight: 750; cursor: pointer; }
.sides[open] summary { margin-bottom: 5px; border-bottom: 1px solid var(--line); border-radius: 15px 15px 0 0; }
.sides fieldset { margin: 10px 12px 12px; padding: 3px 0 0; border: 0; }
.checkout { position: sticky; top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.checkout-inner { display: grid; gap: 12px; }
.total span { display: block; color: var(--muted); font-size: .79rem; }
.total output { display: block; margin-top: 2px; font-size: 1.56rem; font-weight: 850; letter-spacing: -.04em; }
#order { max-width: 570px; margin: 8px auto 0; }
#order h2 { font-size: clamp(1.6rem, 5.5vw, 2rem); letter-spacing: -.04em; }
#order-title:focus { outline: none; }
#order .hint { margin: 6px 0 15px; }
.ticket { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.ticket-type, .ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 15px; }
.ticket-type { background: var(--brand); color: #fff6e5; font-size: 1.08rem; }
.ticket-type span { white-space: nowrap; font-size: .84rem; }
.ticket dl { margin: 0; padding: 0 15px; }
.ticket dl > div { padding: 10px 0; }
.ticket dl > div + div { border-top: 1px solid var(--line); }
.ticket dt { margin-bottom: 5px; font-size: .76rem; font-weight: 750; color: var(--muted); }
.ticket dd { margin: 0; color: var(--ink); font-size: .97rem; line-height: 1.45; overflow-wrap: anywhere; }
.ticket-total { border-top: 1px dashed #d7af8e; background: #fff0dc; }
.ticket-total strong { color: var(--brand-dark); font-size: 1.42rem; }
.order-actions { display: grid; gap: 8px; margin-top: 13px; }
@media (max-width: 700px) {
  .wrap { padding-bottom: 0; }
  .menu-header { margin-bottom: 8px; }
  .menu-logo { width: 47px; }
  .intro { margin-bottom: 17px; border-radius: 16px; }
  #builder { grid-template-columns: 1fr; gap: 0; }
  .checkout {
    top: auto;
    bottom: 0;
    z-index: 1;
    margin: 0 -16px;
    padding: 8px 16px max(8px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -4px 18px #66331a18;
  }
  .checkout-inner { grid-template-columns: 1fr auto; align-items: center; }
  .total output { font-size: 1.3rem; }
  #order { padding-bottom: 20px; }
}
