/* Dumpster Fire -- UI chrome follows the joshuaaah.com colour bible (white-dominant, deep
   blackish purple structure, silver dividers, teal/orange as contextual accents). The wall
   itself (stage) is a deliberate dark/urban themed exception -- the art needs it. */
:root {
  --jx-bg: #FFFFFF; --jx-surface: #F7F6FA; --jx-surface-alt: #ECEAF1;
  --jx-black: #000000; --jx-black-soft: #0D0D10;
  --jx-primary: #1A0633; --jx-primary-hover: #2E1152; --jx-primary-deep: #0F0320;
  --jx-silver: #C4CED4; --jx-accent: #0D9488; --jx-accent-hover: #14B8A6;
  --jx-text: #121117; --jx-text-secondary: #6B6974; --jx-text-on-dark: #F2F1F5;
  --jx-border: #D8D5E0; --jx-success: #16A34A; --jx-warning: #D97706;
  --jx-spotlight: #F97316; --jx-spotlight-hover: #FB923C;
  --radius-sm: 8px; --radius-lg: 16px;
  --font-sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'SF Mono', Consolas, 'Courier New', monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { background: var(--jx-bg); color: var(--jx-text); font-family: var(--font-sans); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
a { color: var(--jx-primary); }

header.df { position: sticky; top: 0; z-index: 20; background: linear-gradient(90deg, var(--jx-black) 0%, var(--jx-primary) 55%, var(--jx-primary-deep) 100%);
  color: var(--jx-text-on-dark); border-bottom: 2px solid var(--jx-spotlight); }
header.df .in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
header.df .brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
header.df .mark { width: 30px; height: 30px; flex: 0 0 30px; }
header.df .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
header.df .tagline { font-size: .74rem; color: var(--jx-silver); display: block; margin-top: -2px; }
header.df nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
header.df nav a { color: var(--jx-text-on-dark); text-decoration: none; font-size: .85rem; padding: 5px 10px; border-radius: var(--radius-sm); }
header.df nav a:hover, header.df nav a.active { background: rgba(255,255,255,.1); box-shadow: inset 0 -2px 0 var(--jx-accent); }

main { max-width: 1280px; margin: 0 auto; padding: 14px 16px 40px; }
.intro { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.intro h1 { font-size: 1.5rem; color: var(--jx-primary); }
.intro p { margin: 0; color: var(--jx-text-secondary); font-size: .9rem; max-width: 820px; }

/* ---- the wall (themed dark exception) ---- */
.stage { position: relative; width: 100%; max-width: calc(72vh * 1.5); margin: 0 auto; aspect-ratio: 3 / 2;
  background: var(--jx-black-soft); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 40px rgba(15,3,32,.35), 0 0 0 1px var(--jx-primary); }
.stage img.surface, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img.surface { object-fit: fill; user-select: none; -webkit-user-drag: none; }
#graffitiCanvas { image-rendering: auto; }
#robotCanvas { pointer-events: none; z-index: 3; }
.stage .hud { position: absolute; left: 10px; bottom: 10px; z-index: 4; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: .68rem; color: var(--jx-text-on-dark);
  background: rgba(13,13,16,.78); border: 1px solid rgba(196,206,212,.25); border-left: 3px solid var(--jx-spotlight);
  backdrop-filter: blur(5px); padding: 5px 11px; border-radius: 7px; max-width: calc(100% - 20px); }
.stage .hud b { color: #fff; }
.stage .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--jx-spotlight); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 8px var(--jx-spotlight); animation: df-pulse 1.4s ease-in-out infinite; }
@keyframes df-pulse { 50% { opacity: .3; } }
.stage .badge { position: absolute; top: 10px; right: 10px; z-index: 4; display: none; padding: 4px 11px; border-radius: 999px;
  background: var(--jx-spotlight); color: var(--jx-black); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stage .badge.show { display: block; }
.stage .preview-flag { position: absolute; top: 10px; left: 10px; z-index: 4; padding: 4px 10px; border-radius: 999px; background: var(--jx-accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stage .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  color: var(--jx-text-on-dark); background: radial-gradient(ellipse at 50% 120%, rgba(249,115,22,.22), transparent 60%), linear-gradient(180deg, #121117, #0D0D10); }
.stage .empty h2 { font-size: 1.4rem; margin-bottom: 8px; }
.stage .empty p { max-width: 520px; color: var(--jx-silver); margin: 0; font-size: .92rem; }

.quip { text-align: center; margin: 10px auto 0; font-size: .86rem; color: var(--jx-text-secondary); font-style: italic; min-height: 1.4em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.card { background: linear-gradient(165deg, var(--jx-surface-alt), #ffffff); border: 1px solid var(--jx-border); border-radius: var(--radius-lg); padding: 14px 16px; }
.card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--jx-text-secondary); margin-bottom: 6px; }
.card .big { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--jx-primary); }
.card p { margin: 4px 0 0; font-size: .88rem; }
.card ul { margin: 4px 0 0; padding-left: 18px; font-size: .88rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--jx-border); background: #fff; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--jx-silver)); }
footer.df { background: var(--jx-black-soft); color: var(--jx-silver); font-size: .76rem; text-align: center; padding: 14px 16px; border-top: 2px solid var(--jx-primary); }
footer.df a { color: var(--jx-text-on-dark); }

@media (max-width: 600px) {
  .intro h1 { font-size: 1.25rem; }
  header.df nav { margin-left: 0; }
  .stage .hud { font-size: .6rem; gap: 8px; }
}
