:root {
  --paper: #ffffff;
  --board: #d7d4cd;
  --board-dk: #c3bfb7;
  --ink: #1c1a18;
  --ink-2: #6a655e;
  --thermal: #efece2;
  --head: #e0451a;
  --rule: #a8a49c;
  --mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --sans:
    "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background: var(--board);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
#rail {
  background: var(--board-dk);
  border-left: 1px solid var(--rule);
  overflow-y: auto;
  padding: 0 0 40px;
}
#brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
}
#brand h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.24em;
  transform: scaleX(0.86);
  transform-origin: left;
}
#brand .ver {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
}
#brand .obj {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
}
#plate {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
}
#gl {
  display: block;
  width: 100%;
  height: 100%;
}
#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#drophint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-align: center;
}
#drophint b {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 600;
}
#plate.drag {
  outline: 2px solid var(--head);
  outline-offset: -6px;
}
.grp {
  border-bottom: 1px solid var(--rule);
  padding: 15px 18px 17px;
}
.grp > h2 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  margin-bottom: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.row:last-child {
  margin-bottom: 0;
}
.row label {
  flex: 0 0 84px;
  font-size: 11.5px;
  color: var(--ink);
}
.row .val {
  flex: 0 0 50px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
}
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  background: transparent;
  height: 16px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--rule);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border-radius: 50%;
  margin-top: -5px;
}
input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--rule);
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: none;
  border-radius: 50%;
}
select,
input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 5px 7px;
  font-family: var(--mono);
  font-size: 11px;
}
.btn {
  width: 100%;
  padding: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: var(--paper);
  color: var(--ink);
}
.btn.play {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  padding: 15px;
  letter-spacing: 0.3em;
}
.btn.play:hover {
  background: var(--head);
  border-color: var(--head);
}
.btn.play.on {
  background: var(--head);
  border-color: var(--head);
}
.note {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 9px;
}
.map {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  line-height: 1.9;
}
.map i {
  font-style: normal;
  color: var(--ink);
}
#status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 11px 18px;
  min-height: 36px;
}
#status.warn {
  color: var(--head);
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  cursor: pointer;
}
.qlab {
  position: absolute;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.qlab.tl {
  top: 4px;
  left: 5px;
}
.qlab.tr {
  top: 4px;
  right: 5px;
}
.qlab.bl {
  bottom: 4px;
  left: 5px;
}
.qlab.br {
  bottom: 4px;
  right: 5px;
}
#quadstat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
#quadstat.on {
  color: var(--head);
}
#libgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  max-height: 268px;
  overflow-y: auto;
}
.libitem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  text-align: left;
  overflow: hidden;
}
.libitem:hover {
  border-color: var(--ink);
}
.libitem.on {
  border-color: var(--head);
  border-width: 2px;
  background: #fff;
}
#wxstat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
#wxstat.on {
  color: var(--head);
}
.chk input {
  accent-color: var(--ink);
}
@media (max-width: 900px) {
  #rail {
    border-left: none;
    border-top: 1px solid var(--rule);
  }
}
#brand .obj {
  max-width: 52%;
}
#plate {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
#gl,
#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#dots {
  pointer-events: none;
}
#drophint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 2;
}
#rail #libgrid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
}
#rail #libgrid .libitem {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  overflow: visible;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
}
#rail #libgrid .libitem .nm {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
#rail #libgrid .libitem .dm {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.libitem {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 11.5px;
}
.libitem:hover {
  border-color: var(--ink);
}
.libitem .dm {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
#selname {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--ink);
}
#sdim {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.row input[type="number"] {
  width: 70px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 11px;
}
.btn3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
#quadstat.on {
  color: var(--head);
}
#ticket {
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
h3.sub {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin: 14px 0 6px;
  font-weight: 500;
}
#gl {
  touch-action: none;
}
#smeter {
  font-family: var(--mono);
  font-size: 10px;
}
@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }
  body {
    overflow-x: hidden;
  }
  #brand {
    padding-bottom: 4px;
    gap: 8px;
  }
  #brand h1 {
    font-size: 18px;
  }
  #brand .ver,
  #brand .obj {
    display: none;
  }
  #rail {
    border: none;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .grp {
    padding: 14px 14px 16px;
  }
  .btn,
  #rail button,
  #rail select,
  #rail input[type="text"],
  #rail input[type="number"],
  #rail input[type="date"] {
    min-height: 48px;
    font-size: 14px;
  }
  #rail input[type="range"] {
    height: 44px;
  }
  .row {
    min-height: 48px;
  }
  .chk {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .chk input {
    width: 22px;
    height: 22px;
  }
  #rail #libgrid .libitem {
    min-height: 48px;
    font-size: 14px;
  }
  #playgrp {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--board-dk);
    border-top: 1px solid var(--rule);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  #playgrp .btn3 {
    display: none;
  }
  #playgrp #play {
    min-height: 56px;
  }
}
:root {
  --f-quirk: "Fraunces", "Zen Antique", Georgia, serif;
  --f-head:
    "Libre Caslon Text", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --f-body:
    "Helvetica Neue", Helvetica, Arial, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", sans-serif;
  --f-num: "Cormorant Garamond", Georgia, serif;
}
.quirk,
#pmark span,
body.play .grp > h2,
body.play h3.sub,
body.play.adv #rail::before {
  font-family: var(--f-quirk) !important;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  letter-spacing: 0.04em;
}
#pmark {
  display: flex;
  align-items: center;
}
#pmark .logo {
  height: 24px;
  width: auto;
  display: block;
}
#pmark span {
  font-size: 13px;
  margin-left: 12px;
}
.lnk,
body.play .btn,
body.play .row label,
body.play .chk,
body.play #selname,
body.play .libitem,
body.play .libitem .nm,
body.play select {
  font-family: var(--f-head) !important;
  letter-spacing: 0.02em;
}
body.play .note,
body.play #status,
body.play #smeter,
body.play #dayprog {
  font-family: var(--f-body) !important;
}
.num,
body.play .val,
body.play input[type="number"],
body.play .map,
body.play #sdim,
body.play .libitem .dm,
body.play #quadstat,
body.play #wxstat {
  font-family: var(--f-num) !important;
  font-weight: 500;
  font-size: 1.15em;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}
body.play input[type="text"],
body.play input[type="date"] {
  font-family: var(--f-body) !important;
}
#splashlogo {
  font-size: 0 !important;
}
#splashlogo img {
  width: min(54.6vw, 1050px);
  height: auto;
  display: inline-block;
}
#pbar,
#pbar *,
#pmark span,
#pbar .lnk {
  font-family: var(--f-body) !important;
  font-variation-settings: normal !important;
}
#pmark span {
  letter-spacing: 0.14em;
  font-size: 12px;
}
#pbar .lnk {
  letter-spacing: 0.08em;
}
#pmark span.kz {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}
#pmark span.kz img {
  height: 22px;
  width: auto;
  display: block;
}
#pbar {
  align-items: center !important;
}
#pmark {
  align-self: center;
}
#pmark .lockup {
  height: 26px;
  width: auto;
  display: block;
}
#pnav .lnk .tg {
  display: inline-block;
  transform-origin: 50% 55%;
  white-space: pre;
}
body.play {
  --paper: #fff;
  --board: #fff;
  --board-dk: #fff;
  --ink: #000;
  --ink-2: #000;
  --rule: #000;
  --head: #000;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  color: #000;
  font:
    400 13px/1.5 "Helvetica Neue",
    Helvetica,
    Arial,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    sans-serif;
  letter-spacing: 0.02em;
}
#papp {
  display: grid;
  grid-template-columns: 1fr 232px;
  height: 100vh;
}
#pstage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 24px 10px;
}
#pbar {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 2px 0 14px;
  margin-bottom: 16px;
}
#pbar::after {
  content: none;
}
#pmark {
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
#pmark span {
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
#pnav {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-left: auto;
}
.lnk {
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #000;
  border-bottom: 1px solid transparent;
  min-height: 32px;
}
.lnk:hover {
  border-bottom-color: #000;
}
#pplay {
  border: 1px solid #000;
  padding: 6px 20px;
  min-width: 84px;
}
#pplay:hover {
  background: #000;
  color: #fff;
}
#pplay.on {
  background: #000;
  color: #fff;
}
.sep {
  width: 1px;
  height: 14px;
  background: #000;
  align-self: center;
}
#plate {
  flex: 1;
  background: #fff;
  border: 0;
}
#gl,
#art,
#dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#art,
#dots {
  pointer-events: none;
}
#art {
  z-index: 1;
}
#gl {
  z-index: 2;
}
#dots {
  z-index: 3;
}
#pfoot {
  display: none;
}
#pfoot #status.warn {
  text-decoration: underline;
}
#pthumbs {
  position: relative;
  overflow-y: auto;
  border-left: 0;
  box-shadow: inset 1px 0 0 #000;
  padding: 62px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-content: start;
  background: #fff;
}
.pthumb {
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  cursor: grab;
  display: block;
  box-sizing: border-box;
  transition: transform 0.12s;
}
.pthumb canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pthumb:hover {
  transform: scale(1.05);
}
.pthumb:active {
  cursor: grabbing;
}
body.play.rv #pbar::after {
  transform: scaleX(0);
  transform-origin: left;
}
body.play.rv.go #pbar::after {
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
  transform: scaleX(1);
}
body.play.rv #pthumbs {
  box-shadow: none;
}
body.play.rv.go #pthumbs {
  animation: vline 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.25s both;
}
@keyframes vline {
  from {
    box-shadow: inset 1px 0 0 #fff;
  }
  to {
    box-shadow: inset 1px 0 0 #000;
  }
}
body.play.rv .rvt {
  position: relative;
  clip-path: inset(0 100% 0 0);
}
body.play.rv.go .rvt {
  animation: wipe 0.55s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: calc(var(--d, 0s) + 0.28s);
}
body.play.rv .rvt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
body.play.rv.go .rvt::after {
  animation: pen 0.9s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 -2px 0 0);
  }
}
@keyframes pen {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left;
  }
  46% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}
body.play.rv .pthumb {
  clip-path: inset(0 0 100% 0);
  position: relative;
}
body.play.rv.go .pthumb {
  animation: scan 0.7s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
body.play.rv .pthumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
body.play.rv.go .pthumb::after {
  animation: scanline 0.7s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes scan {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes scanline {
  0% {
    top: 0;
    opacity: 1;
  }
  90% {
    top: 100%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
body.play.bottom #papp {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
}
body.play.bottom #pthumbs {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 24px 12px;
  gap: 10px;
  align-items: center;
  box-shadow: none;
  background: #fff;
}
body.play.bottom .pthumb {
  max-width: 100px;
  justify-self: center;
  width: 80%;
}
body.play.bottom.rv #pthumbs {
  animation: none;
}
body.play #rail {
  display: none;
}
body.play.adv #rail {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  background: #fff;
  border-left: 1px solid #000;
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  background-image: radial-gradient(circle, #b8b8b8 1.3px, transparent 1.7px);
  background-size: 10px 10px;
  transition: opacity 0.7s ease;
  cursor: default;
}
#splash.gone {
  opacity: 0;
  pointer-events: none;
}
#splashcv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s;
}
#splash.live #splashcv {
  opacity: 1;
}
#splashlogo {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  text-align: center;
  pointer-events: none;
  font-family:
    Futura, "Futura PT", "Jost", "Century Gothic", "Avenir Next", sans-serif;
  font-weight: 500;
  font-size: clamp(56px, 11.5vw, 210px);
  letter-spacing: 0.015em;
  line-height: 1;
  color: #000;
}
body.play.adv #rail::before {
  content: "Settings — Shift+S";
  display: block;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #000;
}
#pcnote {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
#pcnote p {
  margin: 0;
  font:
    400 15px/1 "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  letter-spacing: 0.32em;
  color: #444;
}
@supports (height: 100dvh) {
  body.play,
  #papp {
    height: 100dvh;
  }
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.lnk,
#pplay,
.pthumb {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (orientation: landscape) and (max-height: 540px) and (hover: none) and (pointer: coarse) {
  #pcnote {
    display: flex;
  }
  body {
    overflow: hidden !important;
  }
  #pcnote .ph {
    transform: rotate(-90deg);
    animation-direction: reverse;
  }
}
@media (orientation: portrait) and (max-width: 760px) {
  body.play.bottom #papp {
    display: flex;
    flex-direction: column;
  }
  #pstage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #plate {
    margin: auto 0;
  }
  #pstage {
    padding: max(12px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right)) 0
      max(14px, env(safe-area-inset-left));
  }
  #pbar {
    padding: 0;
    margin: 0;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }
  #pmark {
    --lh: clamp(15px, 4.6vw, 20px);
    width: calc(var(--lh) * 4.32);
    overflow: hidden;
    flex: none;
  }
  #pmark .lockup {
    height: var(--lh);
    max-width: none;
  }
  #pnav {
    gap: clamp(8px, 3.4vw, 16px);
    margin-left: auto;
    align-items: center;
  }
  .lnk {
    font-size: clamp(10.5px, 3.1vw, 12.5px);
    min-height: 30px;
    padding: 4px 0;
    letter-spacing: 0.05em;
  }
  #pplay {
    padding: 4px clamp(10px, 3.6vw, 16px);
    min-width: 0;
  }
  #plate {
    flex: none;
    width: 100%;
    aspect-ratio: 1.36;
  }
  body.play.bottom #pthumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-columns: auto;
    overflow: hidden;
    padding: 8px max(10px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
    gap: clamp(8px, 2vh, 18px) 0;
    align-content: start;
    align-items: center;
    flex: none;
  }
  body.play.bottom .pthumb {
    grid-column: span 2;
    width: min(78%, 96px);
    max-width: none;
    justify-self: center;
  }
  body.play.bottom .pthumb:nth-child(6) {
    grid-column: 2 / span 2;
  }
  .pthumb:hover {
    transform: none;
  }
}
#pcnote .ph {
  display: block;
  width: 26px;
  height: 44px;
  border: 1.5px solid #444;
  border-radius: 5px;
  margin: 0 auto 18px;
  animation: phrot 2.4s ease-in-out infinite;
}
@keyframes phrot {
  0%,
  25% {
    transform: rotate(0);
  }
  55%,
  100% {
    transform: rotate(-90deg);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  body.play.bottom #papp {
    grid-template-columns: minmax(0, 1fr) min(36vw, 300px);
    grid-template-rows: 100%;
  }
  #pstage {
    padding: 8px 10px max(6px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }
  #pbar {
    padding: 0 0 2px;
    margin-bottom: 4px;
    gap: 12px;
    align-items: center;
  }
  #pmark .lockup {
    height: 17px;
  }
  #pnav {
    gap: 14px;
  }
  .lnk {
    font-size: 12px;
    min-height: 30px;
    padding: 4px 0;
  }
  #pplay {
    padding: 4px 12px;
    min-width: 58px;
  }
  body.play.bottom #pthumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom)) 6px;
    gap: 6px 4px;
    align-content: center;
    align-items: center;
  }
  body.play.bottom .pthumb {
    width: 100%;
    max-width: none;
  }
  .pthumb:hover {
    transform: none;
  }
}
body.fromqr #pprint {
  display: none;
}
