:root {
  --night: #061516;
  --ink: #102224;
  --ink-soft: #274245;
  --milk: #fff7df;
  --tile: #f8f0d7;
  --tile-shadow: #ead8a9;
  --chrome: #d8e1df;
  --chrome-dark: #7c8d8b;
  --chrome-deep: #506766;
  --aqua: #0b7778;
  --aqua-dark: #064c4d;
  --mint: #8bd0c5;
  --red: #d73735;
  --red-dark: #8f1f28;
  --pink: #f08a91;
  --butter: #ffd463;
  --mustard: #dca92f;
  --blacktop: #111819;
  --shadow-hard: 8px 8px 0 rgba(6, 21, 22, .24);
  --shadow-wide: 0 26px 70px rgba(6, 21, 22, .32);
  --radius: 8px;
  --display: "Cooper Black", "Bookman Old Style", Georgia, serif;
  --condensed: "Avenir Next Condensed", "DIN Condensed", "Gill Sans", "Trebuchet MS", sans-serif;
  --body: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  --tile-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23fff7df'/%3E%3Crect width='28' height='28' fill='%23e9d99e'/%3E%3Crect x='28' y='28' width='28' height='28' fill='%23e9d99e'/%3E%3Cpath d='M0 0H56V56H0Z' fill='none' stroke='%23d5bd78' stroke-width='2'/%3E%3C/svg%3E");
  --stripe-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='16' viewBox='0 0 80 16'%3E%3Crect width='80' height='16' fill='%23fff7df'/%3E%3Crect width='16' height='16' fill='%23d73735'/%3E%3Crect x='32' width='16' height='16' fill='%230b7778'/%3E%3Crect x='64' width='16' height='16' fill='%23d73735'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--night);
}
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background-color: var(--tile);
  background-image: var(--tile-pattern);
  background-size: 56px 56px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  letter-spacing: 0;
  font-family: var(--display);
  line-height: .98;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 1.55rem;
}
h3 {
  font-size: 1.3rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes counterSlide {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes signJitter {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  45% { transform: rotate(-1deg) translateY(-2px); }
  55% { transform: rotate(.5deg) translateY(1px); }
}
@keyframes bulbBlink {
  0%, 100% { opacity: 1; }
  48% { opacity: .4; }
  52% { opacity: 1; }
}
@keyframes arrowFloat {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-7px); }
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(14px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes recordSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes chromePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 212, 99, 0), var(--shadow-hard); }
  50% { box-shadow: 0 0 22px rgba(255, 212, 99, .46), var(--shadow-hard); }
}

.app-shell {
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding: .7rem 2rem .82rem;
  color: var(--milk);
  background: var(--night);
  border-bottom: 4px solid var(--chrome);
  box-shadow: 0 14px 0 rgba(6, 21, 22, .2);
}
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .42rem;
  background: var(--stripe-pattern);
  background-size: 80px 16px;
  pointer-events: none;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.75rem;
  flex: 0 0 auto;
  padding: .22rem .34rem;
  text-decoration: none;
  background: var(--blacktop);
  border: 2px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px rgba(255, 247, 223, .08), 5px 5px 0 rgba(0, 0, 0, .28);
}
.brand::after {
  content: "";
  position: absolute;
  inset: .28rem;
  border: 1px solid rgba(255, 212, 99, .45);
  border-radius: 5px;
  pointer-events: none;
}
.brand img {
  display: block;
  width: 100%;
  max-height: 3.35rem;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(255, 212, 99, .45));
  transition: transform .18s ease, filter .18s ease;
}
.brand:hover img, .brand:focus-visible img {
  transform: translateY(-1px) rotate(-1deg);
  filter: drop-shadow(0 0 12px rgba(255, 212, 99, .8)) drop-shadow(0 5px 0 rgba(0, 0, 0, .34));
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .48rem;
  font-family: var(--condensed);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
}
.nav-toggle { display: none; }
.nav a, .link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.28rem;
  padding: .46rem .78rem;
  color: var(--milk);
  background: var(--aqua-dark);
  border: 2px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .34);
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav a:hover, .link-button:hover,
.nav a:focus-visible, .link-button:focus-visible {
  color: var(--night);
  background: var(--butter);
  box-shadow: 0 4px 0 var(--red-dark);
  transform: translateY(-2px);
}
.nav form { margin: 0; }

.flash {
  width: min(70rem, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .85rem 1rem;
  color: var(--milk);
  background: var(--red-dark);
  border: 3px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
.flash.notice {
  background: var(--aqua-dark);
}

button, .small-cta, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.8rem;
  padding: .72rem 1rem;
  color: var(--milk);
  background: var(--red);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--red-dark);
  font-family: var(--condensed);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
button:hover, .small-cta:hover, .primary-button:hover,
button:focus-visible, .small-cta:focus-visible, .primary-button:focus-visible {
  color: var(--night);
  background: var(--butter);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16), 0 5px 0 var(--mustard);
  transform: translateY(-2px);
}
button:disabled, button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .65;
  transform: none;
}
.secondary-button {
  color: var(--milk);
  background: var(--aqua);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--aqua-dark);
}
.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--night);
  background: var(--mint);
}
.danger {
  min-height: 2.35rem;
  background: var(--blacktop);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .08), 0 5px 0 rgba(0, 0, 0, .34);
}
.danger:hover,
.danger:focus-visible {
  color: var(--milk);
  background: var(--red);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 var(--red-dark);
}
input, select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.95rem;
  padding: .74rem .86rem;
  color: var(--ink);
  background: #fffdf4;
  border: 2px solid var(--night);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px rgba(216, 225, 223, .38), 4px 4px 0 rgba(6, 21, 22, .14);
}
input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
}
input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
textarea {
  min-height: 7rem;
  resize: vertical;
}
input:focus, select:focus, textarea:focus,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

.eyebrow {
  margin-bottom: .42rem;
  color: var(--red);
  font-family: var(--condensed);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h1 {
  margin-bottom: 0;
  color: var(--night);
  font-size: 3.15rem;
}
.section-head a { font-weight: 900; }
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
}
.section-actions form {
  margin: 0;
}

/* Home counter */
.booth-stage {
  min-height: calc(100vh - 5rem);
  padding: 1.15rem;
  background-color: var(--night);
  background-image:
    var(--tile-pattern);
  background-size: 56px 56px;
}
.booth-scene {
  position: relative;
  display: grid;
  align-content: start;
  gap: .85rem;
  width: min(100%, 1180px);
  min-height: 760px;
  margin: 0 auto;
  padding: 2rem 1.7rem 1.5rem 2rem;
  overflow: hidden;
  background: url("/static/assets/dined-booth-home-clean.jpg") center / cover no-repeat;
  border: 7px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-wide), inset 0 0 0 4px rgba(6, 21, 22, .48);
}
.booth-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 22, .28);
  pointer-events: none;
}
.booth-scene::after {
  display: none;
}
.booth-layer {
  position: relative;
  z-index: 1;
}
.booth-layer-action {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  margin: 0;
}
.booth-search {
  position: relative;
  max-width: 56rem;
  padding: 1rem 3.2rem 1.15rem 1.1rem;
  color: var(--milk);
  background: rgba(6, 21, 22, .94);
  border: 4px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard), inset 0 0 0 2px rgba(255, 212, 99, .2);
  animation: counterSlide .54s cubic-bezier(.2, .8, .2, 1) both;
}
.booth-search::before {
  content: "Now Seating";
  display: inline-flex;
  margin-bottom: .42rem;
  padding: .18rem .52rem;
  color: var(--night);
  background: var(--butter);
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--condensed);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.booth-search::after {
  content: "";
  position: absolute;
  top: .95rem;
  right: 1rem;
  width: .5rem;
  height: .5rem;
  background: var(--butter);
  border-radius: 50%;
  box-shadow:
    0 1rem 0 var(--red),
    0 2rem 0 var(--mint),
    0 3rem 0 var(--butter),
    0 4rem 0 var(--red);
  animation: bulbBlink 1.4s steps(2, end) infinite;
}
.booth-search h1 {
  margin-bottom: .8rem;
  color: var(--milk);
  font-size: 3.35rem;
  text-shadow: 3px 3px 0 var(--red-dark);
}
.booth-search p {
  max-width: 34rem;
  margin: 0;
  color: #ffe9a9;
  font-family: var(--condensed);
  font-size: 1.12rem;
  font-weight: 900;
}
.search-row {
  display: flex;
  gap: .55rem;
  flex-wrap: nowrap;
}
.search-row input {
  min-width: 0;
  flex: 1 1 auto;
}
.search-row button {
  flex: 0 0 8rem;
}
.image-cta, .public-badge-link {
  display: grid;
  place-items: center;
  width: 13rem;
  text-decoration: none;
  transition: filter .16s ease, transform .16s ease;
}
.image-cta {
  animation: arrowFloat 3.4s ease-in-out infinite;
}
.public-badge-link {
  min-height: 6.2rem;
  padding: .8rem;
  color: var(--night);
  background: var(--butter);
  border: 4px solid var(--night);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transform: rotate(-4deg);
}
.public-badge-link span {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: .95;
  text-align: center;
}
.image-cta img {
  display: block;
  width: 100%;
  filter: drop-shadow(7px 9px 0 rgba(6, 21, 22, .38));
  transition: filter .16s ease;
}
.image-cta:hover, .image-cta:focus-visible,
.public-badge-link:hover, .public-badge-link:focus-visible {
  animation-play-state: paused;
}
.public-badge-link:hover, .public-badge-link:focus-visible {
  transform: rotate(-4deg) translateY(-4px);
}
.image-cta:hover img, .image-cta:focus-visible img {
  filter: drop-shadow(0 0 14px rgba(255, 212, 99, .86)) drop-shadow(7px 11px 0 rgba(6, 21, 22, .42));
}
.booth-recent {
  position: relative;
  z-index: 1;
  width: min(62rem, 100%);
  margin: .1rem auto 0;
}
.booth-recent .section-head {
  align-items: center;
  margin: 0 0 .7rem;
  padding: .42rem .58rem;
  color: var(--milk);
  background: var(--red-dark);
  border: 3px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(6, 21, 22, .32);
}
.booth-recent .section-head h2 {
  margin: 0;
  color: var(--milk);
  font-family: var(--condensed);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}
.next-up {
  display: inline-block;
  margin: .35rem 0 0;
  padding: .2rem .46rem;
  color: var(--night);
  background: var(--butter);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  font-family: var(--condensed);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(6, 21, 22, .28);
}
.booth-recent .section-head a {
  color: var(--milk);
  font-family: var(--condensed);
  text-transform: uppercase;
}
.booth-recent .empty {
  display: inline-block;
  margin: .15rem 0 0;
  padding: .42rem .62rem;
  color: var(--milk);
  background: rgba(6, 21, 22, .78);
  border: 2px solid rgba(255, 247, 223, .56);
  border-radius: var(--radius);
  font-family: var(--condensed);
  font-weight: 900;
  font-style: normal;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}
.booth-recent .visit-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.booth-recent .visit-card:nth-of-type(n+4) { display: none; }
.booth-recent .visit-card {
  min-height: 12.6rem;
  background: rgba(255, 248, 229, .96);
}
.booth-recent .visit-card form { display: none; }

/* Page shells */
.page-band {
  min-height: calc(100vh - 5rem);
  padding: 2.5rem;
  background-color: var(--tile);
  background-image: var(--tile-pattern);
  background-size: 56px 56px;
}
.wide-ticket, .login-card {
  position: relative;
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.35rem;
  background: var(--chrome);
  border: 4px solid var(--night);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard), inset 0 0 0 3px var(--milk);
  animation: counterSlide .45s cubic-bezier(.2, .8, .2, 1) both;
}
.wide-ticket::before, .login-card::before {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  top: .75rem;
  height: .52rem;
  background: var(--stripe-pattern);
  background-size: 80px 16px;
  border: 2px solid var(--night);
  border-radius: 999px;
}
.wide-ticket > *, .login-card > * {
  position: relative;
  z-index: 1;
}
.ledger-panel {
  padding-top: 1.8rem;
}
.visit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
}
.visit-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .62rem 1rem;
  padding: 1rem;
  overflow: hidden;
  background: #fff8e5;
  border: 3px solid var(--night);
  border-bottom: .55rem solid var(--aqua);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(6, 21, 22, .18);
  animation: cardEntrance .44s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform .18s ease, box-shadow .18s ease;
}
.visit-card:nth-child(2) { animation-delay: .04s; }
.visit-card:nth-child(3) { animation-delay: .08s; }
.visit-card:nth-child(4) { animation-delay: .12s; }
.visit-card:nth-child(5) { animation-delay: .16s; }
.visit-card:nth-child(6) { animation-delay: .2s; }
.visit-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: .55rem;
  background: var(--stripe-pattern);
  background-size: 80px 16px;
}
.visit-card:hover {
  transform: translateY(-3px) rotate(-.35deg);
  box-shadow: 8px 10px 0 rgba(6, 21, 22, .24);
}
.visit-card h3 {
  margin: .18rem 0 .3rem;
  color: var(--aqua-dark);
  font-size: 1.38rem;
}
.visit-card h3 a {
  text-decoration: none;
}
.visit-card h3 a:hover {
  color: var(--red);
}
.visit-meta, .muted, .visit-card p {
  margin-bottom: .5rem;
  color: var(--ink-soft);
}
.visit-meta {
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
.score-disc {
  display: grid;
  place-items: center;
  width: 3.85rem;
  height: 3.85rem;
  color: var(--milk);
  background: var(--red);
  border: 4px solid var(--night);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--chrome), 0 5px 0 rgba(6, 21, 22, .22);
  font-family: var(--condensed);
  font-size: 1.38rem;
  font-weight: 900;
}
.ratings, .tags {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .38rem;
}
.ratings span, .tags span, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .24rem .5rem;
  color: var(--milk);
  background: var(--aqua);
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--condensed);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.ratings span:nth-child(4n+2) { background: var(--red); }
.ratings span:nth-child(4n+3) {
  color: var(--night);
  background: var(--butter);
}
.ratings span:nth-child(4n+4) { background: var(--blacktop); }
.tags span, .badge {
  color: var(--night);
  background: var(--mustard);
}
.note {
  grid-column: 1 / -1;
  padding-top: .7rem;
  border-top: 3px solid rgba(6, 21, 22, .14);
}
.visit-card form {
  grid-column: 1 / -1;
}
.visit-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding-top: .2rem;
}
.visit-actions form {
  margin: 0;
}
.confirm-modal {
  width: min(calc(100% - 2rem), 28rem);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.confirm-modal::backdrop {
  background: rgba(6, 21, 22, .64);
}
.confirm-card {
  display: grid;
  gap: .8rem;
  padding: 1.2rem;
  background: var(--milk);
  border: 4px solid var(--night);
  border-bottom: .55rem solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-wide);
}
.confirm-card h2 {
  margin-bottom: 0;
  color: var(--red-dark);
  font-size: 1.75rem;
}
.confirm-card p {
  margin-bottom: .2rem;
  color: var(--ink-soft);
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
}
.confirm-actions button {
  min-width: 7.5rem;
}
.confirm-actions .danger:hover,
.confirm-actions .danger:focus-visible {
  color: var(--milk);
  background: var(--red);
  box-shadow: 0 0 0 .35rem rgba(255, 212, 99, .82), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 7px 0 var(--red-dark), 0 12px 18px rgba(6, 21, 22, .28);
  transform: translateY(-3px);
}
.confirm-actions .danger:active {
  box-shadow: 0 0 0 .28rem rgba(255, 212, 99, .72), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 3px 0 var(--red-dark);
  transform: translateY(1px);
}
.empty {
  color: var(--ink-soft);
  font-family: var(--condensed);
  font-weight: 900;
}

/* Forms and utility pages */
.order-page {
  background-color: var(--night);
  background-image: var(--tile-pattern);
}
.order-pad {
  overflow: hidden;
  border-color: var(--night);
  box-shadow: var(--shadow-wide), inset 0 0 0 3px var(--chrome);
}
.console-pad {
  max-width: 82rem;
  padding-top: 1.8rem;
  padding-bottom: 1.25rem;
}
.console-head {
  align-items: center;
  margin-bottom: .7rem;
}
.place-source {
  margin: 0 0 1rem;
  padding: .58rem .75rem;
  color: var(--milk);
  background: var(--aqua-dark);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr);
  gap: 1rem;
  align-items: start;
}
.form-section {
  margin: 1rem 0;
}
.form-section h2, fieldset legend {
  margin: 0;
  color: var(--red-dark);
  font-family: var(--condensed);
  font-size: .92rem;
  font-weight: 900;
  text-transform: uppercase;
}
.form-grid, .ratings-field, .tags-field, .details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .9rem;
}
.form-grid > label {
  min-width: 0;
}
.visit-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.restaurant-edit-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
label, legend, dt {
  display: grid;
  gap: .36rem;
  color: var(--aqua-dark);
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
fieldset {
  margin: 1rem 0;
  padding: 1rem;
  border: 3px solid var(--night);
  border-radius: var(--radius);
  background: #fffdf4;
  box-shadow: inset 0 0 0 3px var(--chrome);
}
.restaurant-console, .visit-console, .score-console, .chip-field {
  margin-top: .75rem;
}
.score-console {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rating-requirement {
  grid-column: 1 / -1;
  margin: -.2rem 0 .1rem;
  padding: .55rem .7rem;
  color: var(--red-dark);
  background: #f8ead0;
  border: 2px solid var(--mustard);
  border-radius: var(--radius);
  font-family: var(--condensed);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
}
.rating-requirement[hidden] {
  display: none;
}
.log-form-incomplete [data-log-submit] {
  background: var(--aqua-dark);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 rgba(6, 21, 22, .35);
}
.log-form-incomplete [data-log-submit]:hover,
.log-form-incomplete [data-log-submit]:focus-visible {
  color: var(--milk);
  background: var(--aqua-dark);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 5px 0 rgba(6, 21, 22, .35);
  transform: none;
}
.rating-card {
  min-height: 8.6rem;
  padding: .85rem;
  text-align: center;
  background: var(--tile);
  border: 3px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(6, 21, 22, .14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.rating-card:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 rgba(6, 21, 22, .2);
}
.avatar-dot {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .15rem;
  color: var(--milk);
  background: var(--aqua);
  border: 3px solid var(--night);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.35rem;
  box-shadow: 0 5px 0 rgba(6, 21, 22, .2);
}
.avatar-face {
  display: block;
  justify-self: center;
  width: 4.25rem;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(6, 21, 22, .2));
}
.rating-card input {
  margin-top: .35rem;
  text-align: center;
}
.chip-field {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.chip-field label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.chip-field input[type="checkbox"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.chip-field span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.55rem;
  padding: .45rem .7rem;
  color: var(--night);
  background: var(--tile);
  border: 3px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(6, 21, 22, .14);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}
.chip-field input:checked + span {
  color: var(--milk);
  background: var(--red);
  transform: rotate(-1deg);
}
.chip-field .new-tag {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  grid-column: span 2;
}
.notes-field {
  margin-top: 1rem;
}
.photo-console {
  margin-top: 1rem;
}
.photo-console-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}
.photo-console-head p {
  margin: .18rem 0 0;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
  text-transform: none;
}
.photo-upload-strip,
.visit-photo-strip {
  display: flex;
  align-items: stretch;
  gap: .65rem;
  max-width: 100%;
  overflow-x: auto;
  padding: .15rem .15rem .5rem;
  scrollbar-width: thin;
}
.visit-photo-strip {
  grid-column: 1 / -1;
  padding-top: .72rem;
  border-top: 3px solid rgba(6, 21, 22, .12);
}
.photo-upload-tile {
  position: relative;
  flex: 0 0 auto;
}
.photo-thumb,
.photo-add-tile {
  position: relative;
  flex: 0 0 6.6rem;
  display: grid;
  place-items: center;
  width: 6.6rem;
  min-width: 6.6rem;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--night);
  background: var(--tile);
  border: 3px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(6, 21, 22, .16);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.visit-photo-strip .photo-thumb {
  flex-basis: 5.7rem;
  width: 5.7rem;
  min-width: 5.7rem;
}
.photo-thumb:hover,
.photo-thumb:focus-visible {
  color: var(--night);
  background: var(--tile);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(6, 21, 22, .22);
}
.photo-add-tile:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(6, 21, 22, .22);
}
.photo-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-add-tile {
  gap: .18rem;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(229, 167, 47, .2), rgba(13, 111, 111, .14)),
    #fffdf4;
  font-family: var(--condensed);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.photo-add-tile[hidden] {
  display: none;
}
.photo-add-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--milk);
  background: var(--red);
  border: 2px solid var(--night);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}
.photo-remove-button {
  position: absolute;
  right: .28rem;
  bottom: .28rem;
  min-height: 1.65rem;
  padding: .18rem .45rem;
  color: var(--milk);
  background: var(--red);
  border: 2px solid var(--night);
  border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(6, 21, 22, .22);
  font-family: var(--condensed);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.photo-error {
  margin: .25rem 0 0;
  padding: .55rem .7rem;
  color: var(--red-dark);
  background: #f8ead0;
  border: 2px solid var(--mustard);
  border-radius: var(--radius);
  font-family: var(--condensed);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
}
.photo-error[hidden] {
  display: none;
}
.photo-preview-modal {
  width: min(calc(100% - 1.5rem), 52rem);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.photo-preview-modal-map {
  width: min(calc(100% - 1.5rem), 74rem);
}
.photo-preview-modal::backdrop {
  background: rgba(6, 21, 22, .76);
}
.photo-preview-modal:focus {
  outline: none;
}
.photo-preview-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  background: #fff8e5;
  border: 4px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 9px 9px 0 rgba(6, 21, 22, .34);
}
.photo-preview-head,
.photo-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.photo-preview-actions[hidden] {
  display: none;
}
.photo-preview-head h2 {
  margin: 0;
  color: var(--red-dark);
  font-family: var(--condensed);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}
.photo-preview-stage {
  display: grid;
  place-items: center;
  min-height: min(62vh, 34rem);
  background:
    linear-gradient(45deg, rgba(13, 111, 111, .16) 25%, transparent 25% 50%, rgba(13, 111, 111, .16) 50% 75%, transparent 75%),
    #fffdf4;
  background-size: 22px 22px;
  border: 3px solid var(--night);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-preview-stage img {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 34rem);
  object-fit: contain;
}
.photo-preview-modal-map .photo-preview-stage {
  min-height: min(74vh, 42rem);
}
.photo-preview-modal-map .photo-preview-stage img {
  width: 100%;
  max-height: min(74vh, 42rem);
}
.photo-preview-actions span {
  color: var(--aqua-dark);
  font-family: var(--condensed);
  font-weight: 900;
}
.photo-preview-actions button:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
}
.console-actions {
  padding-top: .9rem;
  border-top: 4px solid var(--night);
}
.inline-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  grid-template-columns: auto 1fr;
  line-height: 1.2;
}
.inline-check input {
  flex: 0 0 auto;
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
  accent-color: var(--red);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.details {
  margin: 1rem 0;
}
.detail-item {
  display: grid;
  gap: .18rem;
  align-content: start;
  min-width: 0;
}
.inline-form {
  margin: 1rem 0 1.45rem;
}
.details dt {
  color: var(--red-dark);
  font-size: .82rem;
}
.details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sign-panel {
  overflow: hidden;
  padding-top: 1.8rem;
}
.sign-panel::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 1.6rem;
  width: 4.8rem;
  height: 4.8rem;
  background: var(--red);
  border: 4px solid var(--night);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px var(--butter), 5px 5px 0 rgba(6, 21, 22, .2);
  opacity: .18;
  transform: rotate(8deg);
}
.search-panel h1, .nearby-panel h1 {
  max-width: 42rem;
  color: var(--night);
  font-size: 3.2rem;
}
.search-panel .search-row, .nearby-panel .search-row {
  position: relative;
  z-index: 1;
  margin: 1rem 0 1.4rem;
}
.restaurant-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
}
.restaurant-list + h2 {
  margin-top: 1.35rem;
}
.restaurant-row {
  display: grid;
  gap: .28rem;
  padding: .95rem 1rem;
  color: var(--ink);
  background: #fffdf4;
  border: 3px solid var(--night);
  border-left-width: .75rem;
  border-left-color: var(--aqua);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(6, 21, 22, .13);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem .85rem;
}
.history-row > span, .history-row .tags {
  grid-column: 1 / -1;
}
.history-title, .place-row > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.history-title a {
  text-decoration: none;
}
.history-title a:hover strong,
.history-title a:focus-visible strong {
  color: var(--red);
}
.row-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.history-remove-form {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  justify-self: end;
  margin: 0;
}
.history-remove-button {
  min-height: 2.1rem;
  padding: .45rem .68rem;
  font-size: .72rem;
}
.restaurant-row .row-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: .22rem .52rem;
  color: var(--milk);
  background: var(--aqua);
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--condensed);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.restaurant-row:hover {
  border-left-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 7px 8px 0 rgba(6, 21, 22, .18);
}
.restaurant-row strong {
  color: var(--aqua-dark);
  font-family: var(--display);
  font-size: 1.18rem;
}
.restaurant-row span { color: var(--ink-soft); }
.restaurant-row em {
  justify-self: start;
  padding: .2rem .45rem;
  color: var(--night);
  background: var(--butter);
  border: 2px solid var(--night);
  border-radius: 999px;
  font-family: var(--condensed);
  font-size: .76rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.place-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.place-row > span {
  grid-column: 1 / -1;
}
.place-row .small-cta {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  min-width: 8.5rem;
}
.nearby-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
  gap: .7rem;
  margin: 1rem 0 1.4rem;
}
.nearby-search-line {
  display: contents;
}
.nearby-search-line input {
  min-width: 0;
  width: 100%;
}
.nearby-search-line button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.pass-page {
  display: grid;
  place-items: start center;
}
.login-card {
  width: min(100%, 29rem);
}
.kitchen-pass {
  margin-top: 4rem;
  padding-top: 2rem;
}
.kitchen-pass h1 {
  margin-bottom: 1rem;
  color: var(--night);
  font-size: 2.7rem;
}
.kitchen-pass .primary-button {
  margin-top: .75rem;
}

/* Trophy screen */
.jukebox-stage {
  min-height: calc(100vh - 5rem);
  padding: 1.15rem;
  color: var(--milk);
  background: var(--night);
}
.trophy-panel {
  --record-grid-top: 8.8rem;
  --record-size: 10.4rem;
  --record-row-gap: 1rem;
  --record-to-list-gap: var(--record-row-gap);
  position: relative;
  width: min(100%, 1180px);
  min-height: 880px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--milk);
  background: url("/static/assets/dined-jukebox-trophy-clean-v2.jpg") left center / cover no-repeat;
  border: 7px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(255, 247, 223, .14);
}
.trophy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 14, .42);
  pointer-events: none;
}
.trophy-panel::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  height: .62rem;
  background: var(--stripe-pattern);
  background-size: 80px 16px;
  border: 2px solid var(--night);
  border-radius: 999px;
}
.trophy-title {
  position: absolute;
  top: 2.25rem;
  left: 2rem;
  z-index: 1;
  width: 18rem;
  padding: 1rem;
  color: var(--milk);
  background: rgba(6, 21, 22, .92);
  border: 4px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  animation: signJitter 4s ease-in-out infinite;
}
.trophy-title p {
  margin-bottom: .35rem;
  color: var(--mint);
  font-family: var(--condensed);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-title h1 {
  margin-bottom: 0;
  color: var(--milk);
  font-size: 3.55rem;
  text-shadow: 3px 3px 0 var(--red-dark);
}
.record-grid {
  position: absolute;
  top: var(--record-grid-top);
  right: 3rem;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
  gap: var(--record-row-gap);
  width: min(43rem, 62%);
}
.record {
  position: relative;
  width: var(--record-size);
  min-height: var(--record-size);
  justify-self: center;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .1rem;
  padding: .92rem;
  color: var(--milk);
  background: var(--blacktop);
  border: 4px solid var(--night);
  border-radius: 50%;
  box-shadow: var(--shadow-hard);
  text-align: center;
  overflow: hidden;
}
.record::before {
  content: "";
  position: absolute;
  inset: 1rem;
  background: var(--red);
  border: 1rem solid #050707;
  border-radius: 50%;
  animation: recordSpin 14s linear infinite;
}
.record::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  height: .75rem;
  background: #050707;
  border: 3px solid var(--night);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.record span, .record p, .record small {
  position: relative;
  z-index: 1;
}
.record-value {
  display: block;
  max-width: 6rem;
  color: var(--milk);
  font-family: var(--condensed);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: .9;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 var(--night);
}
.record-name {
  font-size: 1.35rem;
  line-height: .92;
}
.record p {
  margin: 0;
  color: var(--butter);
  font-family: var(--condensed);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.record small {
  color: var(--mint);
  font-family: var(--condensed);
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.dined-map-panel {
  position: absolute;
  top: 14.75rem;
  left: 2rem;
  z-index: 1;
  width: min(22rem, calc(100% - 4rem));
  padding: .85rem;
  color: var(--milk);
  background: rgba(6, 21, 22, .92);
  border: 4px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.dined-map-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
  color: var(--butter);
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
.dined-map-heading p {
  margin: 0;
  font-size: 1rem;
}
.dined-map-heading span {
  color: var(--mint);
  font-size: .78rem;
  white-space: nowrap;
}
.dined-map-preview {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: none;
  cursor: zoom-in;
  overflow: hidden;
}
.dined-map-preview:hover,
.dined-map-preview:focus-visible {
  color: inherit;
  background: transparent;
  box-shadow: 0 0 0 3px var(--butter);
  outline: none;
  transform: translateY(-1px);
}
.dined-map-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--blacktop);
  border: 3px solid var(--night);
  border-radius: calc(var(--radius) - 2px);
}
.dined-map-empty {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
  color: var(--mint);
  background: var(--blacktop);
  border: 3px solid var(--night);
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--condensed);
  font-size: .95rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.trophy-map-modal {
  width: min(calc(100% - 1.5rem), 72rem);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.trophy-map-modal::backdrop {
  background: rgba(6, 21, 22, .78);
}
.trophy-map-modal:focus {
  outline: none;
}
.trophy-map-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  background: #fff8e5;
  border: 4px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 9px 9px 0 rgba(6, 21, 22, .34);
}
.trophy-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.trophy-map-head h2 {
  margin: 0;
  color: var(--red-dark);
  font-family: var(--condensed);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blacktop);
  border: 3px solid var(--night);
  border-radius: var(--radius);
  overflow: hidden;
}
.trophy-map-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trophy-map-label {
  position: absolute;
  left: clamp(3.5rem, var(--map-label-left), calc(100% - 3.5rem));
  top: calc(var(--map-label-top) - 9.5%);
  z-index: 1;
  max-width: 7.75rem;
  padding: .16rem .32rem .13rem;
  overflow: hidden;
  color: var(--night);
  background: rgba(255, 248, 229, .92);
  border: 2px solid rgba(6, 21, 22, .78);
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(6, 21, 22, .2);
  font-family: var(--condensed);
  font-size: clamp(.56rem, 1.15vw, .78rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  pointer-events: none;
}
.track-list {
  position: relative;
  z-index: 1;
  margin: calc(var(--record-grid-top) + var(--record-size) + var(--record-size) + var(--record-size) + var(--record-row-gap) + var(--record-row-gap) + var(--record-to-list-gap)) 3rem 2rem;
  padding: .95rem 1rem;
  color: var(--milk);
  background: rgba(6, 21, 22, .92);
  border: 4px solid var(--chrome);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.track-list h2 {
  margin-bottom: .5rem;
  color: var(--butter);
  font-family: var(--condensed);
  font-size: .98rem;
  text-transform: uppercase;
}
.track-section-title {
  margin-top: .85rem;
  padding-top: .65rem;
  border-top: 2px solid rgba(255, 247, 223, .22);
}
.top-restaurant-list {
  display: grid;
  gap: .18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-restaurant-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  min-height: 1.55rem;
  border-bottom: 2px dotted rgba(255, 247, 223, .35);
  color: var(--mint);
  font-family: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
}
.track-rank {
  color: var(--milk);
  text-align: center;
}
.track-cuisine {
  color: var(--milk);
  overflow-wrap: anywhere;
}
.cuisine-restaurant-list li {
  grid-template-columns: minmax(4.5rem, 7rem) minmax(0, 1fr) auto;
}
.track-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.track-score {
  text-align: right;
  color: var(--milk);
  font-family: var(--body);
  text-transform: none;
}
.track-empty {
  margin: 0;
  color: var(--milk);
  font-family: var(--body);
  font-weight: 900;
}

@media (max-width: 1200px) {
  .booth-scene {
    display: grid;
    align-content: start;
    overflow: visible;
    padding: .75rem;
    background-position: center top;
  }
  .booth-scene::after {
    display: none;
  }
  .booth-layer-action {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin: 0;
  }
  .booth-search {
    max-width: none;
    padding: .9rem 2.4rem 1rem 1rem;
  }
  .booth-search h1 {
    font-size: clamp(2.4rem, 5vw, 3.15rem);
  }
  .booth-recent {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: .85rem 0 0;
    transform: none;
  }
  .booth-recent .visit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booth-recent .visit-card:nth-of-type(n+3) {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .trophy-panel {
    min-height: 780px;
  }
  .booth-search h1 {
    font-size: clamp(2.15rem, 6vw, 3rem);
  }
  .record-grid {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trophy-panel {
    min-height: 0;
    overflow: visible;
    padding: 1rem;
    background-position: center top;
  }
  .trophy-panel::before {
    background: rgba(3, 12, 14, .2);
  }
  .trophy-title, .dined-map-panel, .track-list {
    position: relative;
    inset: auto;
    z-index: 1;
  }
  .trophy-title {
    width: min(20rem, 100%);
    margin: 1.2rem 0 .9rem;
  }
  .track-list {
    margin: .9rem 0 0;
  }
  .dined-map-panel {
    width: 100%;
    margin-top: .9rem;
  }
  .console-grid {
    grid-template-columns: 1fr;
  }
  .score-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .booth-layer-action {
    grid-template-columns: 1fr;
  }
  .booth-search {
    padding: .85rem;
  }
  .booth-search::after {
    display: none;
  }
  .image-cta, .public-badge-link {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: .98rem;
  }
  h1 {
    font-size: 2.25rem;
  }
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
    padding: .75rem .85rem 1rem;
  }
  .brand {
    width: 8.25rem;
  }
  .nav-toggle {
    display: inline-grid;
    width: 2.85rem;
    height: 2.5rem;
    margin-left: auto;
    place-items: center;
    gap: .22rem;
    padding: .45rem .5rem;
    color: var(--milk);
    background: var(--aqua-dark);
    border: 2px solid var(--chrome);
    border-radius: var(--radius);
    box-shadow: 0 4px 0 rgba(0, 0, 0, .34);
  }
  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 1.4rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }
  .nav {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: .45rem;
    padding-top: .5rem;
    font-size: .9rem;
  }
  .topbar.nav-open .nav { display: grid; }
  .nav a, .link-button {
    justify-content: center;
    width: 100%;
    min-height: 2.1rem;
    padding: .38rem .55rem;
  }
  .nav form { width: 100%; }
  .booth-stage, .jukebox-stage {
    padding: .55rem;
  }
  .booth-scene {
    display: grid;
    align-content: start;
    min-height: 0;
    overflow: visible;
    background-position: center top;
    border-width: 4px;
  }
  .booth-scene::after {
    display: none;
  }
  .booth-layer-action {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 1rem);
    margin: .55rem auto 0;
  }
  .booth-search {
    padding: .85rem;
    border-width: 3px;
  }
  .booth-search::after {
    display: none;
  }
  .booth-search h1 {
    font-size: 2.08rem;
    text-shadow: 2px 2px 0 var(--red-dark);
  }
  .image-cta, .public-badge-link {
    display: none;
  }
  .booth-recent {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 1rem);
    margin: .65rem auto .8rem;
    transform: none;
  }
  .booth-recent .visit-list {
    grid-template-columns: 1fr;
  }
  .booth-recent .visit-card:nth-of-type(n+3) { display: none; }
  .booth-recent .visit-card {
    min-height: 0;
  }
  .page-band {
    min-height: calc(100vh - 7rem);
    padding: .9rem .75rem 4.5rem;
  }
  .wide-ticket, .login-card {
    padding: 1rem;
    padding-top: 1.8rem;
    box-shadow: 5px 5px 0 rgba(6, 21, 22, .18), inset 0 0 0 3px var(--chrome);
  }
  .section-head {
    display: grid;
    gap: .75rem;
  }
  .section-head h1 {
    font-size: 2.25rem;
  }
  .visit-list {
    grid-template-columns: 1fr;
  }
  .visit-card {
    grid-template-columns: 1fr auto;
    padding: .85rem;
  }
  .score-disc {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.15rem;
  }
  .search-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .search-row button,
  .nearby-search-line button,
  .form-actions .primary-button {
    width: 100%;
  }
  .search-panel h1, .nearby-panel h1 {
    font-size: 2.25rem;
  }
  .sign-panel::after {
    width: 3rem;
    height: 3rem;
    right: 1rem;
    opacity: .1;
  }
  .nearby-controls {
    grid-template-columns: 1fr;
  }
  .nearby-search-line {
    display: grid;
    grid-template-columns: 1fr;
  }
  .nearby-search-line button {
    min-width: 0;
  }
  .form-grid, .ratings-field, .tags-field, .details {
    grid-template-columns: 1fr;
  }
  .score-console {
    grid-template-columns: 1fr;
  }
  .rating-card {
    min-height: 0;
  }
  .chip-field .new-tag {
    grid-column: auto;
  }
  .place-row {
    grid-template-columns: 1fr;
  }
  .history-row {
    grid-template-columns: 1fr;
  }
  .history-remove-form {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
  .history-remove-button {
    width: 100%;
  }
  .place-row .small-cta {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: .35rem;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .kitchen-pass {
    margin-top: 0;
  }
  .trophy-panel {
    border-width: 4px;
  }
  .trophy-title h1 {
    font-size: 2.8rem;
  }
  .record {
    min-height: 6.8rem;
    padding: .75rem;
  }
  .record-value {
    font-size: 2.25rem;
  }
  .record-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 430px) {
  .visit-card {
    grid-template-columns: 1fr;
  }
  .score-disc {
    grid-row: auto;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .top-restaurant-list li {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: .55rem;
  }
  .cuisine-restaurant-list li {
    grid-template-columns: minmax(0, 1fr);
  }
  .track-score {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .cuisine-restaurant-list .track-score {
    grid-column: 1;
  }
}

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