/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --navy: #05142D;
  --navy-light: #0a2040;
  --blue: #4371B6;
  --blue-light: #4db8ff;
  --pink: #ec4899;
  --purple: #a855f7;
  --green: #10b981;
  --red: #ef4444;
  --white: #ffffff;
  --text-soft: rgba(255,255,255,0.75);
  --text-mute: rgba(255,255,255,0.5);
  --text-dim: rgba(255,255,255,0.3);
}

html, body {
  height: 100%;
  width: 100%;
  background: var(--navy);
  font-family: 'Sora', sans-serif;
  color: var(--white);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* === FUNDO ANIMADO === */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(67,113,182,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #05142D 0%, #071a3a 100%);
}

.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 24px,
    rgba(67,113,182,0.05) 24px, rgba(67,113,182,0.05) 25px
  );
}

/* === LINHAS DE ACENTO === */
.line-top {
  position: fixed;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--purple) 50%, transparent 100%);
  z-index: 10;
}
.line-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 100%);
  z-index: 10;
}

/* === HEADER / BACK BUTTON === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 28px 44px;
  z-index: 20;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-back:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  transform: translateX(-2px);
}

.btn-back:active {
  transform: translateX(-2px) scale(0.98);
}

.btn-back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* === TELAS === */
.screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.45s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === TELA 1: BOAS-VINDAS === */
.welcome {
  text-align: center;
  max-width: 920px;
  margin-top: -60px;
}

.welcome .welcome-logos {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 40px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.welcome .kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.welcome .kicker::before,
.welcome .kicker::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

.welcome h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.welcome h1 .high {
  color: var(--blue-light);
}

.welcome .subtitle {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto 48px;
}

.welcome .steps {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
}

.welcome .step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 12px 22px 12px 14px;
}

.welcome .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.welcome .step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 56px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  border: none;
  border-radius: 100px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(236,72,153,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(236,72,153,0.55);
}

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

.btn-primary .arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

/* === TELA 2: ESCOLHA DE CATEGORIA === */
.categories {
  max-width: 1280px;
  width: 100%;
  text-align: center;
}

.categories .step-info {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.categories h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.categories .desc {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 56px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.cat-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 36px 30px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--cat-color, var(--blue));
}

.cat-card[data-cat="A"] { --cat-color: var(--pink); }
.cat-card[data-cat="B"] { --cat-color: var(--purple); }
.cat-card[data-cat="C"] { --cat-color: var(--blue-light); }

.cat-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--cat-color) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.cat-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--cat-color);
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}

.cat-card:hover::after { opacity: 0.4; }

.cat-letter {
  font-size: 13px;
  font-weight: 700;
  color: var(--cat-color);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.cat-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: white;
}

.cat-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 24px;
  min-height: 60px;
}

.cat-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.cat-theme {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-soft);
}

.cat-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cat-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* === TELA 3: ROLETA === */
.roulette-screen {
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.roulette-header {
  margin-bottom: 24px;
}

.roulette-header .info {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.roulette-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.roulette-header .cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid;
  margin-top: 8px;
}

/* Container roleta */
.roulette-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 8px auto 24px;
}

/* Pointer externo removido — agora o indicador é a seta central */
.pointer { display: none; }

/* Disco da roleta */
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4.8s cubic-bezier(0.17, 0.67, 0.13, 0.99);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.05),
    0 0 0 16px rgba(255,255,255,0.02),
    0 24px 80px rgba(0,0,0,0.5),
    inset 0 0 100px rgba(0,0,0,0.3);
}

.wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

/* Centro da roleta — seta indicadora apontando para cima */
.wheel-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 130px;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 22px rgba(0,0,0,0.55))
    drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

.wheel-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spin-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  height: 18px;
}

.spin-status.spinning {
  color: var(--blue-light);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.btn-spin {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 64px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  border: none;
  border-radius: 100px;
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(236,72,153,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(236,72,153,0.55);
}

.btn-spin:active:not(:disabled) { transform: translateY(0); }

.btn-spin:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* === TELA 4: PERGUNTA === */
.question-screen {
  flex-direction: column;
  width: 100%;
  max-width: 880px;
}

.question-header {
  text-align: center;
  margin-bottom: 28px;
}

.question-header .subtema {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text-mute);
}

.question-header .subtema-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid;
}

.question-text {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 32px 0 40px;
  color: white;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.option:hover:not(.disabled) {
  background: rgba(255,255,255,0.08);
  border-color: var(--blue-light);
  transform: translateX(6px);
}

.option-letter {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  transition: all 0.25s ease;
}

.option:hover:not(.disabled) .option-letter {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--navy);
}

.option-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.4;
  flex: 1;
}

.option.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.option.correct {
  background: rgba(16,185,129,0.12);
  border-color: var(--green);
}

.option.correct .option-letter {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.option.correct .option-text { color: white; }

.option.wrong {
  background: rgba(239,68,68,0.12);
  border-color: var(--red);
}

.option.wrong .option-letter {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.option.wrong .option-text { color: white; }

/* === TELA 5: RESULTADO === */
.result-screen {
  text-align: center;
  max-width: 720px;
}

.result-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-icon.win {
  background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
  box-shadow: 0 0 0 8px rgba(16,185,129,0.2), 0 16px 50px rgba(16,185,129,0.4);
}

.result-icon.lose {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 0 0 8px rgba(107,114,128,0.2), 0 16px 50px rgba(0,0,0,0.4);
}

.result-icon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: white;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.result-title.win { color: var(--green); }
.result-title.lose { color: white; }

.result-message {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 32px;
}

.result-correct {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 36px;
  text-align: left;
}

.result-correct .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.result-correct .answer {
  font-size: 17px;
  font-weight: 500;
  color: white;
  line-height: 1.45;
}

.result-prize {
  background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
  border: 2px solid rgba(16,185,129,0.4);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
}

.result-prize .gift-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-prize .gift-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.result-prize .prize-text .pt-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.result-prize .prize-text .pt-text {
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.result-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 300;
}

/* === TOTEM PORTRAIT 1080x1920 (TV vertical) === */
/* Detecta tela portrait com altura significativamente maior que largura */
@media (orientation: portrait), (max-aspect-ratio: 3/4) {

  .header { padding: 36px 60px; }
  .btn-back { padding: 16px 28px 16px 22px; font-size: 14px; }
  .btn-back svg { width: 22px; height: 22px; }

  .footer { padding: 28px 60px; font-size: 13px; letter-spacing: 0.18em; }

  .screen { padding: 140px 70px 100px; }

  /* === TELA BOAS-VINDAS === */
  .welcome { max-width: 100%; }
  .welcome .welcome-logos { max-width: 820px; margin-bottom: 64px; }
  .welcome .kicker { font-size: 20px; margin-bottom: 36px; }
  .welcome .kicker::before, .welcome .kicker::after { width: 50px; height: 3px; }
  .welcome h1 { font-size: 88px; line-height: 1.18; margin-bottom: 44px; }
  .welcome .subtitle { font-size: 28px; line-height: 1.55; max-width: 880px; margin-bottom: 80px; }
  .welcome .steps { gap: 20px; margin-bottom: 90px; }
  .welcome .step { padding: 18px 32px 18px 18px; }
  .welcome .step-num { width: 40px; height: 40px; font-size: 18px; }
  .welcome .step-text { font-size: 18px; }

  .btn-primary {
    padding: 32px 80px;
    font-size: 26px;
    letter-spacing: 0.08em;
  }
  .btn-primary svg { width: 28px; height: 28px; }

  /* === TELA CATEGORIAS === */
  .categories { max-width: 100%; }
  .categories .step-info { font-size: 18px; margin-bottom: 28px; letter-spacing: 0.32em; }
  .categories h2 { font-size: 64px; margin-bottom: 22px; }
  .categories .desc { font-size: 24px; margin-bottom: 80px; }
  .cat-grid {
    grid-template-columns: 1fr;
    max-width: 880px;
    gap: 32px;
    margin: 0 auto;
  }
  .cat-card { padding: 56px 50px 48px; border-radius: 28px; }
  .cat-card::before { height: 6px; }
  .cat-card::after { width: 240px; height: 240px; top: -60px; right: -60px; }
  .cat-letter { font-size: 18px; margin-bottom: 22px; letter-spacing: 0.24em; }
  .cat-title { font-size: 38px; margin-bottom: 22px; }
  .cat-desc { font-size: 19px; line-height: 1.55; margin-bottom: 36px; min-height: auto; }
  .cat-themes { gap: 10px; margin-bottom: 32px; }
  .cat-theme { font-size: 15px; padding: 9px 18px; border-radius: 22px; }
  .cat-cta { font-size: 18px; gap: 12px; }
  .cat-cta svg { width: 20px; height: 20px; }

  /* === TELA ROLETA === */
  .roulette-screen { padding: 140px 70px 80px; }
  .roulette-header { margin-bottom: 50px; }
  .roulette-header .info { font-size: 18px; margin-bottom: 14px; letter-spacing: 0.32em; }
  .roulette-header h2 { font-size: 48px; margin-bottom: 14px; }
  .roulette-header .cat-badge { font-size: 16px; padding: 9px 24px; border-radius: 22px; margin-top: 14px; }

  .roulette-wrap { width: 760px; height: 760px; margin: 30px auto 60px; }

  .wheel-arrow { width: 150px; height: 220px; }

  .spin-status { font-size: 20px; margin-bottom: 36px; height: 28px; letter-spacing: 0.24em; }

  .btn-spin { padding: 32px 90px; font-size: 28px; letter-spacing: 0.1em; }
  .btn-spin svg { width: 32px; height: 32px; }

  /* === TELA PERGUNTA === */
  .question-screen { padding: 140px 70px 100px; max-width: 100%; }
  .question-header { margin-bottom: 50px; }
  .question-header .subtema { font-size: 18px; margin-bottom: 22px; letter-spacing: 0.32em; }
  .question-header .subtema-name { font-size: 22px; padding: 12px 32px; border-radius: 22px; }

  .question-text { font-size: 50px; line-height: 1.25; margin: 50px 0 70px; max-width: 1000px; margin-left: auto; margin-right: auto; }

  .options { gap: 20px; max-width: 980px; margin: 0 auto; }
  .option { padding: 32px 40px; border-radius: 22px; gap: 26px; }
  .option-letter { width: 64px; height: 64px; min-width: 64px; font-size: 26px; border-width: 3px; }
  .option-text { font-size: 26px; }

  /* === TELA RESULTADO === */
  .result-screen { max-width: 100%; }
  .result-icon { width: 200px; height: 200px; margin-bottom: 50px; box-shadow: 0 0 0 12px rgba(16,185,129,0.2), 0 24px 70px rgba(16,185,129,0.4); }
  .result-icon.lose { box-shadow: 0 0 0 12px rgba(107,114,128,0.2), 0 24px 70px rgba(0,0,0,0.4); }
  .result-icon svg { width: 110px; height: 110px; stroke-width: 5; }

  .result-title { font-size: 88px; line-height: 1.05; margin-bottom: 28px; }
  .result-message { font-size: 28px; line-height: 1.5; margin-bottom: 50px; max-width: 880px; margin-left: auto; margin-right: auto; }

  .result-correct { padding: 32px 40px; margin-bottom: 50px; border-radius: 22px; max-width: 900px; margin-left: auto; margin-right: auto; }
  .result-correct .label { font-size: 16px; margin-bottom: 16px; letter-spacing: 0.26em; }
  .result-correct .answer { font-size: 24px; line-height: 1.45; }

  .result-prize { padding: 40px 50px; margin-bottom: 60px; gap: 32px; border-radius: 28px; max-width: 900px; margin-left: auto; margin-right: auto; border-width: 3px; }
  .result-prize .gift-icon { width: 80px; height: 80px; min-width: 80px; border-radius: 22px; }
  .result-prize .gift-icon svg { width: 46px; height: 46px; }
  .result-prize .prize-text .pt-label { font-size: 16px; margin-bottom: 8px; }
  .result-prize .prize-text .pt-text { font-size: 26px; line-height: 1.35; }
}

/* === FALLBACKS PARA TELAS PEQUENAS (preview) === */
@media (max-width: 900px) and (orientation: landscape) {
  .welcome h1 { font-size: 42px; }
  .welcome .subtitle { font-size: 16px; }
  .welcome .steps { gap: 12px; }
  .welcome .step { padding: 10px 16px 10px 10px; }
  .welcome .step-text { font-size: 12px; }
  .categories h2 { font-size: 32px; }
  .cat-grid { grid-template-columns: 1fr; max-width: 560px; gap: 16px; }
  .cat-card { padding: 28px 22px 24px; }
  .roulette-wrap { width: 360px; height: 360px; }
  .question-text { font-size: 22px; }
  .option { padding: 18px 20px; }
  .option-text { font-size: 15px; }
  .result-title { font-size: 40px; }
  .result-message { font-size: 16px; }
  .header { padding: 18px 24px; }
  .footer { padding: 14px 24px; font-size: 9px; }
  .btn-back { padding: 10px 18px 10px 14px; font-size: 11px; }
  .btn-back svg { width: 16px; height: 16px; }
  .btn-primary, .btn-spin { padding: 18px 42px; font-size: 16px; }
}

/* Esconder header na tela de boas-vindas e no resultado */
body.on-welcome .header,
body.on-result .header {
  display: none;
}
body.on-welcome .footer {
  display: none;
}

