/* ============================================================
   CSA SHARED THEME — hacker / phosphor green Reveal.js theme
   Shared by all presentations in the Decks/CSA/ folder and its subfolders.

   ARCHITECTURE:
   1. Explicit Reveal.js theme rules    → colours, fonts applied via CSS
   2. Custom CSS variables (--*)        → palette + sizing tokens
   3. Reveal.js structural overrides    → layout adjustments
   4. Component styles                  → code cards, array diagrams etc.
   5. Slide animations                  → YES!/NO keyframe definitions
   6. Fragment overrides                → custom fade-up easing
   7. Storyboard strip                  → SyncDeck thumbnail strip
   8. Reduced motion                    → accessibility
   ============================================================ */

  /* Force visible nav arrows on custom dark theme */
  .reveal .controls {
    color: #00ff41;   /* or #fff */
    z-index: 30;
  }
  .reveal .controls .enabled {
    opacity: 0.95;
  }

/* ─── 1. Explicit Reveal.js theme application ─────────────────────
   NOTE: --r-* CSS custom properties are only consumed by Reveal's
   bundled theme CSS files. Since we load reveal.css alone (no theme),
   we must apply our colours/fonts with explicit CSS rules instead.
   ─────────────────────────────────────────────────────────────── */

/* Background: .reveal-viewport is the class Reveal adds to <body> */
body,
.reveal-viewport {
  background: #07100a;
  background-color: #07100a;
}

.reveal {
  background: transparent;
  color: #ddeeff;
  font-family: 'JetBrains Mono', monospace;
}

/* Headings */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  color: #ddeeff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0em;
  line-height: 1.15;
  text-transform: none;
  margin: 0;
}

/* Body text */
.reveal p,
.reveal li,
.reveal blockquote {
  color: rgba(221,238,255,0.55);
  font-family: 'JetBrains Mono', monospace;
}

/* Inline code */
.reveal :not(pre) > code {
  font-family: 'JetBrains Mono', monospace;
  color: #00ff41;
  background: rgba(0,255,65,0.07);
  padding: 0.1em 0.38em;
  border-radius: 2px;
  border: 1px solid rgba(0,255,65,0.25);
}

/* Links */
.reveal a { color: #00ff41; }
.reveal a:hover { color: rgba(0,255,65,0.7); }

/* Selection */
.reveal ::selection {
  background: rgba(0,255,65,0.2);
  color: #fff;
}

/* ─── 2. Custom design tokens ─────────────────────────────────────── */
:root {
  /* Palette */
  --phosphor:          #00ff41;
  --phosphor-dim:      rgba(0,255,65,0.5);
  --phosphor-glow:     rgba(0,255,65,0.15);
  --phosphor-border:   rgba(0,255,65,0.2);
  --amber:        #ffe033;
  --amber-dim:    rgba(255,224,51,0.5);
  --amber-glow:   rgba(255,224,51,0.12);
  --gold:          #ff9500;
  --green:         #4dffb4;
  --red:           #ff4d6a;
  --bg:            #07100a;
  --bg-card:       #0b1a0e;
  --text:          #ddeeff;
  --text-muted:    rgba(221,238,255,0.55);
  --text-dim:      rgba(221,238,255,0.42);

  /* Fonts */
  --font-ui:   'JetBrains Mono', monospace;
  --font-mono: 'JetBrains Mono', monospace;

  /* Typography — px sized for the 1600×900 slide canvas.
     Reveal.js scales the entire .slides container via CSS transform
     so px values scale proportionally on all viewport sizes.
     Reveal.js JS sets font-size on .reveal as floor(viewportHeight*0.04)
     (~28px at 720px tall), then scales slides by e.g. 0.8 at 1280px wide —
     double-shrinking em values. Using px bypasses this entirely. */
  --title:  100px;    /* visual ~80px at 1280×720 — title slide  */
  --h2:      56px;    /* visual ~45px — section headings         */
  --h3:      36px;    /* visual ~29px — sub-headings             */
  --body:    25px;    /* visual ~20px — paragraph text           */
  --small:   19px;    /* visual ~15px — captions / annotations   */
  --code:    21px;    /* visual ~17px — code blocks              */
  --tag:     15px;    /* visual ~12px — slide labels             */

  /* Spacing — px so everything scales with Reveal's transform */
  --pad:     72px;    /* slide inner padding  */
  --gap:     26px;    /* between content items */
  --gap-sm:  13px;    /* tight gaps           */
  --gap-lg:  52px;    /* section gaps         */

  /* Animation easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 3. Reveal.js structural overrides ──────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Persistent grid texture on body */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Each section = full configured slide height.
   DO NOT set position here — Reveal.js sets position: absolute on sections
   so it can layer, fade, and transition slides. Overriding that with
   position: relative breaks the fade transition (slides go blank after #1).
   Glow divs (position: absolute) are already scoped to the section because
   an absolutely-positioned element is its own positioning context. */
.reveal .slides > section {
  height: 100%;
  padding: 0 !important;  /* override Reveal's default padding: 20px 0 */
  box-sizing: border-box;
  text-align: left;
}

/* Slide inner wrapper — centres content vertically, applies padding */
.slide-inner {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Title/impact slides: centre both axes */
.slide-center { align-items: center; text-align: center; }

/* Reveal progress bar — styled to theme */
.reveal .progress {
  height: 3px;
}
.reveal .progress span {
  background: linear-gradient(90deg, var(--phosphor), var(--amber));
  box-shadow: 0 0 10px rgba(0,255,65,0.4);
}

/* Slide number */
.reveal .slide-number {
  font-family: var(--font-mono);
  font-size: 1em;
  background: transparent;
  color: var(--text-muted);
  bottom: 0.8em;
  right: 1.2em;
  padding: 0;
}

.reveal .slide-number a,
.reveal .slide-number a:hover,
.reveal .slide-number a:focus {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* ─── 4. Typography sizing ─────────────────────────────────────────
   Colours are set in section 1 above. These rules handle font sizes,
   spacing, and Reveal.js resets (box-shadow on pre, etc.).
   ─────────────────────────────────────────────────────────────── */

.reveal h2 {
  font-size: var(--h2);
  margin-bottom: var(--gap);
}

.reveal p {
  font-size: var(--body);
  line-height: 1.65;
  margin: 0;
}

/* Reset Reveal.js defaults on <pre> */
.reveal pre {
  font-family: var(--font-mono);
  font-size: var(--code);
  line-height: 1.8;
  color: rgba(221,238,255,0.82);
  white-space: pre;
  overflow: hidden;
  margin: 0;
  box-shadow: none;  /* Reveal adds a drop-shadow by default */
  width: auto;       /* Reveal sets width: 90% by default */
  text-align: left;
}

/* Reset Reveal.js <code> defaults (the :not(pre) rule in §1 handles chips) */
.reveal pre code {
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  max-height: none; /* Reveal sets max-height: 400px */
}

/* Tighter line-height inside cards — global pre uses 1.8 which
   makes multi-line blocks too tall when other content shares the slide */
.code-card .code-body pre {
  line-height: 1.5;
}

/* Indentation guides for code cards */
.code-card .code-body pre {
  background-image:
    linear-gradient(rgba(0,255,65,0.18), rgba(0,255,65,0.18)),
    linear-gradient(rgba(0,255,65,0.16), rgba(0,255,65,0.16)),
    linear-gradient(rgba(0,255,65,0.14), rgba(0,255,65,0.14)),
    linear-gradient(rgba(0,255,65,0.12), rgba(0,255,65,0.12)),
    linear-gradient(rgba(0,255,65,0.10), rgba(0,255,65,0.10)),
    linear-gradient(rgba(0,255,65,0.08), rgba(0,255,65,0.08)),
    linear-gradient(rgba(0,255,65,0.07), rgba(0,255,65,0.07));
  background-repeat: no-repeat;
  background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%;
  background-position: 0.1ch 0, 2ch 0, 4ch 0, 6ch 0, 8ch 0, 10ch 0, 12ch 0;
}

/* ─── 5. Layout utilities ──────────────────────────────────────────── */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  width: 100%;
}
.split-50 { grid-template-columns: 1fr 1fr; }
.split-40 { grid-template-columns: 2fr 3fr; }
.split-60 { grid-template-columns: 3fr 2fr; }
.split-top { align-items: start; }

/* ─── 6. Slide label ("▸ REVIEW") ─────────────────────────────────── */

.slide-tag {
  font-size: var(--tag);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-bottom: var(--gap);
  display: block;
}
.slide-tag::before { content: '▸ '; color: var(--amber); }

/* Title slide heading */
.title-h1 {
  font-size: var(--title);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0em;
  font-family: var(--font-mono);
  color: var(--text);
  margin: 0;
}

/* ─── 7. Bullet lists ──────────────────────────────────────────────── */

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.bullets li {
  position: relative;
  padding-left: 1.2em;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--text-muted);
}
.bullets li::before {
  content: '○';
  color: var(--phosphor);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-size: 0.75em;
}
.bullets li strong { color: var(--text); font-weight: 600; }

/* ─── 8. Code blocks ───────────────────────────────────────────────── */

.code-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,255,65,0.4);
  overflow: hidden;
}
.code-card.accent { border-color: rgba(0,255,65,0.7); }

.code-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.35em 1em;
  background: rgba(0,255,65,0.14);
  border-bottom: 1px solid rgba(0,255,65,0.4);
}
.cdot { display: none; }
.clang {
  font-family: var(--font-mono);
  font-size: var(--tag);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-left: 0;
}
.clang::before { content: '[ '; }
.clang::after  { content: ' ]'; }
.code-body {
  padding: 0.6em 1em;
  overflow: hidden;
}

/* Java syntax highlight colours */
.kw { color: var(--phosphor);   font-weight: 500; }
.tp { color: var(--amber); }
.nm { color: var(--gold);   }
.cm { color: rgba(221,238,255,0.6); font-style: italic; }

/* ─── 9. Array / memory visualizations ────────────────────────────── */

.var-name {
  font-family: var(--font-mono);
  font-size: var(--code);
  font-weight: 700;
  color: var(--gold);
  padding: 0.2em 0.55em;
  background: rgba(255,149,0,0.08);
  border: 1px solid rgba(255,149,0,0.28);
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}

.arr-arrow { color: var(--phosphor-dim); font-size: var(--h3); }

.type-ann {
  font-family: var(--font-mono);
  font-size: var(--small);
  color: var(--text-dim);
  align-self: center;
  margin-left: 0.5em;
}

/* 1D array — merged-border row of cells */
.arr-1d { display: flex; align-items: stretch; }
.arr-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  aspect-ratio: 1;
  font-family: var(--font-mono);
  font-size: var(--code);
  font-weight: 500;
  color: var(--text);
  background: rgba(0,255,65,0.05);
  border: 1px solid var(--phosphor-border);
  border-right: none;
}
.arr-cell:last-child { border-right: 1px solid var(--phosphor-border); }

/* Highlight variants */
.hl-c { background: rgba(0,255,65,0.18);   color: var(--phosphor);   border-color: var(--phosphor);   font-weight: 700; border-right: 1px solid var(--phosphor); }
.hl-p { background: rgba(255,224,51,0.18); color: var(--amber); border-color: var(--amber); font-weight: 700; border-right: 1px solid var(--amber); }
.hl-g { background: rgba(255,149,0,0.18);   color: var(--gold);   border-color: rgba(255,149,0,0.6); font-weight: 700; border-right: 1px solid rgba(255,149,0,0.6); }
.hl-n { background: rgba(77,255,180,0.18);  color: var(--green);  border-color: rgba(77,255,180,0.5); font-weight: 700; border-right: 1px solid rgba(77,255,180,0.5); }

/* 2D array — grid with per-cell borders */
.arr-2d { display: flex; flex-direction: column; gap: 3px; }
.arr-row { display: flex; align-items: center; }
.arr-2d .arr-cell { border-right: 1px solid var(--phosphor-border); }

/* Row label ("arr[0]", "r0", etc.) */
.row-lbl {
  font-family: var(--font-mono);
  font-size: var(--small);
  color: var(--amber);
  font-weight: 700;
  width: 4.5em;
  text-align: right;
  padding-right: 0.55em;
  flex-shrink: 0;
}

/* Info / callout cards */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--phosphor-border);
  border-left: 5px solid var(--phosphor-border);
  border-radius: 3px;
  padding: 0.8em 1em;
  font-size: var(--body);
}
.callout h3 { font-size: var(--h3); font-weight: 600; color: var(--phosphor); margin-bottom: var(--gap-sm); }
.callout.accent-p { border-color: rgba(255,224,51,0.35); }
.callout.accent-g { border-color: rgba(77,255,180,0.35); background: rgba(77,255,180,0.04); }
.callout.accent-r { border-color: rgba(255,77,106,0.35); background: rgba(255,77,106,0.04); }
.callout.accent-a { border-color: rgba(255,212,59,0.35); background: rgba(255,212,59,0.04); }

/* ─── 10. YES! slide animations ────────────────────────────────────── */

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 30px rgba(0,255,65,0.55), 0 0 80px rgba(0,255,65,0.2); }
  50%       { text-shadow: 0 0 55px rgba(0,255,65,0.85), 0 0 140px rgba(0,255,65,0.3); }
}
@keyframes ring-burst {
  from { transform: translate(-50%,-50%) scale(0.4); opacity: 0.9; }
  to   { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

.yes-text {
  font-size: 5em;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--phosphor);
  line-height: 1;
}
/* Trigger when slide becomes active */
.reveal section.present .yes-text {
  animation: glow-pulse 2.5s ease-in-out 0.5s infinite;
}

.yes-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 350px; height: 350px;
  border: 2px solid rgba(0,255,65,0.5);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}
.reveal section.present .yes-ring:not(.yes-ring-frag) {
  animation: ring-burst 1.4s var(--ease) 0.2s forwards;
}

/* For rings inside fragments: animate when fragment becomes visible */
.reveal .fragment .yes-ring-frag {
  animation: none;
}
.reveal .fragment.visible .yes-ring-frag {
  animation: ring-burst 1.4s var(--ease) 0.08s forwards;
}

/* No / X ring — red counterpart to yes-ring */
.no-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  border: 2px solid rgba(255,77,106,0.5);
}
.reveal .fragment .no-ring-frag { animation: none; }
.reveal .fragment.visible .no-ring-frag {
  animation: ring-burst 1.4s var(--ease) 0.08s forwards;
}

/* X stamp — the ✗ character scales + rotates in */
@keyframes x-stamp {
  0%   { transform: scale(0.25) rotate(-20deg); opacity: 0; }
  55%  { transform: scale(1.25) rotate(6deg);   opacity: 1; }
  80%  { transform: scale(0.92) rotate(-2deg);              }
  100% { transform: scale(1)    rotate(0deg);   opacity: 1; }
}
.x-stamp {
  display: inline-block;
  transform: scale(0.25) rotate(-20deg);
  opacity: 0;
}
.reveal .fragment.visible .x-stamp {
  animation: x-stamp 0.6s var(--ease) 0.05s both;
}

/* Checkmark wobble — bouncy settle */
@keyframes check-wobble {
  0%   { transform: scale(0.2) rotate(-12deg); opacity: 0; }
  40%  { transform: scale(1.3) rotate(10deg);  opacity: 1; }
  58%  { transform: scale(0.88) rotate(-6deg);             }
  72%  { transform: scale(1.12) rotate(4deg);              }
  86%  { transform: scale(0.96) rotate(-1deg);             }
  100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}
.check-wobble {
  display: inline-block;
  transform: scale(0.2) rotate(-12deg);
  opacity: 0;
}
.reveal .fragment.visible .check-wobble {
  animation: check-wobble 0.7s var(--ease) 0.05s both;
}

/* ─── 11. Fragment overrides ───────────────────────────────────────── */
/* Override Reveal's default fragment transition with our easing curve.
   Transition is placed on .visible so it only fires when a fragment is
   being revealed — not during slide entry, which avoids the brief flash
   where the first fragment appears visible as the slide fades in. */

.reveal .fragment {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}
.reveal .fragment.visible {
  opacity: 1 !important;
  visibility: inherit !important;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    filter 0.55s var(--ease) !important;
}
.reveal .fragment.fade-up {
  transform: translateY(22px);
}
.reveal .fragment.fade-up.visible {
  transform: translateY(0);
}

/* ─── 12. Storyboard strip ─────────────────────────────────────────── */

.storyboard {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  overflow: hidden;
  background: rgba(2,8,19,0.96);
  border-top: 1px solid var(--phosphor-border);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.35);
  z-index: 35;
  transition: height 0.28s var(--ease);
}

.storyboard-track {
  height: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
}

.story-thumb {
  min-width: 212px;
  max-width: 212px;
  height: 150px;
  border: 1px solid var(--phosphor-border);
  border-radius: 8px;
  background: rgba(8,17,32,0.9);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.story-thumb:hover {
  border-color: rgba(0,255,65,0.45);
  color: var(--text);
}

.story-thumb.active {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 1px rgba(0,255,65,0.35) inset;
  color: var(--text);
}

.story-thumb-locked {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255,224,51,0.45);
  background: rgba(10,14,28,0.92);
}

.story-lock-body {
  width: 192px;
  height: 108px;
  flex: 0 0 108px;
  border-radius: 6px;
  border: 1px dashed rgba(255,224,51,0.45);
  background: rgba(24,18,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-transform: uppercase;
}

.story-num {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(2,8,19,0.78);
  border: 1px solid var(--phosphor-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.story-preview {
  width: 192px;
  height: 108px;
  flex: 0 0 108px;
  border-radius: 6px;
  border: 1px solid rgba(0,255,65,0.2);
  overflow: hidden;
  background: #07100a;
}

.story-scene {
  width: 1600px;
  height: 900px;
  transform: scale(0.12);
  transform-origin: top left;
  pointer-events: none;
}

.story-scene .slides {
  position: static;
  width: 1600px;
  height: 900px;
  inset: auto;
  transform: none;
}

.story-scene .slides > section {
  position: relative;
  display: block;
  top: auto;
  left: auto;
  width: 1600px;
  height: 900px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.story-caption {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

body.storyboard-open .storyboard {
  height: 172px;
}

body.storyboard-open .reveal {
  padding-bottom: 172px;
}

/* ─── 13. Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal .fragment { transition: opacity 0.3s ease !important; }
  .reveal .fragment.fade-up { transform: none !important; }
  .reveal section.present .yes-text { animation: none; }
  .reveal section.present .yes-ring { animation: none; }
  .reveal .fragment.visible .no-ring-frag { animation: none; }
  .reveal .fragment.visible .x-stamp { animation: none; opacity: 1; transform: none; }
  .reveal .fragment.visible .check-wobble { animation: none; opacity: 1; transform: none; }
  .storyboard { transition: none; }
}

/* ─── 14. Body paragraph helpers ──────────────────────────────────── */

.p-body {
  font-size: 24px;
  line-height: 1.8;
  color: rgba(221,238,255,0.62);
  max-width: 940px;
  margin: 0;
}
.p-body + .p-body { margin-top: 0.9em; }
.p-body strong { color: rgba(221,238,255,0.88); font-weight: 700; }

.p-sm {
  font-size: 21px;
  line-height: 1.75;
  color: rgba(221,238,255,0.60);
  margin: 0;
}
.p-sm + .p-sm { margin-top: 0.7em; }
.p-sm strong { color: rgba(221,238,255,0.85); }

/* ─── 15. Hint / info note box ────────────────────────────────────── */

.hint-box {
  background: rgba(0,255,65,0.04);
  border: 1px solid rgba(0,255,65,0.18);
  border-left: 3px solid rgba(0,255,65,0.45);
  border-radius: 3px;
  padding: 0.55em 1em;
  font-size: 19px;
  color: rgba(221,238,255,0.5);
  line-height: 1.6;
}

/* ─── 16. Error callout ────────────────────────────────────────────── */

.err-box {
  background: rgba(255,77,106,0.06);
  border: 1px solid rgba(255,77,106,0.4);
  border-left: 3px solid var(--red);
  border-radius: 3px;
  padding: 0.65em 1em;
  font-size: var(--small);
  color: var(--red);
  line-height: 1.6;
}

/* ─── 17. Link card ────────────────────────────────────────────────── */

.link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 1.3em;
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.45);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--body);
  color: var(--phosphor);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.link-card:hover {
  background: rgba(0,255,65,0.15);
  border-color: var(--phosphor);
  color: var(--phosphor);
}
.link-card::before { content: '⬡ '; font-size: 0.85em; }

.link-card.amber {
  background: rgba(255,224,51,0.07);
  border-color: rgba(255,224,51,0.45);
  color: var(--amber);
}
.link-card.amber:hover {
  background: rgba(255,224,51,0.14);
  border-color: var(--amber);
  color: var(--amber);
}
.link-card.amber::before { content: '▶ '; }

