:root {
  --yellow: #ffcf08;
  --orange: #ff8617;
  --ink: #17130d;
  --brown: #3f0904;
  --paper: #fff8e8;
  --cream: #f6ead2;
  --green: #126b35;
  --green-deep: #0b3f25;
  --red: #d51f1b;
  --charcoal: #2d2f2e;
  --muted: #6f5f4a;
  --line: rgba(63, 9, 4, 0.16);
  --shadow: 0 22px 70px rgba(42, 20, 8, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  min-height: 42px;
}

.display-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #17130d;
}

.display-frame {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  background: var(--ink);
  padding: 1%;
  overflow: hidden;
}

.display-screen {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 31% 69%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 107, 53, 0.04), transparent 34%),
    var(--paper);
}

.brand-panel {
  position: relative;
  display: grid;
  grid-template-rows: 27% minmax(0, 1fr) auto;
  gap: 3.2%;
  padding: 6.5% 8% 6.5%;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 13%, rgba(255, 248, 232, 0.52), transparent 24%),
    linear-gradient(145deg, rgba(255, 248, 232, 0.28), rgba(255, 248, 232, 0) 34%),
    var(--yellow);
}

.logo-mark,
.product-showcase,
.hours-card {
  position: relative;
  z-index: 1;
}

.logo-mark {
  width: min(74%, 232px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(63, 9, 4, 0.3));
}

.eyebrow {
  margin: 0 0 0.45em;
  color: var(--red);
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.55vw, 82px);
  line-height: 0.88;
  letter-spacing: 0;
}

.product-showcase {
  min-height: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.slide-track {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 3px solid rgba(63, 9, 4, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.78);
  box-shadow: 0 14px 30px rgba(63, 9, 4, 0.2);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  background: linear-gradient(0deg, rgba(23, 19, 13, 0.9), rgba(23, 19, 13, 0));
  color: #fff;
}

.slide-caption strong {
  font-size: clamp(15px, 1.18vw, 22px);
  line-height: 1;
}

.slide-caption span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(11px, 0.78vw, 15px);
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 8px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(63, 9, 4, 0.32);
}

.slide-dot.is-active {
  background: var(--red);
}

.hours-card {
  display: grid;
  gap: 8px;
  padding: 5%;
  border: 2px solid rgba(255, 207, 8, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 134, 23, 0.2), transparent 44%),
    var(--brown);
  color: #fff;
  font-size: clamp(15px, 1.18vw, 24px);
  font-weight: 900;
}

.menu-board {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 14% minmax(0, 1fr) 5.8% 6.8%;
  gap: 2.1%;
  padding: 3.7% 4.7% 3.4%;
  overflow: hidden;
}

.menu-board:has(.announcement-board[hidden]) {
  grid-template-rows: 14% minmax(0, 1fr) 6.8%;
}

.menu-header,
.menu-grid,
.announcement-board,
.display-footer {
  position: relative;
  z-index: 1;
}

.menu-header {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.date-pill {
  padding: 0.52em 0.9em;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--green-deep);
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 900;
  white-space: nowrap;
}

.menu-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5% 5.6%;
  overflow: hidden;
}

.menu-section {
  min-width: 0;
  overflow: hidden;
}

.menu-section-head {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 7px;
}

.menu-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0.28em 0.72em;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: clamp(13px, 1.05vw, 21px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.menu-section-head p {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.24em 0.62em;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: clamp(12px, 0.9vw, 17px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.menu-list {
  display: grid;
  gap: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 0.24em 0;
  border-bottom: 2px dotted var(--line);
  font-size: clamp(14px, 1.08vw, 21px);
  line-height: 1.05;
}

.menu-item-text {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu-item-name {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-allergens {
  flex: 0 0 auto;
  color: var(--green-deep);
  font-size: clamp(10px, 0.72vw, 14px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.menu-price {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.announcement-board {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 2px solid rgba(63, 9, 4, 0.16);
  border-radius: 6px;
  background: #fffdf4;
  box-shadow: 0 8px 20px rgba(63, 9, 4, 0.08);
}

.announcement-board[hidden] {
  display: none;
}

.announcement-label {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 0.82em;
  background: var(--green);
  color: #fff;
  font-size: clamp(11px, 0.82vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.announcement-window {
  min-width: 0;
  overflow: hidden;
}

.announcement-text {
  display: inline-flex;
  width: max-content;
  color: var(--brown);
  font-size: clamp(13px, 1.02vw, 20px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  animation: announcement-scroll 44s linear infinite;
}

.announcement-segment {
  flex: 0 0 auto;
  padding-right: 3rem;
}

@keyframes announcement-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.display-footer {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 1em;
  border-radius: 6px;
  border-left: 6px solid var(--yellow);
  border-right: 6px solid var(--green);
  background:
    linear-gradient(90deg, rgba(255, 207, 8, 0.2), rgba(255, 248, 232, 0.72), rgba(18, 107, 53, 0.15)),
    var(--cream);
  color: var(--brown);
  font-size: clamp(10px, 0.74vw, 14px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}

.admin-body {
  min-height: 100vh;
  background: #f2efe8;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.login-panel,
.editor-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.login-panel {
  width: min(420px, 100%);
  margin: 9vh auto 0;
  padding: 28px;
}

.login-panel img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}

.login-panel h1,
.admin-header h1 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

input[type="file"] {
  font-size: 13px;
}

button,
.admin-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button[type="button"],
.admin-actions a {
  background: var(--cream);
  color: var(--ink);
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 800;
}

.editor-shell {
  padding: 26px;
}

.admin-header,
.sticky-actions,
.editor-group-head,
.section-editor-head,
.item-editor,
.slide-editor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header {
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-actions,
.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.wide-field {
  grid-column: 1 / -1;
}

.editor-group,
.sections-editor {
  display: grid;
  gap: 18px;
}

.editor-group {
  margin-bottom: 18px;
}

.editor-group-head {
  justify-content: space-between;
}

.editor-group-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.slides-editor,
.announcements-editor {
  display: grid;
  gap: 10px;
}

.editor-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.section-editor-head {
  align-items: end;
  margin-bottom: 14px;
}

.section-editor-head label {
  flex: 1;
}

.items-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.item-editor {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(110px, 150px) minmax(160px, 210px) auto auto;
  align-items: end;
}

.allergen-options {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.allergen-options legend {
  width: 100%;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.allergen-options label {
  min-height: 44px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-transform: none;
}

.allergen-options input {
  width: 16px;
  min-height: 16px;
}

.custom-allergens-field {
  display: none;
}

.slide-editor,
.announcement-editor {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) minmax(150px, 0.8fr) minmax(170px, 1fr) auto;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.photo-upload-field {
  display: grid;
  gap: 8px;
}

.photo-drop-zone {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 12px;
  border: 2px dashed rgba(18, 107, 53, 0.42);
  border-radius: 8px;
  background: #f8fff8;
  color: var(--green-deep);
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

.photo-drop-zone.is-dragging {
  border-color: var(--green);
  background: #eef9ef;
}

.photo-drop-zone input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-drop-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.photo-upload-status {
  min-height: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.photo-upload-status.is-error {
  color: var(--red);
}

.announcement-editor {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.availability-toggle {
  min-height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-transform: none;
}

.availability-toggle input {
  width: 18px;
  min-height: 18px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  margin-top: 22px;
  padding: 16px 0 0;
  background: #fffdf8;
}

@media (max-width: 760px) {
  .admin-header,
  .editor-group-head,
  .section-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-grid,
  .item-editor,
  .slide-editor,
  .announcement-editor {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions a,
  .admin-actions button {
    flex: 1;
  }
}

@media print {
  .display-body {
    background: #fff;
  }

  .display-frame {
    width: 100vw;
    height: auto;
    padding: 0;
    background: #fff;
  }

  .display-screen {
    min-height: 100vh;
    border: 2px solid var(--ink);
  }

  .slide-track,
  .hours-card,
  .menu-section h3,
  .menu-section-head p,
  .display-footer,
  .date-pill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
