/* experimental/users/acmcarther/slay-the-spider/frontend/src/index.css */
:root {
  color-scheme: dark;
  --bg: #05070c;
  --text: #d6dbe5;
  --muted: #7a8294;
  --accent: #8fb6ff;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.stage {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.stage canvas {
  display: block;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
  text-align: center;
  padding: 1.5rem;
}
.overlay h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(143, 182, 255, 0.35);
}
.overlay p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
}
.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  user-select: none;
}
.hud-spider {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 70vw);
  text-align: center;
}
.hud-spider-status {
  margin-top: 0.3rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hud-player {
  position: absolute;
  left: 1rem;
  bottom: 6.5rem;
  width: min(320px, 55vw);
}
.hpbar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}
.hpbar-name {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hpbar-num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hpbar-num [data-testid] {
  color: var(--text);
  font-weight: 600;
}
.block {
  color: #9fc7ff;
}
.hpbar-track {
  position: relative;
  margin-top: 0.25rem;
  height: 12px;
  background: #20242f;
  border-radius: 6px;
  overflow: hidden;
}
.hpbar-hp {
  position: relative;
  height: 100%;
  border-radius: 6px;
  transition: width 0.35s ease;
}
.hpbar-ghost {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 6px;
  background: #c2456a99;
  transition: width 0.9s ease 0.3s;
}
.hpbar.hit .hpbar-track {
  animation: hpbar-flash 0.35s ease;
}
@keyframes hpbar-flash {
  0% {
    filter: brightness(2.2);
  }
  100% {
    filter: brightness(1);
  }
}
.hpbar-block {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      #5b9bff77,
      #5b9bff77 4px,
      #5b9bff44 4px,
      #5b9bff44 8px);
  border-radius: 6px;
}
.statuses {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.status {
  background: #161a24cc;
  border: 1px solid #2b3242;
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
  color: var(--text);
}
.status.ceiling {
  color: #ffd27a;
  border-color: #6a5326;
}
.hud-bottom {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0b0e16cc;
  border: 1px solid #222838;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}
.energy {
  color: #ffe08a;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.energy.pop {
  animation: energy-pop 0.3s ease;
}
.energy.empty {
  color: #8a8294;
}
@keyframes energy-pop {
  0% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.piles {
  display: inline-flex;
  gap: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.piles [data-testid] {
  color: var(--text);
}
.pile-chip {
  cursor: pointer;
  border-radius: 5px;
  padding: 0.05rem 0.25rem;
}
.pile-chip:hover,
.pile-chip.open {
  background: #1c2435;
}
.pile-peek {
  position: absolute;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 320px;
  max-height: 50vh;
  overflow: auto;
  background: #0b0e16f2;
  border: 1px solid #2a3142;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  pointer-events: auto;
  cursor: pointer;
  font-size: 0.88rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.15s ease;
}
.pile-peek-title {
  color: #cfe0ff;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pile-peek-row {
  color: var(--text);
  padding: 0.12rem 0;
}
.pile-peek-cost {
  color: #ffe08a;
  font-variant-numeric: tabular-nums;
}
.pile-peek-count {
  color: var(--muted);
}
.pile-peek-empty {
  color: var(--muted);
  font-style: italic;
}
.turn-banner {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.turn-banner-text {
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eaf0ff;
  text-shadow: 0 0 24px rgba(143, 182, 255, 0.5);
  border-top: 1px solid #43507a88;
  border-bottom: 1px solid #43507a88;
  padding: 0.3rem 2.2rem;
  background:
    linear-gradient(
      90deg,
      transparent,
      #0b0e16cc 18%,
      #0b0e16cc 82%,
      transparent);
  animation: banner-sweep 1.5s ease forwards;
}
@keyframes banner-sweep {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  12% {
    opacity: 1;
    transform: translateX(0);
  }
  78% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(40px);
  }
}
.relic {
  color: #d8c7ff;
}
.end-turn {
  pointer-events: auto;
  background: #2a3550;
  color: #eaf0ff;
  border: 1px solid #43507a;
  border-radius: 7px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.end-turn:hover:not(:disabled) {
  background: #36456a;
}
.end-turn:disabled {
  opacity: 0.45;
  cursor: default;
}
.seed {
  position: absolute;
  right: 0.6rem;
  bottom: 0.4rem;
  font-size: 0.72rem;
  color: #4d566b;
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
.sound-toggle {
  position: absolute;
  left: 0.6rem;
  bottom: 0.4rem;
  z-index: 30;
  pointer-events: auto;
  background: #0b0e16cc;
  border: 1px solid #222838;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.75;
}
.sound-toggle:hover {
  opacity: 1;
}
.intent {
  pointer-events: none;
  white-space: nowrap;
  background: #140b14e0;
  border: 1px solid #6a2740;
  color: #ffd9e2;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  box-shadow: 0 0 18px rgba(194, 69, 106, 0.35);
  animation: intent-pop 0.35s ease;
}
@keyframes intent-pop {
  0% {
    transform: scale(1.45);
    filter: brightness(1.8);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
.intent.dfa {
  border-color: #c2456a;
  color: #ffb3c4;
  animation: intent-pop 0.35s ease, dfa-pulse 1.1s ease-in-out 0.35s infinite;
}
@keyframes dfa-pulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(194, 69, 106, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 90, 120, 0.85);
  }
}
.debug {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: min(300px, 46vw);
  max-height: 70vh;
  overflow: auto;
  background: #080b12ee;
  border: 1px solid #232a3a;
  border-radius: 8px;
  padding: 0.6rem;
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  font-size: 0.78rem;
  pointer-events: auto;
}
.debug-info {
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.debug-info b {
  color: #7dcfff;
}
.debug-hand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.debug-hand button {
  text-align: left;
  background: #141a26;
  color: #d6dbe5;
  border: 1px solid #2b3344;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}
.debug-hand button:hover:not(:disabled) {
  background: #1d2536;
}
.debug-hand button:disabled {
  opacity: 0.4;
  cursor: default;
}
.debug-cost {
  float: right;
  color: #ffe08a;
}
.debug-empty {
  color: #4d566b;
}
.canvas-wrap {
  position: absolute;
  inset: 0;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 75% 70% at 50% 45%,
      transparent 55%,
      #05070c 130%);
}
.float-num {
  pointer-events: none;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}
.toasts {
  position: absolute;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.toast {
  background: #140b14e6;
  border: 1px solid #5a3a52;
  color: #ffe1ec;
  border-radius: 7px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-family: system-ui, sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.18s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 1.5rem;
  background:
    radial-gradient(
      circle,
      #05070caa 0%,
      #05070cf2 100%);
}
.relic-card,
.end-card {
  background: #0c1018;
  border: 1px solid #2a3344;
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}
.relic-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.relic-card h2 {
  margin: 0.4rem 0 0.8rem;
  color: #d8c7ff;
  font-size: 1.5rem;
}
.relic-effect {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 1.05rem;
}
.relic-flavor,
.end-line {
  color: var(--muted);
  font-style: italic;
}
.end-card h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.overlay-screen.win .end-card h1 {
  color: #9ece6a;
  text-shadow: 0 0 30px rgba(158, 206, 106, 0.5);
}
.overlay-screen.lose .end-card h1 {
  color: #f7768e;
  text-shadow: 0 0 30px rgba(247, 118, 142, 0.5);
}
.end-stats {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.end-stat-num {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.overlay-btn {
  margin-top: 1.2rem;
  pointer-events: auto;
  background: #2a3550;
  color: #eaf0ff;
  border: 1px solid #43507a;
  border-radius: 9px;
  padding: 0.6rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.overlay-btn:hover {
  background: #36456a;
}
.tip-anchor {
  pointer-events: auto;
  cursor: help;
}
.tooltip {
  position: fixed;
  z-index: 40;
  max-width: 260px;
  pointer-events: none;
  background: #0c1018f2;
  border: 1px solid #2c3344;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.tip-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.tip-icon {
  width: 22px;
  height: 22px;
}
.tip-title {
  font-weight: 700;
  color: #cfe0ff;
}
.tip-body {
  color: #c6cdda;
}
.tip-nums {
  margin-top: 0.3rem;
  color: #ffd9e2;
  font-weight: 600;
}
.tip-flavor {
  margin-top: 0.3rem;
  color: var(--muted);
  font-style: italic;
}
.relic-icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
.keyword-strip {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(240px, 40vw);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 15;
}
.keyword-entry {
  background: #0b0e16e0;
  border: 1px solid #2a3142;
  border-left: 3px solid #5a8fd6;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}
.keyword-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #cfe0ff;
}
.keyword-text {
  font-size: 0.74rem;
  color: #aab4c4;
  line-height: 1.3;
}
.gallery {
  min-height: 100%;
  padding: 1.5rem;
  overflow: auto;
}
.gallery h2,
.gallery h3 {
  color: var(--text);
  font-family: system-ui, sans-serif;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}
.gallery-card {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.gallery-relics {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.gallery-relic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.gallery-relic img {
  width: 96px;
  height: 96px;
}
/*# sourceMappingURL=bundle.css.map */
