/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700&display=swap');

/* Prideify - Native Seraphim / Netrunner Outer Site Design System */
:root,
[data-theme="netrunner"],
body.theme-netrunner {
  --color-slate-dark: #0d1a10;
  --color-stage-dark: #171412;
  --color-panel-dark: #08110a;
  --color-silver: #a8d5b5;
  --color-aqua: #2dd4bf;
  --color-teal: #2bca6d;
  --color-teal-dark: #1e944f;
  --color-teal-light: #35d477;
  --color-magenta: #ff4d80;
  --color-text-light: #e4ffec;
  --color-text-muted: #7ca889;
  --border-color-dim: rgba(43, 202, 109, 0.35);
  --border-color-accent: rgba(53, 212, 119, 0.7);
  --font-sans: "Press Start 2P", system-ui, monospace;
  --font-mono: "Press Start 2P", monospace;
  --bg-grid-color1: #171412;
  --bg-grid-color2: rgba(43, 202, 109, 0.08);
}

/* Alternate: Studio Teal */
[data-theme="studio"],
body.theme-studio {
  --color-slate-dark: #2d3134;
  --color-stage-dark: #373b3e;
  --color-panel-dark: #202325;
  --color-silver: #bec8d1;
  --color-aqua: #86cecb;
  --color-teal: #137a7f;
  --color-teal-dark: #0d5a5e;
  --color-teal-light: #189399;
  --color-magenta: #e12885;
  --color-text-light: #f1f5f9;
  --color-text-muted: #94a3b8;
  --border-color-dim: rgba(19, 122, 127, 0.35);
  --border-color-accent: rgba(134, 206, 203, 0.6);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --bg-grid-color1: #373b3e;
  --bg-grid-color2: #24272a;
}

/* Alternate: Cyberpunk Neon */
[data-theme="cyberpunk"],
body.theme-cyberpunk {
  --color-slate-dark: #18122B;
  --color-stage-dark: #211938;
  --color-panel-dark: #0F0A1C;
  --color-silver: #D4BEE4;
  --color-aqua: #00F0FF;
  --color-teal: #9b5de5;
  --color-teal-dark: #6a040f;
  --color-teal-light: #f72585;
  --color-magenta: #f72585;
  --color-text-light: #f8f9fa;
  --color-text-muted: #9d8189;
  --border-color-dim: rgba(247, 37, 133, 0.35);
  --border-color-accent: rgba(0, 240, 255, 0.7);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --bg-grid-color1: #211938;
  --bg-grid-color2: #140d24;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--color-stage-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.6;
}

button, input, select, textarea {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Scalable UI Icons (Handrolled Pixel SVGs) */
.icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: -1px;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-sm {
  width: 10px;
  height: 10px;
  vertical-align: -1px;
}
.icon-lg {
  width: 18px;
  height: 18px;
}

/* App Root Container with Container Query inline sizing */
.app-root {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  container-name: app-container;
  position: relative;
  background-color: var(--color-stage-dark);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-panel-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-teal);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-aqua);
}

/* Header */
.app-header {
  background-color: var(--color-slate-dark);
  border-bottom: 1px solid var(--border-color-dim);
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 30;
  flex-shrink: 0;
}

.logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background-color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-diamond {
  width: 0.875rem;
  height: 0.875rem;
  background-color: var(--color-magenta);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(225, 40, 133, 0.8);
}

/* Rainbow Animated Text */
.rainbow-text {
  background: linear-gradient(90deg, #e12885, #86cecb, #137a7f, #e12885);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: rainbowShift 4s linear infinite;
}

@keyframes rainbowShift {
  to {
    background-position: 200% center;
  }
}

/* Palette Indicator */
.palette-indicator-bar {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-panel-dark);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color-dim);
  font-size: 0.75rem;
}
@media (min-width: 1024px) {
  .palette-indicator-bar {
    display: flex;
  }
}

.color-swatch {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0.125rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Indicator & Live badge */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(134, 206, 203, 0.8); }
  70% { box-shadow: 0 0 0 6px rgba(134, 206, 203, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 206, 203, 0); }
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-aqua);
  animation: pulseGlow 2s infinite;
  display: inline-block;
}

/* Main Layout: Split into sidebar and workspace */
.app-main-layout {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Sidebar Sizing - Default Narrow / Stacked layout */
.app-sidebar {
  width: 100%;
  height: 44%;
  min-height: 180px;
  max-height: 48%;
  background-color: var(--color-slate-dark);
  border-bottom: 1px solid var(--border-color-dim);
  border-right: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  flex-shrink: 0;
}

/* Wide Container / Desktop Breakpoint: Side-by-Side */
@media (min-width: 720px) {
  .app-main-layout {
    flex-direction: row;
  }
  .app-sidebar {
    width: 380px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-right: 1px solid var(--border-color-dim);
    border-bottom: none;
  }
}

@container app-container (min-width: 720px) {
  .app-main-layout {
    flex-direction: row;
  }
  .app-sidebar {
    width: 380px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-right: 1px solid var(--border-color-dim);
    border-bottom: none;
  }
}

@container app-container (min-width: 1100px) {
  .app-sidebar {
    width: 420px;
  }
}

/* Sidebar Collapsed State */
.sidebar-collapsed .app-sidebar {
  display: none !important;
}

/* Embedded / Compact Mode */
.embedded .app-header {
  padding: 0.35rem 0.65rem;
}
.embedded .app-header .header-brand-desc,
.embedded .app-header .header-palette-indicators {
  display: none !important;
}
.embedded-minimal .app-header {
  display: none !important;
}

/* Workspace Area */
.app-workspace {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-stage-dark);
  overflow: hidden;
  position: relative;
  height: 100%;
}

/* Tab Navigation */
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color-dim);
  background-color: var(--color-panel-dark);
  font-size: 0.75rem;
  font-weight: 500;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-silver);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: center;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-aqua);
  background-color: rgba(134, 206, 203, 0.05);
}

.tab-btn.active {
  color: var(--color-aqua);
  border-bottom-color: var(--color-magenta);
  font-weight: 700;
  background-color: rgba(45, 49, 52, 0.6);
}

/* Sidebar Scrollable Panel */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--color-teal);
  background-color: var(--color-panel-dark);
  padding: 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover {
  border-color: var(--color-aqua);
  background-color: rgba(19, 122, 127, 0.15);
}
.dropzone-active {
  border-color: var(--color-magenta) !important;
  background-color: rgba(225, 40, 133, 0.15) !important;
}

.dropzone-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(19, 122, 127, 0.2);
  color: var(--color-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  border: 1px solid var(--border-color-dim);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
.dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

/* Form inputs & Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: var(--color-panel-dark);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border-color-dim);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-magenta);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(225, 40, 133, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--color-aqua);
  box-shadow: 0 0 12px rgba(134, 206, 203, 0.9);
}

select {
  width: 100%;
  background-color: var(--color-panel-dark);
  border: 1px solid var(--border-color-dim);
  font-size: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.5rem;
  color: var(--color-text-light);
  outline: none;
  transition: border-color 0.15s ease;
}
select:focus {
  border-color: var(--color-aqua);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-teal);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  box-shadow: 0 3px 0 0 var(--color-teal-dark), 0 4px 12px rgba(19, 122, 127, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background-color: var(--color-teal-light);
  box-shadow: 0 3px 0 0 var(--color-teal-dark), 0 6px 16px rgba(19, 122, 127, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 0 var(--color-teal-dark);
}

.btn-secondary {
  background-color: var(--color-panel-dark);
  color: var(--color-silver);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--border-color-dim);
}
.btn-secondary:hover {
  background-color: var(--color-slate-dark);
  color: #ffffff;
  border-color: var(--color-aqua);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-silver);
  border: 1px solid var(--border-color-dim);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  background-color: rgba(134, 206, 203, 0.08);
  color: #ffffff;
  border-color: var(--color-aqua);
}
.btn-active {
  background-color: var(--color-teal) !important;
  color: #ffffff !important;
  border-color: var(--color-aqua) !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(134, 206, 203, 0.3);
}

/* Stage Area & Canvases */
.app-stage-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-stage-dark);
  overflow: hidden;
  position: relative;
}

.stage-toolbar {
  background-color: var(--color-slate-dark);
  border-bottom: 1px solid var(--border-color-dim);
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  z-index: 10;
}

.canvas-bg-grid {
  background-color: var(--color-stage-dark);
  background-image: 
    linear-gradient(45deg, transparent 50%, rgba(43, 202, 109, 0.08) 50%),
    linear-gradient(-45deg, transparent 50%, rgba(43, 202, 109, 0.08) 50%);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
}

[data-theme="netrunner"] .canvas-bg-grid,
body.theme-netrunner .canvas-bg-grid {
  background-color: var(--color-panel-dark);
  background-image: 
    linear-gradient(rgba(43, 202, 109, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 202, 109, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.canvas-viewport {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Horizontal Side-by-Side Split View */
.stage-split-container {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.stage-split-container.stage-split-stacked {
  flex-direction: column !important;
  gap: 0.5rem;
}
.stage-split-container.stage-split-stacked .stage-divider-arrow {
  transform: rotate(90deg);
}

.stage-canvas-column {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-sizing: border-box;
}

.stage-canvas-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  background-color: var(--color-slate-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.stage-canvas-header-active {
  color: var(--color-aqua);
  background-color: rgba(19, 122, 127, 0.9);
  border-color: var(--border-color-accent);
}

.stage-canvas-card {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  background-color: var(--color-slate-dark);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.stage-canvas-card canvas,
#canvasSliderFiltered,
#canvasSliderOriginal,
#canvasFull {
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.stage-canvas-card-primary {
  border: 2px solid var(--color-teal);
  box-shadow: 0 0 25px rgba(19, 122, 127, 0.35);
}

.stage-canvas-card-secondary {
  border: 1px solid rgba(19, 122, 127, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stage-divider-arrow {
  color: var(--color-aqua);
  font-weight: 700;
  font-size: 1.75rem;
  opacity: 0.85;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(134, 206, 203, 0.5);
}

.stage-single-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Comparison Slider */
.slider-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-magenta);
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(225, 40, 133, 0.9);
  z-index: 20;
}

.slider-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-aqua);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-weight: bold;
}

/* Stage Footer */
.app-footer {
  background-color: var(--color-slate-dark);
  border-top: 1px solid var(--border-color-dim);
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-silver);
  font-family: var(--font-mono);
  z-index: 10;
}

/* Utility Helpers */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }
.h-auto { height: auto; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-2xl { font-size: 1.5rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-white { color: #ffffff; }
.bg-\[\#202325\] { background-color: var(--color-panel-dark); }
.bg-\[\#2d3134\] { background-color: var(--color-slate-dark); }
.bg-\[\#373b3e\] { background-color: var(--color-stage-dark); }
.bg-\[\#137a7f\] { background-color: var(--color-teal); }
.bg-\[\#137a7f\]\/90 { background-color: rgba(19, 122, 127, 0.9); }
.bg-\[\#137a7f\]\/20 { background-color: rgba(19, 122, 127, 0.2); }
.bg-\[\#1a1c1e\] { background-color: #1a1c1e; }
.border-\[\#137a7f\] { border-color: var(--color-teal); }
.border-\[\#137a7f\]\/30 { border-color: rgba(19, 122, 127, 0.3); }
.border-\[\#137a7f\]\/40 { border-color: rgba(19, 122, 127, 0.4); }
.border-\[\#137a7f\]\/50 { border-color: rgba(19, 122, 127, 0.5); }
.border-\[\#137a7f\]\/60 { border-color: rgba(19, 122, 127, 0.6); }
.border-\[\#86cecb\] { border-color: var(--color-aqua); }
.border-\[\#86cecb\]\/60 { border-color: rgba(134, 206, 203, 0.6); }
.border-\[\#373b3e\] { border-color: var(--color-stage-dark); }
.border-\[\#e12885\] { border-color: var(--color-magenta); }
.border-gray-600 { border-color: #4b5563; }
.text-\[\#bec8d1\] { color: var(--color-silver); }
.text-\[\#86cecb\] { color: var(--color-aqua); }
.text-\[\#e12885\] { color: var(--color-magenta); }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.select-none { user-select: none; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.block { display: block; }
.inline-block { display: inline-block; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.opacity-80 { opacity: 0.8; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
kbd {
  font-family: var(--font-mono);
  background-color: var(--color-panel-dark);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color-dim);
}

/* Netrunner theme typography scaling & scanline accents */
[data-theme="netrunner"] {
  font-size: 11px;
}
[data-theme="netrunner"] .btn,
[data-theme="netrunner"] button,
[data-theme="netrunner"] select,
[data-theme="netrunner"] input {
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.05em;
}
[data-theme="netrunner"] .tab-btn {
  font-size: 8px !important;
  padding: 0.5rem 0.25rem !important;
}
[data-theme="netrunner"] .stage-canvas-header {
  font-size: 8px !important;
}
[data-theme="netrunner"] .canvas-footer {
  font-size: 8px !important;
}

/* Quick Demos Grid */
.quick-demo-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background-color: var(--color-panel-dark);
  border: 1px solid var(--border-color-dim);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.quick-demo-btn:hover {
  border-color: var(--color-aqua);
  background-color: rgba(19, 122, 127, 0.2);
  transform: translateY(-1px);
}
.quick-demo-btn.active {
  border-color: var(--color-teal-light);
  background-color: rgba(19, 122, 127, 0.3);
  box-shadow: 0 0 8px rgba(134, 206, 203, 0.3);
}
.quick-demo-thumb {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  object-fit: cover;
  image-rendering: pixelated;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.quick-demo-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-demo-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-demo-desc {
  font-size: 0.6rem;
  color: var(--color-silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header theme selector */
.theme-select {
  background-color: var(--color-panel-dark);
  border: 1px solid var(--border-color-dim);
  color: var(--color-silver);
  font-size: 11px;
  border-radius: 0.25rem;
  padding: 0.25rem 0.4rem;
  outline: none;
  cursor: pointer;
}
.theme-select:focus {
  border-color: var(--color-aqua);
}
