/* Site do Orbit Console: mesma identidade do front (azul noturno, verde lima, anel azul do logo).
   As cores vêm de variáveis: os temas do Orbit trocam --bg e --accent na página inteira. */
:root {
  --bg: #06111c;
  --bg-rgb: 6 17 28;
  --accent: #b1ff69;
  --accent-rgb: 177 255 105;
  --on-accent: #0c1a06;
  --panel: color-mix(in srgb, var(--bg) 88%, #7da2c8);
  --panel-2: color-mix(in srgb, var(--bg) 94%, #7da2c8);
  --line: color-mix(in srgb, var(--bg) 76%, #8fb3d6);
  --text: #e8eef4;
  --muted: #9fb2c6;
  --blue: #4a7dff;
  --error: #ff8a8a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgb(74 125 255 / 0.2), transparent 62%),
    radial-gradient(800px 420px at 8% 4%, rgb(var(--accent-rgb) / 0.08), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.55 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  transition: background-color 0.5s ease;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 26px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.accent {
  color: var(--accent);
}
.center {
  text-align: center;
}

/* Logo giroscópio: o mesmo desenho e o mesmo movimento do Orbit (anel que balança e achata como se girasse). */
.gyro {
  overflow: visible;
}
.gyro .gy-tilt {
  transform-box: view-box;
  transform-origin: 71px 55px;
  animation: gy-sway 4.8s ease-in-out infinite;
}
.gyro .gy-ring {
  fill: none;
  stroke: #4a7dff;
  stroke-width: 6;
  stroke-linecap: round;
  animation: gy-flip 2.4s ease-in-out infinite;
}
.gyro .gy-ring.front {
  stroke: #7fa5ff;
}
.gyro .gy-planet {
  fill: none;
  stroke: #4a7dff;
  stroke-width: 6;
}
@keyframes gy-sway {
  0%,
  100% {
    transform: rotate(-28deg);
  }
  50% {
    transform: rotate(-10deg);
  }
}
@keyframes gy-flip {
  0%,
  100% {
    ry: 22px;
  }
  50% {
    ry: 4px;
  }
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / 0.78);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover,
.top nav a:focus-visible {
  color: var(--text);
}
.account {
  margin-left: auto;
}

main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px) 72px;
}
main.wide {
  width: min(1240px, 100%);
}
main.narrow {
  width: min(640px, 100%);
  padding-top: 56px;
}
main.center {
  text-align: center;
}
main.narrow h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin-bottom: 14px;
}

/* ------------------------------------------------------------ abertura */
.hero {
  padding: clamp(24px, 3.4vw, 40px) 0 clamp(24px, 3.4vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: clamp(130px, 15vw, 190px);
  margin-bottom: 6px;
  perspective: 700px;
  filter: drop-shadow(0 0 34px rgb(74 125 255 / 0.55));
}
.hero-logo svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}
.lead {
  color: var(--muted);
  font-size: 1.16rem;
  margin: 18px 0 26px;
  max-width: 60ch;
}
main.center .lead,
.hero .lead {
  margin-inline: auto;
}
.confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}
.confirm input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--accent, #b1ff69);
}
.fine {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover {
  box-shadow: 0 0 26px rgb(var(--accent-rgb) / 0.35);
  transform: translateY(-1px);
}
.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.button.ghost:hover {
  border-color: var(--accent);
}
.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}
.button:focus-visible,
.chip:focus-visible,
.swatch:focus-visible,
.power:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ a TV com o Orbit */
.stage {
  padding-bottom: clamp(36px, 6vw, 64px);
}
.tv {
  position: relative;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.6vw, 20px);
  border: clamp(5px, 0.8vw, 10px) solid #0a0d12;
  outline: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgb(0 0 0 / 0.55),
    0 0 110px rgb(var(--accent-rgb) / 0.13);
  transition: box-shadow 0.5s ease;
}
.screen .poster,
.screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.screen .poster {
  transition:
    opacity 0.6s ease,
    filter 0.4s ease;
}
.screen:not(.on) .poster {
  filter: brightness(0.5) saturate(0.9);
}
.screen.live .poster {
  opacity: 0;
  pointer-events: none;
}
.screen iframe {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.screen.live iframe {
  opacity: 1;
}
.screen:fullscreen {
  border: 0;
  border-radius: 0;
  outline: 0;
}
.power {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 0;
  background: radial-gradient(closest-side, rgb(var(--bg-rgb) / 0.55), transparent);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.power b {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
}
.power small {
  color: #c8d6e4;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
}
.power-icon {
  width: clamp(58px, 9vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.5);
  animation: power-pulse 2.2s ease-out infinite;
  position: relative;
}
.power-icon::after {
  content: '';
  position: absolute;
  left: 39%;
  top: 28%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: clamp(13px, 2vw, 20px) 0 clamp(13px, 2vw, 20px) clamp(21px, 3.2vw, 33px);
  border-color: transparent transparent transparent var(--on-accent);
}
.power:hover .power-icon {
  transform: scale(1.06);
}
.screen.on .power {
  display: none;
}
@keyframes power-pulse {
  to {
    box-shadow: 0 0 0 26px rgb(var(--accent-rgb) / 0);
  }
}
.tv-foot {
  width: 22%;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#0a0d12, #1a222c);
}

.console {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  display: grid;
  gap: 12px;
}
.console-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.console-label {
  width: 52px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease;
}
.chip:hover {
  border-color: var(--accent);
}
.chip.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.chip.icon {
  margin-left: auto;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
/* O nome fica só para leitores de tela e para a dica; o botão é a amostra das duas cores do tema. */
.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, var(--sw-bg, #06111c) 0 50%, var(--sw-accent, #b1ff69) 50% 100%);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch[aria-pressed='true'] {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.4);
}
.theme-about {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 60px;
}
.theme-about b {
  color: var(--accent);
}
.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.pad-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4d6276;
}
.pad-dot.on {
  background: var(--accent);
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / 0.8);
}

/* ------------------------------------------------------------ seções */
.band {
  padding: clamp(40px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  margin-bottom: clamp(36px, 6vw, 72px);
}
.feature.flip figure {
  order: 2;
}
.feature figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.feature figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 30px 70px rgb(0 0 0 / 0.5),
    0 0 60px rgb(var(--accent-rgb) / 0.12);
}
.feature img {
  display: block;
  width: 100%;
  height: auto;
}
.feature h3,
.pad h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 12px;
}
.feature p,
.pad p {
  color: var(--muted);
}
.ticks {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  padding-left: 26px;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pad {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(20px, 3.4vw, 34px);
  margin-bottom: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}
.keys {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 10px;
}
.key {
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  transition:
    transform 0.08s ease,
    background-color 0.08s ease,
    color 0.08s ease;
}
.key.wide,
.key.dir {
  border-radius: 12px;
}
.key.a {
  color: #7ee27e;
}
.key.b {
  color: #ff7676;
}
.key.x {
  color: #6ea8ff;
}
.key.y {
  color: #ffd45e;
}
.key.down {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: scale(0.92);
  box-shadow: 0 0 22px rgb(var(--accent-rgb) / 0.55);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.cards li,
.plan,
.panel {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.cards p,
.plan li {
  color: var(--muted);
}
.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  color: #a9c2ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  align-items: start;
}
/* Os números da página inicial e os três passos da sala. */
.facts {
  list-style: none;
  margin: 26px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.facts li {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}
.facts b {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  color: var(--accent);
}
.facts span {
  font-size: 0.9rem;
  opacity: 0.8;
}
.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.steps li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}
.steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
}
.steps h3 {
  margin: 12px 0 6px;
}
.steps p {
  margin: 0;
  opacity: 0.85;
}
/* Jogar junto: a seção de destaque, com a borda na cor do tema. */
.band.together .feature {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid rgb(var(--accent-rgb) / 0.45);
  border-radius: 22px;
  background: linear-gradient(160deg, rgb(var(--accent-rgb) / 0.07), transparent 70%);
}
.band.together .feature .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.plans.three {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.partner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: start;
}
.partner .lead {
  margin-top: 0;
}
.partner-form {
  display: grid;
  gap: 8px;
}
.partner-form .button {
  margin-top: 8px;
}
.field.area {
  padding: 10px 12px;
  resize: vertical;
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
@media (max-width: 860px) {
  .partner {
    grid-template-columns: 1fr;
  }
}
.plan.featured {
  border-color: rgb(var(--accent-rgb) / 0.55);
  box-shadow: 0 0 40px rgb(var(--accent-rgb) / 0.08);
}
.plan ul {
  margin: 14px 0 22px;
  padding-left: 20px;
}
.price {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 4px;
}
.download {
  text-align: center;
}
.download .lead {
  margin-inline: auto;
}
.download .notice {
  max-width: 560px;
  margin-inline: auto;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style-position: outside;
}
.faq details[open] summary {
  color: var(--accent);
}
.faq p {
  color: var(--muted);
  padding-bottom: 18px;
}

/* ------------------------------------------------------------ conta e vínculo */
.panel {
  text-align: left;
  margin-top: 18px;
}
.panel h2 {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.devices {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.devices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

form.panel {
  display: grid;
  gap: 12px;
}

/* ------------------------------------------------------------ area interna (conta, amigos, vincular)
   A mesma moldura do Orbit: barra com o logo, menu lateral com a marca verde no item atual e cartoes. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
body.app {
  display: block;
}
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.shell-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  min-width: 0;
}
.shell-mail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.shell-middle {
  flex: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.side-link svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-link:hover {
  color: var(--text);
  background: rgb(var(--accent-rgb) / 0.05);
}
.side-link[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.14), rgb(var(--accent-rgb) / 0.03));
  border-color: rgb(var(--accent-rgb) / 0.22);
}
.side-link[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 24%;
  bottom: 24%;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}
.side-link.small {
  font-size: 0.95rem;
  padding: 10px 16px;
}
.side-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.side-spacer {
  flex: 1;
}
.shell-main {
  width: auto;
  margin: 0;
  padding: clamp(22px, 3.4vw, 44px) clamp(16px, 4vw, 56px) 64px;
  max-width: 1080px;
}
.shell-main h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 8px;
}
.shell-main .eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}
.shell-main .lead {
  margin: 0 0 22px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.tile {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  transition: border-color 0.15s ease;
}
.tile:hover,
.tile:focus-within {
  border-color: rgb(var(--accent-rgb) / 0.4);
}
.tile.wide {
  grid-column: 1 / -1;
}
.tile h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tile .button {
  margin-top: 6px;
}
.link-tile {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 8px 0 4px;
}
.value.code,
.field.code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.qr {
  display: block;
  width: min(232px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 10px 0 14px;
  border-radius: 10px;
  background: #ffffff;
}
.value.code {
  color: var(--accent);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 8px;
}
form.inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
form.inline label {
  grid-column: 1 / -1;
}
form.inline .button {
  margin-top: 0;
  min-height: 42px;
}
.field {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / 0.7);
  color: var(--text);
  font: inherit;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.check input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions .button,
.devices .button {
  margin-top: 0;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / 0.55);
}
.person .avatar {
  background: #24384a;
  color: var(--muted);
}
.person.on {
  border-color: rgb(var(--accent-rgb) / 0.45);
}
.person.on .avatar {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 16px rgb(var(--accent-rgb) / 0.45);
}
.person-text {
  flex: 1;
  min-width: 0;
  display: grid;
}
.person-text small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person.on .person-text small {
  color: var(--accent);
}
.person .button {
  margin-top: 0;
}
@media (max-width: 860px) {
  .shell-middle {
    grid-template-columns: 1fr;
  }
  .side {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-link {
    flex: none;
    padding: 10px 14px;
  }
  .side-link[aria-current='page']::before {
    display: none;
  }
  .side-spacer {
    display: none;
  }
  .shell-mail {
    display: none;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
}

label {
  color: var(--muted);
  font-size: 0.92rem;
}
input.code {
  width: 100%;
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #071521;
  color: var(--text);
  font: 600 2rem/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}
input.code::placeholder {
  color: #3b5268;
}
input.field.code {
  width: auto;
  min-height: 42px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  background: rgb(var(--bg-rgb) / 0.7);
}

/* ------------------------------------------------------------ painel de administração */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}
.stat b {
  font-size: 1.7rem;
  color: var(--accent);
}
.stat small,
.audit li {
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-people {
  grid-template-columns: 1fr;
  margin: 14px 0;
}
.admin-people .person {
  flex-wrap: wrap;
}
.admin-people .person-text small {
  white-space: normal;
}
.person.off {
  opacity: 0.6;
}
form.stack {
  display: grid;
  gap: 8px;
}
.keys-out {
  width: 100%;
  margin-top: 10px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--text);
}

.notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071521;
  color: var(--muted);
  text-align: left;
}
.notice[data-kind='ok'] {
  border-color: rgb(177 255 105 / 0.5);
  color: #d6ffb3;
}
.notice[data-kind='error'] {
  border-color: rgb(255 138 138 / 0.5);
  color: var(--error);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 5vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* Entrada suave das seções; só vale com JavaScript ligado (classe "js" posta pelo showcase.js). */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .feature,
  .pad {
    grid-template-columns: 1fr;
  }
  .feature.flip figure {
    order: 0;
  }
  .keys {
    justify-content: center;
  }
  .theme-about {
    padding-left: 0;
  }
}
@media (max-width: 640px) {
  .top nav {
    display: none;
  }
  .console-label {
    width: 100%;
  }
  .chip.icon {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .feature figure,
  .hero-logo svg {
    transition: none;
  }
  .power-icon {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.steps + .cards {
  margin-top: 14px;
}

/* Os layouts do Orbit: a fileira de botões abaixo da TV e a galeria na seção de temas. */
.layouts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.layouts button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.layouts button:hover,
.layouts button[aria-pressed='true'] {
  border-color: var(--accent);
}
.layouts button:hover {
  transform: translateY(-3px);
}
.layouts button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.layouts img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.layouts h3,
.layouts p {
  margin: 0;
  padding: 0 18px;
}
.layouts h3 {
  padding-top: 14px;
}
.layouts p {
  padding-bottom: 16px;
  color: var(--muted);
}

/* A entrada "Jogar pelo celular" da página inicial só aparece em tela de celular. */
.only-phone {
  display: none;
}
@media (max-width: 760px) and (pointer: coarse) {
  .only-phone {
    display: inline-flex;
  }
}
