/* Roboto (arquivos locais, sem CDN) */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-latin-500-normal.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-700-normal.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-ext-400-normal.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-latin-ext-500-normal.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-ext-700-normal.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Design Lumina em cores da bandeira: quase preto, vidro fosco, grade com feixes de luz */
:root {
  color-scheme: dark;
  --flag: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #22c55e, #4f7cff, #a855f7);
  --bg: #050505;
  --bg2: rgba(168, 85, 247, .10);
  --surface: rgba(255, 255, 255, .05);
  --ink: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .10);
  --accent: #ffd60a;
  --accent-soft: rgba(255, 214, 10, .12);
  --accent2: #4f7cff;
  --on-accent: #050505;
  --ok: #4ade80;
  --mark-heart: #050505;
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -18px rgba(0, 0, 0, .8);
  --radius: 24px;
  --serif: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; -webkit-font-smoothing: antialiased;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, rgba(228, 3, 3, .10), transparent 45%), radial-gradient(ellipse at 80% 0%, rgba(168, 85, 247, .14), transparent 50%), var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #050505; padding: 10px 14px; z-index: 50; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

.pride { height: 3px; background: linear-gradient(90deg, #e40303 0 16.6%, #ff8c00 0 33.2%, #ffed00 0 49.8%, #008026 0 66.4%, #24408e 0 83%, #732982 0); }

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; max-width: 760px; margin: 0 auto; padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.brand { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 4px; border-radius: 12px; font: inherit; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.top-actions { display: flex; gap: 4px; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 110px; outline: none; }
main:focus-visible { outline: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .9rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 10px; }

/* botões */
.btn {
  font: inherit; font-weight: 600; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(#0b0b0b, #0b0b0b) padding-box, var(--flag) border-box; color: #fff;
  box-shadow: 0 0 22px rgba(168, 85, 247, .25), 0 8px 34px rgba(255, 140, 0, .12);
  transition: transform .2s ease, box-shadow .25s ease;
}
.btn:hover { transform: scale(1.03); box-shadow: 0 0 40px 6px rgba(168, 85, 247, .35), 0 8px 40px rgba(255, 140, 0, .22); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: transparent; color: #d4d4d4; box-shadow: none; min-height: 44px; padding: 8px 14px; }
.btn-ghost:hover { background: var(--accent-soft); color: #fff; box-shadow: none; transform: none; }
.btn-line { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-line:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: none; transform: none; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.btn-row .spacer { flex: 1; }

/* hero */
.hero { padding: 24px 0 8px; }
.hero h1 em { font-style: normal; background: var(--flag); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; }

/* progresso */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress > span { display: block; height: 100%; background: var(--flag); border-radius: 99px; transition: width .25s ease; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* escolhas */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 16px 0; padding: 0; border: 0; }
.choice {
  font: inherit; text-align: left; min-height: 56px; padding: 12px 16px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; gap: 10px; transition: border-color .12s, background .12s, transform .12s;
}
.choice:hover { border-color: var(--accent); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.choice .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.choice[aria-pressed="true"] .dot, .choice[aria-checked="true"] .dot { border-color: var(--accent); background: var(--accent); }
.choice[aria-pressed="true"] .dot::after, .choice[aria-checked="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.choice.is-unknown { border-style: dashed; color: var(--muted); }

/* resumo e abas */
.summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.pill b { font-weight: 700; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs[hidden] { display: none; }
.tab {
  font: inherit; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: none; border: 0; color: var(--muted);
  min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  position: relative;
}
.tab .ico { font-size: 1.25rem; line-height: 1; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; background: var(--flag); border-radius: 0 0 4px 4px; }

/* cartões */
.stack { display: grid; gap: 12px; margin-top: 12px; }
.card { background: var(--surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card .reason { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.quote { font-size: 1.08rem; margin: 0 0 10px; }
.quote::before { content: "\201C"; color: var(--accent); font-family: var(--serif); font-size: 1.4em; line-height: 0; margin-right: 2px; }
.quote::after { content: "\201D"; color: var(--accent); font-family: var(--serif); font-size: 1.4em; line-height: 0; margin-left: 2px; }
.line-item { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.line-item:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); margin-right: 6px; }
.tag.lvl { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tip { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; font-size: .95rem; margin-top: 8px; }
.tip b { color: var(--accent); }

.icon-btn { font: inherit; min-width: 44px; min-height: 44px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; font-size: .95rem; }
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
details.more > summary::-webkit-details-marker { margin-right: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { font: inherit; font-size: .92rem; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

.spotlight { background: linear-gradient(135deg, rgba(168, 85, 247, .20), rgba(255, 140, 0, .10) 60%, rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.spotlight .quote { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }

.avoid { border-left: 5px solid var(--accent); }
.avoid h3 { font-size: 1rem; font-family: var(--sans); }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }

.sec-title { margin-top: 26px; }

/* aviso e toast */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #050505; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 40;
  transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 20px; text-align: center; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.settings-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.settings-block h3 { margin-bottom: 6px; }

@media (min-width: 860px) {
  .tabs { position: sticky; top: 0; bottom: auto; max-width: 760px; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); grid-template-columns: repeat(5, 1fr); overflow: hidden; }
  .tab { flex-direction: row; gap: 8px; min-height: 52px; font-size: .95rem; }
  .tab[aria-current="page"]::before { top: auto; bottom: 0; border-radius: 4px 4px 0 0; }
  main { padding-bottom: 60px; }
  .toast { bottom: 28px; }
  .choices { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.sr-copy{position:fixed;left:-9999px;top:0;opacity:0}
[hidden]{display:none!important}

/* ============ Pastas de vidro (porte do Glass Folder Cards) ============ */
.gf-root {
  --gf-px: 0; --gf-py: 0;
  --gf-ease: cubic-bezier(.2, .8, .2, 1);
  --gf-spring: cubic-bezier(.34, 1.36, .5, 1);
  --gf-hinge: 0deg; --gf-lift: 42px; --gf-spread: 0px; --gf-fan: 0deg; --gf-stack: 15px;
  --gf-ink: #141416; --gf-ink-soft: rgba(20, 20, 22, .55);
  position: relative; display: inline-block; flex: none; vertical-align: top;
  font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; isolation: isolate;
}
.gf-root[data-tone="dark"] { --gf-ink: #f5f5f7; --gf-ink-soft: rgba(245, 245, 247, .58); }
.gf-root:hover, .gf-root:focus-within { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; }
.gf-root[data-open] { --gf-hinge: -24deg; --gf-lift: -96px; --gf-spread: 40px; --gf-fan: 5deg; --gf-stack: 30px; }
.gf-stage { position: absolute; left: 0; top: 0; width: 340px; height: 272px; transform-origin: 0 0; }
.gf-tilt { position: absolute; inset: 0; transform: perspective(1400px) rotateX(calc(var(--gf-py) * -3deg)) rotateY(calc(var(--gf-px) * 4deg)); transition: transform .9s var(--gf-ease); }
.gf-shadow { position: absolute; left: 18px; right: 18px; bottom: -6px; height: 60px; border-radius: 40px; background: rgba(16, 18, 24, .34); filter: blur(22px); transform: translateX(calc(var(--gf-px) * -8px)); transition: transform .9s var(--gf-ease), opacity .9s var(--gf-ease); }
.gf-root[data-tone="dark"] .gf-shadow { background: rgba(0, 0, 0, .62); }
.gf-back { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #f3f3f4 0%, #e3e3e6 100%); }
.gf-root[data-tone="dark"] .gf-back { background: linear-gradient(180deg, #2a2a2e 0%, #121214 100%); }
.gf-art { position: absolute; left: -12px; top: -12px; max-width: none; object-fit: cover; transform: translate(calc(var(--gf-px) * -7px), calc(var(--gf-py) * -6px)) scale(1.02); transition: transform 1.1s var(--gf-ease), opacity 1.2s var(--gf-ease), filter 1.2s var(--gf-ease); }
canvas.gf-art { opacity: 0; filter: blur(14px) saturate(.6); }
canvas.gf-art[data-ready] { opacity: 1; filter: none; }
.gf-back-sheen { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 22%), radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.gf-rim { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; fill: none; }
.gf-back-rim { width: 340px; height: 272px; }
.gf-back-rim path { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.gf-root[data-tone="dark"] .gf-back-rim path { stroke: rgba(255, 255, 255, .16); }

.gf-files { position: absolute; inset: 0; z-index: 5; pointer-events: none; clip-path: inset(-400px -400px 10px -400px); }
.gf-sheet-slot { display: contents; }
.gf-sheet {
  all: unset; box-sizing: border-box; position: absolute; left: 34px; top: 96px; width: 272px; height: 184px;
  border-radius: 16px; overflow: hidden; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1), 0 10px 26px -8px rgba(10, 12, 20, .28);
  transform-origin: 50% 100%;
  transform: translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1)) rotate(calc(var(--gf-jr) + var(--gf-slot) * var(--gf-fan)));
  transition: transform .75s var(--gf-spring) calc(var(--gf-depth) * 40ms), box-shadow .4s var(--gf-ease), translate .9s var(--gf-ease), opacity .9s var(--gf-ease);
}
.gf-root[data-tone="dark"] .gf-sheet { background: linear-gradient(180deg, #2c2c30 0%, #1c1c1f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 .5px rgba(255, 255, 255, .08), 0 12px 28px -8px rgba(0, 0, 0, .7); }
.gf-root[data-open] .gf-sheet:hover, .gf-root[data-open] .gf-sheet:focus-visible {
  transform: translate(calc(var(--gf-jx) + var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1 - 18px)) rotate(calc(var(--gf-slot) * var(--gf-fan) * .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1), 0 22px 40px -12px rgba(10, 12, 20, .42);
  transition-delay: 0s;
}
.gf-sheet:focus-visible { outline: 2px solid #4c8dff; outline-offset: 2px; }
.gf-sheet-head { position: absolute; left: 14px; right: 14px; top: 11px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; white-space: nowrap; }
.gf-sheet-name { overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; color: #18181b; }
.gf-sheet-meta { flex: none; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .02em; color: rgba(24, 24, 27, .5); }
.gf-root[data-tone="dark"] .gf-sheet-name { color: #fafafa; }
.gf-root[data-tone="dark"] .gf-sheet-meta { color: rgba(250, 250, 250, .66); }
.gf-sheet-text { position: absolute; left: 14px; right: 14px; top: 38px; font-size: 13.5px; line-height: 1.4; color: #27272a; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.gf-root[data-tone="dark"] .gf-sheet-text { color: #ececef; }
.gf-lines { position: absolute; left: 14px; right: 14px; top: 40px; display: flex; flex-direction: column; gap: 9px; }
.gf-lines i { display: block; height: 5px; border-radius: 3px; background: rgba(24, 24, 27, .08); }
.gf-lines i:first-child { height: 9px; margin-bottom: 4px; background: rgba(24, 24, 27, .14); }
.gf-sheet--drop { animation: gf-drop .85s var(--gf-ease) both; }
@keyframes gf-drop { 0% { translate: 0 -190px; rotate: -9deg; opacity: 0; } 35% { opacity: 1; } 72% { translate: 0 10px; rotate: 1deg; } 100% { translate: 0 0; rotate: 0deg; opacity: 1; } }

.gf-front { position: absolute; left: 0; top: 74px; width: 340px; height: 198px; z-index: 10; -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); transform-origin: 50% 100%; transform: perspective(760px) rotateX(var(--gf-hinge)); transition: transform .8s var(--gf-spring), translate 1s var(--gf-ease), opacity 1s var(--gf-ease); }
.gf-front--bump { animation: gf-bump .7s var(--gf-ease) .38s both; }
@keyframes gf-bump { 0% { scale: 1; } 35% { scale: 1.018 .975; } 70% { scale: .996 1.006; } 100% { scale: 1; } }
.gf-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .5) 42%, rgba(252, 252, 252, .93) 100%); }
.gf-root[data-tone="dark"] .gf-tint { background: linear-gradient(180deg, rgba(18, 18, 20, .18) 0%, rgba(14, 14, 16, .62) 46%, rgba(8, 8, 10, .94) 100%); }
.gf-spec { position: absolute; inset: 0; background: radial-gradient(260px 200px at calc(50% + var(--gf-px) * 46%) calc(30% + var(--gf-py) * 40%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); mix-blend-mode: soft-light; opacity: .9; pointer-events: none; }
.gf-root[data-tone="dark"] .gf-spec { mix-blend-mode: screen; opacity: .16; }
.gf-front-rim { width: 340px; height: 198px; }
.gf-front-rim path { stroke-width: 2.4; transition: stroke-width .3s var(--gf-ease); }
.gf-root[data-tone="dark"] .gf-front-rim { opacity: .55; }
.gf-hit { all: unset; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gf-hit:focus-visible ~ .gf-label .gf-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.gf-front:has(.gf-hit:focus-visible) .gf-front-rim path { stroke-width: 5; }
.gf-label { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: 200px; pointer-events: none; color: var(--gf-ink); }
.gf-root[data-place="bottom-left"] .gf-label { left: 28px; bottom: 32px; }
.gf-root[data-place="top-left"] .gf-label { left: 28px; top: 34px; }
.gf-root[data-place="top-right"] .gf-label { right: 32px; top: 52px; align-items: flex-start; }
.gf-title { font-size: 18px; font-weight: 500; line-height: 1.15; letter-spacing: -.012em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-meta { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .03em; color: var(--gf-ink-soft); white-space: nowrap; animation: gf-roll .5s var(--gf-ease) both; }
@keyframes gf-roll { from { opacity: 0; translate: 0 7px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

.gf-key { all: unset; box-sizing: border-box; position: absolute; right: 22px; bottom: 22px; z-index: 12; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--gf-spring), box-shadow .35s var(--gf-ease), background .35s var(--gf-ease); }
.gf-key:hover { transform: translateY(-2px); }
.gf-key:active { transform: translateY(0) scale(.93); transition-duration: .12s; }
.gf-key:focus-visible { outline: 2px solid #4c8dff; outline-offset: 3px; }
.gf-key--add { color: #fff; background: radial-gradient(120% 90% at 50% 0%, #3a3a3f 0%, #121214 55%, #050506 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .75), 0 14px 22px -8px rgba(0, 0, 0, .55), 0 3px 6px -2px rgba(0, 0, 0, .35); }
.gf-root[data-tone="dark"] .gf-key--add { color: #111113; background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #ececee 55%, #d2d2d6 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .4), 0 14px 22px -8px rgba(0, 0, 0, .7); }
.gf-glyph { display: block; max-width: none; fill: none; stroke: currentColor; stroke-linecap: round; }
.gf-glyph--plus { width: 26px; height: 26px; stroke-width: 1.6; animation: gf-turn .6s var(--gf-spring); }
@keyframes gf-turn { from { rotate: -90deg; } to { rotate: 0deg; } }

.gf-root:not([data-entered]) .gf-back, .gf-root:not([data-entered]) .gf-back-rim { translate: 0 22px; opacity: 0; }
.gf-root:not([data-entered]) .gf-sheet { translate: 0 -120px; opacity: 0; }
.gf-root:not([data-entered]) .gf-front { translate: 0 46px; opacity: 0; }
.gf-root:not([data-entered]) .gf-key { opacity: 0; scale: .6; }
.gf-root:not([data-entered]) .gf-shadow { opacity: 0; }
.gf-back, .gf-back-rim { transition: translate 1s var(--gf-ease), opacity .9s var(--gf-ease); }
.gf-root[data-entered] .gf-sheet { transition-delay: calc(var(--gf-depth) * 40ms), 0s, calc(.18s + var(--gf-depth) * 90ms), calc(.18s + var(--gf-depth) * 90ms); }
.gf-root[data-entered] .gf-front { transition-delay: 0s, .42s, .42s; }
.gf-key { transition: transform .35s var(--gf-spring), box-shadow .35s var(--gf-ease), opacity .6s var(--gf-ease) .7s, scale .7s var(--gf-spring) .7s; }
@media (prefers-reduced-motion: reduce) {
  .gf-root *, .gf-root *::before, .gf-root *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .gf-tilt { transform: none; }
}

/* ============ Mesa das pastas ============ */
main.wide { max-width: 1160px; }
.desk { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-items: center; gap: 96px 32px; padding: 84px 0 40px; margin-top: 8px; color: var(--ink); }
.desk::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(currentColor 1.1px, transparent 1.4px); background-size: 22px 22px; opacity: .13; pointer-events: none; border-radius: 28px; }
.folder-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.desk-hint { text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.warn { margin: 10px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: .95rem; line-height: 1.45; }


/* fundo Lumina: grade vertical com feixes de luz nas cores da bandeira */
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: flex; width: 100%; max-width: 1280px; margin: 0 auto; border-right: 1px solid rgba(255, 255, 255, .05); opacity: .7; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent); }
.bg-grid > i { flex: 1; position: relative; overflow: hidden; border-left: 1px solid rgba(255, 255, 255, .05); --beam: #e40303; }
.bg-grid > i::after { content: ""; position: absolute; top: 0; left: -1px; width: 1px; height: 16rem; background: linear-gradient(to bottom, transparent, var(--beam), transparent); animation: beam-fall 7s linear infinite; }
.bg-grid > i:nth-child(1) { --beam: #e40303; } .bg-grid > i:nth-child(1)::after { animation-delay: 1s; }
.bg-grid > i:nth-child(2) { --beam: #ff8c00; } .bg-grid > i:nth-child(2)::after { animation-duration: 6s; }
.bg-grid > i:nth-child(3) { --beam: #ffed00; } .bg-grid > i:nth-child(3)::after { height: 24rem; animation-duration: 8s; animation-delay: 2s; }
.bg-grid > i:nth-child(4) { --beam: #22c55e; } .bg-grid > i:nth-child(4)::after { height: 12rem; animation-delay: 4s; }
.bg-grid > i:nth-child(5) { --beam: #a855f7; } .bg-grid > i:nth-child(5)::after { animation-duration: 9s; animation-delay: 3s; }
@keyframes beam-fall { 0% { transform: translateY(-100%); opacity: 0; } 5% { opacity: .5; } 50% { opacity: 1; } 95% { opacity: .5; } 100% { transform: translateY(120vh); opacity: 0; } }
.brand-mark { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: conic-gradient(from 200deg, #e40303, #ff8c00, #ffed00, #22c55e, #4f7cff, #a855f7, #e40303); color: #050505; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.brand-mark svg { width: 20px; height: 20px; }
::selection { background: rgba(168, 85, 247, .35); }

/* legenda das identidades */
.legend { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.45; }
.legend-title { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
.legend dl { margin: 0; display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.legend dt { display: inline; font-weight: 700; color: #d4d4d4; }
.legend dt::after { content: ": "; }
.legend dd { display: inline; margin: 0; }
.legend-note { margin: 12px 0 0; }

/* fundo da mesa das pastas: brilho nas cores da bandeira atrás das pastas */
.desk { background:
  radial-gradient(420px 300px at 16% 62%, rgba(228, 3, 3, .20), transparent 70%),
  radial-gradient(420px 300px at 38% 30%, rgba(255, 140, 0, .16), transparent 70%),
  radial-gradient(420px 300px at 50% 70%, rgba(34, 197, 94, .14), transparent 70%),
  radial-gradient(420px 300px at 64% 28%, rgba(79, 124, 255, .20), transparent 70%),
  radial-gradient(420px 300px at 86% 62%, rgba(168, 85, 247, .24), transparent 70%),
  rgba(255, 255, 255, .025);
  border: 1px solid var(--line); border-radius: 32px; }
@media (max-width: 859px) { .desk { background:
  radial-gradient(360px 260px at 20% 18%, rgba(228, 3, 3, .20), transparent 70%),
  radial-gradient(360px 260px at 80% 38%, rgba(255, 140, 0, .16), transparent 70%),
  radial-gradient(360px 260px at 20% 62%, rgba(34, 197, 94, .14), transparent 70%),
  radial-gradient(360px 260px at 80% 82%, rgba(168, 85, 247, .24), transparent 70%),
  rgba(255, 255, 255, .025); } }
