/* =========================================================================
   Tell Tale — /explore/
   A full-bleed city at dusk (OSM tiles pushed through an 80s filter),
   cassette markers, and a charcoal panel of cream J-card rows.
   ========================================================================= */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e9e4da;
  background: #17141f;
  font-family: "Courier Prime", ui-monospace, Menlo, monospace;
}
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--tt-amber); outline-offset: 3px; }

.ex { position: relative; flex: 1; min-height: 0; }

/* --- the map at dusk ------------------------------------------------------ */
.ex-map-wrap { position: absolute; inset: 0; z-index: 0; }
.ex-map { width: 100%; height: 100%; background: #1d1733; }
.ex-tiles {
  /* OSM's daylight palette, inverted and pushed into violet + magenta */
  filter: url(#tt-dusk);
}
.ex-dusk {
  position: absolute;
  inset: 0;
  z-index: 401;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(255, 110, 70, 0.28), transparent 60%),
    radial-gradient(90% 60% at 80% -10%, rgba(255, 80, 190, 0.22), transparent 60%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(10, 6, 24, 0.55) 100%);
  mix-blend-mode: screen;
}
.ex-dusk::after { /* a faint CRT scanline, the way the map would look on a 1984 kiosk */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.ex-map-fallback {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  max-width: 260px;
  font-family: VT323, monospace;
  font-size: 18px;
  color: var(--tt-amber);
}
.no-map .ex-map { background: radial-gradient(80% 60% at 60% 30%, #3b2a5c, #17141f); }

.leaflet-container { font-family: "Courier Prime", monospace; background: #1d1733; }
.leaflet-control-zoom.leaflet-bar { border: 0; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); border-radius: 10px; overflow: hidden; }
.leaflet-control-zoom a, .leaflet-control-zoom a:hover {
  width: 40px; height: 40px; line-height: 38px;
  background: linear-gradient(180deg, #3c3e44, #26282c);
  color: #e9e4da; border-bottom: 1px solid #141518;
}
.leaflet-control-attribution.leaflet-control {
  background: rgba(20, 16, 30, 0.7); color: #9a90b0; font-size: 10px; border-radius: 0 0 0 6px;
}
.leaflet-control-attribution a { color: #c9b8ff; }
.leaflet-bottom.leaflet-right { margin-bottom: env(safe-area-inset-bottom); }

/* cassette markers */
.mk-wrap { background: none; border: 0; }
.mk {
  position: relative;
  display: block;
  width: 48px;
  height: 32px;
  transition: transform 0.25s cubic-bezier(.3,1.5,.5,1);
  transform-origin: 50% 100%;
}
.mk svg { display: block; width: 48px; height: 32px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px color-mix(in srgb, var(--c) 55%, transparent)); }
.mk-wrap.is-hover .mk, .mk-wrap:hover .mk, .mk-wrap:focus-visible .mk { transform: translateY(-3px) scale(1.12); }
.mk.is-sel { transform: scale(1.32); }
.mk-pulse {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 26px;
  height: 10px;
  margin-left: -13px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 70%, transparent);
  filter: blur(2px);
  opacity: 0.55;
  z-index: -1;
}
.mk.is-sel .mk-pulse { animation: mk-pulse 1.8s ease-out infinite; }
@keyframes mk-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

.stop-wrap { background: none; border: 0; }
.stop {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2.5px #fff4dc, 0 0 14px color-mix(in srgb, var(--c) 80%, transparent), 0 3px 6px rgba(0, 0, 0, 0.6);
}
.stop b { font-family: Michroma, sans-serif; font-weight: 400; font-size: 10px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); }
.stop-start {
  position: absolute;
  left: 50%;
  top: 33px;
  transform: translateX(-50%);
  padding: 2px 6px 1px;
  border-radius: 3px;
  background: #16121f;
  font-family: Michroma, sans-serif;
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: var(--tt-amber);
  white-space: nowrap;
}
.me-wrap { background: none; border: 0; }
.me {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #e9ffff 0 3px, var(--tt-cyan) 4px 7px, transparent 7.5px);
}
.me i { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--tt-cyan); animation: me-ping 2s ease-out infinite; }
@keyframes me-ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.leaflet-tooltip.mk-tip {
  background: #16121f;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  color: var(--tt-paper);
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 9px 5px;
}
.leaflet-tooltip-top.mk-tip::before { border-top-color: #16121f; }

/* --- the panel ---------------------------------------------------------- */
.ex-panel {
  position: absolute;
  z-index: 500;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a4c52 transparent;
  background:
    var(--tt-noise),
    linear-gradient(180deg, #2e3035 0%, #25272b 30%, #1f2024 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px #0d0e10;
}
.ex-view { padding: 6px 18px 22px; }
.ex-view[hidden] { display: none; }

@media (min-width: 900px) {
  .ex-panel { top: 18px; left: 18px; bottom: 18px; width: 420px; border-radius: 22px; }
  .ex-grip { display: none; }
  .ex-view { padding: 20px 22px 26px; }
}
@media (max-width: 899px) {
  .ex-panel {
    left: 0;
    right: 0;
    bottom: 0;
    height: 56%;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transition: height 0.38s cubic-bezier(.3,1.1,.4,1);
  }
  .ex-panel[data-sheet="peek"] { height: 178px; overflow: hidden; }
  .ex-panel[data-sheet="half"] { height: 56%; }
  .ex-panel[data-sheet="full"] { height: calc(100% - 8px); }
  .ex-panel.is-dragging { transition: none; }
  .ex-view { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
.ex-grip {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  height: 30px;
  border: 0;
  background: linear-gradient(180deg, #2e3035 60%, rgba(46, 48, 53, 0));
  cursor: grab;
  touch-action: none;
}
@media (min-width: 900px) { .ex-grip { display: none; } }
.ex-grip span { width: 44px; height: 5px; border-radius: 3px; background: #5b5d64; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5); }

.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.ex-kicker {
  margin: 0;
  font-family: Michroma, sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--tt-putty);
}
.ex-count {
  font-family: VT323, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 10px 3px;
  border-radius: 6px;
  color: var(--tt-amber);
  text-shadow: 0 0 6px rgba(255, 160, 50, 0.6);
  background: linear-gradient(180deg, #0d0a06, #16110a);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ex-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 2px 18px 4px;
}
.ex-chips::-webkit-scrollbar { display: none; }
.ex-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #484a51;
  background: linear-gradient(180deg, #383a40, #2a2c31);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 #0d0e10;
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tt-putty);
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.ex-chip:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.ex-chip[aria-pressed="true"] {
  border-color: #c98a2c;
  background: linear-gradient(180deg, #ffcf85, var(--tt-amber));
  color: #22170a;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 0 14px rgba(255, 184, 77, 0.35);
}
.ex-chip--near { border-color: #2c7f84; }
.ex-chip--near .ex-chip-ico { color: var(--tt-cyan); font-size: 12px; }
.ex-chip--near[aria-pressed="true"] { background: linear-gradient(180deg, #6fe0e5, var(--tt-cyan)); border-color: #1f8f95; box-shadow: 0 0 14px rgba(47, 181, 188, 0.45); }
.ex-chip--near[aria-pressed="true"] .ex-chip-ico { color: #0c3437; }
.ex-chip.is-busy .ex-chip-ico { animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.ex-lede {
  margin: 12px 0 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #b9b2a3;
}
.ex-note {
  margin: -4px 0 14px;
  padding: 8px 11px 7px;
  border-radius: 8px;
  font-family: VT323, monospace;
  font-size: 18px;
  line-height: 1.15;
  color: #7ff2f7;
  background: rgba(47, 181, 188, 0.1);
  box-shadow: inset 0 0 0 1px rgba(47, 181, 188, 0.3);
}

.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ex-list > li { animation: row-in 0.45s cubic-bezier(.3,1.2,.5,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
.ex-empty { padding: 18px 4px; color: #a9a294; font-size: 0.9rem; }

.ex-row {
  --c: #3EC9B8;
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 12px 12px 18px;
  border: 0;
  border-radius: 5px;
  text-align: left;
  color: var(--tt-ink);
  background: var(--tt-noise), linear-gradient(180deg, #f6eedd, #eadfc6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 22px -12px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.3,1.4,.5,1), box-shadow 0.2s;
}
.ex-row::before { /* the J-card spine in the tape's colour */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  border-radius: 5px 0 0 5px;
  background: var(--c);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.18);
}
@media (hover: hover) {
  .ex-row:hover { transform: translateY(-2px) rotate(-0.3deg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 28px -12px rgba(0, 0, 0, 0.9), 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
  .ex-row:hover .ex-row-tape { transform: rotate(-1deg) translateY(-2px); }
}
.ex-row:active { transform: translateY(1px); }
.ex-row-tape { display: block; transform: rotate(-3.5deg); transition: transform 0.25s cubic-bezier(.3,1.4,.5,1); }
.ex-row-body { display: grid; gap: 3px; min-width: 0; }
.ex-row-title {
  font-family: "Permanent Marker", cursive;
  font-size: 1.18rem;
  line-height: 1.08;
}
.ex-row-place { font-size: 0.78rem; color: #6a6252; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.ex-row-lcd {
  font-family: VT323, monospace;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  padding: 3px 6px 2px;
  border-radius: 3px;
  color: var(--tt-amber);
  background: #17120b;
  text-shadow: 0 0 5px rgba(255, 160, 50, 0.5);
}
.ex-row-dist {
  font-family: Michroma, sans-serif;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0e6c71;
}
.ex-row-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; min-width: 0; }
.ex-row-badges .k-seal b { white-space: normal; }
.ex-row-saved {
  font-family: Michroma, sans-serif;
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: #a9361f;
  align-self: center;
}
.ex-foot { margin: 20px 0 0; font-size: 0.82rem; color: #8d8678; }
.ex-foot a { color: var(--tt-amber); }

@media (max-width: 420px) {
  .ex-row { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; padding-left: 15px; }
  .ex-row-title { font-size: 1.06rem; }
}

/* --- the tape detail ------------------------------------------------------ */
.ex-detail { --c: #3EC9B8; }
.ex-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid #45474e;
  border-radius: 999px;
  background: #222327;
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tt-putty);
  cursor: pointer;
}
.ex-back:hover { border-color: var(--tt-amber); }

.d-tape {
  --c: #3EC9B8;
  width: min(330px, 86%);
  margin: 18px auto 18px;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 22px 26px color-mix(in srgb, var(--c) 40%, transparent));
  animation: tape-in 0.6s cubic-bezier(.3,1.4,.5,1) both;
}
@keyframes tape-in { from { opacity: 0; transform: translateY(24px) rotate(4deg) scale(0.92); } }
.d-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 14px; }
.d-title {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: 2.05rem;
  line-height: 1.02;
  color: var(--tt-paper);
  transform: rotate(-1deg);
}
.d-place { margin: 6px 0 0; font-size: 0.86rem; color: #a9a294; }
.d-syn { margin: 12px 0 16px; font-size: 0.95rem; line-height: 1.55; color: #ddd6c8; }

.d-lcd {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 16px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 184, 77, 0.12);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.07);
}
.d-lcd > div.wide { grid-column: span 2; }
.d-lcd > div.wide:last-child { grid-column: span 3; }
.d-lcd > div { padding: 8px 10px 7px; background: linear-gradient(180deg, #0d0a06, #16110a); }
.d-lcd dt { font-family: Michroma, sans-serif; font-size: 6px; letter-spacing: 0.18em; color: rgba(255, 184, 77, 0.55); }
.d-lcd dd { margin: 2px 0 0; font-family: VT323, monospace; font-size: 23px; line-height: 1; letter-spacing: 0.04em; color: var(--tt-amber); text-shadow: 0 0 6px rgba(255, 160, 50, 0.6); white-space: nowrap; }

.d-actions { display: grid; gap: 9px; }
.d-key {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 6px 14px 6px 8px;
  border: 0;
  border-radius: 9px;
  text-align: left;
  text-decoration: none;
  font-family: Michroma, sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #ece6d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #3c3e44 0%, #2b2d32 60%, #222327 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 0 #0b0c0e, 0 8px 14px -6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.07s, box-shadow 0.07s;
}
.d-key:active, .d-key.is-on { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #0b0c0e; }
.d-key:disabled { opacity: 0.6; cursor: default; }
.d-key[hidden] { display: none; }
.d-key-cap {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--tt-amber);
  background: #17181b;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.d-key--play {
  color: #22170a;
  background: linear-gradient(180deg, #ffd796 0%, var(--tt-amber) 55%, #f0a43a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #8a5a17, 0 10px 20px -6px rgba(255, 160, 50, 0.45);
  font-size: 9.5px;
}
.d-key--play:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #8a5a17; }
.d-key--play .d-key-cap { color: var(--tt-amber); }
.d-key.is-on .d-key-cap { color: #ff6a4d; text-shadow: 0 0 8px #ff6a4d; animation: blink 1.1s steps(1) infinite; }
#d-save.is-on .d-key-cap { color: var(--tt-amber); animation: none; text-shadow: 0 0 8px rgba(255, 184, 77, 0.8); }
.d-key--god { background: linear-gradient(120deg, #d6d9df 0%, #f3f4f6 28%, #bcc1c9 52%, #eceef1 76%, #c8ccd3 100%); color: #1b1530; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 0 #3e2f63, 0 0 22px rgba(170, 130, 255, 0.35); }
.d-key--god > span { position: relative; z-index: 3; }
.d-key--god .d-key-cap { color: #c7a8ff; background: #1b1530; }
.d-msg { min-height: 1.2em; margin: 10px 2px 0; font-size: 0.86rem; color: #c7c0b1; }
.d-msg a { color: var(--tt-amber); }

.d-sec { margin-top: 26px; }
.d-sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: Michroma, sans-serif;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tt-amber);
}
.d-sec h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 184, 77, 0.35), transparent); }
.d-magic {
  padding: 14px 15px 15px;
  border-radius: 10px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), #1b1c20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.d-magic h3 { color: #f3ead7; }
.d-magic p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #d4cdbf; }

.d-tellers { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.d-teller { display: grid; gap: 2px; align-content: start; }
.d-pol {
  position: relative;
  margin: 0 0 6px;
  padding: 6px 6px 16px;
  background: #fbf8f1;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--r, -2deg));
}
.d-pol-img { display: block; aspect-ratio: 1; background: #2a2b30; overflow: hidden; }
.d-pol-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05) sepia(0.14); }
.d-pol-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 42px;
  height: 14px;
  transform: translateX(-50%) rotate(4deg);
  background: rgba(236, 226, 196, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.d-t-part { font-family: Michroma, sans-serif; font-size: 6.5px; letter-spacing: 0.18em; color: #8f887a; }
.d-t-name { font-family: "Permanent Marker", cursive; font-size: 1.05rem; line-height: 1.05; color: var(--tt-paper); }
.d-t-stop { font-size: 0.8rem; color: #b5ae9f; }
.d-t-rec {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 6px 1px;
  border: 1.5px solid #e2604a;
  border-radius: 3px;
  font-family: Michroma, sans-serif;
  font-size: 6px;
  letter-spacing: 0.1em;
  color: #e2604a;
  transform: rotate(-2deg);
}

.d-stk-pitch, .d-stk-count { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.5; color: #c7c0b1; }
.d-stk-pitch a { color: var(--tt-amber); }
.d-stk-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.d-stk-empty {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(220, 212, 195, 0.3);
  text-align: center;
  padding: 8px;
}
.d-stk-empty b { font-family: Michroma, sans-serif; font-weight: 400; font-size: 13px; color: rgba(220, 212, 195, 0.35); }
.d-stk-empty span { font-size: 0.6rem; line-height: 1.2; color: rgba(220, 212, 195, 0.45); }
.d-stk-link { display: inline-block; margin-top: 14px; font-family: Michroma, sans-serif; font-size: 8px; letter-spacing: 0.16em; color: var(--tt-amber); text-decoration: none; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .ex-list > li, .d-tape { animation: none; }
  .mk.is-sel .mk-pulse, .me i, .d-key.is-on .d-key-cap { animation: none; }
  .ex-panel { transition: none; }
}
