/* ============================================================
   Q-RX — Continuum RX Console Mode (qrx.css)
   A cinematic, controller-friendly "living-room console" shell
   that overlays the desktop. Shell-owned styles only; every
   element is prefixed .qrx- to stay isolated from core.css.
   ============================================================ */

/* Palette lives on :root so overlays appended to <body> (console menu,
   floating button, quit dialog) inherit the same tokens as the shell. */
:root {
  --qrx-magenta: #ff2e6d;
  --qrx-magenta-soft: #ff5c8a;
  --qrx-cyan: #22e6ff;
  --qrx-purple: #a855f7;
  --qrx-green: #34d399;
  --qrx-gold: #f0b429;
  --qrx-bg0: #05060f;
  --qrx-bg1: #0c0a1c;
  --qrx-bg2: #130f26;
  --qrx-glass: rgba(20, 18, 38, 0.55);
  --qrx-glass-2: rgba(28, 24, 50, 0.62);
  --qrx-glass-brd: rgba(255, 255, 255, 0.09);
  --qrx-text: #eef0fb;
  --qrx-dim: #97a0c0;
  --qrx-dim-2: #6b7396;
  --qrx-radius: 16px;
  --qrx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qrx-font: 'Segoe UI', 'SF Pro Display', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

.qrx-shell {
  position: fixed;
  inset: 0;
  z-index: 4000;
  font-family: var(--qrx-font);
  color: var(--qrx-text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  contain: strict;
}

/* Enter / exit transition ---------------------------------- */
.qrx-shell {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.42s var(--qrx-ease), transform 0.42s var(--qrx-ease);
  pointer-events: none;
}
.qrx-shell.qrx-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.qrx-shell.qrx-hidden { display: none; }
/* While a game is running the shell fades out but must not eat clicks. */
.qrx-shell.qrx-suspended {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.qrx-shell *,
.qrx-shell *::before,
.qrx-shell *::after { box-sizing: border-box; }

.qrx-shell button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================ Background ==================== */
.qrx-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 78% -12%, rgba(120, 70, 200, 0.35), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(255, 46, 109, 0.12), transparent 55%),
    linear-gradient(180deg, var(--qrx-bg1) 0%, var(--qrx-bg0) 60%, #04030a 100%);
  overflow: hidden;
}
/* Distant planet */
.qrx-bg::before {
  content: '';
  position: absolute;
  top: -180px; right: -60px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #3a2f5e 0%, #241a42 42%, #140d2a 70%, #0b0720 100%);
  box-shadow:
    inset -40px -30px 90px rgba(0, 0, 0, 0.6),
    inset 30px 20px 70px rgba(168, 85, 247, 0.18),
    0 0 120px rgba(120, 70, 200, 0.25);
  opacity: 0.75;
  animation: qrx-planet 60s linear infinite;
}
/* Perspective "synthwave" grid floor */
.qrx-bg-grid {
  position: absolute;
  left: -25%; right: -25%; bottom: -10%;
  height: 46%;
  background-image:
    linear-gradient(to right, rgba(255, 46, 109, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 230, 255, 0.22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(420px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 88%);
  animation: qrx-grid 6s linear infinite;
  opacity: 0.55;
}
.qrx-bg-glow {
  position: absolute;
  left: 0; right: 0; bottom: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--qrx-magenta), var(--qrx-cyan), transparent);
  filter: blur(6px);
  opacity: 0.5;
}
.qrx-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
/* Faint scanline texture, respects the OS CRT vibe */
.qrx-bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
}
@keyframes qrx-grid { from { background-position: 0 0; } to { background-position: 0 60px; } }
@keyframes qrx-planet { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }

/* ============================ Header ======================= */
.qrx-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(16px, 2.2vh, 30px) clamp(24px, 3vw, 54px) 6px;
  flex: 0 0 auto;
}
.qrx-brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.qrx-logo {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--qrx-magenta-soft) 55%, var(--qrx-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 46, 109, 0.55));
  position: relative;
}
.qrx-logo sup { font-size: 0.34em; font-style: normal; -webkit-text-fill-color: var(--qrx-magenta-soft); vertical-align: super; }
.qrx-brand-sub {
  display: flex; flex-direction: column; gap: 2px;
  font-size: clamp(9px, 0.85vw, 12px);
  color: var(--qrx-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.35;
}
.qrx-brand-sub span::before { content: '\203A  '; color: var(--qrx-cyan); }

.qrx-spacer { flex: 1 1 auto; }

/* Glass pill helper */
.qrx-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  background: var(--qrx-glass);
  border: 1px solid var(--qrx-glass-brd);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.qrx-clock { font-variant-numeric: tabular-nums; }
.qrx-clock-time { color: var(--qrx-cyan); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); text-shadow: 0 0 10px rgba(34, 230, 255, 0.45); }
.qrx-clock-sep { width: 1px; height: 18px; background: var(--qrx-glass-brd); }
.qrx-clock-date { color: var(--qrx-dim); font-size: clamp(12px, 1.1vw, 15px); display: inline-flex; gap: 8px; align-items: center; }
.qrx-clock-date svg { opacity: 0.8; }

.qrx-ambient { color: var(--qrx-dim); font-size: clamp(11px, 1vw, 13px); }
.qrx-ambient b { color: var(--qrx-text); font-weight: 600; }
/* Live equalizer bars */
.qrx-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.qrx-eq i {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--qrx-cyan), var(--qrx-magenta));
  animation: qrx-eq 1.1s ease-in-out infinite;
}
.qrx-eq i:nth-child(1) { animation-delay: -0.1s; }
.qrx-eq i:nth-child(2) { animation-delay: -0.5s; }
.qrx-eq i:nth-child(3) { animation-delay: -0.9s; }
.qrx-eq i:nth-child(4) { animation-delay: -0.3s; }
.qrx-eq i:nth-child(5) { animation-delay: -0.7s; }
.qrx-shell.qrx-muted .qrx-eq i { animation-play-state: paused; height: 4px !important; opacity: 0.4; }
@keyframes qrx-eq { 0%, 100% { height: 4px; } 50% { height: 15px; } }

.qrx-profile { gap: 12px; padding-left: 8px; padding-right: 8px; }
.qrx-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b3b7a, #241a42);
  border: 2px solid var(--qrx-magenta);
  box-shadow: 0 0 14px rgba(255, 46, 109, 0.4);
  display: grid; place-items: center;
  font-size: 20px; overflow: hidden;
  flex: 0 0 auto;
}
.qrx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qrx-profile-meta { display: flex; flex-direction: column; line-height: 1.15; }
.qrx-profile-name { font-weight: 700; font-size: 14px; }
.qrx-profile-lvl { font-size: 11px; color: var(--qrx-cyan); }

/* ============================ Body ========================= */
.qrx-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  padding: 6px clamp(20px, 3vw, 48px) 0;
  gap: 18px;
}

/* --- Sidebar --- */
.qrx-sidebar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}
.qrx-nav-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--qrx-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: transform 0.18s var(--qrx-ease), color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.qrx-nav-btn svg { width: 24px; height: 24px; }
.qrx-nav-btn:hover { color: var(--qrx-text); transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }
.qrx-nav-btn.is-active {
  color: #fff;
  border-color: var(--qrx-magenta);
  background: rgba(255, 46, 109, 0.14);
  box-shadow: 0 0 18px rgba(255, 46, 109, 0.4), inset 0 0 14px rgba(255, 46, 109, 0.18);
}
.qrx-nav-spacer { flex: 1 1 auto; }

/* --- Main column --- */
.qrx-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.qrx-greeting { margin: 2px 0 10px; }
.qrx-greeting h1 { margin: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.5px; }
.qrx-greeting h1 b { color: var(--qrx-cyan); font-weight: 800; text-shadow: 0 0 14px rgba(34, 230, 255, 0.4); }
.qrx-greeting p { margin: 4px 0 0; color: var(--qrx-dim); font-size: clamp(12px, 1.1vw, 15px); }

/* --- Category tabs --- */
.qrx-tabs {
  display: flex;
  gap: 10px;
  margin: 4px 0 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.qrx-tabs::-webkit-scrollbar { display: none; }
.qrx-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--qrx-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qrx-glass-brd);
  transition: color 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s, transform 0.16s;
  white-space: nowrap;
}
.qrx-tab svg { width: 16px; height: 16px; opacity: 0.9; }
.qrx-tab:hover { color: var(--qrx-text); transform: translateY(-1px); }
.qrx-tab.is-active {
  color: #fff;
  border-color: var(--qrx-magenta);
  background: rgba(255, 46, 109, 0.16);
  box-shadow: 0 0 16px rgba(255, 46, 109, 0.32);
}
.qrx-tab-count { font-size: 11px; color: var(--qrx-dim-2); }
.qrx-tab.is-active .qrx-tab-count { color: var(--qrx-magenta-soft); }

/* ============================ Carousel ===================== */
.qrx-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qrx-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 14px 0 6px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.qrx-track {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  will-change: transform;
  transition: transform 0.5s var(--qrx-ease);
}

.qrx-card {
  flex: 0 0 auto;
  width: var(--qrx-card-w, 236px);
  height: 100%;
  max-height: 396px;
  min-height: 0;
  border-radius: var(--qrx-radius);
  background: linear-gradient(180deg, rgba(30, 26, 52, 0.72), rgba(16, 13, 32, 0.72));
  border: 1px solid var(--qrx-glass-brd);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: transform 0.45s var(--qrx-ease), opacity 0.45s var(--qrx-ease),
              border-color 0.3s, box-shadow 0.35s;
  transform: scale(0.86);
  opacity: 0.5;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.qrx-card::after { /* accent aura tinted per app */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, var(--qrx-accent, transparent) 0%, transparent 55%);
  opacity: 0.16;
  pointer-events: none;
}
.qrx-card.is-near { transform: scale(0.95); opacity: 0.85; }
.qrx-card.is-selected {
  transform: scale(1.05);
  opacity: 1;
  border-color: var(--qrx-magenta);
  box-shadow:
    0 0 0 1px var(--qrx-magenta),
    0 0 34px rgba(255, 46, 109, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 26px rgba(255, 46, 109, 0.1);
}
.qrx-card.is-selected::after { opacity: 0.26; }

.qrx-card-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  color: var(--qrx-magenta-soft);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}
.qrx-card.is-favorite .qrx-card-badge { opacity: 1; }
.qrx-card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--qrx-dim);
  opacity: 0;
  transition: opacity 0.3s, color 0.2s, transform 0.2s;
}
.qrx-card.is-selected .qrx-card-fav { opacity: 1; }
.qrx-card-fav:hover { transform: scale(1.15); color: var(--qrx-magenta); }
.qrx-card.is-favorite .qrx-card-fav { color: var(--qrx-magenta); opacity: 1; }
.qrx-card-fav svg { width: 18px; height: 18px; }
.qrx-card-ver { font-size: 11px; color: var(--qrx-dim); margin-top: 2px; z-index: 1; }
.qrx-card-desc {
  font-size: 12px; color: var(--qrx-dim);
  margin: 10px 4px 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  z-index: 1;
}
.qrx-card-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; z-index: 1; }
.qrx-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.92;
}
.qrx-tag.t-fps, .qrx-tag.t-action { color: var(--qrx-magenta-soft); }
.qrx-tag.t-retro { color: var(--qrx-magenta); }
.qrx-tag.t-puzzle, .qrx-tag.t-adventure, .qrx-tag.t-arcade { color: var(--qrx-purple); }
.qrx-tag.t-platformer { color: var(--qrx-cyan); }
.qrx-tag.t-utility, .qrx-tag.t-files, .qrx-tag.t-system, .qrx-tag.t-creative { color: var(--qrx-green); }
.qrx-tag.t-default { color: var(--qrx-dim); }

/* ---- Capability flags (input / engine features) ---- */
.qrx-caps { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; z-index: 1; }
.qrx-cap {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--qrx-glass-brd);
  background: rgba(255, 255, 255, 0.03);
  color: var(--qrx-dim-2);
}
.qrx-cap svg { width: 14px; height: 14px; }
.qrx-cap--optional { color: var(--qrx-dim); }
.qrx-cap--required {
  color: var(--qrx-accent, var(--qrx-magenta-soft));
  border-color: var(--qrx-accent, var(--qrx-magenta));
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px -3px var(--qrx-accent, var(--qrx-magenta));
}

.qrx-card-icon {
  width: 120px; height: 120px;
  margin: 6px 0 4px;
  border-radius: 24px;
  display: grid; place-items: center;
  font-size: 66px;
  background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--qrx-ease);
}
.qrx-card.is-selected .qrx-card-icon { transform: translateY(-2px) scale(1.06); }
.qrx-card-icon img { width: 104px; height: 104px; object-fit: contain; image-rendering: pixelated; }
.qrx-card-title { font-size: 19px; font-weight: 800; margin-top: 12px; z-index: 1; }
.qrx-card-foot {
  margin-top: 14px;
  width: 100%;
  font-size: 12px;
  color: var(--qrx-dim-2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  z-index: 1;
}
.qrx-card-foot svg { width: 13px; height: 13px; }
.qrx-card-foot.installed { color: var(--qrx-cyan); }
/* Selected card swaps its footer for a Play button */
.qrx-card-play {
  margin-top: auto;
  width: 100%;
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  padding: 11px 0;
  border-radius: 11px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
  color: #fff;
  background: linear-gradient(180deg, var(--qrx-magenta-soft), var(--qrx-magenta));
  box-shadow: 0 8px 22px rgba(255, 46, 109, 0.45);
  z-index: 2;
  transition: transform 0.16s, box-shadow 0.2s, filter 0.2s;
}
.qrx-card.is-selected .qrx-card-play { display: flex; }
.qrx-card-play:hover { transform: translateY(-1px); filter: brightness(1.08); }
.qrx-card-play:active { transform: translateY(1px); }
.qrx-btn-key {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 11px; font-weight: 800;
  flex: 0 0 auto;
}

/* Arrows */
.qrx-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--qrx-text);
  background: var(--qrx-glass);
  border: 1px solid var(--qrx-glass-brd);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s, opacity 0.16s;
}
.qrx-arrow svg { width: 22px; height: 22px; }
.qrx-arrow.left { left: -6px; }
.qrx-arrow.right { right: -6px; }
.qrx-arrow:hover { border-color: var(--qrx-magenta); box-shadow: 0 0 16px rgba(255, 46, 109, 0.4); transform: translateY(-50%) scale(1.08); }
.qrx-arrow.is-disabled { opacity: 0.25; pointer-events: none; }

/* Dots */
.qrx-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.qrx-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.3s var(--qrx-ease), background 0.3s;
}
.qrx-dot.is-active { width: 26px; background: var(--qrx-magenta); box-shadow: 0 0 10px rgba(255, 46, 109, 0.6); }

/* ============================ Details panel ================ */
.qrx-details {
  flex: 0 0 auto;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--qrx-radius);
  background: var(--qrx-glass);
  border: 1px solid var(--qrx-glass-brd);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  min-height: 118px;
}
.qrx-details.qrx-fade { animation: qrx-detailfade 0.35s var(--qrx-ease); }
@keyframes qrx-detailfade { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.qrx-det-head { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.qrx-det-icon {
  width: 54px; height: 54px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.qrx-det-icon img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.qrx-det-titles { min-width: 0; }
.qrx-det-title { font-size: 18px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.qrx-det-title .v { font-size: 12px; color: var(--qrx-dim); font-weight: 600; }
.qrx-det-author { font-size: 12px; color: var(--qrx-dim); margin-top: 3px; }
.qrx-det-author b { color: var(--qrx-cyan); font-weight: 600; }
.qrx-author-link { color: var(--qrx-cyan); text-decoration: none; }
.qrx-author-link:hover { text-decoration: underline; }
.qrx-det-desc { font-size: 12px; color: var(--qrx-dim); margin-top: 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.qrx-det-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; min-width: 0; }
.qrx-meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qrx-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--qrx-dim-2); display: flex; align-items: center; gap: 5px; }
.qrx-meta-label svg { width: 12px; height: 12px; }
.qrx-meta-value { font-size: 13px; font-weight: 600; color: var(--qrx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrx-meta-value.ok { color: var(--qrx-cyan); }

.qrx-det-shot {
  width: 168px; height: 96px; border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--qrx-glass-brd);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.qrx-det-shot canvas, .qrx-det-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.qrx-det-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; min-width: 168px; }
.qrx-action {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--qrx-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qrx-glass-brd);
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.2s, color 0.15s;
  white-space: nowrap;
}
.qrx-action svg { width: 16px; height: 16px; flex: 0 0 auto; }
.qrx-action:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); border-color: var(--qrx-cyan); }
.qrx-action.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--qrx-magenta-soft), var(--qrx-magenta));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 46, 109, 0.4);
}
.qrx-action.primary:hover { filter: brightness(1.08); border-color: transparent; }
.qrx-action.danger:hover { border-color: var(--qrx-magenta); color: var(--qrx-magenta-soft); }
.qrx-action.is-fav-on { color: var(--qrx-magenta); border-color: var(--qrx-magenta); }

/* ============================ Footer hints ================= */
.qrx-footer {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  padding: 12px clamp(24px, 3vw, 54px);
  font-size: 12px;
  color: var(--qrx-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(0deg, rgba(5, 6, 15, 0.6), transparent);
  flex-wrap: nowrap;
  overflow: hidden;
}
.qrx-hint { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.qrx-hint svg { width: 15px; height: 15px; opacity: 0.85; }
.qrx-hint .qrx-key {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 6px; border: 1px solid var(--qrx-glass-brd); background: rgba(255, 255, 255, 0.05);
  font-size: 10px; font-weight: 800;
}
.qrx-hint .qrx-btn-key { width: 19px; height: 19px; font-size: 10px; }
.qrx-hint.accent .qrx-btn-key { color: var(--qrx-magenta); }
.qrx-footer-spacer { flex: 1 1 auto; }

/* ============================ Details View (mock 4) ======== */
.qrx-detailsview {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 2px 22px 10px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(12, 10, 28, 0.985) 0%, rgba(6, 6, 16, 0.99) 60%, rgba(4, 3, 10, 0.995) 100%);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s var(--qrx-ease), transform 0.35s var(--qrx-ease);
}
.qrx-detailsview.is-open { opacity: 1; transform: none; pointer-events: auto; }
.qrx-dv-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--qrx-dim); font-size: 13px; font-weight: 600;
  margin: 8px 0 14px; align-self: flex-start;
  transition: color 0.15s, transform 0.15s;
}
.qrx-dv-back:hover { color: var(--qrx-text); transform: translateX(-3px); }
.qrx-dv-back svg { width: 16px; height: 16px; }

.qrx-dv-hero { display: flex; gap: 30px; align-items: center; }
.qrx-dv-info { flex: 1 1 0; min-width: 0; }
.qrx-dv-icon {
  width: 108px; height: 108px; border-radius: 22px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 58px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
  border: 1px solid var(--qrx-magenta);
  box-shadow: 0 0 30px rgba(255, 46, 109, 0.4);
}
.qrx-dv-icon img { width: 90px; height: 90px; object-fit: contain; image-rendering: pixelated; }
.qrx-dv-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qrx-dv-title h1 { margin: 0; font-size: clamp(32px, 4vw, 54px); font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.qrx-dv-title .v { font-size: 15px; color: var(--qrx-dim); font-weight: 600; }
.qrx-dv-installed { font-size: 12px; font-weight: 700; color: var(--qrx-cyan); display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 12px; border: 1px solid var(--qrx-cyan); border-radius: 999px; }
.qrx-dv-tagline { color: var(--qrx-cyan); font-size: clamp(14px, 1.4vw, 18px); margin: 12px 0 6px; font-weight: 600; }
.qrx-dv-desc { color: var(--qrx-dim); font-size: 14px; line-height: 1.6; max-width: 620px; }
.qrx-dv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.qrx-dv-tags .qrx-tag { font-size: 11px; padding: 4px 12px; color: var(--qrx-magenta-soft); }
.qrx-dv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qrx-dv-actions .qrx-action { padding: 12px 22px; font-size: 14px; }

.qrx-dv-art {
  flex: 0 0 clamp(320px, 38vw, 560px);
  height: clamp(200px, 26vw, 320px);
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--qrx-glass-brd);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.qrx-dv-art canvas, .qrx-dv-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Metadata strip */
.qrx-dv-strip {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin: 26px 0;
  padding: 18px 26px;
  border-radius: var(--qrx-radius);
  background: var(--qrx-glass);
  border: 1px solid var(--qrx-glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Bottom three panels */
.qrx-dv-panels { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.qrx-panel {
  border-radius: var(--qrx-radius);
  background: var(--qrx-glass);
  border: 1px solid var(--qrx-glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
}
.qrx-panel h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.qrx-panel h3 .qrx-count { font-size: 12px; color: var(--qrx-cyan); font-weight: 700; }

.qrx-shots-main { position: relative; border-radius: 12px; overflow: hidden; height: 180px; margin-bottom: 10px; border: 1px solid var(--qrx-glass-brd); }
.qrx-shots-main canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.qrx-shots-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.25);
}
.qrx-shots-play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 46, 109, 0.85); display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(255, 46, 109, 0.6);
}
.qrx-shots-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.qrx-shots-thumbs { display: flex; gap: 8px; }
.qrx-shots-thumbs canvas { width: 100%; height: 54px; border-radius: 8px; border: 1px solid var(--qrx-glass-brd); cursor: pointer; transition: border-color 0.15s; flex: 1 1 0; }
.qrx-shots-thumbs canvas:hover, .qrx-shots-thumbs canvas.is-active { border-color: var(--qrx-magenta); }

.qrx-about p { margin: 0 0 14px; font-size: 13px; color: var(--qrx-dim); line-height: 1.6; }
.qrx-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qrx-feature { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--qrx-text); }
.qrx-feature .qrx-fi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 46, 109, 0.14); color: var(--qrx-magenta-soft); flex: 0 0 auto; }
.qrx-feature .qrx-fi svg { width: 16px; height: 16px; }

/* ---- Controls & Requirements legend (details view) ---- */
.qrx-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.qrx-req { display: flex; align-items: flex-start; gap: 11px; }
.qrx-req-ic {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--qrx-glass-brd);
  background: rgba(255, 255, 255, 0.03);
  color: var(--qrx-dim-2);
}
.qrx-req-ic svg { width: 16px; height: 16px; }
.qrx-req.qrx-cap--required .qrx-req-ic {
  color: var(--qrx-accent, var(--qrx-magenta-soft));
  border-color: var(--qrx-accent, var(--qrx-magenta));
  box-shadow: 0 0 10px -3px var(--qrx-accent, var(--qrx-magenta));
}
.qrx-req-name { font-size: 13px; font-weight: 700; color: var(--qrx-text); display: flex; align-items: center; gap: 8px; }
.qrx-req-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; color: var(--qrx-dim);
  border: 1px solid var(--qrx-glass-brd);
}
.qrx-req.qrx-cap--required .qrx-req-badge { color: var(--qrx-accent, var(--qrx-magenta-soft)); border-color: currentColor; }
.qrx-req-desc { font-size: 11.5px; color: var(--qrx-dim); line-height: 1.42; margin-top: 3px; }
@media (max-width: 720px) { .qrx-reqs { grid-template-columns: 1fr; } }

.qrx-achv { display: flex; flex-direction: column; gap: 14px; }
.qrx-achv-item { display: flex; gap: 12px; align-items: flex-start; }
.qrx-achv-ic {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--qrx-glass-brd); color: var(--qrx-dim);
}
.qrx-achv-ic svg { width: 20px; height: 20px; }
.qrx-achv-item.unlocked .qrx-achv-ic { color: var(--qrx-magenta); border-color: var(--qrx-magenta); background: rgba(255, 46, 109, 0.12); box-shadow: 0 0 14px rgba(255, 46, 109, 0.3); }
.qrx-achv-body { flex: 1 1 0; min-width: 0; }
.qrx-achv-name { font-size: 13px; font-weight: 700; }
.qrx-achv-desc { font-size: 11px; color: var(--qrx-dim); margin: 2px 0 6px; }
.qrx-achv-when { font-size: 11px; color: var(--qrx-magenta-soft); }
.qrx-progress-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.qrx-progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--qrx-cyan), var(--qrx-magenta)); }
.qrx-progress-num { font-size: 10px; color: var(--qrx-dim); margin-top: 4px; text-align: right; }
.qrx-achv-all { margin-top: 4px; }

/* ============================ Console Menu (mock 2) ======== */
.qrx-consolemenu {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 12, 0.55);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  font-family: var(--qrx-font, system-ui);
}
.qrx-consolemenu.is-open { display: flex; animation: qrx-menufade 0.3s var(--qrx-ease); }
@keyframes qrx-menufade { from { opacity: 0; } to { opacity: 1; } }
.qrx-cm-panel {
  width: min(440px, 92vw);
  max-height: 94vh;
  overflow-y: auto;
  outline: none;
  border-radius: 22px;
  padding: 30px 28px 24px;
  background: linear-gradient(180deg, rgba(24, 20, 44, 0.9), rgba(12, 10, 26, 0.92));
  border: 1px solid var(--qrx-glass-brd);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 46, 109, 0.14);
  color: var(--qrx-text, #eef0fb);
  animation: qrx-menupop 0.34s var(--qrx-ease);
}
@keyframes qrx-menupop { from { transform: scale(0.92) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.qrx-cm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.qrx-cm-head .qrx-logo { font-size: 26px; }
.qrx-cm-head .qrx-pill { margin-left: auto; padding: 6px 12px; font-size: 11px; }
.qrx-cm-game { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 22px; text-align: center; }
.qrx-cm-icon {
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
  border: 1px solid var(--qrx-magenta); box-shadow: 0 0 24px rgba(255, 46, 109, 0.4);
}
.qrx-cm-icon img { width: 62px; height: 62px; object-fit: contain; image-rendering: pixelated; }
.qrx-cm-title { font-size: 20px; font-weight: 800; }
.qrx-cm-ver { font-size: 12px; color: var(--qrx-dim); }
.qrx-cm-items { display: flex; flex-direction: column; gap: 8px; }
.qrx-cm-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--qrx-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
}
.qrx-cm-item svg { width: 20px; height: 20px; opacity: 0.9; }
.qrx-cm-item:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(2px); }
.qrx-cm-item.is-focus, .qrx-cm-item.primary {
  color: #fff;
  background: rgba(255, 46, 109, 0.16);
  border-color: var(--qrx-magenta);
  box-shadow: 0 0 18px rgba(255, 46, 109, 0.3);
}
.qrx-cm-item.danger.is-focus { border-color: var(--qrx-magenta); }
.qrx-cm-foot { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 12px; color: var(--qrx-dim); }
.qrx-cm-sub { margin-top: 12px; display: none; flex-direction: column; gap: 12px; }
.qrx-cm-sub.is-open { display: flex; }
.qrx-cm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; }
.qrx-cm-row label { color: var(--qrx-dim); }
.qrx-range { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); flex: 1 1 0; }
.qrx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--qrx-magenta); box-shadow: 0 0 8px rgba(255, 46, 109, 0.6); cursor: pointer; }
.qrx-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; flex: 0 0 auto; }
.qrx-switch.on { background: var(--qrx-magenta); }
.qrx-switch i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--qrx-ease); }
.qrx-switch.on i { transform: translateX(18px); }

/* ============================ Floating console button ======
   Mouse-only affordance (controller users press Guide). Centered at the very
   top, slim, and only shown while a game runs and the mouse is the active input. */
.qrx-fab {
  position: fixed;
  top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 4500;
  display: none;
  align-items: center; gap: 7px;
  padding: 4px 15px 4px 12px;
  border-radius: 999px;
  font-family: var(--qrx-font, system-ui);
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(12, 10, 26, 0.72);
  border: 1px solid var(--qrx-magenta);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 46, 109, 0.35);
  transition: transform 0.16s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0.85;
}
.qrx-fab.is-shown { display: inline-flex; }
.qrx-fab:hover { opacity: 1; transform: translateX(-50%) translateY(1px) scale(1.04); box-shadow: 0 7px 24px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 46, 109, 0.5); }
.qrx-fab-logo { font-weight: 900; font-style: italic; font-size: 14px; color: var(--qrx-magenta-soft); }

/* Hide the pointer while the controller is driving the shell (home view). */
.qrx-shell.qrx-pad { cursor: none; }

/* ============================ Launch flash ================= */
.qrx-launch-flash {
  position: fixed; inset: 0; z-index: 4800;
  background: radial-gradient(circle at 50% 55%, rgba(255, 46, 109, 0.5), rgba(5, 6, 15, 0.9) 70%);
  opacity: 0; pointer-events: none;
}
.qrx-launch-flash.go { animation: qrx-flash 0.62s var(--qrx-ease) forwards; }
@keyframes qrx-flash {
  0% { opacity: 0; transform: scale(1.15); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

/* ============================ Focus zones ================== */
/* The active navigation zone (carousel / left sidebar / details actions)
   glows while the others dim, so it's obvious where the cursor sits. The
   focus cursor itself is cyan to read clearly against magenta selection. */
.qrx-shell.zone-sidebar .qrx-main { opacity: 0.4; filter: saturate(0.85); transition: opacity 0.2s, filter 0.2s; }
.qrx-shell.zone-sidebar .qrx-sidebar {
  background: rgba(255, 46, 109, 0.06);
  box-shadow: 0 0 0 1px var(--qrx-magenta), 0 0 26px rgba(255, 46, 109, 0.28);
  border-radius: 18px;
}
.qrx-nav-btn.is-focus {
  color: #fff;
  border-color: var(--qrx-cyan);
  background: rgba(34, 230, 255, 0.16);
  box-shadow: 0 0 0 2px var(--qrx-cyan), 0 0 20px rgba(34, 230, 255, 0.5);
  transform: translateY(-1px) scale(1.06);
}
.qrx-shell.zone-actions .qrx-viewport,
.qrx-shell.zone-actions .qrx-tabs,
.qrx-shell.zone-actions .qrx-dots { opacity: 0.45; transition: opacity 0.2s; }
.qrx-shell.zone-actions .qrx-details {
  box-shadow: 0 0 0 1px var(--qrx-magenta), 0 0 26px rgba(255, 46, 109, 0.3), 0 14px 40px rgba(0, 0, 0, 0.4);
}
.qrx-action.is-focus {
  border-color: var(--qrx-cyan) !important;
  color: #fff;
  box-shadow: 0 0 0 2px var(--qrx-cyan), 0 0 20px rgba(34, 230, 255, 0.45);
  transform: translateY(-1px);
}
.qrx-action.primary.is-focus { box-shadow: 0 0 0 2px var(--qrx-cyan), 0 8px 22px rgba(255, 46, 109, 0.4), 0 0 20px rgba(34, 230, 255, 0.55); }

/* ============================ Quit confirm ================= */
.qrx-confirm {
  position: fixed; inset: 0; z-index: 5200;
  display: none; align-items: center; justify-content: center;
  background: rgba(4, 4, 12, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--qrx-font, system-ui);
}
.qrx-confirm.is-open { display: flex; animation: qrx-menufade 0.25s var(--qrx-ease); }
.qrx-confirm-card {
  width: min(420px, 92vw);
  border-radius: 20px; padding: 30px 28px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(24, 20, 44, 0.94), rgba(12, 10, 26, 0.96));
  border: 1px solid var(--qrx-glass-brd);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 46, 109, 0.16);
  color: var(--qrx-text); animation: qrx-menupop 0.3s var(--qrx-ease);
}
.qrx-confirm-icon {
  width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 16px;
  display: grid; place-items: center; color: var(--qrx-magenta-soft);
  background: rgba(255, 46, 109, 0.14); border: 1px solid var(--qrx-magenta);
  box-shadow: 0 0 22px rgba(255, 46, 109, 0.3);
}
.qrx-confirm-icon svg { width: 28px; height: 28px; }
.qrx-confirm-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.qrx-confirm-msg { font-size: 13px; color: var(--qrx-dim); line-height: 1.55; margin-bottom: 22px; }
.qrx-confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qrx-confirm-actions .qrx-action { justify-content: center; padding: 11px 20px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qrx-shell, .qrx-track, .qrx-card, .qrx-details, .qrx-detailsview, .qrx-consolemenu *,
  .qrx-bg::before, .qrx-bg-grid, .qrx-eq i { transition: none !important; animation: none !important; }
}

/* Compact heights for shorter screens */
@media (max-height: 860px) {
  .qrx-greeting { display: none; }
  .qrx-details { min-height: 0; padding: 12px 18px; gap: 16px; }
  .qrx-det-actions { min-width: 150px; }
  .qrx-action { padding: 7px 14px; font-size: 12px; }
  .qrx-card-icon { width: 100px; height: 100px; font-size: 56px; }
  .qrx-card-icon img { width: 88px; height: 88px; }
}
@media (max-height: 680px) {
  .qrx-header { padding-top: 12px; padding-bottom: 2px; }
  .qrx-body { padding-top: 2px; }
  .qrx-tabs { margin: 2px 0 8px; }
  .qrx-viewport { padding: 8px 0 2px; }
  .qrx-card-icon { width: 84px; height: 84px; font-size: 46px; margin: 2px 0; }
  .qrx-card-icon img { width: 74px; height: 74px; }
  .qrx-det-shot { display: none; }
  .qrx-details { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) auto; }
}
@media (max-height: 600px) {
  /* Very short (small laptop / windowed): give the carousel the whole stage.
     The selected card carries the key status; the full metadata/actions
     remain one keypress away in the Details view. */
  .qrx-header { padding-top: 8px; }
  .qrx-logo { font-size: 28px; }
  .qrx-brand-sub { display: none; }
  .qrx-tabs { margin: 0 0 8px; }
  .qrx-card-icon { width: 96px; height: 96px; font-size: 52px; }
  .qrx-card-icon img { width: 84px; height: 84px; }
  .qrx-details { display: none; }
  .qrx-footer { padding-top: 8px; padding-bottom: 8px; }
}
