/* Tutorial animado "Como ativar no Nintendo Switch" (components/ns-tutorial.html + scripts/ns-tutorial.js) */
.nst { --nst-sel: #00c3e3; --nst-red: #ff4554; --nst-blue: #00c3e3; --nst-shop: #ff7a00; }
.nst__head { margin-bottom: 20px; }
.nst__lead { margin: 6px 0 0; max-width: 760px; font-size: 15px; line-height: 1.6; color: #a9adb8; }
.nst__lead b { color: #e5e7eb; }

.nst__grid { display: grid; gap: 24px; align-items: center; }
/* console em cima, passos embaixo */
@media (min-width: 1024px) { .nst__grid { gap: 28px; } }

/* ---------- o console ---------- */
.nst__device { display: flex; align-items: stretch; width: 100%; max-width: 820px; margin: 0 auto; filter: drop-shadow(0 22px 40px rgba(0,0,0,.55)); }
.nst__joy { position: relative; flex: 0 0 8.5%; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 10% 0; }
.nst__joy--l { background: linear-gradient(160deg, #ff6b78, var(--nst-red) 45%, #d8323f); border-radius: 46px 0 0 46px !important; }
.nst__joy--r { background: linear-gradient(200deg, #4fdcf2, var(--nst-blue) 45%, #0096b0); border-radius: 0 46px 46px 0 !important; }
.nst__stick { display: block; width: 46%; aspect-ratio: 1; border-radius: 50% !important; background: #1d1e22; box-shadow: inset 0 -3px 0 #000, 0 0 0 3px rgba(0,0,0,.25); }
.nst__btns { display: block; width: 58%; aspect-ratio: 1; background:
  radial-gradient(circle at 50% 16%, #1d1e22 0 15%, transparent 16%),
  radial-gradient(circle at 50% 84%, #1d1e22 0 15%, transparent 16%),
  radial-gradient(circle at 16% 50%, #1d1e22 0 15%, transparent 16%),
  radial-gradient(circle at 84% 50%, #1d1e22 0 15%, transparent 16%); }
.nst__body { flex: 1; min-width: 0; padding: 3.2% 3%; background: #2a2b30; box-shadow: inset 0 0 0 2px #1f2024; }

/* ---------- a tela (tudo em cqi: escala com o tamanho da tela) ---------- */
.nst-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px !important; background: #2d2d2d; color: #fff; container-type: inline-size; font-family: inherit; }
.nst-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.nst-screen[data-scene="1"] [data-s="1"], .nst-screen[data-scene="2"] [data-s="2"], .nst-screen[data-scene="3"] [data-s="3"],
.nst-screen[data-scene="4"] [data-s="4"], .nst-screen[data-scene="5"] [data-s="5"], .nst-screen[data-scene="6"] [data-s="6"],
.nst-screen[data-scene="7"] [data-s="7"] { opacity: 1; visibility: visible; transform: none; }

/* foco do Switch (contorno azul) e botão pressionado no fim da tela */
.nst-press { position: relative; }
.nst-press::after { content: ""; position: absolute; inset: -.6cqi; border: .45cqi solid var(--nst-sel); border-radius: inherit !important; opacity: 0; }
.nst-screen[data-scene] .nst-sc[data-s] .nst-press::after { animation: nst-focus 2.6s ease forwards; animation-delay: .5s; }
.nst-screen[data-scene="4"] .nst-btn.nst-press::after { animation-delay: 3.4s; animation-duration: 1.4s; }
.nst-screen[data-scene="6"] .nst-btn--shop.nst-press::after { animation-duration: 1.4s; }
@keyframes nst-focus { 0% { opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; transform: none; } 80% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: none; } }

.nst-ava { display: inline-block; width: 4.2cqi; aspect-ratio: 1; border-radius: 50% !important; background: linear-gradient(135deg, #ffcf3f, #ff8a3d); box-shadow: 0 0 0 .3cqi #444; }
.nst-ava--2 { background: linear-gradient(135deg, #7ad0ff, #4a7dff); margin-left: -1.2cqi; }
.nst-ava--big { width: 11cqi; }

/* HOME */
.nst-top { position: absolute; top: 3.5cqi; left: 4cqi; right: 4cqi; display: flex; align-items: center; }
.nst-top__r { margin-left: auto; display: flex; align-items: center; gap: 1cqi; font-size: 2.1cqi; color: #ddd; }
.nst-bat { display: inline-block; width: 3.4cqi; height: 1.7cqi; border: .25cqi solid #ddd; border-radius: .4cqi !important; background: linear-gradient(90deg, #ddd 70%, transparent 70%) content-box; padding: .2cqi; }
.nst-tiles { position: absolute; top: 15cqi; left: 4cqi; right: 0; display: flex; gap: 1.6cqi; }
.nst-tile { flex: none; width: 21cqi; aspect-ratio: 1; border-radius: .6cqi !important; background: #3a3a3e; overflow: hidden; }
.nst-tile--a { background: linear-gradient(135deg, #e94f4f, #a52a2a); }
.nst-tile--b { background: linear-gradient(135deg, #46b04a, #23702a); }
.nst-tile--c { background: linear-gradient(135deg, #3f7fe0, #1c3f86); }
.nst-tile--d { background: linear-gradient(135deg, #f0b43a, #b57312); }
.nst-tile--e { background: linear-gradient(135deg, #9a5ae0, #55278f); }
.nst-tile--game { width: 23cqi; box-shadow: 0 0 0 .5cqi var(--nst-sel); animation: nst-pop .7s ease both .2s; }
.nst-tile--game img { width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; display: block; }
@keyframes nst-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.nst-dock { position: absolute; left: 0; right: 0; bottom: 9cqi; display: flex; justify-content: center; gap: 2.4cqi; }
.nst-ico { width: 6.4cqi; aspect-ratio: 1; border-radius: 50% !important; background: #444; display: grid; place-items: center; color: #fff; }
.nst-ico svg { width: 60%; height: 60%; }
.nst-ico--news { background: #e7443b; }
.nst-ico--shop { background: var(--nst-shop); }
.nst-ico--album { background: #3a8ee8; }
.nst-ico--pad { background: #6b6b70; }
.nst-ico--gear { background: #8a8a90; }
.nst-ico--power { background: #555; }
.nst-tip { position: absolute; left: 0; right: 0; bottom: 3.6cqi; margin: 0; text-align: center; font-size: 2.3cqi; color: var(--nst-sel); font-weight: 600; opacity: 0; animation: nst-fade .4s ease forwards 1s; }
.nst-tip--game { bottom: auto; top: 41cqi; text-align: left; left: 4cqi; font-size: 2.6cqi; animation-delay: .7s; }
.nst-ready { position: absolute; left: 0; right: 0; bottom: 6cqi; margin: 0; text-align: center; font-size: 3.6cqi; font-weight: 800; opacity: 0; animation: nst-fade .5s ease forwards 1.2s; }
@keyframes nst-fade { to { opacity: 1; } }

/* Configurações */
.nst-set { display: flex; background: #2b2b2b; }
.nst-set__side { flex: 0 0 36%; display: flex; flex-direction: column; padding: 4cqi 0 0; background: #262626; border-right: .2cqi solid #3a3a3a; }
.nst-set__t { margin: 0 0 2cqi; padding: 0 3cqi; font-size: 2.6cqi; font-weight: 700; }
.nst-set__side span { padding: 1.4cqi 3cqi; font-size: 2.1cqi; color: #cfcfcf; border-left: .6cqi solid transparent; }
.nst-set__side .nst-sel { color: #fff; border-left-color: var(--nst-sel); background: rgba(255,255,255,.06); }
.nst-set__main { flex: 1; padding: 7cqi 4cqi; display: flex; flex-direction: column; gap: 2cqi; }
.nst-row { display: flex; align-items: center; gap: 2cqi; padding: 2cqi 2.4cqi; border-radius: .6cqi !important; background: #363636; font-size: 2.3cqi; }
.nst-plus { display: grid; place-items: center; width: 4.2cqi; aspect-ratio: 1; border-radius: 50% !important; background: #555; font-style: normal; font-size: 3cqi; line-height: 1; }

/* usuário novo */
.nst-user { display: flex; align-items: center; gap: 5cqi; padding: 0 7cqi; }
.nst-user__card { display: flex; flex-direction: column; align-items: center; gap: 2cqi; font-size: 2.6cqi; }
.nst-user__list { flex: 1; display: flex; flex-direction: column; gap: 2cqi; }
.nst-link { width: 3.4cqi; aspect-ratio: 1; border-radius: 50% !important; background: #e60012; box-shadow: inset 0 0 0 .7cqi #fff; }

/* login */
.nst-login { display: grid; place-items: center; background: #f1f1f1; color: #222; }
.nst-login__card { width: 62%; display: flex; flex-direction: column; gap: 1.4cqi; }
.nst-login__t { margin: 0; font-size: 3.2cqi; font-weight: 800; }
.nst-login__s { margin: 0 0 1cqi; font-size: 2cqi; color: #666; }
.nst-login label { display: flex; flex-direction: column; gap: .6cqi; font-size: 1.8cqi; color: #555; font-weight: 600; }
.nst-input { display: flex; align-items: center; height: 5.4cqi; padding: 0 1.6cqi; border: .25cqi solid #c8c8c8; border-radius: .6cqi !important; background: #fff; font-size: 2.3cqi; color: #111; font-weight: 500; }
.nst-caret { display: inline-block; width: .25cqi; height: 2.8cqi; margin-left: .2cqi; background: #e60012; animation: nst-blink 1s steps(1) infinite; }
@keyframes nst-blink { 50% { opacity: 0; } }
.nst-btn { align-self: center; margin-top: 1.4cqi; padding: 1.6cqi 6cqi; border-radius: 99px !important; background: #e60012; color: #fff; font-size: 2.4cqi; font-weight: 700; }

/* conta vinculada */
.nst-ok { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqi; text-align: center; }
.nst-ok__ico { display: grid; place-items: center; width: 11cqi; aspect-ratio: 1; border-radius: 50% !important; background: #22c55e; color: #fff; animation: nst-pop .5s ease both .15s; }
.nst-ok__ico svg { width: 60%; height: 60%; }
.nst-ok b { font-size: 3.6cqi; }
.nst-ok span { font-size: 2.2cqi; color: #bdbdbd; }

/* eShop */
.nst-shop { background: #f4f4f4; color: #222; }
.nst-shop__bar { display: flex; align-items: center; gap: 1.4cqi; height: 8cqi; padding: 0 4cqi; background: var(--nst-shop); color: #fff; font-size: 2.8cqi; font-weight: 800; }
.nst-shop__bag { width: 3.6cqi; aspect-ratio: 1; border-radius: .6cqi !important; background: #fff; opacity: .9; }
.nst-shop__body { display: flex; gap: 3.6cqi; padding: 4.4cqi; align-items: center; }
.nst-shop__cover { flex: 0 0 46%; width: 46% !important; max-width: 46% !important; min-width: 0; height: auto !important; display: block; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .8cqi !important; box-shadow: 0 1cqi 2.4cqi rgba(0,0,0,.25); background: #ddd; }
.nst-shop__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.8cqi; }
.nst-shop__info b { font-size: 3cqi; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nst-btn--shop { align-self: flex-start; margin: 0; background: var(--nst-shop); }
.nst-prog { display: block; height: 1.6cqi; border-radius: 99px !important; background: #ddd; overflow: hidden; opacity: 0; }
.nst-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--nst-shop), #ffb15a); }
.nst-prog__t { position: relative; height: 2.6cqi; font-size: 2cqi; color: #555; opacity: 0; }
.nst-prog__t span { position: absolute; left: 0; top: 0; }
.nst-prog__b { opacity: 0; color: #16a34a; font-weight: 700; }
.nst-screen[data-scene="6"] .nst-prog, .nst-screen[data-scene="6"] .nst-prog__t { animation: nst-fade .3s ease forwards 1.5s; }
.nst-screen[data-scene="6"] .nst-prog i { animation: nst-load 2.4s ease-in-out forwards 1.7s; }
.nst-screen[data-scene="6"] .nst-prog__a { animation: nst-out .2s ease forwards 4.1s; }
.nst-screen[data-scene="6"] .nst-prog__b { animation: nst-fade .2s ease forwards 4.1s; }
@keyframes nst-load { to { width: 100%; } }
@keyframes nst-out { to { opacity: 0; } }

/* ---------- passos ---------- */
.nst__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .nst__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .nst__steps li { flex-direction: column; gap: 10px; } }
.nst__steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px !important; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.nst__steps li:hover { background: rgba(255,255,255,.05); }
.nst__steps li > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50% !important; background: #23252d; color: #8d92a0; font-size: 13px; font-weight: 800; transition: background .25s, color .25s; }
.nst__steps b { display: block; font-size: 15px; color: #e5e7eb; }
.nst__steps p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: #9ca1ad; }
.nst__steps li.is-on { background: rgba(230,0,18,.08); border-color: rgba(230,0,18,.45); transform: translateY(-3px); }
.nst__steps li.is-on > span { background: #e60012; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .nst-sc, .nst__steps li { transition: none; }
  .nst-press::after, .nst-tile--game, .nst-ok__ico, .nst-tip, .nst-ready, .nst-prog, .nst-prog i, .nst-prog__t, .nst-prog__a, .nst-prog__b, .nst-caret { animation: none !important; }
  .nst-tip, .nst-ready, .nst-prog, .nst-prog__t, .nst-prog__b { opacity: 1; }
  .nst-prog i { width: 100%; }
  .nst-prog__a { opacity: 0; }
}


/* ---------- ícones ---------- */
.nst__title { display: flex; align-items: center; gap: 10px; }
.nst__logo { width: 24px; height: 24px; filter: invert(13%) sepia(97%) saturate(7000%) hue-rotate(350deg) brightness(95%); }
.nst-ico i { font-size: 3.4cqi; color: #fff; }
.nst-set__side span { display: flex; align-items: center; gap: 1.2cqi; }
.nst-set__side span i { font-size: 2.4cqi; opacity: .8; }
.nst-plus i, .nst-link i { font-size: 2.6cqi; font-style: normal; color: #fff; }
.nst-link { display: grid; place-items: center; box-shadow: none !important; }
.nst-row__i { font-size: 2.8cqi; opacity: .75; }
.nst-login__t { display: flex; align-items: center; gap: 1.2cqi; }
.nst-login__ni { display: grid; place-items: center; width: 4.6cqi; aspect-ratio: 1; border-radius: 50% !important; background: #e60012; }
.nst-login__ni i { font-size: 2.8cqi; color: #fff; font-style: normal; }
.nst-input__i { margin-right: 1cqi; font-size: 2.6cqi; color: #888; }
.nst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1cqi; }
.nst-btn i { font-size: 2.8cqi; }
.nst-shop__bar i { font-size: 3.6cqi; }
.nst-shop__user { margin-left: auto; display: flex; }
.nst-shop__user i { font-size: 4.4cqi; }
/* seta de download "descendo" no botão Baixar */
.nst-screen[data-scene="6"] .nst-dl { display: inline-block; animation: nst-drop .7s ease-in-out 3 .3s; }
@keyframes nst-drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.9cqi); } }
.nst-prog__t span { display: inline-flex; align-items: center; gap: .6cqi; }
.nst-prog__t i { font-size: 2.4cqi; }
.nst-ready { display: flex; align-items: center; justify-content: center; gap: 1.2cqi; }
.nst-ready i { font-size: 4.2cqi; color: var(--nst-sel); }
/* passos: ícone ao lado do número */
.nst__si { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px !important; background: rgba(255,255,255,.05); color: #c5c9d3; font-size: 18px; transition: background .25s, color .25s; }
.nst__steps li.is-on .nst__si { background: rgba(230,0,18,.18); color: #ff4d5a; }
@media (min-width: 900px) {
  .nst__steps li { position: relative; }
  .nst__steps li > span { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; font-size: 11px; }
  .nst__si { width: 40px; height: 40px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .nst-dl { animation: none !important; } }

/* só a animação (sem os cards de passos): console centralizado */
.nst__grid { justify-items: center; }

/* ---------- palco no estilo do tutorial da Steam: console no meio, capas em volta, câmera com zoom ---------- */
.nst__grid { justify-items: stretch; }
.nst__stage { position: relative; width: 100%; height: 520px; overflow: hidden; background: #060810; user-select: none; -webkit-user-select: none; }
.nst__lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 25%, transparent 100%); }
.nst__cam { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-origin: 0 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); transition: transform var(--cd, 1.3s) cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.nst__device { position: relative; z-index: 2; width: min(660px, 60%); max-width: none; margin: 0; filter: drop-shadow(0 24px 50px rgba(0,0,0,.6)); }
.nst__joy { flex-basis: 8%; padding: 9% 0; }
.nst__joy--l { border-radius: 30px 0 0 30px !important; }
.nst__joy--r { border-radius: 0 30px 30px 0 !important; }
/* borda fina e preta em volta da tela */
.nst__body { padding: 1.4% 1.2%; background: #0d0e12; box-shadow: none; }
.nst-screen { border-radius: 4px !important; }

@media (max-width: 1023px) {
  .nst__stage { height: 420px; }
  .nst__device { width: min(600px, 74%); }
}
@media (max-width: 767px) {
  .nst__stage { height: 260px; }
  .nst__device { width: 94%; }
  .nst__joy--l { border-radius: 16px 0 0 16px !important; }
  .nst__joy--r { border-radius: 0 16px 16px 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .nst__cam { transform: none !important; transition: none; } }

