#menu-header {
  border-bottom: 2px solid black;
}

#menu-wrapper {
  position: relative;
  margin-bottom: 100px;
}

#menu-root {
  height: 500px;
  max-width: 100vw;
  overflow: auto;
  margin-top: 25px;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
}

#menu-root::-webkit-scrollbar {
  display: none;
}

#menu-root > table {
  width: 100%;
  max-width: 100vw;
  border: 1px solid black;
  border-collapse: collapse;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(248, 243, 233, 0.95));
}

.menu-table-header {
  position: absolute;
  top: -25px;
  margin-left: -30px;
  z-index: 2;
  font-size: larger;
  font-weight: bold;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

tr.menu-item > td {
  border-bottom: 1px solid gray;
  border-right: 1px solid gray;
  padding-left: 20px;
}

td.pattern-name {
  cursor: pointer;
  text-decoration: underline;
  width: 200px;
}

td.pattern-description {
  min-width: 320px;
  white-space: normal;
  line-height: 1.4;
  padding-top: 12px;
  padding-bottom: 12px;
}

.menu-state-cell {
  padding: 0;
}

.menu-state-panel {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 48px 56px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 40%),
    linear-gradient(135deg, rgba(216, 228, 198, 0.72), rgba(243, 232, 209, 0.78));
}

.menu-state-eyebrow,
.menu-state-title,
.menu-state-detail,
.menu-state-note {
  margin: 0;
}

.menu-state-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.menu-state-title {
  font-size: 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
}

.menu-state-detail {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.6;
}

.menu-state-note {
  max-width: 38rem;
  color: rgba(30, 30, 30, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

.menu-state-action {
  width: fit-content;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(40, 40, 40, 0.5);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.menu-state-action:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.menu-state-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.menu-state-loading .menu-state-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 42%),
    linear-gradient(135deg, rgba(210, 224, 190, 0.8), rgba(237, 227, 187, 0.82));
}

.menu-state-error .menu-state-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(135deg, rgba(246, 211, 190, 0.88), rgba(236, 189, 177, 0.92));
}

.menu-state-empty .menu-state-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(135deg, rgba(219, 224, 208, 0.7), rgba(234, 223, 194, 0.82));
}

.preview-grid-frame {
  display: inline-block;
  cursor: pointer;
}

.rotate-button {
  cursor: pointer;
  font-size: 30px;
  font-weight: bold;
}

.rotate-button:hover {
  text-decoration: underline;
}

.flip-button {
  cursor: pointer;
  font-size: 30px;
  font-weight: bold;
  margin-left: 35px;
}
