@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fredoka-400.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fredoka-500.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-600.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-700.ttf") format("truetype"); }
@font-face { font-family: "Fredoka One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fredoka-one-400.ttf") format("truetype"); }

/* ==========================================================================
   JOGANZA HOME — Figma Frame B (30:98)
   Tokens: docs/figma-home-tokens.json
   INFERRED = visual from home-desktop.png (not Figma-exact measure)
   ========================================================================== */

:root {
  --jz-page-from: #441858;
  --jz-page-to: #090414;
  --jz-orange: #ff5e35;
  --jz-orange-soft: #ff8161;
  --jz-teal: #07cdc3;
  --jz-pink: #ff3366;
  --jz-blue: #20a4f3;
  --jz-surface: #1b1437;
  --jz-table: #330136;
  --jz-border-purple: #4b3875;
  --jz-scroll-track: transparent;
  --jz-scroll-thumb: #5c3a68;
  --jz-scroll-thumb-hover: #6a4578;
  --jz-scroll-thumb-active: #4a2f56;
  --jz-scroll-size: 10px;
  --jz-border-cta: #312a56;
  --jz-badge-yellow: #ffd23f;
  --jz-mute: #a29dbe;
  --jz-white: #ffffff;
  /* Figma content rail (Salas Públicas / cards). NÃO escala com vw/1920. */
  --jz-content: 1284px;
  --jz-gutter: 32px;
  --jz-nav-max: 1920px;
  --jz-font-display: "Fredoka", system-ui, sans-serif;
  /* Caixa alta / labels ALL CAPS */
  --jz-font-caps: "Fredoka One", "Fredoka", system-ui, sans-serif;
  --jz-font-nav: var(--jz-font-caps);
  /* Texto normal (títulos sentence-case, body, UI) */
  --jz-font-ui: "Fredoka", system-ui, sans-serif;
}

/* Gutters crescem só nas laterais — conteúdo permanece perto do Figma */
@media (min-width: 1440px) {
  :root {
    --jz-gutter: 48px;
  }
}

@media (min-width: 1600px) {
  :root {
    --jz-gutter: 64px;
  }
}

/* Container real: cabe 1284 até a viewport apertar as margens */
.jz-container {
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  margin-inline: auto;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide legacy stage blobs behind Figma home; keep for other screens */
body:has(#screen-home.active) .stage-bg {
  opacity: 0;
  pointer-events: none;
}

/* Landing de convite: mesma identidade visual da home, sem carregar o layout legado. */
body:has(#screen-join-invite.active) .stage-bg {
  opacity: 0;
  pointer-events: none;
}

.app:has(#screen-join-invite.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

body:has(#screen-join-invite.active),
html:has(#screen-join-invite.active) {
  background-color: #090414;
}

#screen-join-invite.jz-join-screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  padding: 28px var(--jz-gutter) 36px;
  color: var(--jz-white);
  background: linear-gradient(180deg, #1a0b2e 0%, #0d0618 55%, #090414 100%);
  isolation: isolate;
}

#screen-join-invite.jz-join-screen.active {
  display: grid;
  place-items: start center;
  opacity: 1;
  transform: none;
  animation: none;
}

.jz-join-content {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  text-align: center;
}

.jz-join-hero { margin-bottom: 1.5rem; }
.jz-join-logo { display: inline-block; margin-bottom: 2.5rem; }
.jz-join-logo img { display: block; width: min(200px, 52vw); height: auto; }
.jz-join-kicker { margin: 0 0 0.35rem; color: var(--jz-mute); font-size: 1.05rem; font-weight: 600; }
.jz-join-title { margin: 0; color: var(--jz-white); font-family: var(--jz-font-display); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; }

.jz-join-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: left;
  border: 2px solid var(--jz-orange);
  border-radius: 24px;
  background: rgba(27, 20, 55, 0.94);
  box-shadow: 0 16px 0 rgba(9, 4, 20, 0.26), 0 24px 50px rgba(0, 0, 0, 0.28);
}

.jz-join-card .field { display: grid; gap: 0.45rem; color: var(--jz-white); font-family: var(--jz-font-ui); font-weight: 600; }
.jz-join-card .field input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  color: var(--jz-white);
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jz-border-purple);
  border-radius: 12px;
}
.jz-join-card .field input:focus { outline: 3px solid rgba(7, 205, 195, 0.5); outline-offset: 2px; border-color: var(--jz-teal); }
.jz-join-card .jz-btn {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 52px;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.jz-join-card .hint { margin: 0; color: var(--jz-mute); text-align: center; }
.jz-join-card #join-unavailable { text-align: center; }
.jz-join-games-link { color: var(--jz-white); font-weight: 600; text-align: center; }

@media (max-width: 640px) {
  #screen-join-invite.jz-join-screen { padding: 18px 1rem 20px; }
  .jz-join-logo { margin-bottom: 2rem; }
  .jz-join-card { border-radius: 20px; }
}

#screen-home.jz-home-screen {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--jz-white);
  position: relative;
  z-index: 1;
}

#screen-home.jz-home-screen.active {
  display: block;
  opacity: 1;
  /* Sem transform: senão position:fixed dos blobs gruda na section, não no viewport */
  transform: none !important;
  animation: none;
}

.jz-home {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  /* visible nos dois eixos: overflow-x:hidden + overflow-y:visible vira oy:auto e corta blur */
  overflow: visible;
  /* Gradiente fallback; o SVG de bg traz o paint oficial */
  background: linear-gradient(180deg, var(--jz-page-from) 0%, var(--jz-page-to) 100%);
  font-family: var(--jz-font-ui);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Regra tipográfica: caixa alta → Fredoka One; resto herda Fredoka */
.jz-home :is(
  .jz-logo-word,
  .jz-btn-cta,
  .jz-chip,
  .jz-chips li,
  .jz-public-table thead th,
  .party-mode-kicker,
  .party-mode-title,
  .btn-play-now,
  .btn-play-cao
) {
  font-family: var(--jz-font-caps);
}

/* Evita faixa azul (#0f2b45) sob o footer / no overscroll */
body:has(#screen-home.active),
html:has(#screen-home.active) {
  background-color: #090414;
  /* home: trilha do scroll sem cor — só a barra */
  scrollbar-width: thin;
  scrollbar-color: var(--jz-scroll-thumb, #5c3a68) transparent;
  color-scheme: normal;
}

html:has(#screen-home.active)::-webkit-scrollbar,
body:has(#screen-home.active)::-webkit-scrollbar,
html:has(#screen-home.active) *::-webkit-scrollbar {
  width: var(--jz-scroll-size, 10px);
  height: var(--jz-scroll-size, 10px);
  background: transparent !important;
  background-color: transparent !important;
}

html:has(#screen-home.active)::-webkit-scrollbar-track,
html:has(#screen-home.active)::-webkit-scrollbar-track-piece,
body:has(#screen-home.active)::-webkit-scrollbar-track,
body:has(#screen-home.active)::-webkit-scrollbar-track-piece,
html:has(#screen-home.active) *::-webkit-scrollbar-track,
html:has(#screen-home.active) *::-webkit-scrollbar-track-piece {
  background: transparent !important;
  background-color: transparent !important;
}

html:has(#screen-home.active)::-webkit-scrollbar-thumb,
body:has(#screen-home.active)::-webkit-scrollbar-thumb,
html:has(#screen-home.active) *::-webkit-scrollbar-thumb {
  background-color: var(--jz-scroll-thumb, #5c3a68);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

html:has(#screen-home.active)::-webkit-scrollbar-corner,
body:has(#screen-home.active)::-webkit-scrollbar-corner,
html:has(#screen-home.active) *::-webkit-scrollbar-corner {
  background: transparent !important;
}

.jz-home input,
.jz-home textarea,
.jz-home select {
  -webkit-user-select: text;
  user-select: text;
}

.jz-home img,
.jz-home svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* O SVG completo ocupa somente a camada decorativa; a UI mantém layout próprio. */
.jz-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* visible: evita cortar o soft-edge do blur dos blobs no SVG */
  overflow: visible;
}

.jz-home-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Dots: posição % acompanha o fundo; tamanho em px fixo = sem squash */
.jz-home-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.jz-home-dot {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  /* w/h fixos = bolinhas sempre circulares; não herdam o stretch do fundo */
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clusters no artboard 3840×6034 (validate-dots-playwright) → assets 1× */
.jz-home-dot-teal-hero {
  left: calc(3418 / 3840 * 100%);
  top: calc(470 / 6034 * 100%);
  width: 96px;
  height: 304px;
}

.jz-home-dot-yellow-how {
  left: calc(296 / 3840 * 100%);
  top: calc(1720 / 6034 * 100%);
  width: 96px;
  height: 304px;
}

.jz-home-dot-yellow-games {
  left: calc(3232 / 3840 * 100%);
  top: calc(3032 / 6034 * 100%);
  width: 304px;
  height: 96px;
}

.jz-home-dot-teal-rooms {
  left: calc(184 / 3840 * 100%);
  top: calc(4396 / 6034 * 100%);
  width: 304px;
  height: 96px;
}

.jz-logo-img {
  display: block;
  width: 322px;
  height: 82px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.jz-footer-logo {
  display: block;
  width: 147px;
  height: auto;
}

.jz-home > *:not(.jz-home-bg) {
  position: relative;
  z-index: 1;
}

/* —— Navbar ——
   Figma 30:101 / navbar.svg: 1920×130
   logo 322×82 @ (257,24) · ghost 181×40 @ (1312,45) · CTA 136×41 @ (1526.5,44.5)
   links Fredoka One 15 · gaps ~34 */
.jz-nav {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1920px;
  height: 130px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  /* Não clipar o glow do fundo SVG atrás do header */
  overflow: visible;
  background: transparent;
}

.jz-nav-logo {
  position: absolute;
  left: calc(257 / 1920 * 100%);
  top: 24px;
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  z-index: 2;
}

.jz-logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--jz-orange);
  color: #fff;
  font-family: var(--jz-font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.jz-logo-word {
  font-family: var(--jz-font-caps);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f7f7f6;
}

.jz-nav-links {
  position: absolute;
  /* ancora pela direita: fim do último link @1278 (= ghost 1312 − 34) */
  right: calc((1920 - 1278) / 1920 * 100%);
  left: auto;
  top: 55px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.jz-nav-links a {
  font-family: var(--jz-font-caps);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
}

.jz-nav-links a:hover,
.jz-nav-links a:focus-visible {
  color: var(--jz-orange-soft);
  outline: none;
}

.jz-nav-actions {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}

.jz-nav-actions .jz-btn {
  pointer-events: auto;
}

.jz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 20px;
  font-family: var(--jz-font-caps);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease,
    background 0.15s ease,
    box-shadow 0.22s ease,
    border-color 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  will-change: transform;
}

.jz-btn:focus-visible {
  outline: 2px solid var(--jz-badge-yellow);
  outline-offset: 2px;
}

.jz-btn-ghost {
  position: absolute;
  left: calc(1312 / 1920 * 100%);
  top: 45px;
  width: 181px;
  min-width: 181px;
  max-width: 181px;
  height: 40px;
  background: #1b1437;
  color: #fff;
  border: 2px solid #fff;
  animation: jz-btn-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s backwards;
}

.jz-btn-cta {
  position: absolute;
  left: calc(1526.5 / 1920 * 100%);
  top: 44.5px;
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  height: 41px;
  min-height: 41px;
  border-radius: 20.5px;
  background: #ff5e35;
  color: #fff;
  border: 2px solid #312a56;
  text-transform: uppercase;
  overflow: hidden;
  animation: jz-btn-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s backwards;
}

.jz-btn-cta::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 65%
  );
  transform: translateX(-120%) rotate(8deg);
  pointer-events: none;
  animation: jz-cta-shine 3.6s ease-in-out 1.2s infinite;
}

.jz-btn-ghost:hover,
.jz-btn-ghost:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  border-color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.jz-btn-cta:hover,
.jz-btn-cta:focus-visible {
  transform: translateY(-3px) scale(1.045);
  filter: brightness(1.06);
}

.jz-btn-ghost:active,
.jz-btn-cta:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.98);
  transition-duration: 0.08s;
}

.jz-btn:hover {
  filter: brightness(1.05);
}

@keyframes jz-btn-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jz-cta-shine {
  0%,
  55% {
    transform: translateX(-120%) rotate(8deg);
  }
  75%,
  100% {
    transform: translateX(120%) rotate(8deg);
  }
}

.jz-nav-burger {
  /* relative: as barras (absolute) precisam deste containing block;
     se for static, left/right esticam na largura do .jz-nav */
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: transparent;
  pointer-events: auto;
  overflow: visible;
  cursor: pointer;
  z-index: 2;
}

.jz-nav-burger span,
.jz-nav-burger span::before,
.jz-nav-burger span::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease, background 0.15s ease, opacity 0.15s ease;
}

.jz-nav-burger span {
  left: 50%;
  top: 50%;
  width: 20px;
  margin: -1px 0 0 -10px;
}

.jz-nav-burger span::before,
.jz-nav-burger span::after {
  left: 0;
  right: 0;
  width: 100%;
}

.jz-nav-burger span::before {
  top: -7px;
}

.jz-nav-burger span::after {
  top: 7px;
}

/* Hamburger → X (aria-expanded controlado pelo handler existente) */
.jz-nav-burger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.55);
}

.jz-nav-burger[aria-expanded="true"] span {
  background: transparent;
}

.jz-nav-burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.jz-nav-burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Mobile menu: no fluxo do documento (rola com o header) —— */
.jz-mobile-menu {
  display: none;
}

.jz-mobile-menu[hidden] {
  display: none !important;
}

#jz-mobile-menu.jz-mobile-menu:not([hidden]),
.jz-mobile-menu:not([hidden]) {
  display: block;
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 50;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
  pointer-events: auto;
}

/* Dim visual; não captura toque → página continua scrollável */
.jz-mobile-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 3, 18, 0.72);
  pointer-events: none;
  opacity: 0;
}

.jz-mobile-menu:not([hidden]) .jz-mobile-menu-scrim {
  animation: jz-menu-scrim-in 0.2s ease-out forwards;
}

.jz-mobile-menu-card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 4px 16px 18px;
  border-radius: 0 0 22px 22px;
  background: #1b1437;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
}

.jz-mobile-menu:not([hidden]) .jz-mobile-menu-card {
  animation: jz-menu-card-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.jz-mobile-menu-dots {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 36px;
  height: 14px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1.4px);
  background-size: 7px 7px;
  background-repeat: repeat;
  mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

.jz-mobile-menu-nav,
.jz-mobile-menu-ctas,
.jz-mobile-menu-divider {
  position: relative;
  z-index: 1;
}

.jz-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 2px 0;
}

.jz-mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  box-sizing: border-box;
  text-decoration: none;
  text-align: left;
  color: #fff;
  font-family: var(--jz-font-ui);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jz-mobile-menu-link::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(-45deg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.jz-mobile-menu-link:hover,
.jz-mobile-menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  outline: none;
  color: #fff;
}

.jz-mobile-menu-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.55);
}

.jz-mobile-menu-link:active {
  background: rgba(255, 94, 53, 0.12);
  border-color: rgba(255, 94, 53, 0.18);
}

.jz-mobile-menu-link:hover::after,
.jz-mobile-menu-link:focus-visible::after {
  border-color: rgba(255, 129, 97, 0.85);
  transform: rotate(-45deg) translate(1px, 1px);
}

.jz-mobile-menu-divider {
  height: 1px;
  margin: 6px 8px 10px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 20%,
    rgba(255, 255, 255, 0.14) 80%,
    transparent 100%
  );
}

.jz-mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 2px;
}

.jz-mobile-menu-enter,
.jz-mobile-menu-create {
  width: 100%;
  max-width: none;
  min-width: 0;
  position: static;
  left: auto;
  top: auto;
  height: auto;
  min-height: 46px;
  box-sizing: border-box;
  text-align: center;
}

#jz-mobile-menu:not([hidden]) .jz-mobile-menu-enter {
  animation: jz-btn-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}

#jz-mobile-menu:not([hidden]) .jz-mobile-menu-create {
  animation: jz-btn-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.jz-mobile-menu-enter {
  padding: 0 1rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  font-family: var(--jz-font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.jz-mobile-menu-enter:hover,
.jz-mobile-menu-enter:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fff;
}

.jz-mobile-menu-create {
  min-height: 50px;
  padding: 0 1rem;
  border-radius: 25px;
  font-size: 0.98rem;
  box-shadow: none;
}

/* Header + sheet: uma peça só quando o menu abre */
body:has(#screen-home.active):has(#jz-mobile-menu:not([hidden])) .jz-nav {
  background: #1b1437;
  box-shadow: none;
  position: relative;
  top: auto;
}

#screen-home .jz-home > .jz-nav {
  z-index: 60;
}

#screen-home .jz-home > #jz-mobile-menu:not([hidden]) {
  z-index: 50;
  position: relative;
}

@keyframes jz-menu-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jz-menu-card-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jz-nav-burger span,
  .jz-nav-burger span::before,
  .jz-nav-burger span::after {
    transition: none;
  }

  .jz-mobile-menu:not([hidden]) .jz-mobile-menu-scrim,
  .jz-mobile-menu:not([hidden]) .jz-mobile-menu-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* PreferÃªncias de mÃ©tricas seguem o mesmo modal de Criar/Entrar. */
.consent-banner.home-overlay {
  z-index: 100;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  pointer-events: auto;
}

.consent-banner .home-overlay-backdrop { background: rgba(8, 3, 18, 0.72); }

.consent-card.home-sheet.jz-create-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: min(92vh, 620px);
  margin: auto;
  padding: 28px 24px 24px;
  text-align: center;
}

.consent-card .consent-title { margin: 0 0 0.75rem; color: #fff; font-family: var(--jz-font-caps); font-size: clamp(1.65rem, 5vw, 2rem); font-weight: 400; }
.consent-card .consent-text { margin: 0 auto 1.25rem; max-width: 35ch; color: var(--jz-mute); font: 600 0.98rem/1.45 var(--jz-font-ui); }
.consent-card .consent-actions { display: grid; gap: 0.7rem; }
.consent-card .consent-actions .btn { width: 100%; min-height: 48px; }
.consent-card #consent-accept {
  border: 2px solid #f9af96;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  color: #fff;
  font-family: var(--jz-font-caps);
  font-weight: 400;
}
.consent-card #consent-reject {
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--jz-font-caps);
  font-weight: 400;
}
.consent-card #consent-accept:hover:not(:disabled),
.consent-card #consent-accept:focus-visible {
  background: linear-gradient(90deg, #ff7048 0%, #ff4a78 100%);
}
.consent-card #consent-reject:hover:not(:disabled),
.consent-card #consent-reject:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.consent-card #consent-accept:focus-visible,
.consent-card #consent-reject:focus-visible { outline: 3px solid rgba(255, 210, 63, 0.7); outline-offset: 3px; }
.consent-card .consent-more { color: var(--jz-mute); font: 700 0.88rem/1.3 var(--jz-font-ui); text-decoration: underline; text-underline-offset: 3px; }
.consent-card .consent-more:hover { color: #fff; }

@media (max-width: 560px) {
  .consent-banner.home-overlay { padding: 0; place-items: end center; }
  .consent-card.home-sheet.jz-create-modal { width: 100%; max-height: min(88dvh, 580px); margin: 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
}

/* —— Hero —— */
.jz-hero {
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  max-width: var(--jz-content);
  margin: 0 auto;
  padding: 2.75rem 0 2.5rem;
  text-align: center;
  box-sizing: border-box;
}

.jz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 1.35rem;
  width: 343px;
  max-width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  min-height: 26px;
  border-radius: 13px;
  border: 1px solid var(--jz-badge-yellow);
  background: rgba(255, 210, 63, 0.082);
  color: var(--jz-badge-yellow);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.jz-hero-badge-dot {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jz-badge-yellow);
}

.jz-hero-badge-spark {
  width: 14px;
  height: 16px;
  flex: 0 0 auto;
}

.jz-hero-title {
  margin: 0 auto 1rem;
  max-width: none;
  width: max-content;
  font-family: var(--jz-font-display);
  font-weight: 600;
  /* Fluido controlado: ~64@1920, ainda claramente hero em 1366 (não ~40) */
  font-size: clamp(3rem, 2.4rem + 1.4vw, 64px);
  line-height: 110%;
  letter-spacing: -0.02em;
  color: var(--jz-white);
  white-space: nowrap;
}

.jz-hero-title .jz-accent {
  color: var(--jz-orange);
}

.jz-hero-lead {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.05rem; /* INFERRED */
  line-height: 1.55;
  color: var(--jz-mute);
}

/* —— Section heads —— */
.jz-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.jz-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--jz-font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 2rem + 0.7vw, 2.75rem);
  color: var(--jz-white);
}

.jz-section-sub {
  margin: 0;
  color: var(--jz-mute);
  font-size: 1rem; /* INFERRED */
}

/* —— How it works —— */
.jz-how {
  position: relative;
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  max-width: var(--jz-content);
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  box-sizing: border-box;
}

/* Vence #screen-home .home-how { max-width: none } do style.css legado */
#screen-home .jz-how.home-how,
#screen-home .home-how.jz-how {
  margin-top: 0 !important;
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter)))) !important;
  max-width: var(--jz-content) !important;
}

.jz-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.jz-how-card {
  width: 366px;
  flex: 0 1 366px;
  max-width: 366px;
  height: 138px;
  min-height: 138px;
  box-sizing: border-box;
  margin: 0;
  padding: 21px 22px;
  border-radius: 25px;
  background: var(--jz-surface);
  border: 6px solid var(--jz-orange);
  text-align: left;
  position: relative;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.jz-how-copy {
  min-width: 0;
}

.jz-how-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--jz-font-display);
  font-size: 1.05rem;
  color: #fff;
}

.jz-how-card p {
  margin: 0;
  color: var(--jz-mute);
  font-size: 0.86rem;
  line-height: 1.35;
}

.jz-how-num {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--jz-pink);
  color: #fff;
  font-family: var(--jz-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.jz-how-plus,
.jz-how-star {
  display: grid;
  place-items: center;
  width: 90px;
  flex: 1 1 48px;
  max-width: 90px;
  min-width: 36px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  list-style: none;
}

.jz-how-star img {
  width: 28px;
  height: 32px;
  display: block;
}

/* —— Games —— */
.jz-games {
  position: relative;
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  max-width: var(--jz-content);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  box-sizing: border-box;
}

#screen-home .jz-game-picker.home-start,
#screen-home #game-picker {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
}

#screen-home #returning-player-hint,
#screen-home .community-event {
  display: none !important;
}

#screen-home .jz-games .game-picker-title,
#screen-home .jz-section-head .game-picker-title {
  text-transform: none;
}

.jz-game-list {
  position: relative;
  z-index: 1;
  display: grid;
  /* Mantém ~610px enquanto couber; só encolhe quando o container apertar */
  grid-template-columns: repeat(2, minmax(0, 610px));
  gap: clamp(2rem, 4vw, 64px);
  justify-content: center;
}

#screen-home .jz-game-card.game-card {
  width: 100%;
  max-width: 610px;
  margin: 0;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  cursor: pointer;
  display: block !important;
  grid-template-columns: none !important;
}

#screen-home .jz-game-card.game-card.is-selected {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#screen-home .jz-game-card .jz-game-card-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 347px;
  height: auto;
  padding: 30px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

#screen-home .jz-game-card-qse {
  background: var(--jz-orange);
  border: 4px solid #fff;
  box-shadow: 0 8px 0 #fff;
}

#screen-home .jz-game-card-cao {
  background: var(--jz-surface);
  border: 4px solid var(--jz-orange);
  box-shadow: 0 8px 0 var(--jz-orange);
}

#screen-home .jz-game-card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#screen-home .jz-game-icon {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 102px;
  pointer-events: none;
}

#screen-home .jz-game-card-qse .jz-game-icon {
  width: 77px;
  height: 82px;
}

#screen-home .jz-game-card-cao .jz-game-icon {
  width: 102px;
  height: 75px;
}

#screen-home .jz-game-card .game-card-title {
  font-family: var(--jz-font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #fff !important;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#screen-home .jz-game-card-body {
  display: grid;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

#screen-home .jz-game-card .game-card-desc {
  color: #fff !important;
  font-family: var(--jz-font-ui);
  font-size: 0.9375rem;
  font-weight: 400 !important;
  line-height: 1.45;
  margin: 0;
  max-width: none;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

#screen-home .jz-game-card:not(.is-selected) .game-card-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

#screen-home .jz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

#screen-home .jz-chip,
#screen-home .jz-chips li {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 0.85rem !important;
  border-radius: 13.5px !important;
  border: none !important;
  font-family: var(--jz-font-caps);
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

#screen-home .jz-chip-dark {
  background: #330136 !important;
  color: #fff !important;
}

#screen-home .jz-chip-teal {
  background: var(--jz-teal) !important;
  color: #082226 !important;
}

#screen-home .jz-game-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* star.svg (64×67) — canto inferior direito do card QSE */
#screen-home .jz-game-deco-qse {
  right: 24px;
  bottom: 22px;
  width: 64px;
  height: 67px;
}

#screen-home .jz-game-deco-cao {
  right: 8px;
  bottom: 8px;
  width: 92px;
  height: 83px;
}

#screen-home .jz-mascot {
  display: none;
}

#screen-home .jz-game-card:not(.is-selected) {
  opacity: 1;
  transform: none;
  filter: none;
}

#screen-home .jz-game-card .game-card-select-hint {
  display: none !important;
}

#screen-home .jz-game-card .game-card-top,
#screen-home .jz-game-card .game-card-name,
#screen-home .jz-game-card .game-card-actions {
  display: none !important;
}

#screen-home .jz-about-art {
  /* Composition frame from about.svg mascot AABBs ≈ 368×510 */
  position: relative;
  width: min(100%, 280px);
  max-width: 280px;
  aspect-ratio: 368 / 510;
  height: auto;
  margin-inline: 0;
  justify-self: end;
}

#screen-home .jz-about-mascot {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  position: absolute;
  /* rotation already baked into Mascote_*.svg viewBoxes */
  transform: none;
}

/*
 * about.svg white-sticker rects overlap ~16px.
 * Visual Figma: stickers nestled (teal tucked under orange).
 * Asset origin (1280,45): orange (0,0) 215×273; teal (64,260) 304×250
 * Nudge teal up slightly so opaque bodies match the Figma nestle.
 */
#screen-home .jz-about-mascot-2 {
  width: calc(215 / 368 * 100%);
  left: 0;
  top: 0;
  z-index: 1;
}

#screen-home .jz-about-mascot-1 {
  width: calc(304 / 368 * 100%);
  left: calc(64 / 368 * 100%);
  top: calc(220 / 510 * 100%);
  z-index: 2;
}

#screen-home .jz-how-card.home-how-step,
#screen-home .home-how-step.jz-how-card {
  width: 366px;
  max-width: 100%;
  height: 138px;
  min-height: 138px;
  box-sizing: border-box;
  margin: 0;
  padding: 21px 22px !important;
  border-radius: 25px !important;
  background: var(--jz-surface) !important;
  border: 6px solid var(--jz-orange) !important;
  text-align: left;
  position: relative;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 14px;
}

.jz-play-dock {
  /* Hidden from Frame B marketing layout; IDs kept for contracts (navbar CRIAR SALA). */
  margin: 0;
  max-width: none;
  display: grid;
  gap: 0.65rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.jz-play-name {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.jz-play-name span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.jz-play-name input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 4, 20, 0.35);
  color: #fff;
  padding: 0 0.9rem;
}

.jz-play-actions {
  display: grid;
  gap: 0.65rem;
}

#game-picker[data-selected="quem-sou-eu"] .jz-play-cao,
#game-picker[data-selected="cao"] .jz-play-qse {
  display: none;
}

#game-picker[data-selected="quem-sou-eu"] .jz-play-qse,
#game-picker[data-selected="cao"] .jz-play-cao {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#screen-home .jz-play-dock .btn-play-now {
  background: #fff;
  color: #1b1437;
  border: none;
}

#screen-home .jz-play-dock .btn-play-cao {
  background: var(--jz-orange);
  color: #fff;
  border: none;
}

#screen-home .jz-play-dock .btn-configure-link {
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--jz-font-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jz-off-canvas-figma {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.jz-home-secondary {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

#screen-home .party-mode-block {
  background: rgba(27, 20, 55, 0.72);
  border: 2px solid var(--jz-border-purple);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

#screen-home .party-mode-title,
#screen-home .party-mode-lead,
#screen-home .party-mode-desc {
  color: #fff;
}

#screen-home .party-mode-title,
#screen-home .party-mode-kicker {
  font-family: var(--jz-font-caps);
  font-weight: 400;
}

#screen-home .party-mode-lead {
  font-family: var(--jz-font-display);
  text-transform: none;
  letter-spacing: normal;
}

#screen-home .party-mode-desc {
  font-family: var(--jz-font-ui);
}

#screen-home .jz-play-dock .btn-play-now,
#screen-home .jz-play-dock .btn-play-cao {
  font-family: var(--jz-font-caps);
  font-weight: 400;
}

#screen-home .home-alt-label {
  color: var(--jz-mute);
  font-family: var(--jz-font-ui);
}

/* —— Public rooms —— */
.jz-public {
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  max-width: var(--jz-content);
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  box-sizing: border-box;
}

.jz-public-filters {
  display: grid;
  grid-template-columns: minmax(0, 549px) repeat(2, minmax(0, 236px)) minmax(0, 215px);
  gap: 16px;
  margin-bottom: 1.35rem;
}

.jz-filter {
  position: relative;
  display: block;
  z-index: 1;
}

.jz-filter.is-open {
  z-index: 40;
}

.jz-filter-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 2;
}

.jz-filter.is-open .jz-filter-ico {
  top: 21px;
}

.jz-filter-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.18s ease;
}

.jz-filter.is-open .jz-filter-chevron {
  top: 21px;
  transform: translateY(-50%) rotate(180deg);
}

.jz-filter input,
.jz-filter select,
.jz-filter-trigger {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 21px;
  border: 1.5px solid var(--jz-border-purple);
  background: var(--jz-table);
  color: #fff;
  padding: 0 2.5rem 0 2.65rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  /* Figma filter0–3: hard plate dy=3 #4B3875 */
  box-shadow: 0 3px 0 var(--jz-border-purple);
}

.jz-filter-search input {
  padding-right: 1rem;
}

.jz-filter select,
.jz-filter-trigger {
  cursor: pointer;
  text-align: left;
}

.jz-filter-trigger {
  display: block;
  margin: 0;
  line-height: 1.2;
  /* botão nativo usa fonte do sistema — força a stack do site */
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.jz-filter-trigger-label {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.jz-filter-trigger:focus-visible {
  outline: 2px solid var(--jz-badge-yellow);
  outline-offset: 2px;
}

/* Native select fica só como fonte de valor (listeners / a11y sync) */
.jz-filter select.jz-filter-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Aberto: trigger + lista = um único pill contínuo, sobrepondo o conteúdo */
.jz-filter.is-open .jz-filter-trigger {
  position: relative;
  z-index: 2;
  border-radius: 21px 21px 0 0;
  border-bottom-color: transparent;
  box-shadow: none;
}

.jz-filter-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1.5px);
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 0.35rem 0.4rem 0.45rem 0.35rem;
  list-style: none;
  box-sizing: border-box;
  background: var(--jz-table);
  border: 1.5px solid var(--jz-border-purple);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 21px 21px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 4px 0 var(--jz-border-purple);
  max-height: min(280px, 42vh);
  overflow: hidden;
}

.jz-filter-menu[hidden] {
  display: none !important;
}

.jz-filter-menu-list {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jz-filter-menu-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Scrollbar dropdown: trilha transparente; só barra + setas */
.jz-filter-sb {
  flex: 0 0 var(--jz-scroll-size, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--jz-scroll-size, 10px);
  margin: 4px 4px 6px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  overflow: visible;
  user-select: none;
}

.jz-filter-sb[hidden] {
  display: none !important;
}

.jz-filter-sb-btn {
  flex: 0 0 14px;
  width: var(--jz-scroll-size, 10px);
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 5px;
  cursor: pointer;
  opacity: 1;
}

.jz-filter-sb-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M4 0L8 5H0L4 0Z' fill='%235C3A68'/%3E%3C/svg%3E");
}

.jz-filter-sb-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M4 5L0 0H8L4 5Z' fill='%235C3A68'/%3E%3C/svg%3E");
}

.jz-filter-sb-track {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 24px;
  background: transparent;
}

.jz-filter-sb-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--jz-scroll-thumb, #5c3a68);
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.jz-filter-sb-thumb:hover {
  background: var(--jz-scroll-thumb-hover, #6a4578);
}

.jz-filter-sb-thumb:active {
  cursor: grabbing;
  background: var(--jz-scroll-thumb-active, #4a2f56);
}

.jz-filter-option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  border-radius: 14px;
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
}

.jz-filter-option:hover,
.jz-filter-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.jz-filter-option.is-selected {
  background: rgba(255, 94, 53, 0.2);
  color: #fff;
}

.jz-filter-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jz-filter-disabled {
  opacity: 0.55;
}

.jz-public-filters {
  overflow: visible;
}

/* Figma: borda 3px + placa hard só abaixo (dy=10), sem offset diagonal dos game cards */
.jz-public-table-wrap {
  position: relative;
  box-sizing: border-box;
  border: 3px solid var(--jz-border-purple);
  border-radius: 16px;
  background: var(--jz-table);
  overflow: visible;
  min-height: 0;
  padding: 12px 13px 16px;
  margin-bottom: 10px;
  box-shadow: 0 10px 0 var(--jz-border-purple);
}

.jz-public-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
  margin-top: -10px;
}

.jz-public-table col.jz-col-num { width: 56px; }
.jz-public-table col.jz-col-room { width: 28%; }
.jz-public-table col.jz-col-game { width: 22%; }
.jz-public-table col.jz-col-players { width: 14%; }
.jz-public-table col.jz-col-region { width: 14%; }
.jz-public-table col.jz-col-action { width: 120px; }

.jz-public-table th,
.jz-public-table td {
  padding: 0 1rem;
  text-align: left;
  font-size: 0.95rem;
  color: #fff;
  vertical-align: middle;
}

.jz-public-table thead th {
  font-family: var(--jz-font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  height: 36px;
  background: transparent;
  border-radius: 0;
  text-transform: uppercase;
}

.jz-public-table tbody td {
  height: 60px;
  box-sizing: border-box;
}

.jz-public-table tbody tr:nth-child(odd) td {
  background: linear-gradient(180deg, #45004a 0%, #330136 100%);
}

.jz-public-table tbody tr:nth-child(even) td {
  background: #330136;
}

.jz-public-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

.jz-public-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
  padding-right: 1.15rem;
  text-align: right;
}

.jz-public-enter {
  min-width: 89px;
  min-height: 30px;
  padding: 0 1rem;
  border: none;
  border-radius: 15px;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  color: #fff;
  font-family: var(--jz-font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.jz-public-enter:focus-visible {
  outline: 2px solid var(--jz-badge-yellow);
  outline-offset: 2px;
}

.jz-public-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--jz-mute);
}

.jz-public-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 0.85rem;
}

.jz-public-card {
  border: 3px solid var(--jz-border-purple);
  border-radius: 16px;
  background: var(--jz-table);
  /* mesma lógica da tabela desktop: placa hard (não diagonal) */
  box-shadow: 0 8px 0 var(--jz-border-purple);
  padding: 1rem 1.05rem;
  margin-bottom: 2px;
  box-sizing: border-box;
}

.jz-public-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.jz-public-card-info {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.2rem;
}

.jz-public-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.jz-public-card-room {
  font-family: var(--jz-font-display);
  font-size: 1.05rem;
  color: var(--jz-white);
  min-width: 0;
  overflow-wrap: anywhere;
}

.jz-public-card-players {
  flex: 0 0 auto;
  font-family: var(--jz-font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--jz-white);
}

.jz-public-card-game,
.jz-public-card-lang {
  color: var(--jz-mute);
  font-size: 0.9rem;
  line-height: 1.35;
}

.jz-public-card .jz-public-enter {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  height: 44px;
  padding: 0 1rem;
}

.jz-public-card-empty {
  /* mesmo plate dos cards / tabela — sem dashed “vazio frágil” */
  box-shadow: 0 8px 0 var(--jz-border-purple);
  border-style: solid;
  color: var(--jz-mute);
  text-align: center;
  padding: 2rem 1.25rem;
  min-height: 140px;
  display: grid;
  place-items: center;
}

.jz-public-card-meta {
  color: var(--jz-mute);
  font-size: 0.9rem;
}

.jz-hero-mobile-cta {
  display: none;
  margin-top: 1.35rem;
  justify-content: center;
}

.jz-hero-mobile-cta .jz-btn-cta {
  position: static;
  min-width: min(220px, 100%);
  min-height: 48px;
  height: 48px;
  width: auto;
  max-width: 100%;
}

/* —— About ——
   Figma home-full: tabela @ x≈318, título "Quem somos" @ x≈350
   → ~32px mais para dentro que a borda da tabela (não flush). */
#screen-home .jz-about.home-about,
#screen-home .home-about.jz-about {
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter)))) !important;
  max-width: var(--jz-content) !important;
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  padding-left: 32px;
  display: grid;
  /* Figma ~70% copy / ~30% art */
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  column-gap: clamp(1.25rem, 2vw, 2.5rem);
  row-gap: 1.5rem;
  align-items: center;
  box-sizing: border-box;
}

.jz-about-copy {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.jz-about-copy h2 {
  margin: 0 0 1.1rem;
  font-family: var(--jz-font-display);
  font-size: clamp(2.25rem, 2rem + 0.6vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.jz-about-title-mascot {
  width: 55px;
  height: 58px;
  flex: 0 0 auto;
}

.jz-about-copy p {
  color: var(--jz-mute);
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: none;
  text-wrap: pretty;
}

.jz-about-copy p:last-child {
  margin-bottom: 0;
}

.jz-footer {
  width: 100%;
  max-width: var(--jz-nav-max);
  margin: 0 auto;
  padding: 48px max(var(--jz-gutter), calc((100% - var(--jz-content)) / 2)) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

.jz-footer-copy {
  margin: 0.5rem 0 0;
  color: var(--jz-mute);
  font-size: 0.9rem;
}

.jz-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.jz-footer-links a,
.jz-footer-links .linkish {
  font-family: var(--jz-font-ui);
  font-size: 14px;
  color: var(--jz-mute);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.jz-footer-links a:hover,
.jz-footer-links .linkish:hover {
  color: #fff;
}

#screen-home .home-guide-links {
  width: min(var(--jz-content), calc(100% - (2 * var(--jz-gutter))));
  max-width: var(--jz-content);
  margin: 0 auto 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

#screen-home .home-guide-links a {
  color: var(--jz-mute);
  font-size: 0.85rem;
}

/* App shell when home is Figma full-bleed */
.app:has(#screen-home.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

#btn-sound {
  z-index: 40;
}

@media (prefers-reduced-motion: reduce) {
  .jz-btn,
  .jz-game-card-inner {
    transition: none;
  }
}

/* Desktop ≥1200: tipografia estável + ritmo vertical por padding (sem bandas 3017) */
@media (min-width: 1200px) {
  .jz-hero {
    padding: 2.75rem 0 2.25rem;
  }

  .jz-hero-badge {
    margin-bottom: 0.85rem;
  }

  .jz-hero-title {
    max-width: none;
    width: max-content;
    white-space: nowrap;
    font-size: clamp(3.25rem, 2.6rem + 1.2vw, 64px);
    margin-bottom: 0.75rem;
  }

  .jz-hero-lead {
    font-size: clamp(1.05rem, 1rem + 0.2vw, 1.125rem);
  }

  .jz-how {
    padding: 3rem 0 3.25rem;
  }

  .jz-how .jz-section-head {
    margin-bottom: 2rem;
  }

  .jz-games {
    padding: 2.75rem 0 3.5rem;
  }

  .jz-games .jz-section-head {
    margin-bottom: 2rem;
  }

  .jz-public {
    padding: 3rem 0 3.5rem;
  }

  .jz-public .jz-section-head {
    margin-bottom: 1.25rem;
  }

  .jz-public-filters {
    margin-bottom: 1.5rem;
  }

  #screen-home .jz-about.home-about,
  #screen-home .home-about.jz-about {
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
  }

  .jz-footer {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Desktop mid: reduzir gaps externos antes de encolher cards */
@media (max-width: 1500px) and (min-width: 1201px) {
  .jz-game-list {
    gap: clamp(1.75rem, 3vw, 2.5rem);
  }

  .jz-how-plus,
  .jz-how-star {
    width: clamp(40px, 5vw, 72px);
    max-width: 72px;
  }
}

@media (max-width: 1200px) {
  .jz-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    white-space: normal;
    width: auto;
    max-width: 16ch;
  }

  .jz-hero,
  .jz-how,
  .jz-games,
  .jz-public {
    padding-left: var(--jz-gutter);
    padding-right: var(--jz-gutter);
    width: 100%;
    max-width: none;
  }

  #screen-home .jz-how.home-how,
  #screen-home .home-how.jz-how {
    width: 100% !important;
    max-width: none !important;
    padding-left: var(--jz-gutter);
    padding-right: var(--jz-gutter);
  }

  .jz-public-filters {
    grid-template-columns: 1fr 1fr;
  }

  .jz-how-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .jz-how-plus,
  .jz-how-star {
    display: none;
  }

  .jz-how-card {
    width: min(366px, 100%);
    flex: 1 1 280px;
  }
}

/* ==========================================================================
   RESPONSIVE — tablet + mobile (desktop ≥1201 kept)
   Refs: design/figma/home/JOGANZA/responsive-refs/
   No transform:scale / zoom / viewport/1920 factor
   ========================================================================== */

.jz-home { overflow-x: clip; overflow-y: visible; }
#screen-home.jz-home-screen { overflow-x: clip; overflow-y: visible; }
.jz-hero-title { max-width: 100%; width: auto; white-space: normal; }
.jz-hero-lead { max-width: 560px; }
.jz-mobile-menu[hidden] { display: none !important; }
.jz-section-head h2 { font-size: clamp(30px, 2.2vw, 38px); }
#screen-home .jz-games .game-picker-title { letter-spacing: normal; }
.jz-game-list { gap: 64px; }
body:has(#screen-home.active) #btn-sound { top: auto; bottom: 20px; right: 20px; }

/* —— Desktop Figma coords (≥1680: nav absoluta segura; seções ≥1201) —— */
@media (min-width: 1201px) {
  .jz-hero { padding-top: 44px; padding-bottom: 52px; }
  .jz-hero-badge { margin-bottom: 24px; }
  .jz-how { padding-top: 67.5px; padding-bottom: 96px; }
  .jz-how .jz-section-head, .jz-games .jz-section-head { margin-bottom: 56px; }
  .jz-how-card h3 { font-size: 20px; }
  .jz-how-card p { font-size: 16px; }
  #screen-home .jz-game-card .game-card-title { font-size: 36px; }
  #screen-home .jz-game-card .game-card-desc { font-size: 16px; }
  .jz-games { padding-top: 64.5px; padding-bottom: 112px; }
  .jz-public { padding-top: 86px; padding-bottom: 100px; }
  .jz-public .jz-section-head { margin-bottom: 40px; }
  #screen-home .jz-about.home-about { padding-top: 100px; padding-bottom: 75px; }
  .jz-footer {
    max-width: none;
    min-height: 185px;
    padding-inline: max(64px, calc((100vw - 1760px) / 2));
  }
  .jz-public-table-wrap { min-height: 425px; }
  .jz-public-table-wrap:has(.jz-public-empty:not([hidden])) {
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .jz-public-table-wrap:has(.jz-public-empty:not([hidden])) .jz-public-empty {
    align-self: center;
  }
  .jz-public-cards { display: none !important; }
  .jz-hero-mobile-cta { display: none !important; }
}

@media (min-width: 1680px) {
  .jz-nav {
    display: block;
    height: 130px;
    min-height: 130px;
    padding: 0;
    gap: 0;
  }
  .jz-nav-logo {
    position: absolute;
    left: calc(257 / 1920 * 100%);
    top: 24px;
  }
  .jz-nav-links {
    position: absolute;
    right: calc((1920 - 1278) / 1920 * 100%);
    left: auto;
    top: 55px;
    margin: 0;
  }
  .jz-nav-actions {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    gap: 0;
  }
  .jz-nav-actions .jz-btn { pointer-events: auto; }
  .jz-btn-ghost {
    position: absolute;
    left: calc(1312 / 1920 * 100%);
    top: 45px;
    width: 181px;
    min-width: 181px;
    max-width: 181px;
    padding: 0;
  }
  .jz-btn-cta {
    position: absolute;
    left: calc(1526.5 / 1920 * 100%);
    top: 44.5px;
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    padding: 0;
  }
  .jz-logo-img { width: 322px; height: 82px; }

  /* Row Figma: 3 cards + estrelas, sem wrap */
  .jz-how-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
  }
  .jz-how-plus,
  .jz-how-star {
    display: grid;
  }
  #screen-home .jz-how-card.home-how-step {
    width: 366px;
    max-width: 366px;
    flex: 0 0 366px;
    height: 138px;
    min-height: 138px;
    padding: 21px 22px !important;
  }
}

/* —— ≤1679: nav em flex (coords absolutas do Figma só cabem perto de 1920;
   abaixo de ~1620 ghost+CTA se sobrepõem com width fixa) —— */
@media (max-width: 1679px) {
  :root { --jz-gutter: 28px; }
  .jz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 88px;
    padding: 16px var(--jz-gutter);
    overflow: visible;
  }
  .jz-nav-logo { position: static; left: auto; top: auto; }
  .jz-nav-links {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    gap: 18px;
    margin-left: auto;
    margin-right: 16px;
  }
  .jz-nav-actions {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    pointer-events: auto;
    gap: 12px;
    flex: 0 0 auto;
  }
  .jz-btn-ghost,
  .jz-btn-cta {
    position: static;
    left: auto;
    top: auto;
    flex: 0 0 auto;
  }
  .jz-logo-img { width: 240px; height: auto; }
  .jz-btn-ghost {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 1rem;
  }
  .jz-btn-cta {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 1.1rem;
  }
  .jz-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 20px);
    align-items: stretch;
  }
  /* Estrelas são <li> no mesmo ol — no grid 3 cols viram células e quebram em 2+1 */
  .jz-how-plus,
  .jz-how-star {
    display: none;
  }
  #screen-home .jz-how-card.home-how-step {
    width: 100%;
    max-width: none;
    flex: none;
    height: auto;
    min-height: 158px;
    padding: 20px 16px !important;
    gap: 12px;
  }
  .jz-how-num { flex-basis: 32px; width: 32px; height: 32px; }
  .jz-game-list { gap: 28px; }
  .jz-hero-title { max-width: 900px; font-size: clamp(44px, 4.6vw, 58px); }
  .jz-public-table-wrap { min-height: 360px; }
  .jz-public-cards { display: none !important; }
}

/* —— 1024 tablet landscape —— */
@media (max-width: 1024px) {
  :root { --jz-gutter: 24px; }

  /* Bolinhas cortam/comprimem no mobile — remove */
  .jz-home-dots { display: none; }

  .jz-home-background {
    object-fit: cover;
    object-position: center top;
  }

  .jz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px var(--jz-gutter);
    position: relative;
    z-index: 60;
  }
  :root { --jz-mobile-nav-h: 72px; }
  .jz-nav-links { display: none; }
  .jz-nav-actions .jz-btn-ghost,
  .jz-nav-actions .jz-btn-cta { display: none; }
  .jz-nav-actions {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
    flex: 0 0 auto;
  }
  .jz-nav-burger {
    display: inline-block;
    /* relative (não static): contém as 3 barras do ícone */
    position: relative;
    transform: none;
    right: auto;
    top: auto;
    margin: 0;
  }
  .jz-logo-img { width: min(220px, 42vw); height: auto; }

  .jz-hero {
    text-align: center;
    padding: 28px 0 36px;
  }
  .jz-hero-title {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(40px, 5.2vw, 52px);
    line-height: 1.08;
  }
  .jz-hero-lead {
    max-width: 36rem;
    margin-inline: auto;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  }

  .jz-how, .jz-games, .jz-public {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .jz-how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  #screen-home .jz-how-card.home-how-step {
    min-height: 148px;
    padding: 18px 14px !important;
  }

  .jz-game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  #screen-home .jz-game-card .jz-game-card-inner { padding: 22px; }
  #screen-home .jz-game-card .game-card-title { font-size: 28px; }
  #screen-home .jz-game-card-head { gap: 12px; }
  #screen-home .jz-game-card-qse .jz-game-icon { width: 62px; height: auto; }
  #screen-home .jz-game-card-cao .jz-game-icon { width: 80px; height: auto; }

  .jz-public-table-wrap { display: block; min-height: 0; }
  .jz-public-cards { display: none !important; }
  .jz-public-filters {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .jz-public-filters > * { min-width: 0; }

  #screen-home .jz-about.home-about,
  #screen-home .home-about.jz-about {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    width: min(100% - (2 * var(--jz-gutter)), var(--jz-content)) !important;
    max-width: var(--jz-content) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    column-gap: 1.25rem;
  }
  #screen-home .jz-about-art { order: 0; width: 200px; justify-self: end; }

  .jz-footer {
    padding: 40px var(--jz-gutter);
    gap: 1.25rem;
  }
}

/* —— 768 tablet portrait —— */
@media (max-width: 768px) {
  :root { --jz-gutter: 20px; }

  .jz-nav { min-height: 68px; padding: 12px var(--jz-gutter); }
  :root { --jz-mobile-nav-h: 68px; }
  .jz-logo-img { width: min(200px, 52vw); max-height: 52px; }

  .jz-hero { padding: 22px 0 28px; }
  .jz-hero-title {
    max-width: 14ch;
    font-size: clamp(36px, 7vw, 48px);
  }
  .jz-hero-badge {
    max-width: 100%;
    font-size: 10px;
    padding-inline: 10px;
    box-sizing: border-box;
  }
  .jz-hero-lead { font-size: 16px; max-width: 34rem; }
  .jz-hero-mobile-cta { display: flex; }

  .jz-how, .jz-games, .jz-public { padding-top: 40px; padding-bottom: 40px; }
  .jz-how-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 14px;
  }
  #screen-home .jz-how-card.home-how-step {
    min-height: 116px;
    padding: 20px !important;
  }
  .jz-how-card h3 { font-size: 18px; }
  .jz-how-card p { font-size: 15px; }

  .jz-game-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    max-width: 540px;
    margin-inline: auto;
  }
  #screen-home .jz-game-card .jz-game-card-inner {
    min-height: 300px;
    padding: 22px;
  }

  .jz-public-filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .jz-filter-search { grid-column: 1 / -1; }
  .jz-public-filters > * { min-width: 0; max-width: 100%; }

  .jz-public-table-wrap { display: none !important; }
  .jz-public-cards {
    display: grid !important;
    gap: 0.85rem;
    /* plate único no mobile — mesma linguagem da tabela desktop */
    box-sizing: border-box;
    border: 3px solid var(--jz-border-purple);
    border-radius: 16px;
    background: var(--jz-table);
    box-shadow: 0 10px 0 var(--jz-border-purple);
    padding: 12px 12px 14px;
    margin-bottom: 10px;
  }

  .jz-public-card {
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #45004a 0%, #330136 100%);
    padding: 0.95rem 1rem;
  }

  .jz-public-card:nth-child(even) {
    background: #330136;
  }

  .jz-public-card-empty {
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 160px;
    padding: 2rem 1rem;
  }

  .jz-filter input,
  .jz-filter select,
  .jz-filter-trigger,
  .jz-filter-menu {
    /* filtros mais legíveis sobre o glow do fundo */
    background: #330136;
    border-color: var(--jz-border-purple);
  }

  .jz-filter input,
  .jz-filter select,
  .jz-filter-trigger {
    box-shadow: 0 4px 0 var(--jz-border-purple);
  }

  .jz-filter.is-open .jz-filter-trigger {
    box-shadow: none;
  }

  .jz-filter-menu {
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.5),
      0 4px 0 var(--jz-border-purple);
  }

  #screen-home .jz-about.home-about,
  #screen-home .home-about.jz-about {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 44px;
    padding-bottom: 36px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    row-gap: 1.25rem;
  }
  #screen-home .jz-about-art {
    order: 1;
    width: min(240px, 70vw);
    justify-self: center;
  }
  .jz-about-copy {
    text-align: left;
  }
  .jz-about-copy h2 {
    justify-content: flex-start;
    font-size: 30px;
  }
  .jz-about-title-mascot { width: 44px; height: auto; }

  .jz-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--jz-gutter) 40px;
    gap: 20px;
  }
  .jz-footer-links { gap: 14px 18px; }
}

/* —— 430 mobile large —— */
@media (max-width: 430px) {
  :root { --jz-gutter: 18px; }

  .jz-nav { min-height: 64px; padding: 12px var(--jz-gutter); }
  .jz-logo-img { width: min(180px, 58vw); }

  .jz-hero { padding: 18px 0 24px; }
  .jz-hero-title {
    max-width: 12ch;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.06;
  }
  .jz-hero-lead { font-size: 15px; }
  .jz-hero-mobile-cta .jz-btn-cta {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
  }

  .jz-how, .jz-games, .jz-public,
  #screen-home .jz-about.home-about {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .jz-section-head h2 { font-size: clamp(28px, 7vw, 34px); }

  .jz-public-filters { grid-template-columns: 1fr; }
  .jz-filter-search { grid-column: auto; }

  .jz-public-card { padding: 0.95rem 1rem; }
  .jz-public-card .jz-public-enter {
    min-width: 84px;
    min-height: 44px;
  }
}

/* —— 390 mobile principal —— */
@media (max-width: 390px) {
  :root { --jz-gutter: 16px; }

  .jz-nav { padding: 10px var(--jz-gutter); }
  :root { --jz-mobile-nav-h: 64px; }
  .jz-nav-burger { width: 44px; height: 44px; }

  .jz-hero-title { font-size: clamp(32px, 8.6vw, 40px); }
  .jz-hero-badge { font-size: 9px; letter-spacing: 0.02em; }
  .jz-hero-lead { font-size: 15px; line-height: 1.45; }

  .jz-how, .jz-games, .jz-public { padding-top: 32px; padding-bottom: 32px; }
  #screen-home .jz-how-card.home-how-step { min-height: 108px; }
  #screen-home .jz-game-card .jz-game-card-inner { min-height: 280px; padding: 20px; }
  #screen-home .jz-game-card .game-card-title { font-size: 26px; }

  .jz-about-copy h2 { font-size: 28px; }
  .jz-about-copy p { font-size: 0.98rem; }
  #screen-home .jz-about-art { width: min(200px, 64vw); }

  .jz-footer { padding: 28px var(--jz-gutter) 36px; gap: 16px; }
  .jz-footer-links { gap: 12px 16px; }
  .jz-footer-links a,
  .jz-footer-links .linkish { font-size: 13px; }
}

/* —— 360 mobile small —— */
@media (max-width: 360px) {
  :root { --jz-gutter: 14px; }

  .jz-logo-img { width: min(168px, 56vw); }
  .jz-hero { padding: 14px 0 20px; }
  .jz-hero-title { font-size: clamp(30px, 8.4vw, 36px); }
  .jz-hero-lead { font-size: 14px; }

  .jz-how, .jz-games, .jz-public { padding-top: 28px; padding-bottom: 28px; }
  .jz-game-list { gap: 16px; }
  #screen-home .jz-game-card .jz-game-card-inner { min-height: 260px; padding: 18px; }

  .jz-public-card-row { gap: 0.65rem; }
  .jz-public-card-room { font-size: 1rem; }
  .jz-public-card .jz-public-enter {
    min-width: 78px;
    padding: 0 0.75rem;
  }

  .jz-footer-links { gap: 10px 12px; }
}

/* Keep UI from forcing horizontal scroll; bg SVG may still bleed visually */
@media (max-width: 1200px) {
  .jz-nav,
  .jz-hero,
  .jz-how,
  .jz-games,
  .jz-public,
  .jz-about,
  .jz-footer {
    max-width: 100%;
    box-sizing: border-box;
  }

  .jz-mobile-menu-card {
    max-width: none;
  }
}

/* —— Modal Criar Sala (Figma) —— */
.jz-create-overlay.home-overlay {
  z-index: 90;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  place-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.jz-create-overlay img,
.jz-create-overlay svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.jz-create-overlay input,
.jz-create-overlay textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.jz-create-overlay .home-overlay-backdrop {
  background: rgba(8, 3, 18, 0.72);
}

.jz-create-modal.home-sheet {
  width: min(1167px, 100%);
  max-height: min(92vh, 900px);
  margin: auto;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 3px solid var(--jz-border-purple);
  background: #330136 !important;
  box-shadow: 0 10px 0 var(--jz-border-purple);
  color: #fff;
  overflow: auto;
  animation: jz-create-in 0.22s ease both;
}

@keyframes jz-create-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.jz-create-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.jz-create-close:hover,
.jz-create-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.jz-create-head {
  text-align: center;
  margin: 0 2.5rem 1.1rem;
}

.jz-create-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--jz-font-caps);
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}

.jz-create-sub {
  margin: 0;
  font-family: var(--jz-font-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.35;
  color: var(--jz-mute);
}

.jz-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jz-create-panel {
  box-sizing: border-box;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #45004a 0%, #330136 100%);
}

.jz-create-games {
  background: linear-gradient(180deg, #440049 0%, #340137 100%);
}

.jz-create-panel h3 {
  margin: 0 0 0.25rem;
  font-family: var(--jz-font-ui);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: #fff;
}

.jz-create-helper {
  margin: 0 0 0.85rem;
  font-family: var(--jz-font-ui);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--jz-mute);
}

.jz-create-field {
  display: block;
}

.jz-create-field input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 1.15rem;
  border-radius: 20px;
  border: 2px solid var(--jz-border-purple);
  background: #330136;
  color: #fff;
  font-family: var(--jz-font-ui);
  font-size: 1rem;
}

.jz-create-field input::placeholder {
  color: var(--jz-mute);
}

.jz-create-field input:focus-visible {
  outline: 2px solid var(--jz-badge-yellow);
  outline-offset: 2px;
}

.jz-create-modal [data-create-field="assignMode"] {
  padding-left: 0.85rem;
  border-left: 3px solid #ffd24a;
}

.jz-create-mode-hint {
  margin: 0.45rem 0 0;
  color: var(--jz-mute);
  font: 600 0.88rem/1.35 var(--jz-font-ui);
}

.jz-create-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 12px;
  padding-right: 0;
}

.jz-create-game-slot {
  position: relative;
  min-width: 0;
}

/* Placa branca só abaixo do card (sem offset lateral) */
.jz-create-game-slot:has(.is-selected)::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #fff;
  pointer-events: none;
  z-index: 0;
}

.jz-create-game-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 260px;
  margin: 0;
  padding: 18px 16px 12px;
  box-sizing: border-box;
  border: 4px solid #fff;
  border-radius: 28px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease;
}

.jz-create-game-qse { background: #ff5e35; }
.jz-create-game-cao { background: #330136; }
.jz-create-game-party { background: #ff3366; }

.jz-create-game-card:hover {
  filter: brightness(1.04);
}

.jz-create-game-card:focus,
.jz-create-game-card:focus-visible,
.jz-create-game-card:active {
  outline: none;
  box-shadow: none;
}

/* Radio: anel branco; selecionado = cor do card + bolinha branca no centro */
.jz-create-game-radio {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.jz-create-game-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: transparent;
}

.jz-create-game-qse.is-selected .jz-create-game-radio { background: #ff5e35; }
.jz-create-game-cao.is-selected .jz-create-game-radio { background: #330136; }
.jz-create-game-party.is-selected .jz-create-game-radio { background: #ff3366; }

.jz-create-game-card.is-selected .jz-create-game-radio::after {
  background: #fff;
}

.jz-create-game-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 92%;
  padding-right: 2rem;
}

.jz-create-game-title {
  font-family: var(--jz-font-caps);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.05;
  font-weight: 400;
}

.jz-create-game-desc {
  font-family: var(--jz-font-ui);
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  line-height: 1.3;
  font-weight: 500;
}

.jz-create-game-art {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: min(58%, 170px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.jz-create-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 51px;
  margin: 0;
  padding: 0 1.25rem;
  box-sizing: border-box;
  border-radius: 26px;
  border: 2px solid #f9af96;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  color: #fff;
  font-family: var(--jz-font-caps);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease;
  will-change: transform;
}

.jz-create-overlay:not([hidden]) .jz-create-cta {
  animation: jz-btn-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s backwards;
}

.jz-create-cta::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(255, 255, 255, 0.1) 52%,
    transparent 65%
  );
  transform: translateX(-120%) rotate(8deg);
  pointer-events: none;
  animation: jz-cta-shine 3.6s ease-in-out 0.8s infinite;
}

.jz-create-cta > * {
  position: relative;
}

.jz-create-cta:hover,
.jz-create-cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
  outline: none;
}

.jz-create-cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.55);
}

.jz-create-cta:active {
  transform: translateY(2px) scale(0.98);
  filter: brightness(0.98);
  transition-duration: 0.08s;
}

.jz-create-cta-plus {
  font-size: 1.35em;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.jz-create-cta:hover .jz-create-cta-plus,
.jz-create-cta:focus-visible .jz-create-cta-plus {
  transform: rotate(90deg) scale(1.08);
}

@media (max-width: 1024px) {
  .jz-create-game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 10px;
    padding-right: 0;
  }

  .jz-create-game-slot:has(.is-selected)::before {
    top: 6px;
    left: 0;
  }

  .jz-create-game-card {
    min-height: 168px;
    flex-direction: row;
    align-items: flex-start;
    padding-right: 42%;
  }

  .jz-create-game-art {
    width: min(42%, 150px);
    right: 4px;
    bottom: 0;
  }
}

@media (max-width: 768px) {
  .jz-create-overlay.home-overlay {
    display: grid;
    align-items: end;
    justify-items: stretch;
    place-items: end stretch;
    padding: 0;
    overflow: hidden;
  }

  .jz-create-modal.home-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: end;
    max-height: min(94dvh, 94vh);
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -6px 0 var(--jz-border-purple);
    padding: 20px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    animation: jz-create-in-sheet 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .jz-create-head {
    margin: 0 2rem 0.85rem 0;
    text-align: left;
  }

  .jz-create-panel {
    padding: 14px;
  }

  .jz-create-game-card {
    min-height: 150px;
    border-width: 3px;
    border-radius: 22px;
  }
}

@keyframes jz-create-in-sheet {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jz-create-modal.home-sheet,
  .jz-create-game-card,
  .jz-btn-ghost,
  .jz-btn-cta,
  .jz-create-cta,
  .jz-mobile-menu-enter,
  .jz-mobile-menu-create {
    animation: none !important;
    transition: none !important;
  }

  .jz-btn-cta::before,
  .jz-create-cta::before {
    animation: none !important;
    content: none;
  }

  .jz-btn-ghost:hover,
  .jz-btn-ghost:focus-visible,
  .jz-btn-cta:hover,
  .jz-btn-cta:focus-visible,
  .jz-btn-ghost:active,
  .jz-btn-cta:active,
  .jz-create-cta:hover,
  .jz-create-cta:focus-visible,
  .jz-create-cta:active {
    transform: none;
  }

  .jz-create-cta:hover .jz-create-cta-plus,
  .jz-create-cta:focus-visible .jz-create-cta-plus {
    transform: none;
  }
}

/* —— Modal Entrar com código (mesmo padrão do Criar Sala) —— */
.jz-join-modal.home-sheet {
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  padding: 28px 22px 22px;
}

.jz-join-modal .jz-create-form {
  gap: 14px;
}

.jz-join-modal .code-input {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-align: center;
}

.jz-join-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.jz-pw-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  border: 2px solid var(--jz-border-purple);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.jz-pw-toggle > svg {
  grid-area: 1 / 1;
}

.jz-pw-eye-hide {
  opacity: 0;
  transform: scale(0.7);
}

.jz-pw-toggle[aria-pressed="true"] .jz-pw-eye-show {
  opacity: 0;
  transform: scale(0.7);
}

.jz-pw-toggle[aria-pressed="true"] .jz-pw-eye-hide {
  opacity: 1;
  transform: scale(1);
}

.jz-pw-toggle:hover,
.jz-pw-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.jz-join-modal .jz-create-cta {
  margin-top: 4px;
}

/* —— Modal Convidar amigo (mesmo padrão Criar/Entrar) —— */
.jz-invite-overlay.home-overlay {
  z-index: 95;
}

.jz-invite-modal.home-sheet {
  width: min(420px, 100%);
  max-height: min(92vh, 520px);
  padding: 28px 22px 22px;
}

.jz-invite-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.jz-invite-modal .jz-create-cta {
  width: 100%;
  margin: 0;
}

.jz-invite-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: 26px;
  border: 2px solid #f9af96;
  background: transparent;
  color: #fff;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.jz-invite-copy:hover,
.jz-invite-copy:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  filter: brightness(1.05);
  outline: none;
}

.jz-invite-copy:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.45);
}

.jz-invite-copy:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .jz-join-overlay.home-overlay {
    padding: 0;
    place-items: end center;
  }

  .jz-join-modal.home-sheet {
    width: 100%;
    max-height: min(94vh, 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    box-shadow: 0 -6px 0 var(--jz-border-purple);
  }

  .jz-join-password-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jz-invite-overlay.home-overlay {
    padding: 0;
    place-items: end center;
  }

  .jz-invite-modal.home-sheet {
    width: 100%;
    max-height: min(88dvh, 560px);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    box-shadow: 0 -6px 0 var(--jz-border-purple);
  }
}
