/* Visual Test Page — zoomed grid for debugging sprites and effects */

.test-body {
  overflow: auto !important;
  height: 100vh;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: var(--bg-panel);
  border-bottom: 2px solid #ff6b6b;
}

.test-header h1 {
  font-size: 1.4rem;
  color: #ff6b6b;
  text-shadow: 0 0 15px rgba(255,107,107,0.5);
  letter-spacing: 0.2em;
}

.test-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.frame-info, .tick-info {
  font-size: 1rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.frame-info {
  color: var(--neon-yellow);
  background: rgba(255,230,109,0.1);
  border: 1px solid rgba(255,230,109,0.3);
}
.tick-info {
  color: var(--neon-cyan);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.3);
}

/* Arena layout — zoomed */
.test-arena {
  display: flex;
  height: calc(100vh - 5rem);
  gap: 1rem;
  padding: 1rem;
}

.test-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.test-grid-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-align: center;
}

/* The key: zoomed cells! Each cell is much bigger than production */
.test-grid-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.test-grid-container .grid {
  width: 100%;
  height: 100%;
  gap: 2px;
}

/* Zoomed cells — 4x bigger than production */
.test-grid-container .cell {
  font-size: 1.4rem;
  min-height: 80px;
}

/* Emoji sprites — zoomed square container */
.test-grid-container .sprite {
  width: 3rem;
  height: 3rem;
}

/* PNG sprite sheets — sizing is inline (pixel-exact from aspect ratio) */

.test-grid-container .sf {
  font-size: 2.5rem;
}

.test-grid-container .rank-badge {
  gap: 4px;
  margin-top: 2px;
}

.test-grid-container .rank-badge .color-dot {
  width: 12px;
  height: 12px;
}

.test-grid-container .rank-badge .rank-num {
  font-size: 1.2rem;
}

.test-grid-container .pax-icon {
  font-size: 1.8rem;
}

/* Freeze tracer animations — show beam statically for visual debugging */
.test-grid-container .cell.tracer {
  animation: none !important;
  opacity: 1 !important;
}

/* Sidebar */
.test-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Description panel */
.description-panel {
  background: var(--bg-panel);
  border-color: var(--neon-yellow) !important;
}

.description-panel h2 {
  color: var(--neon-yellow) !important;
}

.frame-description {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.5rem 0;
}
