/* Targeted home-page repairs. Load after the component stylesheets. */


.bc-arrow, .ps-arrow, .ps-select { min-width: 44px; min-height: 44px; }
.bc-choices button { min-width: 44px; }
.cb-map-replay, #rain-reset { min-height: 44px; }
.footer-bottom { background: var(--red); }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) {
  .footer-bottom nav { gap: 0; font-size: 12px; }
}

/* Keep the fixed-width dictionary card's inner width on ultrawide screens. */
@media (min-width: 1600px) {
  .definition-card { padding-inline: min(6vw, 120px); }
}

/* On phones/tablets both photographs own a row above the framed text.
   Their normal-flow height and the row gap keep the yellow outline clear. */
@media (max-width: 850px) {
  .definition {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 5vw, 44px) 16px;
    align-items: start;
    min-height: 0;
    padding: 65px 7vw 85px;
  }
  .definition > .definition-photo {
    position: relative;
    inset: auto;
    grid-row: 1;
    z-index: auto;
    display: block;
    width: 100%;
    min-width: 0;
    height: clamp(132px, 27vw, 230px);
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 18px #46211a22;
  }
  .definition > .photo-left {
    grid-column: 1;
    object-position: 65% 58%;
    transform: rotate(-4deg);
  }
  .definition > .photo-right {
    grid-column: 2;
    object-position: 55% 50%;
    transform: rotate(4deg);
  }
  .definition > .definition-card {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }
}

/* Keep the full location label inside the square map on narrow phones. */
@media (max-width: 420px) {
  .location-section .cb-map-marker-label {
    left: 0;
    right: auto;
    bottom: -58px;
    translate: -50% 0;
    transform-origin: 50% 0;
  }
}

/* Keep the footer call to action readable on narrow phones. */
@media (max-width: 360px) {
  .footer-cta strong { font-size: 30px; }
}

/* Short landscape screens read the assembly in normal document flow.
   The existing photo supplies the complete burger; every ingredient stays
   visible without squeezing the 600px animated stage into a 390px viewport. */
@media (min-width: 701px) and (max-height: 600px) {
  .assembly-section.has-photo-assembly { height: auto; }
  .assembly-section.has-photo-assembly .assembly-sticky {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 5vw;
    height: auto;
    min-height: 0;
    padding: 85px 5vw 50px;
  }
  .assembly-section.has-photo-assembly .assembly-heading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }
  .assembly-section.has-photo-assembly #assembly-photo-canvas { display: none; }
  .assembly-section.has-photo-assembly .assembly-fallback {
    display: block !important;
    position: relative;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .assembly-section.has-photo-assembly .ingredients {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: auto;
  }
  .assembly-section.has-photo-assembly .ingredients li {
    display: flex;
    opacity: 1;
    transform: none;
  }
  .assembly-section.has-photo-assembly .assembly-hint { display: none; }
}

/* Give the real address a fixed place beside the larger brand. */
.topbar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  gap: 20px;
  padding: 18px 4vw;
  background: linear-gradient(var(--red) 68%, transparent);
}
.topbar .brand { width: 150px; height: 82px; }
.header-location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  line-height: 1.12;
}
.header-location strong {
  color: var(--yellow);
  font: 900 clamp(19px, 1.65vw, 26px)/1.1 Barlow, Impact, sans-serif;
}
.header-location span { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.topbar .status-pill {
  position: static;
  left: auto;
  transform: none;
  justify-self: end;
  white-space: nowrap;
}
.topbar .nav-order { justify-self: end; }
.header-menu { display: none; }
.mobile-menu-toggle, .topbar .nav-order-mobile { display: none; }
.topbar .nav-order-copy { font-size: 13px; line-height: 1.25; }
.topbar .nav-order-phone { display: none; }
.topbar .nav-order-handset { display: block; flex: 0 0 23px; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 851px) {
  html { scroll-padding-top: 166px; }
  .topbar { grid-template-columns: 200px minmax(135px, 1fr) auto auto auto; gap: 16px; padding-block: 16px; }
  .topbar .brand { width: 200px; height: 108px; }
  .header-menu { display: flex; gap: 8px; align-items: center; }
  .header-menu a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 8px; font-size: 11px; font-weight: 900; white-space: nowrap; }
  .header-menu .header-special { color: var(--yellow); border: 1px solid #ffbd1177; border-radius: 24px; padding-inline: 13px; }
  .header-menu a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 5px; }
  .header-menu .header-menu-card { background: var(--yellow); color: var(--red); border: 2px solid var(--yellow); border-radius: 28px; padding: 12px 17px; font-size: 13px; min-height: 50px; }
  .header-menu .header-menu-card:hover { background: var(--cream); border-color: var(--cream); color: var(--red); }
  .topbar .nav-order { gap: 12px; padding: 12px 20px; }
  .topbar .nav-order-copy { display: block; text-align: left; font-size: 11px; letter-spacing: .04em; }
  .topbar .nav-order-phone { display: block; margin-top: 3px; font-size: 16px; letter-spacing: 0; }
}
@media (min-width: 851px) and (max-width: 1399px) {
  .topbar { grid-template-columns: 180px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 5px 20px; }
  .topbar .brand { grid-column: 1; grid-row: 1; width: 180px; height: 98px; }
  .header-location { grid-column: 2; grid-row: 1; }
  .topbar .status-pill { grid-column: 1; grid-row: 2; justify-self: start; font-size: 10px; padding: 9px 12px; }
  .header-menu { grid-column: 2 / 4; grid-row: 2; }
  .topbar .nav-order { grid-column: 3; grid-row: 1; padding: 9px 16px; }
  html { scroll-padding-top: 214px; }
}



/* The game owns one row; brand, address and links are separate flow content. */
#playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 320px auto auto auto auto;
  min-height: 0;
  padding: 65px 5vw 28px;
}
#playground .footer-cta {
  grid-row: 1;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
}
#playground .footer-play-label {
  position: relative;
  inset: auto;
  grid-row: 2;
  justify-self: end;
  min-height: 44px;
  margin: 0;
}
#playground #footer-canvas {
  position: relative;
  inset: auto;
  grid-row: 3;
  width: 100%;
  height: 320px;
  min-width: 0;
}
#playground .footer-tagline { grid-row: 4; margin: 18px 0 0; }
#playground .bouncy-word {
  grid-row: 5;
  width: 100%;
  min-width: 0;
  margin: 60px 0 0;
  font-size: clamp(44px, 13.9vw, 230px);
}
#playground .footer-bottom {
  grid-row: 6;
  display: grid;
  grid-template-columns: 220px minmax(210px, 1fr) minmax(260px, 1.35fr);
  align-items: center;
  gap: 28px 32px;
  margin-top: 32px;
  padding-top: 36px;
}
#playground .footer-brand {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 220px;
  max-width: 100%;
  min-height: 114px;
  padding: 13px 15px;
}
#playground .footer-brand img { width: 190px; height: auto; }
#playground .footer-address { margin: 0; min-width: 0; font-style: normal; }
#playground .footer-address > strong {
  display: block;
  margin-bottom: 8px;
  font: 800 11px/1.4 Archivo, Arial, sans-serif;
  letter-spacing: .055em;
}
#playground .footer-address a {
  display: inline-block;
  min-height: 44px;
  color: var(--yellow);
  font: 900 clamp(25px, 2.1vw, 34px)/1.15 Barlow, Impact, sans-serif;
}
#playground .footer-address b { font-size: 1.18em; }
#playground .footer-bottom nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 22px;
  min-width: 0;
  font-size: 12px;
}
#playground .footer-bottom > small {
  grid-column: 1 / -1;
  width: auto;
  margin: 0;
  text-align: left;
  font-size: 10px;
}
#playground .preview-note { grid-row: 7; margin: 20px 0 0; line-height: 1.6; }
@media (max-width: 1050px) {
  #playground .footer-bottom { grid-template-columns: 220px minmax(0, 1fr); }
  #playground .footer-bottom nav { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  html { scroll-padding-top: 170px; }
  .topbar {
    grid-template-columns: minmax(120px, 1fr) 44px auto;
    grid-template-rows: 68px 44px;
    gap: 8px;
    padding: 12px 5vw 18px;
  }
  .topbar .brand { grid-column: 1; grid-row: 1; width: 120px; height: 68px; }
  .header-location { grid-column: 2 / 4; grid-row: 1; align-items: flex-end; text-align: right; }
  .header-location strong { font-size: clamp(18px, 3.8vw, 25px); text-wrap: balance; }
  .header-location span { font-size: 9px; letter-spacing: .035em; }
  .topbar .status-pill {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    min-height: 38px;
    gap: 6px;
    padding: 8px 10px;
    font-size: 9px;
  }
  .topbar .status-pill i { flex: 0 0 6px; width: 6px; height: 6px; }
  .topbar .nav-order {
    grid-column: 3;
    grid-row: 2;
    min-height: 44px;
    padding: 9px 10px;
    gap: 0;
    font-size: 11px;
  }
  .topbar .nav-order span { font-size: 18px; }
  .topbar .nav-order .nav-order-copy, .topbar .nav-order-handset { display: none; }
  .topbar .nav-order .nav-order-mobile { display: block; font-size: 10px; }
  .mobile-menu-toggle { display: grid; place-items: center; grid-column: 2; grid-row: 2; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--cream); border-radius: 50%; color: var(--cream); background: var(--red); }
  .mobile-menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .topbar.is-compact { grid-template-columns: minmax(0, 1fr) 44px auto; grid-template-rows: 56px; padding-block: 8px; background: var(--red); box-shadow: 0 3px 15px #49101e20; }
  .topbar.is-compact .brand { grid-column: 1; grid-row: 1; width: 104px; height: 58px; }
  .topbar.is-compact .header-location, .topbar.is-compact .status-pill { display: none; }
  .topbar.is-compact .mobile-menu-toggle { grid-row: 1; }
  .topbar.is-compact .nav-order { grid-row: 1; }
  html:has(.topbar.is-compact) { scroll-padding-top: 94px; }
}

#mobile-menu { position: fixed; inset: 12px 12px auto; width: min(540px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: 0 auto; padding: 20px; border: 0; border-radius: 20px; background: var(--cream); color: var(--red); overflow-y: auto; overscroll-behavior: contain; }
#mobile-menu::backdrop { background: #3c0719b8; backdrop-filter: blur(5px); }
#mobile-menu .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
#mobile-menu-title { font: 900 25px/1.1 Barlow, Impact, sans-serif; }
#mobile-menu-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--red); border-radius: 50%; background: var(--cream); color: var(--red); font-size: 30px; line-height: 1; }
#mobile-menu nav { display: grid; grid-template-columns: 1fr; }
#mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 12px; padding: 10px 0; border-bottom: 1px solid #b412322b; font-size: 13px; font-weight: 800; }
#mobile-menu nav .mobile-menu-special { background: var(--yellow); border-radius: 8px; border: 0; padding-inline: 10px; }
#mobile-menu nav .mobile-menu-card { background: var(--red); color: var(--cream); border-radius: 10px; margin-bottom: 6px; padding: 13px 12px; min-height: 54px; font-size: 16px; }
#mobile-menu > p { margin: 22px 0 0; font-size: 12px; line-height: 1.7; }
#mobile-menu > p a { display: inline-block; min-height: 44px; padding-top: 8px; font-size: 19px; font-weight: 900; }

@media (max-width: 560px) {
  #playground { padding: 48px 6vw 25px; }
  #playground .footer-cta { width: 100%; padding: 20px; }
  #playground .footer-play-label {
    justify-self: stretch;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
  }
  #playground .footer-play-label button { font-size: 10px; }
  #playground .footer-tagline { font-size: 14px; }
  #playground .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 28px;
    padding-top: 34px;
  }
  #playground .footer-brand { justify-self: center; }
  #playground .footer-address { text-align: center; }
  #playground .footer-address a { font-size: 30px; }
  #playground .footer-bottom nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  #playground .footer-bottom nav a { min-width: 0; font-size: 11px; }
  #playground .footer-bottom > small { text-align: center; }
  #playground .preview-note { text-align: center; font-size: 7px; }
}

/* The restaurant introduction ends with a clear reservation route. */
.definition-action{position:relative;z-index:2;display:flex;justify-content:center;margin-top:55px}
.definition-action .pill{min-height:58px;padding:20px 32px;background:var(--red);color:var(--cream);font-size:14px;gap:18px;border:2px solid var(--red)}
.definition-action .pill:hover{background:var(--teal);border-color:var(--teal);color:var(--cream)}
.definition-action .pill:focus-visible{outline:3px solid var(--red);outline-offset:5px}
@media(max-width:850px){.definition>.definition-action{grid-column:1/-1;grid-row:3;margin-top:4px}.definition-action .pill{max-width:100%;font-size:12px;padding:18px 24px}}

#playground .footer-play-label.has-counter {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 18px;
  margin-bottom: 8px;
}
#playground .footer-play-label[hidden],
#playground .footer-score [hidden],
#playground #footer-canvas[data-food-fallback] ~ .footer-play-label { display: none; }
#playground .footer-score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 16px;
  color: var(--yellow, #ffbd11);
  font: 800 13px/1.2 Archivo, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
#playground .footer-score span { white-space: nowrap; }
#playground .footer-score b { font-size: 20px; margin-left: 3px; }
#playground .footer-score span + span { color: var(--cream, #f2efdf); }
#playground .footer-game-hint { color: var(--cream, #f2efdf); font-size: 12px; }
#playground .footer-play-label.has-counter button { min-height: 44px; margin-inline-start: auto; }
#playground #footer-canvas:focus-visible { outline: 2px solid var(--yellow, #ffbd11); outline-offset: 2px; }
@media (max-width: 560px) {
  #playground .footer-play-label.has-counter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  #playground .footer-play-label.has-counter[hidden] { display: none; }
  #playground .footer-score { justify-self: start; padding: 7px 10px; }
  #playground .footer-game-hint { grid-column: 1 / -1; grid-row: 2; line-height: 1.4; }
  #playground .footer-play-label.has-counter button { grid-column: 2; grid-row: 1; }
}
