/* R-Team Generator — 80s action-file theme, ported from the Claude Design prototype */

:root {
  --bg-page: #17130f;
  --bg-panel: #211a12;
  --bg-card: #2b2318;
  --ink: #f3e9d8;
  --muted: #b6a88f;
  --red: #b3392b;
  --gold: #e8b04b;
  --tan: #7a6a4f;
  --card-border: #4a3d2c;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Barlow Condensed', sans-serif;
  --font-type: 'Special Elite', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: repeating-linear-gradient(0deg, #17130f 0px, #17130f 3px, #1a1611 3px, #1a1611 6px);
  font-family: var(--font-body);
  color: var(--ink);
  display: flex;
  justify-content: center;
}

/* The client mounts into #root; let .app be body's flex item directly so its
   width comes from the viewport, not from whichever step's content is widest. */
#root { display: contents; }

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg-panel);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slam-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--red);
  transform-origin: left;
  animation: barGrow .6s ease-out;
  z-index: 10;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.screen[hidden] { display: none; }

/* ── Top bar: Redkiwi attribution ───────────── */

.topbar {
  flex-shrink: 0;
  padding: calc(6px + env(safe-area-inset-top)) 20px 0; /* clears the slam bar */
  background: var(--bg-page);
  border-bottom: 1px solid var(--card-border);
  z-index: 5;
}

.topbar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--gold);
  outline: none;
}

.topbar__label {
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.topbar__logo {
  display: block;
  height: 18px;
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ─────────────────────────────── */

.kicker {
  margin: 4px 0 0;
  font-family: var(--font-type);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
}

.title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.title--result {
  font-size: 30px;
  line-height: 1.05;
  animation: slamIn .45s ease-out;
}

.sub {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.sub strong { font-weight: 700; }

.step-header { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 18px; }

/* ── The dossier backdrop (steps 1–3) ───────── */

/* Ruled personnel-file paper, lit from above like a desk lamp. Layers, top to
   bottom: paper grain, faint ruled lines, red margin line, lamp vignette, base.
   The loading screen keeps its own CRT treatment instead. */
.screen--dossier {
  position: relative;
  isolation: isolate;
  overflow-x: hidden; /* the stamp bleeds off the right edge on purpose */
  --rule: rgba(243, 233, 216, .045);
  --rule-gap: 28px;
  --margin-x: 14px;
  background-color: var(--bg-panel);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px var(--rule-gap)),
    linear-gradient(90deg, transparent var(--margin-x), rgba(179, 57, 43, .55) var(--margin-x), rgba(179, 57, 43, .55) calc(var(--margin-x) + 2px), transparent calc(var(--margin-x) + 2px)),
    radial-gradient(120% 70% at 50% 0%, rgba(232, 176, 75, .10), transparent 60%),
    radial-gradient(140% 100% at 50% 40%, transparent 45%, rgba(0, 0, 0, .55) 100%);
  background-size: 160px 160px, auto, auto, auto, auto;
  background-attachment: local, local, scroll, scroll, scroll;
  background-blend-mode: soft-light, normal, normal, normal, normal;
}

/* Ghosted "received" stamp behind the grid: rubber-stamp ink, slightly off-register. */
.dossier-stamp {
  position: absolute;
  z-index: -1;
  top: 58px;
  right: -12px;
  transform: rotate(-14deg);
  padding: 6px 14px 4px;
  border: 3px double rgba(179, 57, 43, .38);
  border-radius: 6px;
  font-family: var(--font-type);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(179, 57, 43, .38);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.2 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.2 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  pointer-events: none;
  user-select: none;
}

.dossier-stamp--bottom {
  top: auto;
  bottom: 36px;
  transform: rotate(9deg);
}
/* ── Bullet holes: punched into the dossier paper ── */

/* Sits with the stamp at z-index -1 inside the screen's isolated stacking
   context, so holes show only where paper shows — never over cards or text. */
.bullet-holes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.bullet-hole {
  position: absolute;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  /* Drop shadow lifts the torn rim off the page. */
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .6));
}

.bullet-hole svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Each round lands in turn: a hard scale punch that settles back. */
.bullet-holes--shoot .bullet-hole {
  animation: bulletPunch .28s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: var(--delay);
}

@keyframes bulletPunch {
  0% { transform: scale(0); opacity: 0; }
  35% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}


/* ── Step 1: character grid ─────────────────── */

/* Two cards per row; each card spans two tracks so an odd card out can be centred. */
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.char-card {
  grid-column: span 2;
  appearance: none;
  padding: 0;
  cursor: pointer;
  border: 3px solid var(--card-border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .4);
  transition: transform .15s ease;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.char-card:nth-child(1) { transform: rotate(-1.2deg); }
.char-card:nth-child(2) { transform: rotate(1deg); }
.char-card:nth-child(3) { transform: rotate(.8deg); }
.char-card:nth-child(4) { transform: rotate(-.8deg); }
.char-card:nth-child(5) { transform: rotate(1.1deg); }

.char-card:nth-child(5):last-child { grid-column: 2 / span 2; }

.char-card:active { transform: scale(.97); }

.char-visual {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.char-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.char-codename-plate {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 26px;
  background: rgba(20, 14, 8, .78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-codename {
  font-family: var(--font-type);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.char-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.char-name {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
}

.char-blurb {
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--muted);
}

/* ── Step 2: photo ──────────────────────────── */

.back-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
  font-family: var(--font-type);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 4px 0 10px;
}

.photo-pickers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.picker-tile {
  appearance: none;
  cursor: pointer;
  border: 3px dashed var(--tan);
  padding: 26px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.picker-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.picker-icon--camera { background: var(--red); }
.picker-icon--upload { background: var(--gold); }

.picker-icon--camera .cam {
  width: 22px; height: 18px;
  border: 3px solid var(--ink);
  border-radius: 3px;
  position: relative;
  display: block;
}

.picker-icon--camera .lens {
  position: absolute;
  top: 2px; left: 5px;
  width: 6px; height: 6px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: block;
}

.picker-icon--upload .arrow {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid var(--bg-panel);
  margin-bottom: 3px;
  display: block;
}

.picker-text { display: flex; flex-direction: column; gap: 2px; }

.picker-title {
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}

.picker-sub { font-size: 14px; color: var(--muted); }

.photo-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.photo-pickers[hidden],
.photo-preview[hidden] { display: none; }

/* ── Polaroids ──────────────────────────────── */

.polaroid { margin: 0; position: relative; }

.polaroid--preview {
  width: 240px;
  height: 300px;
  border: 4px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  background: #10100e;
  overflow: hidden;
  transform: rotate(-2deg);
}

.polaroid--preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

/* Live webcam feed on desktop: mirrored so it behaves like a mirror. */
.polaroid--camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
  background: #10100e;
}

.camera-note {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-type);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  pointer-events: none;
}

.polaroid-stamp {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink);
  text-shadow: 0 1px 3px #000;
}

.polaroid-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 6px;
}

.polaroid--result {
  width: 262px;
  background: var(--ink);
  padding: 10px 10px 44px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  transform: rotate(1.5deg);
}

.result-photo {
  width: 100%;
  /* Match the 1024×1024 composited result so nothing (incl. watermark) is cropped. */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #10100e;
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.result-tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
}

.codename-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-3deg);
}

.hazard-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 24px, var(--ink) 24px 48px);
}

.polaroid-caption {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-type);
  font-size: 15px;
  color: var(--bg-panel);
}

.quote {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 18px;
  font-style: italic;
}

/* ── Buttons ────────────────────────────────── */

.btn-slam {
  appearance: none;
  cursor: pointer;
  width: 100%;
  padding: 18px;
  background: var(--red);
  border: 3px solid var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
}

.btn-slam:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }

.text-link {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-type);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: underline;
}

.btn-ghost {
  appearance: none;
  cursor: pointer;
  flex: 1;
  padding: 13px;
  background: var(--bg-card);
  border: 2px solid var(--tan);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.btn-ghost--gold { color: var(--gold); }

.result-actions { display: flex; flex-direction: column; gap: 12px; }
.result-actions-row { display: flex; gap: 12px; }

.error-note {
  margin-top: 16px;
  font-family: var(--font-type);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  border: 2px dashed var(--red);
  padding: 12px 14px;
  background: rgba(179, 57, 43, .12);
}

.error-note[hidden] { display: none; }

/* ── Step 3: loading ────────────────────────── */

.screen--loading {
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  position: relative;
  background: var(--bg-page);
  animation: flicker 4s infinite;
}

.crt-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 4px);
}

.scanline-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
}

.scanline {
  height: 30px;
  background: linear-gradient(180deg, rgba(179, 57, 43, .25), transparent);
  animation: scanline 2.6s linear infinite;
}

.reel {
  width: 74px;
  height: 74px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  animation: spinReel 1.6s linear infinite;
  margin-bottom: 28px;
}

.reel i {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.reel i:nth-child(1) { top: 6px; left: 50%; margin-left: -5px; }
.reel i:nth-child(2) { bottom: 6px; left: 50%; margin-left: -5px; }
.reel i:nth-child(3) { left: 6px; top: 50%; margin-top: -5px; }
.reel i:nth-child(4) { right: 6px; top: 50%; margin-top: -5px; }

.loading-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  animation: slamIn .5s ease-out;
}

.loading-quip {
  font-family: var(--font-type);
  font-size: 15px;
  color: var(--gold);
  margin: 14px 0 0;
  text-align: center;
  min-height: 44px;
}

.cursor { animation: blink 1s infinite; }

.progress-track {
  width: 100%;
  max-width: 260px;
  height: 10px;
  background: var(--bg-card);
  border: 2px solid var(--tan);
  margin-top: 26px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width .4s ease;
}

.progress-label {
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ── Animations ─────────────────────────────── */

@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .6; } 94% { opacity: 1; } 97% { opacity: .8; } 98% { opacity: 1; } }
@keyframes slamIn { 0% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes barGrow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes spinReel { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .slam-bar, .scanline, .reel, .loading-title, .title--result, .screen--loading { animation: none; }
  .bullet-holes--shoot .bullet-hole { animation: none; }
}

/* ── Focus ──────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Desktop: the case file on the desk ─────── */

@media (min-width: 640px) {
  body {
    align-items: flex-start;
    padding: 40px 24px;
  }

  .app {
    max-width: 560px;
    min-height: calc(100dvh - 80px);
    border: 3px solid var(--card-border);
    box-shadow: 14px 14px 0 rgba(0, 0, 0, .4);
  }

  .screen {
    padding: 36px 40px 40px;
  }

  /* Center each step vertically in the file; spacers collapse when content overflows. */
  #screen-choose::before, #screen-photo::before, #screen-result::before,
  #screen-choose::after, #screen-photo::after, #screen-result::after {
    content: '';
    flex: 1 1 0;
    min-height: 0;
  }

  #screen-choose::after, #screen-photo::after, #screen-result::after { flex-grow: 1.3; }

  .char-visual { height: 150px; }

  .screen--dossier { --margin-x: 26px; }

  .dossier-stamp { top: 30px; right: -18px; font-size: 44px; }

  .dossier-stamp--bottom { top: auto; bottom: 44px; }

  .bullet-hole { width: calc(var(--size) * 1.15); height: calc(var(--size) * 1.15); margin: calc(var(--size) * -.575) 0 0 calc(var(--size) * -.575); }
}

@media (min-width: 960px) {
  .app { max-width: 920px; }

  .screen { padding: 44px 56px 56px; }

  .kicker { font-size: 14px; }

  .title { font-size: 46px; }

  .title--result { font-size: 36px; }

  .sub { font-size: 19px; }

  .step-header { margin: 8px 0 28px; }

  /* Three up top, two centred beneath. */
  .char-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }

  .char-card:nth-child(4) { grid-column: 2 / span 2; }
  .char-card:nth-child(5):last-child { grid-column: 4 / span 2; }

  .char-visual { height: 170px; }

  .screen--dossier { --margin-x: 34px; --rule-gap: 32px; }

  .dossier-stamp { top: 40px; right: 24px; font-size: 64px; letter-spacing: 6px; }

  .dossier-stamp--bottom { top: auto; bottom: 56px; }

  .bullet-hole { width: calc(var(--size) * 1.4); height: calc(var(--size) * 1.4); margin: calc(var(--size) * -.7) 0 0 calc(var(--size) * -.7); }

  /* Step 2: pickers side by side, preview column capped. */
  .photo-pickers {
    flex-direction: row;
    gap: 18px;
    margin-top: 28px;
  }

  .picker-tile {
    flex: 1;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 18px;
    padding: 40px 28px;
  }

  .picker-text { align-items: center; gap: 4px; }

  .photo-preview {
    width: 100%;
    max-width: 480px;
    margin: 28px auto 0;
  }

  .polaroid--preview { width: 280px; height: 350px; }

  /* Step 3: loading scales with the room. */
  .loading-title { font-size: 34px; }

  .progress-track { max-width: 320px; }

  /* Step 4: the reveal centers on the polaroid. */
  #screen-result {
    align-items: center;
    text-align: center;
  }

  #screen-result .title--result { max-width: 640px; }

  .polaroid--result { width: 300px; }

  .quote { font-size: 17px; }

  .result-actions {
    width: 100%;
    max-width: 420px;
  }
}

/* ── Pointer hover states ───────────────────── */

@media (hover: hover) {
  .char-card {
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  }

  .char-card:hover {
    transform: rotate(0deg) translateY(-4px);
    border-color: var(--gold);
    box-shadow: 7px 10px 0 rgba(0, 0, 0, .45);
  }

  .picker-tile { transition: border-color .15s ease, transform .15s ease; }

  .picker-tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
  }

  .btn-slam { transition: transform .12s ease, box-shadow .12s ease; }

  .btn-slam:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
  }

  .btn-slam:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
  }

  .btn-ghost { transition: border-color .15s ease, color .15s ease; }

  .btn-ghost:hover { border-color: var(--gold); color: var(--ink); }

  .back-link:hover, .text-link:hover { color: var(--ink); }
}
