/* ================= Design tokens ================= */
:root {
  /* superfícies (dark mode de estúdio) */
  --bg: #0F1117;          /* fundo principal */
  --bg-2: #12141C;        /* trilhos (timeline, palco) */
  --surface: #181B24;     /* painéis e barras laterais */
  --surface-2: #1F2330;   /* cards, controles */
  --surface-3: #282D3C;   /* hover */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  /* texto */
  --ink: #ECEEF4; --ink-2: #A4A9B8; --ink-3: #6B7183;
  /* cores de ação (harmônicas) */
  --accent: #7CC223;      /* ação principal / criar */
  --select: #4C8DFF;      /* seleção / ativo */
  --play: #FF9F43;        /* reprodução */
  --violet: #9B6BFF; --cyan: #38BDF8; --rose: #FF5C7A; --teal: #2DD4BF; --amber: #FBBF24;
  /* compatibilidade com nomes antigos usados no código */
  --bar: var(--surface); --panel: var(--surface); --active: var(--select);
  --orange: var(--play); --green: var(--accent); --blue: var(--select); --red: var(--rose);
  --purple: var(--violet); --grey: var(--ink-3); --cream: #FFF6E0; --folder: var(--amber);
  /* forma e profundidade */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: Inter, "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); overflow: hidden; user-select: none; -webkit-font-smoothing: antialiased; }
#app { height: 100%; display: flex; }
canvas { display: block; touch-action: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ================= Barras de ferramentas ================= */
.bar { width: 84px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 8px 6px; gap: 2px; }
.bar-sep { height: 1px; background: var(--line); margin: 6px 10px; flex: none; }
.panel { flex: none; background: var(--surface); border-right: 1px solid var(--line); }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 4px; cursor: pointer; text-align: center; border-radius: var(--r-md); transition: background .15s, opacity .15s; flex: none; }
.tool .g { font-size: 22px; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, currentColor 14%, transparent); }
.tool .l { font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: pre-line; line-height: 1.25; color: var(--ink-2); }
.tool:hover { background: var(--surface-2); }
.tool:hover .l { color: var(--ink); }
.tool.on { background: color-mix(in srgb, var(--select) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--select) 55%, transparent); }
.tool.on .l { color: var(--ink); }
.tool.off { opacity: .3; pointer-events: auto; filter: grayscale(.6); }
.tool:active { transform: scale(.97); }

.menu-item { padding: 13px 18px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: var(--r-sm); margin: 2px 8px; color: var(--ink); }
.menu-item:hover { background: var(--surface-2); }
.folder { padding: 13px 14px; font-size: 14px; color: var(--amber); cursor: pointer; border-radius: var(--r-sm); margin: 2px 8px; }
.folder:hover { background: var(--surface-2); }
.lib-row { display: flex; align-items: center; padding: 6px 10px; cursor: pointer; color: var(--ink); font-size: 13px; gap: 10px; border-radius: var(--r-sm); margin: 2px 6px; }
.lib-row:hover { background: var(--surface-2); }
.lib-row canvas { background: #fff; border-radius: 6px; flex: none; }
.lib-head { background: var(--surface-2); color: var(--ink); padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--line); }

/* ================= Tela inicial ================= */
.home-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.home-head h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.home-head .slots { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.home-head .sp { flex: 1; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; padding: 20px; align-content: start; align-items: start; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.proj-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.proj-thumb { aspect-ratio: 16 / 9; background: #fff; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.proj-thumb canvas { width: 100% !important; height: 100% !important; }
.proj-thumb.empty { background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font-size: 12px; }
.proj-thumb.empty .ic { font-size: 26px; opacity: .7; }
.proj-info { display: flex; align-items: center; gap: 6px; padding: 10px 6px 10px 12px; }
.proj-info .t { flex: 1; min-width: 0; }
.proj-info .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-info .meta { font-size: 11px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { font-size: 18px; padding: 6px 8px; cursor: pointer; color: var(--ink-2); border-radius: var(--r-sm); line-height: 1; }
.dots:hover { background: var(--surface-3); color: var(--ink); }
.proj-empty { grid-column: 1 / -1; color: var(--ink-2); padding: 40px 10px; font-size: 15px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

.side-nav { width: 112px; flex: none; background: var(--surface); border-left: 1px solid var(--line); padding: 12px 8px; gap: 6px; align-items: stretch; }
.side-btn { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border-radius: var(--r-md); cursor: pointer; transition: background .15s; text-align: center; flex: none; }
.side-btn .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.side-btn .lb { font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: pre-line; line-height: 1.25; }
.side-btn:hover { background: var(--surface-2); }
.side-btn:hover .lb { color: var(--ink); }
.side-btn.primary .ic { background: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); }

/* telas antigas (itens/construtor) */
.home { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; }
.big { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 20px 30px; }
.big .ic { width: 130px; height: 130px; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.big .lb { font-size: 16px; font-weight: 600; text-align: center; padding-top: 10px; white-space: pre-line; }
.items-list { flex: 1; background: var(--bg); padding: 12px; }
.item-row { display: flex; align-items: center; padding: 8px; cursor: pointer; gap: 16px; border-radius: var(--r-md); }
.item-row:hover { background: var(--surface); }
.item-row canvas { background: #fff; flex: none; border-radius: var(--r-sm); }
.item-row .nm { flex: 1; font-size: 15px; font-weight: 600; }
.item-row .nm small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.side { width: 150px; flex: none; background: var(--surface); border-left: 1px solid var(--line); align-items: center; padding-bottom: 10px; }
.btn { border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; cursor: pointer; white-space: pre-line; }
.tabbtn { height: 48px; margin: 6px 6px 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface-2); border-radius: var(--r-sm); }
.tabbtn.on { background: var(--play); color: #1a1205; }
.bone-list { width: 120px; flex: none; background: #fff; }
.bone-list canvas { width: 100%; height: 56px; cursor: pointer; }

/* ================= Editor ================= */
.stage-wrap { flex: 1; min-height: 0; position: relative; display: flex; background: var(--bg-2); }
.stage-wrap > canvas { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; }
.save-label { position: absolute; right: 150px; top: 18px; font-size: 11px; color: var(--ink-2); pointer-events: none; background: rgba(15, 17, 23, .7); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.timeline-wrap { border-top: 1px solid var(--line); }

/* ================= Modais (claros, legíveis) ================= */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 6, 10, .65); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-lg); min-width: 300px; max-width: 92vw; max-height: 90vh; overflow: auto; padding: 20px 22px 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.modal h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.modal .acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.modal .acts button { background: none; border: none; color: var(--select); font-weight: 700; font-size: 13px; padding: 10px 12px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; border-radius: var(--r-sm); }
.modal .acts button:hover { background: var(--surface-2); }
.modal input[type=text], .modal input[type=email], .modal input[type=password], .modal input:not([type]) { width: 100%; font-size: 15px; padding: 10px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); outline: none; }
.modal input:focus { border-color: var(--select); }
.modal select { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px; }
.modal a { color: var(--cyan); }
.modal .opt { padding: 12px 8px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--line); border-radius: var(--r-sm); }
.modal .opt:hover { background: var(--surface-2); }
.swatches { display: grid; grid-template-columns: repeat(8, 36px); gap: 8px; }
.swatches div { width: 36px; height: 36px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line-strong); }
.mbtn { display: block; width: 100%; margin-top: 8px; padding: 11px; border: none; border-radius: var(--r-sm); color: #fff; background: var(--select); font-size: 14px; font-weight: 600; cursor: pointer; }
.mbtn:hover { filter: brightness(1.1); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: rgba(31, 35, 48, .96); border: 1px solid var(--line-strong); color: var(--ink); padding: 10px 18px; border-radius: 999px; z-index: 20; font-size: 13px; pointer-events: none; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }

/* ================= Anúncios ================= */
body.has-banner #app { height: calc(100% - 50px); }
#web-banner { position: fixed; left: 0; right: 0; bottom: 0; height: 50px; background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; z-index: 4; overflow: hidden; }
#web-banner.wide { height: 90px; }
body.has-banner.banner-wide #app { height: calc(100% - 90px); }
.ad-frame { border: 0; display: block; }
.ad-test { background: var(--surface-3); color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.native-ad { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12px; flex: none; overflow: hidden; }
.proj-grid .native-ad { width: auto !important; height: auto !important; padding: 28px 8px 10px; flex-direction: column; }
.proj-grid .native-ad .ad-frame { zoom: .68; } /* bloco 300×250 cabendo na largura do card */
.proj-grid .native-ad .ad-frame, .proj-grid .native-ad .ad-test { max-width: 100%; border-radius: var(--r-sm); }
.native-ad .ad-tag, .ad-box .ad-tag { position: absolute; left: 10px; top: 8px; background: transparent; color: var(--ink-3); border: 1px solid var(--line-strong); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; }
.ad-overlay { background: rgba(5, 6, 10, .85); z-index: 50; }
.ad-box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 34px 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; min-width: 320px; }
.ad-count { color: var(--ink-2); font-size: 13px; min-height: 18px; font-variant-numeric: tabular-nums; }

/* ================= Celular em pé ================= */
#rotate { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 17px; text-align: center; padding: 20px; }
#rotate button { background: var(--accent); color: #0b1302; border: 0; border-radius: var(--r-md); padding: 12px 18px; font-size: 15px; font-weight: 700; }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }

/* ================= Idiomas ================= */
.lang-picker { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--ink-2); border: 0; border-radius: 999px; padding: 4px 10px 4px 5px; font: 600 11px var(--font); cursor: pointer; }
.lang-btn:hover { color: var(--ink); background: var(--surface-2); }
.lang-btn.on { color: var(--ink); background: var(--surface-3); }
.lang-btn .flag { display: inline-block; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.lang-btn .flag svg { width: 100%; height: 100%; }

/* ================= Telas pequenas (celular deitado) ================= */
@media (max-height: 480px) {
  .home-head { padding: 8px 14px; }
  .proj-grid { gap: 12px; padding: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .side-nav { width: 96px; padding: 8px 6px; gap: 2px; }
  .side-btn { padding: 6px 2px; gap: 4px; }
  .side-btn .ic { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
  .bar { width: 72px; padding: 4px; }
  .tool { padding: 6px 2px; }
  .tool .g { width: 34px; height: 34px; font-size: 18px; }
}

/* textos cinza escritos direto no código (pensados p/ fundo claro): clareia no tema escuro */
.modal [style*="color: rgb(102, 102, 102)"], .modal [style*="color: rgb(119, 119, 119)"], .modal [style*="color: rgb(85, 85, 85)"],
.modal [style*="color: rgb(136, 136, 136)"], .modal [style*="color: rgb(68, 68, 68)"], .modal [style*="color: rgb(34, 34, 34)"] { color: var(--ink-2) !important; }
.modal [style*="color: rgb(198, 40, 40)"] { color: var(--rose) !important; }
.modal [style*="color: rgb(46, 125, 50)"] { color: var(--accent) !important; }
.modal ul { color: var(--ink-2); }

/* biblioteca: filtros em pílulas */
.chip { padding: 6px 12px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.chip:hover { color: var(--ink); background: var(--surface-3); }
.chip.on { background: color-mix(in srgb, var(--select) 22%, transparent); border-color: color-mix(in srgb, var(--select) 60%, transparent); color: var(--ink); }
.chip.paste { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.items-list input[type=search], .panel input[type=search] { background: var(--bg) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; }

/* player (janela de reprodução) */
.player { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 10, .96); display: flex; flex-direction: column; }
.pl-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--ink); font-size: 15px; }
.pl-close { height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--rose); color: #fff; font: 800 14px var(--font); cursor: pointer; }
.pl-view { flex: 1; min-height: 0; display: flex; padding: 0 16px; }
.pl-view canvas { flex: 1; width: 100%; height: 100%; min-width: 0; border-radius: var(--r-md); }
.pl-ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px; }
.pl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font-size: 18px; cursor: pointer; flex: none; }
.pl-btn.main { width: 56px; height: 56px; background: var(--play); border: 0; color: #1a1205; font-size: 22px; }
.pl-btn.on { border-color: var(--select); color: var(--select); }
.pl-bar { flex: 1; min-width: 0; height: 28px; accent-color: var(--play); cursor: pointer; }
.pl-time { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 120px; text-align: right; }
/* editor: sair e câmera */
.cam-reset { position: absolute; left: 68px; bottom: 18px; z-index: 3; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font: 600 12px var(--font); cursor: pointer; }
.cam-reset:hover { background: var(--surface-3); }
.exit-btn { position: absolute; right: 12px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 20px; border: 0; border-radius: var(--r-md); background: var(--rose); color: #fff; font: 800 16px var(--font); letter-spacing: .04em; cursor: pointer; box-shadow: 0 6px 18px rgba(255, 92, 122, .35); }
.exit-btn:hover { filter: brightness(1.08); }
.cam-btn { position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font-size: 22px; cursor: pointer; }
.cam-btn:hover { background: var(--surface-3); }
.cam-btn.on { background: var(--select); border-color: var(--select); box-shadow: 0 0 0 3px color-mix(in srgb, var(--select) 35%, transparent); }
@media (max-height: 480px) { .exit-btn { height: 38px; padding: 0 14px; font-size: 14px; } .save-label { right: 120px; top: 14px; } .cam-btn { width: 40px; height: 40px; font-size: 18px; } }

/* tela cheia */
.fs-btn { position: absolute; right: 122px; top: 10px; z-index: 3; width: 46px; height: 46px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(31, 35, 48, .8); color: var(--ink); font-size: 20px; cursor: pointer; }
.save-label { right: 180px; }
/* ===== celular / tela baixa: canvas grande, controles compactos e flutuantes ===== */
@media (max-height: 520px), (pointer: coarse) and (max-width: 1024px) {
  .bar { width: 54px; padding: 4px 3px; }
  .bar .tool { padding: 4px 0; }
  .bar .tool .l { display: none; }
  .bar .tool .g { width: 36px; height: 36px; font-size: 18px; }
  .bar-sep { margin: 3px 8px; }
  .exit-btn { right: 8px; top: 8px; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 16px; border-radius: 12px; box-shadow: none; opacity: .9; }
  .exit-btn .lbl { display: none; }
  .fs-btn { right: 54px; top: 8px; width: 40px; height: 40px; font-size: 17px; border-radius: 12px; opacity: .8; }
  .save-label { right: 102px; top: 23px; width: 10px; height: 10px; padding: 0; font-size: 0; border: 0; background: var(--accent); opacity: .8; }
  .cam-btn { left: 8px; bottom: 8px; width: 40px; height: 40px; font-size: 18px; opacity: .75; background: rgba(31, 35, 48, .7); }
  .cam-btn.on { opacity: 1; }
  .cam-reset { left: 56px; bottom: 10px; height: 34px; }
  .col > .tl-bar { padding: 2px 6px; gap: 6px; }
  .tl-bar .tl-btn { width: 32px; height: 24px; font-size: 13px; }
  .tl-bar .tl-scroll { height: 18px; }
}
/* timeline: tesoura e barra de rolagem */
.tl-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--surface); border-top: 1px solid var(--line); flex: none; }
.tl-btn { width: 38px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font-size: 16px; cursor: pointer; flex: none; }
.tl-btn:hover { background: var(--surface-3); }
.tl-btn.on { background: var(--rose); border-color: var(--rose); }
.tl-scroll { flex: 1; min-width: 0; accent-color: var(--select); height: 22px; cursor: pointer; }
.tl-scroll:disabled { opacity: .35; }

/* tutorial */
.tut { width: min(560px, 86vw); }
.tut-art { height: 150px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; }
.tut-art svg { height: 100%; width: auto; max-width: 100%; }
.tut-art.emoji { font-size: 64px; }
.tut-title { margin: 0 0 8px !important; font-size: 18px !important; }
.tut-body { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; min-height: 110px; }
.tut-body li { margin: 4px 0; }
.tut-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tut-nav { width: auto !important; margin: 0 !important; padding: 10px 16px !important; flex: none; }
.tut-dots { flex: 1; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tut-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); cursor: pointer; }
.tut-dots span.on { background: var(--select); width: 20px; border-radius: 4px; }
@media (max-height: 480px) { .tut-art { height: 90px; } .tut-art.emoji { font-size: 44px; } .tut-body { min-height: 0; font-size: 13px; } }

/* marca Vinsk Apps na tela inicial */
.home-main { position: relative; }
.brand-wm { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: min(60%, 640px); opacity: .08; pointer-events: none; z-index: 0; }
.home-main > .scroll { position: relative; z-index: 1; padding-bottom: 56px; }
.brand-corner { position: absolute; left: 14px; bottom: 10px; z-index: 2; display: block; padding: 6px 10px; border-radius: var(--r-md); background: rgba(15, 17, 23, .75); border: 1px solid var(--line); backdrop-filter: blur(6px); opacity: .9; }
.brand-corner:hover { opacity: 1; }
.brand-corner img { display: block; height: 30px; width: auto; }
@media (max-height: 480px) { .brand-corner img { height: 22px; } .brand-corner { left: 8px; bottom: 6px; padding: 4px 8px; } }
