/* Single-tool download page (no skull pane). Same matrix palette as styles.css. */

:root {
  color-scheme: dark;
  --bg: #050605;
  --text: #8dff9a;
  --muted: #3f8f55;
  --line: #1a3a22;
  --accent: #c6ff6a;
  --detail: #080a08;
  --glow: 0 0 10px rgba(0, 255, 70, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif;
}

.page {
  width: min(42rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 0 1.5rem;
}

header {
  padding: 0 0 0.1rem;
}

h1 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.fine {
  margin: 0 0 12px;
  font-size: 12px;
}

.fine a {
  color: var(--muted);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

#detail {
  margin-top: 0.75rem;
  background: var(--detail);
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem 0.9rem;
}

#detail h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.shot-btn {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0;
  border: 1px solid #142016;
  background: #050805;
  cursor: zoom-in;
}

.shot-btn:hover {
  border-color: #2d6b3a;
  box-shadow: var(--glow);
}

.shot-btn:focus-visible {
  outline: 1px solid #00ff41;
  outline-offset: 2px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  pointer-events: none;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 3, 0.92);
}

.shot-lightbox[hidden] {
  display: none;
}

body.shot-lightbox-open {
  overflow: hidden;
}

.shot-lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border: 1px solid #00ff41;
  box-shadow: var(--glow);
}

.shot-lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 1001;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #00ff41;
  background: #071207;
  color: var(--accent);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--glow);
}

.shot-lightbox-close:hover {
  background: #102010;
  color: #f3ffe8;
}

.download-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.version {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-version {
  margin: 0.35rem 0 0;
  font: 10px/1.2 Consolas, monospace;
  color: rgba(63, 143, 85, 0.55);
  letter-spacing: 0.06em;
}

#detail p {
  margin: 0.55rem 0 0;
}

.download {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid #00ff41;
  background: #071207;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--glow);
}

.download:hover {
  background: #102010;
  color: #f3ffe8;
}

.download:disabled {
  background: #121212;
  border-color: #2a2a2a;
  color: #6a6a6a;
  box-shadow: none;
  cursor: not-allowed;
}

:focus-visible {
  outline: 1px solid #00ff41;
  outline-offset: 2px;
}
