/* AURÉBY — peças comuns a todos os temas (carregado depois do tema).
   Usa só as variáveis que todo tema define (--sup, --linha, --texto, --acento…). */

/* Partes da página que só existem em alguns temas */
html[data-tema="gta"] .nao-gta, html:not([data-tema]) .nao-gta,
html[data-tema="termux"] .nao-termux,
html[data-tema="terminal"] .nao-terminal { display: none !important; }

/* ------------------------------------------------------------ seletor de tema (topo) */
.tema-seletor { position: relative; order: 5; margin-left: 14px; flex: none; }
.tema-btn { position: relative; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--texto); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.tema-btn:hover, .tema-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.tema-btn svg { width: 18px; height: 18px; flex: none; }
.tema-btn .tema-btn-nome { white-space: nowrap; }
.tema-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-width: calc(100vw - 24px); background: var(--sup); border: 1px solid var(--linha); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); padding: 8px; display: none; z-index: 61; }
.tema-btn[aria-expanded="true"] + .tema-menu { display: block; }
.tema-menu-cab { padding: 8px 10px 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.tema-op { width: 100%; display: grid; grid-template-columns: 44px 1fr 20px; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--texto); font: inherit; text-align: left; cursor: pointer; }
.tema-op:hover { background: rgba(255, 255, 255, .06); }
.tema-op[aria-checked="true"] { border-color: var(--acento); background: rgba(255, 255, 255, .04); }
.tema-op b { display: block; font-size: 14.5px; line-height: 1.2; }
.tema-op small { display: block; font-size: 12.5px; color: var(--texto-2); line-height: 1.35; margin-top: 2px; }
.tema-op .ok { color: var(--acento); font-weight: 900; visibility: hidden; }
.tema-op[aria-checked="true"] .ok { visibility: visible; }
.amostra { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 700 15px/1 ui-monospace, Consolas, monospace; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, .14); }
.amostra-gta { background: radial-gradient(circle at 70% 78%, #FFD36B 0 22%, transparent 23%), linear-gradient(180deg, #2A0F45 0%, #8A2A7A 48%, #FF4F9A 72%, #FF8A3D 100%); }
.amostra-gta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, rgba(63, 227, 210, .7) 0 1px, transparent 1px 8px), #12091F; }
.amostra-termux { background: #000; color: #5AF78E; }
.amostra-termux::before { content: "~$"; }
.amostra-terminal { background: radial-gradient(circle, #063A15, #010A03 75%); color: #39FF6E; text-shadow: 0 0 6px rgba(57, 255, 110, .9); }
.amostra-terminal::before { content: ">_"; }
@media (max-width: 900px) {
  .tema-seletor { order: 0; margin-left: auto; }
  .nav-sino-mob:not([hidden]) + .tema-seletor { margin-left: 10px; }
  .tema-seletor + .menu-btn { margin-left: 14px; }
  .tema-btn { width: 40px; padding: 0; justify-content: center; }
  .tema-btn .tema-btn-nome { display: none; }
  .tema-menu { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; max-width: none; }
}
html[data-tema="termux"] .tema-btn, html[data-tema="terminal"] .tema-btn,
html[data-tema="termux"] .tema-menu, html[data-tema="terminal"] .tema-menu,
html[data-tema="termux"] .tema-op, html[data-tema="terminal"] .tema-op { border-radius: 4px; }
html[data-tema="termux"] .amostra, html[data-tema="terminal"] .amostra { border-radius: 3px; }

/* ------------------------------------------------------------ apps do + na página inicial */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app-c { position: relative; display: grid; gap: 14px; align-content: start; }
.app-c .app-cab { display: flex; align-items: center; gap: 14px; }
.app-c .app-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--acento); color: var(--tinta, #000); flex: none; }
.app-c .app-ico svg { width: 26px; height: 26px; }
.app-c h3 { font-size: 22px; }
.app-c .app-sub { color: var(--texto-2); font-size: 14px; }
.app-c ul { list-style: none; display: grid; gap: 8px; }
.app-c li { position: relative; padding-left: 22px; font-size: 15px; color: var(--texto-2); }
.app-c li::before { content: "+"; position: absolute; left: 0; color: var(--acento); font-weight: 900; }
.selo-novo { display: inline-block; margin-left: 8px; vertical-align: middle; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--acento); color: var(--tinta, #000); }
.sinfonia { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 22px; border: 1px dashed var(--linha-2, var(--linha)); border-radius: var(--raio, 16px); color: var(--texto-2); font-size: 15px; }
.sinfonia b { color: var(--texto); }
.sinfonia .seta { color: var(--acento); font-weight: 900; }
html[data-tema="termux"] .app-c .app-ico, html[data-tema="terminal"] .app-c .app-ico,
html[data-tema="termux"] .selo-novo, html[data-tema="terminal"] .selo-novo { border-radius: 3px; }
html[data-tema="termux"] .app-c .app-ico, html[data-tema="terminal"] .app-c .app-ico { background: transparent; border: 1px solid var(--acento); color: var(--acento); }

/* Demonstração do + na página inicial: lista de passos do byClick */
.painel .bc-lista { display: grid; gap: 4px; margin: 8px 0; }
.painel .bc-lista div { display: flex; gap: 8px; align-items: center; background: var(--marfim); border-radius: 7px; padding: 5px 8px; font-size: 12px; }
.painel .bc-lista i { font-style: normal; font-weight: 800; color: #6B4DFF; }
.palco .clicado { box-shadow: 0 0 0 3px rgba(107, 77, 255, .45) !important; transform: scale(.96); transition: transform .12s, box-shadow .12s; }
.palco .gravar-falso { justify-self: start; margin-top: 2px; background: #1A73E8; color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 7px; }
