/* =========================================================
   DICEVTT — ESTILOS COMPARTILHADOS
   Uma folha só, usada por todas as páginas do site.
   ========================================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === PALETA === */
:root {
  --primary:      #6300B0;
  --primary-alt:  #9715CE;
  --primary-blue: #007DFF;
  --gold:         #FFB020;
  --bg:           #0d0d12;
  --bg-elev:      #1c1c28;
  --bg-deep:      #080810;
  --text:         #ECECEC;
  --text-dim:     #A0A0A0;
  --text-mute:    #5a5a68;
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.18);
  --bevel-hi:     rgba(255,255,255,0.22);
  --bevel-lo:     rgba(0,0,0,0.6);
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-mono:    'VT323', 'Courier New', monospace;
  --font-body:    'Spectral', Georgia, serif;
  --ease:         cubic-bezier(.2,.7,.2,1);
  --header-h:     58px;
}

/* === BASE === */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(99,0,176,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,0,176,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
}
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.container-narrow { max-width: 880px; }

/* === CRT === */
.crt-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: overlay; opacity: 0.5;
}

/* === DIVISOR === */
.y2k-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.y2k-divider::before, .y2k-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-alt), transparent);
}
.y2k-divider-label {
  font-family: var(--font-mono); font-size: 19px; color: var(--primary-blue);
  letter-spacing: 0.12em; padding: 3px 16px;
  border: 1px solid var(--primary-alt); background: rgba(99,0,176,0.15);
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  white-space: nowrap;
}

/* =========================================================
   HEADER COMPACTO
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 400;
  height: var(--header-h);
  background: rgba(10,10,16,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(151,21,206,0.35);
}
.nav-container { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 9px; color: var(--text); flex-shrink: 0; }
.brand-icon { width: 26px; height: 26px; color: var(--primary-alt); }
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: 0.06em; }
.brand-accent {
  background: linear-gradient(90deg, var(--primary-alt), var(--primary-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a, .site-nav button.nav-link {
  font-family: var(--font-mono); font-size: 19px; line-height: 1;
  color: var(--text-dim); padding: 7px 11px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav a:hover, .site-nav button.nav-link:hover { color: var(--text); border-bottom-color: var(--primary-alt); }
.site-nav .is-current { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.site-nav .is-offline { color: var(--text-mute); }
.site-nav .is-offline::after { content: " ⚠"; font-size: 13px; color: var(--gold); }

.nav-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: var(--text-dim);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  transition: all .2s var(--ease);
}
.icon-link:hover { color: #fff; border-color: var(--primary-alt); background: rgba(99,0,176,0.25); }
.icon-link svg { width: 15px; height: 15px; }

.nav-cta {
  font-family: var(--font-mono); font-size: 18px; line-height: 1;
  padding: 7px 15px; color: #fff;
  border: 1px solid var(--primary-alt);
  background: linear-gradient(180deg, rgba(151,21,206,.75), rgba(99,0,176,.75));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: all .2s var(--ease);
}
.nav-cta:hover { background: linear-gradient(180deg, #b020e0, var(--primary-alt)); }

.nav-toggle { display: none; color: var(--text); padding: 6px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-side { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(8,8,16,0.98); border-bottom: 1px solid var(--primary-alt);
    padding: 8px 0 14px; max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .site-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .site-nav a, .site-nav button.nav-link {
    padding: 12px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); text-align: left;
  }
  .nav-side .icon-link { display: none; }
}

/* === STATUS BAR === */
.status-bar { background: rgba(8,8,16,0.9); border-bottom: 1px solid var(--line); padding: 4px 0; overflow: hidden; }
.status-bar-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 15px; color: var(--text-mute); letter-spacing: 0.05em;
}
.status-item { display: flex; align-items: center; gap: 7px; padding: 0 16px; border-right: 1px solid var(--line); }
.status-item:last-child { border-right: none; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary-alt);
  box-shadow: 0 0 8px var(--primary-alt); animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.status-val { color: var(--primary-blue); }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 22px; font-family: var(--font-mono); font-size: 19px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid currentColor; transition: all .22s var(--ease);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--primary-alt), var(--primary));
  border-color: var(--primary-blue); text-shadow: 0 1px 3px rgba(0,0,0,.8);
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), 0 8px 24px rgba(99,0,176,.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #b020e0, var(--primary-alt)); transform: translateY(-2px); }
.btn-ghost {
  color: var(--text); background: rgba(0,0,0,.3); border-color: var(--line-strong);
  box-shadow: 2px 2px 0 rgba(0,0,0,.5), inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}
.btn-ghost:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: rgba(0,125,255,.08); }
.btn-large { padding: 15px 32px; font-size: 23px; }
.btn-small { padding: 7px 16px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }
.btn[disabled]:hover, .btn.is-disabled:hover { transform: none; }

.btn-gold {
  color: #1a1200; background: linear-gradient(180deg, #FFD23D, var(--gold));
  border-color: #FFE68A; text-shadow: none; font-weight: 700;
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), inset 1px 1px 0 rgba(255,255,255,.6), 0 8px 26px rgba(255,176,32,.4);
}
.btn-gold:hover { background: linear-gradient(180deg, #FFE68A, #FFD23D); transform: translateY(-2px); }
.btn-discord {
  color: #fff; background: linear-gradient(180deg, #6b74f9, #5865F2); border-color: rgba(255,255,255,.35);
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), inset 1px 1px 0 rgba(255,255,255,.25), 0 8px 24px rgba(88,101,242,.4);
}
.btn-discord:hover { background: linear-gradient(180deg, #7d85fb, #6b74f9); transform: translateY(-2px); }
.btn-instagram {
  color: #fff; background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF);
  border-color: rgba(255,255,255,.35);
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), inset 1px 1px 0 rgba(255,255,255,.25), 0 8px 24px rgba(221,42,123,.35);
}
.btn-instagram:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-github {
  color: #fff; background: linear-gradient(180deg, #2d333b, #1c2128); border-color: rgba(255,255,255,.25);
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), inset 1px 1px 0 rgba(255,255,255,.1);
}
.btn-github:hover { background: linear-gradient(180deg, #3d434b, #2c3138); transform: translateY(-2px); }

/* =========================================================
   TIPOGRAFIA DE SEÇÃO
   ========================================================= */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 46px; }
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.06; margin-bottom: 14px;
}
.text-glow {
  background: linear-gradient(110deg, var(--primary-alt), var(--primary-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead { font-size: 17px; color: var(--text-dim); line-height: 1.65; max-width: 620px; margin: 0 auto; }
.prose p { font-size: 16px; color: var(--text-dim); line-height: 1.75; margin-bottom: 16px; max-width: 70ch; }
.prose p strong { color: var(--text); }
.prose p em { color: var(--text); font-style: italic; }

/* === CABEÇALHO DE PÁGINA INTERNA === */
.page-head { padding: 64px 0 40px; position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(99,0,176,.22), transparent 62%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-kicker {
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.14em;
  color: var(--primary-alt); margin-bottom: 8px;
}
.page-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 6vw, 60px); line-height: 1.02; margin-bottom: 14px;
}
.page-desc { font-size: 17px; color: var(--text-dim); max-width: 70ch; line-height: 1.7; }
.breadcrumb { font-family: var(--font-mono); font-size: 17px; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary-blue); }

/* =========================================================
   CARDS GENÉRICOS
   ========================================================= */
.card {
  position: relative; background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 2px 2px 0 rgba(0,0,0,.5), inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; background: linear-gradient(90deg, rgba(99,0,176,.5), rgba(0,125,255,.18));
  border-bottom: 1px solid var(--line-strong);
}
.card-header h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.card-tag { font-family: var(--font-mono); font-size: 16px; color: var(--primary-blue); letter-spacing: .08em; }
.card-body { padding: 20px 18px; }
.card-body p { font-size: 15px; color: var(--text-dim); line-height: 1.65; }
.card-icon { width: 30px; height: 30px; color: var(--primary-alt); flex-shrink: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Lista com marcador ▸ (usada em várias páginas) */
.tick-list li {
  position: relative; padding: 7px 0 7px 24px; font-size: 15px; color: var(--text);
  line-height: 1.55; border-bottom: 1px dashed var(--line);
}
.tick-list li:last-child { border-bottom: none; }
.tick-list li::before {
  content: "▸"; position: absolute; left: 0; top: 7px;
  color: var(--primary-blue); font-family: var(--font-mono);
}
.tick-list li span.nota { display: block; font-size: 14px; color: var(--text-mute); }

/* =========================================================
   HOME — HERO
   ========================================================= */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 72px 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(151,21,206,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,21,206,.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .32; }
.hero-glow-purple { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -80px; }
.hero-glow-blue { width: 480px; height: 480px; background: var(--primary-blue); bottom: -160px; right: -100px; }
.hero-d20 {
  position: absolute; width: clamp(240px, 34vw, 440px); right: -2%; top: 50%;
  transform: translateY(-50%); opacity: .7;
  animation: floatD20 9s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(151,21,206,.4));
}
@keyframes floatD20 {
  0%,100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(-54%) rotate(4deg); }
}
@media (max-width: 900px) { .hero-d20 { opacity: .12; right: -25%; } }

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-frame {
  border: 1px solid var(--primary-alt); background: rgba(13,13,18,.8); backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding-bottom: 32px;
  box-shadow: 0 0 40px rgba(99,0,176,.28), inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}
.titlebar {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: linear-gradient(90deg, var(--primary), rgba(0,125,255,.55));
  border-bottom: 1px solid var(--primary-alt); position: relative;
}
.tb-btn { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.tb-btn:nth-child(1) { background: #ff5f57; }
.tb-btn:nth-child(2) { background: #febc2e; }
.tb-btn:nth-child(3) { background: #28c840; }
.tb-title {
  font-family: var(--font-mono); font-size: 17px; color: rgba(255,255,255,.92);
  letter-spacing: .1em; margin-left: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.hero-inner { padding: 26px 34px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 17px; letter-spacing: .1em; color: var(--primary-alt); margin-bottom: 18px;
  padding: 3px 14px; border: 1px solid var(--line-strong); background: rgba(99,0,176,.1);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-alt); box-shadow: 0 0 8px var(--primary-alt); animation: blink 1.6s ease-in-out infinite; }
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 6.6vw, 76px); line-height: 1; letter-spacing: -.02em; margin-bottom: 18px;
}
.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(110deg, var(--primary-alt), var(--primary-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
}
.hero-subtitle { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-dim); margin-bottom: 24px; max-width: 58ch; }
.hero-subtitle em { color: var(--text); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-stats {
  display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); background: rgba(0,0,0,.35);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.hero-stat {
  flex: 1; min-width: 90px; padding: 9px 12px; border-right: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 15px; color: var(--text-dim); text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong { display: block; font-size: 23px; font-weight: 400; color: var(--primary-blue); text-shadow: 0 0 10px rgba(0,125,255,.5); }
@media (max-width: 768px) { .hero-inner { padding: 22px 20px 0; } }

/* =========================================================
   HOME — MAPA DO SITE (resumos das páginas)
   ========================================================= */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 2px 2px 0 rgba(0,0,0,.5), inset 1px 1px 0 var(--bevel-hi);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hub-card:hover, .hub-card:focus-visible {
  transform: translateY(-4px); border-color: var(--primary-alt);
  box-shadow: 2px 6px 0 rgba(0,0,0,.6), 0 16px 30px -18px rgba(151,21,206,.6);
}
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-icon { width: 30px; height: 30px; color: var(--primary-alt); }
.hub-state { font-family: var(--font-mono); font-size: 15px; color: var(--text-mute); letter-spacing: .08em; }
.hub-state.off { color: var(--gold); }
.hub-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.hub-card p { font-size: 15px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.hub-go {
  font-family: var(--font-mono); font-size: 17px; color: var(--primary-blue);
  display: inline-flex; align-items: center; gap: 7px;
}
.hub-card:hover .hub-go { color: #fff; }

/* =========================================================
   FERRAMENTAS (ziguezague)
   ========================================================= */
.tool-row { display: flex; align-items: center; gap: 56px; margin-bottom: 76px; }
.tool-row:last-child { margin-bottom: 0; }
.tool-row:nth-child(even) { flex-direction: row-reverse; }
.tool-content { flex: 1; }
.tool-tag {
  font-family: var(--font-mono); font-size: 17px; letter-spacing: .12em; color: var(--primary-alt);
  margin-bottom: 12px; display: inline-block; padding: 3px 12px;
  background: rgba(99,0,176,.15); border: 1px solid var(--primary-alt);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.tool-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.tool-desc { font-size: 16px; color: var(--text-dim); line-height: 1.65; margin-bottom: 20px; max-width: 62ch; }
.tool-visual {
  flex: 1; background: linear-gradient(180deg, var(--bg-elev), var(--bg-deep));
  border: 1px solid var(--line-strong); padding: 26px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  box-shadow: 4px 4px 0 rgba(0,0,0,.5), inset 1px 1px 0 var(--bevel-hi);
  display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden;
}
.tool-visual img {
  width: 100%; max-width: 480px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 15px 35px rgba(0,0,0,.6); transition: transform .4s var(--ease);
}
.tool-visual:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .tool-row, .tool-row:nth-child(even) { flex-direction: column; gap: 32px; } }

/* Vídeo */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 15px 35px rgba(0,0,0,.6); background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, rgba(99,0,176,.1) 0 12px, rgba(0,0,0,.25) 12px 24px);
  font-family: var(--font-mono); font-size: 19px; color: var(--text-dim);
}
.video-soon strong { color: var(--primary-blue); font-weight: 400; }

/* Destaque de imagem única */
.shot {
  max-width: 760px; margin: 0 auto 20px; padding: 22px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-deep));
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: 4px 4px 0 rgba(0,0,0,.5), inset 1px 1px 0 var(--bevel-hi);
}
.shot img { width: 100%; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 15px 35px rgba(0,0,0,.6); }
.shot-caption { max-width: 62ch; margin: 0 auto 52px; text-align: center; font-size: 15px; color: var(--text-dim); }
.shot-caption strong { color: var(--text); }

/* =========================================================
   SISTEMAS (abas)
   ========================================================= */
.systems { position: relative; padding: 92px 0; background: var(--sys-bg-base, var(--bg)); transition: background-color .7s var(--ease); }
.systems[data-system="dnd5e"] {
  --sys-bg-base: #1a1010; --sys-bg-elev: #221414; --sys-accent: #A8313F; --sys-accent-2: #fff;
  --sys-text: #f7e6e8; --sys-text-dim: #c9a4aa; --sys-line: rgba(168,49,63,.35); --sys-glow: rgba(168,49,63,.55);
}
.systems[data-system="mod"] {
  --sys-bg-base: #0e1a18; --sys-bg-elev: #16221f; --sys-accent: #00A896; --sys-accent-2: #F26419;
  --sys-text: #e6f7f4; --sys-text-dim: #A0A0A0; --sys-line: rgba(0,168,150,.35); --sys-glow: rgba(0,168,150,.55);
}
.systems .section-title { color: var(--sys-text, var(--text)); transition: color .7s var(--ease); }
.systems .section-lead { color: var(--sys-text-dim, var(--text-dim)); transition: color .7s var(--ease); }
.systems .y2k-divider::before, .systems .y2k-divider::after {
  background: linear-gradient(90deg, transparent, var(--sys-accent), transparent);
}
.systems .y2k-divider-label { border-color: var(--sys-accent); color: var(--sys-accent); background: rgba(0,0,0,.3); }

.tab-strip { display: flex; flex-wrap: wrap; gap: 3px; padding-left: 10px; position: relative; z-index: 1; }
.tab {
  flex: 1 1 160px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; color: var(--sys-text-dim, var(--text-mute));
  background: linear-gradient(180deg, rgba(30,20,40,.8), rgba(20,14,28,.95));
  border: 1px solid var(--sys-line, var(--line)); border-bottom: none; position: relative; top: 1px;
  transition: all .3s var(--ease);
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% 100%, 0% 100%, 0% 8px);
}
.tab:hover { color: var(--sys-text, var(--text)); }
.tab[aria-selected="true"] {
  color: var(--sys-accent); background: linear-gradient(180deg, rgba(50,30,70,1), rgba(40,24,60,1));
  border-color: var(--sys-accent); z-index: 2;
}
.tab-num { font-family: var(--font-mono); font-size: 19px; }
.tab-panels {
  position: relative; z-index: 1; background: var(--sys-bg-elev, var(--bg-elev));
  border: 1px solid var(--sys-line, var(--line-strong)); padding: 46px 40px; min-height: 400px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: inset 1px 1px 0 var(--bevel-hi), 0 8px 32px rgba(0,0,0,.5);
  transition: background-color .7s var(--ease), border-color .7s var(--ease);
}
.tab-panel { display: none; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: center; }
.tab-panel.is-active { display: grid; animation: panelFade .45s var(--ease); }
@keyframes panelFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-tag { font-family: var(--font-mono); font-size: 17px; letter-spacing: .12em; color: var(--sys-accent); margin-bottom: 10px; }
.panel-title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 44px);
  line-height: 1; color: var(--sys-text); margin-bottom: 14px; text-shadow: 0 0 30px var(--sys-glow);
}
.panel-desc { font-size: 16px; color: var(--sys-text); opacity: .85; line-height: 1.7; margin-bottom: 18px; }
.panel-desc em { color: var(--sys-accent-2); font-style: italic; }
.panel-features { margin-bottom: 24px; }
.panel-features li {
  position: relative; padding: 7px 0 7px 24px; color: var(--sys-text); opacity: .88;
  border-bottom: 1px dashed var(--sys-line); font-size: 15px;
}
.panel-features li:last-child { border-bottom: none; }
.panel-features li::before { content: "▸"; position: absolute; left: 0; top: 7px; color: var(--sys-accent); font-family: var(--font-mono); }
.btn-tab {
  font-family: var(--font-mono); font-size: 18px; color: var(--sys-bg-base);
  background: var(--sys-accent); border-color: var(--sys-accent);
  box-shadow: 2px 2px 0 rgba(0,0,0,.6), 0 8px 24px var(--sys-glow);
}
.btn-tab:hover { background: var(--sys-accent-2); color: var(--sys-bg-base); transform: translateY(-2px); }
.panel-art { display: flex; align-items: center; justify-content: center; }
.panel-art svg {
  width: 100%; max-width: 260px; color: var(--sys-accent);
  filter: drop-shadow(0 0 22px var(--sys-glow)); animation: floatD20 8s ease-in-out infinite;
}
@media (max-width: 820px) {
  .tab-panel.is-active { grid-template-columns: 1fr; gap: 26px; }
  .panel-art { order: -1; } .panel-art svg { max-width: 170px; }
  .tab-panels { padding: 32px 22px; }
  .tab { flex: 1 1 120px; padding: 10px 8px; font-size: 12px; }
}

/* =========================================================
   CTA / CAIXAS
   ========================================================= */
.cta { padding: 92px 0; text-align: center; background: radial-gradient(ellipse at center, rgba(99,0,176,.14), transparent 70%); }
.cta-box {
  display: inline-block; padding: 48px clamp(24px, 5vw, 64px); text-align: center;
  border: 1px solid var(--primary-alt); background: rgba(13,13,18,.85);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: 0 0 60px rgba(99,0,176,.22), inset 1px 1px 0 var(--bevel-hi);
  max-width: 760px;
}
.cta-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(25px, 4.2vw, 46px); line-height: 1.1; margin-bottom: 12px; }
.cta-text { font-size: 16px; color: var(--text-dim); margin-bottom: 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.aviso-box {
  border: 1px solid var(--gold); background: rgba(255,176,32,.08);
  padding: 12px 16px; font-size: 15px; color: var(--text-dim); line-height: 1.6;
}
.aviso-box strong { color: #FFD23D; }

/* Destaque de apoio (apoia.se) no topo da home */
.cta-gold { background: radial-gradient(ellipse at center, rgba(255,176,32,.16), transparent 70%); }
.cta-box-gold {
  border-color: var(--gold);
  box-shadow: 0 0 70px rgba(255,176,32,.28), inset 1px 1px 0 var(--bevel-hi);
}
.cta-box-xl { max-width: 900px; padding: 52px clamp(26px, 6vw, 76px); }
.cta-title-xl { font-size: clamp(30px, 5.4vw, 54px); }
.apoio-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 14px;
  margin: 8px 0 30px;
}
.apoio-pills span {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em;
  color: var(--gold); border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.08);
  padding: 5px 12px; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.btn-xl { padding: 19px 40px; font-size: 27px; }

/* Contador de downloads */
.download-counter { display: flex; justify-content: center; margin-bottom: 24px; }
.download-counter a {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px;
  border: 1px solid var(--primary-alt); background: rgba(99,0,176,.15);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all .22s var(--ease);
}
.download-counter a:hover { background: rgba(99,0,176,.32); transform: translateY(-2px); }
.download-counter img { height: 28px; width: auto; }
.download-counter-label { font-family: var(--font-mono); font-size: 17px; letter-spacing: .12em; color: var(--primary-blue); }

/* Terminal */
.terminal-box {
  border: 1px solid var(--primary-alt); background: rgba(13,13,18,.85); margin: 20px 0; text-align: left;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.terminal-steps { padding: 16px 20px; }
.terminal-steps li { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-family: var(--font-mono); font-size: 17px; }
.terminal-steps li code::before { content: "$ "; color: var(--primary-blue); }
.terminal-step-num {
  flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--primary-blue);
  border: 1px solid var(--primary-blue); border-radius: 50%;
}
code {
  font-family: var(--font-mono); font-size: 16px; background: rgba(255,255,255,.08);
  padding: 1px 6px; border-radius: 3px; color: var(--primary-blue);
}

/* =========================================================
   NOTAS DE ATUALIZAÇÃO (acordeão estilo Steam)
   ========================================================= */
.notas-lista { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.nota-item {
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.nota-head {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; text-align: left;
  transition: background .2s var(--ease);
}
.nota-head:hover { background: rgba(99,0,176,.12); }
.nota-chevron { width: 14px; height: 14px; color: var(--primary-blue); transition: transform .25s var(--ease); flex-shrink: 0; }
.nota-item.is-open .nota-chevron { transform: rotate(90deg); }
.nota-versao { font-family: var(--font-mono); font-size: 21px; color: var(--text); letter-spacing: .06em; }
.nota-titulo { font-size: 15px; color: var(--text-dim); flex: 1; }
.nota-data { font-family: var(--font-mono); font-size: 16px; color: var(--text-mute); }
.nota-badge {
  font-family: var(--font-mono); font-size: 14px; padding: 2px 9px; color: #fff;
  background: var(--primary); border: 1px solid var(--primary-alt);
}
.nota-corpo { display: none; padding: 4px 20px 22px 46px; border-top: 1px solid var(--line); }
.nota-item.is-open .nota-corpo { display: block; animation: notaOpen .25s var(--ease); }
@keyframes notaOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.md-body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text);
  margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.md-body h3:first-child { margin-top: 14px; }
.md-body p { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.md-body blockquote {
  font-size: 14px; color: var(--text-mute); border-left: 2px solid var(--primary-alt);
  padding: 4px 14px; margin-bottom: 16px; font-style: italic;
}
.md-body ul { margin-bottom: 14px; }
.md-body li {
  position: relative; padding: 5px 0 5px 22px; font-size: 15px; color: var(--text); line-height: 1.6;
  border-bottom: 1px dashed var(--line);
}
.md-body li:last-child { border-bottom: none; }
.md-body li::before { content: "▸"; position: absolute; left: 0; top: 5px; color: var(--primary-blue); font-family: var(--font-mono); }
.md-body strong { color: #fff; }
.md-body hr { border: none; border-top: 1px dashed var(--line-strong); margin: 22px 0; }

.status-msg { font-family: var(--font-mono); font-size: 18px; color: var(--text-dim); text-align: center; padding: 26px 0; }
.status-msg.is-error { color: #ff8a8a; }

.notas-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.mini-btn {
  font-family: var(--font-mono); font-size: 17px; color: var(--text-dim);
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); padding: 5px 14px;
  transition: all .2s var(--ease);
}
.mini-btn:hover { color: var(--primary-blue); border-color: var(--primary-blue); }

/* =========================================================
   TUTORIAIS
   ========================================================= */
.tut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.tut-card {
  display: flex; flex-direction: column; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.tut-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.tut-cat { font-family: var(--font-mono); font-size: 16px; letter-spacing: .1em; color: var(--primary-alt); }
.tut-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.tut-card p { font-size: 15px; color: var(--text-dim); line-height: 1.6; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filtro {
  font-family: var(--font-mono); font-size: 18px; padding: 5px 15px; color: var(--text-dim);
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); transition: all .2s var(--ease);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.filtro:hover { color: var(--text); }
.filtro.is-active { color: #fff; background: rgba(99,0,176,.5); border-color: var(--primary-alt); }

/* =========================================================
   FUTURO (roadmap)
   ========================================================= */
.roadmap-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 12px 0; margin-bottom: 40px;
  background: rgba(10,10,16,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.roadmap-nav a {
  font-family: var(--font-mono); font-size: 18px; color: var(--text-dim); padding: 4px 12px;
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.roadmap-nav a:hover, .roadmap-nav a.is-active { color: var(--primary-blue); border-color: var(--primary-blue); }

.bloco-futuro { margin-bottom: 56px; scroll-margin-top: 130px; }
.bloco-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.bloco-head h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); }
.bloco-head p { font-size: 15px; color: var(--text-dim); flex: 1; min-width: 240px; }
.futuro-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.futuro-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.futuro-item:hover { border-color: var(--primary-alt); background: rgba(99,0,176,.1); }
.futuro-item h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.futuro-item p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.fase {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em;
  padding: 2px 8px; border: 1px solid currentColor; margin-top: 2px;
}
.fase-desenvolvimento { color: #4ade80; }
.fase-proxima        { color: var(--primary-blue); }
.fase-planejada      { color: var(--primary-alt); }
.fase-estudo         { color: var(--text-mute); }
.legenda { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 34px; font-family: var(--font-mono); font-size: 17px; color: var(--text-dim); }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* =========================================================
   SRDs / PARCEIROS / APOIE
   ========================================================= */
.srds-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.srds-item:last-child { border-bottom: none; }
.srds-item:hover { background: rgba(99,0,176,.08); }
.srds-item-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.srds-item-info { flex: 1; }
.srds-item-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.srds-item-meta { font-family: var(--font-mono); font-size: 14px; color: var(--text-mute); letter-spacing: .04em; }
.srds-item-tag {
  font-family: var(--font-mono); font-size: 13px; padding: 3px 9px; border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.4); color: var(--primary-blue);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 16px;
  letter-spacing: .06em; padding: 4px 13px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.35);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.badge-dot-sm { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.empty-state {
  text-align: center; padding: 56px 28px; border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(45deg, rgba(99,0,176,.05) 0 14px, transparent 14px 28px);
}
.empty-state h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.empty-state p { font-size: 15px; color: var(--text-dim); max-width: 56ch; margin: 0 auto 22px; line-height: 1.7; }

.tabela-simples { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela-simples th, .tabela-simples td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tabela-simples th { font-family: var(--font-mono); font-size: 17px; color: var(--primary-blue); letter-spacing: .08em; font-weight: 400; }
.tabela-simples td { color: var(--text-dim); }
.tabela-simples td:first-child { color: var(--text); }
.tabela-wrap { overflow-x: auto; border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--primary); padding-top: 48px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 52px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-text { font-size: 20px; display: block; margin-bottom: 8px; }
.footer-tag { font-family: var(--font-mono); font-size: 16px; color: var(--text-mute); letter-spacing: .05em; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 17px; letter-spacing: .12em; color: var(--primary-blue);
  margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line-strong);
}
.footer-col a, .footer-col button {
  display: block; padding: 4px 0; color: var(--text-dim); font-size: 14px;
  transition: color .2s var(--ease); text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--primary-alt); }
.footer-bottom {
  padding: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 15px; color: var(--text-mute);
}
.footer-usp strong { color: var(--primary-alt); font-weight: 400; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--primary-alt); margin-left: 4px; animation: blink 1.1s step-end infinite; vertical-align: text-bottom; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   MODAIS
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(5,5,8,.84); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s var(--ease);
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; text-align: left;
  border: 1px solid var(--primary-alt); background: rgba(13,13,18,.97);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 0 60px rgba(99,0,176,.35);
  animation: modalIn .22s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 15px; opacity: .85; }
.modal-close:hover { opacity: 1; }
.modal-content { padding: 26px 28px 28px; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-bottom: 14px; }
.modal-text { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.modal-text em { color: var(--text); font-style: italic; }
.modal-list { margin-bottom: 20px; }
.modal-list li { position: relative; padding: 5px 0 5px 22px; color: var(--text); font-size: 14px; line-height: 1.55; }
.modal-list li::before { content: "▸"; position: absolute; left: 0; top: 5px; color: var(--primary-blue); font-family: var(--font-mono); }
.modal-checkbox {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; margin-bottom: 20px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); font-size: 14px; cursor: pointer;
}
.modal-checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary-alt); flex-shrink: 0; cursor: pointer; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 480px) { .modal-actions { justify-content: stretch; } .modal-actions .btn { flex: 1; } }

/* =========================================================
   PALETA DE NAVEGAÇÃO RÁPIDA (Ctrl+K)
   ========================================================= */
.palette-overlay {
  position: fixed; inset: 0; z-index: 10001; background: rgba(5,5,8,.7); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
  animation: fadeIn .14s var(--ease);
}
.palette-overlay[hidden] { display: none; }
.palette {
  width: 100%; max-width: 520px; border: 1px solid var(--primary-alt); background: rgba(13,13,18,.98);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 40px rgba(99,0,176,.3);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: modalIn .18s var(--ease);
}
.palette input {
  width: 100%; padding: 15px 18px; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-mono); font-size: 21px; outline: none;
}
.palette input::placeholder { color: var(--text-mute); }
.palette-list { max-height: 320px; overflow-y: auto; padding: 6px 0; }
.palette-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; text-align: left;
  color: var(--text-dim); transition: background .12s var(--ease), color .12s var(--ease);
}
.palette-item:hover, .palette-item.is-active { background: rgba(99,0,176,.28); color: #fff; }
.palette-item .p-nome { flex: 1; font-size: 15px; }
.palette-item .p-tipo { font-family: var(--font-mono); font-size: 15px; color: var(--text-mute); }
.palette-foot {
  padding: 9px 18px; border-top: 1px solid var(--line); font-family: var(--font-mono);
  font-size: 15px; color: var(--text-mute); display: flex; gap: 16px; flex-wrap: wrap;
}
kbd {
  font-family: var(--font-mono); font-size: 14px; padding: 1px 6px; color: var(--text);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); border-radius: 3px;
}

/* Botão voltar ao topo */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--primary-alt); background: rgba(13,13,18,.9); color: var(--primary-blue);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: rgba(99,0,176,.4); color: #fff; }
.to-top svg { width: 16px; height: 16px; }

/* =========================================================
   ANIMAÇÃO DE ENTRADA (discreta)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* === A11Y === */
:focus-visible { outline: 2px solid var(--primary-alt); outline-offset: 3px; }
.systems :focus-visible { outline-color: var(--sys-accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
