/* FOUKOU Smash on a phone (under 820 px wide, drawn for 390) and on an upright tablet. The video shows the laptop only,
   so this layout is ours: the film sits in the top half of the pinned stage and the text swaps underneath it.
   No zoom here: px are real px. app.js uses the same rule (isPhone) to switch the zoom off. */
@media (max-width: 819px), (max-width: 1099px) and (orientation: portrait) {
  :root { --nav-h: 60px; --edge: 20px; }
  .wrap, .concept { width: auto; margin-left: 20px; margin-right: 20px; }
  .menu, .events, .find { scroll-margin-top: -20px; }
  .long { display: none; }
  .pill-nav .short, .pill .short { display: inline; }

  /* nav: logo, a short order button, the sections menu */
  .nav { padding: 0 10px 0 14px; }
  .logo { gap: 8px; }
  .logo-badge { width: 44px; height: 44px; }
  .logo-name { font-size: 19px; line-height: 19px; }
  .logo-name i { margin-left: 12px; }
  .links, .nav-call { display: none; }
  .nav-right { gap: 4px; }
  .pill-nav { height: 38px; min-width: 0; padding: 0 16px; }
  .menu-btn { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; }
  .menu-btn i { width: 22px; height: 2px; border-radius: 2px; background: #fff; }

  /* type */
  .shout { font-size: 40px; }
  .shout-hero { font-size: 44px; }
  .lede, .shout-hero + .lede { max-width: none; margin-top: 14px; font-size: 15px; line-height: 23px; }
  .trio { font-size: 52px; line-height: 58px; }
  .trio .hollow { -webkit-text-stroke-width: 1.5px; }
  .trio .script { margin-top: 8px; font-size: 44px; line-height: 50px; }

  /* 1 + 2. the burger: film on top, text below */
  .stack .film-box { inset: var(--nav-h) 0 auto; width: auto; height: 54%; translate: none; }
  #stack-caps .cap { margin-top: 0; }
  .stack .film-box::after { content: ""; position: absolute; inset: auto 0 -1px; height: 46%; background: linear-gradient(0deg, #000 8%, transparent); }
  .floor, .side-hero { display: none; }
  .cap { left: 20px; right: 20px; width: auto; top: auto; bottom: 78px; transform: translateY(16px); }
  .cap.is-on { transform: none; }
  .cap .shout { margin-top: 12px; }
  .cap-final .shout { font-size: 46px; }
  .actions { grid-auto-flow: column; justify-content: start; gap: 8px; margin: 18px 0 0; }
  .actions .pill, .cap-hero .pill-yellow, .cap-hero .pill-line { min-width: 0; padding: 0 20px; }
  .cap-final .actions { grid-auto-flow: row; }
  .cap .status { margin-top: 14px; }
  .side { top: calc(var(--nav-h) + 12px); right: 16px; transform: translateY(-12px); }
  .side.is-on { transform: none; }
  .count { font-size: 52px; gap: 4px; }
  .count small { font-size: 18px; -webkit-text-stroke-width: 1px; }
  .side .label { font-size: 8.5px; }
  .big-price { font-size: 48px; }
  .hint { bottom: 50px; font-size: 9px; }
  .rail { left: 20px; right: 20px; bottom: 40px; }
  /* five labels do not fit in 350 px: each stop is a dot on the line and only the lit one shows its name */
  .rail ol { top: -3px; }
  .rail li { position: relative; width: 6px; height: 6px; }
  .rail button { position: absolute; left: -19px; top: -19px; width: 44px; height: 44px; padding: 0; }
  .rail button::before { content: ""; position: absolute; left: 19px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 0.45); }
  .rail .is-on button::before { background: var(--yellow); }
  .rail button span { position: absolute; left: 50%; top: 31px; transform: translateX(-50%); font-size: 9.5px; white-space: nowrap; opacity: 0; }
  .rail .is-on span { opacity: 1; }
  .rail li:first-child span { left: 19px; transform: none; }
  .rail li:last-child span { left: auto; right: 19px; transform: none; }
  @media (max-height: 700px) { .cap-hero .lede { display: none; } }

  /* 3. ticker */
  .ticker { height: 48px; }
  .ticker-track span { font-size: 26px; }
  .ticker-track span::after { margin: 0 22px; width: 5px; height: 5px; }

  /* 4. menu: one card a row */
  .menu { padding: 84px 0 90px; }
  .cards { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  .card { height: auto; padding: 18px 18px 22px; }
  .card-pic { height: auto; aspect-ratio: 10 / 7; }
  .card-more { opacity: 1; transform: none; }
  .card:hover, .card:focus-visible { transform: none; }
  .card:active { transform: scale(0.98); }
  .meal { flex-direction: column; align-items: flex-start; gap: 14px; height: auto; margin-top: 14px; padding: 24px 22px 26px; background: linear-gradient(160deg, #ea5a0c, #f08a0b 55%, #f4c312); }
  .meal-price { width: auto; font-size: 60px; }
  .meal-copy h3 { font-size: 24px; line-height: 1.1; }

  /* 5. the smash: the film on top (more of the griddle fits than full-screen would show), every beat's text underneath */
  .smash .film-box { inset: var(--nav-h) 0 auto; height: 54%; }
  .smash .shade { background: linear-gradient(0deg, #000 46%, transparent 62%); }
  .beat .shout, .beat-top .shout { flex-wrap: wrap; gap: 6px 0.24em; font-size: 40px; }
  .beat-low, .beat-top { left: 20px; right: 20px; top: auto; bottom: 84px; justify-items: start; text-align: left; }
  .beat .lede { font-size: 15px; line-height: 23px; }

  /* 6. events, 7. find us, footer */
  .events { padding-top: 84px; }
  .events-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  .events-pic { min-height: 340px; }
  .events-pic figcaption { padding: 70px 16px 18px; gap: 10px; font-size: 11px; line-height: 14px; }
  .events-pic b { font-size: 24px; }
  .form { grid-template-columns: 1fr 1fr; padding: 24px 20px 24px; }
  .send { flex-direction: column; align-items: flex-start; gap: 10px; }
  .panel.done { padding: 26px 22px; font-size: 16px; line-height: 26px; }
  .find { padding: 84px 0 80px; }
  .find-grid { grid-template-columns: 1fr; gap: 34px; }
  .shout-find { font-size: 46px; }
  .find-pic { height: 320px; }
  .hours { max-width: none; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .foot nav { flex-wrap: wrap; gap: 6px 22px; }
  .foot nav a { padding: 10px 0; }
  .foot-hours { margin-left: 0; text-align: left; }

  /* dialogs fill the screen */
  .modal { max-width: 100vw; max-height: 100dvh; }
  .detail, .sheet, .nav-sheet { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; overflow-y: auto; }
  .detail[open] { display: block; }
  .detail > img { height: 250px; min-height: 0; }
  .detail-body { max-height: none; padding: 24px 20px 30px; overflow: visible; }
  .detail .shout { font-size: 44px; }
  .detail-cols { grid-template-columns: 1fr; gap: 20px; }
  .sheet form, .sheet .done { padding: 30px 20px 30px; }
  .sheet .shout { font-size: 44px; }
  .row2 { grid-template-columns: 1fr; }
  .choice span { font-size: 17px; padding: 0 11px; }
  .note { width: calc(100vw - 32px); padding: 34px 24px 28px; }
  .nav-sheet[open] { display: grid; align-content: center; padding: 70px 24px 40px; background: #000; }
  .nav-sheet nav { display: grid; gap: 4px; }
  .nav-sheet nav a { padding: 6px 0; font: 400 46px/1.1 var(--display); text-transform: uppercase; }
  .nav-sheet nav a:active { color: var(--yellow); }
  .nav-sheet .done-actions { margin-top: 34px; }
}
