/* Link Click Workspace. Dark Obsidian + acentos vivos (violeta, rosa, laranja, lima). Mobile primeiro. */
:root {
  --bg: #0a0a0c;
  --bg-2: #121214;
  --bg-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f7;
  --muted: #9b9ba6;
  --violet: #8b5cff;
  --pink: #ff3d8b;
  --orange: #ff7a1a;
  --yellow: #ffd23f;
  --lime: #b8ff3c;
  --mint: #22d3a6;
  --grad: linear-gradient(100deg, var(--violet), var(--pink) 50%, var(--orange));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: "Inter", system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-on body { overflow: hidden; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 16px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ================= ABERTURA ================= */
.intro { display: none; }
html.intro-on .intro {
  --core: clamp(150px, 25vmin, 250px);
  --cy: 34%;
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 34%, #17112a 0%, #0c0b12 55%, #070709 100%);
  perspective: 1400px;
}
.terrain, .wires, .grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grid-lines {
  background-image: linear-gradient(rgba(139, 92, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(60% 55% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 40%, #000 0%, transparent 100%);
  opacity: 0;
}
.wires { overflow: visible; }
.wires path { fill: none; stroke: url(#g-wire); stroke-width: 1.4; stroke-linecap: round; }
.wires .node { fill: #0c0b12; stroke: var(--lime); stroke-width: 2; }
.wires .pulse { fill: #fff; filter: drop-shadow(0 0 6px var(--pink)); }
.axis { position: absolute; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); pointer-events: none; }
.axis-x { left: 0; right: 0; top: var(--cy); height: 1px; transform: scaleX(0); }
.axis-y { top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.18), transparent); transform: scaleY(0); }

.core { position: absolute; left: 50%; top: var(--cy); width: var(--core); height: var(--core); margin: calc(var(--core) / -2) 0 0 calc(var(--core) / -2); }
.core svg { width: 100%; height: 100%; overflow: visible; }
.core circle { fill: none; }
.c-dotted { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; stroke-dasharray: 1.5 6; transform-origin: 120px 120px; opacity: 0; }
.c-track { stroke: rgba(255, 255, 255, 0.07); stroke-width: 12; opacity: 0; }
.c-arc { stroke: url(#g-arc); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 120px 120px; filter: drop-shadow(0 0 10px rgba(255, 61, 139, 0.55)); }
.c-ring { stroke: rgba(184, 255, 60, 0.45); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(90deg); transform-origin: 120px 120px; }
.c-thick { stroke: var(--violet); stroke-width: 9; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 120px 120px; filter: drop-shadow(0 0 12px rgba(139, 92, 255, 0.7)); }
.c-dot { fill: url(#g-dot) !important; filter: drop-shadow(0 0 14px rgba(184, 255, 60, 0.7)); }
.c-knob { fill: #fff !important; transform-origin: 120px 120px; opacity: 0; filter: drop-shadow(0 0 8px #fff); }

.loader { position: absolute; left: 50%; top: var(--cy); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; box-shadow: 0 0 30px rgba(184, 255, 60, 0.25); }
.loader i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #e8ffb0); }

.intro-copy { position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--core) / 2 + clamp(20px, 4vh, 44px)); display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2vh, 20px); pointer-events: none; }
.intro-title {
  margin: 0;
  font: 800 clamp(40px, min(8.6vw, 12.5vh), 112px)/0.95 var(--display);
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px transparent;
  text-shadow: none;
  white-space: nowrap;
}
.intro-title .ch { display: inline-block; color: transparent; -webkit-text-stroke: 1.2px var(--pink); will-change: transform, filter; }
.intro-steps { margin: 0; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 18px); font: 500 clamp(10px, 1.15vw, 14px)/1 var(--mono); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
.intro-steps span { opacity: 0; transition: color 0.4s var(--ease), text-shadow 0.4s; }
.intro-steps span.on { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.5); }
.intro-steps b { width: clamp(14px, 2vw, 26px); height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; position: relative; }
.intro-steps b::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--orange); border-right: 0; }

.intro-enter {
  pointer-events: auto;
  margin-top: clamp(6px, 2vh, 18px);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--lime); color: #101306; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  cursor: pointer; overflow: hidden; white-space: nowrap;
  box-shadow: 0 10px 40px rgba(184, 255, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0; visibility: hidden;
  transition: transform 0.25s var(--spring), box-shadow 0.3s;
}
.intro-enter:hover { transform: scale(1.04); box-shadow: 0 14px 54px rgba(184, 255, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.intro-enter:active { transform: scale(0.96); }
.intro-enter span, .intro-enter svg { flex: none; }

.intro-status { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; display: flex; justify-content: center; gap: 12px; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.intro-status .pct { color: var(--lime); font-size: 13px; font-variant-numeric: tabular-nums; }
.intro-tools { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 5; display: flex; gap: 8px; }
.intro-tools .icon-btn { border-radius: 999px; background: rgba(18, 18, 20, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--muted); }
.intro-start { position: absolute; left: 50%; top: calc(var(--cy) + 34px); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 64px; min-width: 220px; padding: 10px 22px; border: 0; border-radius: 20px; background: none; color: var(--ink); cursor: pointer; z-index: 4; }
.intro-start span { font: 600 15px/1 var(--sans); letter-spacing: 0.02em; }
.intro-start small { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.intro-start svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.intro-start:hover span { color: var(--lime); }
.sound-btn .s-off { display: none; }
.sound-btn.off .s-on { display: none; }
.sound-btn.off .s-off { display: block; }
.sound-btn.off { color: var(--muted); }
.topbar .sound-btn { margin-left: auto; }
@media (min-width: 761px) { .topbar .sound-btn { margin-left: 8px; } }
.intro-skip { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18, 18, 20, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--muted); font-size: 13px; cursor: pointer; z-index: 5; transition: color 0.2s, border-color 0.2s, transform 0.2s var(--spring); }
.intro-skip:hover { color: var(--ink); border-color: var(--line-2); }
.intro-skip:active { transform: scale(0.95); }

/* painéis */
.pnl { position: absolute; transform-style: preserve-3d; --tilt: 14deg; }
.pnl-in { position: relative; height: 100%; padding: clamp(10px, 1vw, 16px); border-radius: 16px; background: linear-gradient(160deg, rgba(36, 30, 56, 0.55), rgba(16, 15, 22, 0.55)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: clamp(8px, 0.9vw, 12px); opacity: 0; }
.pnl-in.row, .pnl .row { flex-direction: row; align-items: center; display: flex; gap: clamp(8px, 1vw, 14px); }
.b-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.b-outline rect { x: 0.5px; y: 0.5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: 16px; fill: none; stroke: rgba(196, 170, 255, 0.55); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chrome { display: flex; align-items: center; gap: 6px; }
.b-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transform: scale(0); }
.chrome .b-dot:nth-child(1) { background: var(--pink); }
.chrome .b-dot:nth-child(2) { background: var(--yellow); }
.chrome .b-dot:nth-child(3) { background: var(--lime); }
.chrome .url { height: 6px; flex: 1; margin-left: 8px; --w: 60%; }
.b-bar { display: block; height: 6px; width: var(--w, 80%); border-radius: 4px; background: rgba(255, 255, 255, 0.18); transform: scaleX(0); transform-origin: left; }
.lines { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lines.three { flex-direction: row; }
.lines.three .b-bar { flex: 1; }
.b-pill { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 12px; margin-top: 4px; border-radius: 999px; background: var(--lime); color: #11140a; font: 700 10px/1 var(--sans); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; opacity: 0; }
.b-pill.small { height: 18px; font-size: 9px; padding: 0 10px; }
.b-draw { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.b-fill { opacity: 0; }
.shot { border-radius: 10px; overflow: hidden; aspect-ratio: 300 / 140; background: rgba(255, 255, 255, 0.03); }
.shot svg { width: 100%; height: 100%; }
.shot .b-draw { stroke: #fff; stroke-width: 1.4; }
.cols { display: flex; gap: 12px; }
.side { width: 34%; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.thumb { position: relative; flex: none; width: 34%; aspect-ratio: 48 / 40; border-radius: 10px; background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: 62%; overflow: visible; }
.thumb.lime .b-draw { stroke: var(--lime); }
.upload-fill { position: absolute; inset: 0; background: linear-gradient(135deg, var(--violet), var(--pink)); transform: scaleY(0); transform-origin: bottom; mix-blend-mode: screen; opacity: 0.7; }
.player { flex: none; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.player svg { width: 64%; overflow: visible; }
.play-shape { fill: #fff; opacity: 0; transform-origin: 26px 24px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0; }
.progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile .b-draw { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.tile .render { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, var(--c2), var(--c1)); clip-path: inset(100% 0 0 0); }

.plus-btn { position: absolute; left: -22px; top: -26px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(20, 18, 28, 0.8); border: 1px solid rgba(184, 255, 60, 0.6); box-shadow: 0 0 24px rgba(184, 255, 60, 0.35); z-index: 3; transform: scale(0); }
.plus-btn svg { width: 22px; }
.plus-btn path { fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.cursor { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 6; opacity: 0; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.cursor path { fill: #fff; stroke: #0a0a0c; stroke-width: 1.2; stroke-linejoin: round; }
.cursor .ripple { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--lime); transform: scale(0); opacity: 0; }

/* posições — desktop */
.p-web { left: 3vw; top: 11vh; width: clamp(230px, 25vw, 420px); transform: rotateY(var(--tilt)); transform-origin: left center; }
.p-media { left: 5vw; top: 60vh; width: clamp(210px, 19vw, 330px); transform: rotateY(var(--tilt)); transform-origin: left center; }
.p-card { right: 5vw; top: 13vh; width: clamp(210px, 19vw, 330px); transform: rotateY(calc(var(--tilt) * -1)); transform-origin: right center; }
.p-video { right: 3vw; top: 37vh; width: clamp(220px, 21vw, 360px); transform: rotateY(calc(var(--tilt) * -1)); transform-origin: right center; }
.p-gallery { right: 4.5vw; top: 63vh; width: clamp(220px, 22vw, 370px); transform: rotateY(calc(var(--tilt) * -1)); transform-origin: right center; }

@media (max-width: 1080px) and (min-width: 761px) {
  .p-web { top: 8vh; } .p-media { top: 64vh; } .p-gallery { top: 66vh; }
  .intro-title { font-size: clamp(40px, 7.4vw, 90px); }
}
@media (max-width: 760px) {
  html.intro-on .intro { --cy: 38%; --core: clamp(130px, 40vw, 180px); }
  .pnl { --tilt: 0deg; }
  .pnl-in { padding: 8px; gap: 6px; border-radius: 12px; }
  .b-outline rect { rx: 12px; }
  .b-bar { height: 4px; }
  .lines { gap: 5px; }
  .b-pill, .b-pill.small { height: 15px; font-size: 7.5px; padding: 0 7px; }
  .p-web { left: -8vw; top: 5vh; width: 54vw; }
  .p-card { display: none; }
  .p-video { right: -7vw; top: 9vh; width: 46vw; }
  .p-media { left: -6vw; top: auto; bottom: 9vh; width: 46vw; }
  .p-gallery { right: -8vw; top: auto; bottom: 6vh; width: 52vw; }
  .intro-steps { letter-spacing: 0.2em; }
  .intro-status { bottom: max(10px, env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-height: 560px) and (min-width: 761px) { .p-media, .p-gallery { display: none; } }

.wipe { position: fixed; z-index: 250; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: radial-gradient(circle, var(--lime) 0%, var(--pink) 45%, var(--violet) 100%); pointer-events: none; transform: scale(0); visibility: hidden; }

/* ================= WORKSPACE ================= */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.16; animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: var(--violet); left: -20vmax; top: -24vmax; }
.bg i:nth-child(2) { background: var(--pink); right: -24vmax; top: 18vh; animation-delay: -8s; opacity: 0.1; }
.bg i:nth-child(3) { background: var(--orange); left: 20vw; bottom: -40vmax; animation-delay: -15s; opacity: 0.08; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.1); } }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font: 800 15px/1 var(--display); letter-spacing: 0.02em; }
.brand em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; }
.brand-mark { width: 30px; height: 30px; overflow: visible; }
.brand-mark .bd { fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.brand-mark .bd + .bd { stroke: var(--violet); }
.brand-mark .bf { fill: var(--lime); }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; transition: color 0.2s, background 0.2s; }
.topnav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.topbar .btn { margin-left: auto; }
@media (min-width: 761px) { .topnav { display: flex; } .topbar .btn { margin-left: 8px; } }
@media (max-width: 420px) { .brand em { display: none; } html.role-editor .brand span { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform 0.25s var(--spring), background 0.2s, box-shadow 0.3s; }
.btn:active { transform: scale(0.96); }
.btn-primary { border: 0; background: var(--lime); color: #101306; box-shadow: 0 6px 24px rgba(184, 255, 60, 0.22); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(184, 255, 60, 0.38); }
.btn .ic { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; }
.btn:hover .ic { animation: redraw 0.6s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow .num { color: var(--lime); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(184, 255, 60, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(184, 255, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 255, 60, 0); } }

.hero { padding: clamp(48px, 10vh, 120px) 0 clamp(36px, 7vh, 72px); }
.hero-title { margin: 0; font: 800 clamp(42px, 9vw, 116px)/0.98 var(--display); letter-spacing: -0.025em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero-sub { margin: 22px 0 0; max-width: 34ch; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.stats { display: flex; gap: 10px; margin: 32px 0 0; flex-wrap: wrap; }
.stats div { min-width: 104px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.stats dt { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 8px 0 0; font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font: 800 clamp(30px, 5vw, 56px)/1 var(--display); letter-spacing: -0.02em; }
.sec-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 40ch; }
.soon { font: 500 clamp(13px, 1.4vw, 16px)/1 var(--mono); letter-spacing: 0.06em; color: var(--yellow); vertical-align: middle; white-space: nowrap; }

.chips { position: relative; display: flex; padding: 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.chips button { position: relative; z-index: 1; min-height: 44px; padding: 0 16px; border: 0; background: none; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.3s; }
.chips button[aria-pressed="true"] { color: #101306; }
.chips button .count { margin-left: 6px; font: 500 11px var(--mono); opacity: 0.6; }
.chip-pill, .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 12px; background: var(--lime); box-shadow: 0 4px 18px rgba(184, 255, 60, 0.3); }

.projects { padding-bottom: clamp(56px, 10vh, 110px); }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--bg-2); isolation: isolate; text-align: left; border: 0; padding: 0; cursor: pointer; color: inherit; transition: transform 0.45s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:active { transform: scale(0.985); }
.card .b-outline rect { rx: 24px; stroke: var(--card-c, var(--line-2)); }
.card .b-outline { z-index: 3; }
.card.built .b-outline rect { stroke: var(--line); transition: stroke 0.6s; }
.card.built:hover .b-outline rect { stroke: var(--card-c); }
.cover { position: relative; margin: 8px 8px 0; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: transform 0.8s var(--ease); }
.card:hover .cover img { transform: scale(1.045); }
.skel { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.skel span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transform: scaleX(0); transform-origin: left; }
.skel span:first-child { height: 46%; border-radius: 10px; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--card-c, var(--lime)); box-shadow: 0 0 22px 4px var(--card-c, var(--lime)); opacity: 0; z-index: 2; }
.type-tag { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(10, 10, 12, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 600 11px/1 var(--sans); letter-spacing: 0.04em; }
.type-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--card-c); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-body h3 { margin: 0; font: 700 21px/1.15 var(--display); letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags span { font: 500 11px/1 var(--mono); padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: #c9c9d3; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font: 500 12px/1 var(--mono); color: var(--muted); }
.card-foot .open { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 600 13px var(--sans); transition: background 0.3s, color 0.3s; }
.card:hover .open { background: var(--card-c); color: #0a0a0c; }
.open svg { transition: transform 0.4s var(--spring); }
.card:hover .open svg { transform: translateX(3px); }
.reveal-txt { opacity: 0; }

.card-new { align-items: center; justify-content: center; gap: 14px; min-height: 280px; background: transparent; color: var(--muted); }
.card-new .b-outline rect { stroke: rgba(255, 255, 255, 0.22); stroke-dasharray: 0.012 0.012; stroke-dashoffset: 0; }
.card-new.built .b-outline rect { stroke: rgba(255, 255, 255, 0.2); }
.card-new:hover .b-outline rect { stroke: var(--lime); }
.new-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(184, 255, 60, 0.08); transition: transform 0.4s var(--spring), background 0.3s; }
.new-ic svg { width: 28px; }
.new-ic path { fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card-new:hover .new-ic { transform: rotate(90deg) scale(1.06); background: rgba(184, 255, 60, 0.16); }
.card-new strong { color: var(--ink); font-size: 16px; }
.card-new small { font-size: 13px; }

/* Lab / arcade */
.lab { padding-bottom: clamp(56px, 10vh, 110px); }
.arcade { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(18px, 3vw, 36px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 70% at 50% 0%, rgba(139, 92, 255, 0.12), transparent 70%), var(--bg-2); }
.cabinet { position: relative; width: min(100%, 448px); aspect-ratio: 224 / 256; border-radius: 22px; overflow: hidden; background: #020203; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 10px #18161f, 0 0 0 11px rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(139, 92, 255, 0.18); }
.cabinet canvas { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.crt { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.6) 100%); mix-blend-mode: multiply; animation: flicker 4s steps(2) infinite; }
@keyframes flicker { 50% { opacity: 0.86; } }
.pad { display: flex; gap: 12px; width: min(100%, 448px); }
.pad button { flex: 1; min-height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-3); display: grid; place-items: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.15s var(--spring), background 0.2s; }
.pad svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pad .fire { flex: 1.4; background: var(--pink); border: 0; color: #fff; font: 400 11px/1 var(--pixel); }
.pad button.down { transform: scale(0.94); background: #26232f; }
.pad .fire.down { background: #d92f73; }
@media (hover: hover) and (pointer: fine) { .pad { display: none; } }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; }

/* visor */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 12, 0.94); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--line); }
.viewer-title { margin: 0 auto 0 4px; font: 700 15px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.seg { position: relative; display: none; padding: 4px; border-radius: 14px; border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: color 0.3s; border-radius: 10px; }
.seg button[aria-pressed="true"] { color: #101306; }
.seg-pill { border-radius: 10px; }
@media (min-width: 761px) { .seg { display: flex; } }
.icon-btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; text-decoration: none; transition: transform 0.25s var(--spring), background 0.2s; }
.icon-btn:hover { background: #24242b; }
.icon-btn:active { transform: scale(0.93); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0; }
.device { width: 100%; height: 100%; overflow: hidden; background: #000; }
.device iframe { width: 100%; height: 100%; border: 0; background: #0a0a0c; }
@media (min-width: 761px) {
  .viewer-stage { padding: 20px; }
  .viewer-stage[data-device="phone"] .device { width: auto; height: min(844px, 100%); aspect-ratio: 390 / 844; border-radius: 46px; border: 10px solid #1d1b24; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 120px rgba(139, 92, 255, 0.18); }
  .viewer-stage[data-device="full"] .device { border-radius: 18px; border: 1px solid var(--line); }
}

/* subir projeto */
.sheet { width: min(560px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 28px 22px 24px; border-radius: 28px; border: 1px solid var(--line); background: rgba(22, 21, 28, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.sheet h2 { margin: 0 0 20px; font: 800 28px/1.05 var(--display); letter-spacing: -0.02em; }
.sheet-close { position: absolute; right: 14px; top: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.steps li > b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(184, 255, 60, 0.12); color: var(--lime); font: 800 14px var(--display); }
.steps strong { font-size: 16px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.steps code, .sheet-tip em { font-family: var(--mono); font-size: 12.5px; color: #e5ddff; font-style: normal; }
.cmd { margin-top: 10px; display: flex; align-items: stretch; gap: 8px; }
.cmd code { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; background: #0b0b0e; border: 1px solid var(--line); overflow-x: auto; white-space: nowrap; font-size: 12px; scrollbar-width: thin; }
.copy { flex: none; min-height: 48px; min-width: 76px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s var(--spring); }
.copy:active { transform: scale(0.94); }
.copy.ok { background: var(--lime); color: #101306; }
.sheet-tip { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) {
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ================= ENTRADA (quem está acessando) ================= */
html.gate-on body { overflow: hidden; }
html.gate-on .topbar, html.gate-on main, html.gate-on .foot { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(70% 60% at 50% 40%, #1a1230 0%, #0c0b12 60%, #070709 100%); overflow-y: auto; }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.gate-box .eyebrow { margin: 0; }
.gate-title { margin: 0 0 14px; font: 800 clamp(28px, 7vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; }
.users { display: flex; gap: 14px; justify-content: center; width: 100%; }
.user { flex: 1; max-width: 190px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px 18px; border-radius: 28px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: transform 0.4s var(--spring), border-color 0.3s, background 0.3s; }
.user:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
.user:active { transform: scale(0.97); }
.user strong { font: 700 18px/1 var(--display); }
.user small { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font: 800 26px/1 var(--display); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); flex: none; }
.a-cris { background: linear-gradient(140deg, var(--violet), var(--pink)); box-shadow: 0 12px 40px rgba(255, 61, 139, 0.35); }
.a-ph { background: linear-gradient(140deg, var(--orange), var(--yellow)); color: #1a1003; box-shadow: 0 12px 40px rgba(255, 122, 26, 0.35); }
.user.picked { pointer-events: none; }
.user[hidden], .view-only[hidden] { display: none; }
.pin { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.pin[hidden] { display: none; }
.pin-label { font-size: 15px; color: var(--muted); }
.pin-label b { color: var(--ink); }
.pin-boxes { display: flex; gap: 10px; }
.pin-boxes i { position: relative; width: 46px; height: 56px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); transition: border-color 0.25s, background 0.25s; }
.pin-boxes i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 0.35s var(--spring); }
.pin-boxes i.on::after { transform: scale(1); }
.pin-boxes i.cur { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(184, 255, 60, 0.15); }
.pin-boxes.bad i { border-color: var(--pink); background: rgba(255, 61, 139, 0.08); }
.pin-boxes.ok i { border-color: var(--lime); background: rgba(184, 255, 60, 0.14); }
.pin-boxes.ok i::after { background: var(--lime); }
.pin-input { position: absolute; top: 34px; left: 50%; width: 316px; max-width: 100%; height: 56px; translate: -50% 0; opacity: 0; font-size: 16px; border: 0; background: none; color: transparent; caret-color: transparent; cursor: pointer; }
.pin-msg { margin: 0; min-height: 20px; font-size: 14px; color: var(--pink); }
.pin-msg.wait { color: var(--muted); }
.text-btn { min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-btn:hover { color: var(--ink); }
.view-only { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: min(100%, 392px); border-radius: 18px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.25s var(--spring); }
.view-only svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.view-only:hover { border-style: solid; border-color: var(--lime); background: rgba(184, 255, 60, 0.06); }
.view-only:active { transform: scale(0.97); }

/* sessão no topo */
.session { display: flex; align-items: center; gap: 8px; }
.topbar .btn { margin-left: 0; }
.me { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.me .avatar { width: 34px; height: 34px; font-size: 11px; box-shadow: none; }
.me.viewing { padding: 0 14px; color: var(--muted); font-weight: 500; }
.me.viewing svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-ghost { background: transparent; }
@media (max-width: 520px) { .me-name, .me.viewing span { display: none; } .me.viewing { padding: 0 12px; } .brand em { display: none; } }
html:not(.role-editor) .editor-only { display: none !important; }

/* cards: botão de editar */
.card-wrap { position: relative; display: flex; flex-direction: column; }
.card-wrap > .card { flex: 1; }
.card-wrap[hidden] { display: none; }
.card-edit { position: absolute; z-index: 5; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 10, 12, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; transition: transform 0.3s var(--spring), background 0.2s; }
.card-edit:hover { background: var(--lime); color: #101306; transform: rotate(-8deg) scale(1.05); }
.card-edit:active { transform: scale(0.92); }
.card-edit svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* editor */
.form { display: flex; flex-direction: column; gap: 14px; }
.form > label, .form fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 6px; }
.form input:not([type="radio"]):not([type="file"]), .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #0d0d10; color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
.form textarea { resize: vertical; min-height: 72px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(184, 255, 60, 0.14); }
.cover-pick { position: relative; display: block !important; aspect-ratio: 5 / 2; border-radius: 18px; border: 1px dashed var(--line-2); background: #0d0d10; overflow: hidden; cursor: pointer; transition: border-color 0.2s; }
.cover-pick:hover { border-color: var(--lime); }
.cover-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cover-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.cover-empty svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.cover-empty b { color: var(--ink); font-size: 14px; }
.cover-empty small { font-weight: 400; }
.cover-pick img:not([hidden]) + .cover-empty { opacity: 0; transition: opacity 0.2s; background: rgba(0, 0, 0, 0.5); }
.cover-pick:hover img:not([hidden]) + .cover-empty { opacity: 1; }
.opts { flex-direction: row !important; flex-wrap: wrap; }
.opts legend { width: 100%; }
.opts label { position: relative; display: inline-flex !important; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 14px; transition: all 0.25s var(--ease); }
.opts input:checked + span { background: var(--lime); border-color: var(--lime); color: #101306; }
.opts input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.swatches { flex-direction: row !important; flex-wrap: wrap; gap: 10px !important; }
.swatches legend { width: 100%; }
.swatches label { position: relative; display: inline-flex; }
.swatches input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatches span { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid transparent; box-shadow: inset 0 0 0 3px #16151c; transition: transform 0.3s var(--spring); }
.swatches input:checked + span { border-color: var(--ink); transform: scale(1.08); }
.swatches input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-msg { margin: 0; min-height: 20px; font-size: 14px; color: var(--pink); }
.form-msg.ok { color: var(--lime); }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn-primary { flex: 1; }
.btn-danger { background: rgba(255, 61, 139, 0.12); border-color: rgba(255, 61, 139, 0.35); color: #ff9dc3; }
.btn-danger.armed { background: var(--pink); color: #fff; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.sheet code { font-family: var(--mono); font-size: 12px; color: #e5ddff; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 400; margin: 0; padding: 14px 20px; border-radius: 16px; background: rgba(28, 27, 34, 0.94); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; font-weight: 500; white-space: nowrap; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform 0.5s var(--spring), opacity 0.3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
