/* overrides.css: Later additions and overrides: phone header and day heading, reduced motion, phones held sideways, install card, view transitions. */
@media (min-width: 601px) {
  :root { --label-w: 134px; }
}
@media (max-width: 600px) {
  :root { --label-w: 86px; }
  .label { padding: 6px 4px 6px 13px; }
  /* Phones: a smaller date, and the update time beside it. */
  :root[data-design] .dayhead { height: 46px; min-height: 0; padding-bottom: 10px; flex-wrap: nowrap; align-items: flex-end; }
  :root[data-design] .dayhead .big { font-size: 34px; }
  :root[data-design] .dayhead .en { display: none; }
  .dayhead h2 { gap: 8px; }
  .dayhead p { white-space: nowrap; font-size: 11px; }
  /* The count of hidden theaters is on the theaters button in the timeline corner; the fixed-height heading has no room. */
  .dayhead .hidden-wrap { display: none; }
  .dayhead .ja { white-space: nowrap; }
  main { padding-top: 14px; }
    /* Header buttons: icon over a short label, like a tab bar. */
  .bar { padding: 8px 10px 4px 16px; }
  .tools { gap: 0; }
  .tools .theme { flex-direction: column; gap: 1px; height: 46px; min-width: 52px; padding: 0 4px;
    border-color: transparent; font-size: 10.5px; color: var(--ink); }
  .tools .theme svg { width: 19px; height: 19px; }
  .tools .theme[aria-pressed="true"] { border-color: transparent; background: var(--surface-2); }
  .tools .theme .count { top: 2px; right: auto; left: calc(50% + 7px); }
  :root[data-help-new] #helpBtn::after { top: 5px; right: 12px; }
  .looks, .venues { top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; }
}
/* Reduced motion still needs to show where things went: a still ring instead of a pulse. */
@media (prefers-reduced-motion: reduce) {
  /* The ladder segment just added is drawn by animating its dash; without the animation, show it whole. */
  .ladder path.draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .show.spot, .label.spot, .vlabel.spot, .idle-chip.spot { box-shadow: 0 0 0 3px var(--accent); }
  #plan.nudge, .plan-tab.nudge { box-shadow: 0 0 0 3px var(--accent); }
}
/* Phones held sideways: the plan is the side column (as on desktop), tucked right under the sticky header. */
@media (min-width: 700px) and (max-height: 520px) and (max-width: 1099px) {
  :root { --panel-w: 300px; }
  /* A shorter date strip: date and weekday side by side; the month stays as a small tag where it changes. */
  .dates { height: 52px; padding-bottom: 8px; }
  /* Room at the top for the month tag, so it sits inside the highlighted day rather than on its edge. */
  .chip { height: 42px; padding-top: 9px; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline; position: relative; }
  .chip .m { position: absolute; top: 3px; left: 6px; font-size: 8.5px; }
  .dates-next { top: 12px; }
  #plan { top: calc(var(--top-h, 140px) + 8px); margin-top: 12px; max-height: calc(100vh - var(--top-h, 140px) - 16px); }
  :root[data-head-min] #plan { top: calc(var(--top-h, 140px) - var(--bar-h, 0px) + 14px); max-height: calc(100vh - var(--top-h, 140px) + var(--bar-h, 0px) - 22px); }
}
/* The small arrow that marks a link leaving the site, after the label (also on buttons with an icon of their own). */
svg.i.ext { width: 12px; height: 12px; margin-left: 2px; opacity: .7; flex: none; vertical-align: -1px; }
.contact-kind { margin: 4px 0 10px; }
/* The festival's own rows: the name column tinted in its colour, with a small 🎬 映画祭 tag. */
.label.fest { background: color-mix(in srgb, var(--tc) 16%, var(--surface)); }
.label .fest-tag { display: block; margin-bottom: 2px; color: var(--tc); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.label.fest .full, .label.fest .abbr { white-space: nowrap; letter-spacing: -.04em; font-size: .88em; }
.vrow label input, .vrow label .dot { flex: none; }
.vrow input { cursor: pointer; }
.vareas .vsep { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }
.vsplit { list-style: none; padding: 12px 8px 4px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
/* Add to home screen: a small card above the plan sheet. */
.install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--sheet-now, 0px) + 12px); z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-family: var(--font-ja); }
.install[hidden] { display: none; }
.install .logo-mark { flex: none; width: 36px; height: 36px; }
.install div { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.install b { display: block; color: var(--ink); font-size: 13px; }
.install .btn { flex: none; height: 32px; }
.install .x { position: static; flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); }
.install .x svg { width: 16px; height: 16px; }
.install .btn[hidden] { display: none; }
/* A small arrow at the bottom centre, nodding toward Safari's share button below the page. */
.install-arrow { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 2px); z-index: 41; translate: -50% 0;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: nod 1.2s var(--ease) infinite; pointer-events: none; }
.install-arrow[hidden] { display: none; }
.install-arrow svg { width: 20px; height: 20px; }
@keyframes nod { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none; } }
/* The share icon drawn inline in instructions, the size of the text around it. */
svg.ios-share { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; color: var(--accent); }

/* The side panel's view transition (wide screens). */
::view-transition-group(root) { animation-duration: .22s; }
::view-transition-new(plan) { animation: vt-slide-in .24s var(--ease) both; }
::view-transition-old(plan) { animation: vt-slide-out .18s var(--ease) both; }
::view-transition-new(plan-tab) { animation: vt-slide-in .2s var(--ease) .08s both; }
::view-transition-old(plan-tab) { animation: vt-slide-out .12s var(--ease) both; }
@keyframes vt-slide-in { from { opacity: 0; translate: 24px 0; } }
@keyframes vt-slide-out { to { opacity: 0; translate: 24px 0; } }

/* Going to another page: a thin bar at the very top the moment a link is pressed, so a tap never looks ignored —
   the home-screen app has no browser loading indicator of its own. (Set by the navigation script; cleared on pageshow.) */
:root.navigating::before { content: ""; position: fixed; left: 0; top: 0; z-index: 10000; width: 100%; height: 3px;
  background: var(--accent); transform-origin: left; animation: nav-bar 6s cubic-bezier(.08, .8, .2, 1) forwards; pointer-events: none; }
:root.navigating, :root.navigating * { cursor: progress; }
@keyframes nav-bar { from { scale: 0 1; } to { scale: .92 1; } }
@media (prefers-reduced-motion: reduce) { :root.navigating::before { animation: none; scale: .6 1; } }
/* Taking longer than a moment: 半券ちゃん in the middle of the screen, walking (its own animation, site/chan-walk.svg),
   until the next page arrives. Inlined: when the network is what's slow, fetching the picture would wait as well. */
:root.navigating-slow::after { content: ""; position: fixed; left: 50%; top: 50%; z-index: 10000; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22%3E%0A  %3C%21-- %E5%8D%8A%E5%88%B8%E3%81%A1%E3%82%83%E3%82%93%EF%BC%88%E3%82%84%E3%82%8F%E3%82%89%E3%81%8B%EF%BC%89: %E3%81%A6%E3%81%8F%E3%81%A6%E3%81%8F%E6%AD%A9%E3%81%8F%E3%80%82%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E4%B8%AD%E3%81%AB%E3%80%82 --%3E%0A  %3Cstyle%3E%0A    .walk, .fl, .fr, .al, .ar, .dots circle %7B transform-box: view-box%3B animation: .8s ease-in-out infinite%3B %7D%0A    .walk %7B transform-origin: 32px 54px%3B animation-name: walk%3B %7D%0A    .fl %7B animation-name: lift%3B %7D .fr %7B animation-name: lift%3B animation-delay: -.4s%3B %7D%0A    .al %7B transform-origin: 18px 38.6px%3B animation-name: swing-l%3B animation-delay: -.4s%3B %7D .ar %7B transform-origin: 46px 38.6px%3B animation-name: swing-r%3B %7D%0A    .dots circle %7B animation: dot 1.2s linear infinite%3B %7D .dots circle:nth-child(2) %7B animation-delay: .2s%3B %7D .dots circle:nth-child(3) %7B animation-delay: .4s%3B %7D%0A    %40keyframes walk %7B 0%25, 100%25 %7B transform: translateY(0) rotate(-3deg)%3B %7D 25%25, 75%25 %7B transform: translateY(-1.3px) rotate(0)%3B %7D 50%25 %7B transform: translateY(0) rotate(3deg)%3B %7D %7D%0A    %40keyframes lift %7B 0%25, 100%25 %7B transform: translate(0, -2.2px)%3B %7D 50%25 %7B transform: translate(0, 0)%3B %7D %7D%0A    /%2A Arms swing back and forth with the opposite foot: seen from the front, a little up-and-down and a small turn, not a flap. %2A/%0A    %40keyframes swing-l %7B 0%25, 100%25 %7B transform: translateY(-.9px) rotate(7deg)%3B %7D 50%25 %7B transform: translateY(.5px) rotate(-4deg)%3B %7D %7D%0A    %40keyframes swing-r %7B 0%25, 100%25 %7B transform: translateY(-.9px) rotate(-7deg)%3B %7D 50%25 %7B transform: translateY(.5px) rotate(4deg)%3B %7D %7D%0A    %40keyframes dot %7B 0%25, 100%25 %7B opacity: .25%3B %7D 30%25 %7B opacity: 1%3B %7D %7D%0A    %40media (prefers-reduced-motion: reduce) %7B %2A %7B animation: none %21important%3B %7D %7D%0A  %3C/style%3E%0A  %3Ccircle cx=%2232%22 cy=%2233%22 r=%2230%22 fill=%22%23cfe6e3%22/%3E%0A  %3Cg class=%22walk%22%3E%0A    %3Cg fill=%22%232a6f77%22 stroke=%22%235b4338%22 stroke-width=%222.2%22%3E%3Cg class=%22fl%22%3E%3Cg transform=%22translate(25.4 55.5)%22%3E%3Cpath transform=%22translate(-0.9 -2.4) rotate(-14)%22 d=%22M-4.5 0.41C-4.95 -2.89 -2.02 -4.01 0.68 -3.47C3.38 -2.99 4.68 -1.19 4.14 0.85C3.69 2.65 1.8 2.92 -0.22 3.06C-2.7 3.23 -4.41 2.72 -4.5 0.41z%22/%3E%3C/g%3E%3C/g%3E%3Cg class=%22fr%22%3E%3Cg transform=%22translate(38.6 55.5) scale(-1 1)%22%3E%3Cpath transform=%22translate(-0.9 -2.4) rotate(-14)%22 d=%22M-4.5 0.41C-4.95 -2.89 -2.02 -4.01 0.68 -3.47C3.38 -2.99 4.68 -1.19 4.14 0.85C3.69 2.65 1.8 2.92 -0.22 3.06C-2.7 3.23 -4.41 2.72 -4.5 0.41z%22/%3E%3C/g%3E%3C/g%3E%3C/g%3E%0A    %3Cg fill=%22%23eef7f5%22 stroke=%22%235b4338%22 stroke-width=%222.2%22%3E%3Cg class=%22al%22%3E%3Cpath d=%22M16.58 37.34L13.58 40.74C12.53 41.93 10.88 42.5 9.12 44.78C8.23 47.44 9.73 48.56 11.27 48.79C12.95 49.09 14.27 48.11 14.58 45.96C14.22 43.22 15.37 44.45 16.42 43.26L19.42 39.86z%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3Cg class=%22ar%22%3E%3Cpath d=%22M44.58 39.86L47.58 43.26C48.63 44.45 49.78 43.22 49.12 46.02C49.41 48.81 51.24 49.21 52.73 48.79C54.39 48.37 55.18 46.93 54.58 44.84C53.12 42.5 51.47 41.93 50.42 40.74L47.42 37.34z%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/g%3E%0A    %3Cg transform=%22rotate(0 32 36)%22%3E%0A  %3Cpath d=%22M19 15h26a4 4 0 0 1 4 4v9a4.2 4.2 0 0 0 0 8.4V47a4 4 0 0 1-4 4H19a4 4 0 0 1-4-4V36.4a4.2 4.2 0 0 0 0-8.4V19a4 4 0 0 1 4-4z%22%0A    fill=%22%23eef7f5%22 stroke=%22%235b4338%22 stroke-width=%222.2%22 stroke-linejoin=%22round%22/%3E%0A  %3Cpath d=%22M17.5 21.5h29%22 stroke=%22%232a6f77%22 stroke-width=%221.5%22 stroke-dasharray=%222 2.2%22 stroke-linecap=%22round%22 opacity=%22.55%22/%3E%3Cellipse cx=%2225.5%22 cy=%2235%22 rx=%221.35%22 ry=%221.75%22 fill=%22%235b4338%22/%3E%3Cellipse cx=%2238.5%22 cy=%2235%22 rx=%221.35%22 ry=%221.75%22 fill=%22%235b4338%22/%3E%3Cg fill=%22%23f4b6b0%22%3E%3Cellipse cx=%2222%22 cy=%2239%22 rx=%222.4%22 ry=%221.4%22/%3E%3Cellipse cx=%2242%22 cy=%2239%22 rx=%222.4%22 ry=%221.4%22/%3E%3C/g%3E%3Cpath d=%22M30.8 38.2 h2.4%22 stroke=%22%235b4338%22 stroke-width=%221.4%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%0A  %3C/g%3E%0A  %3Cg class=%22dots%22 fill=%22%232a6f77%22%3E%3Ccircle cx=%2246%22 cy=%229%22 r=%221.5%22/%3E%3Ccircle cx=%2251%22 cy=%229%22 r=%221.5%22/%3E%3Ccircle cx=%2256%22 cy=%229%22 r=%221.5%22/%3E%3C/g%3E%0A%3C/svg%3E%0A") center / contain no-repeat; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); pointer-events: none;
  animation: chan-in .25s var(--ease) both; }
@keyframes chan-in { from { opacity: 0; scale: .7; } }
@media (prefers-reduced-motion: reduce) { :root.navigating-slow::after { animation: none; } }
/* Zen Kaku ("Hashigo UI") only where it gives the site its look and stands on its own: tabs, the date strip,
   buttons, the empty states, the dialogs and the about section. Next to the theaters' data (a label beside a
   name), the OS's face keeps the two from mixing. */
:root :is(.plan-tab, .chip, .chan-note, .empty, .stub-add, .acts .btn, #helpDialog, #contactDialog, #notifyDialog, #logDialog .meta, #logDialog .note,
    .about, .install) {
  font-family: var(--font-brand); }
