:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292524;
  background: #faf7f1;
  font-synthesis: none;
  --paper: #fff;
  --ink: #292524;
  --muted: #8c857e;
  --line: #e2d8c8;
  --gold: #a68139;
  --gold-deep: #806225;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #fffefb 0, transparent 45%), #faf7f1; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 40px, 620px); margin: auto; padding: max(44px, env(safe-area-inset-top)) 0 44px; }
.hero { text-align: center; margin-bottom: 30px; }
.rule { display: block; width: 48px; height: 1px; margin: 0 auto 20px; background: #b08d4399; }
.eyebrow, .table-label, .found-label { margin: 0; color: #987536; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 0; color: #1c1917; font: normal 44px/1 Georgia, serif; letter-spacing: -.025em; }
.translation { margin: 9px 0 0; color: #78716c; font-size: 14px; }
.intro { margin: 13px auto 0; color: #9a948d; font-size: 12px; }
.label-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 4px 11px; }
.label-row strong { display: block; color: #57534e; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.label-row small, .label-row span { display: block; margin-top: 4px; color: #a8a29e; font-size: 12px; }
.search-wrap { position: relative; }
input { width: 100%; min-height: 58px; padding: 15px 52px 15px 20px; border: 1px solid #ddd3c1; border-radius: 18px; outline: none; background: var(--paper); color: var(--ink); box-shadow: 0 8px 30px #5c482a0f; font-size: 18px; transition: border-color .18s, box-shadow .18s; }
input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
input:focus { border-color: #b08d43; box-shadow: 0 0 0 4px #b08d431a, 0 8px 30px #5c482a0f; }
.clear-search { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #987536; }
.clear-search:hover, .clear-search:focus-visible { background: #f6f0e5; outline: none; }
.clear-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.spinner { position: absolute; z-index: 3; top: 21px; right: 21px; width: 16px; height: 16px; border: 2px solid #d8cdb9; border-top-color: #9a7836; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#results { position: absolute; z-index: 10; top: 64px; width: 100%; margin: 0; padding: 5px 0; overflow: hidden; border: 1px solid #ddd3c1; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px #3d2d1924; list-style: none; animation: reveal .16s ease-out; }
#results button { width: 100%; min-height: 52px; padding: 13px 20px; border: 0; border-bottom: 1px solid #f0ebe0; background: #fff; color: #292524; text-align: left; font-size: 16px; transition: background .14s, padding-left .14s; }
#results li:last-child button { border-bottom: 0; }
#results button:hover, #results button:focus-visible { padding-left: 24px; background: #faf7f1; outline: none; }
.privacy { margin: 11px 0 0; padding: 0 4px; color: #a8a29e; font-size: 11px; line-height: 1.55; }
.message { margin-top: 22px; padding: 23px; border: 1px solid #e5ddcf; border-radius: 24px; background: #fff; color: #57534e; text-align: center; font-size: 14px; line-height: 1.5; animation: reveal .2s ease-out; }
.message strong { display: block; margin-bottom: 5px; color: #292524; font: normal 20px/1.2 Georgia, serif; }
.message p { margin: 0; }
.message small { display: block; margin-top: 14px; color: #8c857e; font-size: 12px; }
.try-label { display: block; margin-top: 18px; color: #9a948d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.try-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 9px; }
.try-actions button { min-height: 40px; padding: 8px 18px; border: 1px solid #d9ccb5; border-radius: 999px; background: #fffdf9; color: #745b2a; }
.try-actions button:hover, .try-actions button:focus-visible { border-color: #a68139; outline: 3px solid #b08d4314; }
.answer { margin-top: 8px; animation: reveal .28s ease-out; }
.card { overflow: hidden; border: 1px solid #ded4c3; border-radius: 30px; background: #fff; box-shadow: 0 18px 60px #533e1e17; }
.answer-head { padding: 22px 24px 16px; text-align: center; }
.found-label { margin-bottom: 11px; color: #9a948d; letter-spacing: .2em; }
.guest-name { margin: 0; color: #292524; font: normal 24px/1.2 Georgia, serif; }
.table-label { margin-top: 14px; color: #a8a29e; }
.table-number { margin: 1px 0 0; color: var(--gold); font: normal 68px/.95 Georgia, serif; }
.plan-wrap { padding: 15px 14px 14px; border-top: 1px solid #f0ebe0; background: #fffdf9; }
.plan-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 5px 10px; }
.plan-heading strong { color: #57534e; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.plan-heading span { color: #9a948d; font-size: 10px; text-align: right; }
svg { display: block; width: 100%; }
.plan-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 9px 0 1px; color: #8c857e; font-size: 10px; }
.plan-legend span { display: flex; align-items: center; gap: 6px; }
.plan-legend i { width: 9px; height: 9px; border: 2px solid #806225; border-radius: 50%; background: #b08d43; box-shadow: 0 0 0 3px #b08d4321; }
.plan-legend b { color: #8a6d2f; font-size: 15px; font-weight: 500; }
.table-three-note { width: min(94%, 420px); margin: 8px auto 2px; padding: 13px 16px; border-radius: 17px; background: #f5efe3; color: #6f5a2e; font-size: 13px; line-height: 1.45; }
.table-three-note strong, .table-three-note span { display: block; }
.table-three-note span { margin-top: 3px; color: #806f4c; font-size: 12px; }
.reset { width: 100%; min-height: 50px; margin-top: 16px; border: 1px solid #ded4c3; border-radius: 999px; background: #fff; color: #57534e; font-size: 14px; transition: border-color .15s, background .15s, transform .15s; }
.reset:hover, .reset:focus-visible { border-color: #bca980; background: #fffdf9; outline: none; }
.reset:active { transform: scale(.99); }
footer { margin-top: 42px; padding-top: 23px; border-top: 1px solid #e5ddcf; color: #a8a29e; text-align: center; }
footer>p { margin: 0; color: #78716c; font: italic 14px Georgia, serif; }
footer a { display: inline-flex; min-height: 48px; margin-top: 11px; padding: 8px 20px; flex-direction: column; justify-content: center; color: #a8a29e; text-decoration: none; }
footer a:hover, footer a:focus-visible { color: #806f4c; outline: none; }
footer strong { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
footer span { margin-top: 4px; font-size: 11px; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .shell { width: min(100% - 28px, 620px); padding-top: max(32px, env(safe-area-inset-top)); }
  .hero { margin-bottom: 26px; }
  .hero h1 { font-size: 40px; }
  .intro { max-width: 270px; }
  .label-row span { max-width: 130px; text-align: right; }
  .answer-head { padding: 20px 18px 14px; }
  .guest-name { font-size: 23px; }
  .table-number { font-size: 62px; }
  .plan-wrap { padding: 13px 7px 12px; }
  .plan-heading { padding-inline: 8px; }
  .plan-heading span { max-width: 140px; }
  footer { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
