/* Tutoriais: a lista (/tutoriais/) e o tutorial completo (ver.html). A cor de cada gema vem de --c. */
.tt-hero { padding: 4rem 0 1.6rem; text-align: center; }
.tt-hero .kick { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.tt-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .9rem 0 .6rem; line-height: 1.06; }
.tt-hero h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-hero p { color: var(--dim); font-size: 1.1rem; max-width: 40rem; margin: 0 auto; }
.tt-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.4rem; color: var(--mute); font-size: .92rem; }
.tt-stats b { color: var(--ink); font-size: 1.15rem; margin-right: .25rem; }

/* busca e filtros */
.tt-tools { position: sticky; top: 4.2rem; z-index: 5; padding: .9rem 0; margin: 1rem 0 .4rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 4, 15, .55); border-bottom: 1px solid transparent; }
.tt-search { display: block; position: relative; max-width: 34rem; margin: 0 auto .8rem; }
.tt-search svg { position: absolute; left: 1.1rem; top: 50%; width: 1.15rem; height: 1.15rem; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.tt-search input { width: 100%; padding: .9rem 1.1rem .9rem 2.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, background .2s; }
.tt-search input:focus { border-color: rgba(255, 255, 255, .35); background: var(--glass-hi); }
.tt-search input::placeholder { color: var(--mute); }
.tt-filters { display: flex; align-items: center; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .15rem .1rem; justify-content: center; }
.tt-filters::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .tt-filters { justify-content: flex-start; } }
.tt-filter { flex: none; height: 2.4rem; white-space: nowrap; line-height: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--dim); font: inherit; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tt-filter img { width: 1.45rem; height: 1.45rem; }
.tt-filter.todas { padding-left: .9rem; }
.tt-filter small { color: var(--mute); font-size: .78rem; }
.tt-filter:hover { background: var(--glass-hi); color: var(--ink); }
.tt-filter.on { color: #0b0716; background: var(--c, #fff); border-color: transparent; font-weight: 700; }
.tt-filter.on small { color: rgba(11, 7, 22, .65); }

/* grupos e cartões */
.tt-group { padding: 2.2rem 0 .6rem; scroll-margin-top: 9rem; }
.tt-group-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.tt-group-head img { width: 2.8rem; height: 2.8rem; flex: none; }
.tt-group-head h2 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.tt-group-head span { display: block; color: var(--mute); font-size: .9rem; }
.tt-group-head a { margin-left: auto; color: var(--dim); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.tt-group-head a:hover { color: var(--ink); }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tt-grid { grid-template-columns: minmax(0, 1fr); } }
.tt-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.3rem 1.15rem; text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s ease, border-color .25s, background .25s; }
.tt-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent 85%); opacity: .85; }
.tt-card::after { content: ""; position: absolute; width: 11rem; height: 11rem; right: -4rem; top: -5rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); pointer-events: none; }
.tt-card:hover { transform: translateY(-.3rem); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: var(--glass-hi); }
.tt-card .gem-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-weight: 700; }
.tt-card .gem-tag img { width: 1.25rem; height: 1.25rem; }
.tt-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.tt-card p { margin: 0; color: var(--mute); font-size: .93rem; line-height: 1.45; flex: 1; }
.tt-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--mute); font-size: .82rem; align-items: center; }
.tt-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.tt-meta svg { width: .95rem; height: .95rem; }
.lvl { padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--line); font-size: .76rem; }
.lvl.f { color: #8ff0b8; border-color: rgba(143, 240, 184, .35); }
.lvl.m { color: #ffd27a; border-color: rgba(255, 210, 122, .35); }
.lvl.a { color: #ff9a9a; border-color: rgba(255, 154, 154, .35); }
.beta { color: #c9b8ff; }
.tt-card .go { color: var(--ink); font-weight: 700; font-size: .92rem; margin-top: .25rem; display: inline-flex; align-items: center; gap: .35rem; }
.tt-card .go i { font-style: normal; transition: transform .2s; }
.tt-card:hover .go i { transform: translateX(.25rem); }

/* destaques ("comece por aqui") */
.tt-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .tt-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .tt-feat { grid-template-columns: minmax(0, 1fr); } }
.tt-feat .tt-card { padding: 1.5rem; min-height: 12rem; }
.tt-feat .tt-card .big { position: absolute; right: 1rem; bottom: 1rem; width: 3.6rem; height: 3.6rem; opacity: .9; transition: transform .3s; }
.tt-feat .tt-card:hover .big { transform: rotate(-8deg) scale(1.08); }
.tt-feat .tt-card p { padding-right: 3.6rem; }
.pix { image-rendering: pixelated; }
.tt-empty { text-align: center; padding: 3rem 1rem; color: var(--mute); }
.tt-empty b { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: .4rem; }

/* ---------------- tutorial completo ---------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .88rem; color: var(--mute); padding-top: 1.8rem; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.tv-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: 1.6rem 0 1.8rem; }
.tv-hero .gem-ico { width: 5.5rem; height: 5.5rem; filter: drop-shadow(0 .8rem 1.6rem color-mix(in srgb, var(--c) 35%, transparent)); animation: float 6s ease-in-out infinite; }
.tv-hero .kick { color: var(--c); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.tv-hero h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin: .35rem 0 .5rem; line-height: 1.12; }
.tv-hero p { color: var(--dim); font-size: 1.08rem; margin: 0 0 .9rem; max-width: 46rem; }
.tv-hero .tt-meta { font-size: .9rem; gap: .5rem .9rem; }
.tv-hero .tt-meta > span:not(.lvl) { padding: .25rem .7rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
@media (max-width: 600px) { .tv-hero { grid-template-columns: minmax(0, 1fr); gap: .8rem; } .tv-hero .gem-ico { width: 4rem; height: 4rem; } }

.tv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; align-items: start; }
.tv-side { position: sticky; top: 5.4rem; display: grid; gap: 1rem; }
@media (max-width: 960px) { .tv-layout { grid-template-columns: minmax(0, 1fr); } .tv-side { position: static; order: -1; } .tv-toc { display: none; } }
.tv-box { padding: 1.15rem 1.2rem; }
.tv-box h2 { margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.tv-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.tv-box li { position: relative; padding-left: 1.3rem; color: var(--dim); font-size: .93rem; line-height: 1.45; }
.tv-toc li { padding-left: 0; }
.tv-box.tv-toc li::before { content: none; }
.tv-box li::before { content: "✓"; position: absolute; left: 0; color: var(--c); font-weight: 800; }
.tv-box li b { color: var(--ink); }
.tv-progress { height: .4rem; border-radius: 999px; background: var(--glass-hi); overflow: hidden; margin-bottom: .55rem; }
.tv-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); border-radius: inherit; transition: width .4s ease; }
.tv-progress-txt { font-size: .84rem; color: var(--mute); }
.tv-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .15rem; counter-reset: toc; }
.tv-toc a { display: flex; gap: .6rem; align-items: baseline; padding: .4rem .5rem; border-radius: .7rem; text-decoration: none; color: var(--dim); font-size: .9rem; line-height: 1.35; transition: background .2s, color .2s; }
.tv-toc a::before { counter-increment: toc; content: counter(toc); flex: none; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 800; background: var(--glass-hi); color: var(--ink); }
.tv-toc a:hover, .tv-toc a.cur { background: var(--glass); color: var(--ink); }
.tv-toc a.done::before { content: "✓"; background: var(--c); color: #0b0716; }
.tv-toc .more a::before { content: "•"; background: none; color: var(--mute); }

.callout { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--glass); color: var(--dim); line-height: 1.55; margin: 0 0 1.4rem; }
.callout .ic { flex: none; font-size: 1.2rem; line-height: 1.4; }
.callout b { color: var(--ink); }
.callout.c-warn { border-color: rgba(255, 210, 122, .32); background: rgba(255, 210, 122, .06); }
.callout.c-tip { border-color: color-mix(in srgb, var(--c) 32%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); }
.callout.c-ok { border-color: rgba(143, 240, 184, .3); background: rgba(143, 240, 184, .05); }
.callout pre { margin: .6rem 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; scroll-margin-top: 5.6rem; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 1.28rem; top: 2.8rem; bottom: -1rem; width: 2px; background: linear-gradient(var(--line), transparent); }
.step .n { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #0b0716; background: var(--c); box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--c) 14%, transparent); transition: transform .25s; }
.step.done .n { background: #8ff0b8; }
.step .body { padding: 1.15rem 1.3rem 1.2rem; min-width: 0; }
.step h3 { margin: .1rem 0 .55rem; font-size: 1.15rem; line-height: 1.3; display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; }
.step p { margin: 0 0 .7rem; color: var(--dim); }
.step p:last-child { margin-bottom: 0; }
.step ul, .xtra ul { margin: .1rem 0 .8rem; padding-left: 1.2rem; color: var(--dim); display: grid; gap: .4rem; }
.step ul:last-child, .xtra ul:last-child { margin-bottom: 0; }
.step b, .xtra b, .faq b { color: var(--ink); }
.step .callout { margin: .8rem 0 0; font-size: .95rem; }
.check { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.check:hover { color: var(--ink); background: var(--glass); }
.step.done .check { color: #0b0716; background: #8ff0b8; border-color: transparent; }
main a:not(.btn):not(.tt-card) { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--c) 60%, transparent); text-underline-offset: .18em; }
code { font-family: ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace; font-size: .88em; padding: .1rem .38rem; border-radius: .4rem; background: rgba(255, 255, 255, .08); color: var(--ink); overflow-wrap: anywhere; }
.term { position: relative; margin: .8rem 0 .2rem; border-radius: .9rem; border: 1px solid var(--line); background: rgba(3, 2, 8, .7); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .35rem; padding: .45rem .5rem .45rem .8rem; border-bottom: 1px solid var(--line); }
.term-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.term-bar button { margin-left: auto; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--dim); font: inherit; font-size: .78rem; cursor: pointer; }
.term-bar button:hover { color: var(--ink); background: var(--glass-hi); }
.term-bar button.ok { color: #0b0716; background: #8ff0b8; border-color: transparent; }
pre { margin: 0; padding: .85rem 1rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace; font-size: .86rem; line-height: 1.6; color: #e7e2ff; background: rgba(3, 2, 8, .55); border-radius: .7rem; }
.term pre { background: none; border-radius: 0; }
.dl { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 .2rem; }
.dl .btn { padding: .7rem 1.15rem; font-size: .95rem; }
.dl .btn.primary { background: var(--c); color: #0b0716; box-shadow: 0 .5rem 1.4rem color-mix(in srgb, var(--c) 30%, transparent); }

.tv-sec { margin: 2.6rem 0 0; }
.tv-sec > h2 { font-size: 1.35rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.tv-sec > h2 i { font-style: normal; font-size: 1.2rem; }
.xtras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.xtra { padding: 1.15rem 1.25rem; min-width: 0; }
.xtra.wide { grid-column: 1 / -1; }
.xtra h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.xtra p { margin: 0 0 .6rem; color: var(--dim); font-size: .95rem; }
.xtra p:last-child { margin-bottom: 0; }
.faq { display: grid; gap: .6rem; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 700; display: flex; gap: .7rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "?"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--glass-hi); color: var(--c); font-size: .85rem; }
.faq summary::after { content: "▸"; margin-left: auto; color: var(--mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq .a { padding: 0 1.2rem 1.1rem 3.5rem; color: var(--dim); }
.done-box { margin-top: 2.6rem; padding: 1.6rem; text-align: center; }
.done-box b { display: block; font-size: 1.25rem; margin-bottom: .3rem; }
.done-box p { color: var(--dim); margin: 0 0 1.1rem; }
.done-box .acts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
@media (max-width: 600px) {
  .tt-hero { padding: 2.6rem 0 1rem; }
  .tt-tools { top: 0; margin-top: .4rem; }
  .step { grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; }
  .step .n { width: 2rem; height: 2rem; font-size: .9rem; margin-top: .9rem; box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--c) 14%, transparent); }
  .step:not(:last-child)::before { left: .95rem; top: 3.1rem; }
  .step .body { padding: 1rem 1.05rem 1.05rem; }
  .step h3 { flex-direction: column; gap: .45rem; }
  .callout { padding: .85rem .95rem; gap: .65rem; }
  .faq .a { padding-left: 1.2rem; }
}
@keyframes float { 50% { transform: translateY(-.5rem); } }
@media (prefers-reduced-motion: reduce) { .tv-hero .gem-ico { animation: none; } .tt-card, .step .n { transition: none; } }
