.tools-footer { display: none !important; }

#infoToggle {
  position: absolute;
  bottom: 6.2vh;
  left: calc(4vw + 64px);
  z-index: 25;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  padding: 7px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink, #0a0812);
  border-radius: 6px;
  background: #67d7e8;
  color: var(--ink, #0a0812);
  box-shadow: 4px 4px 0 var(--ink, #0a0812);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
#infoToggle:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink, #0a0812); }
#infoToggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#infoToggle svg { width: 29px; height: 29px; overflow: visible; }
#infoToggle .info-disc { fill: #fff4bb; stroke: currentColor; stroke-width: 2.7; }
#infoToggle .info-mark { fill: none; stroke: #246bce; stroke-width: 3.1; stroke-linecap: round; }

.story-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 7, 14, .78);
  backdrop-filter: blur(8px);
}
.story-info-modal[hidden] { display: none; }
.story-info-card {
  --modal-ink: #15121d;
  position: relative;
  width: min(690px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 28px clamp(20px, 5vw, 42px) 32px;
  color: var(--modal-ink);
  background: #fff4ce;
  border: 5px solid var(--modal-ink);
  border-radius: 13px 25px 16px 10px;
  box-shadow: 12px 12px 0 var(--modal-ink), inset 0 0 35px rgba(167, 111, 32, .16);
  font-family: "Nunito", sans-serif;
  transform: rotate(-.25deg);
}
.story-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .1;
  background-image: radial-gradient(#15121d 1px, transparent 1px);
  background-size: 7px 7px;
}
.story-info-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  margin: -14px -24px 0 12px;
  border: 3px solid var(--modal-ink);
  border-radius: 50%;
  background: #ef4b3f;
  color: #fff;
  box-shadow: 3px 3px 0 var(--modal-ink);
  font: 900 24px/1 "Nunito", sans-serif;
  cursor: pointer;
}
.story-info-kicker { display: inline-block; padding: 4px 9px; color: #fff; background: #e84036; border: 3px solid var(--modal-ink); font: 9px "Press Start 2P", monospace; }
.story-info-card h2 { margin: 10px 0 2px; font: 42px/1 "Bangers", sans-serif; letter-spacing: 1px; }
.story-info-lead { margin: 0 0 22px; font-weight: 900; color: #7a2a21; }
.story-info-card h3 { margin: 20px 0 7px; padding-bottom: 4px; border-bottom: 3px solid var(--modal-ink); font: 25px/1 "Bangers", sans-serif; letter-spacing: .6px; }
.story-info-card p { margin: 7px 0; line-height: 1.45; }
.story-info-card a { color: #064fa4; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story-info-links { display: flex; flex-wrap: wrap; gap: 9px; }
.story-info-links a { padding: 8px 11px; color: var(--modal-ink); background: #ffd64a; border: 3px solid var(--modal-ink); border-radius: 5px; box-shadow: 3px 3px 0 var(--modal-ink); text-decoration: none; }
.story-info-libraries { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; padding: 0; list-style: none; }
.story-info-libraries li { padding: 5px 9px; background: #fff; border: 2px solid var(--modal-ink); border-radius: 99px; font: 700 12px "Space Mono", monospace; }
.story-info-small { font-size: 12px; opacity: .76; }

@media (max-width: 640px) {
  #infoToggle { left: 74px; bottom: 14px; width: 48px; height: 48px; }
  .story-info-modal { padding: 12px; }
  .story-info-card { width: calc(100vw - 24px); max-height: 88vh; padding: 22px 18px 26px; box-shadow: 7px 7px 0 var(--modal-ink); }
  .story-info-close { margin: -10px -9px 0 8px; }
  .story-info-card h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { #infoToggle { transition: none; } }
