/* EZ-CC0 asset library. Rides on the Tool-Kit's tokens and shell
   (hc-tokens.css, hc-ui.css) so it reads as the same family as EZ-PZ-Icons,
   but carries none of the Tool-Kit's Project Zomboid art. */

:root { --S: 64px; --cats-w: 220px; }
* { box-sizing: border-box }
button { cursor: pointer; font: inherit }

/* ---- licence banner: the first thing on the page, every time ---------- */
.lic {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px; border-bottom: 1px solid var(--hc-line);
  background: var(--hc-bg-1); color: var(--hc-ink-2); font-size: 12.5px;
}
/* the licence words on the left, the no-AI sign and its link at the right end */
.lic-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0 }
.lic-human { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; white-space: nowrap }
.lic a { color: var(--hc-hover) }
/* /art/'s "About this library": the link sits in the bar and the text opens
   in a panel over the grid, so the browser underneath keeps its place */
.lic { position: relative }
.lic-about > summary { cursor: pointer; color: var(--hc-hover); list-style: none }
.lic-about > summary::-webkit-details-marker { display: none }
.lic-about > summary:hover, .lic-about[open] > summary { text-decoration: underline }
.lic-about__body {
  position: absolute; left: 14px; top: calc(100% + 6px); z-index: var(--z-popover);
  width: min(640px, calc(100vw - 28px)); max-height: min(70vh, 640px); overflow: auto;
  padding: 14px 18px; border: 1px solid var(--hc-line-2); border-radius: 10px;
  background: var(--hc-bg-2); color: var(--hc-ink-2); font-size: 13.5px; line-height: 1.55;
  box-shadow: var(--hc-shadow-2);
}
.lic-about__close {
  position: sticky; top: 0; float: right; margin: -6px -8px 0 10px; padding: 2px 8px;
  border: 1px solid var(--hc-line-2); border-radius: 7px; background: var(--hc-bg-3);
  color: var(--hc-ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.lic-about__close:hover { color: var(--hc-ink); border-color: var(--hc-hover) }
/* on a phone the bar sits low, so the panel takes the whole screen instead */
@media (max-width: 860px) {
  .lic-about__body { position: fixed; inset: 10px; width: auto; max-height: none }
}
.lic-about__body h2 { margin: 0 0 6px; font-size: 17px; color: var(--hc-ink) }
.lic-about__body h3 { margin: 14px 0 4px; font-size: 14px; color: var(--hc-ink) }
.lic-about__body p { margin: 0 0 6px }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap;
}
.badge--cc0  { background: rgba(95,224,141,.14); color: var(--hc-pick); border: 1px solid rgba(95,224,141,.45) }
.badge--ccby { background: rgba(90,209,255,.12); color: var(--hc-hover); border: 1px solid rgba(90,209,255,.45) }
.noai { display: block; flex: none }

/* ---- the three panes --------------------------------------------------- */
#main { display: flex; min-height: 0 }
#cats {
  width: var(--cats-w); flex: 0 0 auto; overflow: auto; padding: 10px 8px;
  border-right: 1px solid var(--hc-line); background: var(--hc-bg-2);
  --hc-pane-display: block;
}
#cats h3 {
  margin: 4px 6px 8px; font-size: 10px; letter-spacing: var(--hc-track-cap);
  text-transform: uppercase; color: var(--hc-ink-dim);
}
#cats button {
  display: flex; width: 100%; align-items: baseline; gap: 8px;
  padding: 6px 8px; margin: 1px 0; border: 1px solid transparent; border-radius: 6px;
  background: none; color: var(--hc-ink-2); text-align: left; font-size: 13px;
}
#cats button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
#cats button i { font-style: normal; font-size: 11px; color: var(--hc-ink-dim) }
#cats button:hover { border-color: var(--hc-line-2); color: var(--hc-ink) }
#cats button.on { background: var(--hc-bg-3); border-color: var(--hc-focus); color: var(--hc-focus-hi) }
#cats button.empty { opacity: .4 }

#grid {
  flex: 1; overflow: auto; display: grid; gap: 8px; padding: 14px;
  align-content: start; outline: none;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--S) + 20px), 1fr));
  --hc-pane-display: grid;
}
.sect {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px;
  position: sticky; top: -14px; z-index: 2; margin: 14px 0 2px; padding: 8px 2px 7px;
  background: linear-gradient(180deg, var(--hc-bg-0) 76%, rgba(14,16,19,0));
  border-bottom: 1px solid var(--hc-line);
}
.sect:first-child { margin-top: 0 }

/* All assets, collapsed: one bar per category (art.js, BARS_AT). A closed
   bar is a plain row; an open one sticks like a section header above the
   cells built under it. .barbody adds no box of its own, so those cells sit
   in the grid's own columns. */
.sect.bar {
  position: static; width: 100%; margin: 0 0 6px; padding: 11px 14px; text-align: left;
  font: inherit; color: inherit; cursor: pointer; align-items: center;
  border: 1px solid var(--hc-line); border-radius: 8px;
  background: linear-gradient(180deg, var(--hc-bg-3), var(--hc-bg-2));
}
.sect.bar::before {
  content: ""; width: 0; height: 0; margin-right: 2px; flex: none;
  border-left: 6px solid var(--hc-ink-dim); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform .15s;
}
.sect.bar b { flex: 1 }
.sect.bar:hover { border-color: var(--hc-hover) }
.sect.bar:hover::before { border-left-color: var(--hc-hover) }
.sect.bar.open {
  position: sticky; margin-top: 8px; border-color: var(--hc-focus);
  background: linear-gradient(180deg, var(--hc-bg-3), var(--hc-bg-1));
}
.sect.bar.open::before { transform: rotate(90deg); border-left-color: var(--hc-focus) }
.sect.bar:first-child { margin-top: 0 }
.barbody { display: contents }
.also { grid-column: 1 / -1; margin: 0 0 6px; padding: 8px 10px; border: 1px solid var(--hc-line); color: var(--hc-ink-2); font-size: 14px }
.also a { color: var(--hc-hover) }
.sect b { color: var(--hc-focus); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase }
.sect i { color: var(--hc-ink-dim); font-size: 11px; font-style: normal }

.cell {
  user-select: none; -webkit-user-select: none; cursor: pointer; text-align: center;
  padding: 7px 6px 6px; border-radius: 8px; border: 1px solid var(--hc-line);
  background: linear-gradient(180deg, var(--hc-bg-3), var(--hc-bg-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 1px 2px rgba(0,0,0,.45);
  transition: border-color .12s, transform .12s;
  /* Contained: a sprite painted into one cell as it scrolls near must not
     send the browser back over the whole grid (7,000 cells) to lay it out
     again. Without this, scrolling ran at about 6 frames a second. */
  contain: layout paint style;
}
.cell:hover { border-color: var(--hc-hover); transform: translateY(-1px) }
.cell.cur { border-color: var(--hc-focus); box-shadow: 0 0 0 2px rgba(255,182,72,.42) }
.cell.got { outline: 2px dashed var(--hc-pick); outline-offset: -3px }
.cell:focus-visible { outline: none; box-shadow: var(--hc-ring-focus, 0 0 0 2px var(--hc-focus)) }
.well {
  width: var(--S); height: var(--S); margin: 0 auto; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 2px 5px rgba(0,0,0,.55);
  contain: strict;      /* fixed size, so the sprite inside can never move its neighbours */
}
.spr { flex: 0 0 auto; background-repeat: no-repeat; image-rendering: pixelated }
.spr.smooth { image-rendering: auto }
.spr--wait { background-color: rgba(128,128,128,.25); animation: spr-wait 1.2s ease-in-out infinite }
@keyframes spr-wait { 50% { background-color: rgba(128,128,128,.55) } }
@media (prefers-reduced-motion: reduce) { .spr--wait { animation: none } }
.cell .nm {
  margin-top: 5px; font-size: 10.5px; line-height: 1.25; color: var(--hc-ink-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.nonames .cell .nm { display: none }

/* the backdrop behind the art, cycled from the view bar */
body.bgmid   .well, body.bgmid   .big { background: #5a606b }
body.bgdark  .well, body.bgdark  .big { background: #0a0c0f }
body.bglit   .well, body.bglit   .big { background: #c9cdd4 }
body.bgcheck .well, body.bgcheck .big { background: repeating-conic-gradient(#2a2e35 0 25%, #1b1e23 0 50%) 0 0 / 16px 16px }

/* ---- inspector --------------------------------------------------------- */
#side {
  width: var(--hc-inspector-w, 320px); flex: 0 0 auto; overflow: auto; padding: 14px;
  border-left: 1px solid var(--hc-line); background: var(--hc-bg-2);
  --hc-pane-display: block;
}
#side h2 { margin: 0 0 2px; font-size: 16px; word-break: break-word }
#side .sub { color: var(--hc-ink-dim); font-size: 12px; margin-bottom: 10px }
#side .big {
  display: flex; align-items: center; justify-content: center; margin: 10px 0;
  min-height: 160px; border-radius: 8px; border: 1px solid #000; overflow: hidden;
}
#side dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 10px 0; font-size: 12.5px }
#side dt { color: var(--hc-ink-dim) }
#side dd { margin: 0; color: var(--hc-ink-2); word-break: break-word }
#side a { color: var(--hc-hover) }
#side .btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 }
#side .btns button { padding: 6px 11px; font-size: 12px }
#side .credit {
  margin: 10px 0; padding: 9px 11px; border-radius: 7px; font: 12px/1.45 var(--hc-mono);
  background: var(--hc-bg-1); border: 1px solid rgba(90,209,255,.35); color: var(--hc-ink);
}
#side .note { color: var(--hc-ink-dim); font-size: 11.5px; margin: 6px 0 }
#side .packrow {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--hc-line); font-size: 12.5px;
}
#side .packrow b { color: var(--hc-ink) }
#side .packrow small { grid-column: 1 / -1; color: var(--hc-ink-dim) }
#side .packrow a.zip { font-size: 12px; white-space: nowrap }
#side .credit { white-space: pre-line }
/* the packs on their creators' own sites: one card near the intro's top,
   three pictures of their pages, linking the showcase (/art/elsewhere/) */
#side a.elsewhere {
  display: grid; gap: 6px; margin: 12px 0 2px; padding: 10px 11px 11px; border-radius: var(--hc-r);
  border: 1px solid rgba(255,138,40,.55); background: var(--hc-bg-1);
  color: var(--hc-ink-2); text-decoration: none; font-size: 12.5px; line-height: 1.45;
  transition: border-color var(--hc-t-fast) var(--hc-ease), background var(--hc-t-fast) var(--hc-ease);
}
#side a.elsewhere:hover, #side a.elsewhere:focus-visible { border-color: var(--hc-brand-orange); background: var(--hc-bg-3) }
#side .elsewhere-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 2px }
#side .elsewhere-pics img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top;
  border-radius: 4px; border: 1px solid var(--hc-line); background: #000;
}
#side a.elsewhere b { color: var(--hc-ink); font-size: 14px }
#side a.elsewhere .go { color: var(--hc-brand-orange); font-weight: 600 }
#side .foot { margin-top: 16px; color: var(--hc-ink-dimmer); font-size: 11px }
#side .foot a { color: var(--hc-ink-dim) }

/* ---- the collection, docked along the bottom --------------------------- */
#strip { display: none }
#strip.on { display: flex }
#strip .hc-strip__items { overflow-x: auto; scrollbar-width: thin }
#strip .hc-strip__item { width: 36px; height: 36px; overflow: hidden }
/* its order is the sprite sheet's: drag one onto another, or step it in the details */
#strip .hc-strip__item.dragging { opacity: .35 }
#strip .hc-strip__item.drop { outline: 2px solid var(--hc-focus, #ffb648); outline-offset: 1px }
#side .btns.order .pos { flex-basis: 100%; font-size: 12px; color: var(--hc-ink-dim) }

/* ---- the floating view bar ------------------------------------------- */
#viewbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(30,33,38,.95); border: 1px solid var(--hc-line);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
#viewbar.off { display: none }
#viewbar .lbl { color: var(--hc-ink-dim); font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
#viewbar .sep { width: 1px; height: 20px; background: var(--hc-line) }
#viewbar input[type=range] { width: 110px }
#viewbar button { padding: 5px 11px; font-size: 12px }
body.stripon #viewbar { bottom: 84px }
body.selmode .cell { cursor: copy }

#err { display: none; padding: 30px; color: var(--hc-bad) }
#err.on { display: block }
.hc-bar input[type=search] { width: 230px }

@media (max-width: 860px) {
  /* search gets a row of its own: squeezed in beside the pack menu it was
     a 10px sliver on a phone */
  .hc-bar { flex-wrap: wrap; padding-bottom: 6px }
  .hc-bar input[type=search] { order: 10; flex: 1 1 100%; width: 100%; min-width: 0 }
  .hc-bar select { flex: 1 1 auto; min-width: 0 }
  .lic { font-size: 11.5px; padding: 6px 10px }
  #cats, #side { width: 100% }
  #viewbar { bottom: 12px; gap: 6px; padding: 6px 10px }
  #viewbar input[type=range] { width: 80px }
  #viewbar .lbl, #viewbar .sep { display: none }
}

/* ---- the four CC0 kinds: tabs, and what each kind's inspector holds ---- */
.kindtabs { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--hc-bg-1); border: 1px solid var(--hc-line) }
.kindtab {
  padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: var(--hc-ink-2); text-decoration: none; border: 1px solid transparent;
}
.kindtab:hover { color: var(--hc-ink); border-color: var(--hc-line-2) }
.kindtab.on { color: #1a1206; background: linear-gradient(180deg, #ffb648, #ff8a28); border-color: #ff8a28 }
.kindtab--out { color: var(--hc-brand-orange); border-style: dashed; border-color: rgba(255,138,40,.45) }
.kindtab--out:hover { color: var(--hc-ink); border-color: var(--hc-brand-orange) }

body.kind-sounds #grid { grid-template-columns: repeat(auto-fill, minmax(calc(var(--S) * 2 + 20px), 1fr)) }
body.kind-sounds .well { width: calc(var(--S) * 2); height: calc(var(--S) * .72) }
body.kind-sounds .well, body.kind-sounds #side .wave { background: #12151a }
.cell .dur { font-size: 10px; color: var(--hc-ink-dimmer); margin-top: 1px }
.cell.playing { border-color: #ff8a28; box-shadow: 0 0 0 2px rgba(255,138,40,.5), 0 0 18px rgba(255,138,40,.35) }
.cell.playing .well { animation: hc-pulse 1s ease-in-out infinite }
@keyframes hc-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(255,182,72,.7), inset 0 0 14px rgba(255,138,40,.35) } }
@media (prefers-reduced-motion: reduce) { .cell.playing .well { animation: none } }

#side .texview {
  margin: 10px 0 6px; border-radius: 8px; border: 1px solid #000; overflow: hidden;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #3b414b, #15181d 72%);
}
#side .texview .sphere { width: 100%; height: 100%; object-fit: contain }
#side .texview .tile { width: 100%; height: 100%; background-repeat: repeat; background-size: 50% 50% }
#side .texview [hidden] { display: none }
#side .seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--hc-bg-1); border: 1px solid var(--hc-line) }
#side .seg button { padding: 4px 10px; font-size: 11.5px; border: 0; border-radius: 6px; background: none; color: var(--hc-ink-2) }
#side .seg button.on { background: var(--hc-bg-3); color: var(--hc-focus-hi) }
#side .btns a.hc-btn { padding: 6px 11px; font-size: 12px; text-decoration: none; color: var(--hc-ink);
  display: inline-flex; align-items: center }
#side .btns a.hc-btn.go { color: #101B04 }
#side small.dim { color: var(--hc-ink-dimmer) }

#side .mvbox {
  margin: 10px 0 6px; border-radius: 8px; border: 1px solid #000; overflow: hidden; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 38%, #4a515d, #171a1f 74%);
}
#side model-viewer.mv { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: #ff8a28 }
#side .animrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hc-ink-dim) }
#side .animrow select { flex: 1; min-width: 0 }

#side .wave { margin: 10px 0 6px; border-radius: 8px; border: 1px solid #000; overflow: hidden; cursor: pointer }

/* a tiny texture: the tile repeated with hard pixels */
#side .texview.flat .tile { image-rendering: pixelated }

/* fonts: a wide specimen well, and the try-it box */
body.kind-fonts #grid { grid-template-columns: repeat(auto-fill, minmax(calc(var(--S) * 2 + 20px), 1fr)) }
body.kind-fonts .well { width: calc(var(--S) * 2); height: var(--S) }
#side .fontctl { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 6px }
#side .fontctl input.type { width: 100%; padding: 6px 9px; font-size: 13px }
#side .szrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hc-ink-dim) }
#side .szrow input { flex: 1; min-width: 0 }
#side .szrow .szl { width: 44px; text-align: right; color: var(--hc-ink-2) }
#side .fontview {
  margin: 0 0 8px; padding: 14px 12px; border-radius: 8px; border: 1px solid #000; overflow: auto;
  min-height: 120px; max-height: 300px; background: #0f1216;
}
#side .fontview .say { color: #f0ede6; line-height: 1.2; word-break: break-word }
#side .abc {
  white-space: pre-wrap; word-break: break-all; font-size: 20px; line-height: 1.35; color: var(--hc-ink);
  padding: 10px 12px; border-radius: 8px; background: var(--hc-bg-1); border: 1px solid var(--hc-line)
}
#side .pixel { -webkit-font-smoothing: none; font-smooth: never }
#side .wave canvas { display: block; width: 100%; height: auto }

@media (max-width: 860px) {
  .kindtabs { order: 9; flex: 1 1 100%; overflow-x: auto }
}

/* the front page's ground, orange and lettering; each box on the wall has its own lettering */
@font-face { font-family: "DeltaBlock"; src: url("/assets/front/DeltaBlock-Regular-b7ce987722.woff") format("woff"); font-display: swap }
@font-face { font-family: "RasterForge"; src: url("/assets/front/RasterForge-aaba8d19fc.woff") format("woff"); font-display: swap }
@font-face { font-family: "Scabber"; src: url("/assets/front/Scabber-aa381da776.woff") format("woff"); font-display: swap }
@font-face { font-family: "Blaec-Regular"; src: url("/assets/front/Blaec-Regular-2f45a9fac5.woff") format("woff"); font-display: swap }
@font-face { font-family: "FreeCheese-Regular"; src: url("/assets/front/FreeCheese-Regular-47a11ad650.woff") format("woff"); font-display: swap }
@font-face { font-family: "KenneyFutureNarrow"; src: url("/assets/front/KenneyFutureNarrow-0793615823.woff") format("woff"); font-display: swap }
@font-face { font-family: "Liber-Struct"; src: url("/assets/front/Liber-Struct-3d5a4388c4.woff") format("woff"); font-display: swap }
@font-face { font-family: "CrayonLibre-Regular"; src: url("/assets/front/CrayonLibre-Regular-55c99be636.woff") format("woff"); font-display: swap }
@font-face { font-family: "Stampcraft-Regular"; src: url("/assets/front/Stampcraft-Regular-6bfd591a1a.woff") format("woff"); font-display: swap }
@font-face { font-family: "OSerif-Regular"; src: url("/assets/front/OSerif-Regular-cfd2711234.woff") format("woff"); font-display: swap }
@font-face { font-family: "Drybrush"; src: url("/assets/front/Drybrush-ad74107339.woff") format("woff"); font-display: swap }
:root { --hc-bg-0: #141414; --hc-bg-1: #0d0d0d; --hc-bg-2: #0d0d0d; --hc-bg-3: #242424; --hc-void: #141414; --hc-line: rgba(255, 255, 255, .12); --hc-line-2: rgba(255, 255, 255, .24); --hc-ink: #fff; --hc-ink-2: #e4e4e4; --hc-ink-dim: #bdbdbd; --hc-focus: #ff8a28; --hc-focus-hi: #ffb066; --hc-hover: #ff8a28 }
:root body { background: #141414 }
.ez-head { order: -1; flex: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 28px; padding: 22px var(--edge, 34px) 14px; background: #141414; color: #fff }
.ez-head h1 { margin: 0; font: 400 clamp(44px, 3.6vw, 88px)/1 "DeltaBlock", sans-serif }
.ez-head p { margin: 0; font: 400 clamp(15px, .86vw, 19px)/1.4 ui-monospace, Consolas, monospace; color: #e4e4e4 }
:root .hc-app > .sitebar { order: -2 }
:root #cats { background: #0d0d0d }
:root #cats button { font-size: 15px }
:root #grid { background: #141414 }

/* the boxes: fixed at three times a scene's size so every scene pixel lands on whole screen pixels */
.at-doors #cats, .at-doors #side, .at-doors .resizer, .at-doors .hc-mtabs { display: none !important }
.doors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 400px)); justify-content: center; gap: 14px }
.door { position: relative; display: block; aspect-ratio: 137 / 89; padding: 0; border: 0; overflow: hidden; background: #0d0d0d; color: #fff; cursor: pointer; text-align: left }
.door:hover { outline: 4px solid #ff8a28; outline-offset: -4px }
.door--asked { outline: 3px solid rgba(255,182,72,.85); outline-offset: -3px }
.door__art { background-image: var(--atlas); background-repeat: no-repeat; image-rendering: pixelated }
.door__scene { position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity 1.5s linear }
.door__scene.on { opacity: 1 }
.door__spot { position: absolute; pointer-events: none }
.door__spr { position: relative; will-change: transform }
.door__spr:not(.crisp) { image-rendering: auto }
.door__shadow { position: absolute; left: 18%; right: 18%; bottom: -8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .34) }
.door__title { position: absolute; left: 14px; top: 10px; max-width: calc(100% - 28px); font-weight: 400; font-size: 46px; line-height: .98; text-transform: uppercase; -webkit-text-stroke: 6px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000 }
.door__n { position: absolute; left: 16px; top: 60px; color: #fff; font: 700 15px ui-monospace, Consolas, monospace; font-style: normal; -webkit-text-stroke: 4px #000; paint-order: stroke fill }
.at-doors #viewbar { display: none !important }
.door-ad { position: relative; aspect-ratio: 137 / 89; overflow: hidden; background: #0d0d0d }
.door-ad__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .66) }
.door-ad > .hcspot, .door-ad > .house {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 240px) auto; grid-template-rows: auto 1fr; justify-content: center; column-gap: 8px;
  max-width: none; margin: 0; padding: 5px; border: 0; color: #d5d9e4; font: 400 11px/1.3 "Rubik", "Segoe UI", system-ui, sans-serif; text-align: left
}
.door-ad .hcspot__tags, .door-ad .house-tag { grid-column: 1; grid-row: 1; margin: 3px 0 6px }
.door-ad .hcspot__tags { height: 32px }
.door-ad .hcspot__tag { color: #d5d9e4; font-size: 11px; line-height: 16px }
.door-ad .house-tag { letter-spacing: .08em; line-height: 1.25 }
.door-ad .hcspot__box, .door-ad .house-art { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center }
.door-ad .house-art a { width: 300px }
.door-ad .house-fine { grid-column: 1; grid-row: 2; max-width: none; margin: 0 }
.door-ad .house-fine a { color: #fff }
.doors-back { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 14px; align-items: baseline; margin: 0 0 6px; padding: 6px 12px; border: 1px solid var(--hc-line-2); background: none; color: var(--hc-ink); font: inherit; cursor: pointer }
.doors-back::before { content: "\2190" }
.doors-back:hover { border-color: #ff8a28; color: #ff8a28 }
.doors-back b { font-weight: 700 }

/* a phone's toolbars would leave the wall a sliver, so there the page scrolls as one; off the wall the panes need the headline's room */
@media (max-width: 860px) {
  .ez-head { padding: 12px 14px 8px }
  .ez-head h1 { font-size: 34px }
  .ez-head p { font-size: 13px }
  :root:not(.at-doors) .ez-head { display: none }
  .at-doors, .at-doors body { height: auto; overflow: auto }
  .at-doors .hc-app { height: auto }
  .at-doors .hc-app > .hc-grow { flex: none; display: block }
  .at-doors #grid { overflow: visible }
}
.door__tex { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s linear; background-repeat: repeat }
.door__tex.on { opacity: 1 }
.door__tex.crisp { image-rendering: pixelated }
.door--textures .door__tex { transition-duration: 1.2s }
.door__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .62) 100%) }
.door__shade--even { background: rgba(0, 0, 0, .42) }
model-viewer.door__model { position: absolute; left: 0; top: 14%; width: 100%; height: 86%; pointer-events: none; background: transparent; --poster-color: transparent; --progress-bar-color: transparent }
.door__play { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .78); color: #fff }
.door__play:hover { background: #ff8a28; color: #141414 }
.door__play.on { background: #ff8a28; color: #141414 }
.doors--fonts { grid-template-columns: repeat(auto-fill, minmax(min(720px, 100%), 1fr)) }
.doors--fonts .door { aspect-ratio: 2 / 1 }
.door__word { position: absolute; left: 5%; right: 5%; top: 26%; bottom: 12%; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-size: 112px; line-height: 1.1; white-space: nowrap; text-shadow: 0 4px 0 #000 }
.door__font { position: absolute; right: 14px; bottom: 10px; color: #fff; font: 700 14px ui-monospace, Consolas, monospace; font-style: normal; -webkit-text-stroke: 4px #000; paint-order: stroke fill }
.doors--fonts .door-ad { aspect-ratio: 2 / 1 }
.doors--fonts .door-ad > .hcspot, .doors--fonts .door-ad > .house { grid-template-rows: auto auto; align-content: center; column-gap: 18px }
.doors--fonts .door-ad .house-fine { font-size: 13px }

/* under the wall: a card for every pack, then the site's foot at the very bottom however short the page */
.at-doors #grid { --hc-pane-display: flex; display: flex; flex-direction: column; gap: 0 }
.doors, .shelf { flex: none; width: 100% }
.shelf { margin-top: 30px }
.shelf__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 400px)); justify-content: center; gap: 14px }
.shelf__head { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 2px }
.shelf__head h2 { margin: 0; color: #fff; font: 400 clamp(34px, 2.6vw, 62px)/1 "DeltaBlock", sans-serif }
.shelf__head p { margin: 0; color: #e4e4e4; font: 400 15px/1.4 ui-monospace, Consolas, monospace }
.pack { position: relative; display: block; background: #0d0d0d; color: #fff; text-decoration: none }
.pack:hover { outline: 4px solid #ff8a28; outline-offset: -4px }
.pack__strip { position: relative; display: flex; align-items: center; justify-content: space-evenly; width: 0; min-width: 100%; height: 84px; overflow: hidden; background: #1e1e1e }
@media (max-width: 430px) { .shelf--fonts .pack__strip i:nth-child(3) { display: none } }
.pack__strip i { flex: none; display: block; background-image: var(--shelf); background-repeat: no-repeat }
.pack__strip i.door__art { position: absolute; left: 0; top: -60px; background-image: var(--atlas) }
.pack__strip .door__play { top: 23px }
.pack__name { display: block; padding: 8px 12px 0; font: 700 15px/1.25 "Rubik", "Segoe UI", system-ui, sans-serif }
.pack__by { display: block; padding: 2px 12px 10px; color: #bdbdbd; font: 400 13px/1.35 "Rubik", "Segoe UI", system-ui, sans-serif }
.ez-foot { flex: none; margin-top: auto; padding: 34px 14px 10px; color: #bdbdbd; font: 400 13px/1.5 "Rubik", "Segoe UI", system-ui, sans-serif; text-align: center }
.ez-foot a { color: #e4e4e4 }
@media (max-width: 860px) {
  .door-ad, .doors--fonts .door-ad { aspect-ratio: auto }
  .door-ad > .hcspot, .door-ad > .house { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: center; padding: 10px; text-align: center }
  .door-ad .hcspot__tags, .door-ad .house-tag { grid-column: 1; grid-row: auto; width: 100%; margin: 0 0 6px }
  .door-ad .hcspot__tags { height: 16px }
  .door-ad .hcspot__box, .door-ad .house-art { grid-column: 1; grid-row: auto }
  .door-ad .house-art a { width: min(300px, 100%) }
  .door-ad .house-fine { grid-column: 1; grid-row: auto; margin-top: 6px }
}
