/* Launcher Menezes Digital — fundo neutro, apps coloridos em órbita ao redor do monograma */
:root {
  --bg: #030304;
  --gold: #c9a24a;
  --gold-hi: #e6c574;
  --ink: #f4f4f6;
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(110% 85% at 50% 45%, #111116 0%, #070709 55%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}
::selection { background: rgb(255 255 255 / 0.2); }

/* ---------- camadas de fundo ---------- */
#dust, #burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dust { z-index: 0; }
#burst { z-index: 30; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(36% 40% at 50% 50%, rgb(255 255 255 / .035), transparent 70%), radial-gradient(75% 70% at 50% 50%, transparent 55%, rgb(0 0 0 / 0.8)); }
.cursor-glow {
  --glow: 255 255 255;
  position: fixed; z-index: 1; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .6s, background .6s;
  background: radial-gradient(circle, rgb(var(--glow) / 0.07), rgb(var(--glow) / 0.025) 35%, transparent 65%);
  will-change: transform;
}
body.pointer .cursor-glow { opacity: 1; }

/* ---------- palco ---------- */
.stage { position: relative; z-index: 2; width: 100%; height: 100svh; min-height: 560px; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbits .ring { fill: none; stroke: rgb(255 255 255 / 0.09); stroke-width: 1; }
.orbits .ring.dash { stroke-dasharray: 2 7; stroke: rgb(230 197 116 / 0.28); }
.orbits .ring.faint { stroke: rgb(255 255 255 / 0.04); }
.orbits .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s .2s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.orbits .beam { stroke: url(#beamGrad); stroke-width: 1.6; filter: url(#glowF); opacity: 0; transition: opacity .35s; stroke-linecap: round; }
.orbits .beam.on { opacity: 1; }
.orbits .comet { fill: #fff; filter: url(#glowF); }

/* ---------- núcleo (monograma + hora) ---------- */
.core {
  position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; margin: -88px 0 0 -88px;
  display: grid; place-items: center; z-index: 3;
  animation: coreIn 1.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes coreIn { from { opacity: 0; transform: scale(.6); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.mono { width: 112px; height: 112px; object-fit: contain; position: relative; z-index: 2; user-select: none;
  filter: drop-shadow(0 0 22px rgb(201 162 74 / 0.4)) drop-shadow(0 10px 30px rgb(0 0 0 / .8));
  animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 34px rgb(230 197 116 / 0.55)) drop-shadow(0 10px 30px rgb(0 0 0 / .8)); } }
.halo { position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from var(--ang), transparent 0deg, rgb(230 197 116 / .7) 40deg, transparent 90deg, transparent 180deg, rgb(255 255 255 / .35) 220deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%);
  animation: spin 9s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.pulse { position: absolute; inset: 18px; border-radius: 50%; border: 1px solid rgb(230 197 116 / .3); animation: pulse 4.5s ease-out infinite; }
.pulse.p2 { animation-delay: 2.25s; }
@keyframes pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.time { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 400 13px var(--serif); letter-spacing: .38em; padding-left: .38em; color: rgb(255 255 255 / .55); font-variant-numeric: tabular-nums; }

/* ---------- apps ---------- */
.apps { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.app {
  --x: 0px; --y: 0px; --z: 1;
  position: absolute; left: 50%; top: 50%; width: 140px; margin-left: -70px; margin-top: -54px;
  display: block; text-decoration: none; color: inherit; outline: none; pointer-events: auto;
  transform: translate3d(var(--x), var(--y), 0) scale(var(--z));
  opacity: 0; will-change: transform;
}
.app.placed { opacity: 1; transition: transform 1.3s calc(.35s + var(--i) * 90ms) cubic-bezier(.16,1,.3,1), opacity .8s calc(.35s + var(--i) * 90ms); }
.app.live { transition: opacity .4s; }
.app.dim { opacity: .3; }
.bob { display: flex; flex-direction: column; align-items: center; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
@keyframes bob { 50% { transform: translateY(-7px); } }

.tile {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; --s: 1;
  position: relative; width: 106px; height: 106px; border-radius: 31px; display: grid; place-items: center;
  transform: perspective(520px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.app.hot .tile { --s: 1.16; transition: transform .12s linear; }
.tile::after { /* reflexo colorido no chão */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent), transparent);
  filter: blur(8px); opacity: .5; transform: translateZ(-1px); transition: opacity .4s;
}
.app.hot .tile::after { opacity: 1; }
.glass { /* ícone cheio na cor do app, com brilho de vidro por cima */
  position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .34) 0%, rgb(255 255 255 / .06) 46%, transparent 47%),
    radial-gradient(120% 100% at 30% 0%, color-mix(in srgb, var(--accent) 70%, #fff), transparent 70%),
    linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #fff);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -14px 26px rgb(0 0 0 / .28), 0 22px 44px -18px #000, 0 0 34px -10px var(--accent);
  transition: box-shadow .4s;
}
.app.hot .glass { box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -14px 26px rgb(0 0 0 / .28), 0 30px 60px -22px #000, 0 0 60px -6px var(--accent); }
.rim { position: absolute; inset: -3px; border-radius: 34px; padding: 2px; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--ang), transparent 0deg, var(--accent) 60deg, #fff 90deg, var(--accent) 120deg, transparent 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 2.6s linear infinite; }
.app.hot .rim, .app:focus-visible .rim { opacity: 1; }
.glyph { position: relative; width: 48px; height: 48px; color: #fff; transform: translateZ(26px);
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); transition: filter .4s; }
.glyph.txt { display: grid; place-items: center; font: 600 34px/1 var(--sans); }
.app.hot .glyph { filter: drop-shadow(0 4px 12px rgb(0 0 0 / .4)) drop-shadow(0 0 10px rgb(255 255 255 / .5)); }
.tile.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transform: translateZ(1px); user-select: none; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / .9), transparent 48%); transform: translateZ(2px); }
.app.hot .glare { opacity: 1; }
.badge { position: absolute; top: -8px; right: -12px; transform: translateZ(30px); font: 700 8.5px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #111; background: #fff; padding: 4px 8px; border-radius: 999px; box-shadow: 0 4px 16px rgb(0 0 0 / .5), 0 0 16px -2px var(--accent); }
.dot { position: absolute; right: 8px; bottom: 8px; width: 9px; height: 9px; border-radius: 50%; transform: translateZ(20px); border: 2px solid rgb(0 0 0 / .45); }
.dot.up { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.dot.down { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.label { margin-top: 20px; max-width: 150px; text-align: center; font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgb(255 255 255 / .72); text-shadow: 0 2px 10px #000; transition: color .3s, letter-spacing .4s; }
.app.hot .label, .app:focus-visible .label { color: color-mix(in srgb, var(--accent) 55%, #fff); letter-spacing: .26em; }

/* ---------- celular / tela baixa: monograma + painel de vidro com os apps ---------- */
body.grid { overflow-x: hidden; overflow-y: auto; }
body.grid .stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); }
body.grid .orbits { display: none; }
body.grid .core { position: relative; left: auto; top: auto; margin: 0 0 78px; flex: none; width: 140px; height: 140px; }
body.grid .mono { width: 92px; height: 92px; }
body.grid .halo { inset: 4px; }
body.grid .pulse { inset: 26px; animation-name: pulseSm; }
@keyframes pulseSm { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
body.grid .time { font-size: 12px; }
body.grid .apps {
  position: relative; inset: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 4px;
  width: 100%; max-width: 380px; padding: 26px 10px 14px; border-radius: 34px;
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 60px -30px #000;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: panelIn .9s .15s cubic-bezier(.16,1,.3,1) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
body.grid .app { position: relative; left: auto; top: auto; margin: 0; width: auto; transform: none !important; opacity: 1; animation: rise .8s calc(.3s + var(--i) * 70ms) cubic-bezier(.16,1,.3,1) both; }
body.grid .bob { animation-delay: 0s; animation-duration: 7s; }
body.grid .tile { width: 70px; height: 70px; border-radius: 21px; }
body.grid .rim { border-radius: 24px; }
body.grid .glyph { width: 32px; height: 32px; }
body.grid .glyph.txt { font-size: 26px; }
body.grid .tile::after { bottom: -18px; height: 16px; opacity: .45; }
body.grid .badge { top: -7px; right: -9px; font-size: 7.5px; padding: 3px 6px; }
body.grid .dot { right: 6px; bottom: 6px; width: 8px; height: 8px; }
body.grid .label { font-size: 9px; letter-spacing: .12em; margin-top: 12px; min-height: 2.8em; line-height: 1.4; padding: 0 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .app { opacity: 1; }
}

/* ---------- pastas (categorias) ---------- */
button.app { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
/* pasta = ícone único com duas "folhas" atrás, indicando que há mais apps dentro */
.sheet { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), color-mix(in srgb, var(--accent) 40%, #000));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #fff); box-shadow: 0 14px 30px -16px #000; }
.sheet.s1 { transform: translate3d(0, -15px, -8px) scale(.88); opacity: .6; }
.sheet.s2 { transform: translate3d(0, -28px, -16px) scale(.76); opacity: .32; }
.app.folder.hot .sheet.s1 { transform: translate3d(-10px, -14px, -8px) rotate(-7deg) scale(.92); opacity: .7; }
.app.folder.hot .sheet.s2 { transform: translate3d(10px, -22px, -16px) rotate(7deg) scale(.84); opacity: .45; }
.count { position: absolute; top: -8px; right: -10px; transform: translateZ(30px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font: 700 10px var(--sans); color: #111; background: var(--gold-hi); box-shadow: 0 4px 14px rgb(0 0 0 / .5); }

/* apps fora da vista atual voltam para o centro e somem */
.app.away { opacity: 0 !important; pointer-events: none; transform: translate3d(0, 0, 0) scale(.3) !important;
  visibility: hidden; transition: transform .55s cubic-bezier(.5,0,.75,0), opacity .4s, visibility 0s .55s !important; }
body.grid .app.away { display: none; }

/* voltar (dentro de uma pasta): pílula dourada de vidro, borda com brilho girando e seta que chama para a esquerda */
.back { position: absolute; top: calc(100% + 64px); left: 50%; transform: translateX(-50%) translateY(10px) scale(.9); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 600 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #fff4d6;
  padding: 7px 22px 7px 7px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02)), linear-gradient(135deg, #3a2c10, #15110a 60%, #2a1f0b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 30px -10px #000, 0 0 26px -6px rgb(230 197 116 / .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .5s .35s, transform .5s .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.back::before { /* borda com brilho girando */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang), rgb(230 197 116 / .35), #ffe9a8 25%, rgb(230 197 116 / .35) 50%, rgb(201 162 74 / .2) 75%, rgb(230 197 116 / .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite; }
.back .arr { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #1a1306;
  background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold-hi) 45%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 0 14px rgb(230 197 116 / .6); }
.back .arr svg { width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(-3px); } }
.back .shine { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 240 200 / .28) 50%, transparent 65%); transform: translateX(-120%);
  animation: shine 3.6s 1.2s ease-in-out infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.back:hover, .back:focus-visible { outline: none; transform: translateX(-50%) scale(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 14px 36px -10px #000, 0 0 40px -4px rgb(230 197 116 / .8); transition-delay: 0s; }
.back:hover .arr svg { animation-duration: .9s; }
.back:active { transform: translateX(-50%) scale(.97); }
body.in-cat .back { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
body.in-cat .core { cursor: pointer; }
body.grid.in-cat .core { margin-bottom: 124px; }
body.grid .sheet.s1 { transform: translate3d(0, -10px, -8px) scale(.88); }
body.grid .sheet.s2 { transform: translate3d(0, -19px, -16px) scale(.76); }
body.grid .count { top: -7px; right: -8px; min-width: 18px; height: 18px; font-size: 9px; }

/* título da pasta aberta (topo da tela) */
.cat-title { --accent: #c9a24a; position: absolute; top: max(26px, env(safe-area-inset-top)); left: 50%; z-index: 6;
  display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 22px; white-space: nowrap;
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 18px 40px -20px #000, 0 0 40px -18px var(--accent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transform: translate(-50%, -16px); transition: opacity .5s .25s, transform .6s .25s cubic-bezier(.16,1,.3,1); }
body.in-cat .cat-title { opacity: 1; transform: translate(-50%, 0); }
.ct-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / .3), transparent 50%), linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 20px -4px var(--accent); }
.ct-ico .glyph { width: 22px; height: 22px; transform: none; }
.ct-ico img { width: 100%; height: 100%; object-fit: cover; }
.ct-txt { display: flex; flex-direction: column; gap: 3px; }
.ct-txt small { font: 500 9px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .45); }
.ct-txt strong { font: 500 20px/1 var(--serif); letter-spacing: .16em; color: #fff; text-transform: uppercase; }
.ct-count { margin-left: 6px; padding: 5px 10px; border-radius: 999px; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 60%, #fff); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
body.grid .cat-title { position: relative; top: auto; left: auto; margin: 0 0 26px; transform: translateY(-10px); display: none; }
body.grid.in-cat .cat-title { display: flex; transform: none; }
body.grid .ct-txt strong { font-size: 16px; }

/* relógio com data: horas em dourado (serifada), dois-pontos respirando, data por extenso entre fios */
.time { display: flex; flex-direction: column; align-items: center; gap: 7px; top: calc(100% + 6px); padding-left: 0; letter-spacing: 0; color: inherit; }
.time .hm { display: flex; align-items: baseline; font: 500 24px/1 var(--serif); letter-spacing: .1em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff1c2 0%, #e6c574 48%, rgb(201 162 74) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgb(230 197 116 / .3)) drop-shadow(0 2px 6px rgb(0 0 0 / .8)); }
.time .hm b { font-weight: 500; }
.time .hm i { font-style: normal; margin: 0 .06em; animation: colon 2s ease-in-out infinite; }
@keyframes colon { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.time .date { display: flex; align-items: center; gap: 10px; font: 500 9px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgb(255 255 255 / .55); padding-left: .32em; }
.time .date::before, .time .date::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, rgb(230 197 116 / .75)); }
.time .date::after { background: linear-gradient(270deg, transparent, rgb(230 197 116 / .75)); }
body.grid .time .hm { font-size: 20px; }
body.grid .time .date { font-size: 8px; letter-spacing: .26em; }

/* janela "Em desenvolvimento" */
.devmodal { --accent: #fbbf24; position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(60% 60% at 50% 50%, rgb(0 0 0 / .55), rgb(0 0 0 / .85)); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0; transition: opacity .35s; }
.devmodal[hidden] { display: none; }
.devmodal.on { opacity: 1; }
.dm-card { position: relative; width: min(420px, 100%); padding: 44px 30px 30px; border-radius: 30px; text-align: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #121214), #0a0a0c 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, rgb(255 255 255 / .1));
  box-shadow: 0 40px 90px -30px #000, 0 0 80px -30px var(--accent), inset 0 1px 0 rgb(255 255 255 / .08);
  transform: translateY(24px) scale(.94); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.devmodal.on .dm-card { transform: none; }
.dm-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent) 18%, transparent) 0 1px, transparent 1px 22px),
              repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent) 0 1px, transparent 1px 22px);
  -webkit-mask: radial-gradient(80% 60% at 50% 30%, #000, transparent); mask: radial-gradient(80% 60% at 50% 30%, #000, transparent);
  animation: gridMove 8s linear infinite; }
@keyframes gridMove { to { background-position: 0 22px, 22px 0; } }
.dm-scan { position: absolute; left: 0; right: 0; height: 90px; z-index: -1; top: -90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent); animation: scan 3.8s ease-in-out infinite; }
@keyframes scan { 0% { top: -90px; } 60%, 100% { top: 100%; } }
.dm-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .05);
  color: rgb(255 255 255 / .7); font: 300 20px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.dm-x:hover, .dm-x:focus-visible { background: rgb(255 255 255 / .12); color: #fff; transform: rotate(90deg); outline: none; }
.dm-icon { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; display: grid; place-items: center; }
.dm-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); animation: spin2 14s linear infinite; }
.dm-orbit.o2 { inset: 14px; border-style: solid; border-color: transparent; border-top-color: #fbbf24; border-right-color: rgb(251 191 36 / .3); animation-duration: 2.4s; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.dm-tile { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / .32), rgb(255 255 255 / .05) 48%, transparent 49%), linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #fff); box-shadow: 0 0 40px -6px var(--accent), inset 0 1px 0 rgb(255 255 255 / .45);
  animation: floatY 3.2s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-6px); } }
.dm-tile .glyph { width: 36px; height: 36px; transform: none; }
.dm-tile img { width: 100%; height: 100%; object-fit: cover; }
.dm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 999px; font: 700 9.5px var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: #fcd34d; background: rgb(251 191 36 / .1); border: 1px solid rgb(251 191 36 / .4); box-shadow: 0 0 22px -6px rgb(251 191 36 / .6); }
.dm-chip i { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px #fbbf24; animation: devPulse 1.6s ease-in-out infinite; }
.dm-card h2 { margin: 16px 0 8px; font: 500 26px/1.15 var(--serif); letter-spacing: .08em; color: #fff; }
.dm-desc { margin: 0 auto; max-width: 300px; font: 400 13px/1.55 var(--sans); color: rgb(255 255 255 / .6); }
.dm-desc:empty { display: none; }
.dm-bar { position: relative; height: 6px; margin: 24px 6px 12px; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .06); }
.dm-bar span { position: absolute; top: 0; bottom: 0; width: 45%; border-radius: inherit; animation: barRun 2.2s cubic-bezier(.6,.1,.3,1) infinite;
  background: repeating-linear-gradient(45deg, #fbbf24 0 8px, #f59e0b 8px 16px); box-shadow: 0 0 14px rgb(251 191 36 / .6); }
@keyframes barRun { 0% { left: -45%; } 100% { left: 100%; } }
.dm-note { margin: 0; font: 400 11.5px/1.5 var(--sans); color: rgb(255 255 255 / .45); }
.dm-code { margin-top: 18px; display: grid; gap: 4px; font: 500 10.5px ui-monospace, Consolas, monospace; color: color-mix(in srgb, var(--accent) 55%, #fff); opacity: .75; text-align: left; padding: 12px 14px; border-radius: 12px; background: rgb(0 0 0 / .35); border: 1px solid rgb(255 255 255 / .06); }
.dm-code span { overflow: hidden; white-space: nowrap; width: 0; animation: type 1.2s steps(26) forwards; }
.dm-code span:nth-child(2) { animation-delay: 1.1s; }
.dm-code span:nth-child(3) { animation-delay: 2.2s; }
.dm-code span:nth-child(3)::after { content: "▌"; animation: colon 1s steps(1) infinite; }
@keyframes type { to { width: 100%; } }
@keyframes devPulse { 50% { transform: scale(.6); opacity: .4; } }

/* crédito no rodapé: "Desenvolvido por xTorus" */
.credit { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5;
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 500 8.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .42);
  border: 1px solid transparent; transition: color .3s, border-color .3s, background .3s; }
.credit img { height: 8px; width: auto; opacity: .6; transition: opacity .3s, filter .3s; }
body.grid .credit { bottom: max(10px, env(safe-area-inset-bottom)); color: rgb(255 255 255 / .55);
  background: rgb(8 8 10 / .72); border-color: rgb(255 255 255 / .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px -10px #000; }
body.grid .credit img { opacity: .75; }
body.grid .stage { padding-bottom: calc(max(28px, env(safe-area-inset-bottom)) + 46px); }

/* app sem link: esfumaçado vermelho bem leve atrás do ícone */
.app.dev .tile::before { content: ""; position: absolute; inset: -3px; border-radius: 34px; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(239 68 68 / .55), 0 0 10px 1px rgb(239 68 68 / .55), 0 0 22px 2px rgb(220 38 38 / .28);
  animation: smoke 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes smoke { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
body.grid .app.dev .tile::before { inset: -2px; border-radius: 23px; box-shadow: 0 0 0 1px rgb(239 68 68 / .55), 0 0 8px 1px rgb(239 68 68 / .5), 0 0 16px 1px rgb(220 38 38 / .25); }

/* botão Voltar da janela "Em desenvolvimento" (mesmo estilo do Voltar das pastas) */
.dm-back { position: relative; margin: 22px auto 0; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 600 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #fff4d6; padding: 8px 26px 8px 8px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02)), linear-gradient(135deg, #3a2c10, #15110a 60%, #2a1f0b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 30px -10px #000, 0 0 26px -6px rgb(230 197 116 / .55);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.dm-back::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang), rgb(230 197 116 / .35), #ffe9a8 25%, rgb(230 197 116 / .35) 50%, rgb(201 162 74 / .2) 75%, rgb(230 197 116 / .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.dm-back .arr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #1a1306;
  background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold-hi) 45%, var(--gold) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 0 14px rgb(230 197 116 / .6); }
.dm-back .arr svg { width: 17px; height: 17px; animation: nudge 2.4s ease-in-out infinite; }
.dm-back .shine { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 240 200 / .28) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.6s 1.2s ease-in-out infinite; }
.dm-back:hover, .dm-back:focus-visible { outline: none; transform: scale(1.06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 14px 36px -10px #000, 0 0 40px -4px rgb(230 197 116 / .8); }
.dm-back:hover .arr svg { animation-duration: .9s; }
.dm-back:active { transform: scale(.97); }

/* ---------- rodapé: selo "Ambiente seguro" + crédito ---------- */
.foot { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.foot .credit { position: static; transform: none; }
.secure { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
  font: 600 8.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #86efac;
  background: rgb(34 197 94 / .08); border: 1px solid rgb(34 197 94 / .28); box-shadow: 0 0 18px -8px rgb(34 197 94 / .6); }
.secure svg { width: 13px; height: 13px; filter: drop-shadow(0 0 5px rgb(74 222 128 / .7)); }
body.grid .foot { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 4px; border-radius: 999px;
  background: rgb(8 8 10 / .72); border: 1px solid rgb(255 255 255 / .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px -10px #000; }
body.grid .foot .credit { position: static; transform: none; display: inline-flex; width: auto; background: none; border: 0; box-shadow: none; padding: 6px 10px; margin: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.grid .secure { padding: 5px 10px 5px 8px; font-size: 7.5px; letter-spacing: .18em; }
@media (max-width: 480px) {
  body.grid .foot { gap: 2px; padding: 3px; }
  body.grid .secure { font-size: 7px; letter-spacing: .12em; padding: 5px 9px 5px 7px; gap: 5px; }
  body.grid .secure svg { width: 11px; height: 11px; }
  body.grid .foot .credit { font-size: 7px; letter-spacing: .14em; gap: 7px; padding: 5px 9px; }
  body.grid .foot .credit img { height: 7px; }
}
@media (max-width: 340px) { body.grid .foot .credit span { display: none; } }

/* ---------- convite para instalar o app (PWA) ---------- */
.pwa { position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(400px, calc(100% - 24px));
  transform: translate(-50%, 30px) scale(.96); opacity: 0; transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .4s; pointer-events: none; }
.pwa.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .pwa { left: auto; right: 26px; bottom: 26px; transform: translate(0, 30px) scale(.96); } .pwa.on { transform: none; } }
.pwa-card { position: relative; overflow: hidden; isolation: isolate; padding: 20px 20px 14px; border-radius: 26px; color: #fff;
  background: linear-gradient(160deg, rgb(201 162 74 / .16), transparent 45%), linear-gradient(180deg, #17150f, #0b0a08 70%);
  border: 1px solid rgb(230 197 116 / .32);
  box-shadow: 0 30px 70px -20px #000, 0 0 60px -24px rgb(230 197 116 / .6), inset 0 1px 0 rgb(255 255 255 / .08); }
.pwa-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 240 200 / .1) 50%, transparent 62%); transform: translateX(-120%); animation: shine 5s 1s ease-in-out infinite; }
.pwa-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); color: rgb(255 255 255 / .6); transition: background .2s, color .2s, transform .25s; }
.pwa-x svg { width: 14px; height: 14px; }
.pwa-x:hover, .pwa-x:focus-visible { background: rgb(255 255 255 / .1); color: #fff; transform: rotate(90deg); outline: none; }
.pwa-top { display: flex; gap: 16px; align-items: center; padding-right: 26px; }
.pwa-ico { position: relative; flex: none; width: 66px; height: 66px; }
.pwa-ico img { position: relative; width: 66px; height: 66px; border-radius: 18px; box-shadow: 0 10px 24px -8px #000, 0 0 0 1px rgb(230 197 116 / .35); }
.pwa-halo { position: absolute; inset: -9px; border-radius: 24px; padding: 2px; background: conic-gradient(from var(--ang), transparent, rgb(230 197 116 / .7), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.pwa-kicker { font: 700 9px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); }
.pwa-head h3 { margin: 5px 0 4px; font: 500 19px/1.2 var(--serif); letter-spacing: .03em; }
.pwa-head p { margin: 0; font: 400 12.5px/1.45 var(--sans); color: rgb(255 255 255 / .62); }
.pwa-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pwa-perks li { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 6px 10px; border-radius: 14px; text-align: center;
  font: 600 10px/1.2 var(--sans); letter-spacing: .04em; color: rgb(255 255 255 / .82); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); }
.pwa-perks i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #1a1306;
  background: radial-gradient(circle at 35% 30%, #fff1c2, var(--gold-hi) 50%, var(--gold)); box-shadow: 0 0 14px -2px rgb(230 197 116 / .55); }
.pwa-perks li:last-child i { color: #052e16; background: radial-gradient(circle at 35% 30%, #dcfce7, #4ade80 55%, #16a34a); box-shadow: 0 0 14px -2px rgb(74 222 128 / .6); }
.pwa-perks svg, .pwa-steps svg { width: 16px; height: 16px; }
.pwa-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pwa-steps li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 10px 12px; border-radius: 14px; font: 400 12.5px/1.4 var(--sans); color: rgb(255 255 255 / .8);
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .07); }
.pwa-steps b { color: #fff; font-weight: 600; }
.pwa-steps i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #60a5fa; background: rgb(96 165 250 / .12); }
.pwa-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: #1a1306; background: var(--gold-hi); }
.pwa-actions { display: flex; gap: 10px; margin-top: 16px; }
.pwa-sim { flex: 1; position: relative; overflow: hidden; cursor: pointer; border: 0; border-radius: 14px; padding: 13px 16px;
  font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1a1306;
  background: linear-gradient(180deg, #fff1c2, #e6c574 50%, #c9a24a); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 10px 24px -10px rgb(230 197 116 / .9);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, filter .25s; }
.pwa-sim:hover, .pwa-sim:focus-visible { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 14px 30px -10px rgb(230 197 116 / 1); outline: none; }
.pwa-sim:active { transform: scale(.98); }
.pwa-nao { cursor: pointer; border-radius: 14px; padding: 13px 16px; font: 600 12px var(--sans); letter-spacing: .08em; color: rgb(255 255 255 / .7);
  background: transparent; border: 1px solid rgb(255 255 255 / .14); transition: background .2s, color .2s, border-color .2s; }
.pwa-nao:hover, .pwa-nao:focus-visible { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .25); outline: none; }
.pwa-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px;
  font: 600 9px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgb(134 239 172 / .8); }
.pwa-safe svg { width: 12px; height: 12px; }
.pwa-toast { position: fixed; z-index: 61; left: 50%; top: max(18px, env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font: 600 12px var(--sans); color: #fff;
  background: #0d0d0f; border: 1px solid rgb(74 222 128 / .4); box-shadow: 0 16px 40px -14px #000, 0 0 30px -10px rgb(74 222 128 / .6);
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s; }
.pwa-toast.on { transform: translate(-50%, 0); opacity: 1; }
.pwa-toast svg { width: 16px; height: 16px; color: #4ade80; }

/* rodapé em coluna: selo "Ambiente seguro" em cima, crédito embaixo */
.foot { flex-direction: column; gap: 6px; }
body.grid .foot { gap: 5px; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.grid .foot .credit { padding: 6px 12px; border-radius: 999px; background: rgb(8 8 10 / .72); border: 1px solid rgb(255 255 255 / .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px -10px #000; }
body.grid .secure { background: rgb(8 12 9 / .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.grid .stage { padding-bottom: calc(max(28px, env(safe-area-inset-bottom)) + 78px); }

/* celular: rodapé logo abaixo do painel de apps (no fluxo da página, centralizado com o resto) */
body.grid .foot { position: relative; left: auto; bottom: auto; transform: none; margin-top: 18px; flex: none; }
body.grid .stage { padding-bottom: max(28px, env(safe-area-inset-bottom)); }

/* celular: "Ambiente seguro" logo abaixo do painel; "Desenvolvido por" fixo no pé da tela */
body.grid .foot .credit { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; }
body.grid .stage { padding-bottom: calc(max(28px, env(safe-area-inset-bottom)) + 34px); }

/* ---------- selo "Ambiente seguro" clicável + janela com os detalhes ---------- */
button.secure { cursor: pointer; font-family: var(--sans); transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
button.secure:hover, button.secure:focus-visible { outline: none; background: rgb(34 197 94 / .16); border-color: rgb(74 222 128 / .6);
  box-shadow: 0 0 24px -6px rgb(34 197 94 / .8); transform: translateY(-1px); }
.secmodal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(60% 60% at 50% 50%, rgb(0 0 0 / .55), rgb(0 0 0 / .85)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s; }
.secmodal[hidden] { display: none; }
.secmodal.on { opacity: 1; }
.sm-card { position: relative; width: min(430px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: 38px 26px 24px; border-radius: 30px; text-align: center;
  background: linear-gradient(180deg, rgb(34 197 94 / .12), #0b0d0c 55%); border: 1px solid rgb(74 222 128 / .3);
  box-shadow: 0 40px 90px -30px #000, 0 0 80px -34px rgb(34 197 94 / .9), inset 0 1px 0 rgb(255 255 255 / .07);
  transform: translateY(24px) scale(.95); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.secmodal.on .sm-card { transform: none; }
.sm-shield { position: relative; width: 92px; height: 92px; margin: 0 auto 16px; display: grid; place-items: center; color: #4ade80; }
.sm-shield svg { width: 54px; height: 54px; filter: drop-shadow(0 0 14px rgb(74 222 128 / .7)); }
.sm-check { stroke-dasharray: 14; stroke-dashoffset: 14; }
.secmodal.on .sm-check { animation: drawCheck .6s .35s ease-out forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.sm-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(74 222 128 / .35); box-shadow: 0 0 30px -6px rgb(74 222 128 / .6) inset; }
.sm-ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: #4ade80; animation: spin2 2.6s linear infinite; }
.sm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; font: 700 9px var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: #86efac; background: rgb(34 197 94 / .1); border: 1px solid rgb(74 222 128 / .35); }
.sm-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: devPulse 1.6s ease-in-out infinite; }
.sm-card h2 { margin: 14px 0 6px; font: 500 26px/1.15 var(--serif); letter-spacing: .06em; color: #fff; }
.sm-sub { margin: 0; font: 400 13px/1.5 var(--sans); color: rgb(255 255 255 / .62); }
.sm-sub b { color: #fff; font-weight: 600; }
.sm-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.sm-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 15px; background: rgb(255 255 255 / .035); border: 1px solid rgb(255 255 255 / .07); }
.sm-list i { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; color: #052e16;
  background: radial-gradient(circle at 35% 30%, #dcfce7, #4ade80 55%, #16a34a); box-shadow: 0 0 12px -2px rgb(74 222 128 / .7); }
.sm-list i svg { width: 13px; height: 13px; }
.sm-list b { display: block; font: 600 13px/1.3 var(--sans); color: #fff; }
.sm-list span { display: block; margin-top: 2px; font: 400 12px/1.45 var(--sans); color: rgb(255 255 255 / .58); }
.sm-tip { margin: 16px 0 0; font: 400 11.5px/1.5 var(--sans); color: rgb(255 255 255 / .45); }
.sm-ok { padding: 12px 34px; margin-top: 18px; }

/* botão "Entendi" da janela de segurança: verde, combinando com o escudo */
.dm-back.sm-ok { color: #dcfce7; padding: 12px 38px;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02)), linear-gradient(135deg, #0f3d22, #0a1a10 60%, #12331f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 30px -10px #000, 0 0 26px -6px rgb(34 197 94 / .6); }
.dm-back.sm-ok::before { background: conic-gradient(from var(--ang), rgb(74 222 128 / .3), #bbf7d0 25%, rgb(74 222 128 / .3) 50%, rgb(22 163 74 / .2) 75%, rgb(74 222 128 / .3)); }
.dm-back.sm-ok .shine { background: linear-gradient(105deg, transparent 35%, rgb(220 252 231 / .25) 50%, transparent 65%); }
.dm-back.sm-ok:hover, .dm-back.sm-ok:focus-visible { box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 14px 36px -10px #000, 0 0 40px -4px rgb(34 197 94 / .85); }

/* ---------- busca de apps (lupa no canto superior direito) ---------- */
.find-btn { position: fixed; z-index: 7; top: max(22px, env(safe-area-inset-top)); right: max(22px, env(safe-area-inset-right));
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: rgb(255 255 255 / .82);
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)); border: 1px solid rgb(230 197 116 / .35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 10px 26px -12px #000, 0 0 22px -10px rgb(230 197 116 / .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s cubic-bezier(.16,1,.3,1), color .3s, border-color .3s, box-shadow .3s; }
.find-btn svg { width: 19px; height: 19px; }
.find-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgb(230 197 116 / .35); opacity: 0; animation: findPing 4.5s 2.5s ease-out infinite; pointer-events: none; }
@keyframes findPing { 0% { transform: scale(.85); opacity: .9; } 35%, 100% { transform: scale(1.35); opacity: 0; } }
.find-btn:hover, .find-btn:focus-visible { outline: none; transform: scale(1.08); color: #fff; border-color: rgb(230 197 116 / .75);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 12px 30px -12px #000, 0 0 30px -6px rgb(230 197 116 / .85); }
.find-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; pointer-events: none;
  font: 600 9px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgb(255 255 255 / .7); opacity: 0; transition: opacity .25s, transform .25s; }
.find-btn:hover .find-tip, .find-btn:focus-visible .find-tip { opacity: 1; transform: translate(0, -50%); }
body.grid .find-btn { width: 42px; height: 42px; top: max(14px, env(safe-area-inset-top)); right: 14px; }
body.grid .find-tip { display: none; }

.find { position: fixed; inset: 0; z-index: 58; display: flex; justify-content: center; align-items: flex-start; padding: max(12vh, 70px) 16px 20px;
  background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.find[hidden] { display: none; }
.find.on { opacity: 1; }
.find-box { width: min(560px, 100%); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #16140f, #0b0a09); border: 1px solid rgb(230 197 116 / .3);
  box-shadow: 0 40px 90px -30px #000, 0 0 70px -30px rgb(230 197 116 / .6), inset 0 1px 0 rgb(255 255 255 / .07);
  transform: translateY(-14px) scale(.97); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.find.on .find-box { transform: none; }
.find-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgb(255 255 255 / .07); color: var(--gold-hi); }
.find-field svg { width: 20px; height: 20px; flex: none; }
.find-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #fff; font: 400 17px var(--sans); }
.find-field input::placeholder { color: rgb(255 255 255 / .38); }
.find-field input::-webkit-search-cancel-button { display: none; }
.find kbd { font: 600 10px var(--sans); color: rgb(255 255 255 / .55); padding: 3px 7px; border-radius: 6px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .04); }
.find-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow: auto; }
.find-item { display: flex; align-items: center; gap: 13px; padding: 9px 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.find-item.on, .find-item:hover { background: rgb(255 255 255 / .06); }
.find-item.on { box-shadow: inset 0 0 0 1px rgb(230 197 116 / .3); }
.find-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / .3), transparent 50%), linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 16px -6px var(--accent); }
.find-ico .glyph { width: 20px; height: 20px; transform: none; filter: none; }
.find-ico .glyph.txt { font-size: 17px; }
.find-ico.img img { width: 100%; height: 100%; object-fit: cover; }
.find-txt { flex: 1; min-width: 0; }
.find-txt b { display: block; font: 600 14px var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-txt small { display: block; margin-top: 2px; font: 400 11.5px var(--sans); color: rgb(255 255 255 / .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-go { color: rgb(230 197 116 / .0); font: 600 14px var(--sans); transition: color .15s; }
.find-item.on .find-go { color: rgb(230 197 116 / .9); }
.find-empty { padding: 26px 12px; text-align: center; font: 400 13px var(--sans); color: rgb(255 255 255 / .5); }
.find-foot { display: flex; gap: 18px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid rgb(255 255 255 / .06); font: 500 10.5px var(--sans); color: rgb(255 255 255 / .4); }
.find-foot kbd { margin-right: 3px; }
@media (hover: none) { .find-foot, .find-field kbd { display: none; } }

/* celular: espaço no topo para a lupa não encostar no título da pasta */
body.grid.in-cat .stage { padding-top: max(66px, env(safe-area-inset-top)); }

/* computador: lupa vira pílula com "Buscar" e o atalho "/" visíveis */
body:not(.grid) .find-btn { width: auto; height: 44px; padding: 0 12px 0 16px; gap: 10px; border-radius: 999px; display: inline-flex; align-items: center; }
body:not(.grid) .find-btn::after { border-radius: 999px; }
body:not(.grid) .find-tip { position: static; transform: none; opacity: 1; font-size: 9.5px; color: rgb(255 255 255 / .78); }
body:not(.grid) .find-tip::after { content: "/"; display: inline-grid; place-items: center; margin-left: 10px; width: 20px; height: 20px; border-radius: 6px;
  font: 600 10px var(--sans); letter-spacing: 0; color: rgb(255 255 255 / .55); border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .05); }
body:not(.grid) .find-btn:hover .find-tip { transform: none; color: #fff; }

/* ---------- organizar (estilo iPhone): tremer, arrastar, barra Concluir ---------- */
.app { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.app img { -webkit-user-drag: none; pointer-events: none; }
body.editing .app { touch-action: none; cursor: grab; }
body.editing .app:not(.dragging) { transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s !important; }
body.editing .app:not(.dragging) .bob { animation: jiggle .26s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s); }
@keyframes jiggle { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
body.editing .app.dragging { z-index: 999 !important; cursor: grabbing; transition: none !important; }
body.editing .app.dragging .tile { --s: 1.18; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .7)); }
body.editing .app.dragging .bob { animation: none; }
body.editing .cat-title, body.editing .find-btn { opacity: 0 !important; pointer-events: none; }

.editbar { position: fixed; z-index: 40; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; white-space: nowrap;
  background: rgb(14 13 11 / .86); border: 1px solid rgb(230 197 116 / .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -14px #000, 0 0 30px -12px rgb(230 197 116 / .6); transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s; }
body.editing .editbar { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.eb-txt { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font: 600 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.eb-txt i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); animation: devPulse 1.4s ease-in-out infinite; }
.editbar button { cursor: pointer; border-radius: 999px; padding: 9px 16px; font: 700 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: filter .2s, background .2s; }
.eb-reset { color: rgb(255 255 255 / .7); background: transparent; border: 1px solid rgb(255 255 255 / .16); }
.eb-reset:hover { background: rgb(255 255 255 / .07); color: #fff; }
.eb-ok { color: #1a1306; border: 0; background: linear-gradient(180deg, #fff1c2, #e6c574 50%, #c9a24a); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); }
.eb-ok:hover { filter: brightness(1.07); }
@media (max-width: 480px) { .eb-txt { font-size: 8.5px; letter-spacing: .12em; margin-right: 2px; } .editbar button { padding: 8px 12px; font-size: 9.5px; } }

/* ---------- abertura futurista (splash) ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: #020203;
  transition: opacity .7s ease, transform .9s cubic-bezier(.6,0,.2,1), filter .7s; }
.splash.out { opacity: 0; transform: scale(1.12); filter: blur(8px); pointer-events: none; }
.sp-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 62%; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0;
  background:
    linear-gradient(rgb(56 189 248 / .22) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgb(56 189 248 / .22) 1px, transparent 1px) 0 0 / 60px 60px;
  -webkit-mask: linear-gradient(transparent, #000 35%, #000 70%, transparent); mask: linear-gradient(transparent, #000 35%, #000 70%, transparent);
  animation: spGrid 1.2s linear infinite; opacity: .55; }
@keyframes spGrid { to { background-position: 0 60px, 0 0; } }
.sp-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgb(230 197 116 / .14), transparent 60%); animation: spPulse 2.2s ease-in-out infinite; }
@keyframes spPulse { 50% { transform: scale(1.1); opacity: .7; } }
.sp-noise { position: absolute; inset: 0; opacity: .05; background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); animation: spNoise .25s steps(3) infinite; pointer-events: none; }
@keyframes spNoise { to { transform: translateY(3px); } }
.sp-core { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -4vh; }
.sp-hud { position: relative; width: min(360px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.sp-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sp-rings circle { fill: none; transform-origin: 150px 150px; }
.sp-r1 { stroke: rgb(230 197 116 / .55); stroke-width: 1.2; stroke-dasharray: 2 6; animation: spSpin 14s linear infinite; }
.sp-r2 { stroke: #e6c574; stroke-width: 2.5; stroke-dasharray: 120 60 40 120 20 300; stroke-linecap: round; animation: spSpin 3.2s linear infinite reverse; filter: drop-shadow(0 0 6px rgb(230 197 116 / .8)); }
.sp-r3 { stroke: rgb(56 189 248 / .7); stroke-width: 7; stroke-dasharray: 1 7.4; animation: spSpin 22s linear infinite; }
.sp-r4 { stroke: rgb(56 189 248 / .9); stroke-width: 1.5; stroke-dasharray: 60 480; stroke-linecap: round; animation: spSpin 1.6s linear infinite; filter: drop-shadow(0 0 5px rgb(56 189 248 / .9)); }
.sp-r5 { stroke: rgb(255 255 255 / .12); stroke-width: 1; }
.sp-draw { stroke-dashoffset: 900; animation: spDraw 1.1s .1s cubic-bezier(.6,.1,.2,1) forwards, spSpin 9s linear infinite; }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
.sp-logo-wrap { position: relative; width: 44%; aspect-ratio: 1; display: grid; place-items: center; }
.sp-logo { width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); animation: spReveal .9s .35s cubic-bezier(.7,0,.2,1) forwards, spFlick 2.2s .35s steps(1) forwards;
  filter: drop-shadow(0 0 22px rgb(230 197 116 / .55)); }
@keyframes spReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes spFlick { 0% { opacity: .4; } 8% { opacity: 1; } 12% { opacity: .55; } 16%, 100% { opacity: 1; } }
.sp-scanline { position: absolute; left: -12%; right: -12%; height: 2px; top: 100%; background: linear-gradient(90deg, transparent, #7dd3fc, #fff, #7dd3fc, transparent);
  box-shadow: 0 0 14px 2px rgb(56 189 248 / .8); animation: spScan .9s .35s cubic-bezier(.7,0,.2,1) forwards; opacity: 0; }
@keyframes spScan { 0% { top: 100%; opacity: 1; } 90% { opacity: 1; } 100% { top: 0; opacity: 0; } }
.sp-title { margin-top: 26px; height: 1.2em; font: 500 clamp(18px, 3.2vw, 26px)/1.2 var(--serif); letter-spacing: .42em; padding-left: .42em; color: #fff; white-space: nowrap;
  text-shadow: 0 0 18px rgb(230 197 116 / .45); }
.sp-title span { display: inline-block; opacity: 0; transform: translateY(8px); filter: blur(4px); animation: spChar .45s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes spChar { to { opacity: 1; transform: none; filter: none; } }
.sp-bar { position: relative; width: min(280px, 64vw); height: 2px; margin-top: 22px; background: rgb(255 255 255 / .08); overflow: hidden; border-radius: 2px; }
.sp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #38bdf8, #e6c574); box-shadow: 0 0 12px rgb(56 189 248 / .9); animation: spLoad 1.9s .2s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes spLoad { 40% { width: 38%; } 70% { width: 74%; } to { width: 100%; } }
.sp-meta { display: flex; justify-content: space-between; width: min(280px, 64vw); margin-top: 10px; font: 500 10px ui-monospace, Consolas, monospace; letter-spacing: .16em; color: rgb(125 211 252 / .85); text-transform: uppercase; }
.sp-meta b { color: #e6c574; font-weight: 600; }
.sp-corner { position: absolute; width: 34px; height: 34px; border: 1.5px solid rgb(56 189 248 / .55); opacity: 0; animation: spCorner .6s .15s forwards; }
.sp-corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.sp-corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.sp-corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.sp-corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
@keyframes spCorner { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
.sp-tag { position: absolute; font: 500 9.5px ui-monospace, Consolas, monospace; letter-spacing: .2em; color: rgb(125 211 252 / .55); text-transform: uppercase; }
.sp-tag.t1 { top: 30px; left: 70px; } .sp-tag.t2 { bottom: 30px; right: 70px; }
.sp-skip { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font: 500 9px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .3); }
body.splashing .core, body.splashing .find-btn, body.splashing .foot { opacity: 0; animation: none; }
body.splashing { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }

/* organizar: soltar um ícone no logo restaura a ordem original */
.drop-hint { position: absolute; left: 50%; top: -34px; transform: translate(-50%, 6px); white-space: nowrap; pointer-events: none; opacity: 0;
  font: 700 9.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #1a1306; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #fff1c2, #e6c574); box-shadow: 0 0 20px rgb(230 197 116 / .7); transition: opacity .25s, transform .25s; z-index: 5; }
body.editing .core { pointer-events: auto; }
body.editing .core .halo { transition: filter .25s; }
body.editing .core::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px dashed rgb(230 197 116 / .35); pointer-events: none; transition: all .25s; }
body.drop-reset .core::after { inset: -16px; border: 2px solid rgb(230 197 116 / .9); box-shadow: 0 0 40px rgb(230 197 116 / .6), inset 0 0 30px rgb(230 197 116 / .35); }
body.drop-reset .core .mono { transform: scale(1.08); transition: transform .25s; }
body.drop-reset .drop-hint { opacity: 1; transform: translate(-50%, 0); }
