/* THE WISE GUY · Wise Bot — Concept 4 «Il cervello e il turno di notte» (29/11/2026). Solo token del sito.
   Il riquadro del cervello ha proporzioni fisse (poster e canvas sovrapposti): niente salti di layout. */
.cn-sec .twg-u-h2 em { font-style: normal; color: var(--accent-emerald); }
.cn-status { display: flex; width: fit-content; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.cn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-muted); }
.cn-sec[data-stato="live"] .cn-status { color: var(--accent-emerald); }
.cn-sec[data-stato="live"] .cn-dot { background: var(--accent-emerald); }
.cn-sec[data-stato="fermo"] .cn-status { color: var(--accent-amber); }
.cn-sec[data-stato="fermo"] .cn-dot { background: var(--accent-amber); }
.cn-quando { color: var(--fg-muted); letter-spacing: .04em; }

.cn-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; margin-top: 28px; align-items: stretch; }
.cn-brain { position: relative; margin: 0; min-height: 460px; overflow: hidden; border-radius: 18px; border: 1px solid var(--border-subtle); background: #06030f; box-shadow: var(--shadow-card); }
:root[data-theme="light"] .cn-brain { background: #f4f6fc; }
.cn-stage { position: absolute; inset: 0; }
.cn-poster, .cn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cn-poster { object-fit: cover; }
.cn-poster.is-light, :root[data-theme="light"] .cn-poster.is-dark { display: none; }
:root[data-theme="light"] .cn-poster.is-light { display: block; }
.cn-canvas { opacity: 0; transition: opacity .5s; }
.cn-sec.is-3d .cn-canvas { opacity: 1; }
.cn-scale { position: absolute; top: 14px; right: 16px; font: 500 11px var(--font-mono); color: var(--fg-muted); }
.cn-pills { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cn-pill { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-card-solid); border: 1px solid var(--border-subtle); }
.cn-pill b { display: block; font: 800 22px/1 var(--font-sans); letter-spacing: -.02em; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.cn-pill span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; color: var(--fg-muted); }

.cn-clockcard { display: flex; flex-direction: column; align-items: center; padding: 22px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.cn-stamp { align-self: flex-start; margin: 0; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.cn-clock { width: 100%; max-width: 320px; aspect-ratio: 1; }
.cn-ring { fill: none; stroke: var(--border-medium); }
.cn-night { fill: none; stroke: var(--accent-violet-soft); stroke-width: 22; }
.cn-tick { stroke: var(--fg-muted); }
.cn-hl, .cn-now { font: 500 12px var(--font-mono); fill: var(--fg-muted); text-anchor: middle; }
.cn-now { font-size: 11px; }
.cn-minuti circle { fill: var(--accent-emerald); opacity: .55; }
.cn-job { stroke: var(--bg-card-solid); stroke-width: 3; fill: var(--c); }
.cn-hand line { stroke: var(--fg-primary); stroke-width: 2.5; stroke-linecap: round; }
.cn-hand circle { fill: var(--fg-primary); }
.cn-c-violet { --c: var(--accent-violet); } .cn-c-cyan { --c: var(--accent-cyan); }
.cn-c-amber { --c: var(--accent-amber); } .cn-c-emerald { --c: var(--accent-emerald); }
.cn-jobs { width: 100%; display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.cn-row { display: grid; grid-template-columns: 12px 74px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--fg-secondary); }
.cn-row i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); align-self: center; }
.cn-row time { font: 600 12px var(--font-mono); color: var(--fg-primary); }
.cn-giro { display: block; font: 500 11px var(--font-mono); color: var(--fg-muted); min-height: 14px; }
.cn-giro.is-ko { color: var(--accent-amber); }
.cn-nota { margin: 16px 0 0; font-size: 13.5px; color: var(--fg-muted); }

@media (max-width: 1000px) { .cn-grid { grid-template-columns: 1fr; } .cn-brain { min-height: 0; aspect-ratio: 920 / 640; } }
@media (max-width: 640px) {
  .cn-brain { aspect-ratio: auto; }
  .cn-stage { position: relative; aspect-ratio: 1; }
  .cn-pills { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 10px 10px; }
  .cn-pill b { font-size: 20px; }
  .cn-scale { left: 12px; right: auto; top: 10px; }
  .cn-clockcard { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { .cn-canvas { transition: none; } }
