/* Mass Effect Quiz Room - Normandy dark UI with paragon/renegade accents */

:root,
body[data-room="mass-effect"],
.qr-room-mass-effect {
  --qr-bg: #03060e;
  --qr-bg-elev: #0a1322;
  --qr-fg: #e8f3fb;
  --qr-fg-dim: #8ba5bc;
  --qr-accent: #4ac9e8;
  --qr-accent-dim: #1a4f72;
  --qr-warn: #ee682d;
  --qr-danger: #a02430;
  --qr-radius: 6px;
  --qr-me-panel: #101d2e;
  --qr-me-panel-2: #14283e;
  --qr-me-line: #27648e;
  --qr-me-metal: #849faa;
  --qr-me-metal-dark: #46565e;
  --qr-me-paragon: #4ac9e8;
  --qr-me-renegade: #ee682d;
  --qr-me-green: #587a53;
  --qr-me-violet: #7e4952;
  --qr-me-gold: #d5b768;
  --qr-me-glow: rgba(74, 201, 232, 0.28);
  --qr-me-red-glow: rgba(238, 104, 45, 0.24);
  --qr-me-scene-shadow: rgba(3, 6, 14, 0.72);
}

* { box-sizing: border-box; }

body[data-room="mass-effect"] {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #03060e 0%, #07111f 52%, #03060e 100%);
  color: var(--qr-fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-room="mass-effect"]::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(74, 201, 232, 0.05) 1px, transparent 1px), linear-gradient(180deg, rgba(238, 244, 242, 0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 80%);
}

body[data-room="mass-effect"] #qr-root {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 24px 16px;
}

body[data-room="mass-effect"] .qr-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: qr-me-stage-enter 280ms ease-out both;
}

body[data-room="mass-effect"] .qr-progress,
body[data-room="mass-effect"] .qr-counter,
body[data-room="mass-effect"] .qr-status {
  color: var(--qr-fg-dim);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body[data-room="mass-effect"] .qr-progress { text-align: right; }
body[data-room="mass-effect"] .qr-counter,
body[data-room="mass-effect"] .qr-status { margin: 0 0 12px; }
body[data-room="mass-effect"] .qr-counter span,
body[data-room="mass-effect"] .qr-status strong { color: var(--qr-accent); }

body[data-room="mass-effect"] .qr-board {
  position: relative;
  min-height: 340px;
  padding: 20px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 40, 62, 0.92), rgba(8, 16, 30, 0.96));
  border: 1px solid var(--qr-me-line);
  border-radius: var(--qr-radius);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(238, 244, 242, 0.04);
}

body[data-room="mass-effect"] .qr-board::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(74, 201, 232, 0.08), transparent 26%);
  mix-blend-mode: screen;
}

body[data-room="mass-effect"] .qr-board > * { position: relative; z-index: 1; }
body[data-room="mass-effect"] h2,
body[data-room="mass-effect"] h3 { color: var(--qr-accent); }

body[data-room="mass-effect"] h2 {
  margin: 0 0 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body[data-room="mass-effect"] p { line-height: 1.55; }

body[data-room="mass-effect"] .qr-scene {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border: 1px solid var(--qr-me-line);
  border-radius: var(--qr-radius);
  background: var(--qr-bg);
  box-shadow: 0 0 0 2px rgba(74, 201, 232, 0.08), 0 10px 24px var(--qr-me-scene-shadow);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: qr-me-scene-fade 360ms ease-out both;
}

body[data-room="mass-effect"] .qr-scene[src*="scene_citadel"] { border-color: var(--qr-me-paragon); }
body[data-room="mass-effect"] .qr-scene[src*="scene_interrupt"] { border-color: var(--qr-me-renegade); }
body[data-room="mass-effect"] .qr-scene[src*="scene_shipmate"] { border-color: var(--qr-me-metal); }
body[data-room="mass-effect"] .qr-scene[src*="scene_loyalty"] { border-color: var(--qr-me-gold); }
body[data-room="mass-effect"] .qr-scene[src*="scene_ending"] { border-color: var(--qr-me-violet); }

/* Shared controls */

body[data-room="mass-effect"] .qr-btn {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(238, 244, 242, 0.08);
  border-radius: var(--qr-radius);
  background: linear-gradient(180deg, var(--qr-accent), #257aa7);
  color: #03060e;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #10324d;
  transition: transform 90ms ease, filter 120ms ease, box-shadow 120ms ease;
}

body[data-room="mass-effect"] .qr-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
body[data-room="mass-effect"] .qr-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #10324d; }
body[data-room="mass-effect"] .qr-btn:disabled { opacity: 0.52; cursor: not-allowed; filter: grayscale(0.45); }
body[data-room="mass-effect"] .qr-btn-sm { width: auto; min-height: 38px; padding: 8px 12px; font-size: 9px; }
body[data-room="mass-effect"] .qr-btn-secondary { background: #101d2e; color: var(--qr-fg); border-color: var(--qr-me-line); box-shadow: 0 3px 0 #07111f; }

body[data-room="mass-effect"] .qr-choice-prompt { margin-bottom: 14px; }
body[data-room="mass-effect"] .qr-choice-prompt p { margin: 0; color: var(--qr-fg-dim); font-size: 14px; }
body[data-room="mass-effect"] .qr-choice-list { display: grid; grid-template-columns: 1fr; gap: 10px; }

body[data-room="mass-effect"] .qr-choice {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--qr-accent-dim);
  border-radius: var(--qr-radius);
  background: rgba(3, 6, 14, 0.64);
  color: var(--qr-fg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}

body[data-room="mass-effect"] .qr-choice:hover { background: rgba(25, 74, 112, 0.36); border-color: var(--qr-accent); animation: qr-me-choice-lift 160ms ease-out both; }
body[data-room="mass-effect"] .qr-choice.picked,
body[data-room="mass-effect"] .qr-choice.active { background: rgba(74, 201, 232, 0.16); border-color: var(--qr-accent); box-shadow: inset 0 0 0 2px rgba(74, 201, 232, 0.14); }
body[data-room="mass-effect"] .qr-choice-name { color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 10px; letter-spacing: 1px; }

body[data-room="mass-effect"] .qr-outcome {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--qr-me-line);
  border-radius: var(--qr-radius);
  background: rgba(8, 16, 30, 0.82);
  color: var(--qr-fg);
  font-size: 13px;
  line-height: 1.55;
}

body[data-room="mass-effect"] .qr-hint { display: none; margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--qr-warn); border-radius: var(--qr-radius); background: rgba(238, 104, 45, 0.09); color: #f0c5a8; font-size: 13px; }
body[data-room="mass-effect"] .qr-hint-visible { display: block; animation: qr-me-scene-fade 220ms ease-out both; }
body[data-room="mass-effect"] .qr-resume-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; padding: 12px; border: 1px solid var(--qr-warn); border-radius: var(--qr-radius); background: rgba(238, 104, 45, 0.10); color: #f0d4bf; font-size: 13px; }

/* Result screen */

body[data-room="mass-effect"] .qr-result { padding: 22px 0; text-align: center; }
body[data-room="mass-effect"] .qr-result-sprite-wrap { margin-bottom: 16px; }
body[data-room="mass-effect"] .qr-result-sprite { width: 192px; height: 192px; border: 4px solid var(--qr-accent); border-radius: var(--qr-radius); background: #07111f; box-shadow: 0 0 28px rgba(74, 201, 232, 0.18); image-rendering: pixelated; animation: qr-me-sprite-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
body[data-room="mass-effect"] .qr-result-eyebrow { margin-bottom: 6px; color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
body[data-room="mass-effect"] .qr-result-name { margin: 4px 0 8px; color: var(--qr-accent); font-family: 'Press Start 2P', monospace; font-size: 18px; line-height: 1.45; }
body[data-room="mass-effect"] .qr-result-tagline { margin: 0 0 14px; color: var(--qr-fg-dim); font-style: italic; }
body[data-room="mass-effect"] .qr-result-desc { padding: 0 6px; text-align: left; line-height: 1.65; }
body[data-room="mass-effect"] .qr-result-receipts { margin-top: 22px; padding: 12px 16px; border: 1px solid rgba(74, 201, 232, 0.22); border-radius: var(--qr-radius); background: rgba(8, 16, 30, 0.78); text-align: left; }
body[data-room="mass-effect"] .qr-result-receipts h3 { margin: 0 0 8px; color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 11px; }
body[data-room="mass-effect"] .qr-result-receipts ul { margin: 0; padding-left: 20px; color: var(--qr-fg-dim); font-size: 13px; line-height: 1.6; }

/* Puzzle 1: Citadel */

body[data-room="mass-effect"] .qr-me-citadel { display: flex; flex-direction: column; gap: 14px; }
body[data-room="mass-effect"] .qr-me-citadel-prompt h2,
body[data-room="mass-effect"] .qr-me-citadel-prompt h3 { color: var(--qr-me-paragon); }
body[data-room="mass-effect"] .qr-me-citadel-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(74, 201, 232, 0.24);
  border-radius: var(--qr-radius);
  background: rgba(25, 74, 112, 0.16);
}
body[data-room="mass-effect"] .qr-me-citadel-ward,
body[data-room="mass-effect"] .qr-me-citadel-route { min-height: 54px; border-color: rgba(74, 201, 232, 0.42); background: rgba(3, 6, 14, 0.72); }
body[data-room="mass-effect"] .qr-me-citadel-ward:hover,
body[data-room="mass-effect"] .qr-me-citadel-route:hover { box-shadow: inset 0 0 18px rgba(74, 201, 232, 0.16); }
body[data-room="mass-effect"] .qr-me-citadel-council { padding: 12px; border: 1px dashed var(--qr-me-gold); border-radius: var(--qr-radius); color: #eadcb8; background: rgba(213, 183, 104, 0.09); }
body[data-room="mass-effect"] .qr-me-citadel-done,
body[data-room="mass-effect"] .qr-me-citadel-continue { margin-top: 4px; }

/* Puzzle 2: Interrupt */

body[data-room="mass-effect"] .qr-me-interrupt { display: flex; flex-direction: column; gap: 14px; position: relative; }
body[data-room="mass-effect"] .qr-me-interrupt-prompt h2 { margin: 0 0 6px; color: var(--qr-accent); font-size: 15px; }
body[data-room="mass-effect"] .qr-me-interrupt-prompt p { margin: 0; color: var(--qr-fg-dim); font-size: 14px; line-height: 1.55; }

body[data-room="mass-effect"] .qr-me-interrupt-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: var(--qr-fg-dim);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-align: center;
}

body[data-room="mass-effect"] .qr-me-interrupt-status strong { display: block; margin-top: 3px; color: var(--qr-me-gold); font-size: 12px; }
body[data-room="mass-effect"] .qr-me-interrupt-stage {
  min-height: 360px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--qr-accent-dim);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 40, 62, 0.96), rgba(3, 6, 14, 0.94));
  box-shadow: inset 0 0 0 1px rgba(238, 244, 242, 0.04);
  animation: qr-me-scene-fade 280ms ease-out both;
}

body[data-room="mass-effect"] .qr-me-interrupt-title { color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 10px; letter-spacing: 2px; text-align: center; }
body[data-room="mass-effect"] .qr-me-interrupt-card { padding: 12px 14px; border: 1px solid var(--qr-me-line); border-radius: var(--qr-radius); background: rgba(3, 6, 14, 0.74); color: var(--qr-fg); font-size: 14px; line-height: 1.5; text-align: center; }
body[data-room="mass-effect"] .qr-me-interrupt-prompts,
body[data-room="mass-effect"] .qr-me-interrupt-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body[data-room="mass-effect"] .qr-me-interrupt-zones { min-height: 82px; gap: 8px; }

body[data-room="mass-effect"] .qr-me-interrupt-prompt-card,
body[data-room="mass-effect"] .qr-me-interrupt-zone {
  min-height: 58px;
  padding: 10px 12px;
  border: 2px solid;
  border-radius: var(--qr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 1px;
  text-align: center;
}

body[data-room="mass-effect"] .qr-me-interrupt-zone { min-height: 82px; cursor: pointer; flex-direction: column; gap: 5px; transition: filter 100ms, transform 80ms, box-shadow 120ms, background 120ms; }
body[data-room="mass-effect"] .qr-me-interrupt-prompt-card.paragon,
body[data-room="mass-effect"] .qr-me-interrupt-zone.paragon { border-color: rgba(74, 201, 232, 0.72); background: rgba(25, 74, 112, 0.38); color: #b9f1ff; }
body[data-room="mass-effect"] .qr-me-interrupt-prompt-card.renegade,
body[data-room="mass-effect"] .qr-me-interrupt-zone.renegade { border-color: rgba(238, 104, 45, 0.72); background: rgba(160, 36, 48, 0.30); color: #ffc3a1; }
body[data-room="mass-effect"] .qr-me-interrupt-zone.paragon:hover:not([disabled]) { border-color: var(--qr-me-paragon); filter: brightness(1.16); }
body[data-room="mass-effect"] .qr-me-interrupt-zone.renegade:hover:not([disabled]) { border-color: var(--qr-me-renegade); filter: brightness(1.16); }
body[data-room="mass-effect"] .qr-me-interrupt-zone.paragon.telegraph { background: rgba(25, 74, 112, 0.62); box-shadow: inset 0 0 18px rgba(74, 201, 232, 0.30); }
body[data-room="mass-effect"] .qr-me-interrupt-zone.renegade.telegraph { background: rgba(160, 36, 48, 0.48); box-shadow: inset 0 0 18px rgba(238, 104, 45, 0.30); }
body[data-room="mass-effect"] .qr-me-interrupt-zone.paragon.window { background: rgba(74, 201, 232, 0.42); box-shadow: inset 0 0 24px rgba(74, 201, 232, 0.52), 0 0 16px rgba(74, 201, 232, 0.20); }
body[data-room="mass-effect"] .qr-me-interrupt-zone.renegade.window { background: rgba(238, 104, 45, 0.42); box-shadow: inset 0 0 24px rgba(238, 104, 45, 0.52), 0 0 16px rgba(238, 104, 45, 0.20); }
body[data-room="mass-effect"] .qr-me-interrupt-zone[disabled] { opacity: 0.56; cursor: not-allowed; }
body[data-room="mass-effect"] .qr-me-interrupt-zone:active:not([disabled]) { transform: scale(0.98); }
body[data-room="mass-effect"] .qr-me-interrupt-zone-label { font-size: 9px; opacity: 0.86; }
body[data-room="mass-effect"] .qr-me-interrupt-zone-action { font-size: 11px; }

body[data-room="mass-effect"] .qr-me-interrupt-meter-label { display: flex; justify-content: space-between; color: var(--qr-fg-dim); font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 1px; }
body[data-room="mass-effect"] .qr-me-interrupt-meter { position: relative; height: 16px; overflow: hidden; border: 1px solid var(--qr-accent-dim); border-radius: 3px; background: #03060e; }
body[data-room="mass-effect"] .qr-me-interrupt-meter-green { background: rgba(88, 122, 83, 0.36); border-left: 1px solid rgba(88, 122, 83, 0.9); border-right: 1px solid rgba(88, 122, 83, 0.9); }
body[data-room="mass-effect"] .qr-me-interrupt-meter-fill { background: linear-gradient(90deg, #4ac9e8 0%, #587a53 50%, #d5b768 78%, #ee682d 100%); }

body[data-room="mass-effect"] .qr-me-interrupt-outcome { padding: 10px 12px; border-radius: var(--qr-radius); font-size: 13px; line-height: 1.5; text-align: center; animation: qr-me-panel-pop 260ms ease-out both; }
body[data-room="mass-effect"] .qr-me-interrupt-outcome[hidden],
body[data-room="mass-effect"] .qr-me-interrupt-summary[hidden] { display: none; }
body[data-room="mass-effect"] .qr-me-interrupt-outcome.good { border: 1px solid #587a53; background: rgba(88, 122, 83, 0.18); color: #d7efd4; }
body[data-room="mass-effect"] .qr-me-interrupt-outcome.bad { border: 1px solid var(--qr-danger); background: rgba(160, 36, 48, 0.18); color: #ffd0cc; }
body[data-room="mass-effect"] .qr-me-interrupt-outcome.neutral { border: 1px dashed var(--qr-me-metal); background: rgba(132, 159, 170, 0.10); color: #d9e5ea; }
body[data-room="mass-effect"] .qr-me-interrupt-actions { display: flex; gap: 8px; }
body[data-room="mass-effect"] .qr-me-interrupt-actions .qr-btn { flex: 1; margin-top: 0; width: auto; }
body[data-room="mass-effect"] .qr-me-interrupt-summary { margin-top: 8px; padding: 12px; border: 1px solid rgba(213, 183, 104, 0.35); border-radius: var(--qr-radius); background: rgba(213, 183, 104, 0.08); color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 10px; letter-spacing: 1px; line-height: 1.6; text-align: center; }

/* Puzzle 3: Shipmate */

body[data-room="mass-effect"] .qr-me-shipmate { display: flex; flex-direction: column; gap: 14px; }
body[data-room="mass-effect"] .qr-me-shipmate-roster,
body[data-room="mass-effect"] .qr-me-shipmate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
body[data-room="mass-effect"] .qr-me-shipmate-card,
body[data-room="mass-effect"] .qr-me-shipmate-choice { min-height: 64px; border-color: var(--qr-me-metal-dark); background: rgba(70, 86, 94, 0.18); }
body[data-room="mass-effect"] .qr-me-shipmate-card:hover,
body[data-room="mass-effect"] .qr-me-shipmate-choice:hover { border-color: var(--qr-me-metal); background: rgba(132, 159, 170, 0.16); }
body[data-room="mass-effect"] .qr-me-shipmate-tag { color: var(--qr-me-gold); font-family: 'Press Start 2P', monospace; font-size: 9px; }
body[data-room="mass-effect"] .qr-me-shipmate-status { padding: 10px; border: 1px solid rgba(132, 159, 170, 0.28); border-radius: var(--qr-radius); color: #dbe5ea; background: rgba(132, 159, 170, 0.08); }
body[data-room="mass-effect"] .qr-me-shipmate-done,
body[data-room="mass-effect"] .qr-me-shipmate-continue { margin-top: 4px; }

/* Puzzle 4: Loyalty */

body[data-room="mass-effect"] .qr-me-loyalty { display: flex; flex-direction: column; gap: 14px; }
body[data-room="mass-effect"] .qr-me-loyalty-dossier,
body[data-room="mass-effect"] .qr-me-loyalty-stage { padding: 12px; border: 1px solid rgba(213, 183, 104, 0.34); border-radius: var(--qr-radius); background: rgba(213, 183, 104, 0.07); }
body[data-room="mass-effect"] .qr-me-loyalty-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
body[data-room="mass-effect"] .qr-me-loyalty-choice,
body[data-room="mass-effect"] .qr-me-loyalty-file { border-color: rgba(213, 183, 104, 0.44); background: rgba(8, 16, 30, 0.72); }
body[data-room="mass-effect"] .qr-me-loyalty-choice:hover,
body[data-room="mass-effect"] .qr-me-loyalty-file:hover { border-color: var(--qr-me-gold); background: rgba(213, 183, 104, 0.12); }
body[data-room="mass-effect"] .qr-me-loyalty-meter { height: 10px; overflow: hidden; border: 1px solid var(--qr-me-gold); border-radius: 999px; background: #03060e; }
body[data-room="mass-effect"] .qr-me-loyalty-meter-fill { height: 100%; background: linear-gradient(90deg, var(--qr-me-gold), var(--qr-me-renegade)); }
body[data-room="mass-effect"] .qr-me-loyalty-done,
body[data-room="mass-effect"] .qr-me-loyalty-continue { margin-top: 4px; }

/* Puzzle 5: Ending */

body[data-room="mass-effect"] .qr-me-ending { display: flex; flex-direction: column; gap: 14px; }
body[data-room="mass-effect"] .qr-me-ending-stage { position: relative; padding: 12px; border: 1px solid rgba(126, 73, 82, 0.58); border-radius: var(--qr-radius); background: rgba(126, 73, 82, 0.10); }
body[data-room="mass-effect"] .qr-me-ending-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
body[data-room="mass-effect"] .qr-me-ending-choice { min-height: 76px; border-color: rgba(126, 73, 82, 0.72); text-align: center; }
body[data-room="mass-effect"] .qr-me-ending-choice.control { border-color: var(--qr-me-paragon); color: #b9f1ff; }
body[data-room="mass-effect"] .qr-me-ending-choice.destroy { border-color: var(--qr-me-renegade); color: #ffc3a1; }
body[data-room="mass-effect"] .qr-me-ending-choice.synthesis { border-color: var(--qr-me-green); color: #d7efd4; }
body[data-room="mass-effect"] .qr-me-ending-choice:hover { box-shadow: inset 0 0 18px rgba(126, 73, 82, 0.22); }
body[data-room="mass-effect"] .qr-me-ending-status { min-height: 38px; padding: 10px; border-radius: var(--qr-radius); color: var(--qr-fg-dim); text-align: center; }
body[data-room="mass-effect"] .qr-me-ending-done,
body[data-room="mass-effect"] .qr-me-ending-continue { margin-top: 4px; }

/* Object hooks and animation */

body[data-room="mass-effect"] .qr-me-prop { width: 64px; height: 64px; image-rendering: pixelated; animation: qr-me-prop-bob 2400ms ease-in-out infinite; }
body[data-room="mass-effect"] .qr-me-prop.omni,
body[data-room="mass-effect"] .qr-me-prop.renegade { animation-delay: 180ms; }
body[data-room="mass-effect"] .qr-me-prop.relay,
body[data-room="mass-effect"] .qr-me-prop.biotic { filter: drop-shadow(0 0 10px rgba(74, 201, 232, 0.30)); }

@keyframes qr-me-stage-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qr-me-sprite-enter {
  0% { opacity: 0; transform: translateY(10px) scale(0.94); }
  55% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes qr-me-scene-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qr-me-panel-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes qr-me-prop-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes qr-me-choice-lift {
  from { transform: translateY(0); }
  to { transform: translateY(-1px); }
}

@keyframes qrShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Mobile */

@media (max-width: 520px) {
  body[data-room="mass-effect"] #qr-root { padding: 18px 12px; }
  body[data-room="mass-effect"] .qr-board { min-height: 320px; padding: 16px 12px; }
  body[data-room="mass-effect"] h2 { font-size: 13px; }
  body[data-room="mass-effect"] .qr-scene { margin-bottom: 14px; }
  body[data-room="mass-effect"] .qr-btn,
  body[data-room="mass-effect"] .qr-choice,
  body[data-room="mass-effect"] .qr-me-interrupt-zone { min-height: 44px; }
  body[data-room="mass-effect"] .qr-me-interrupt-status { grid-template-columns: 1fr; text-align: left; }
  body[data-room="mass-effect"] .qr-me-interrupt-stage { min-height: 340px; padding: 14px 10px; }
  body[data-room="mass-effect"] .qr-me-interrupt-prompts,
  body[data-room="mass-effect"] .qr-me-interrupt-zones,
  body[data-room="mass-effect"] .qr-me-shipmate-roster,
  body[data-room="mass-effect"] .qr-me-shipmate-grid,
  body[data-room="mass-effect"] .qr-me-ending-options,
  body[data-room="mass-effect"] .qr-me-citadel-map { grid-template-columns: 1fr; }
  body[data-room="mass-effect"] .qr-me-interrupt-prompt-card,
  body[data-room="mass-effect"] .qr-me-interrupt-zone { font-size: 10px; }
  body[data-room="mass-effect"] .qr-result-sprite { width: 168px; height: 168px; }
}

@media (max-width: 380px) {
  body[data-room="mass-effect"] #qr-root { padding: 14px 10px; }
  body[data-room="mass-effect"] .qr-board { padding: 14px 10px; }
  body[data-room="mass-effect"] .qr-btn { padding-inline: 10px; font-size: 9px; }
  body[data-room="mass-effect"] .qr-choice { padding: 11px 10px; }
  body[data-room="mass-effect"] .qr-me-interrupt-card,
  body[data-room="mass-effect"] .qr-outcome { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-room="mass-effect"] *,
  body[data-room="mass-effect"] *::before,
  body[data-room="mass-effect"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
