/* Creative Circuit catalogs: editorial dispatches, arcade sleeves and project registers.
   Color follows the shared theme. Original game art remains unfiltered. */
.catalog-hero .hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.catalog-hero h1 { max-width: 12ch; }
.catalog-hero p { max-width: 54ch; }
.catalog-hero--news .hero-inner { grid-template-columns: minmax(0, 1fr) auto; }
.catalog-hero--news h1 { max-width: 17ch; }
.catalog-index { align-self: end; padding: 20px 0 20px 28px; border-left: 1px solid var(--line); font: 11px/1.7 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.catalog-index strong { display: block; font: 700 clamp(50px, 6vw, 84px)/1 var(--heading-font); letter-spacing: -.07em; color: var(--accent-text); margin-bottom: 16px; }
.catalog-section { padding: clamp(46px, 7vw, 92px) var(--page-pad); }
.catalog-section > .catalog-inner, .catalog-section > .news-layout { max-width: 1360px; margin-inline: auto; }
.catalog-section .section-header { display: flex; justify-content: space-between; gap: 26px; align-items: end; margin-bottom: 30px; }
.catalog-section .section-header h2 { font: 700 clamp(32px, 4vw, 54px)/1.08 var(--heading-font); letter-spacing: -.05em; margin: 8px 0 16px; }
.catalog-section .section-header p { color: var(--muted); max-width: 65ch; line-height: 1.75; }
.catalog-section .section-label { margin: 0; }
.library-count, .project-count { border-left: 1px solid var(--line); padding: 0 0 0 22px; min-width: 130px; flex-shrink: 0; }
.library-count strong, .project-count strong { display: block; color: var(--accent-text); font: 700 46px/1 var(--heading-font); letter-spacing: -.06em; }
.library-count span, .project-count span { display: block; margin-top: 8px; color: var(--muted); font: 10px/1.6 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto; gap: 18px; align-items: end; padding: 20px 0 24px; border-block: 1px solid var(--line); margin-bottom: 12px; }
.catalog-field { display: grid; gap: 9px; min-width: 0; }
.catalog-field label { font: 700 10px/1.5 var(--body-font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.catalog-field input, .catalog-field select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; font: 14px/1.5 var(--body-font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.catalog-field input::placeholder { color: var(--muted); opacity: 1; }
.catalog-field input:focus, .catalog-field select:focus { border-color: var(--accent); }
.catalog-tools .btn-outline { min-height: 48px; }
.catalog-result { margin: 0 0 25px; color: var(--muted); font: 11px/1.6 ui-monospace, monospace; }
.catalog-empty { padding: 30px 24px; border: 1px dashed var(--line); background: var(--surface); margin-bottom: 24px; }
.catalog-empty h2, .catalog-empty h3 { font-size: 22px; margin: 0 0 10px; }
.catalog-empty p { color: var(--muted); margin: 0; }
[data-catalog-item][hidden], [data-catalog-empty][hidden] { display: none !important; }
.tag, .badge, .status-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font: 700 10px/1.5 var(--body-font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 2px; }
.badge-row, .status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tag, .badge.hot, .badge.live { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.meta { color: var(--muted); font: 11px/1.8 ui-monospace, monospace; margin: 13px 0 18px; }
body[data-site] .read-more, body[data-site] .play-btn, body[data-site] .dev-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 700 13px/1.5 var(--body-font); text-decoration: none; color: var(--accent-text); }
.read-more:hover, .play-btn:hover, .dev-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 270px); gap: clamp(28px, 5vw, 68px); align-items: start; }
.news-feed, .news-sidebar { min-width: 0; }
.news-feed .catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto; }
.featured-story { margin: 0 0 30px; display: grid; grid-template-columns: minmax(160px, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--surface); box-shadow: 5px 5px 0 var(--bg); }
.featured-story > img { width: 100%; height: 100%; min-height: 280px; object-fit: contain; display: block; background: #10171c; }
.featured-content { padding: clamp(22px, 3vw, 34px); min-width: 0; }
.featured-content h2 { font: 700 clamp(24px, 2.5vw, 35px)/1.13 var(--heading-font); letter-spacing: -.035em; margin: 18px 0 0; }
.featured-content > p:not(.meta) { color: var(--muted); line-height: 1.75; font-size: 14px; }
.article-feed { border-top: 1px solid var(--line); counter-reset: dispatch; }
.article-row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 26px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.article-row > img { width: 100%; height: 125px; padding: 12px; object-fit: contain; background: #102a36; border: 1px solid var(--line); }
.article-row > img[src*='geoThumb'] { padding: 0; background: #10171c; }
.article-row h2 { font: 700 clamp(23px, 2.2vw, 29px)/1.15 var(--heading-font); letter-spacing: -.025em; margin: 0; }
.article-row p:not(.meta) { color: var(--muted); line-height: 1.7; font-size: 14px; }
.article-row .meta { margin-block: 10px; }
.news-sidebar { padding-top: 20px; }
.sidebar-card { padding: 20px 0 26px; border-top: 3px solid var(--accent); margin-bottom: 28px; }
.sidebar-card h2 { font: 700 23px/1.2 var(--heading-font); letter-spacing: -.03em; margin: 0 0 18px; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.category-list strong { color: var(--accent-text); font-family: ui-monospace, monospace; }
.quick-note { font-size: 14px; color: var(--muted); line-height: 1.8; }
.featured-game { position: relative; min-width: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: 7px 7px 0 var(--surface-raised); }
.featured-game::before { content: ''; position: absolute; top: -3px; left: -1px; width: 78px; height: 3px; background: var(--accent); pointer-events: none; }
.featured-game > img { width: 100%; height: clamp(180px, 20vw, 275px); object-fit: contain; display: block; background: #10171c; }
.featured-details { padding: 25px 28px 23px; }
.featured-details h2 { font: 700 37px/1.05 var(--heading-font); letter-spacing: -.05em; margin: 17px 0 12px; }
.catalog-hero .featured-details p { font-size: 14px; line-height: 1.7; margin: 0 0 15px; color: var(--muted); }
.game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); gap: 12px; }
.game-stats .stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.game-stats strong { font-size: 12px; }
.game-stats span { font: 10px/1.5 ui-monospace, monospace; color: var(--muted); text-transform: uppercase; }
.game-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 25px; }
.game-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); min-width: 0; position: relative; }
.game-card::after { content: ''; position: absolute; left: -1px; bottom: -1px; width: 55px; height: 3px; background: var(--accent); pointer-events: none; }
.game-cover { position: relative; display: flex; align-items: center; justify-content: center; height: 240px; background: #10171c; overflow: hidden; }
.game-cover > img:not(.game-card-logo) { width: 100%; height: 100%; display: block; object-fit: contain; }
.game-cover .status-pill { position: absolute; z-index: 5; top: 15px; left: 15px; background: #102a36; border-color: #6f96a8; color: #f1f4ee; }
.game-cover img.game-card-logo { position: absolute; z-index: 6; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid #416579; border-radius: 3px; object-fit: contain; }
.game-info { display: flex; flex-direction: column; padding: 27px; flex: 1; }
.game-info h3 { font: 700 clamp(26px, 2.5vw, 34px)/1.15 var(--heading-font); letter-spacing: -.035em; margin: 0 0 16px; }
.game-info > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 24px; }
.game-meta, .dev-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; padding-block: 18px; border-block: 1px solid var(--line); margin-top: auto; }
.meta-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.meta-item span { color: var(--muted); font: 10px/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }
.meta-item strong { font-size: 12px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.game-info .play-btn { margin-top: 17px; }
.coming-section, .stack-section { border-top: 1px solid var(--line); }
.coming-box, .stack-box { max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.coming-box h2, .stack-box h2 { font: 700 clamp(30px, 4vw, 47px)/1.1 var(--heading-font); letter-spacing: -.045em; margin: 0 0 17px; }
.coming-box p, .stack-box p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 64ch; }
.mini-tags, .stack-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-tags span, .stack-tags span { border-bottom: 1px solid var(--line); padding: 10px 5px; color: var(--muted); font: 11px/1.6 ui-monospace, monospace; }
.terminal-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: 7px 7px 0 var(--surface-raised); }
.terminal-top { display: flex; gap: 7px; padding: 18px; border-bottom: 1px solid var(--line); }
.terminal-dot { width: 7px; height: 7px; border: 1px solid var(--muted); }
.terminal-dot:first-child { background: var(--accent); border-color: var(--accent); }
.terminal-body { padding: 25px; }
.catalog-hero .terminal-body p { font: 12px/1.9 ui-monospace, monospace; color: var(--muted); margin: 0 0 13px; overflow-wrap: anywhere; }
.terminal-body .command, .terminal-body .success { color: var(--accent-text); }
.terminal-body .comment { color: var(--muted); font-size: 11px; }
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; counter-reset: project; border-top: 1px solid var(--line); }
.dev-card { display: flex; flex-direction: column; min-width: 0; padding: 30px 0 32px; border-bottom: 1px solid var(--line); counter-increment: project; }
.dev-card-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.dev-icon { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.dev-icon::before { content: '0' counter(project); font: 10px/1.5 ui-monospace, monospace; color: var(--muted); }
.dev-icon svg { width: 24px; height: 24px; }
.dev-card-body { display: flex; flex-direction: column; flex: 1; }
.dev-card-body h3 { font: 700 clamp(25px, 2.5vw, 32px)/1.16 var(--heading-font); letter-spacing: -.035em; margin: 0 0 16px; }
.dev-card-body > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 23px; }
.dev-link { margin-top: 16px; }
.workflow-section { background: var(--surface); border-block: 1px solid var(--line); }
.workflow-box { max-width: 1360px; margin-inline: auto; }
.workflow-box > h2 { font: 700 clamp(33px, 4vw, 52px)/1.1 var(--heading-font); letter-spacing: -.05em; margin: 0 0 20px; }
.workflow-box > p { color: var(--muted); max-width: 64ch; line-height: 1.8; font-size: 15px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 38px; }
.workflow-step { position: relative; border-top: 1px solid var(--line); padding-top: 20px; }
.workflow-step > strong { color: var(--accent-text); font: 11px/1.5 ui-monospace, monospace; }
.workflow-step h3 { font: 700 26px/1.2 var(--heading-font); letter-spacing: -.025em; margin: 16px 0 13px; }
.workflow-step p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.stack-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack-box > p { grid-column: 1; }
.stack-box .stack-tags { grid-column: 2; grid-row: 1 / 3; }
/* Existing prototype cover artwork is part of those games, not stock illustration. */
.armed-orbit-cover { background: radial-gradient(circle at 50% 48%, #1cceff2e, transparent 34%), linear-gradient(145deg, #030914, #102337 58%, #080d1a); }
.armed-orbit-cover::before, .firewall-cover::before { content: ''; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(#4cb8e843 1px, transparent 1px), linear-gradient(90deg, #4cb8e843 1px, transparent 1px); background-size: 32px 32px; }
.orbit-card-art { position: relative; width: min(100%, 400px); height: 100%; }
.orbit-card-ring { position: absolute; left: 50%; top: 49%; width: 205px; height: 112px; border: 2px solid #4adaff38; border-radius: 50%; transform: translate(-50%, -50%) rotate(-10deg); box-shadow: 0 0 30px #2ed0ff14; }
.orbit-card-fighter { position: absolute; z-index: 2; width: 54px; height: 54px; border: 4px solid #ffffffb8; border-radius: 50%; box-shadow: 0 0 24px currentColor; }
.orbit-card-fighter::before { content: ''; position: absolute; left: 50%; top: 50%; width: 88px; height: 9px; border: 3px solid #02070eb8; border-radius: 999px; background: currentColor; transform-origin: 0 50%; }
.orbit-card-fighter.cyan { left: 24%; top: 48%; color: #24d7ff; background: #1598bf; }
.orbit-card-fighter.cyan::before { transform: rotate(-27deg); }
.orbit-card-fighter.red { right: 24%; top: 24%; color: #ff5579; background: #b3294b; }
.orbit-card-fighter.red::before { width: 76px; height: 14px; transform: rotate(143deg); }
.orbit-card-spark { position: absolute; z-index: 3; left: 51%; top: 37%; width: 13px; height: 13px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 10px #fff); }
.orbit-card-title, .firewall-card-title { position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translateX(-50%); color: #effaff; font: 700 clamp(15px, 1.5vw, 20px)/1.2 var(--heading-font); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 18px #23d8ff85; }
.firewall-cover { background: radial-gradient(circle at 50% 48%, #00ddff2e, transparent 34%), linear-gradient(145deg, #020812, #0a1a2e 58%, #07111f); }
.firewall-card-art { position: relative; width: min(100%, 390px); height: 100%; }
.firewall-card-link { position: absolute; z-index: 1; height: 3px; border-radius: 999px; background: #17d8ff94; box-shadow: 0 0 12px #17d8ff73; transform-origin: left center; }
.firewall-card-link.one { width: 92px; left: 20%; top: 43%; transform: rotate(-26deg); }
.firewall-card-link.two { width: 92px; left: 20%; top: 51%; transform: rotate(25deg); }
.firewall-card-link.three { width: 100px; left: 46%; top: 30%; transform: rotate(24deg); }
.firewall-card-link.four { width: 100px; left: 46%; top: 65%; transform: rotate(-25deg); }
.firewall-card-link.five { width: 112px; left: 46%; top: 50%; }
.firewall-card-node { position: absolute; z-index: 2; width: 25px; height: 25px; border: 3px solid #17d8ff; border-radius: 8px; background: #0b2034; box-shadow: 0 0 18px #17d8ffad; }
.firewall-card-node.gateway { left: 14%; top: 44%; transform: rotate(45deg); border-color: #ff6680; }
.firewall-card-node.relay-a { left: 43%; top: 23%; }
.firewall-card-node.relay-b { left: 43%; top: 59%; }
.firewall-card-node.core { right: 13%; top: 43%; width: 34px; height: 34px; border-radius: 50%; border-color: #55f2b0; box-shadow: 0 0 22px #55f2b0b3; }
.catalog-signal { width: 180px; margin-top: 24px; color: var(--accent); }
.catalog-signal svg { display: block; width: 100%; height: auto; overflow: visible; }
.catalog-signal .signal-wire { stroke: var(--line); stroke-width: 1; }
.catalog-signal .signal-flow { stroke: currentColor; stroke-width: 2; stroke-dasharray: 8 92; animation: catalog-signal-flow 5s linear infinite; animation-play-state: paused; }
.catalog-signal circle { fill: var(--surface); stroke: currentColor; stroke-width: 1.5; }
.terminal-card .terminal-dot { animation: catalog-status-light 3.4s ease-in-out infinite; animation-play-state: paused; }
.terminal-card .terminal-dot:nth-child(2) { animation-delay: .6s; }
.terminal-card .terminal-dot:nth-child(3) { animation-delay: 1.2s; }
.orbit-card-art .orbit-card-ring { animation: catalog-orbit-turn 12s linear infinite; animation-play-state: paused; }
.firewall-card-art .firewall-card-node.core { animation: catalog-core-signal 3s ease-in-out infinite; animation-play-state: paused; }
html[data-circuit-motion='running'] [data-motion-active='true'] .signal-flow,
html[data-circuit-motion='running'] [data-motion-active='true'] .terminal-dot,
html[data-circuit-motion='running'] [data-motion-active='true'] .orbit-card-ring,
html[data-circuit-motion='running'] [data-motion-active='true'] .firewall-card-node.core { animation-play-state: running; }
@keyframes catalog-signal-flow { to { stroke-dashoffset: -100; } }
@keyframes catalog-status-light { 0%, 70%, 100% { opacity: .35; } 30% { opacity: 1; background-color: var(--accent); } }
@keyframes catalog-orbit-turn { from { transform: translate(-50%, -50%) rotate(-10deg); } to { transform: translate(-50%, -50%) rotate(350deg); } }
@keyframes catalog-core-signal { 0%, 100% { box-shadow: 0 0 16px #55f2b066; } 50% { box-shadow: 0 0 28px #55f2b0b3; } }
@media (prefers-reduced-motion: reduce) {
  .catalog-signal .signal-flow, .terminal-card .terminal-dot, .orbit-card-art .orbit-card-ring, .firewall-card-art .firewall-card-node.core { animation: none; }
}
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; }
  .featured-story { grid-template-columns: 1fr; }
  .featured-story > img { height: 240px; min-height: 0; }
  .news-feed .catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(140px, .65fr); }
  .news-feed .catalog-tools .btn-outline { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 800px) {
  .catalog-hero .hero-inner, .catalog-hero--news .hero-inner { grid-template-columns: 1fr; }
  .catalog-index { display: none; }
  .featured-game { max-width: 600px; }
  .featured-game > img { height: 220px; }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 0; }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr); }
  .catalog-tools .btn-outline { grid-column: 1 / -1; justify-self: start; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coming-box, .stack-box { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stack-box > p, .stack-box .stack-tags { grid-column: auto; grid-row: auto; }
  .dev-grid { column-gap: 26px; }
}
@media (max-width: 600px) {
  .catalog-tools, .news-feed .catalog-tools { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .catalog-tools .btn-outline { grid-column: auto; }
  .catalog-section .section-header { align-items: start; flex-direction: column; }
  .library-count, .project-count { display: flex; align-items: center; gap: 15px; border: 0; padding: 0; }
  .library-count strong, .project-count strong { font-size: 32px; }
  .library-count span, .project-count span { margin: 0; }
  .game-library, .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .game-cover { height: 210px; }
  .game-info, .featured-details, .featured-content { padding: 23px; }
  .article-row { grid-template-columns: minmax(75px, .32fr) minmax(0, 1fr); gap: 18px; }
  .article-row > img { height: 95px; padding: 5px; }
  .article-row h2 { font-size: 22px; }
  .news-sidebar { display: block; }
  .terminal-body { padding: 22px; }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
