﻿/* =========================================================================
   ROLETA QUIZ ÃRIS â€” DESIGN SYSTEM OFICIAL (BASEADO NO PROTÃ“TIPO DO EVENTO)
   Paleta: --green #047a43, --green-dark #035c33, --green-bright #69b78d,
           --green-soft #e7f3ef, --lime #76c8b5, --orange #fc501b,
           --yellow #fcad6b, --sand #f1d2a9, --paper #f7f5ed,
           --white #fffdfa, --ink #4e5d62, --danger #b83b25
   Tipografia: Kanit (tÃ­tulos, botÃµes, inputs, destaques) e Montserrat (texto)
   ========================================================================= */

@font-face {
  font-family: 'Kanit:Light';
  src: local('Kanit Light'), local('Kanit-Light');
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'Kanit:Medium';
  src: local('Kanit Medium'), local('Kanit-Medium'), local('Kanit');
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'Montserrat:Regular';
  src: local('Montserrat Regular'), local('Montserrat-Regular'), local('Montserrat');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Space Mono:Regular';
  src: local('Space Mono'), local('SpaceMono-Regular');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Space Mono:Bold';
  src: local('Space Mono Bold'), local('SpaceMono-Bold');
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #4e5d62;
  --ink-soft: #5f6d72;
  --green: #047a43;
  --green-dark: #035c33;
  --green-bright: #69b78d;
  --green-soft: #e7f3ef;
  --lime: #76c8b5;
  --orange: #fc501b;
  --yellow: #fcad6b;
  --blue: #76c8b5;
  --violet: #efc993;
  --sand: #f1d2a9;
  --paper: #f7f5ed;
  --white: #fffdfa;
  --line: #d9dedb;
  --line-strong: #a2aba2;
  --danger: #b83b25;
  --danger-soft: #fff0e8;
  --success: #047a43;
  --info-soft: #e6f4f1;
  --shadow: 0 12px 30px rgba(78, 93, 98, .1);
  --shadow-soft: 0 4px 10px rgba(105, 183, 141, .14);
  --wheel-1: #047a43;
  --wheel-2: #fc501b;
  --wheel-3: #fcad6b;
  --wheel-4: #76c8b5;
  --wheel-5: #69b78d;
  --wheel-6: #efc993;

  --font-display: 'Kanit', 'Kanit:Medium', Arial, sans-serif;
  --font-light: 'Kanit', 'Kanit:Light', Arial, sans-serif;
  --font-sans: 'Montserrat', 'Montserrat:Regular', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Space Mono:Regular', monospace;
  --base-scale: 1;
}

/* Escala tipogrÃ¡fica (Menu de TrÃªs Pontos: A / A+ / A++) */
html[data-font-scale="normal"] { --base-scale: 1; }
html[data-font-scale="lg"]     { --base-scale: 1.15; }
html[data-font-scale="xl"]     { --base-scale: 1.30; }

/* Tema Escuro AcessÃ­vel (suporta tanto html[data-theme="dark"] quanto body.dark-theme) */
html[data-theme="dark"],
body.dark-theme {
  --ink: #eef4f2;
  --ink-soft: #b5c6c1;
  --green: #129b5b;
  --green-dark: #034b2a;
  --green-bright: #69b78d;
  --green-soft: rgba(105, 183, 141, 0.16);
  --paper: #11181b;
  --white: #1a252a;
  --line: #2c3d44;
  --line-strong: #49626c;
  --sand: #25363d;
  --danger: #ff6b52;
  --danger-soft: rgba(252, 80, 27, 0.18);
  --success: #52d191;
  --info-soft: rgba(118, 200, 181, 0.16);
  --shadow: 0 14px 34px rgba(0, 0, 0, .48);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, .32);
  --dark-hover-bg: #1f4d3a;
  --dark-hover-bg-strong: #0b5c38;
  --dark-hover-danger: #7a2118;
  --dark-hover-text: #ffffff;
  --dark-focus-ring: #f2b705;
}

html[data-theme="dark"] .button-secondary,
body.dark-theme .button-secondary {
  color: #76c8b5;
  background: #1a252a;
  border-color: #69b78d;
}

html[data-theme="dark"] .button-danger,
body.dark-theme .button-danger {
  color: #ffb4a6;
  background: rgba(184, 59, 37, 0.28);
  border-color: #ff6b52;
}

html[data-theme="dark"] .switch-row,
html[data-theme="dark"] .review-row,
html[data-theme="dark"] .queue-person,
body.dark-theme .switch-row,
body.dark-theme .review-row,
body.dark-theme .queue-person {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .not-started,
body.dark-theme .not-started {
  background: rgba(26, 37, 42, 0.75);
  border-color: var(--line-strong);
}

html[data-theme="dark"] .wait-status,
html[data-theme="dark"] .modal-close,
html[data-theme="dark"] .score-display > i,
body.dark-theme .wait-status,
body.dark-theme .modal-close,
body.dark-theme .score-display > i {
  background: #25363d;
  color: var(--ink);
}

html[data-theme="dark"] .hint-box,
body.dark-theme .hint-box {
  background: rgba(252, 173, 107, 0.16);
  border-color: var(--yellow);
  color: #fce2c4;
}

html[data-theme="dark"] .category-tag,
html[data-theme="dark"] .permission-tags b,
html[data-theme="dark"] .rules-foot,
html[data-theme="dark"] .queue-person > b,
html[data-theme="dark"] .mediator-answers button span,
html[data-theme="dark"] .prize-alert-banner strong,
body.dark-theme .category-tag,
body.dark-theme .permission-tags b,
body.dark-theme .rules-foot,
body.dark-theme .queue-person > b,
body.dark-theme .mediator-answers button span,
body.dark-theme .prize-alert-banner strong {
  color: #8ce0b9;
}

/* BotÃ£o Toggle Switch de Tema Claro / Escuro */
.theme-toggle-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
  padding: 4px 10px 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--green-bright);
  background: var(--green-soft);
}

.theme-toggle-btn .switch {
  width: 36px;
  height: 20px;
  padding: 2px;
}

.theme-toggle-btn .switch b {
  width: 16px;
  height: 16px;
}

.theme-toggle-btn .switch.switch-on b {
  transform: translateX(16px);
}


/* =========================================================================
   BASE & ACESSIBILIDADE WCAG 2.2 AA
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  font-size: calc(16px * var(--base-scale));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4, button, strong {
  font-family: var(--font-display);
  font-weight: 500;
}

h1, h2, h3 {
  letter-spacing: 0 !important;
  color: var(--ink);
}

input, select, textarea {
  font-family: var(--font-light);
  font-weight: 400;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--green);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-family: var(--font-display);
}
.skip-link:focus {
  top: 16px;
}

/* =========================================================================
   ÃCONES, BOTÃ•ES E MARCA (DESIGN SYSTEM DO PROTÃ“TIPO)
   ========================================================================= */
.material-symbols-rounded {
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-size, 20px);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}

.button,
.btn {
  min-height: 48px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(16px * var(--base-scale));
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled,
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

.button-primary,
.btn-primary,
.btn-accent,
.btn-success {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: none;
}

.button-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-accent:hover:not(:disabled),
.btn-success:hover:not(:disabled) {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 10px rgba(38, 167, 55, .15);
}

.button-secondary,
.btn-secondary,
.btn-outline {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--green);
}

.button-secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  border-color: var(--green-dark);
  background: var(--green-soft);
}

.button-ghost,
.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
}

.button-ghost:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  color: var(--green);
  background: var(--green-soft);
}

.button-danger,
.btn-danger-outline {
  color: #540b0b;
  background: var(--danger-soft);
  border-color: #c71a1a;
  box-shadow: none;
}

.button-danger:hover:not(:disabled),
.btn-danger-outline:hover:not(:disabled) {
  background: #ffd7b8;
}

.eyebrow {
  color: var(--green);
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(220px, 40vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .16s ease, color .16s ease;
}

.brand-logo-link:hover {
  background: var(--green-soft);
}

.brand-logo-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
}

.brand-logo-svg {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-pill {
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(18px * var(--base-scale));
  letter-spacing: 0.06em;
  padding: 6px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-logo-text strong {
  font-family: var(--font-display);
  font-size: calc(15px * var(--base-scale));
  font-weight: 600;
  color: var(--ink);
}

.brand-logo-text small {
  font-family: var(--font-sans);
  font-size: calc(10px * var(--base-scale));
  color: var(--ink-soft);
  font-weight: 500;
}

.demo-switch {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.demo-switch:hover {
  color: var(--green);
  background: var(--green-soft);
}

/* =========================================================================
   TELA 1 â€” WELCOME PAGE (INICIAL DO MEDIADOR)
   ========================================================================= */
.welcome-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, var(--paper) 50%, var(--green-soft) 100%);
  display: flex;
  flex-direction: column;
}

.welcome-page::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: 8%;
  top: 18%;
  background: var(--orange);
  clip-path: polygon(50% 0, 58% 37%, 86% 14%, 63% 42%, 100% 50%, 63% 58%, 86% 86%, 58% 63%, 50% 100%, 42% 63%, 14% 86%, 37% 58%, 0 50%, 37% 42%, 14% 14%, 42% 37%);
  opacity: .92;
  pointer-events: none;
}

.ambient {
  position: absolute;
  pointer-events: none;
}

.ambient-one {
  width: 430px;
  height: 360px;
  background: var(--lime);
  border-radius: 43% 57% 68% 32% / 48% 40% 60% 52%;
  left: -180px;
  top: -100px;
  transform: rotate(12deg);
  opacity: .85;
}

.ambient-two {
  width: 480px;
  height: 350px;
  background: var(--yellow);
  border-radius: 66% 34% 38% 62% / 55% 62% 38% 45%;
  right: -190px;
  bottom: -170px;
  transform: rotate(-12deg);
  opacity: .78;
}

.welcome-nav {
  height: 88px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  position: relative;
}

.welcome-main {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
  flex: 1;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 64px;
  padding: 32px 0 56px;
  z-index: 1;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.welcome-copy h1 {
  font-size: calc(clamp(42px, 5vw, 64px) * var(--base-scale));
  line-height: 1.04;
  max-width: 560px;
  margin: 18px 0 22px;
  color: var(--ink);
  font-weight: 600;
}

.welcome-copy h1 em {
  font-style: normal;
  color: var(--green);
}

.welcome-copy p {
  color: var(--ink-soft);
  font-size: calc(18px * var(--base-scale));
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
}

.welcome-copy .button {
  min-height: 54px;
  padding: 0 28px;
  font-size: calc(16px * var(--base-scale));
}

.welcome-copy > small {
  color: var(--ink-soft);
  margin-top: 20px;
  font-size: calc(12px * var(--base-scale));
}

.welcome-art {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(105, 183, 141, .55);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 520px;
  height: 520px;
}

.orbit-two {
  width: 440px;
  height: 440px;
  border-style: dashed;
}

.art-chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
  z-index: 5;
}

.chip-one {
  top: 16%;
  left: 2%;
  color: var(--green);
  transform: rotate(-4deg);
}

.chip-two {
  right: 2%;
  bottom: 18%;
  color: #b83b25;
  transform: rotate(3deg);
}

.welcome-footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 64px;
  border-top: 1px solid rgba(78, 93, 98, .16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
  z-index: 2;
}

/* =========================================================================
   ROLETA SVG (PALETA DO EVENTO, BORDA BRANCA 7PX, HUB ÃRIS QUIZ, RÃ“TULOS HORIZONTAIS)
   ========================================================================= */
.wheel-wrap,
.wheel-wrapper {
  width: min(420px, 78vw);
  max-width: 440px;
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.wheel-compact {
  width: min(340px, 72vw);
  max-width: 350px;
}

.wheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(78, 93, 98, .16));
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  overflow: visible;
  filter: drop-shadow(0 5px 5px rgba(78, 93, 98, .24));
  pointer-events: none;
}

/* O path do pino tem bbox y â‰ˆ -2.9; o SVG precisa pintar fora do viewBox. */
.wheel-pointer svg {
  display: block;
  overflow: visible;
}

/* EspaÃ§o vertical para o pino ultrapassar o topo da roda sem recorte. */
#landing-wheel-holder,
#mediator-wheel-container,
#participant-wheel-container,
.catalog-hero-wheel {
  padding-top: 24px;
}

.wheel-slice path {
  transition: filter .22s ease, stroke-width .22s ease;
}

.wheel-slice-winner path {
  stroke: var(--white) !important;
  stroke-width: 5px !important;
  filter: brightness(1.07) drop-shadow(0 0 10px rgba(4, 122, 67, 0.35));
}

/* =========================================================================
   HEADER INSTITUCIONAL COMPACTO (.app-header) E MENU DE TRÃŠS PONTOS
   ========================================================================= */
.app-header {
  min-height: 72px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.header-brand > strong {
  font-size: calc(15px * var(--base-scale));
  color: var(--ink);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.live-badge {
  color: var(--success);
  background: var(--green-soft);
  padding: 7px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-badge i,
.not-started > i {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(29, 116, 89, .12);
  display: inline-block;
}

.header-link,
.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.header-link:hover,
.icon-button:hover {
  background: var(--green-soft);
  color: var(--green);
}

.icon-button {
  min-width: 44px;
  padding: 0 8px;
  justify-content: center;
}

/* Dropdown do Menu de TrÃªs Pontos */
.more-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.more-menu-group-title {
  font-family: var(--font-display);
  font-size: calc(10px * var(--base-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 6px 10px 2px;
}

.more-menu-item {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.more-menu-item:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.more-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.font-scale-pills {
  display: flex;
  gap: 6px;
  padding: 4px 10px 8px;
}

.font-scale-pill {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(13px * var(--base-scale));
  cursor: pointer;
}

.font-scale-pill.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

/* =========================================================================
   TELAS 2 A 5 â€” SETUP WIZARD (SIDEBAR VERDE ESCURA + ÃREA CENTRAL LIMPA)
   ========================================================================= */
.setup-page {
  min-height: 100vh;
  background: var(--paper);
}

.setup-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.setup-sidebar {
  padding: 56px 42px;
  background: var(--green-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.setup-sidebar::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  left: -90px;
  bottom: -120px;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02);
  pointer-events: none;
}

.setup-sidebar .eyebrow {
  color: var(--lime);
}

.setup-sidebar h2 {
  color: #ffffff;
  font-size: calc(28px * var(--base-scale));
  line-height: 1.22;
  margin: 14px 0 40px;
  max-width: 240px;
}

.setup-sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-sidebar li {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: .48;
  transition: opacity .2s ease;
}

.setup-sidebar li.active,
.setup-sidebar li.done {
  opacity: 1;
}

.setup-sidebar li > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 600;
}

.setup-sidebar li.active > span {
  background: var(--lime);
  color: var(--green-dark);
  border-color: var(--lime);
}

.setup-sidebar li.done > span {
  background: rgba(255,255,255,.14);
  color: var(--lime);
  border-color: var(--lime);
}

.setup-sidebar li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setup-sidebar li strong {
  font-size: calc(14px * var(--base-scale));
  color: #ffffff;
}

.setup-sidebar li small {
  font-size: calc(11px * var(--base-scale));
  color: rgba(255,255,255,.72);
}

.setup-note {
  margin-top: auto;
  padding: 15px;
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  z-index: 1;
}

.setup-note .material-symbols-rounded {
  color: var(--lime);
}

.setup-note p {
  font-size: calc(11px * var(--base-scale));
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}

.setup-main {
  padding: 40px clamp(32px, 5vw, 88px) 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
}

.step-meta > div {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.step-meta i {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width .25s ease;
}

.step-content,
.wizard-card {
  width: min(640px, 100%);
  margin: 36px auto 32px;
}

.step-content.step-enter {
  animation: rise .26s ease;
}

.step-content.wide {
  width: min(840px, 100%);
}

.step-content > h1,
.wizard-title {
  font-size: calc(clamp(28px, 3.2vw, 38px) * var(--base-scale));
  line-height: 1.15;
  margin: 10px 0 10px;
  color: var(--ink);
}

.step-content > p {
  color: var(--ink-soft);
  font-size: calc(15px * var(--base-scale));
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Cards de Modalidade (Etapa 1) */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  min-height: 156px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: #9cb8ae;
  box-shadow: var(--shadow-soft);
}

.mode-card.selected {
  border: 2px solid var(--green-bright);
  padding: 19px;
  background: var(--green-soft);
}

.mode-card .radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid #9aaba5;
  border-radius: 50%;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}

.mode-card.selected .radio {
  border-color: var(--green);
}

.mode-card.selected .radio i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: block;
}

.mode-card > small {
  position: absolute;
  right: 12px;
  top: 14px;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 8px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: calc(10px * var(--base-scale));
  font-weight: 600;
  text-transform: uppercase;
}

.mode-card strong,
.mode-option-title {
  font-size: calc(16px * var(--base-scale));
  color: var(--ink);
}

.mode-card p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.5;
  margin-top: 8px;
}

/* PermissÃµes Individuais com Switch (Etapa 1 - Parcialmente autÃ´nomo) */
.permission-box,
.permissions-box {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-top: 18px;
}

.permission-box h3 {
  font-size: calc(16px * var(--base-scale));
  margin-bottom: 8px;
  color: var(--ink);
}

.permission-box > div > p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.55;
}

.permission-list {
  display: grid;
}

.switch-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  padding: 10px 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-row strong {
  font-size: calc(14px * var(--base-scale));
  color: var(--ink);
}

.switch-row small {
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
}

.switch {
  width: 40px;
  height: 24px;
  border-radius: 20px;
  background: #d3ddda;
  padding: 3px;
  flex: 0 0 auto;
  transition: background .2s ease;
  display: inline-block;
}

.switch b {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
  transition: transform .2s ease;
}

.switch-on {
  background: var(--green);
}

.switch-on b {
  transform: translateX(16px);
}

.mode-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mode-detail .material-symbols-rounded {
  color: var(--green);
  margin-top: 2px;
}

.mode-detail strong {
  font-size: calc(15px * var(--base-scale));
  color: var(--ink);
}

.mode-detail p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.55;
  margin-top: 4px;
}

/* FormulÃ¡rios e Campos (Etapa 2) */
.form-stack {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(14px * var(--base-scale));
  font-weight: 500;
}

.field span b,
.field-required {
  color: var(--orange);
  font-weight: 600;
}

.field-optional {
  color: var(--ink-soft);
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  font-size: calc(16px * var(--base-scale));
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
  color: #9ba8a4;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(38,167,55,.15);
}

.field-hint {
  font-family: var(--font-sans);
  font-size: calc(12px * var(--base-scale));
  color: var(--ink-soft);
  font-weight: 400;
}

.field-error,
.field small.field-error {
  color: var(--danger);
  font-family: var(--font-sans);
  font-size: calc(13px * var(--base-scale));
  font-weight: 600;
}

.field.has-error input {
  border-color: var(--danger);
  background: #fffafa;
}

.privacy-note {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: calc(13px * var(--base-scale));
  color: var(--ink);
  line-height: 1.5;
}

/* Regras da Partida (Etapa 3) */
.rules-step {
  width: min(780px, 100%);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rule {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rule > span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 700;
  background: var(--green-soft);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.rule > div > strong,
.rule-card-title {
  font-size: calc(15px * var(--base-scale));
  color: var(--ink);
  display: block;
}

.rule p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.55;
  margin-top: 6px;
}

.rules-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
}

.rules-foot p {
  font-size: calc(13px * var(--base-scale));
  line-height: 1.5;
}

/* RevisÃ£o / Resumo (Etapa 4) */
.review-step {
  width: min(740px, 100%);
}

.review-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.review-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid #edf1ef;
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row > span,
.summary-group-label {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.review-row > div:not(.permission-tags) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-row strong {
  font-size: calc(15px * var(--base-scale));
  color: var(--ink);
}

.review-row small {
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
}

.permission-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.permission-tags b {
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 500;
}

.not-started {
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed #bdccc7;
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.6);
}

.not-started > i {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 139, 86, .15);
}

.not-started span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.not-started strong {
  font-size: calc(13px * var(--base-scale));
  color: var(--ink);
}

.not-started small {
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
}

.step-actions {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================================
   TELA 6 â€” TRANSITION PAGE ("Prepare-se, a roleta vai comeÃ§ar!")
   ========================================================================= */
.transition-page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.transition-content {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px;
}

.loader-wheel {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--green-bright) 0 25%, var(--orange) 25% 50%, var(--yellow) 50% 75%, var(--blue) 75% 100%);
  position: relative;
  animation: rotate 1.3s linear infinite;
  box-shadow: 0 4px 10px rgba(38,167,55,.15);
  margin-bottom: 32px;
}

.loader-wheel::after {
  content: '';
  position: absolute;
  inset: 13px;
  background: var(--paper);
  border-radius: 50%;
}

.loader-wheel span {
  position: absolute;
  width: 13px;
  height: 13px;
  z-index: 1;
  border-radius: 50%;
  background: var(--green-dark);
  left: 35.5px;
  top: 35.5px;
}

.transition-content h1 {
  font-size: calc(clamp(30px, 4vw, 46px) * var(--base-scale));
  margin: 12px 0 10px;
  color: var(--ink);
}

.transition-content p {
  color: var(--ink-soft);
  font-size: calc(15px * var(--base-scale));
  max-width: 480px;
  margin-bottom: 28px;
}

/* =========================================================================
   PAINEL OPERACIONAL DO MEDIADOR (.shell & .dashboard)
   ========================================================================= */
.shell {
  min-height: 100vh;
  background: var(--green-soft);
}

.dashboard {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 50px;
}

.dash-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-heading h1 {
  font-size: calc(28px * var(--base-scale));
  margin: 6px 0 4px;
  color: var(--ink);
}

.dash-heading p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.game-card,
.participant-card,
.queue-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.card-top {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-label {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
}

.card-top h2 {
  font-size: calc(20px * var(--base-scale));
  margin-top: 3px;
  color: var(--ink);
}

.status-chip {
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 20px;
}

.status-chip.spinning {
  color: #b83b25;
  background: #fff0e8;
}

.status-chip.feedback {
  color: var(--ink);
  background: var(--sand);
}

.game-card-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.game-card-body > .wheel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mediator-control {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.active-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.active-person > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--lime);
  font-family: var(--font-display);
  font-size: calc(16px * var(--base-scale));
  font-weight: 700;
  flex-shrink: 0;
}

.active-person div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-person strong {
  font-size: calc(15px * var(--base-scale));
  color: var(--ink);
}

.active-person small {
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
}

.control-copy {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.55;
  margin: 4px 0 8px;
}

.mediator-control > .button {
  width: 100%;
}

.waiting-line {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink);
  font-size: calc(14px * var(--base-scale));
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2.5px solid #b8c8c3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: rotate .9s linear infinite;
  flex-shrink: 0;
}

.question-monitor > b {
  display: inline-block;
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.question-monitor > p {
  font-family: var(--font-display);
  font-size: calc(18px * var(--base-scale));
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.mediator-answers {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mediator-answers button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.mediator-answers button:hover,
.mediator-answers button.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.mediator-answers button span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--sand);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 700;
  flex: 0 0 auto;
}

.mediator-answers button.selected span {
  background: var(--green);
  color: #ffffff;
}

.monitor-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.monitor-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: calc(13px * var(--base-scale));
}

.monitor-feedback.correct {
  background: var(--green-soft);
  color: var(--success);
  border: 1px solid var(--green-bright);
}

.monitor-feedback.wrong {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #e6b7b2;
}

.contingency-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sidebar Direita do Mediador (.dash-aside) */
.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.participant-card,
.queue-card {
  padding: 20px;
}

.aside-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.aside-title h3 {
  font-size: calc(16px * var(--base-scale));
  margin-top: 3px;
  color: var(--ink);
}

.position {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 700;
}

.score-display {
  margin: 20px 0 18px;
}

.score-display > strong {
  font-size: calc(42px * var(--base-scale));
  line-height: 1;
  color: var(--ink);
}

.score-display > span {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  margin-left: 6px;
}

.score-display > i,
.participant-status div:nth-child(2) > i {
  height: 6px;
  border-radius: 8px;
  background: #e9efec;
  display: block;
  overflow: hidden;
  margin-top: 12px;
}

.score-display > i b,
.participant-status div:nth-child(2) > i b {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width .3s ease;
}

.score-display > small {
  display: block;
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
  margin-top: 7px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.mini-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink-soft);
  font-size: calc(11px * var(--base-scale));
  border-right: 1px solid var(--line);
}

.mini-stats span:last-child {
  border: 0;
}

.mini-stats b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(18px * var(--base-scale));
  margin-bottom: 2px;
}

.aside-title button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
  cursor: pointer;
}

.queue-person {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ef;
}

.queue-person:last-child {
  border: 0;
}

.queue-person > span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sand);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 700;
}

.queue-person div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.queue-person strong {
  font-size: calc(13px * var(--base-scale));
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-person small {
  color: var(--ink-soft);
  font-size: calc(11px * var(--base-scale));
}

.queue-person > b {
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  color: var(--green-dark);
}

/* =========================================================================
   TELA DO PARTICIPANTE â€” ESPERA (.participant-wait & .wait-modal)
   ========================================================================= */
.participant-wait {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 45%, var(--white) 0, var(--green-soft) 78%);
  display: grid;
  place-items: center;
  padding: 32px 24px;
  position: relative;
  overflow: auto;
}

.participant-wait::before {
  content: '';
  position: absolute;
  width: 330px;
  height: 270px;
  left: -120px;
  top: -90px;
  border-radius: 40% 60% 65% 35% / 45% 42% 58% 55%;
  background: var(--lime);
  transform: rotate(12deg);
  opacity: .55;
  pointer-events: none;
}

.participant-wait::after {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  right: 7%;
  bottom: 10%;
  background: var(--orange);
  clip-path: polygon(50% 0, 58% 37%, 86% 14%, 63% 42%, 100% 50%, 63% 58%, 86% 86%, 58% 63%, 50% 100%, 42% 63%, 14% 86%, 37% 58%, 0 50%, 37% 42%, 14% 14%, 42% 37%);
  opacity: .82;
  pointer-events: none;
}

.wait-modal,
.participant-waiting-card {
  width: min(480px, 100%);
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wait-modal-header {
  min-height: 68px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wait-modal-header > span {
  color: var(--success);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 500;
}

.wait-modal-header > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(29, 116, 89, .11);
}

.wait-modal-body {
  padding: 24px 36px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wait-visual {
  height: 168px;
  width: 180px;
  flex: 0 0 168px;
  position: relative;
  display: grid;
  place-items: center;
}

.wait-visual .loader-wheel {
  width: 64px;
  height: 64px;
  margin: 0;
}

.wait-visual .loader-wheel span {
  left: 25.5px;
  top: 25.5px;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(38,167,55,.18);
  border-radius: 50%;
}

.ring-one {
  width: 116px;
  height: 116px;
}

.ring-two {
  width: 158px;
  height: 158px;
  border-style: dashed;
}

.wait-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wait-copy h1 {
  font-size: calc(27px * var(--base-scale));
  line-height: 1.22;
  max-width: 390px;
  margin: 10px 0;
  color: var(--ink);
}

.wait-copy p {
  color: var(--ink-soft);
  font-size: calc(14px * var(--base-scale));
  line-height: 1.6;
}

.wait-status {
  min-height: 38px;
  margin-top: 22px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f5f7f3;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: calc(12px * var(--base-scale));
  font-weight: 500;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.3s infinite;
  display: block;
}

.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }

/* =========================================================================
   TELA DO PARTICIPANTE â€” AUTOCADASTRO (.participant-register)
   ========================================================================= */
.participant-register {
  min-height: 100vh;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  position: relative;
}

.register-layout {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.register-copy {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
  color: #ffffff;
  padding: 44px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.register-copy .eyebrow {
  color: var(--lime);
  margin-top: 40px;
}

.register-copy h1 {
  color: #ffffff;
  font-size: calc(34px * var(--base-scale));
  line-height: 1.15;
  margin: 12px 0;
  max-width: 360px;
}

.register-copy > p {
  color: rgba(255,255,255,.76);
  font-size: calc(14px * var(--base-scale));
  line-height: 1.6;
  max-width: 340px;
}

.register-form {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.register-form h2 {
  font-size: calc(28px * var(--base-scale));
  margin: 6px 0 4px;
}

/* =========================================================================
   TELA DO PARTICIPANTE â€” JOGO ATIVO (.participant-game)
   ========================================================================= */
.participant-game {
  min-height: 100vh;
  background: var(--green-soft);
  display: flex;
  flex-direction: column;
}

.participant-header {
  min-height: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 max(24px, calc((100% - 1060px) / 2));
  display: flex;
  align-items: center;
  gap: 20px;
}

.participant-identity {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.participant-identity div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.participant-identity small {
  color: var(--ink-soft);
  font-size: calc(11px * var(--base-scale));
}

.participant-identity strong {
  font-size: calc(14px * var(--base-scale));
  color: var(--ink);
}

.participant-identity > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: calc(14px * var(--base-scale));
  font-weight: 700;
}

.participant-status {
  min-height: 74px;
  background: var(--green-dark);
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 240px));
  justify-content: center;
  gap: 1px;
}

.participant-status > div {
  padding: 14px 28px;
  border-right: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.participant-status > div:last-child {
  border: 0;
}

.participant-status span {
  font-size: calc(11px * var(--base-scale));
  color: rgba(255,255,255,.72);
}

.participant-status strong {
  font-size: calc(20px * var(--base-scale));
  margin-top: 2px;
  color: #ffffff;
}

.participant-status strong small {
  font-size: calc(12px * var(--base-scale));
  font-weight: 400;
  opacity: .75;
}

.participant-status div:nth-child(2) {
  position: relative;
}

.participant-status div:nth-child(2) > i {
  background: rgba(255,255,255,.18);
  margin-top: 8px;
  width: calc(100% - 42px);
}

.participant-status div:nth-child(2) > small {
  position: absolute;
  right: 24px;
  bottom: 16px;
  font-size: calc(11px * var(--base-scale));
  color: rgba(255,255,255,.85);
}

.participant-main {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 64px;
  flex: 1;
}

/* Fase de Giro (Participante) */
.spin-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mobile-heading {
  max-width: 580px;
}

.mobile-heading h1 {
  font-size: calc(clamp(28px, 4vw, 40px) * var(--base-scale));
  line-height: 1.15;
  margin: 10px 0;
  color: var(--ink);
}

.mobile-heading p {
  color: var(--ink-soft);
  font-size: calc(15px * var(--base-scale));
}

.spin-screen .wheel-wrap {
  margin: 28px 0 22px;
  width: min(410px, 80vw);
}

.spin-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spin-actions .button-primary {
  min-width: 220px;
}

.mediator-wait {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.mediator-wait div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mediator-wait strong {
  font-size: calc(14px * var(--base-scale));
  color: var(--ink);
}

.mediator-wait small {
  color: var(--ink-soft);
  font-size: calc(12px * var(--base-scale));
}

/* Fase de Pergunta (Participante â€” Sem roleta, leitura a 3-4m) */
.question-screen {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.question-top > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-tag {
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--base-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.question-count {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
}

.timer {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: calc(15px * var(--base-scale));
  font-weight: 700;
}

.timer.critical {
  color: var(--danger);
  border-color: #e6b7b2;
  background: var(--danger-soft);
}

.question-title > span {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(13px * var(--base-scale));
  font-weight: 500;
}

.question-title h1,
.participant-question-text {
  font-size: calc(clamp(24px, 3.2vw, 34px) * var(--base-scale));
  line-height: 1.28;
  margin: 8px 0 24px;
  max-width: 780px;
  color: var(--ink);
  font-weight: 500;
}

.hint-box {
  background: #fff8d9;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  color: #6b350b;
}

.hint-box strong {
  font-size: calc(14px * var(--base-scale));
  display: block;
}

.hint-box p {
  font-size: calc(14px * var(--base-scale));
  line-height: 1.5;
  margin-top: 2px;
}

.answers,
.participant-options-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.answer,
.participant-option-item {
  min-height: 76px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

button.answer,
button.participant-option-item {
  cursor: pointer;
}

button.answer:hover:not(:disabled),
button.participant-option-item:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #9fbab1;
  background: var(--green-soft);
}

.answer > span:first-child,
.participant-option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--ink);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: calc(14px * var(--base-scale));
  font-weight: 700;
}

.answer > strong {
  font-family: var(--font-sans);
  font-size: calc(15px * var(--base-scale));
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.answer > small {
  color: var(--green);
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 600;
}

.answer.selected,
.participant-option-item.selected {
  border: 2px solid var(--green-bright);
  padding: 13px 15px;
  background: var(--green-soft);
}

.answer.selected > span:first-child,
.participant-option-item.selected .participant-option-letter {
  color: #ffffff;
  background: var(--green);
}

.answer.correct,
.participant-option-item.correct {
  border: 2px solid var(--success);
  background: var(--green-soft);
  color: var(--success);
}

.answer.correct > span:first-child,
.participant-option-item.correct .participant-option-letter {
  color: #ffffff;
  background: var(--success);
}

.answer.wrong,
.participant-option-item.wrong {
  border: 2px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.answer.wrong > span:first-child,
.participant-option-item.wrong .participant-option-letter {
  color: #ffffff;
  background: var(--danger);
}

.question-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.answer-feedback,
.feedback-banner {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.answer-feedback > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.answer-feedback > div {
  flex: 1;
}

.answer-feedback strong,
.feedback-banner-title {
  font-family: var(--font-display);
  font-size: calc(18px * var(--base-scale));
  font-weight: 600;
  display: block;
}

.answer-feedback p {
  font-size: calc(14px * var(--base-scale));
  line-height: 1.5;
  margin-top: 4px;
}

.answer-feedback.correct,
.feedback-banner.feedback-hit {
  background: var(--green-soft);
  color: var(--success);
  border: 1px solid var(--green-bright);
}

.answer-feedback.correct > span {
  background: rgba(29,116,89,.14);
}

.answer-feedback.wrong,
.feedback-banner.feedback-miss {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #e6b7b2;
}

.answer-feedback.wrong > span {
  background: rgba(168,61,61,.12);
}

/* Banner / Card de PremiaÃ§Ã£o aos 25 Pontos */
.prize-alert-banner {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.prize-alert-banner strong {
  color: var(--green-dark);
  font-size: calc(16px * var(--base-scale));
}

/* Encerramento de ParticipaÃ§Ã£o / Partida (.participant-ended) */
.participant-ended {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
}

.ended-card {
  width: min(500px, 100%);
  background: var(--white);
  border-radius: 12px;
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(242, 194, 48, .18);
}

.success-seal {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--success);
  background: var(--green-soft);
  border: 1px solid #b9d8cc;
}

.ended-card h1 {
  font-size: calc(32px * var(--base-scale));
  margin: 10px 0;
}

.ended-card p {
  color: var(--ink-soft);
  font-size: calc(14px * var(--base-scale));
  line-height: 1.6;
  margin-bottom: 24px;
}

/* =========================================================================
   MODAIS E TABELA DE RANKING
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 15, 16, .55);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(2px);
  backface-visibility: hidden;
  will-change: opacity;
}

.modal-backdrop.modal-enter {
  animation: fade .18s ease;
}

.modal,
.modal-dialog {
  width: min(800px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.modal-backdrop.modal-enter .modal,
.modal-backdrop.modal-enter .modal-dialog {
  animation: rise .22s ease;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f0f3f1;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--green-soft);
  color: var(--green);
}

/* =========================================================================
   TELA DE VITÓRIA (> = 25 PONTOS) E AVISO DE TEMPO ESGOTADO
   ========================================================================= */
.victory-backdrop {
  background: rgba(15, 15, 16, .6);
}

.victory-card {
  max-width: 560px;
  max-height: 90vh;
  background: #F8F5EC;
  border: 1px solid #E8DFCC;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(78, 93, 98, .10);
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.victory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9Ijk0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwNDdhNDMiIHN0cm9rZS13aWR0aD0iNSIvPjxnIHN0cm9rZT0iIzA0N2E0MyIgc3Ryb2tlLXdpZHRoPSI0Ij48bGluZSB4MT0iMTAwIiB5MT0iNiIgeDI9IjEwMCIgeTI9IjE5NCIvPjxsaW5lIHgxPSIxOCIgeTE9IjUyIiB4Mj0iMTgyIiB5Mj0iMTQ4Ii8+PGxpbmUgeDE9IjE4IiB5MT0iMTQ4IiB4Mj0iMTgyIiB5Mj0iNTIiLz48L2c+PGNpcmNsZSBjeD0iMTAwIiBjeT0iMTAwIiByPSIxNiIgZmlsbD0iIzA0N2E0MyIvPjxwYXRoIGQ9Ik0xMDAgMGwxMiAyMGgtMjR6IiBmaWxsPSIjZmM1MDFiIi8+PC9zdmc+");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(280px, 70%);
  opacity: .1;
  pointer-events: none;
}

.victory-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  padding: 18px 20px 16px;
}

.victory-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  margin-bottom: 6px;
}
.victory-logos .brand-logo,
.victory-logos .victory-logo {
  height: 32px;
  width: auto;
  max-width: min(280px, 78vw);
  object-fit: contain;
  display: block;
}
.victory-logos .brand-mark { min-height: 36px; }
.victory-logos .brand-logo-pill { font-size: calc(14px * var(--base-scale)); padding: 4px 10px; }
.victory-logos .brand-logo-text strong { font-size: calc(12px * var(--base-scale)); }
.victory-logos .brand-logo-text small { font-size: calc(9px * var(--base-scale)); }

.victory-shapes { position: absolute; inset: 0; pointer-events: none; }
.victory-shapes i { position: absolute; display: block; border-radius: 50%; }
.victory-shapes .vs-one {
  width: 180px; height: 180px; top: -74px; left: -58px;
  background: rgba(4, 122, 67, .08);
}
.victory-shapes .vs-two {
  width: 150px; height: 150px; bottom: -66px; right: -46px;
  background: rgba(236, 224, 200, .45);
}
.victory-shapes .vs-three {
  width: 82px; height: 82px; top: 34px; right: 26px;
  border-radius: 18px; transform: rotate(18deg);
  background: rgba(118, 200, 181, .12);
}

.victory-burst {
  position: relative;
  width: min(140px, 36vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
}
.victory-burst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 14px rgba(4, 80, 47, .24));
}
.victory-score {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 33.48px;
  font-weight: 800;
  letter-spacing: 0;
}
.victory-score small {
  margin-top: 4px;
  font-size: 7.28px;
  font-weight: 600;
  letter-spacing: 1.46px;
}

.victory-title {
  position: relative;
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5.2vw, 40px);
  font-weight: 800;
  line-height: 1.075;
  letter-spacing: 0;
}
.victory-title-line { display: block; }
.victory-title-orange { color: #D25C13; }
.victory-title-green { color: #035C33; }

.victory-stand-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 12px;
  padding: 10px 12px;
  border: 1px solid #CFE8D3;
  border-radius: 12px;
  background: #E8F5E9;
  color: #4E5D62;
  text-align: left;
}
.victory-stand-icon {
  color: #035C33;
  font-size: 20px;
  flex: 0 0 auto;
}
.victory-stand-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.3;
  color: #4E5D62;
}
.victory-stand-strong { font-weight: 500; }
.victory-stand-light { font-weight: 300; }

.victory-social {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 12px;
  text-align: left;
}
.victory-social-title {
  margin: 0 0 6px;
  color: #2B3132;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.1vw, 16px);
  font-weight: 600;
  line-height: 1.3;
}
.victory-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.victory-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.victory-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #B84A0A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}
.victory-step-text {
  color: #515151;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.1vw, 16px);
  font-weight: 400;
  line-height: 1.3;
}
.victory-instagram {
  color: #B84A0A;
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 700;
}

.victory-card .modal-actions {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.victory-cta {
  min-height: 48px;
  width: min(100%, 300px);
  padding: 0 20px;
  border-radius: 8px;
  background: #047A43;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}

.timeout-backdrop { background: rgba(15, 15, 16, .6); }
.timeout-card {
  max-width: 520px;
  background: #f8f5ec;
  border-color: #e8dfcc;
}
.timeout-seal {
  background: #fff1e8;
  color: #9a3d12;
}
.timeout-title {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
}
.timeout-copy {
  margin: 0 auto 4px;
  max-width: 400px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 480px) {
  .victory-content { padding: 12px 14px 10px; }
  .victory-burst { width: min(96px, 30vw); }
  .victory-title { margin: 12px 0 8px; }
  .victory-logos .brand-logo,
  .victory-logos .victory-logo { height: 28px; max-width: 82vw; }
  .victory-stand-card { padding: 8px 10px; gap: 6px; margin-bottom: 10px; }
  .victory-stand-icon { font-size: 18px; }
  .victory-social { margin-bottom: 10px; }
  .victory-steps { gap: 4px; }
  .victory-step-number { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
  .victory-shapes .vs-three { display: none; }
}

.modal-heading,
.modal-header {
  margin-bottom: 20px;
  padding-right: 48px;
}

.modal-heading h2,
.modal-header h2 {
  font-size: calc(22px * var(--base-scale));
  color: var(--ink);
}

.modal-heading p {
  color: var(--ink-soft);
  font-size: calc(13px * var(--base-scale));
  line-height: 1.5;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: calc(13px * var(--base-scale));
}

.ranking-table th {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.ranking-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.ranking-row-first .ranking-rank-badge {
  color: var(--green-dark);
  background: var(--lime);
}

.ranking-row-current {
  background: var(--green-soft);
  box-shadow: inset 3px 0 0 var(--green);
}

/* PÃ­lulas funcionais de dificuldade (FÃ¡cil=Verde, MÃ©dio=Amarelo/Laranja, DifÃ­cil=Vermelho) */
.diff-badge {
  font-family: var(--font-display);
  font-size: calc(11px * var(--base-scale));
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.diff-facil { background: var(--green-soft); color: var(--green-dark); }
.diff-medio { background: #fff4e5; color: #9a4a06; }
.diff-dificil { background: var(--danger-soft); color: var(--danger); }

/* =========================================================================
   ANIMAÃ‡Ã•ES E RESPONSIVIDADE
   ========================================================================= */
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
  .welcome-main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .welcome-art { min-height: 460px; }
  .orbit-one { width: 420px; height: 420px; }
  .orbit-two { width: 360px; height: 360px; }
  .setup-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .setup-sidebar { padding: 44px 26px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .game-card-body { grid-template-columns: 1fr; }
  .mediator-control { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}

@media (max-width: 760px) {
  .welcome-nav, .welcome-main, .welcome-footer { width: min(100% - 36px, 600px); }
  .welcome-nav { height: 72px; }
  .welcome-main { grid-template-columns: 1fr; text-align: center; padding: 32px 0 20px; }
  .welcome-copy { align-items: center; text-align: center; }
  .welcome-copy h1 { font-size: calc(42px * var(--base-scale)); }
  .welcome-copy p { font-size: calc(15px * var(--base-scale)); }
  .welcome-art { min-height: 390px; }
  .orbit-one { width: 360px; height: 360px; }
  .orbit-two { width: 300px; height: 300px; }
  .art-chip { display: none; }
  .app-header { padding: 0 16px; }
  .header-brand > strong, .header-divider, .live-badge { display: none; }
  .brand-logo { height: 40px; max-width: min(200px, 40vw); }
  .brand-logo-link { padding: 2px 4px; margin-left: -4px; }
  .brand-logo-text small { display: none; }
  .setup-layout { display: block; }
  .setup-sidebar { display: none; }
  .setup-main { min-height: calc(100vh - 72px); padding: 24px 18px 20px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 110px; }
  .permission-box, .permissions-box { grid-template-columns: 1fr; gap: 16px; }
  .rules-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 90px 1fr auto; gap: 12px; padding: 12px 16px; }
  .dashboard { width: calc(100% - 30px); padding-top: 22px; }
  .dash-aside { grid-template-columns: 1fr; }
  .register-layout { grid-template-columns: 1fr; }
  .register-copy { min-height: 240px; padding: 28px; }
  .register-form { padding: 28px 22px; }
  .participant-header { padding: 0 16px; gap: 10px; }
  .participant-status { grid-template-columns: repeat(3, 1fr); }
  .participant-status > div { padding: 12px 14px; }
  .answers, .participant-options-stack { grid-template-columns: 1fr; }
  .question-screen { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .welcome-copy h1 { font-size: calc(34px * var(--base-scale)); }
  .welcome-art { min-height: 340px; }
  .orbit-one { width: 310px; height: 310px; }
  .orbit-two { width: 260px; height: 260px; }
  .wait-modal-body { padding: 20px 18px 28px; }
  .wait-copy h1 { font-size: calc(23px * var(--base-scale)); }
  .brand-logo { height: 40px; max-width: 30vw; }
  .participant-identity div { display: none; }
  .participant-header .theme-toggle-btn span { display: none; }
  .participant-ranking-label { display: none; }
  .review-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .review-row > span:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Toast de aviso (permissÃµes / erros) */
.iris-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); max-width: min(92vw, 520px); background: #101828; color: #fff; padding: 14px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(16,24,40,.3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 9999; }
.iris-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Catï¿½logo SG-8.5 ï¿½ estados reais da interface do participante */
.catalog-states-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.catalog-state-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.catalog-state-label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.catalog-state-label strong { font-family: var(--font-mono); color: var(--green-dark); }
.catalog-state-label span { font-size: calc(12px * var(--base-scale)); color: var(--ink-soft); }
.catalog-state-frame { height: 560px; overflow: auto; background: var(--green-soft); }
.catalog-state-frame .participant-game,
.catalog-state-frame .participant-wait,
.catalog-state-frame .participant-register { min-height: 560px; }


/* =========================================================================
   DARK MODE — HOVER / ACTIVE / FOCUS CONTRAST (WCAG AA)
   Todos os controles interativos usam texto claro e fundo escuro de alto contraste.
   ========================================================================= */
:is(html[data-theme="dark"], body.dark-theme) :is(.button-primary, .btn-primary, .btn-accent, .btn-success) {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg-strong);
  border-color: var(--dark-hover-bg-strong);
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button-primary, .btn-primary, .btn-accent, .btn-success):hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) :is(.button-primary, .btn-primary, .btn-accent, .btn-success):focus-visible {
  color: var(--dark-hover-text);
  background: #0a4f31;
  border-color: #0a4f31;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button-secondary, .btn-secondary, .btn-outline) {
  color: #8ce0b9;
  background: var(--white);
  border-color: #69b78d;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button-secondary, .btn-secondary, .btn-outline):hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) :is(.button-secondary, .btn-secondary, .btn-outline):focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg-strong);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button-ghost, .btn-ghost):hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) :is(.button-ghost, .btn-ghost):focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg);
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button-danger, .btn-danger-outline):hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) :is(.button-danger, .btn-danger-outline):focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-danger);
  border-color: #ff6b52;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.brand-logo-link, .theme-toggle-btn, .demo-switch, .header-link, .icon-button, .more-menu-item, .modal-close):hover,
:is(html[data-theme="dark"], body.dark-theme) :is(.brand-logo-link, .theme-toggle-btn, .demo-switch, .header-link, .icon-button, .more-menu-item, .modal-close):focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) .font-scale-pill {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
}
:is(html[data-theme="dark"], body.dark-theme) .font-scale-pill:hover,
:is(html[data-theme="dark"], body.dark-theme) .font-scale-pill:focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) .font-scale-pill.active {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg-strong);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) .mode-card:hover,
:is(html[data-theme="dark"], body.dark-theme) .mode-card:focus-visible,
:is(html[data-theme="dark"], body.dark-theme) .mode-card.selected {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg-strong);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.mode-card:hover, .mode-card:focus-visible, .mode-card.selected) p {
  color: #e6f4ee;
}
:is(html[data-theme="dark"], body.dark-theme) .mediator-answers button:hover,
:is(html[data-theme="dark"], body.dark-theme) .mediator-answers button.selected,
:is(html[data-theme="dark"], body.dark-theme) .mediator-answers button:focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) button.answer:hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) button.participant-option-item:hover:not(:disabled),
:is(html[data-theme="dark"], body.dark-theme) button.answer:focus-visible,
:is(html[data-theme="dark"], body.dark-theme) button.participant-option-item:focus-visible {
  color: var(--dark-hover-text);
  background: var(--dark-hover-bg);
  border-color: #8ce0b9;
}
:is(html[data-theme="dark"], body.dark-theme) :is(.button, .btn, .header-link, .icon-button, .more-menu-item, .modal-close, .answer, .participant-option-item, .mediator-answers button, .font-scale-pill, .mode-card) :is(.material-symbols-rounded, svg) {
  color: inherit;
}
:is(html[data-theme="dark"], body.dark-theme) :is(button, a, summary, [tabindex]):focus-visible {
  outline-color: var(--dark-focus-ring);
}


