/* Portfólio do João Basso: área de trabalho de Mac em cima do desenho dele. */
:root {
  --ar: 1.7684;               /* proporção do desenho (2688 x 1520) */
  --tinta: #17181c;
  --tinta-2: #4a4f58;
  --tinta-3: #8a8f98;
  --linha: rgba(0, 0, 0, .1);
  --vidro: rgba(255, 255, 255, .62);
  --vidro-forte: rgba(250, 250, 252, .9);
  --azul: #2f7cf6;
  --verde: #2fbf5b;
  --vermelho: #ff3b30;
  --sombra: 0 24px 60px rgba(20, 24, 40, .22), 0 2px 8px rgba(20, 24, 40, .12);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #fff;
  color: var(--tinta);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }

.ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vermelho); }
.ponto.verde { background: var(--verde); box-shadow: 0 0 0 3px rgba(47, 191, 91, .18); }

/* tela de início */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #fff; transition: opacity .6s ease, visibility .6s;
}
.boot b { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.boot span { font: 500 11px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .08em; }
.boot i { width: 140px; height: 3px; border-radius: 3px; background: #eceef1; overflow: hidden; }
.boot em { display: block; height: 100%; width: 0; background: var(--tinta); animation: carregar 1.1s ease forwards; }
@keyframes carregar { to { width: 100%; } }
.boot.sumiu { opacity: 0; visibility: hidden; }

/* barra de cima */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 30px; padding: 0 14px;
  display: flex; align-items: center; gap: 18px;
  background: var(--vidro); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px; font-weight: 500;
}
.barra-marca { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .01em; }
.barra-menu { display: flex; gap: 16px; }
.barra-menu button { opacity: .82; }
.barra-menu button:hover, .barra-marca:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.barra-pilula {
  margin: 0 auto; padding: 2px 12px; border-radius: 20px;
  background: rgba(0, 0, 0, .06); font: 600 10px var(--mono); letter-spacing: .14em;
}
.barra-status { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.barra-hora { font-variant-numeric: tabular-nums; font-size: 12px; min-width: 70px; text-align: right; }

/* cena em camadas */
.palco {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  perspective: 1400px;
}
.cena {
  position: relative;
  width: min(100vw, calc(100dvh * var(--ar)));
  aspect-ratio: var(--ar);
  transform-style: preserve-3d;
  container-type: inline-size;
  will-change: transform;
}
.camada { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.camada img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pastas { position: absolute; inset: 0; pointer-events: none; }
.pasta { pointer-events: auto; }

/* pastas em cima da mesa */
.pasta {
  position: absolute; width: 6.2cqw;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .35cqw;
  cursor: pointer; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.pasta > svg { width: 4.4cqw; height: auto; filter: drop-shadow(0 .25cqw .4cqw rgba(30, 60, 120, .28)); transition: transform .18s ease; }
.pasta:hover > svg, .pasta.na-mao > svg { transform: translateY(-.3cqw) scale(1.06); }
.pasta.arrastando { cursor: grabbing; z-index: 5; }
.pasta.arrastando > svg { transform: scale(1.12) rotate(-3deg); }
.pasta i.l { display: inline-block; font-style: normal; }
.pasta i.p { font-style: normal; white-space: nowrap; }

/* adesivos em cartoon nas pastas (martelo, olhinhos, asterisco, coração), que se mexem com o mouse ou a mão em cima */
.adesivo {
  position: absolute; left: calc(50% - 2.45cqw); top: 1.45cqw; z-index: 1;
  width: 2cqw; height: 2cqw; display: grid; place-items: center;
  background: #fff; border: max(1.5px, .11cqw) solid var(--tinta); border-radius: 50%;
  box-shadow: 0 .12cqw 0 var(--tinta);
  transform: rotate(-9deg); transition: transform .18s ease; pointer-events: none;
}
.adesivo svg { width: 78%; height: 78%; overflow: visible; }
.pasta:hover .adesivo, .pasta.na-mao .adesivo { transform: translateY(-.3cqw) rotate(-9deg) scale(1.12); }
.adesivo .martelo { transform-box: fill-box; transform-origin: 50% 94%; }
.adesivo .asterisco { transform-box: fill-box; transform-origin: 50% 50%; animation: girar 1.1s linear infinite paused; }
.pasta.vivo .asterisco { animation-play-state: running; }
@keyframes girar { to { transform: rotate(360deg); } }
.adesivo .coracao-adesivo { transform-box: fill-box; transform-origin: 50% 60%; }
.pasta.vivo .coracao-adesivo { animation: batida .75s ease-in-out infinite; }
@keyframes batida { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(.96); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
.adesivo .olhos { transform-box: fill-box; transform-origin: 50% 50%; }
.pasta.vivo .olhos { animation: piscar 2.4s ease-in-out infinite; }
@keyframes piscar { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .adesivo * { animation: none !important; } }
.pasta span {
  font: 600 max(9px, .72cqw) var(--mono); text-transform: uppercase; letter-spacing: .04em; text-align: center; line-height: 1.25;
  color: var(--tinta);
  padding: .1cqw .45cqw; border-radius: .3cqw;
  background: rgba(255, 255, 255, .8);
}
.pasta .selo {
  position: absolute; top: -.2cqw; right: .7cqw;
  min-width: 1.35cqw; height: 1.35cqw; padding: 0 .3cqw; border-radius: 1cqw;
  background: var(--vermelho); color: #fff; font: 700 max(9px, .75cqw)/1.35cqw var(--sans); text-align: center;
  box-shadow: 0 0 0 .15cqw #fff;
}

/* cartão com o nome */
.cartao-nome {
  position: absolute; left: 2.5%; top: 6.5%;
  padding: 1.2cqw 1.5cqw 1.1cqw;
  border-radius: 1.1cqw;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1cqw 3cqw rgba(20, 24, 40, .14);
  pointer-events: none;
}
.cartao-nome b { display: flex; align-items: center; gap: .6cqw; font-weight: 800; font-size: 2.3cqw; letter-spacing: -.02em; line-height: 1; }
.cartao-nome b::after { content: ''; width: .55cqw; height: .55cqw; border-radius: 50%; background: #ff6fae; }
.cartao-nome span { display: block; margin-top: .6cqw; font: 500 max(9px, .72cqw) var(--mono); letter-spacing: .12em; color: var(--tinta-2); }

/* janelas */
.janelas { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.janela {
  position: absolute; pointer-events: auto;
  width: 560px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 130px);
  display: flex; flex-direction: column;
  background: var(--vidro-forte);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px;
  box-shadow: var(--sombra);
  overflow: hidden;
  animation: abrir .2s cubic-bezier(.2, .9, .3, 1.2);
  user-select: text;
}
@keyframes abrir { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.janela.fechando { animation: fechar .15s ease forwards; }
@keyframes fechar { to { opacity: 0; transform: scale(.96); } }
.janela.cheia { left: 12px !important; top: 42px !important; width: calc(100vw - 24px) !important; max-width: none; height: calc(100dvh - 130px); }
.janela-topo {
  flex: none; height: 40px; padding: 0 14px;
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  border-bottom: 1px solid var(--linha);
  background: rgba(255, 255, 255, .5);
  cursor: grab; touch-action: none; user-select: none;
}
.janela.movendo .janela-topo { cursor: grabbing; }
.janela-titulo { text-align: center; font-size: 13px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.semaforo { display: flex; gap: 8px; }
.semaforo button { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.semaforo .s-fechar { background: #ff5f57; }
.semaforo .s-min { background: #febc2e; }
.semaforo .s-max { background: #28c840; }
.semaforo button::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--sans); color: rgba(0, 0, 0, .55); opacity: 0; }
.semaforo .s-fechar::after { content: '×'; font-size: 11px; }
.semaforo .s-min::after { content: '–'; }
.semaforo .s-max::after { content: '+'; }
.semaforo:hover button::after { opacity: 1; }
.janela-corpo { flex: 1; overflow: auto; padding: 22px 24px 26px; font-size: 15px; line-height: 1.55; color: var(--tinta); }

/* janela: sobre mim (nota) */
.nota { display: grid; grid-template-columns: 136px 1fr; gap: 22px; align-items: start; }
.nota img { width: 136px; height: 136px; border-radius: 12px; background: #f3efe6; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.nota h2 { margin: 2px 0 2px; font-size: 26px; letter-spacing: -.02em; }
.nota-cargo { display: block; margin-bottom: 12px; font: 600 11px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .1em; }
.nota-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nota-botoes .botao { margin: 0; }
.nota p { margin: 0 0 10px; }
.nota .etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.etiqueta { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 20px; background: rgba(0, 0, 0, .06); }

/* janela: trabalhos (Finder) */
.janela.finder .janela-corpo { padding: 0; display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.finder-lado { padding: 14px 10px; border-right: 1px solid var(--linha); background: rgba(240, 241, 244, .7); font-size: 13px; }
.finder-lado small { display: block; margin: 4px 8px 6px; font: 600 10px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .08em; }
.finder-lado button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; text-align: left; }
.finder-lado button.ativo { background: rgba(0, 0, 0, .08); font-weight: 600; }
.finder-lado button svg { width: 15px; flex: none; }
.finder-grade { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; align-content: start; overflow: auto; }
.item { display: flex; flex-direction: column; gap: 7px; text-align: left; border-radius: 10px; padding: 6px; }
.item:hover, .item.na-mao { background: rgba(47, 124, 246, .1); }
.item-capa { aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; background: #eef0f3; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.item-capa img { width: 100%; height: 100%; object-fit: cover; }
.item b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.item span { font: 500 10px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }

/* janela: um trabalho (navegador com o site rodando + texto) */
.janela-trabalho .janela-corpo { padding: 14px 16px 20px; }
.navegador { border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .14); box-shadow: 0 8px 24px rgba(20, 24, 40, .14); background: #fff; }
.nav-barra { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #f1f2f5; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav-setas { display: flex; gap: 6px; }
.nav-setas i { width: 9px; height: 9px; border-left: 2px solid #9aa0aa; border-bottom: 2px solid #9aa0aa; transform: rotate(45deg); }
.nav-setas i + i { transform: rotate(-135deg); opacity: .5; }
.nav-endereco { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); font-size: 12.5px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-endereco svg { width: 11px; height: 11px; flex: none; color: #8a8f98; }
.nav-tela { position: relative; aspect-ratio: 16 / 10; background: #111; }
.nav-tela video { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: slides 12s infinite; }
@keyframes slides { 0%, 100% { opacity: 0; } 4%, 33% { opacity: 1; } 37% { opacity: 0; } }
.trabalho-texto { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 22px; margin-top: 18px; padding: 0 4px; }
.trabalho-texto small { font: 600 11px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .08em; }
.trabalho-texto h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.trabalho-texto p { margin: 0 0 10px; }

/* janela: Notas (lista à esquerda, nota aberta à direita) */
.janela.notas .janela-corpo { padding: 0; display: grid; grid-template-columns: 190px 1fr; min-height: 400px; }
.notas-lista { padding: 12px 8px; background: #faf6e9; border-right: 1px solid var(--linha); }
.notas-lista small { display: block; margin: 4px 8px 8px; font: 600 10px var(--mono); color: var(--tinta-3); text-transform: uppercase; letter-spacing: .08em; }
.notas-lista button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; margin-bottom: 2px; }
.notas-lista button b { display: block; font-size: 13px; font-weight: 600; }
.notas-lista button span { display: block; font-size: 12px; color: var(--tinta-3); }
.notas-lista button.ativo { background: #ffd23f; }
.notas-lista button.ativo span { color: var(--tinta-2); }
.notas-pagina { padding: 22px 24px 26px; overflow: auto; }
.notas-pagina[hidden] { display: none; }
.nota-nova h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.nota-nova > p { margin: 0 0 16px; color: var(--tinta-2); }
.nota-nova label { display: block; margin-bottom: 12px; }
.nota-nova label span { display: block; margin-bottom: 5px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-3); }
.nota-nova textarea, .nota-nova input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .14); background: #fffef8; font: 15px/1.5 var(--sans); color: var(--tinta); resize: vertical; }
.nota-nova textarea:focus, .nota-nova input:focus { outline: 2px solid #ffd23f; border-color: #e0b52a; }
.nota-nova .pote { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nota-estado { font-size: 13.5px; color: var(--tinta-2); align-self: center; }
.nota-estado.ok { color: #1f8f47; font-weight: 600; }
.nota-estado.erro { color: #d03a3a; }
.botao:disabled { opacity: .55; cursor: wait; }

/* janela: Fotos (as fotos da moldura) */
.fotos-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fotos-grade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.fotos-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--tinta-2); }
.fotos-rodape .botao { margin: 0; }
.botao {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: var(--tinta); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
}
.botao:hover { background: #000; }
.botao.claro { background: rgba(0, 0, 0, .07); color: var(--tinta); }
/* risco feito à mão que se desenha embaixo do texto com o mouse (ou a mão) em cima */
.botao { position: relative; }
.botao::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4C12 1 22 6 33 3.5S55 1 66 4s22 2 33-1.5' fill='none' stroke='%23ffd23f' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .4s cubic-bezier(.4, 0, .2, 1);
}
.botao.claro::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4C12 1 22 6 33 3.5S55 1 66 4s22 2 33-1.5' fill='none' stroke='%2317181c' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.botao:hover::after, .botao.na-mao::after { clip-path: inset(0 0 0 0); }

/* janela: como funciona */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.passos li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--linha); }
.passos i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tinta); color: #fff; font: 600 15px var(--mono); font-style: normal; }
.passos b { display: block; font-size: 16px; margin-bottom: 2px; }
.passos span { color: var(--tinta-2); font-size: 14.5px; }

/* janela: contato */
.contato h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.contato p { margin: 0 0 16px; color: var(--tinta-2); }
.contato-botoes { display: grid; gap: 10px; }
.contato-botoes .botao { margin: 0; justify-content: space-between; padding: 14px 16px; font-size: 15px; }
.contato-botoes .botao em { font: 500 12px var(--mono); font-style: normal; opacity: .7; }

/* janela: lixeira */
.lixo { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.lixo div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: 500 11px var(--mono); color: var(--tinta-2); word-break: break-all; }
.lixo svg { width: 46px; }
.lixo-rodape { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--tinta-2); }

/* janela: Jump Time (cartoon, como a cena da tela inicial) */
.janela.jogo .janela-corpo { padding: 10px; }
.jg { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid var(--tinta); user-select: none; }
.jg-tela { display: block; width: 100%; height: min(520px, calc(100dvh - 250px)); touch-action: none; cursor: pointer; }
.jg-toque { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.jg-toque i { transition: background .1s; }
.toque-esq .jg-toque i:first-child, .toque-dir .jg-toque i:last-child { background: rgba(47, 124, 246, .08); }
.jg-hud { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; font: 400 12px 'Lilita One', var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); }
.jg-hud b { display: block; font: 400 22px/1.05 'Lilita One', var(--sans); letter-spacing: .02em; color: var(--tinta); }
.jg-hud .dir { text-align: right; }
.jg-capa {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255, 255, 255, .92); text-align: center;
  font: 500 12px/1.6 var(--sans); color: var(--tinta-2);
}
.jg-capa[hidden] { display: none; }
.jg-capa h3 {
  margin: 0; font: 400 46px/.9 'Lilita One', var(--sans); letter-spacing: .02em;
  color: #ffd23f; -webkit-text-stroke: 2.5px var(--tinta); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--tinta); transform: rotate(-4deg);
}
.jg-capa p { margin: 0; }
.jg-heroi { width: 90px; height: 120px; background: url(../img/jogo-boneco.png) 0 0 / 200% 100% no-repeat; animation: pulinho .7s ease-in-out infinite; }
@keyframes pulinho { 50% { transform: translateY(-10px); } }
.jg-jogar {
  margin-top: 6px; padding: 10px 26px; border-radius: 999px;
  background: #ffd23f; color: var(--tinta); border: 2.5px solid var(--tinta); box-shadow: 0 4px 0 var(--tinta);
  font: 400 18px 'Lilita One', var(--sans); text-transform: uppercase; letter-spacing: .06em;
}
.jg-jogar:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.jg-fim > div:first-child { font: 400 20px 'Lilita One', var(--sans); color: var(--tinta); text-transform: uppercase; }
.jg-total { font: 400 56px/1 'Lilita One', var(--sans); color: var(--tinta); }
.jg-novo { color: #e0457b; font: 400 16px 'Lilita One', var(--sans); }
/* ranking geral do Jump Time */
.jg-lider { font: 400 13px 'Lilita One', var(--sans); letter-spacing: .04em; color: var(--tinta); }
.jg-lider[hidden], .jg-ver-ranking[hidden], .jg-salvar[hidden], .jg-rank-estado[hidden], .jg-vazio[hidden] { display: none; }
.jg-ver-ranking, .jg-voltar {
  background: none; border: 0; padding: 4px 8px; cursor: pointer;
  font: 400 14px 'Lilita One', var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--tinta);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.jg-salvar { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 250px; }
.jg-salvar span { font: 400 14px 'Lilita One', var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #e0457b; }
.jg-salvar-linha { display: flex; gap: 6px; width: 100%; }
.jg-salvar input {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px;
  border: 2px solid var(--tinta); background: #fff; color: var(--tinta); font: 500 14px var(--sans);
}
.jg-salvar input:focus { outline: 3px solid #8fc1ff; outline-offset: 1px; }
.jg-salvar button {
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--tinta); box-shadow: 0 3px 0 var(--tinta);
  background: #8fc1ff; color: var(--tinta); font: 400 14px 'Lilita One', var(--sans); text-transform: uppercase; letter-spacing: .04em;
}
.jg-salvar button:disabled { opacity: .6; }
.jg-rank-estado { margin: 0; font: 400 14px 'Lilita One', var(--sans); letter-spacing: .03em; }
.jg-rank-estado.ok { color: #1f8a4c; }
.jg-rank-estado.erro { color: #c0392b; }
.jg-placar { justify-content: safe center; overflow-y: auto; gap: 8px; }
.jg-placar h4 {
  margin: 0 0 4px; font: 400 34px/.9 'Lilita One', var(--sans); letter-spacing: .02em; text-transform: uppercase;
  color: #ffd23f; -webkit-text-stroke: 2px var(--tinta); paint-order: stroke fill; text-shadow: 0 3px 0 var(--tinta); transform: rotate(-3deg);
}
.jg-lista { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 250px; display: grid; gap: 4px; counter-reset: pos; }
.jg-lista li {
  counter-increment: pos; display: flex; align-items: center; gap: 8px; padding: 4px 10px;
  border: 2px solid var(--tinta); border-radius: 10px; background: #fff; color: var(--tinta); font: 500 13px var(--sans);
}
.jg-lista li::before { content: counter(pos) 'º'; width: 26px; text-align: left; font: 400 14px 'Lilita One', var(--sans); }
.jg-lista li span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-lista li b { font: 400 15px 'Lilita One', var(--sans); letter-spacing: .02em; }
.jg-lista li:nth-child(1) { background: #ffd23f; }
.jg-lista li:nth-child(2) { background: #e3e8ef; }
.jg-lista li:nth-child(3) { background: #ffbe8c; }
.jg-lista li.eu { outline: 3px solid #e0457b; outline-offset: 1px; }
.jg-vazio { margin: 0; }

/* dock */
.dock {
  position: fixed; left: 50%; bottom: 10px; z-index: 45;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 8px; border-radius: 22px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px rgba(20, 24, 40, .16);
}
.dock-item { position: relative; display: block; transition: transform .18s cubic-bezier(.2, .9, .3, 1.3); text-decoration: none; }
.dock-item:hover, .dock-item.na-mao { transform: translateY(-8px) scale(1.16); }
.dock-item::after {
  content: attr(data-nome);
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; background: rgba(30, 30, 34, .86); color: #fff;
  font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.dock-item:hover::after, .dock-item.na-mao::after { opacity: 1; }
.ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .14); }
.ic svg { width: 30px; height: 30px; }
.ic-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ic-email { background: linear-gradient(#5ab0ff, #1f6fe8); }
.ic-notas { background: linear-gradient(#ffd84d 0 28%, #fffdf3 28%); display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 0 10px 10px; }
.ic-notas i { display: block; height: 2px; background: #d9d3bd; border-radius: 2px; }
.ic-pasta { background: linear-gradient(#7cc2ff, #3a8ef0); }
.ic-jogo { background: #ffd23f; }
.ic-jogo img { width: 100%; height: 100%; object-fit: cover; }
.ic-lixo { background: linear-gradient(#f5f6f8, #dfe2e7); }
.dock-divisor { width: 1px; height: 40px; margin: 0 2px 5px; background: rgba(0, 0, 0, .12); }

/* chave da câmera e dicas */
.chaves { position: fixed; right: 16px; bottom: 74px; z-index: 46; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chave {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 22px;
  background: rgba(22, 23, 28, .86); color: #fff;
  font: 600 11px var(--mono); letter-spacing: .1em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.chave b { font-weight: 600; opacity: .55; min-width: 26px; text-align: right; }
.chave .ponto { background: #6b7079; }
.chave.ligada .ponto { background: #3ae374; box-shadow: 0 0 0 3px rgba(58, 227, 116, .25); }
.chave.ligada b { opacity: 1; color: #3ae374; }
.dicas {
  position: fixed; right: 16px; bottom: 14px; z-index: 44; margin: 0;
  font: 500 9.5px/1.6 var(--mono); letter-spacing: .08em; color: var(--tinta-3); text-align: right;
}

/* aviso do Finder */
.aviso {
  position: fixed; top: 40px; right: 12px; z-index: 48;
  width: 340px; max-width: calc(100vw - 24px);
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: 14px;
  background: var(--vidro-forte);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(20, 24, 40, .16);
  font-size: 13px; line-height: 1.35; cursor: pointer;
  animation: entrar .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes entrar { from { opacity: 0; transform: translateX(30px); } }
.aviso[hidden] { display: none; }
.aviso b { display: block; font-size: 13px; }
.aviso-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(#ff8fc1, #d8458a); }
.aviso-ic svg { width: 20px; }
.aviso-x { width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .07); font-size: 15px; line-height: 1; color: var(--tinta-2); }

/* câmera */
.mao-tela { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; }
.janela.cam { width: 300px; animation: voar .35s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes voar { from { opacity: 0; transform: translate(40px, 60px) scale(.4); } }
.cam .janela-corpo { padding: 10px; }
.cam-video { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #111; }
.cam-video video, .cam-video canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-legenda { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: rgba(22, 23, 28, .86); color: #fff; font: 500 11px/1.45 var(--mono); text-align: center; }
.cam-estado { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font: 500 10px var(--mono); letter-spacing: .05em; }

.permissao { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(240, 242, 246, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; }
.permissao-caixa { width: 380px; max-width: 100%; padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--sombra); font-size: 14px; line-height: 1.5; color: var(--tinta-2); user-select: text; }
.permissao-caixa h3 { margin: 0 0 8px; font-size: 18px; color: var(--tinta); }
.permissao-caixa p { margin: 0 0 10px; }
.permissao-botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.permissao-botoes .botao { margin: 0; }

/* objetos do desenho que respondem ao clique */
.objeto {
  position: absolute; pointer-events: auto; border-radius: 12px; cursor: pointer;
  background-repeat: no-repeat; transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
}
.objeto::after {
  content: attr(data-nome);
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; background: rgba(30, 30, 34, .86); color: #fff;
  font: 500 12px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.objeto:hover::after, .objeto.na-mao::after, .objeto:focus-visible::after { opacity: 1; }
.objeto:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.objeto-moldura::after, .objeto-eu::after { bottom: auto; top: 6px; }
.objeto.pulando { animation: pulinho-objeto .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pulinho-objeto { 0% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.14); } 55% { transform: scale(1.05, .93); } 80% { transform: scale(.98, 1.03); } 100% { transform: scale(1, 1); } }
.coracao { position: absolute; width: 2.2cqw; height: 2.2cqw; margin-left: -1.1cqw; pointer-events: none; animation: coracao 1.1s ease-out forwards; }
.coracao svg { width: 100%; height: 100%; }
@keyframes coracao { from { opacity: 1; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-5cqw) scale(1.15); } }

/* descanso de tela no computador do desenho */
.descanso {
  position: absolute; overflow: hidden; border-radius: 6% / 9%; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px), radial-gradient(circle at 45% 80%, #fff 0 1px, transparent 2px), #12102a;
}
.descanso.ligado { opacity: 1; }
.descanso img { position: absolute; width: 26%; height: auto; border-radius: 22%; animation: dvd-x 5.3s linear infinite alternate, dvd-y 3.7s linear infinite alternate; }
@keyframes dvd-x { from { left: 0; } to { left: 74%; } }
@keyframes dvd-y { from { top: 0; } to { top: calc(100% - 26% * 1.37); } }

/* ele fumando (vídeo com transparência desenhado no canvas, por cima da camada dele) */
.fumando { position: absolute; pointer-events: none; visibility: hidden; }
.fumando.ligado { visibility: visible; }
.fumando-videos { position: fixed; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.fumando-videos video { width: 2px; height: 2px; }

/* modo noite: a cena apaga e a luz só fica na lanterna (ponteiro ou mão), na luminária e na tela */
.noite-escuro, .noite-brilho { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; transform: translateZ(42px); }
.noite-escuro {
  background: rgba(7, 8, 18, .9);
  --mascara: radial-gradient(circle var(--raio, 150px) at var(--mx, 50%) var(--my, 50%), transparent 30%, #000 100%),
             radial-gradient(ellipse calc(var(--raio-luz, 160px) * 1.3) var(--raio-luz, 160px) at var(--lx, 80%) var(--ly, 40%), transparent 25%, #000 100%),
             radial-gradient(circle var(--raio-tela, 90px) at var(--tx, 63%) var(--ty, 38%), transparent 20%, #000 100%);
  -webkit-mask-image: var(--mascara); mask-image: var(--mascara);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.noite-brilho {
  background: radial-gradient(ellipse 16% 22% at 80% 42%, rgba(255, 196, 110, .32), transparent 70%),
              radial-gradient(ellipse 9% 9% at 63% 38%, rgba(120, 140, 255, .28), transparent 70%);
  mix-blend-mode: screen;
}
body.noite { background: #07080f; }
body.noite .noite-escuro, body.noite .noite-brilho { opacity: 1; }
body.noite .barra { background: rgba(22, 22, 26, .7); color: #f1f1f4; border-bottom-color: rgba(255, 255, 255, .08); }
body.noite .barra-pilula { background: rgba(255, 255, 255, .12); }
body.noite .dock { background: rgba(30, 30, 36, .55); border-color: rgba(255, 255, 255, .14); }
body.noite .dicas { color: #6d7280; }
body.noite .cartao-nome { background: rgba(26, 26, 32, .72); border-color: rgba(255, 255, 255, .12); color: #f1f1f4; }
body.noite .cartao-nome span { color: #a5a9b3; }
body.noite .pasta span { background: rgba(20, 20, 26, .8); color: #f1f1f4; }
.chave#chave-luz.ligada .ponto { background: #ffd23f; box-shadow: 0 0 0 3px rgba(255, 210, 63, .3); }
.chave#chave-luz.ligada b { color: #ffd23f; }

@media (max-width: 1200px) {
  .dicas { display: none; }
  .chaves { bottom: 18px; }
}

/* celular */
@media (max-width: 760px) {
  .barra { gap: 10px; }
  .barra-menu, .barra-pilula, .barra-status span:not(.ponto) { display: none; }
  .barra-status { margin-left: auto; }
  /* a cena fica maior que a tela, com ele no meio (ele está a 48% da largura do desenho) */
  .cena { position: absolute; width: 175vw; left: calc(50vw - 175vw * .48); top: calc(50% - 175vw / var(--ar) / 2 - 40px); }
  .cartao-nome { display: none; }
  /* no celular as pastas saem da cena e ficam numa fileira acima do dock (principal.js move o elemento) */
  .pastas.celular { position: fixed; inset: auto 0 84px 0; z-index: 30; display: flex; justify-content: center; gap: 4px; padding: 0 8px; }
  .pastas.celular .pasta { position: relative; left: auto !important; top: auto !important; transform: none; width: 84px; gap: 4px; }
  .pastas.celular .pasta > svg { width: 50px; filter: drop-shadow(0 3px 5px rgba(30, 60, 120, .28)); }
  .pastas.celular .adesivo { width: 22px; height: 22px; left: calc(50% - 27px); top: 17px; border-width: 1.5px; box-shadow: 0 1.5px 0 var(--tinta); }
  .pastas.celular .pasta span { font-size: 9.5px; padding: 1px 5px; border-radius: 4px; }
  .pastas.celular .selo { top: -4px; right: 12px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; border-radius: 9px; padding: 0 5px; }
  .dicas { display: none; }
  .chaves { bottom: 172px; right: 10px; }   /* acima da fileira de pastas */
  .janela { left: 8px !important; right: 8px; top: 40px !important; width: auto !important; max-height: calc(100dvh - 128px); }
  .janela.cam { left: auto !important; width: 190px !important; top: auto !important; bottom: 128px; }
  .janela.finder .janela-corpo { grid-template-columns: 1fr; }
  .finder-lado { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--linha); padding: 8px; }
  .finder-lado small { display: none; }
  .finder-lado button { width: auto; white-space: nowrap; }
  .trabalho-texto { grid-template-columns: 1fr; gap: 10px; }
  .janela.notas .janela-corpo { grid-template-columns: 1fr; }
  .notas-lista { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--linha); padding: 8px; }
  .notas-lista small { display: none; }
  .notas-lista button { width: auto; white-space: nowrap; margin: 0; }
  .notas-lista button span { display: none; }
  .nota { grid-template-columns: 1fr; }
  .objeto::after { display: none; }
  .ic { width: 44px; height: 44px; }
  .aviso { top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .janela, .aviso, .janela.cam { animation: none; }
}
