/* AIGame60 — Letter Ledger */
html {
  background-color: #f3ead8;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
:root {
  --lp-bg: #f3ead8;
  --lp-ink: #2a2118;
  --lp-accent: #3d5c4a;
  --lp-muted: #6b5f52;
  --lp-line: #c9b99a;
  --lp-panel: #ebe2d0;
  --lp-link: #3d5c4a;
  --lp-visited: #5a4a3a;
  --lp-max: 460px;
  --lp-serif: Georgia, "Times New Roman", serif;
  --lp-cookie-pad: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.65 var(--lp-serif);
  color: var(--lp-ink);
  background-color: var(--lp-bg);
  background-image:
    repeating-linear-gradient(transparent, transparent 27px, rgba(201, 185, 154, 0.42) 27px, rgba(201, 185, 154, 0.42) 28px);
  padding-bottom: var(--lp-cookie-pad);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body.lp-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--lp-link); text-decoration: underline; text-decoration-color: rgba(61, 92, 74, 0.35); }
a:visited { color: var(--lp-visited); }
a:hover { text-decoration-color: var(--lp-accent); }
h1 { font-size: 1.45em; font-weight: normal; margin: 0 0 0.6em; letter-spacing: 0.02em; }
h2 { font-size: 1.1em; font-weight: normal; font-variant: small-caps; letter-spacing: 0.08em; margin: 2em 0 0.5em; color: var(--lp-accent); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font: 13px Consolas, monospace; background: var(--lp-panel); padding: 0 3px; }
[hidden] { display: none !important; }

.lp-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.lp-preview-bar {
  margin: 0; padding: 5px 12px;
  background: var(--lp-panel);
  border-bottom: 1px solid var(--lp-line);
  font: small-caps 11px/1.4 var(--lp-serif);
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--lp-muted);
}

/* centered header */
.lp-head {
  max-width: calc(var(--lp-max) + 48px);
  margin: 0 auto;
  padding: 28px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--lp-line);
  position: relative;
}
.lp-head::after {
  content: "◆";
  display: block;
  margin-top: 14px;
  font-size: 0.55em;
  letter-spacing: 0.6em;
  color: var(--lp-accent);
  opacity: 0.55;
  overflow: hidden;
  max-width: 100%;
}
.lp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.35em;
  letter-spacing: 0.04em;
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-logo:hover { text-decoration: none; color: var(--lp-ink); }
.lp-logo__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.lp-nav {
  margin-top: 14px;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.82em;
}
.lp-nav a {
  color: var(--lp-ink);
  text-decoration: none;
  padding: 0 2px;
}
.lp-nav a:hover { text-decoration: underline; text-decoration-color: var(--lp-accent); }
.lp-nav a.is-on {
  text-decoration: underline;
  text-decoration-color: var(--lp-ink);
  text-underline-offset: 3px;
}
.lp-nav__dot { color: var(--lp-muted); margin: 0 0.15em; user-select: none; }

.lp-menu {
  display: none;
  margin: 12px auto 0;
  padding: 6px 16px;
  border: 1px solid var(--lp-line);
  background: var(--lp-panel);
  font: small-caps 0.82em/1 var(--lp-serif);
  letter-spacing: 0.1em;
  color: var(--lp-ink);
  cursor: pointer;
}

/* layout: filter in left margin on desktop */
.lp-layout {
  max-width: calc(var(--lp-max) + 140px);
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  gap: 0 28px;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) {
  .lp-layout--filter {
    grid-template-columns: 110px minmax(0, var(--lp-max));
    justify-content: center;
  }
  .lp-layout--detail {
    max-width: min(720px, 100%);
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
  }
  .lp-layout--detail .lp-col {
    max-width: none;
  }
}
.lp-col {
  max-width: var(--lp-max);
  width: 100%;
  min-width: 0;
}
.lp-sheet {
  position: relative;
  background: rgba(243, 234, 216, 0.94);
  border-left: 2px solid #b85c5c;
  padding-left: 20px;
  padding-right: 8px;
  box-shadow: 6px 0 0 rgba(42, 33, 24, 0.04), inset 0 0 40px rgba(235, 226, 208, 0.6);
  min-width: 0;
}
.lp-sheet::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 14px; width: 1px;
  background: rgba(184, 92, 92, 0.35);
  pointer-events: none;
}
@media (min-width: 640px) {
  .lp-layout--filter .lp-col { margin: 0; }
}

.lp-filter {
  padding-top: 24px;
}
.lp-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-filter li { margin: 0 0 0.35em; }
.lp-filter a {
  display: block;
  font-variant: normal;
  letter-spacing: 0.02em;
  font-size: 0.95em;
  color: var(--lp-ink);
  text-decoration: none;
  line-height: 1.5;
  border-left: 4px solid var(--lp-line);
  padding: 4px 0 4px 10px;
  margin-left: -2px;
  transition: border-color 0.15s, background 0.15s;
}
.lp-filter a:hover { color: var(--lp-ink); background: rgba(61, 92, 74, 0.05); }
.lp-filter a.is-on {
  color: var(--lp-ink);
  border-left-color: var(--lp-accent);
  background: rgba(61, 92, 74, 0.1);
  text-decoration: none;
  font-weight: bold;
}
@media (max-width: 639px) {
  .lp-filter {
    padding-top: 20px;
    border-bottom: 1px solid var(--lp-line);
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  .lp-filter ul { columns: 2; column-gap: 16px; }
}

.lp-lead {
  margin: 16px 0 1.4em;
  font-style: italic;
  font-size: 1.02em;
  color: var(--lp-ink);
  line-height: 1.7;
}

/* catalog masthead + front lot */
.lp-masthead {
  margin: 20px 0 0;
  padding: 14px 0 12px;
  border-top: 2px solid var(--lp-ink);
  border-bottom: 1px solid var(--lp-line);
  text-align: center;
}
.lp-masthead__vol {
  margin: 0;
  font: small-caps 0.82em/1.4 var(--lp-serif);
  letter-spacing: 0.18em;
  color: var(--lp-accent);
}
.lp-masthead__rule {
  margin: 8px 0;
  letter-spacing: 0.35em;
  color: var(--lp-muted);
  font-size: 0.75em;
}
.lp-masthead__stat {
  margin: 0;
  font-size: 0.88em;
  color: var(--lp-muted);
}

.lp-frontlot {
  position: relative;
  margin: 0 0 1.8em;
  padding: 18px 16px 20px 20px;
  background: var(--lp-panel);
  border: 3px double var(--lp-ink);
  box-shadow: 5px 6px 0 rgba(42, 33, 24, 0.14);
  transform: rotate(-0.6deg);
}
.lp-frontlot__seal {
  position: absolute;
  top: -10px;
  right: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: small-caps 0.62em/1.15 var(--lp-serif);
  letter-spacing: 0.04em;
  text-align: center;
  color: #8a3028;
  border: 2px solid #8a3028;
  border-radius: 50%;
  background: rgba(243, 234, 216, 0.92);
  transform: rotate(12deg);
}
.lp-frontlot__in {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.lp-frontlot__thumb img,
.lp-frontlot__thumb .lp-lot__ph {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--lp-line);
  box-shadow: 2px 3px 0 rgba(42, 33, 24, 0.12);
}
.lp-frontlot__lot {
  margin: 0 0 6px;
  font: 0.78em/1 "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  color: var(--lp-muted);
  text-transform: uppercase;
}
.lp-frontlot__title {
  margin: 0 0 10px;
  font-size: 1.35em;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.lp-frontlot__note {
  margin: 0 0 14px;
  font-size: 0.9em;
  font-style: italic;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-frontlot__cta {
  display: inline-block;
  padding: 7px 14px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.88em;
  color: var(--lp-bg);
  background: var(--lp-accent);
  border: 1px solid var(--lp-ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 rgba(42, 33, 24, 0.18);
}
.lp-frontlot__cta:hover { color: var(--lp-bg); text-decoration: none; filter: brightness(1.08); }

.lp-clerk {
  margin: 0 0 1.8em;
  padding: 12px 14px 12px 18px;
  border-left: 3px solid #b85c5c;
  background: rgba(235, 226, 208, 0.65);
  font-size: 0.9em;
  color: var(--lp-muted);
  line-height: 1.65;
}
.lp-clerk__hd {
  margin: 0 0 6px;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.82em;
  color: var(--lp-accent);
}

.lp-arrivals {
  margin: 0 0 1.8em;
  padding-bottom: 4px;
}
.lp-arrivals__hd {
  margin: 0 0 10px;
  font-size: 0.95em;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--lp-accent);
}
.lp-arrivals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lp-arrivals__link {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--lp-line);
  background: var(--lp-panel);
  color: var(--lp-ink);
  text-decoration: none;
  font-size: 0.82em;
  box-shadow: 2px 2px 0 rgba(42, 33, 24, 0.08);
}
.lp-arrivals__link:hover { background: rgba(61, 92, 74, 0.06); text-decoration: none; }
.lp-arrivals__thumb,
.lp-arrivals__link .lp-lot__ph {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--lp-line);
}
.lp-arrivals__title {
  font-size: 0.92em;
  line-height: 1.3;
  min-width: 0;
}
.lp-arrivals__tag {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 0.78em;
  color: var(--lp-accent);
}

.lp-index {
  margin: 0 0 1.8em;
  padding: 14px 12px;
  border: 1px dashed var(--lp-line);
  background: rgba(243, 234, 216, 0.5);
}
.lp-index__hd {
  margin: 0 0 10px;
  font-size: 0.92em;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--lp-accent);
}
.lp-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-index__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 0.88em;
}
.lp-index__link {
  color: var(--lp-ink);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}
.lp-index__link:hover { text-decoration: underline; }
.lp-index__dots {
  border-bottom: 1px dotted var(--lp-line);
  min-width: 12px;
  margin-bottom: 0.12em;
}
.lp-index__pg {
  font: 0.85em/1 "Courier New", Courier, monospace;
  color: var(--lp-muted);
}
.lp-index__n {
  font: 0.78em/1 "Courier New", Courier, monospace;
  color: var(--lp-accent);
  min-width: 1.5em;
  text-align: right;
}

@media (max-width: 420px) {
  .lp-frontlot__in { grid-template-columns: 1fr; }
  .lp-frontlot__thumb { justify-self: center; }
  .lp-arrivals__list { grid-template-columns: 1fr; }
}

.lp-stack {
  margin: 0 0 1.6em;
  font-size: 0.88em;
  color: var(--lp-muted);
}
.lp-stack a { margin-right: 0; }
.lp-empty, .lp-dim {
  color: var(--lp-muted);
  font-style: italic;
  margin: 0 0 1.2em;
}

/* ads */
.lp-ad {
  max-width: var(--lp-max);
  margin: 20px auto;
  padding: 0 16px;
}
.lp-ad__tag {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.68em;
  color: var(--lp-muted);
  display: block;
  margin-bottom: 4px;
}
.lp-ad__in {
  min-height: 90px;
  border: 1px dashed var(--lp-line);
  background: var(--lp-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-muted);
  font-size: 0.78em;
  font-style: italic;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: hidden;
}

/* shelf pages — catalog cards */
.lp-shelf {
  position: relative;
  margin-bottom: 2.8em;
  padding: 18px 14px 22px 22px;
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
  box-shadow: 3px 4px 0 rgba(42, 33, 24, 0.12);
}
.lp-shelf--a { transform: rotate(-0.45deg); }
.lp-shelf--b { transform: rotate(0.35deg); margin-left: 6px; }
.lp-shelf__tab {
  position: absolute; top: 12px; left: -14px;
  width: 28px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font: bold 0.72em/1 "Courier New", Courier, monospace;
  color: var(--lp-bg);
  background: var(--lp-accent);
  box-shadow: 1px 2px 4px rgba(42, 33, 24, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}
.lp-shelf--b .lp-shelf__tab { background: #7a4a38; }
.lp-shelf::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background:
    linear-gradient(135deg, var(--lp-panel) 50%, transparent 50%) 0 0 / 12px 8px repeat-x;
  opacity: 0.9;
}
.lp-shelf[hidden] { display: none !important; }
.lp-shelf__hd {
  display: inline-block;
  margin: 0 0 0.6em;
  padding: 8px 16px 8px 14px;
  font-size: 1.2em;
  font-variant: normal;
  letter-spacing: 0.02em;
  color: var(--lp-ink);
  background: var(--lp-panel);
  border: 2px solid var(--lp-ink);
  border-left: 5px solid var(--lp-accent);
  transform: none;
  box-shadow: 2px 3px 0 rgba(42, 33, 24, 0.1);
}
h2.lp-shelf__hd {
  font-size: 1.2em;
  font-variant: normal;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: var(--lp-ink);
  background: var(--lp-panel);
}
.lp-shelf__hd a,
.lp-shelf__hd a:link,
.lp-shelf__hd a:visited,
.lp-shelf__hd a:hover,
.lp-shelf__hd a:active {
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-shelf__hd a:hover { text-decoration: underline; }
.lp-shelf__hd small {
  font-variant: normal;
  letter-spacing: 0;
  font-size: 0.72em;
  color: var(--lp-muted);
  font-style: italic;
}
.lp-shelf__hd small a {
  color: var(--lp-accent);
  text-decoration: underline;
}
.lp-shelf__note {
  margin: 0 0 1em;
  font-size: 0.92em;
  color: var(--lp-muted);
  line-height: 1.6;
}

/* numbered inventory lots */
.lp-lots {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lp-line);
}
.lp-lot {
  margin: 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-lot__link {
  display: grid;
  grid-template-columns: 2.5em 56px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-lot__link:hover { text-decoration: none; background: rgba(61, 92, 74, 0.05); }
.lp-lot__no {
  font: 0.78em/1 "Courier New", Courier, monospace;
  color: var(--lp-muted);
  text-align: right;
}
.lp-lot__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--lp-line);
  background: var(--lp-panel);
}
.lp-lot__ph {
  width: 56px;
  height: 56px;
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
}
.lp-lot__title {
  font-size: 0.95em;
  line-height: 1.35;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lp-lot__title::after {
  content: "";
  flex: 1;
  min-width: 8px;
  border-bottom: 1px dotted var(--lp-line);
  margin-bottom: 0.15em;
}
.lp-lot__tag {
  font-variant: normal;
  letter-spacing: 0.02em;
  font-size: 0.82em;
  color: var(--lp-ink);
  background: rgba(61, 92, 74, 0.1);
  padding: 1px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* detail — exhibit frame */
.lp-detail-hd {
  margin: 20px 0 0.6em;
}
.lp-detail-hd__lot {
  margin: 0 0 6px;
  font: 0.78em/1 "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.lp-detail-hd__title {
  margin: 0 0 8px;
  font-size: 1.55em;
  line-height: 1.2;
}
.lp-detail-hd__meta {
  margin: 0 0 1em;
  font-size: 0.9em;
  color: var(--lp-muted);
}

.lp-play-cta {
  margin: 0 0 1em;
  padding: 10px 12px;
  font-size: 0.88em;
  font-style: italic;
  color: var(--lp-muted);
  background: rgba(235, 226, 208, 0.7);
  border-left: 3px solid var(--lp-accent);
}
.lp-play-cta[hidden] { display: none !important; }

.lp-exhibit {
  border: 4px double var(--lp-line);
  background: var(--lp-panel);
  margin: 0 0 2em;
  padding: 3px;
  box-shadow: inset 0 0 0 1px var(--lp-bg), 4px 5px 0 rgba(42, 33, 24, 0.1);
}
.lp-exhibit.is-max {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 500;
  margin: 0;
  border: 0;
  padding: 0;
  background: #1a1612;
}
.lp-exhibit__bar {
  padding: 6px 10px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 0.82em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-bg);
}
.lp-exhibit.is-max .lp-exhibit__bar {
  background: #2a2118;
  color: var(--lp-bg);
  border-color: #4a4038;
}
.lp-exhibit__bar strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}
.lp-exhibit__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  background: #1a1612;
}
@media (min-width: 480px) {
  .lp-exhibit__stage { min-height: 320px; }
}
@media (min-width: 640px) {
  .lp-exhibit__stage { min-height: 400px; }
}
.lp-exhibit__poster {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #1a1612;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.lp-exhibit__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lp-exhibit__play {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font: small-caps 0.85em/1 var(--lp-serif);
  letter-spacing: 0.1em;
  color: var(--lp-bg);
  background: var(--lp-accent);
  border: 1px solid var(--lp-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.lp-exhibit__poster[hidden] { display: none !important; }
.lp-exhibit__load, .lp-exhibit__fail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(26, 22, 18, 0.75);
  color: var(--lp-bg);
  font-size: 0.9em;
  font-style: italic;
}
.lp-exhibit__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lp-exhibit__ft {
  padding: 10px;
  border-top: 1px solid var(--lp-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--lp-bg);
}
.lp-exhibit.is-max .lp-exhibit__ft {
  background: #2a2118;
  border-color: #4a4038;
}

.lp-btn {
  padding: 6px 14px;
  font: small-caps 0.82em/1.3 var(--lp-serif);
  letter-spacing: 0.08em;
  border: 1px solid var(--lp-line);
  background: var(--lp-panel);
  cursor: pointer;
  color: var(--lp-ink);
}
.lp-btn:hover { background: var(--lp-line); }
.lp-btn--open {
  background: var(--lp-accent);
  color: var(--lp-bg);
  border-color: var(--lp-accent);
}
.lp-btn--open:hover { background: #2f4a3a; }
.lp-btn--open:disabled { opacity: 0.55; cursor: default; }
.lp-btn--xs { padding: 3px 10px; font-size: 0.75em; }
.lp-exhibit.is-max .lp-btn--line {
  color: var(--lp-bg);
  border-color: #6b5f52;
  background: transparent;
}

.lp-mobile-play {
  display: none;
}
.lp-mobile-spacer {
  display: none;
}
.lp-btn--wide {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95em;
}

@media (max-width: 639px) {
  .lp-mobile-play {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--lp-cookie-pad, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 180;
    margin: 0;
    padding: 10px 12px;
    background: var(--lp-bg);
    border-top: 2px solid var(--lp-line);
    box-shadow: 0 -6px 24px rgba(42, 33, 24, 0.16);
  }
  .lp-mobile-play[hidden] { display: none !important; }
  .lp-mobile-spacer {
    display: block;
    height: calc(var(--lp-mobile-play-pad, 76px) + var(--lp-cookie-pad, 0px) + env(safe-area-inset-bottom, 0px));
  }
  .lp-mobile-spacer[hidden] { display: none; height: 0; }
  .lp-btn--wide {
    padding: 15px 16px;
    font-size: 1.02em;
  }
  .lp-exhibit__ft { display: none; }
  .lp-exhibit [data-detail-fullscreen] { display: none; }
  .lp-exhibit__play {
    bottom: 22%;
    padding: 12px 22px;
    font-size: 0.95em;
    pointer-events: none;
  }
  #gameMobileExit {
    min-height: 40px;
    min-width: 64px;
    padding: 8px 14px;
    font-size: 0.85em;
  }
  .lp-exhibit.is-max .lp-exhibit__stage {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
  .lp-exhibit.is-max {
    display: flex;
    flex-direction: column;
  }
}

.lp-label {
  font-size: 0.98em;
  line-height: 1.75;
  margin-bottom: 2em;
  padding: 16px 14px 18px 18px;
  border: 1px solid var(--lp-line);
  border-left: 4px solid var(--lp-accent);
  background: rgba(235, 226, 208, 0.45);
}
.lp-label__hd {
  margin: 0 0 12px;
  font-size: 1.05em;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--lp-accent);
}
.lp-label__lead {
  font-size: 1.02em;
  line-height: 1.65;
}

.lp-label__cms {
  margin-bottom: 1.2em;
  padding-bottom: 1em;
  border-bottom: 1px dotted var(--lp-line);
}
.lp-label p { margin: 0 0 1em; }
.lp-label h2, .lp-label h3 {
  font-size: 0.95em;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  margin: 1.4em 0 0.5em;
  color: var(--lp-accent);
}
.lp-label h3:first-child { margin-top: 0; }
.lp-label ul, .lp-label ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.lp-label img,
.lp-label video,
.lp-label iframe,
.lp-label table,
.lp-label pre,
.lp-how__body img,
.lp-how__body video,
.lp-how__body iframe,
.lp-how__body table,
.lp-how__body pre {
  max-width: 100%;
}
.lp-label table,
.lp-how__body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-label pre,
.lp-how__body pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* SEO sections */
.lp-about,
.lp-how,
.lp-faq,
.lp-similar {
  margin: 0 0 2.4em;
  padding: 18px 16px 20px 20px;
  border: 1px solid var(--lp-line);
  background: rgba(235, 226, 208, 0.55);
  box-shadow: 2px 3px 0 rgba(42, 33, 24, 0.08);
}
.lp-about h2,
.lp-how h2,
.lp-faq h2,
.lp-similar h2 {
  margin: 0 0 12px;
  font-size: 1.08em;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--lp-accent);
}
.lp-about p,
.lp-how p,
.lp-faq p {
  margin: 0 0 1em;
  font-size: 0.94em;
  line-height: 1.75;
  color: var(--lp-ink);
}
.lp-about p:last-child,
.lp-how p:last-child { margin-bottom: 0; }
.lp-about__shelves {
  margin: 0 0 1em;
  padding-left: 1.2em;
  font-size: 0.92em;
  line-height: 1.65;
}
.lp-about__shelves li { margin-bottom: 0.45em; }

.lp-still {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px 20px;
  margin: 0 0 2em;
  padding: 14px 16px;
  border: 2px solid var(--lp-line);
  background: var(--lp-panel);
  align-items: start;
}
.lp-still__fig { margin: 0; }
.lp-still__fig img {
  width: 100%;
  height: auto;
  border: 1px solid var(--lp-line);
}
.lp-still__fig figcaption {
  margin-top: 8px;
  font-size: 0.8em;
  font-style: italic;
  line-height: 1.45;
  color: var(--lp-muted);
}
.lp-still__copy p {
  margin: 0 0 0.85em;
  font-size: 0.92em;
  line-height: 1.65;
  color: var(--lp-ink);
}
.lp-still__copy p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .lp-still { grid-template-columns: 1fr; }
}

.lp-shot {
  margin: 0 0 2em;
  padding: 10px;
  border: 2px solid var(--lp-line);
  background: var(--lp-panel);
  text-align: center;
}
.lp-shot img {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--lp-line);
}
.lp-shot figcaption {
  margin-top: 10px;
  font-size: 0.82em;
  font-style: italic;
  color: var(--lp-muted);
}

.lp-how ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  font-size: 0.92em;
  line-height: 1.65;
}
.lp-how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px 22px;
  margin-bottom: 0.5em;
}
.lp-how__sub {
  margin: 0 0 10px;
  font-size: 0.82em;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--lp-ink);
}
.lp-how__steps {
  margin: 0 0 12px;
  padding-left: 1.25em;
  font-size: 0.9em;
  line-height: 1.6;
}
.lp-how__steps li { margin-bottom: 0.45em; }
.lp-how__steps li:last-child { margin-bottom: 0; }
.lp-how__meta {
  margin: 0;
  font-size: 0.82em;
  line-height: 1.5;
  color: var(--lp-muted);
}
.lp-how__meta span {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--lp-accent);
}
.lp-how__body p,
.lp-how__body ul,
.lp-how__body ol {
  margin: 0 0 0.85em;
  font-size: 0.92em;
  line-height: 1.7;
}
.lp-how__body p:last-child,
.lp-how__body ul:last-child,
.lp-how__body ol:last-child { margin-bottom: 0; }
.lp-how__body ul,
.lp-how__body ol { padding-left: 1.2em; }
@media (max-width: 640px) {
  .lp-how__grid { grid-template-columns: 1fr; }
}
.lp-how__mobile {
  margin: 0.85em 0 0;
  padding: 10px 12px;
  font-size: 0.88em;
  line-height: 1.55;
  border-left: 3px solid var(--lp-accent);
  background: rgba(235, 226, 208, 0.45);
  color: var(--lp-ink);
}

.lp-faq__item {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--lp-line);
}
.lp-faq__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.lp-faq__item h3 {
  margin: 0 0 6px;
  font-size: 0.92em;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--lp-ink);
}
.lp-faq__item p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.65;
  color: var(--lp-muted);
}

.lp-find {
  display: flex;
  max-width: 100%;
  margin: 0 0 1.4em;
  border: 1px solid var(--lp-line);
  background: var(--lp-panel);
}
.lp-find input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 8px 10px;
  font: italic 15px/1.3 var(--lp-serif);
  background: transparent;
  color: var(--lp-ink);
}
.lp-find button {
  padding: 8px 14px;
  border: 0;
  border-left: 1px solid var(--lp-line);
  background: var(--lp-bg);
  cursor: pointer;
  font: small-caps 0.82em/1 var(--lp-serif);
  letter-spacing: 0.08em;
  color: var(--lp-accent);
}

.lp-sheet > h1:first-child {
  font-size: 1.65em;
  padding-bottom: 0.35em;
  border-bottom: 3px solid var(--lp-accent);
  margin-bottom: 0.75em;
}
.lp-shelf-links {
  margin: 0 0 1.4em;
  font-size: 1em;
  line-height: 1.75;
  color: var(--lp-muted);
}
.lp-shelf-links a {
  margin-right: 0.35em;
  text-decoration: none;
  color: var(--lp-ink);
}
.lp-shelf-links a:hover {
  color: var(--lp-accent);
  text-decoration: underline;
}
.lp-shelf-links a.is-on {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--lp-accent);
  font-weight: bold;
}

.lp-contact { margin: 0 0 1.2em; font-size: 0.95em; }
.lp-contact p { margin: 0 0 0.5em; }
.lp-form label { display: block; margin-bottom: 10px; font-size: 0.92em; }
.lp-form input, .lp-form textarea, .lp-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid var(--lp-line);
  font: 15px var(--lp-serif);
  background: var(--lp-panel);
  color: var(--lp-ink);
}

.lp-foot {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--lp-line);
  font-size: 0.78em;
  color: var(--lp-muted);
  text-align: center;
  line-height: 1.8;
}
.lp-foot a {
  color: var(--lp-muted);
  text-decoration: none;
  margin: 0 0.2em;
}
.lp-foot a:hover { color: var(--lp-ink); text-decoration: underline; }

/* bottom sheet drawer */
.lp-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}
.lp-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.lp-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 24, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lp-drawer.is-open .lp-drawer__backdrop { opacity: 1; }
.lp-drawer__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  background: var(--lp-bg);
  border-top: 2px solid var(--lp-line);
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.lp-drawer.is-open .lp-drawer__sheet { transform: translateY(0); }
.lp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lp-drawer__brand {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-drawer__close {
  border: 0;
  background: none;
  font-size: 1.4em;
  line-height: 1;
  color: var(--lp-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.lp-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-drawer__nav a {
  display: block;
  padding: 10px 0;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.9em;
  color: var(--lp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--lp-line);
}
.lp-drawer__nav a.is-on { color: var(--lp-accent); }
.lp-drawer__nav a:hover { text-decoration: underline; }

.lp-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--lp-bg);
  border-top: 1px solid var(--lp-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.lp-cookie__row {
  max-width: var(--lp-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88em;
  color: var(--lp-muted);
}
.lp-ok {
  margin-left: auto;
  padding: 6px 16px;
  border: 1px solid var(--lp-accent);
  background: var(--lp-accent);
  color: var(--lp-bg);
  cursor: pointer;
  font: small-caps 0.82em/1 var(--lp-serif);
  letter-spacing: 0.08em;
}

@media (max-width: 639px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #main,
  .lp-layout,
  .lp-col,
  .lp-sheet,
  .lp-head,
  .lp-ad,
  .lp-ad__in,
  .lp-foot,
  .lp-cookie,
  .lp-drawer__sheet,
  .lp-exhibit,
  .lp-exhibit__stage {
    max-width: 100%;
    min-width: 0;
  }
  .lp-nav { display: none; }
  .lp-menu { display: block; }
  .lp-head {
    padding: 20px 12px 16px;
    max-width: 100%;
  }
  .lp-head::after { letter-spacing: 0.28em; }
  .lp-layout {
    padding: 0 12px 28px;
    max-width: 100%;
  }
  .lp-col { max-width: 100%; }
  .lp-sheet {
    padding-left: 12px;
    padding-right: 10px;
    box-shadow: inset 0 0 40px rgba(235, 226, 208, 0.6);
  }
  .lp-sheet::before { left: 9px; }
  .lp-frontlot,
  .lp-shelf--a,
  .lp-shelf--b {
    transform: none;
    margin-left: 0;
  }
  .lp-shelf { padding: 16px 10px 18px 14px; box-shadow: none; overflow: hidden; }
  .lp-shelf__tab {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 0 10px;
    display: inline-flex;
  }
  .lp-filter a { margin-left: 0; }
  .lp-frontlot { overflow: hidden; padding-right: 12px; }
  .lp-frontlot__seal {
    right: 8px;
    top: 8px;
    width: 44px;
    height: 44px;
    font-size: 0.55em;
  }
  .lp-ad {
    max-width: 100%;
    margin: 14px auto;
    padding: 0;
    width: 100%;
  }
  .lp-ad__in {
    min-height: 60px;
    overflow: hidden;
    max-width: 100%;
  }
  .lp-ad__in iframe,
  .lp-ad__in img,
  .lp-ad__in object,
  .lp-ad__in embed,
  .lp-ad__in > * {
    max-width: 100% !important;
  }
  .lp-foot { max-width: 100%; padding: 18px 12px 24px; }
  .lp-filter ul { columns: 1; }
  .lp-frontlot__in { grid-template-columns: 1fr; }
  .lp-frontlot__thumb { justify-self: start; }
  .lp-arrivals__list { grid-template-columns: 1fr; }
  .lp-index__row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
  }
  .lp-index__dots,
  .lp-index__pg,
  .lp-index__n { display: none; }
  .lp-detail-hd__title { font-size: 1.32em; word-break: break-word; }
  .lp-play-cta { margin-right: 0; }
  .lp-exhibit {
    margin-left: 0;
    margin-right: 0;
    box-shadow: inset 0 0 0 1px var(--lp-bg);
  }
  .lp-exhibit__bar {
    flex-wrap: wrap;
    padding: 8px;
    gap: 6px;
  }
  .lp-exhibit__bar strong {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .lp-label,
  .lp-how,
  .lp-faq,
  .lp-similar,
  .lp-still,
  .lp-about {
    padding-left: 12px;
    padding-right: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-shadow: none;
  }
  .lp-still { padding: 12px; }
  .lp-how__meta { font-size: 0.78em; line-height: 1.45; }
  .lp-how__grid,
  .lp-how__main,
  .lp-how__quick,
  .lp-how__body,
  .lp-still__fig {
    min-width: 0;
    max-width: 100%;
  }
  .lp-lot__link {
    grid-template-columns: 2em 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 8px;
    padding-right: 0;
  }
  .lp-lot__no { grid-column: 1; grid-row: 1; }
  .lp-lot__thumb,
  .lp-lot__ph {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
  }
  .lp-lot__title {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.86em;
  }
  .lp-lot__title::after { display: none; }
  .lp-lot__tag {
    grid-column: 3;
    grid-row: 2;
    white-space: normal;
    justify-self: start;
    font-size: 0.88em;
  }
  .lp-shelf__hd {
    display: block;
    font-size: 1.28em;
    padding: 10px 14px;
  }
  .lp-shelf-links {
    font-size: 1.05em;
    line-height: 1.85;
  }
  .lp-sheet > h1:first-child { font-size: 1.75em; }
  .lp-filter a { font-size: 1em; padding: 6px 0 6px 10px; }
  .lp-mobile-play {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  body[data-detail-page] { padding-bottom: 0; }
}
