/* Boomstick: a graveyard, a blood moon and blackletter. */
@font-face { font-family: "Grenze Gotisch"; font-weight: 100 900; src: url(fonts/grenze-gotisch-900.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url(fonts/barlow-condensed-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); font-display: swap; }
:root {
  --void: #060405;
  --pitch: #0d090a;
  --panel: #151011;
  --panel-2: #211919;
  --bone: #f3ead9;
  --bone-2: #c9bdab;
  --bone-3: #a3968a;
  --blood: #e5190b;
  --blood-hi: #ff4128;
  --blood-lo: #5c0c07;
  --ember: #ff7a1a;
  --brass: #e2ac4a;
  --line: rgba(243, 234, 217, .14);
  --line-hi: rgba(243, 234, 217, .34);
  --display: "Grenze Gotisch", "UnifrakturCook", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  --card: 248px;
  --gap: 12px;
  --aim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg stroke='%23060405' stroke-width='3.4'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8'/%3E%3C/g%3E%3Cg stroke='%23f3ead9' stroke-width='1.5'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.4' fill='%23f3ead9'/%3E%3C/svg%3E") 16 16, crosshair;
  --aim-hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg stroke='%23060405' stroke-width='3.8'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M16 3v7M16 22v7M3 16h7M22 16h7'/%3E%3C/g%3E%3Cg stroke='%23ff4128' stroke-width='2'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M16 3v7M16 22v7M3 16h7M22 16h7'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ff4128'/%3E%3C/svg%3E") 16 16, pointer;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--cond);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
:focus-visible { outline: 2px solid var(--blood-hi); outline-offset: 2px; }

@media (pointer: fine) {
  body { cursor: var(--aim); }
  a, button, .dsec, label, select { cursor: var(--aim-hot); }
  input { cursor: text; }
}

/* —— the big title: it slams in with the shot —— */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.title { margin: 0; font-family: var(--display); font-weight: 900; line-height: .92; font-size: min(12.6vw, 27vh); letter-spacing: -.005em; filter: drop-shadow(0 .02em .1em rgba(229, 25, 11, .5)); }
.title .row { display: block; overflow: hidden; padding: .08em .12em .13em 0; margin-bottom: -.2em; }
.js .title .row > span { display: block; transform: translateY(150%) rotate(3deg); transform-origin: 0 100%; transition: transform .62s cubic-bezier(.16, 1.2, .3, 1); }
.go .title .row > span { transform: none; }
.title .small { margin-bottom: -.3em; font-size: .46em; color: var(--bone); text-shadow: 0 2px 16px rgba(5, 2, 8, .7); }
.title .big > span {
  background: linear-gradient(176deg, #fff6e2 12%, #ffcf9a 40%, var(--blood-hi) 68%, #a81408 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition-delay: .07s;
  filter: drop-shadow(0 .035em 0 rgba(5, 2, 8, .9));
}
#line {
  min-height: 1.3em;
  margin: .42em 0 0;
  font-size: clamp(1.3rem, 2.3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: .015em;
  text-shadow: 0 1px 3px rgba(5, 2, 8, .95), 0 2px 18px rgba(5, 2, 8, .8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s;
}
#line.on { opacity: 1; transform: none; }
.stats { display: flex; flex-wrap: wrap; gap: .2em 1.5em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 234, 217, .86); text-shadow: 0 1px 4px rgba(5, 2, 8, .9); }
.stats b { font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }

/* —— the gate: login, sign out, change password —— */
.scene-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 2, 8, .8), rgba(5, 2, 8, .42) 38%, transparent 58%); }
.gate-main { position: relative; z-index: 2; display: flex; align-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px var(--gutter) 74px; pointer-events: none; }
.gate-col { width: min(58vw, 860px); }
.gate-card { margin-top: clamp(14px, 2.6vh, 26px); max-width: 720px; pointer-events: auto; }
.gate-card form { display: block; }
#gateForm { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
#gateForm .field { margin: 0; }
#gateForm .btn-fire { width: auto; margin: 0; padding-inline: 20px; white-space: nowrap; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 4px #050208; }
.field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 13px;
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 500;
  color: var(--bone);
  background: rgba(8, 4, 8, .64);
  border: 1px solid rgba(243, 234, 217, .52);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.field input:focus { outline: none; background: rgba(8, 4, 8, .82); border-color: var(--blood-hi); box-shadow: 0 0 0 1px var(--blood-hi), 0 0 24px rgba(255, 65, 40, .46); }
.btn-fire {
  position: relative;
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 10px 16px;
  overflow: hidden;
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  background: var(--blood);
  border: 0;
  border-radius: 3px;
  transition: background .12s, box-shadow .12s, transform .06s;
}
.btn-fire span { position: relative; }
.btn-fire::before { content: ""; position: absolute; inset: 0; transform: translateX(-102%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 220, 170, .6), transparent); }
.btn-fire:hover { background: var(--blood-hi); box-shadow: 0 0 34px rgba(255, 65, 40, .6); }
.btn-fire:hover::before { transform: translateX(102%) skewX(-18deg); transition: transform .42s ease; }
.btn-fire:active { transform: translateY(2px); }
.gate-msg { margin-bottom: 12px; padding: 8px 12px; font-size: 18px; font-weight: 500; color: #ffe2db; background: rgba(150, 16, 8, .78); border-left: 3px solid var(--blood-hi); border-radius: 2px; }
.gate-msg.ok { color: var(--bone); background: rgba(8, 4, 8, .72); border-left-color: var(--brass); }
.gate-note { margin: 12px 0 0; max-width: 460px; font-size: 16.5px; font-weight: 500; line-height: 1.28; color: var(--bone); text-shadow: 0 1px 4px #050208; }
.gate-card .gate-msg.ok + .gate-note { margin: 0 0 12px; }
.gate-link { display: inline-block; margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: .05em; color: var(--bone); text-shadow: 0 1px 4px #050208; }
.gate-link:hover { color: var(--blood-hi); }
.gate-card form:not(#gateForm), .gate-card > .btn-fire, .gate-card > .gate-msg { max-width: 420px; }
.hud {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  font-size: clamp(.92rem, 1.2vw, 1.15rem);
}
#again {
  min-height: 44px;
  padding: .3em 1em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: auto;
  color: var(--bone);
  background: rgba(8, 4, 8, .54);
  border: 1px solid rgba(243, 234, 217, .5);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: background .15s, color .15s, border-color .15s;
}
#again:hover { color: #fff; background: var(--blood); border-color: var(--blood); }
@media (prefers-reduced-motion: no-preference) {
  .hit .gate-card { animation: recoil .46s cubic-bezier(.3, .8, .3, 1); }
}
@keyframes recoil {
  0% { transform: translateX(0); }
  15% { transform: translateX(-13px) rotate(-.8deg); }
  34% { transform: translateX(10px) rotate(.6deg); }
  54% { transform: translateX(-6px); }
  76% { transform: translateX(3px); }
  100% { transform: none; }
}
@media (max-aspect-ratio: 1/1) {
  .scene-scrim { background: linear-gradient(180deg, rgba(5, 2, 8, .82), rgba(5, 2, 8, .5) 44%, transparent 62%); }
  .gate-main { align-items: flex-start; padding-top: max(26px, calc(env(safe-area-inset-top) + 14px)); }
  .gate-col { width: 100%; }
  .title { font-size: min(19.2vw, 13vh); }
  #line { font-size: clamp(1.2rem, 5.2vw, 2rem); }
  #gateForm { grid-template-columns: 1fr; gap: 8px; }
  #gateForm .btn-fire { width: 100%; }
  .field { margin-bottom: 8px; }
  .field input { height: 46px; }
  .btn-fire { min-height: 46px; }
  .hud { font-size: .8rem; }
  .hud .stats { gap: .05em 1em; letter-spacing: .11em; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .title { font-size: min(9vw, 19vh); }
  #line { display: none; }
  .gate-main { padding-bottom: 16px; }
  .hud { display: none; }
}

/* —— arriving through both barrels —— */
@property --bore { syntax: "<length>"; inherits: false; initial-value: 0px; }
#arrive { display: none; }
.arriving #arrive {
  --bore: 0px;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  pointer-events: none;
  background: #fff4dc;
  -webkit-mask:
    radial-gradient(circle at 34% 50%, transparent var(--bore), #000 calc(var(--bore) + 1.5px)),
    radial-gradient(circle at 66% 50%, transparent var(--bore), #000 calc(var(--bore) + 1.5px));
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at 34% 50%, transparent var(--bore), #000 calc(var(--bore) + 1.5px)),
    radial-gradient(circle at 66% 50%, transparent var(--bore), #000 calc(var(--bore) + 1.5px));
  mask-composite: intersect;
  animation: flash .24s linear forwards, barrels .72s cubic-bezier(.76, 0, .2, 1) .16s forwards;
}
@keyframes flash { 0% { background: #fff4dc; } 40% { background: var(--blood-hi); } 100% { background: #050304; } }
@keyframes barrels { 86% { opacity: 1; } 100% { --bore: 95vmax; opacity: 0; } }

/* —— the launcher —— */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 3, 6, .62), rgba(6, 3, 6, .8));
}
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 40px) 40px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-mark { display: flex; flex: none; align-items: center; gap: 9px; color: var(--bone); text-decoration: none; }
.top-mark span { font-family: var(--display); font-size: 27px; font-weight: 800; line-height: 1; text-shadow: 0 2px 8px #050208; }
.top-mark img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 86, 36, .6)); }
.top nav { display: flex; align-items: center; gap: 6px; }
.top .signout { display: contents; }
.viewtoggle { display: flex; border: 1px solid var(--line-hi); background: rgba(6, 4, 5, .55); }
.viewtoggle button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bone-2);
  background: transparent;
  border: 0;
}
.viewtoggle button svg { fill: currentColor; }
.viewtoggle button:hover { color: var(--bone); }
.viewtoggle button.on { color: #fff; background: var(--blood); }
.iconbtn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--bone);
  text-decoration: none;
  background: rgba(6, 4, 5, .55);
  border: 1px solid var(--line-hi);
  transition: color .12s, border-color .12s, background .12s;
}
.iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { color: var(--blood-hi); border-color: var(--blood-hi); }
.iconbtn.on { color: #fff; background: var(--blood); border-color: var(--blood); }

.hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(60vh - 22px); padding: 6px 0 44px; pointer-events: none; }
.launcher .title { font-size: clamp(66px, min(10.4vw, 19vh), 168px); max-width: 60vw; }
.launcher .title .row { white-space: nowrap; text-overflow: clip; }
.launcher #line { font-size: clamp(1.15rem, 1.9vw, 1.8rem); }
.hero .stats { margin-top: 12px; font-size: clamp(.84rem, 1.1vw, 1.05rem); }

/* the sort and filter bar stays with you */
.orgbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 8px max(clamp(16px, 3vw, 40px), calc((100vw - 1376px) / 2 + 40px));
  background: rgba(6, 4, 5, .88);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.catwrap { position: relative; display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; }
.catbar { display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: 6px; min-width: 0; margin: -1px; padding: 3px; overflow: hidden; }
.catbar button, .catmore-btn, .catsearch {
  flex: none;
  height: 34px;
  padding: 0 11px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone-2);
  background: transparent;
  border: 1px solid var(--line);
  transition: color .1s, border-color .1s, background .1s;
}
.catbar button b, .catmenu button b { margin-left: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--bone-3); }
.catbar button:hover, .catmore-btn:hover, .catsearch:hover { color: var(--bone); border-color: var(--blood-hi); }
.catbar button.on, .catmore-btn.on { color: #fff; background: var(--blood); border-color: var(--blood); }
.catbar button.on b { color: #ffd8d0; }
.catmore { position: relative; flex: none; }
.catmore-btn { display: flex; align-items: center; gap: 4px; }
.catmore-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.catmore-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.catmenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .7);
}
.catmenu button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone-2);
  background: transparent;
  border: 0;
}
.catmenu button:hover { color: var(--bone); background: var(--panel-2); }
.catmenu button.on { color: #fff; background: var(--blood); }
.catmenu button.on b { color: #ffd8d0; }
.catsearch { display: flex; align-items: center; justify-content: center; width: 34px; padding: 0; margin-left: auto; }
.catsearch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bytoggle { flex: none; }
.bytoggle button { height: 32px; }
.by-domain { display: none; }
:root[data-by="domain"] .by-domain { display: block; }
:root[data-by="domain"] .by-cat, :root[data-by="domain"] .catwrap { display: none; }

/* section headings */
.dsec, .fsec { display: flex; align-items: center; gap: 10px; }
.dsec { margin: 30px 0 16px; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dsec .dico { flex: none; width: 18px; height: 18px; color: var(--blood-hi); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dsec h2, .fsec h2 { margin: 0; text-shadow: 0 2px 8px #050208; font-family: var(--display); font-size: 31px; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; }
.dsec:hover h2 { color: var(--blood-hi); }
.dsec .host { font-family: var(--mono); font-size: 11.5px; color: var(--bone-3); }
.dsec .host:hover { color: var(--blood-hi); }
.dsec .rule, .fsec .rule, .xsec .rule { flex: 1; min-width: 12px; height: 1px; background: var(--line); }
.tally { font-family: var(--mono); font-size: 11.5px; color: var(--bone-3); white-space: nowrap; }
.tally .ct { padding: 0 .55em; }
.tally .ct + .ct { border-left: 1px solid var(--line); }
.ct-live { color: var(--bone-2); }
.ct-wip { color: var(--brass); }
.ct-soon { color: #f0a090; }
.dom.collapsed .grid { display: none; }
.dom.collapsed .dsec { opacity: .72; }

.by-cat { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 var(--gap); }
.cat { --n: 1; display: flex; flex: 1 1 calc(var(--n) * var(--card) + (var(--n) - 1) * var(--gap)); flex-direction: column; min-width: 0; max-width: 100%; }
.cat .grid { flex: 1; }
.cat.collapsed { flex-basis: 100%; }
:root[data-view="list"] .cat { flex: 1 1 100%; }
:root[data-view="list"] .cat.one { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); min-width: 300px; }

/* —— every app is a tombstone —— */
.grid { display: grid; grid-template-columns: repeat(auto-fill, var(--card)); grid-auto-rows: 1fr; gap: 26px var(--gap); justify-content: start; padding-bottom: 8px; }
.cell { position: relative; isolation: isolate; height: 100%; min-width: 0; }
.cell:hover, .cell:focus-within { z-index: 6; }
.tile {
  --arch: calc(var(--card) / 2);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .84 0 0 0 .34 -.08'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23s)'/%3E%3C/svg%3E"),
    linear-gradient(166deg, #443539 0%, #2a2024 36%, #181216 100%);
  border: 1px solid rgba(243, 234, 217, .16);
  border-top-color: rgba(255, 138, 98, .8);
  border-radius: var(--arch) var(--arch) 5px 5px;
  box-shadow: inset 3px 3px 0 rgba(255, 236, 214, .07), inset -4px -4px 0 rgba(0, 0, 0, .42), 0 16px 26px rgba(0, 0, 0, .62);
  transition: border-color .12s, transform .16s cubic-bezier(.2, 1.5, .4, 1), box-shadow .14s;
}
.tile:hover, .tile:focus-visible {
  border-color: var(--blood-hi);
  box-shadow: inset 3px 3px 0 rgba(255, 236, 214, .1), inset -4px -4px 0 rgba(0, 0, 0, .42), 0 0 0 1px var(--blood-hi), 0 8px 40px rgba(255, 50, 26, .55);
  transform: translateY(-6px) rotate(-.7deg);
}
.js .dom .cell:not(.up) .tile { opacity: 0; }
.dom .cell.up .tile { animation: rise .62s cubic-bezier(.16, 1.16, .3, 1) var(--d, 0ms) backwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(58px) rotate(2.4deg) scaleY(.9); } 55% { opacity: 1; } 100% { transform: none; } }

/* the dirt it stands in */
.cell::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -6%;
  right: -6%;
  bottom: -11px;
  height: 22px;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, #2b1219 0 62%, rgba(43, 18, 25, .7) 78%, transparent 100%);
}
/* and what reaches up from behind it */
.cell::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8px;
  right: 15%;
  width: 46px;
  height: 70px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(44px) rotate(11deg);
  transition: transform .26s cubic-bezier(.2, 1.7, .4, 1), opacity .08s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 92' fill='none' stroke='%23efe2c2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke-width='4.6'%3E%3Cpath d='M26 90V64'/%3E%3Cpath d='M35 90V64'/%3E%3C/g%3E%3Cpath d='M20 60q11 7 22 0l1-10q-11-5-24 0z' fill='%23efe2c2' stroke-width='2'/%3E%3Cg stroke-width='3.5'%3E%3Cpath d='M20 51 9 40l-3-11-1-9'/%3E%3Cpath d='M26 48 20 28l-1-11 1-11'/%3E%3Cpath d='M33 47l2-23 2-12 1-9'/%3E%3Cpath d='M40 49l9-19 3-11 2-8'/%3E%3Cpath d='M43 57l9-5 5-7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 70, 40, .8));
}
@media (hover: hover) {
  .cell:hover::before { opacity: 1; transform: translateY(-37px) rotate(7deg); }
}
.t-media {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 134px;
  margin: 9px 9px 0;
  overflow: hidden;
  background: radial-gradient(90% 100% at 42% 24%, #6e1610, #220a0b 76%);
  border-radius: calc(var(--arch) - 10px) calc(var(--arch) - 10px) 3px 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .75), 0 1px 0 1px rgba(255, 236, 214, .1);
}
.t-media.has-art { background: #1c0806; }
.t-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.34) brightness(.9);
  transform: scale(1.015);
  transition: filter .16s, transform .36s cubic-bezier(.2, .7, .2, 1);
}
.t-media.has-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #ff4a2e, #bb1206 58%, #4f0904);
  mix-blend-mode: multiply;
  transition: opacity .16s;
}
.tile:hover .t-art, .tile:focus-visible .t-art { filter: none; transform: scale(1.09); }
.tile:hover .t-media::after, .tile:focus-visible .t-media::after { opacity: 0; }
.t-ico { width: 54px; height: 54px; margin-top: 12px; fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .7)); transition: transform .16s cubic-bezier(.2, 1.6, .4, 1); }
.tile:hover .t-ico { stroke: #fff; transform: scale(1.14) rotate(-4deg); }
.s-wip .t-media::before, .s-soon .t-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--brass) 0 8px, #17100a 8px 16px);
}
.s-soon .t-media::before { background: repeating-linear-gradient(-45deg, #9b8e82 0 8px, #17100a 8px 16px); }
.s-soon .t-art { filter: grayscale(1) contrast(1.1) brightness(.52); }
.t-body { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 13px 15px; text-align: center; }
.t-head { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; }
.t-title { font-family: var(--display); font-size: 29px; font-weight: 800; line-height: .98; color: #fbf2e2; text-shadow: 0 2px 0 #0a0507, 0 -1px 0 rgba(255, 255, 255, .1); }
.t-desc { display: -webkit-box; font-size: 16px; font-weight: 500; line-height: 1.18; color: var(--bone-2); overflow: hidden; text-shadow: 0 1px 0 #0a0507; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.t-soft { color: var(--bone-3); }
.t-where { max-width: 100%; margin-top: auto; padding-top: 7px; overflow: hidden; font-family: var(--mono); font-size: 10px; color: var(--bone-3); text-overflow: ellipsis; white-space: nowrap; }
.t-badge { padding: 1px 6px; font-family: var(--cond); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; border: 1px solid; border-radius: 2px; white-space: nowrap; }
.t-wip { color: var(--brass); border-color: rgba(226, 172, 74, .7); }
.t-soon { color: var(--bone-2); border-color: var(--line-hi); }
.t-missing { color: #ffb3a6; border-color: rgba(255, 65, 40, .6); }

.fav, .edit {
  position: absolute;
  top: 106px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--bone);
  background: rgba(6, 4, 5, .76);
  border: 1px solid var(--line-hi);
  border-radius: 3px;
  transition: color .1s, border-color .1s, transform .1s, opacity .1s;
}
.fav { right: 14px; }
.fav svg { width: 13px; height: 20px; overflow: visible; fill: currentColor; }
.fav:not(.on) svg { opacity: .82; }
.fav.on { color: var(--blood-hi); border-color: var(--blood-hi); }
.fav.on svg { filter: drop-shadow(0 0 5px rgba(255, 65, 40, .75)); }
.fav:hover { color: var(--blood-hi); border-color: var(--blood-hi); transform: scale(1.08); }
@media (hover: hover) {
  .cell .fav:not(.on) { opacity: 0; }
  .cell:hover .fav, .cell:focus-within .fav { opacity: 1; }
}
.edit { display: none; left: 14px; }
.edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edit:hover { color: var(--blood-hi); border-color: var(--blood-hi); }
body.editing .edit { display: flex; }
body.editing .tile { border-style: dashed; border-color: var(--brass); }
.cell.edited .t-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; background: var(--brass); vertical-align: middle; }

/* the favorites shelf */
.favs { margin: 14px 0 6px; }
.fsec { margin: 14px 0 12px; }
.fsec .fico { flex: none; width: 14px; height: 21px; color: var(--blood-hi); fill: currentColor; }
.fsec h2 { font-size: 31px; }
.favs .grid.big { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.favs .tile { --arch: 150px; }
.favs .t-media { height: 164px; }
.favs .fav, .favs .edit { top: 136px; }
.favs .t-title { font-size: 35px; }
.favs .t-ico { width: 66px; height: 66px; }

/* list view: the same stones, laid on their sides */
:root[data-view="list"] .dom .grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
:root[data-view="list"] .dom .tile { flex-direction: row; align-items: stretch; border-radius: 38px 4px 4px 38px; }
:root[data-view="list"] .dom .cell::before, :root[data-view="list"] .dom .cell::after { display: none; }
:root[data-view="list"] .dom .t-media { width: 70px; height: auto; min-height: 58px; margin: 5px 0 5px 5px; border-radius: 33px 2px 2px 33px; }
:root[data-view="list"] .dom .t-ico { width: 28px; height: 28px; margin: 0 0 0 4px; }
:root[data-view="list"] .dom .t-art { object-position: var(--art-pos, 50% 50%); }
:root[data-view="list"] .dom .t-body { align-items: flex-start; justify-content: center; gap: 1px; padding: 6px 44px 6px 12px; text-align: left; }
:root[data-view="list"] .dom .t-head { flex-direction: row; flex-wrap: wrap; gap: 2px 7px; }
:root[data-view="list"] .dom .t-title { font-size: 23px; }
:root[data-view="list"] .dom .t-desc { font-size: 15px; -webkit-line-clamp: 1; }
:root[data-view="list"] .dom .t-where { display: none; }
:root[data-view="list"] .dom .fav { top: 50%; right: 7px; margin-top: -16px; }
:root[data-view="list"] .dom .edit { top: 50%; left: 24px; margin-top: -16px; }

.empty { max-width: 560px; margin: 28px 0; padding: 22px; background: rgba(13, 9, 10, .8); border: 1px dashed var(--line-hi); }
.empty h2 { margin: 0 0 6px; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.empty p { margin: 0; font-size: 18px; color: var(--bone-2); }

/* admin sections */
.xsec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 46px 0 0; }
.xsec > svg { flex: none; width: 18px; height: 18px; color: var(--brass); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xsec h2 { margin: 0; font-family: var(--display); font-size: 29px; font-weight: 700; line-height: 1; color: var(--brass); }
.xsec .note { font-family: var(--mono); font-size: 11.5px; color: var(--bone-3); }
.xsec .note a { color: var(--brass); }
.bp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bp-fact { padding: 4px 10px; font-size: 16px; color: var(--bone-2); background: rgba(13, 9, 10, .74); border: 1px solid var(--line); }
.bp-fact b { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--brass); }
.bp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 12px; }
.bp-group { padding: 14px 16px 16px; background: rgba(21, 16, 17, .86); border: 1px solid var(--line); }
.bp-group.wide { grid-column: 1 / -1; }
.bp-group h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.bp-group h3 span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--bone-3); }
.bp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 11px 18px; margin: 0; padding: 0; list-style: none; }
.bp-group:not(.wide) .bp-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bp-list b { display: block; font-size: 17px; font-weight: 600; line-height: 1.15; }
.bp-list span { display: block; margin-top: 1px; font-size: 15px; line-height: 1.2; color: var(--bone-2); }
.bp-list em { display: inline-block; margin-top: 4px; padding: 0 6px; font-size: 13.5px; font-style: normal; color: #ffb3a6; border: 1px solid rgba(255, 65, 40, .55); }

.foot { margin-top: 42px; padding-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--bone-3); border-top: 1px solid var(--line); }
.foot kbd { padding: 0 5px; font: inherit; color: var(--bone); border: 1px solid var(--line-hi); }

/* edit modal */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 2, 3, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-card { width: 100%; max-width: 430px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; background: var(--panel); border: 1px solid var(--line-hi); border-top: 3px solid var(--blood); box-shadow: 0 24px 70px rgba(0, 0, 0, .8); }
.modal-card h3 { margin: 0 0 2px; font-family: var(--display); font-size: 31px; font-weight: 700; line-height: 1; }
.modal-card .mid { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; color: var(--bone-3); word-break: break-all; }
.modal-card label { display: block; margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--bone-2); }
.modal-card input, .modal-card select { display: block; width: 100%; height: 40px; margin-top: 5px; padding: 0 10px; font-family: var(--cond); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--bone); background: var(--void); border: 1px solid var(--line-hi); border-radius: 0; }
.modal-card input:focus, .modal-card select:focus { outline: none; border-color: var(--blood-hi); }
.modal-card input:disabled { opacity: .55; cursor: not-allowed; }
.modal-card .hint { margin: -4px 0 12px; font-size: 15px; line-height: 1.25; color: var(--bone-2); }
.modal-card .hint a { color: var(--brass); }
.modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.modal-actions button { height: 38px; padding: 0 15px; font-size: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: transparent; border: 1px solid var(--line-hi); }
.modal-actions .ghost { color: var(--bone-2); }
.modal-actions .ghost:hover { color: var(--bone); border-color: var(--blood-hi); }
#em-reset { margin-right: auto; color: #ffb3a6; border-color: rgba(255, 65, 40, .45); }
#em-save { color: #fff; background: var(--blood); border-color: var(--blood); }
#em-save:hover { background: var(--blood-hi); }

/* quick-jump panel */
#swBackdrop { position: fixed; inset: 0; z-index: 69; background: rgba(4, 2, 3, .62); }
.switcher { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: 340px; max-width: 88vw; background: var(--pitch); border-left: 2px solid var(--blood); box-shadow: -16px 0 50px rgba(0, 0, 0, .7); visibility: hidden; transform: translateX(102%); transition: transform .18s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .18s; }
.switcher.open { visibility: visible; transform: none; transition: transform .18s cubic-bezier(.4, 0, .2, 1); }
.sw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.sw-cur { flex: 1; min-width: 0; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.sw-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; font-size: 14px; color: var(--bone-2); background: transparent; border: 1px solid var(--line-hi); }
.sw-ic:hover { color: var(--blood-hi); border-color: var(--blood-hi); }
.sw-search { flex: none; height: 40px; margin: 4px 14px 6px; padding: 0 11px; font-family: var(--mono); font-size: 16px; color: var(--bone); background: var(--panel); border: 1px solid var(--line-hi); border-radius: 0; }
.sw-search:focus { outline: none; border-color: var(--blood-hi); }
.sw-list { flex: 1; overflow-y: auto; padding: 2px 8px 14px; }
.sw-grp { padding: 11px 6px 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bone-3); }
.sw-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 6px; text-align: left; color: var(--bone-2); background: transparent; border: 0; }
.sw-item:hover, .sw-item:focus-visible { color: #fff; background: var(--blood); }
.sw-ico { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--panel-2); }
.sw-ico.s-wip { box-shadow: inset 0 -3px 0 var(--brass); }
.sw-ico.s-soon { box-shadow: inset 0 -3px 0 var(--bone-3); }
.sw-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-tt { flex: 1; min-width: 0; overflow: hidden; font-size: 18px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sw-empty { padding: 14px 8px; font-size: 16px; color: var(--bone-3); }

/* the shot */
.blast { position: fixed; z-index: 120; width: 0; height: 0; pointer-events: none; }
.blast .core { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff 0 12%, #ffe2a8 24%, var(--ember) 44%, rgba(229, 25, 11, .55) 60%, transparent 72%); animation: blast-core .26s ease-out forwards; }
.blast .ring { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border: 3px solid #ffd8a8; border-radius: 50%; animation: blast-ring .34s ease-out forwards; }
.blast i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ffe6b8; box-shadow: 0 0 7px var(--ember); animation: blast-pellet .4s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes blast-core { 0% { opacity: 1; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes blast-ring { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(3.7); } }
@keyframes blast-pellet { 0% { opacity: 1; transform: rotate(var(--a)) translateX(4px); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)); } }
.t-hole { position: absolute; z-index: 2; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #000 0 46%, #2a0805 58%, rgba(255, 122, 26, .75) 66%, transparent 76%); animation: hole-fade 1.5s ease-in forwards; }
@keyframes hole-fade { 0%, 62% { opacity: 1; } 100% { opacity: 0; } }
.kick .wrap { animation: kick .13s ease-out; }
@keyframes kick { 0% { transform: translate(0, 0); } 30% { transform: translate(-2px, 4px); } 100% { transform: none; } }

@media (max-width: 760px) {
  :root { --gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .tile { --arch: calc(25vw - 10px); }
  .t-media { height: 92px; margin: 6px 6px 0; }
  .t-title { font-size: 23px; }
  .t-desc { font-size: 14.5px; }
  .t-body { padding: 7px 8px 12px; }
  .t-ico { width: 40px; height: 40px; }
  .t-where { display: none; }
  .fav, .edit { top: 66px; width: 30px; height: 30px; }
  .fav { right: 9px; }
  .edit { left: 9px; }
  .favs .grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .favs .tile { --arch: calc(25vw - 10px); }
  .favs .t-media { height: 104px; }
  .favs .fav, .favs .edit { top: 78px; }
  .favs .t-title { font-size: 25px; }
  .dsec h2 { font-size: 26px; }
  .hero { min-height: calc(47vh - 22px); padding-bottom: 30px; justify-content: flex-start; padding-top: 12px; }
  .launcher .title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .24em; max-width: 100%; font-size: min(15.5vw, 9vh); }
  .launcher .title .row { margin-bottom: 0; padding-right: 0; }
  .hero .stats { text-shadow: 0 1px 3px #050208, 0 0 10px #050208; }
  .launcher .title .small { font-size: 1em; }
  .launcher .title .small > span { background: none; }
  .top-mark span { display: none; }
  .orgbar { flex-wrap: nowrap; }
  .orgbar:has(.bytoggle) { flex-wrap: wrap; }
  .bytoggle { order: 1; }
  .catwrap { order: 2; flex: 1 1 0; }
  .catsearch { order: 3; margin-left: 0; }
  .orgbar:has(.bytoggle) .catsearch { order: 2; margin-left: auto; }
  .orgbar:has(.bytoggle) .catwrap { order: 3; flex: 1 0 100%; }
  .catmore { position: static; }
  .catmenu { left: 0; right: 0; }
  .cat, :root[data-view="list"] .cat.one { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .cat.one { flex: 0 1 calc(50% - var(--gap) / 2); max-width: calc(50% - var(--gap) / 2); }
  .cat.one .grid { grid-template-columns: minmax(0, 1fr); }
  .cat.one .tile { --arch: calc(25vw - 10px); }
  :root[data-view="list"] .dom .grid { grid-template-columns: minmax(0, 1fr); }
  .bp-groups, .bp-list, .bp-group:not(.wide) .bp-list { grid-template-columns: minmax(0, 1fr); }
  .viewtoggle button { padding: 0 9px; }
}
@media (max-width: 460px) {
  .top nav { gap: 4px; }
  .top .viewtoggle button { gap: 0; padding: 0 9px; font-size: 0; }
  .top .iconbtn { width: 33px; }
  .hero .stats { width: fit-content; max-width: 100%; padding: 3px 8px; margin-left: -8px; background: rgba(8, 4, 8, .62); border-radius: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .arriving #arrive { display: none; }
}
