@font-face {
  font-family: 'Oyster Cart Serif';
  src: url('/sake-matsuri/assets/oyster-cart-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root{font-family:system-ui,sans-serif;color:#172e29;background:#f7f6f1;line-height:1.5;--ink:#172e29;--sub:#50665e;--line:#d8e0d6;--mint:#e5eee4;--white:#fffefa}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
a{color:inherit;text-underline-offset:.22em}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer;border:0;border-radius:.55rem;background:var(--ink);color:white;min-height:44px;padding:.55rem .9rem;font-weight:650}
button:disabled{cursor:default;background:#e1e5df;color:#46564e}
button.alt{background:var(--mint);color:var(--ink)}
button.danger:not(:disabled){background:#87382c;color:white}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ad552f;outline-offset:3px}
.top{background:#152d29;color:white}
.top-inner{max-width:1120px;margin:auto;padding:.85rem clamp(1rem,4vw,2.5rem);display:flex;justify-content:space-between;align-items:center;gap:1rem}
.brand{font-family:Georgia,serif;font-size:.82rem;font-weight:bold;letter-spacing:.13em;text-decoration:none}
main{max-width:1120px;margin:auto;padding:clamp(1rem,4vw,2.5rem)}
h1,h2,h3,p{margin:0}
h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(2.35rem,7vw,4.4rem);line-height:1.1;letter-spacing:-.035em}
h2{font-family:Georgia,serif;font-size:1.65rem;font-weight:500}
h3{font-size:1.05rem;line-height:1.25}
.section-title{margin:1.3rem 0 .65rem}
.actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.9rem 0}
.items,.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
.card{background:var(--white);border:1px solid var(--line);padding:1rem;border-radius:.7rem;min-width:0}
.card p{color:var(--sub);margin:.35rem 0 .6rem}
.item{display:flex;flex-direction:column;justify-content:space-between;min-height:155px}
.item small{font-size:.875rem;color:var(--sub)}
.line,.split{display:flex;justify-content:space-between;align-items:center;gap:.7rem}
.line{padding:.65rem 0;border-bottom:1px solid var(--line)}
.line strong{overflow-wrap:anywhere}
.muted{color:var(--sub)}
.cart-dock{position:sticky;bottom:0;margin-top:1rem;padding:.65rem 0 max(.65rem,env(safe-area-inset-bottom));background:#f7f6f1f0}
.cart-dock button{width:100%}
dialog{background:var(--white);color:var(--ink);width:min(calc(100% - 1rem),540px);max-height:92dvh;border:1px solid var(--line);border-radius:.75rem;padding:1rem;overscroll-behavior:contain}
dialog::backdrop{background:#102820ab}
.close{background:var(--mint);color:var(--ink)}
label{display:grid;gap:.25rem;margin:.7rem 0;font-weight:650}
input,textarea,select{width:100%;min-height:44px;border:1px solid #a6b7ac;border-radius:.4rem;padding:.45rem .6rem;background:white;color:var(--ink)}
input[type=checkbox],input[type=radio]{width:auto;min-height:auto}
.inline-label{display:flex;align-items:center;gap:.65rem}
.quantity{display:flex;align-items:center;gap:.45rem}
.quantity button{padding:.45rem .65rem}
fieldset{border:1px solid var(--line);margin:.75rem 0;padding:.2rem .75rem;border-radius:.45rem}
.error{color:#8d2d20;margin-top:.6rem}
.receipt{max-width:540px;margin:1rem auto}
.receipt .number{font-family:Georgia,serif;font-size:3.2rem;line-height:1.1;padding:.5rem 0}
.receipt .actions{margin-top:1.2rem}
.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.lane{background:#e9eee6;border-radius:.65rem;padding:.65rem;min-width:0}
.lane h2{font-size:1.35rem;margin-bottom:.45rem}
.lane .card{margin-bottom:.55rem}
.lane ul{padding-left:1.25rem;margin:.45rem 0}
.lane button{width:100%}
.panel{margin:1rem 0}
.menuedit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.menuedit label{margin:0}
.wide{grid-column:1/-1}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:.45rem;border-bottom:1px solid var(--line)}
.stat strong{font-size:1.45rem;display:block}
#notice:not(:empty){position:fixed;right:1rem;bottom:1rem;padding:.7rem 1rem;background:#253e34;color:white;border-radius:.5rem;z-index:2;max-width:calc(100vw - 2rem)}
footer{max-width:1120px;margin:0 auto;padding:1rem clamp(1rem,4vw,2.5rem);display:flex;gap:1rem;color:var(--sub);font-size:.875rem}
@media(max-width:800px){.board,.items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.items,.board{grid-template-columns:1fr}.item{min-height:0}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-dock{bottom:0}.top-inner,main{padding-left:1rem;padding-right:1rem}}

/* Shared Oyster Cart palette for the ordering and staff screens. */
.event-theme {
  --ink: #f5f1e8;
  --sub: #c2b8a8;
  --line: #56482f;
  --mint: #221d15;
  --white: #14120e;
  --gold: #dbc081;
  --serif: 'Oyster Cart Serif', Georgia, serif;
  background: #080808;
  color: var(--ink);
  min-height: 100dvh;
  color-scheme: dark;
}
.event-theme .top { background: #080808; color: var(--gold); }
.event-theme .top-inner { min-height: 88px; max-width: 1100px; border-bottom: 1px solid var(--line); }
.event-theme .brand { font-size: clamp(.95rem, 2.8vw, 1.65rem); letter-spacing: .075em; }
.event-theme main { max-width: 1100px; padding: 0 clamp(1rem, 4vw, 2rem) 1.25rem; }
.event-theme h1, .event-theme h2 { font-family: var(--serif); }
@font-face {
  font-family: 'Adobe Caslon Pro';
  src: url('/sake-matsuri/assets/adobe-caslon-pro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.menu-page {
  --serif: 'Adobe Caslon Pro', Georgia, serif;
  --menu-gold: #b48932;
  --menu-rule: #806333;
}
.menu-page .top-inner { height: 88px; padding: 0 2rem; border-color: var(--menu-rule); }
.menu-page .brand img { width: 300px; }
.menu-page main { max-width: none; padding: 0; }
.menu-hero {
  max-width: 980px;
  height: 240px;
  margin: 0 auto;
  overflow: hidden;
  background: #15120b;
  border-bottom: 1px solid #4e4029;
}
.menu-hero video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.menu-content { max-width: 1036px; margin: 0 auto; padding: 30px 0 125px; }
.menu-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--menu-gold);
  font: 400 .875rem var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.menu-eyebrow::after { content: ''; height: 1px; background: var(--menu-rule); flex: 1; }
.menu-intro h1 {
  font: 400 clamp(66px, 8vw, 108px)/1.06 var(--serif);
  letter-spacing: -.045em;
  margin: 12px 0 0;
}
.menu-intro .pickup-intro { color: #c7c2b8; font: 400 1.0625rem/1.4 var(--serif); }
.event-theme .items { margin: 1.25rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.event-theme .item {
  min-height: 0;
  border-top: 1px solid #38342b;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.event-theme .item.has-items { border-color: var(--menu-gold); }
.event-theme .item h2 { font: 400 1.6875rem/1.18 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.event-theme .item p { margin-top: 6px; color: #c7c2b8; font: 400 1.0625rem/1.4 var(--serif); }
.event-theme .item p:empty { display: none; }
.event-theme .item-actions { display: grid; justify-items: end; gap: 10px; }
.event-theme .item-actions strong { font: 400 1.4375rem var(--serif); color: var(--menu-gold); white-space: nowrap; }
.event-theme .quantity { gap: .32rem; }
.event-theme .item .quantity { gap: 10px; }
.event-theme .item .quantity span { font: 400 1.25rem var(--serif); min-width: 1.125rem; text-align: center; }
.event-theme .menu-step {
  width: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--menu-gold);
  color: var(--menu-gold);
  border-radius: 50%;
  font: 400 1.25rem system-ui, sans-serif;
}
.event-theme .menu-step:disabled { border-color: var(--line); color: #93877a; }
.event-theme .sold-out { color: var(--sub); font-size: .875rem; }
@media (hover: hover) {
  .event-theme .menu-step:hover:not(:disabled) { background: var(--menu-gold); color: #080808; }
}
@media (max-width: 1100px) {
  .menu-content { padding-inline: 32px; }
}
@media (max-width: 700px) {
  .menu-page .top-inner { height: 72px; min-height: 72px; padding-inline: 18px; }
  .menu-page .brand img { width: clamp(125px, 36vw, 180px); }
  .menu-hero { height: clamp(170px, 49vw, 220px); }
  .menu-content { padding: 24px 20px 115px; }
  .menu-intro h1 { font-size: clamp(60px, 18vw, 80px); }
  .event-theme .items { grid-template-columns: minmax(0, 1fr); }
  .event-theme .item { gap: 14px; padding: 17px 0; }
  .event-theme .item h2 { font-size: 1.5625rem; }
  .event-theme .item p { font-size: 1rem; }
  .event-theme .item-actions strong { font-size: 1.375rem; }
}
.event-theme .cart-dock {
  position: fixed;
  width: min(calc(100% - 2.25rem), 520px);
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  padding: 0;
  background: transparent;
}
.event-theme #open-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 70px;
  padding: .75rem 1.25rem;
  background: #2b2419;
  color: var(--ink);
  border: 1px solid var(--menu-gold);
  border-radius: 10px;
  box-shadow: 0 8px 30px #0009;
  font: 1.35rem var(--serif);
}
.event-theme #open-cart span:last-child { color: var(--gold); font-size: 1.08rem; }
.event-theme #open-cart:disabled { background: #18140f; border-color: var(--line); color: var(--sub); }
.event-theme #open-cart:disabled span:last-child { color: var(--sub); }
.event-theme .order-cart {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 480px);
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border-width: 0 0 0 1px;
  border-color: #806333;
  border-radius: 0;
  background: #080808;
  color: var(--ink);
}
.event-theme .order-cart[open] { display: flex; flex-direction: column; overflow: hidden; }
.cart-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(1rem, 5vw, 1.8rem) 1rem; }
.cart-footer { border-top: 1px solid var(--line); padding: .9rem clamp(1rem, 5vw, 1.8rem) max(.9rem, env(safe-area-inset-bottom)); }
.event-theme .order-cart::backdrop { background: #050403b9; }
.event-theme .cart-heading { padding: 1.35rem clamp(1rem, 5vw, 1.8rem) .7rem; }
.event-theme .cart-heading p { color: var(--gold); font: .85rem var(--serif); text-transform: uppercase; letter-spacing: .13em; }
.event-theme .cart-heading h2 { font-size: 2.2rem; }
.event-theme .close, .event-theme .order-cart .alt { background: #241e15; color: var(--gold); border: 1px solid var(--line); }
.event-theme .close { min-width: 44px; font-size: 1.15rem; }
.event-theme input:not([type=radio]) { background: #1b170f; color: var(--ink); border-color: #857456; }
.event-theme input[type=radio] { accent-color: #d7b365; width: 1rem; height: 1rem; }
.event-theme .cart-pay { width: 100%; min-height: 54px; background: #dfbd72; color: #18130b; font: 1.28rem var(--serif); }
.event-theme .cart-pay:disabled { background: #634f32; color: var(--ink); }
.event-theme .error { color: #ffad97; }
.event-theme .receipt { margin-top: 2rem; }
.event-theme .receipt .number { color: var(--gold); }
.event-theme :is(button,a,input,select):focus-visible { outline-color: var(--gold); }
@media (max-width: 640px) {
  .event-theme .top-inner { min-height: 58px; }
  .event-theme .order-cart { border-left: 0; }
}

.pickup-status:not(:empty) {
  margin: 1rem 0;
  padding: .65rem .85rem;
  border-left: 2px solid var(--line);
  background: var(--mint);
}
.pickup-status[data-state="Ready"] {
  border-color: var(--gold);
  color: var(--gold);
}


.staff-theme main { padding-top: clamp(1.35rem, 4vw, 2.5rem); }
.staff-theme h1, .staff-theme h2, .staff-theme footer a { color: var(--gold); }
.staff-theme .staff-access { max-width: 36rem; padding: clamp(1rem, 4vw, 2rem); }
.staff-theme .staff-access p { margin: .8rem 0 1rem; }
.staff-theme .staff-access a { color: var(--gold); }
.staff-theme .kitchen-login { display: grid; gap: 1rem; margin-top: 1rem; }
.staff-theme .kitchen-login label { display: grid; gap: .35rem; }
.staff-theme .kitchen-login p { margin: 0; }
.staff-theme .lane { border: 1px solid var(--line); background: var(--mint); }
.staff-theme .lane .card { overflow-wrap: anywhere; }
.staff-theme button:not(.alt, .danger):enabled { background: #dfbd72; color: #18130b; }
.staff-theme button:disabled { background: var(--mint); color: var(--sub); opacity: .7; }
.staff-theme button.alt, .staff-theme :is(select, textarea) {
  background: #1b170f;
  color: var(--gold);
  border: 1px solid #857456;
}
.staff-theme :is(select, textarea) { color: var(--ink); }
.staff-theme input[type=checkbox] { accent-color: var(--gold); }
.staff-theme dialog::backdrop { background: #050403b9; }
.staff-theme #notice:not(:empty) { background: var(--mint); color: var(--gold); border: 1px solid var(--line); }

.record-fields { display: grid; gap: .65rem; margin: 1rem 0 1.25rem; }
.record-fields dt { color: var(--sub); font-size: .875rem; }
.record-fields dd { margin: 0; overflow-wrap: anywhere; }

@media (min-width: 801px) {
  .active-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.history-search { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; margin: .65rem 0; }
.history-search label { margin: 0; }
#collected-results { list-style: none; margin: 0; padding: 0; }
#collected-results .line button { flex-shrink: 0; }

.brand img { display: block; width: clamp(150px, 32vw, 252px); max-width: 100%; height: auto; }
.table-scroll { overflow-x: auto; }

.staff-theme .staff-navigation button[aria-pressed="true"] {
  background: var(--gold);
  color: #18130b;
}
#availability-list { list-style: none; margin: 0; padding: 0; }
#availability-list button { flex-shrink: 0; }

.event-theme [hidden] { display: none !important; }
.payment-page #payment-methods button {
  min-width: 7rem;
  min-height: 48px;
  background: #dfbd72;
  color: #18130b;
  font: 1.25rem 'Adobe Caslon Pro', Georgia, serif;
}
.payment-page #payment-methods button:hover { background: #ebcc85; }
.pickup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: .8rem 0 1rem;
}
.pickup-steps li {
  border-top: 3px solid var(--line);
  color: var(--sub);
  padding-top: .45rem;
}
.pickup-steps [aria-current="step"] { border-color: var(--gold); color: var(--ink); font-weight: 650; }
.pickup-wa { margin-block: .9rem; }
.pickup-wa input { accent-color: #dfbd72; }
