/* ============================================
   Rogue Signal — Game Styles
   ============================================ */

/* ─── Game Page Layout ─────────────────────────────────────────── */
.game-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 16px;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── HUD ──────────────────────────────────────────────────────── */
.hud {
  display: none;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 0 auto 12px;
  width: fit-content;
  min-width: 320px;
  backdrop-filter: blur(8px);
}

.hud--visible {
  display: flex;
}

.hud__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 54px;
}

.hud__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hud__value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ─── Screen System ────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  position: relative;
}

.screen--active {
  display: flex;
}

/* ─── Overlays (title, game over, victory) ─────────────────────── */
.overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.overlay__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  flex: 1;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.overlay__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ef4444, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overlay__title--fail {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
}

.overlay__title--win {
  background: linear-gradient(135deg, #06d6a0, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}

.overlay__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 380px;
}

/* ─── Title Screen Art ─────────────────────────────────────────── */
.title-signal-art {
  position: relative;
  width: 120px;
  height: 90px;
  margin-bottom: 8px;
}

/* Dish = U-shaped bowl opening upward */
.signal-dish {
  width: 36px;
  height: 18px;
  border: 3px solid #fb923c;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  border-top: none;
  position: absolute;
  bottom: 20px;
  left: calc(50% - 18px);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.5);
}

/* Vertical stem below dish */
.signal-dish::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 18px;
  background: #fb923c;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(251, 146, 60, 0.4);
}

/* Waves = top-half arcs radiating upward from dish */
.signal-wave {
  position: absolute;
  border: 2px solid rgba(239, 68, 68, 0.6);
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-bottom: none;
  transform-origin: center bottom;
  animation: signalPulse 2s ease-out infinite;
}

.signal-wave--1 {
  width: 30px; height: 15px;
  bottom: 38px;
  left: calc(50% - 15px);
  animation-delay: 0s;
}

.signal-wave--2 {
  width: 50px; height: 25px;
  bottom: 38px;
  left: calc(50% - 25px);
  animation-delay: 0.4s;
}

.signal-wave--3 {
  width: 70px; height: 35px;
  bottom: 38px;
  left: calc(50% - 35px);
  animation-delay: 0.8s;
}

@keyframes signalPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scaleX(1.3) scaleY(1.5); }
}

.title-hints {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.control-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, #ef4444, #fb923c);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--small {
  font-size: 0.75rem;
  padding: 8px 18px;
}

.btn--end-turn {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  box-shadow: 0 2px 12px rgba(251, 146, 60, 0.3);
}

.btn--end-turn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn--event-choice {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn--event-choice:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.4);
  transform: translateX(4px);
}

/* ─── Map Screen ───────────────────────────────────────────────── */
.map-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-graph {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
}

.map-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.map-lines line {
  stroke-width: 2;
}

.map-line--visited {
  stroke: rgba(251, 146, 60, 0.5);
}

.map-line--available {
  stroke: rgba(251, 146, 60, 0.8);
  filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.5));
  stroke-dasharray: 6 4;
  animation: mapLineDash 1s linear infinite;
}

.map-line--locked {
  stroke: rgba(255, 255, 255, 0.08);
}

@keyframes mapLineDash {
  to { stroke-dashoffset: -10; }
}

.map-layer {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.map-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-width: 64px;
}

.map-node__icon {
  font-size: 1.3rem;
  line-height: 1;
}

.map-node__label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.map-node--available {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.08);
  cursor: pointer;
  animation: nodeGlow 2s ease-in-out infinite;
}

.map-node--available:hover {
  transform: scale(1.1);
  border-color: rgba(251, 146, 60, 0.8);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.15);
}

.map-node--visited {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.05);
}

.map-node--locked {
  opacity: 0.3;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(251, 146, 60, 0); }
  50% { box-shadow: 0 0 16px rgba(251, 146, 60, 0.2); }
}

/* ─── Combat Screen ────────────────────────────────────────────── */
.combat-container {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  gap: 8px;
}

.enemy-area {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  flex-wrap: wrap;
  min-height: 160px;
  align-items: flex-end;
}

.enemy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-width: 110px;
}

.enemy:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.enemy--selected {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
}

.enemy--boss {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.enemy__intent {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

.enemy__intent--attack {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.enemy__intent--defend {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.enemy__intent--buff {
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.enemy__intent--debuff {
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.intent-icon {
  font-size: 0.75rem;
}

.intent-val {
  font-size: 0.8rem;
}

.intent-desc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
}

.enemy__sprite {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.enemy--boss .enemy__sprite {
  font-size: 3rem;
}

.enemy__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.enemy__name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.enemy__hp-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.enemy__hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.enemy__hp-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ─── Combat Info Bar ──────────────────────────────────────────── */
.combat-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.combat-info__energy {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 4px;
}

.energy-icon {
  font-size: 1rem;
}

.combat-info__piles {
  display: flex;
  gap: 12px;
}

.pile-info {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: default;
}

/* ─── Probe Status ─────────────────────────────────────────────── */
.probe-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  justify-content: center;
  position: relative;
}

.probe-hp-bar {
  width: 160px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.probe-hp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #06d6a0, #38bdf8);
  transition: width 0.4s ease;
}

.probe-hp-fill--mid {
  background: linear-gradient(90deg, #facc15, #fb923c);
}

.probe-hp-fill--low {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  animation: hpPulse 1s ease-in-out infinite;
}

@keyframes hpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.probe-hp-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  min-width: 50px;
}

.probe-block {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
}

/* ─── Card Styles ──────────────────────────────────────────────── */
.hand-area {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 12px 8px 24px;
  min-height: 180px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.card {
  width: 120px;
  min-height: 160px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s, margin-top 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #1a1e2e 0%, #0f1320 100%);
  flex-shrink: 0;
}

.card--in-hand {
  margin: 0 -6px; /* overlap cards in hand */
}

.card--in-hand:hover {
  z-index: 10;
}

/* Card type backgrounds */
.card--attack {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(160deg, #2a1215 0%, #1a0f12 100%);
}

.card--skill {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(160deg, #0f1a2e 0%, #0a1220 100%);
}

.card--power {
  border-color: rgba(250, 204, 21, 0.25);
  background: linear-gradient(160deg, #2a2510 0%, #1a1808 100%);
}

/* Rarity glow */
.card--uncommon {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.card--rare {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2), 0 0 12px rgba(250, 204, 21, 0.08);
}

/* Playable state */
.card--playable {
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.2);
}

.card--playable:hover {
  transform: translateY(-16px) scale(1.08);
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card--playable.card--attack:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);
}

.card--playable.card--skill:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

/* Card sub-elements */
.card__cost {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
  z-index: 2;
}

.card__name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 6px;
  margin-bottom: 4px;
  text-align: center;
}

.card__type {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card--attack .card__type { color: #ef4444; }
.card--skill .card__type { color: #38bdf8; }
.card--power .card__type { color: #facc15; }

.card__desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: center;
  flex: 1;
}

.card__rarity {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 6px auto 0;
}

.card__rarity--starter { background: #6b7280; }
.card__rarity--common { background: #d1d5db; }
.card__rarity--uncommon { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.5); }
.card__rarity--rare { background: #facc15; box-shadow: 0 0 6px rgba(250, 204, 21, 0.5); }

/* ─── Reward Screen ────────────────────────────────────────────── */
.reward-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.reward-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #06d6a0, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reward-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.reward-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.reward-cards .card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.reward-cards .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.2);
}

/* ─── Shop Screen ──────────────────────────────────────────────── */
.shop-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.shop-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #facc15, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-credits {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #facc15;
}

.shop-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-section__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.shop-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.shop-item__price {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #facc15;
}

.shop-item__price--unaffordable {
  color: #ef4444;
  text-decoration: line-through;
}

.shop-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.shop-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  opacity: 0.4;
  cursor: default;
}

.shop-service--affordable {
  opacity: 1;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-service--affordable:hover {
  background: rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.3);
}

.shop-service__icon {
  font-size: 1.2rem;
}

.shop-service__text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text);
}

.shop-service__price {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #facc15;
}

/* ─── Event Screen ─────────────────────────────────────────────── */
.event-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 16px;
  flex: 1;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.event-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 12px;
}

.event-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.event-result {
  font-size: 0.95rem;
  color: #06d6a0;
  text-align: center;
  padding: 12px;
  background: rgba(6, 214, 160, 0.05);
  border: 1px solid rgba(6, 214, 160, 0.15);
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ─── Game Over / Victory Stats ────────────────────────────────── */
.gameover-stats,
.victory-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 8px 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.stat-row span:first-child {
  color: var(--color-text-muted);
}

.stat-row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

/* ─── Combat Animations ────────────────────────────────────────── */
.screen-flash {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease-in;
  border-radius: 10px;
}

.screen-flash--active {
  opacity: 1;
  animation: flashFade 0.3s ease-out forwards;
}

@keyframes flashFade {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

.shake {
  animation: shakeAnim 0.3s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(calc(var(--shake-intensity, 4px) * -1)); }
  40% { transform: translateX(var(--shake-intensity, 4px)); }
  60% { transform: translateX(calc(var(--shake-intensity, 4px) * -0.5)); }
  80% { transform: translateX(calc(var(--shake-intensity, 4px) * 0.5)); }
}

.floating-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 50;
  animation: floatUp 0.8s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}

/* ─── Modal (Remove Card Picker) ───────────────────────────────── */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.modal-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card {
    width: 100px;
    min-height: 140px;
    padding: 8px;
  }

  .card__name {
    font-size: 0.6rem;
  }

  .card__desc {
    font-size: 0.65rem;
  }

  .card__cost {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .hand-area {
    padding: 8px 4px 16px;
  }

  .card--in-hand {
    margin: 0 -8px;
  }

  .enemy-area {
    gap: 10px;
    padding: 10px;
  }

  .enemy {
    min-width: 90px;
    padding: 8px 10px;
  }

  .map-layer {
    gap: 12px;
  }

  .map-node {
    min-width: 50px;
    padding: 8px 10px;
  }
}
