:root {
  --bg-deep: #060a14;
  --bg-cabinet: #0b1324;
  --bg-panel: #101c33;
  --bg-panel-hover: #152544;
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-strong: rgba(0, 240, 255, 0.55);

  --cyan: #00f0ff;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --gold: #fbbf24;
  --coral: #fb7185;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-pixel: "Silkscreen", monospace;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --glow-cyan: 0 0 24px rgba(0, 240, 255, 0.22);
  --glow-blue: 0 0 28px rgba(37, 99, 235, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 0.12em 0.42em;
  border-radius: 4px;
}

/* Ambient Perspective Grid & CRT */
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0, 240, 255, 0.11), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.14), transparent 50%),
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.crt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 12, 24, 0.26) 3px,
    rgba(0, 12, 24, 0.26) 4px
  );
}

body.crt-on .crt-overlay {
  display: block;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: 0.02em;
}

.pixel-label {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.muted-note { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-lg { padding: 0.85rem 1.45rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn { padding: 0.65rem 1.15rem; font-size: 0.92rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
  color: #030712;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.55);
}

.btn-secondary {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text-main);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.36);
  border-color: var(--cyan);
}

.btn-outline {
  background: rgba(11, 19, 36, 0.8);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.16), rgba(37, 99, 235, 0.25));
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow-cyan);
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--cyan);
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--cyan);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  cursor: pointer;
}

.chip-toggle .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.chip-toggle.active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.chip-toggle.active .dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 3.25rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(1.15);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 20, 0.96) 0%, rgba(6, 10, 20, 0.8) 55%, rgba(6, 10, 20, 0.9) 100%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.4) 0%, var(--bg-deep) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

.pixel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(11, 19, 36, 0.85);
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.85rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 54ch;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-box {
  min-width: 112px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid var(--border-subtle);
}

.stat-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--cyan);
}

/* Character Select Cabinet */
.duo-cabinet {
  background: rgba(11, 19, 36, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--glow-blue), 0 18px 50px rgba(0, 0, 0, 0.5);
}

.cabinet-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
}

.duo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.player-select-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.player-select-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.avatar-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #040914;
  border: 2px solid rgba(59, 130, 246, 0.45);
  margin-bottom: 0.75rem;
}

.player-select-card[data-player="jesse"] .avatar-frame {
  border-color: rgba(0, 240, 255, 0.55);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.avatar-placeholder-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  text-align: center;
  padding: 0.22rem 0.35rem;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px dashed rgba(0, 240, 255, 0.5);
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  color: var(--cyan);
}

.player-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.player-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.player-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.cabinet-footer {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3.25rem 0 1.25rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

/* Featured Spotlight */
.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.65rem;
  background: linear-gradient(145deg, rgba(16, 28, 51, 0.95), rgba(8, 15, 31, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--glow-cyan);
}

.featured-art {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.featured-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  background: rgba(6, 10, 20, 0.88);
  border: 1px solid var(--cyan);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--cyan);
}

.featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.featured-info h3 {
  font-size: 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.genre-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.genre-pill {
  background: rgba(0, 240, 255, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.tag-pill {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Library Controls */
.library-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.search-wrap input {
  width: 240px;
  padding: 0.58rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.pick-filters {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
}

.pick-btn {
  padding: 0.42rem 0.78rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.pick-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(37, 99, 235, 0.35));
  color: var(--cyan);
}

/* Genre Bar */
.genre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.genre-tab {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-cabinet);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.genre-tab:hover {
  color: var(--text-main);
  border-color: var(--blue-bright);
}

.genre-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue-bright));
  color: #030712;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

/* Game Shelf Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.3rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-cabinet);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.game-card.is-slot {
  border-style: dashed;
  border-color: rgba(0, 240, 255, 0.38);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #040812;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card:hover .card-cover img {
  transform: scale(1.04);
}

.card-num {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  background: rgba(6, 10, 20, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--cyan);
}

.card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
}

.status-playable {
  background: rgba(0, 240, 255, 0.18);
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.status-slot {
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem;
  gap: 0.65rem;
}

.card-body h3 {
  font-size: 1.32rem;
}

.card-story {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Creators Section */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.creator-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-cabinet);
  border: 1px solid var(--border-subtle);
}

.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--cyan);
  background: #040812;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.creator-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.creator-stats {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.creator-stats li + li {
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 10, 20, 0.9);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.85);
  backdrop-filter: blur(8px);
}

.modal-cabinet,
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-cabinet);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), var(--glow-cyan);
  overflow: hidden;
}

.modal-panel {
  width: min(760px, 100%);
}

.modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(6, 10, 20, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
}

.icon-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 290px;
  min-height: 0;
  flex: 1;
}

.stage-frame-wrap {
  background: #000;
  min-height: 520px;
  height: 74vh;
}

.stage-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage-sidebar {
  padding: 1.1rem;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.controls-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.controls-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(6, 10, 20, 0.6);
}

.controls-list kbd {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--cyan);
  white-space: nowrap;
}

.scoreboard-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.score-row input {
  width: 110px;
  padding: 0.32rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-cabinet);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  text-align: right;
}

.dev-story {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
}

/* Adder & Photo Booth Forms */
.adder-form,
.photobooth-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.adder-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.adder-form input,
.adder-form select,
.adder-form textarea,
.inline-select select {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.adder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.json-preview {
  margin: 0;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: #030712;
  border: 1px solid var(--border-subtle);
  color: #7dd3fc;
  font-size: 0.8rem;
  overflow-x: auto;
}

.photobooth-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.inline-select,
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.photobooth-preview-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#pixel-canvas {
  width: 256px;
  height: 256px;
  border-radius: var(--radius-md);
  border: 2px solid var(--cyan);
  background: #040914;
  image-rendering: pixelated;
}

.path-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.photobooth-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .featured-card,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .stage-frame-wrap {
    height: 55vh;
    min-height: 360px;
  }

  .stage-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }

  .duo-cards,
  .form-grid,
  .photobooth-preview-row,
  .creator-card {
    grid-template-columns: 1fr;
  }

  .search-wrap input {
    width: 100%;
  }
}
