/* Tutorial "Colocar o jogo na live": abas por app, passos numerados com o desenho da tela ao lado */
.hw { container-type: inline-size; display: grid; gap: 18px; }

/* abas dos apps */
.hw-apps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hw-apps::-webkit-scrollbar { display: none; }
.hw-apps button { flex: none; display: grid; gap: 3px; text-align: left; padding: 10px 14px 11px; border-radius: 9px; border: 1.5px solid rgba(10, 10, 11, .25); background: #fff; transition: border-color .15s, transform .25s var(--out); }
.hw-apps button:hover { transform: translateY(-1px); }
.hw-apps b { font: 800 16px/1.05 var(--display); font-variation-settings: "wdth" 96; }
.hw-apps small { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.hw-apps small.rec { color: #0B6B3F; }
.hw-apps button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.hw-apps button[aria-selected="true"] small { color: rgba(242, 238, 230, .7); }
.hw-apps button[aria-selected="true"] small.rec { color: #9BE3B0; }

.hw-req { padding: 11px 13px; border-radius: 8px; background: rgba(20, 40, 255, .07); font-size: 15px; line-height: 1.45; }
.hw-req b { font-weight: 750; }

/* passos */
.hw-steps { display: grid; gap: 0; margin-top: 4px; }
.hw-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px 22px; align-items: center; padding: 20px 0; border-top: 1.5px solid var(--line); }
.hw-step:first-child { border-top: 0; padding-top: 6px; }
.hw-text { display: grid; gap: 7px; align-content: start; min-width: 0; }
.hw-n { font: 900 40px/.8 var(--display); font-variation-settings: "wdth" 80; color: var(--red); }
.hw-text h3 { font: 800 20px/1.1 var(--display); font-variation-settings: "wdth" 94; letter-spacing: -.01em; }
.hw-text p { color: rgba(10, 10, 11, .82); font-size: 16px; line-height: 1.5; }
.hw-text .ghost { justify-self: start; font-size: 15px; }
.hw-link { display: grid; gap: 5px; margin-top: 4px; }
.hw-link > span { font-weight: 700; font-size: 14px; }
.hw-later { color: var(--muted); font-size: 14.5px; font-style: italic; }
.hw-status { margin-top: 4px; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; background: rgba(10, 10, 11, .06); }
.hw-status.ok { background: #D9F2DF; color: #0B4F2F; }
.hw-status.ok b::before { content: "✓ "; }
.hw-status.warn b::before { content: "! "; }
.hw-status.warn { background: #FFE7A8; }
.hw-status .spin { flex: none; }
.hw-status:empty { display: none; }
.hw-recent { display: grid; gap: 6px; padding: 11px 13px; border-radius: 8px; border: 1.5px dashed rgba(10, 10, 11, .22); font-size: 14.5px; }
.hw-recent b { font-weight: 750; }
.hw-recent p { color: var(--muted); }
.hw-recent ul { display: grid; gap: 5px; }
.hw-recent li { line-height: 1.35; overflow-wrap: anywhere; }
.hw-recent li span { font-weight: 700; }
.hw-recent small { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.hw-recent q { font-style: italic; }
.hw-recent time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- desenhos ---------- */
.hw-art { min-width: 0; }
.hw-win { position: relative; border-radius: 9px; background: #1A1A1F; color: #E9E6DF; box-shadow: 0 10px 26px -14px rgba(10, 10, 11, .55); overflow: visible; font: 500 11px/1.2 var(--body); }
.hw-bar { display: flex; align-items: center; gap: 4px; padding: 7px 9px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.hw-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hw-bar span { margin-left: 6px; font: 500 10px/1 var(--mono); opacity: .7; }
.hw-body { position: relative; padding: 9px; }
.hw-dialog { background: #222228; }
.hw-dialog .hw-body { display: grid; gap: 8px; padding: 12px; }

.hw-studio { display: grid; grid-template-columns: 30% 1fr 26%; gap: 7px; min-height: 172px; }
.hw-col { display: grid; gap: 6px; align-content: start; }
.hw-right { position: relative; align-content: end; }
.hw-mid { position: relative; display: grid; gap: 5px; justify-items: center; align-content: start; }
.hw-dock { position: relative; display: grid; gap: 3px; padding: 5px; border-radius: 5px; background: rgba(255, 255, 255, .04); }
.hw-dock > b { font-size: 9.5px; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .04em; }
.hw-row { display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 3px; background: rgba(255, 255, 255, .06); font-size: 10px; white-space: nowrap; overflow: hidden; }
.hw-sq { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.hw-tools { display: flex; }
.hw-plus { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: rgba(255, 255, 255, .12); font: 700 13px/1 var(--body); }
.hw-canvas { width: 62%; aspect-ratio: 9 / 16; border-radius: 4px; background: #0D0D10; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; display: grid; place-items: center; }
.hw-canvas img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hw-canvas span { width: 30%; height: 2px; background: rgba(255, 255, 255, .12); }
.hw-canvas.half img { width: 60%; height: 60%; place-self: start; }
.hw-canvas.tall { width: 38%; }
.hw-seg { display: flex; gap: 2px; padding: 2px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-size: 9.5px; }
.hw-seg span { padding: 3px 6px; border-radius: 4px; opacity: .6; }
.hw-seg span.on { background: rgba(255, 255, 255, .16); opacity: 1; }
.hw-btn { display: inline-block; padding: 5px 9px; border-radius: 5px; background: rgba(255, 255, 255, .14); font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.hw-btn.red { background: var(--red); color: #fff; }
.hw-btn.small { font-size: 9px; padding: 4px 6px; }
.hw-menu { display: grid; gap: 1px; padding: 4px; border-radius: 6px; background: #2C2C33; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); min-width: 92px; }
.hw-item { padding: 4px 7px; border-radius: 4px; font-size: 10.5px; white-space: nowrap; }
.hw-item.on { background: rgba(255, 46, 18, .26); color: #fff; font-weight: 700; }
.hw-pop { position: absolute; right: 6px; top: 8px; z-index: 2; }
/* submenu abre ao lado do item, sem cobrir o menu de origem */
.hw-pop:has(+ .hw-sub) { right: 82px; }
.hw-sub { position: absolute; right: -12px; top: 34px; z-index: 3; }
.hw-field { display: grid; gap: 3px; }
.hw-field > span { font-size: 9.5px; opacity: .65; }
.hw-field em { display: block; padding: 6px 8px; border-radius: 5px; background: #121216; border: 1px solid rgba(255, 255, 255, .12); font: 500 10.5px/1.2 var(--mono); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hw-end { display: flex; justify-content: flex-end; }
.hw-check { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.hw-check i { display: block; width: 13px; height: 13px; border-radius: 3px; background: var(--red); position: relative; }
.hw-check i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hw-login { display: grid; place-items: center; gap: 12px; padding: 26px 0; }
.hw-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .1); font: 800 10px/1 var(--display); letter-spacing: .04em; }
.hw-logo::after { content: "LIVE"; }

.hw-obs { display: grid; gap: 6px; }
.hw-stage { position: relative; display: grid; place-items: center; min-height: 112px; padding: 5px; border-radius: 4px; background: #101013; }
.hw-docks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hw-obs.sl .hw-docks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw-obs.sl { padding-left: 16px; position: relative; }
.hw-obs.sl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.hw-meter { display: block; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #12B76A 0 30%, rgba(255, 255, 255, .1) 30%); }
.hw-meter.on { background: linear-gradient(90deg, #12B76A 0 62%, #F5B400 62% 74%, rgba(255, 255, 255, .1) 74%); }
.hw-golive { position: absolute; right: 6px; bottom: 6px; }
.hw-set { display: grid; grid-template-columns: 30% 1fr; gap: 10px; }
.hw-tabs { display: grid; gap: 3px; align-content: start; }
.hw-tabs span { padding: 4px 6px; border-radius: 4px; font-size: 10px; opacity: .6; }
.hw-tabs span.on { background: rgba(255, 255, 255, .1); opacity: 1; }
.hw-set > div:last-child { display: grid; gap: 7px; }

/* o lugar de clicar: anel vermelho pulsando e o cursor apontando */
.hw-hi { position: relative; display: inline-block; border-radius: 6px; box-shadow: 0 0 0 2px var(--red), 0 0 0 5px rgba(255, 46, 18, .25); animation: hw-ring 1.6s var(--out) infinite; }
.hw-field .hw-hi, .hw-menu .hw-hi { display: block; }
.hw-cur { position: absolute; right: -9px; bottom: -11px; width: 17px; height: 17px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); pointer-events: none; animation: hw-tap 1.6s var(--out) infinite; }
@keyframes hw-ring { 0%, 100% { box-shadow: 0 0 0 2px var(--red), 0 0 0 4px rgba(255, 46, 18, .3); } 50% { box-shadow: 0 0 0 2px var(--red), 0 0 0 8px rgba(255, 46, 18, 0); } }
@keyframes hw-tap { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-3px, -3px) scale(.92); } }

/* celular */
.hw-phone { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; padding: 8px 0; }
.hw-phone h3 { font: 800 22px/1.1 var(--display); margin-bottom: 8px; }
.hw-phone p { margin-bottom: 14px; font-size: 16px; line-height: 1.5; }
.hw-phone-art { position: relative; width: 96px; aspect-ratio: 9 / 18; border-radius: 16px; background: var(--ink); padding: 6px; }
.hw-phone-art span { display: block; height: 100%; border-radius: 11px; background: linear-gradient(160deg, #2A2A31, #121216); }
.hw-phone-art i { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; }
.hw-phone-art i::before, .hw-phone-art i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 6px; border-radius: 3px; background: var(--red); transform: translate(-50%, -50%) rotate(45deg); }
.hw-phone-art i::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* problemas comuns */
.hw-faq { display: grid; gap: 6px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.hw-faq h3 { font: 800 19px/1.1 var(--display); margin-bottom: 4px; }
.hw-faq details { border-radius: 8px; background: rgba(10, 10, 11, .045); }
.hw-faq summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "+"; font: 700 18px/1 var(--body); transition: transform .25s var(--out); }
.hw-faq details[open] summary::after { transform: rotate(45deg); }
.hw-faq details p { padding: 0 12px 12px; font-size: 15px; line-height: 1.5; color: rgba(10, 10, 11, .82); }

@container (max-width: 600px) {
  .hw-step { grid-template-columns: 1fr; }
  .hw-art { max-width: 340px; }
  .hw-phone { grid-template-columns: 1fr; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-hi, .hw-cur { animation: none; }
}

/* página pública */
.hw-page { max-width: 980px; }
.hw-page .lead { max-width: 40em; }
.hw-cta { margin: 18px 0 30px; }
