/* ============================================================
   jda-base.css — Jogo da Amazônia
   Estilos globais: reset WP, componentes, paleta MINT, fullscreen.
   Carregado PRIMEIRO. Não contém breakpoints de largura.
   ============================================================ */

/* ── Reset de Tema WordPress ─────────────────────────────────
   Aplicado via classe .jda-fullscreen no <body> (adicionada
   pelo plugin quando [jogo_amazonia] está presente na página).
   Oculta header e footer do tema para garantir imersão total. */

body.jda-fullscreen .site-header,
body.jda-fullscreen header.site-header,
body.jda-fullscreen #masthead,
body.jda-fullscreen #main-header,
body.jda-fullscreen .header-wrapper,
body.jda-fullscreen .wp-block-template-part[class*="header"],
body.jda-fullscreen .wp-site-blocks > header,
body.jda-fullscreen .site-footer,
body.jda-fullscreen footer.site-footer,
body.jda-fullscreen #colophon,
body.jda-fullscreen .wp-block-template-part[class*="footer"],
body.jda-fullscreen .wp-site-blocks > footer,
body.jda-fullscreen #wpadminbar {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

html,
body.jda-fullscreen {
  background: none !important;
  background-color: transparent !important;
}

body.jda-fullscreen {
  margin-top: 0 !important;
  padding-top: 0 !important;
  overflow: hidden !important;
}

body.jda-fullscreen .entry-title,
body.jda-fullscreen .post-title,
body.jda-fullscreen .page-title,
body.jda-fullscreen h1.wp-block-post-title {
  display: none !important;
}

body.jda-fullscreen #page,
body.jda-fullscreen .wp-site-blocks,
body.jda-fullscreen main,
body.jda-fullscreen main.wp-block-group,
body.jda-fullscreen .site-main,
body.jda-fullscreen .entry-content,
body.jda-fullscreen .wp-block-post-content,
body.jda-fullscreen .wp-block-group,
body.jda-fullscreen .is-layout-constrained,
body.jda-fullscreen .is-layout-flow,
body.jda-fullscreen article,
body.jda-fullscreen .hentry {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  box-shadow: none !important;
}

/* Jogo ativo: wrapper transparente — #bg (position:fixed) aparece atrás dos cards */
body.jda-fullscreen #jda-game-engine {
  background: transparent !important;
}

/* ── Custom Property para Neon Travel ────────────────────── */

@property --neon-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}


/* ── Reset & Base ─────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --neon:          hsl(150, 80%, 60%);
  --neon-glow:     hsla(150, 80%, 60%, 0.55);
  --neon-halo:     hsla(150, 80%, 60%, 0.15);
  --neon-solid:    hsla(150, 80%, 60%, 0.65);

  --glass-bg:      rgba(5, 18, 5, 0.28);
  --glass-blur:    12px;

  --text-primary:   rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-muted:     rgba(255, 255, 255, 0.42);

  --btn-bg:           rgba(255, 255, 255, 0.12);
  --btn-border:       rgba(255, 255, 255, 0.28);
  --btn-hover-bg:     rgba(255, 255, 255, 0.22);
  --btn-hover-border: rgba(255, 255, 255, 0.52);
  --btn-active-bg:    rgba(255, 255, 255, 0.30);

  --card-padding: clamp(1.25rem, 4vw, 2rem);
  --gap-md: .75rem;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;

  --credito-bg:    rgba(0, 0, 0, 0.7);
  --credito-cor:   #ffffff;
  --credito-fonte: 11px;
}

html {
  font-family: var(--font-sans);
  background: transparent !important;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow: hidden;
  height: 100dvh;
  width: 100%;
  background: #060f06;
}


/* ── Main Wrapper ─────────────────────────────────────────── */

#jda-game-engine {
  width: 100%;
  position: relative;
  top: 0 !important;
  margin-top: 0 !important;
  background: #060f06;  /* fundo escuro — nunca deixar branco do WP aparecer */
}


/* ── Stories Bar ──────────────────────────────────────────── */

#stories-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: max(env(safe-area-inset-top, 0px), 10px);
  padding-bottom: 10px;
  pointer-events: none;
}

.story-seg {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.22);
  transition: background-color 0.4s ease;
}

.story-seg.seg-done    { background-color: rgba(255, 255, 255, 0.90); }
.story-seg.seg-active  { background-color: rgba(255, 255, 255, 0.60); }
.story-seg.seg-upcoming { background-color: rgba(255, 255, 255, 0.22); }
.story-seg.seg-locked  { background-color: rgba(255, 255, 255, 0.07); }


/* ── Fundo imersivo ───────────────────────────────────────── */

#bg {
  position: fixed !important;
  inset: 0;
  z-index: -1 !important;
  display: block !important;
  background-image: url('img/fundo-mvp.jpg');
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-color: #000000;
  transform: scale(1.06);
  transform-origin: center;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#bg.bg-reveal {
  filter: none !important;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: none !important;
  pointer-events: none;
}

/* Crédito fotográfico — canto inferior esquerdo */

body.jda-fullscreen #bg .foto-credito {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  font-size: var(--credito-fonte);
  font-style: italic;
  line-height: 1.3;
  color: var(--credito-cor);
  background-color: var(--credito-bg);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}


/* ── Splash Phases ────────────────────────────────────────── */

.splash-phase {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
  background: transparent !important;
  box-shadow: none !important;
}

.splash-phase.phase-active {
  opacity: 1;
  pointer-events: auto;
}

.splash-logo-wrap {
  display: block;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.logo-ar-placeholder {
  display: block;
  width: 100%;
}

.logo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

.logo-fallback {
  display: none;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
}

.splash-apresenta {
  display: block;
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(2rem, 8.5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.60);
}

.splash-p2-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.splash-header { text-align: center; }

.splash-titulo {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow:
    0 0 60px rgba(74, 222, 128, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.65);
}

.splash-titulo-sm {
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
}

.nivel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-nivel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.25rem 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition:
    background .22s ease, border-color .22s ease,
    transform .16s ease, box-shadow .22s ease;
}

.btn-nivel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.40);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 20px var(--neon-halo),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-nivel:active { transform: translateY(0); }

.nivel-foto-slot {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px dashed rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nivel-icon {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.30));
}

.nivel-label {
  font-size: .90rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nivel-desc {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.splash-p3-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.personagem-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.btn-personagem {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .95rem 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(101, 65, 28, 0.38) 0%,
    rgba(68, 42, 14, 0.30) 100%
  );
  border: 1px solid rgba(180, 130, 75, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 220, 160, 0.12);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .18s ease, transform .14s ease, box-shadow .18s ease;
}

.btn-personagem:hover {
  background: linear-gradient(
    145deg,
    rgba(101, 65, 28, 0.58) 0%,
    rgba(68, 42, 14, 0.48) 100%
  );
  border-color: rgba(200, 155, 90, 0.65);
  transform: translate3d(3px, 0, 0);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(150, 100, 40, 0.18),
    inset 0 1px 0 rgba(255, 220, 160, 0.18);
}

.btn-personagem:active { transform: translate3d(0, 0, 0); }

.personagem-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.30));
}

.personagem-info {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.personagem-nome {
  font-size: .90rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.personagem-desc {
  font-size: .88rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: .02em;
}

.btn-regras-jogo {
  padding: .62rem 1.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .20s ease, color .20s ease, background .20s ease;
}

.btn-regras-jogo:hover {
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-personagem="presidente"] .personagem-icon {
  filter: none; /* imagem presidente.png — sem grayscale */
}

[data-personagem="indigena"] .personagem-icon {
  filter: sepia(1) hue-rotate(330deg) saturate(3) brightness(0.70);
}


/* ── Modais ───────────────────────────────────────────────── */

#regras-modal {
  z-index: 100001 !important;
}

body.jda-fullscreen #regras-modal .modal-content {
  background-color: rgba(247, 255, 247, 0.95) !important;
  backdrop-filter: blur(15px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
  border: 1px solid rgba(0, 255, 150, 0.4) !important;
  box-shadow: 0 0 30px rgba(0, 160, 100, 0.3) !important;
  color: #1B480C !important;
}
body.jda-fullscreen #regras-modal .modal-content * {
  color: #1B480C !important;
  text-shadow: none !important;
}
body.jda-fullscreen #regras-modal .modal-content .regras-titulo {
  color: #0a1f10 !important;
}
body.jda-fullscreen #regras-modal .modal-content .regras-corpo,
body.jda-fullscreen #regras-modal .modal-content .regras-corpo p,
body.jda-fullscreen #regras-modal .modal-content .regras-corpo li {
  color: #163824 !important;
}
body.jda-fullscreen #regras-modal .modal-content .regras-nota {
  color: #FFFFFF !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}

body.jda-fullscreen #regras-modal .modal-content #btn-entendi,
#btn-entendi {
  color: #FFFFFF !important;
  background-color: #2A5C1A !important;
  font-weight: bold !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
  box-sizing: border-box;
  padding: 2.75rem 1.75rem 1.5rem;
  backdrop-filter: blur(10px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: .92rem;
  line-height: 1.72;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.40);
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .875rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem;
  transition: color .18s;
}

.modal-close:hover { color: var(--text-primary); }

.logo-img-mini {
  width: 140px !important;
  height: auto !important;
  margin-bottom: 2rem;
  display: block;
}

.logo-fallback-mini {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  align-items: center;
  justify-content: center;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.45);
}

.modal-link {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 8px var(--neon-glow);
  transition: opacity .2s;
}

.modal-link:hover { opacity: .75; }

.regras-titulo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-top: .25rem;
}

.regras-corpo {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  font-size: .88rem;
  line-height: 1.72;
}

.regras-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: .25rem;
}

.regras-lista li::before {
  content: '→ ';
  color: var(--neon);
  font-weight: 700;
}

.regras-nota {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: #2a5c36;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: .75rem;
}

.btn-entendi {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  background: #1E4620;
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .14s;
}
.btn-entendi:hover { background: #2A5C1A; transform: translateY(-1px); }
.btn-entendi:active { transform: translateY(0); }

#regras-modal.gate-mode .regras-close { display: none !important; }
#regras-modal.gate-mode .modal-backdrop { pointer-events: none !important; }


/* ── Scroll Hint ──────────────────────────────────────────── */

#scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 6svh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: .55rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}

#scroll-hint.hint-visible { opacity: 1; }

.hint-texto {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hint-dedo {
  height: 1.35rem;
  width: auto;
  display: block;
  flex-shrink: 0;
  animation: finger-scroll 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 5px var(--neon)) brightness(1.1);
}

@keyframes finger-scroll {
  0%, 100% { transform: translateY(-3px); opacity: .65; }
  50%       { transform: translateY(3px);  opacity: 1;   }
}


/* ── Game Container ───────────────────────────────────────── */

#game-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

#game-container::-webkit-scrollbar { display: none; }
#game-container.game-hidden { display: none; }


/* ── Slide de dilema ──────────────────────────────────────── */

.dilema-slide {
  height: 100dvh;
  min-height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 1.5rem);
  position: relative;
  background: transparent !important;
}


/* ── Glass Card — Neon Contínuo ──────────────────────────── */

.glass-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.30) !important;
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.35), 0 20px 60px rgba(0, 0, 0, 0.50) !important;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity   0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card.card-revealing {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

body.jda-fullscreen .glass-card {
  background: rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(74, 222, 128, 0.55) !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.40), 0 20px 60px rgba(0, 0, 0, 0.30) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}
body.jda-fullscreen .dilema-situacao {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.70) !important;
}
body.jda-fullscreen .btn-opcao {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
body.jda-fullscreen .opcao-texto {
  color: rgba(255, 255, 255, 0.92) !important;
}

.glass-card > * { flex-shrink: 0; }


/* ── Neon Travel ─────────────────────────────────────────── */

@keyframes neon-travel {
  from { --neon-angle: 0deg; }
  to   { --neon-angle: 360deg; }
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  z-index: 4;
  background: conic-gradient(
    from var(--neon-angle, 0deg),
    transparent 0%,
    transparent 65%,
    hsla(150, 80%, 60%, 0.15) 75%,
    hsl(150, 90%, 78%)        88%,
    hsla(150, 80%, 60%, 0.15) 95%,
    transparent 100%
  );
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.glass-card.neon-traveling::after {
  opacity: 1;
  animation: neon-travel 3.5s linear infinite;
}


/* ── Header do dilema ─────────────────────────────────────── */

.dilema-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .875rem var(--card-padding) .5rem;
  flex-shrink: 0;
}

.btn-info {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  background-color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  color: #1B480C;
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  letter-spacing: 0;
  padding-top: 1px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,0.22);
  transition: background-color .2s, transform .2s;
  z-index: 2;
}

.btn-info:hover,
.btn-info.active {
  background-color: #e8f5e9;
  transform: scale(1.10);
}


/* ── Dilema — corpo e texto ────────────────────────────────── */

.dilema-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .5rem var(--card-padding) 1rem;
}
.dilema-body::-webkit-scrollbar { display: none; }

.dilema-situacao {
  font-size: clamp(.9rem, 3.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: .03em;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.70),
    0 2px 4px rgba(0, 0, 0, 0.50);
}


/* ── Opções de resposta ────────────────────────────────────── */

.dilema-opcoes {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: clamp(.35rem, 1.5vw, .75rem);
  padding: 0 var(--card-padding) var(--card-padding);
}

.btn-opcao {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: clamp(.5rem, 1.8vw, .75rem) 1.25rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  color: #163824;
  font-family: var(--font-sans);
  font-size: clamp(.88rem, 2.8vw, 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition:
    background   .18s ease,
    border-color .18s ease,
    box-shadow   .18s ease,
    transform    .14s ease;
}

.btn-opcao:hover:not(:disabled):not(.selecionado) {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--neon-solid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 0 8px var(--neon-halo);
}

.btn-opcao:active:not(:disabled) { transform: translateY(0); }
.btn-opcao:disabled { cursor: default; opacity: .48; }

.opcao-letra { display: none; }

.opcao-texto {
  flex: 1;
  text-shadow: none;
}


/* ── Toast de Consequência ────────────────────────────────── */

.consequencia-toast {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.30) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.consequencia-toast.visivel {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.consequencia-texto {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.70;
  color: #0d2c18;
  text-align: center;
  letter-spacing: .02em;
  text-shadow: none;
}

.consequencia-toast .veredito-tag.impacto-pos {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.50);
  background: rgba(46, 204, 113, 0.10);
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.45);
}

.consequencia-toast .veredito-tag.impacto-neg {
  color: #c32843 !important;
  border-color: rgba(195, 40, 67, 0.55);
  background: rgba(195, 40, 67, 0.10);
  text-shadow: 0 0 8px rgba(195, 40, 67, 0.40);
  box-shadow: 0 0 8px rgba(195, 40, 67, 0.20);
}

.consequencia-toast .veredito-tag.impacto-neutro {
  color: #595959 !important;
  border-color: rgba(89, 89, 89, 0.30);
  background: rgba(89, 89, 89, 0.08);
  opacity: 1;
}


/* ── Placar Ético ─────────────────────────────────────────── */

.veredito-impactos {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.veredito-tag {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .72rem;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: opacity 0.3s ease;
}

.veredito-tag.impacto-pos {
  color: var(--neon);
  border-color: hsla(150, 80%, 60%, 0.40);
  background: rgba(74, 222, 128, 0.10);
  text-shadow: 0 0 8px var(--neon-glow);
}

.veredito-tag.impacto-neg {
  color: #c32843 !important;
  border-color: rgba(195, 40, 67, 0.55);
  background: rgba(195, 40, 67, 0.12);
  text-shadow: 0 0 10px rgba(195, 40, 67, 0.50);
  box-shadow: 0 0 8px rgba(195, 40, 67, 0.25);
}

.veredito-tag.impacto-neutro {
  color: #595959 !important;
  border-color: rgba(89, 89, 89, 0.30);
  background: rgba(255, 255, 255, 0.04);
}

.info-contextual { display: none; }


/* ── Acessibilidade ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.btn-opcao:focus-visible,
.btn-info:focus-visible,
.btn-nivel:focus-visible,
.btn-personagem:focus-visible,
.btn-regras-jogo:focus-visible,
.btn-compartilhar:focus-visible,
.btn-jogar-novamente:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}


/* ── Tela de Veredito Final ──────────────────────────────── */

.veredito-card {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid var(--neon-solid);
  box-shadow:
    0 0 12px var(--neon-glow),
    0 0 30px var(--neon-halo),
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.veredito-card::-webkit-scrollbar { display: none; }

.veredito-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: calc(var(--card-padding) * 0.75) var(--card-padding) calc(var(--card-padding) * 0.85);
  text-align: center;
}

.veredito-topo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.veredito-icone {
  font-size: 1.8rem;
  line-height: 1;
  filter: none;
}

.veredito-titulo {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #0a1f10;
  text-transform: uppercase;
  text-shadow: none;
}

.veredito-texto {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1c1c1c;
  text-align: left;
  letter-spacing: .01em;
  text-shadow: none;
  padding: 0;
  margin: 0;
}

.veredito-eixos-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  transform: scale(0.85) !important;
  transform-origin: top center !important;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow-x: visible !important;
  box-sizing: border-box !important;
  word-wrap: break-word;
  font-size: 0.85rem;
}

.veredito-radar-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.veredito-subtitulo {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(22, 56, 36, 0.55);
  text-align: center;
  opacity: .80;
}

.veredito-eixos {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  width: 100%;
}

.veredito-eixo-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.veredito-eixo-label {
  font-size: .60rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 68px;
  flex-shrink: 0;
  text-align: right;
}

.veredito-eixo-bar {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible;
}

.veredito-eixo-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-50%);
}

.veredito-eixo-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  transition: width .9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.veredito-eixo-fill.fill-pos {
  left: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon-glow);
}

.veredito-eixo-fill.fill-neg {
  right: 50%;
  background: #c32843;
  box-shadow: 0 0 6px rgba(195, 40, 67, 0.60);
}

.veredito-eixo-status {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-shrink: 0;
  text-align: left;
  min-width: 68px;
}

.veredito-eixo-status.status-pos  { color: var(--neon); }
.veredito-eixo-status.status-neg  { color: #ff9f43; }
.veredito-eixo-status.status-zero { color: var(--text-muted); }

.veredito-acoes {
  display: flex;
  flex-direction: row;
  gap: .5rem;
  width: 100%;
  padding-top: .25rem;
}

.btn-compartilhar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 1;
  padding: .75rem .8rem;
  background: rgba(74, 222, 128, 0.10);
  border: 1.5px solid var(--neon-solid);
  border-radius: 14px;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    0 0 18px var(--neon-halo),
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--neon);
  font-family: var(--font-sans);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s ease, box-shadow .22s ease, transform .14s ease;
}

.btn-compartilhar:hover {
  background: rgba(74, 222, 128, 0.20);
  box-shadow:
    0 0 28px var(--neon-glow),
    0 12px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-compartilhar:active { transform: translateY(0); }

.btn-jogar-novamente {
  flex: 1;
  padding: .75rem .8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .20s ease, color .20s ease, background .20s ease;
}

.btn-jogar-novamente:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}


/* ── Telas pequenas de altura (≤680px): compactação ───────── */

@media (max-height: 680px) {
  :root { --card-padding: .85rem; }
  .dilema-situacao { font-size: clamp(.8rem, 3vw, 1rem); }
  .btn-opcao       { min-height: 42px; padding: .45rem 1rem; font-size: .88rem; }
  .dilema-opcoes   { gap: .32rem; }
  .dilema-header   { padding-top: .55rem; padding-bottom: .3rem; }
}


/* ════════════════════════════════════════════════════════════
   PALETA MINT — overrides globais (sem breakpoint de largura)
   Vence via !important. Mobile recebe overrides adicionais
   em jda-mobile.css; desktop em jda-desktop.css.
   ════════════════════════════════════════════════════════════ */

/* Modal: vidro branco em todos os tamanhos */
.modal-content {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.20) !important;
}

/* Slides sempre transparentes */
.dilema-slide {
  background: transparent !important;
}

/* Toast de consequência */
.consequencia-toast {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  color: #2A5C1A !important;
  border-color: rgba(27, 72, 12, 0.14) !important;
}

/* Textos de modal e toast */
.regras-titulo,
.regras-corpo,
#modal-text,
.modal-text,
.consequencia-texto,
.resposta-impacto,
.toast-title,
.toast-message,
.modal-close {
  color: #2A5C1A !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Letra de opção sempre oculta */
.opcao-letra {
  display: none !important;
}

/* Botão de contexto (ℹ) */
.btn-info {
  position: absolute !important;
  bottom: 0.5rem !important;
  right: 0.75rem !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #FFFFFF !important;
  color: #1B480C !important;
  border: none !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-family: Georgia, 'Times New Roman', serif !important;
}
.btn-info:hover,
.btn-info.active {
  background-color: #e8f5e9 !important;
  color: #1B480C !important;
}

/* Navegação do toast */
.toast-nav-hint {
  color: rgba(27, 72, 12, 0.50) !important;
}

/* Hierarquia MINT no veredito */
.veredito-titulo    { color: #1B480C !important; text-shadow: none !important; }
.veredito-texto     { color: #2A5C1A !important; text-shadow: none !important; }
.veredito-subtitulo { color: rgba(27, 72, 12, 0.55) !important; opacity: 1 !important; }

/* Eixos do placar ético */
.veredito-eixo-label {
  color: #2A5C1A !important;
}
.veredito-eixo-bar {
  flex: 1 !important;
  max-width: calc(100% - 160px) !important;
  background: rgba(27, 72, 12, 0.10) !important;
  position: relative !important;
  overflow: hidden !important;
}
.veredito-eixo-bar::after {
  background: rgba(27, 72, 12, 0.22) !important;
}
.veredito-eixo-fill.fill-pos {
  background: #2A5C1A !important;
  box-shadow: none !important;
}
.veredito-eixo-fill.fill-neg {
  background: #c32843 !important;
  box-shadow: none !important;
}
.veredito-eixo-status.status-pos  { color: #1B480C !important; }
.veredito-eixo-status.status-neg  { color: #c32843 !important; }
.veredito-eixo-status.status-zero { color: rgba(27, 72, 12, 0.50) !important; }

/* Botão Jogar Novamente no veredito */
.veredito-card .btn-jogar-novamente {
  background: #1B480C !important;
  color: #F7FFF7 !important;
  border-color: #1B480C !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 4px 14px rgba(27, 72, 12, 0.32) !important;
}
.veredito-card .btn-jogar-novamente:hover {
  background: #2A5C1A !important;
  color: #F7FFF7 !important;
  border-color: #2A5C1A !important;
}

/* Rodapé do modal */
.modal-footer-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* "Não existe resposta certa" */
.regras-nota {
  color: rgba(255, 255, 255, 0.80) !important;
  border-top-color: rgba(255, 255, 255, 0.20) !important;
}

/* Toasts neutro e negativo */
.consequencia-toast.toast-neutro .consequencia-texto {
  color: #595959 !important;
}
.consequencia-toast.toast-negativo .consequencia-texto {
  color: #c32843 !important;
}

/* Instrução de navegação */
.toast-nav-hint {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #98AC72;
  margin-top: .5rem;
  opacity: .85;
}

/* Botão Continuar */
.btn-continuar {
  display: block;
  margin: .75rem auto 0;
  padding: .55rem 1.5rem;
  background: #1E4620;
  border: none;
  border-radius: 20px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, background .2s;
}
.btn-continuar.visivel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-continuar:hover { background: #2A5C1A; }

/* Modal de Omissão */
#omissao-modal .modal-content {
  background: rgba(247, 255, 247, 0.97) !important;
  border: 1px solid rgba(30, 70, 32, 0.20) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.40) !important;
}
#omissao-modal .modal-content * {
  color: #1B480C !important;
  text-shadow: none !important;
}
#omissao-modal #btn-vou-decidir {
  color: #FFFFFF !important;
}
.omissao-content { text-align: center; }
.omissao-texto {
  font-size: 1rem;
  line-height: 1.65;
  color: #1B480C;
  margin-bottom: .5rem;
}

.omissao-aviso {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c32843 !important;
  text-align: center;
  margin: 0 0 .75rem;
  transition: opacity .2s ease;
}
#omissao-modal .omissao-aviso { color: #c32843 !important; }

body.scroll-locked {
  overflow: hidden !important;
}

@keyframes modal-shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-8px); }
  35%  { transform: translateX(7px); }
  55%  { transform: translateX(-5px); }
  75%  { transform: translateX(4px); }
  90%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.modal-content.shake {
  animation: modal-shake 0.45s ease-out;
}

/* Veredito do Silêncio */
.silencio-texto {
  font-size: 1.05rem !important;
  line-height: 1.80 !important;
  font-style: italic !important;
  text-align: center !important;
  color: #1B480C !important;
  padding: 1rem 0 !important;
}
.veredito-card.silencio-mode {
  background: rgba(247, 255, 247, 0.97) !important;
  border: 1px solid rgba(30, 70, 32, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ícone de personagem no veredito: oculto para dar espaço ao texto */
.veredito-icone {
  display: none !important;
}

/* Subtítulo do veredito */
.veredito-subtitulo-row {
  position: relative;
  width: 100%;
  height: 1.4em;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(27, 72, 12, 0.50);
  margin-bottom: .2rem;
}
.veredito-subtitulo-row span:first-child {
  position: absolute;
  left: 25%;
  transform: translateX(-50%);
}
.veredito-subtitulo-row span:last-child {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
}

/* Stories bar: barra ativa preenchida */
.story-seg.seg-active {
  background-color: rgba(255, 255, 255, 0.90) !important;
}

/* Em tablet/desktop: sem filtro no fundo; contexto alinhado às opções */
@media (min-width: 600px) {
  #bg        { filter: none !important; }
  #bg.bg-reveal { filter: none !important; }
  .consequencia-texto { font-size: clamp(.88rem, 2.8vw, 1.1rem); }
}

/* Oculta btn-info apenas quando o toast de consequência está visível no mesmo card */
.glass-card:has(.consequencia-toast.visivel) .btn-info {
  display: none !important;
}

/* Especificidade alta via .jda-container — vence herança Manrope do Twenty Twenty-Five */
.jda-container .btn-opcao,
.jda-container .btn-opcao span,
.jda-container .consequencia-texto {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Tipografia unificada ≥ 768px — Inter 18px idêntico em opções e contexto */
@media (min-width: 768px) {
  .jda-container .btn-opcao,
  .jda-container .btn-opcao span,
  .jda-container .consequencia-texto {
    font-size: 18px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  }
}

/* Tabela do veredito: fontes compactas */
.veredito-eixos-wrap td,
.veredito-eixos-wrap th {
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
  padding: 4px !important;
}

/* Modal ℹ de contexto */
#info-modal .modal-content {
  display: flex !important;
  flex-direction: column !important;
  padding: 25px !important;
  gap: 16px !important;
}
#info-modal .modal-footer-row {
  position: static !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 0 0 !important;
  margin: 0 !important;
  max-height: 48px !important;
  overflow: hidden !important;
}
#info-modal .logo-aprofundar {
  width: 80px !important;
  height: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
#info-modal .modal-link-aprofundar {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #1B480C !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body.jda-fullscreen #info-modal .modal-content {
  background-color: rgba(247, 255, 247, 0.95) !important;
  color: #1B480C !important;
}
body.jda-fullscreen #info-modal #modal-text {
  color: #163824 !important;
}
body.jda-fullscreen #info-modal .modal-link-aprofundar {
  color: #1B480C !important;
}

/* Tipografia modo Guardião — fontes menores para opções longas */
.guardiao-active .btn-opcao {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  padding: 0.5rem 0.75rem !important;
  letter-spacing: 0.015em !important;
}


/* ════════════════════════════════════════════════════════════
   OVERRIDES FULLSCREEN — body.jda-fullscreen
   Estado final dos cards após o usuário activar tela cheia.
   ════════════════════════════════════════════════════════════ */

/* Opção selecionada: alto contraste para leitura após escolha */
body.jda-fullscreen .btn-opcao.selecionado,
body.jda-fullscreen .btn-opcao.selecionado:disabled {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  color: #1B480C !important;
  opacity: 1 !important;
}
body.jda-fullscreen .btn-opcao.selecionado .opcao-texto,
body.jda-fullscreen .btn-opcao.selecionado:disabled .opcao-texto {
  color: #1B480C !important;
  text-shadow: none !important;
}
body.jda-fullscreen .btn-opcao.selecionado .opcao-letra,
body.jda-fullscreen .btn-opcao.selecionado:disabled .opcao-letra {
  color: #1B480C !important;
  border-color: rgba(27, 72, 12, 0.40) !important;
  background: rgba(27, 72, 12, 0.10) !important;
}

body.jda-fullscreen .btn-opcao:hover:not(:disabled):not(.selecionado) {
  background: rgba(255, 255, 255, 0.22) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}
body.jda-fullscreen .btn-opcao:hover .opcao-texto {
  color: rgba(255, 255, 255, 0.96) !important;
}

body.jda-fullscreen .opcao-letra {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.50) !important;
  color: rgba(255, 255, 255, 0.90) !important;
}

body.jda-fullscreen .consequencia-toast {
  background: rgba(247, 255, 247, 0.98) !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}
body.jda-fullscreen .consequencia-texto {
  color: #1B480C !important;
  text-shadow: none !important;
}
body.jda-fullscreen .consequencia-toast.toast-negativo .consequencia-texto {
  color: #1B480C !important;
}

body.jda-fullscreen .veredito-card {
  background: rgba(247, 255, 247, 0.98) !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}
body.jda-fullscreen .veredito-titulo {
  color: #1B480C !important;
  text-shadow: none !important;
}
body.jda-fullscreen .veredito-texto {
  color: #2A5C1A !important;
  text-shadow: none !important;
}
body.jda-fullscreen .veredito-eixo-label,
body.jda-fullscreen .veredito-eixo-status {
  color: #2A5C1A !important;
}


/* ── Fullscreen Toggle Button ─────────────────────────────── */

#jda-fullscreen-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}

#jda-fullscreen-toggle:hover  { background: rgba(255, 255, 255, 0.30); }
#jda-fullscreen-toggle:active { transform: scale(0.92); }
#jda-fullscreen-toggle.fs-unavailable { display: none; }

/* Pseudo-seletor nativo da Fullscreen API */
:fullscreen #game-container,
:-webkit-full-screen #game-container {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  flex: none !important;
}

:fullscreen #jda-fullscreen-toggle,
:-webkit-full-screen #jda-fullscreen-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
}

/* Garantir que o wrapper do motor não bloqueie cliques */
#jda-game-engine {
  pointer-events: auto !important;
}
