:root {
  color-scheme: light;
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-soft: #eef6f4;
  --surface-warm: #fff5df;
  --text: #17202a;
  --muted: #5e6e78;
  --line: #d8e3e1;
  --navy: #102a65;
  --teal: #0e8b7d;
  --teal-dark: #08635b;
  --sun: #f5b21a;
  --paprika: #e85d2a;
  --berry: #ca2c8b;
  --leaf: #71a635;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(16, 42, 101, 0.1);
  --game-pink: #ee3b86;
  --game-purple: #341b5f;
  --game-sky: #4fc3ff;
  --game-cream: #fff6df;
}

/* DIVAR 360 v123: estabilidade mobile, navegação compacta e vitrine de módulos. */
.mobile-story-support,
.mobile-story-steps,
.mobile-entry-copy,
.profile-mobile-menu-button {
  display: none;
}

.site-social-instagram svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

.modules-showcase-copy {
  max-width: 62ch;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  line-height: 1.5;
}

@keyframes divar-scroll-hand-gesture {
  0%, 100% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(7px) rotate(2deg); }
}

@media (max-width: 760px) {
  .hero-scroll-cue-hand {
    animation: divar-scroll-hand-gesture 1.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  .hero-scroll-cue-hand-motion {
    animation: none;
  }

  .mobile-story-support {
    display: block;
    max-width: 31ch;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.42;
  }

  .mobile-story-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-story-steps span {
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    padding: 6px 8px;
    background: rgba(72, 31, 115, 0.18);
  }

  .mobile-entry-copy {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.42;
    text-align: center;
  }
}

@media (max-width: 760px) and (min-height: 721px) and (prefers-reduced-motion: no-preference) {
  .scroll-stack-card-story.is-story-compact {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 22px;
    padding: 92px 16px 38px;
  }

  .scroll-stack-card-story.is-story-compact .section-copy {
    align-self: end;
  }

  .scroll-stack-card-story.is-story-compact .world-card {
    width: min(100%, 360px);
    max-height: min(35svh, 310px);
    justify-self: center;
  }

  .scroll-stack-card-story.is-story-compact .world-card img {
    max-height: min(35svh, 310px);
  }

  .game-entry-scroll.scroll-stack-card-entry {
    display: grid;
    align-content: center;
    padding: 86px 16px 44px;
  }

  .game-entry-scroll .game-entry-scene {
    display: grid;
    gap: 18px;
    align-content: center;
  }

  .game-entry-scroll .game-entry-scene img {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-sidebar {
    position: relative;
    gap: 0;
    overflow: visible;
  }

  .profile-page .profile-persona {
    min-height: 68px;
    grid-template-columns: 48px minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 8px;
  }

  .profile-mobile-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    padding: 0;
    background: rgba(52, 27, 95, 0.5);
    cursor: pointer;
  }

  .profile-mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(2) { opacity: 0; }
  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .profile-page .profile-sidebar > .profile-tabs,
  .profile-page .profile-sidebar > .admin-sidebar-navigation,
  .profile-page .profile-sidebar > .profile-sidebar-hall,
  .profile-page .profile-sidebar > .profile-sidebar-logout {
    display: none;
  }

  .profile-sidebar.is-mobile-menu-open > .profile-tabs:not([hidden]),
  .profile-sidebar.is-mobile-menu-open > .admin-sidebar-navigation:not([hidden]) {
    display: grid;
    grid-column: 1;
    width: 100%;
    margin-top: 10px;
  }

  .profile-sidebar.is-mobile-menu-open > .profile-sidebar-hall,
  .profile-sidebar.is-mobile-menu-open > .profile-sidebar-logout {
    display: flex;
    grid-column: 1;
    width: 100%;
    margin-top: 10px;
  }
}

/* Os quatro módulos existentes cabem na biblioteca horizontal; duas barras concorrentes causavam salto e repaint azul. */
@media (min-width: 640px) and (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .mission-chooser {
    overflow: hidden;
    padding: 16px;
  }

  .mission-chooser-card {
    width: min(calc(100vw - 32px), 820px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    gap: 6px;
    padding: 14px 16px;
  }

  .mission-chooser-card h1 {
    font-size: clamp(1.25rem, 2.7vw, 1.7rem);
  }

  .mission-chooser-card > span {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .mission-chooser .game-mode-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .mission-chooser .game-mode-card {
    min-width: 0;
    min-height: 126px;
    padding: 8px;
    scroll-snap-align: none;
  }

  .mission-chooser .game-mode-card h2 { font-size: 0.94rem; }
  .mission-chooser .game-mode-card p { font-size: 0.62rem; line-height: 1.16; }
  .mission-chooser .game-mode-card .game-mode-action { min-height: 26px; padding: 5px 7px; font-size: 0.58rem; }
}

/* A regra anterior de 60 px tinha especificidade maior que a compactação do Match. */
@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
  .play-page.is-game-focused.is-match-playing .match-live-panel .match-question-banner {
    min-height: 24px;
    height: 24px;
    padding: 2px 8px;
  }

  .play-page.is-game-focused.is-match-playing .match-live-panel .memory-status-grid {
    top: calc(max(7px, env(safe-area-inset-top)) + 29px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue-hand {
    animation: none;
  }
}

/* DIVAR 360 v91: console administrativa dedicada */
.profile-page.is-admin-console {
  background:
    radial-gradient(circle at 96% 0%, rgba(86, 141, 223, 0.13), transparent 26rem),
    #f5f4f8;
}

.profile-page.is-admin-console .profile-hero,
.profile-page.is-admin-console [data-member-navigation] {
  display: none;
}

.profile-page.is-admin-console .profile-topbar {
  margin: 0 0 18px;
  padding-top: 22px;
}

.profile-page.is-admin-console .profile-topbar a {
  color: #55446d;
  font-size: 0.76rem;
  font-weight: 780;
}

.profile-page.is-admin-console .profile-sidebar {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 22px 22px 0;
  background:
    radial-gradient(circle at 25% 8%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #2d2453 0%, #3d2868 52%, #5a2a72 100%);
  box-shadow: 10px 0 28px rgba(39, 23, 73, 0.12);
}

.profile-page.is-admin-console .profile-sidebar-heading {
  gap: 10px;
}

.profile-page.is-admin-console .profile-sidebar-title {
  font-size: 0.73rem;
  letter-spacing: 0.075em;
}

.profile-page.is-admin-console .profile-persona {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.profile-page.is-admin-console .profile-persona-label {
  color: rgba(255, 255, 255, 0.64);
}

.profile-page.is-admin-console .profile-persona-role {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar-navigation {
  display: grid;
  gap: 5px;
}

.admin-sidebar-navigation[hidden] {
  display: none;
}

.admin-sidebar-navigation a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-sidebar-navigation a:hover,
.admin-sidebar-navigation a:focus-visible,
.admin-sidebar-navigation a.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.admin-sidebar-navigation a:focus-visible {
  outline: 2px solid #f6c84a;
  outline-offset: 2px;
}

.admin-sidebar-navigation a span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #f9d35a;
  font-size: 0.66rem;
  font-weight: 900;
}

.profile-page.is-admin-console .profile-sidebar-hall {
  border-width: 1px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.admin-console {
  display: grid;
  gap: 18px;
  margin-top: 0 !important;
  padding-bottom: 54px;
  scroll-margin-top: 18px;
}

.admin-console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #ded9e8;
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 38px);
  background:
    radial-gradient(circle at 88% 18%, rgba(246, 200, 74, 0.25), transparent 21%),
    linear-gradient(128deg, #fff 0%, #faf8ff 62%, #f0ebfb 100%);
  box-shadow: 0 14px 34px rgba(48, 31, 80, 0.08);
}

.admin-console-header h1 {
  margin: 5px 0 0;
  color: #2e2152;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.admin-console-header > div:first-child > p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: #655a71;
  font-size: 0.96rem;
  font-weight: 620;
  line-height: 1.55;
}

.admin-eyebrow {
  margin: 0;
  color: #b72973;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-console-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #d9d2e5;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #4a3a62;
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.admin-access-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9d63;
  box-shadow: 0 0 0 4px rgba(46, 157, 99, 0.12);
}

.admin-primary-button,
.admin-secondary-button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 15px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-primary-button {
  width: fit-content;
  border: 1px solid #3a2865;
  background: #3a2865;
  color: #fff;
  box-shadow: 0 5px 12px rgba(58, 40, 101, 0.16);
}

.admin-secondary-button {
  border: 1px solid #d8d1e2;
  background: #fff;
  color: #45325f;
}

.admin-feedback[data-state="preview"] {
  margin: 0;
  border-color: #ddd5eb;
  background: #f5f1fb;
  color: #594a6e;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-card {
  min-width: 0;
  border: 1px solid #ded9e7;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(48, 31, 80, 0.055);
}

.admin-metric-card > span,
.admin-metric-card small {
  display: block;
  color: #756b7f;
  font-size: 0.69rem;
  font-weight: 720;
}

.admin-metric-card strong {
  display: block;
  margin: 8px 0 3px;
  color: #322452;
  font-size: 2rem;
  line-height: 1;
}

.admin-metric-alert strong {
  color: #c32974;
}

.admin-workspace-card {
  min-width: 0;
  border: 1px solid #ded9e7;
  border-radius: 18px;
  padding: clamp(20px, 2.5vw, 28px);
  background: #fff;
  box-shadow: 0 9px 25px rgba(48, 31, 80, 0.055);
  scroll-margin-top: 18px;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-section-heading h2 {
  margin: 5px 0 0;
  color: #332452;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.admin-section-heading > div > p:last-child {
  max-width: 660px;
  margin: 9px 0 0;
  color: #706576;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.admin-section-count {
  border-radius: 999px;
  padding: 7px 10px;
  background: #faedf4;
  color: #b7276c;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-approvals-section .admin-pending-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.admin-approvals-section .admin-pending-card {
  align-content: space-between;
  border-color: #e4dfeb;
  padding: 16px;
  background: #fbfafc;
}

.admin-approvals-section .profile-inline-action {
  min-height: 39px;
  margin: 0;
  border: 1px solid #3b2865;
  background: #3b2865;
  color: #fff;
  box-shadow: none;
}

.admin-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.admin-form label,
.admin-team-filter {
  display: grid;
  gap: 6px;
  color: #4b3c60;
  font-size: 0.72rem;
  font-weight: 820;
}

.admin-form label span {
  color: #84788f;
  font-weight: 650;
}

.admin-form input,
.admin-form textarea,
.admin-team-filter select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dcd6e4;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fbfafc;
  color: #332452;
  font: inherit;
  font-size: 0.82rem;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form :is(input, textarea):focus-visible,
.admin-team-filter select:focus-visible {
  outline: 3px solid rgba(91, 70, 139, 0.18);
  outline-offset: 1px;
  border-color: #7659ad;
}

.admin-form-note {
  margin: -2px 0 0;
  border-left: 3px solid #e1a92f;
  padding: 8px 10px;
  background: #fff9e9;
  color: #6f6040;
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.45;
}

.admin-team-workspace .admin-team-section {
  border-top: 1px solid #ebe7f0;
  padding-top: 20px;
}

.admin-team-workspace .admin-team-section h3 {
  color: #3e2d5d;
}

.admin-team-workspace .admin-team-list li {
  border-color: #e4dfeb;
  background: #fbfafc;
}

.admin-insights-heading {
  align-items: end;
}

.admin-team-filter {
  width: min(100%, 280px);
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.admin-insight-panel,
.admin-participation-panel {
  min-width: 0;
  border: 1px solid #e5e0eb;
  border-radius: 14px;
  padding: 18px;
  background: #fbfafc;
}

.admin-participation-panel {
  margin-top: 14px;
}

.admin-insight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-insight-title h3 {
  margin: 0;
  color: #3b2b5b;
  font-size: 0.92rem;
}

.admin-insight-title > span {
  color: #83788e;
  font-size: 0.64rem;
  font-weight: 720;
}

.admin-profile-distribution {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.admin-distribution-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.admin-profile-code {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--profile-color) 13%, white);
  color: var(--profile-color);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-distribution-row > div strong {
  display: block;
  margin-bottom: 5px;
  color: #504360;
  font-size: 0.7rem;
}

.admin-distribution-row > div > span {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e5ed;
}

.admin-distribution-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--profile-color);
}

.admin-distribution-row b {
  color: #4a3a61;
  font-size: 0.72rem;
  text-align: right;
}

.admin-access-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, minmax(24px, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
}

.admin-access-bars > div {
  height: 100%;
  display: grid;
  grid-template-rows: 20px minmax(0, 1fr) 20px;
  justify-items: center;
  align-items: end;
}

.admin-access-bars strong,
.admin-access-bars span {
  color: #756a7f;
  font-size: 0.62rem;
  font-weight: 760;
}

.admin-access-bars i {
  width: min(100%, 28px);
  min-height: 8px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #785eb0, #433164);
}

.admin-participation-table {
  margin-top: 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #aa9abd #f1eef4;
}

.admin-participation-table table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.admin-participation-table th,
.admin-participation-table td {
  border-bottom: 1px solid #e8e4ed;
  padding: 12px 10px;
  color: #665b70;
  font-size: 0.72rem;
  text-align: left;
  vertical-align: middle;
}

.admin-participation-table th {
  color: #82778b;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-participation-table td strong,
.admin-participation-table td > span {
  display: block;
}

.admin-participation-table td strong {
  color: #392953;
}

.admin-participation-table td > span:not(.admin-profile-pill) {
  margin-top: 3px;
  color: #857a8e;
  font-size: 0.66rem;
}

.admin-profile-pill {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--profile-color) 28%, white);
  border-radius: 999px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--profile-color) 9%, white);
  color: var(--profile-color);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace-grid,
  .admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .profile-page.is-admin-console .profile-sidebar {
    border: 0;
    border-radius: 18px;
  }

  .admin-sidebar-navigation {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
  }
}

@media (max-width: 680px) {
  .admin-console-header,
  .admin-section-heading,
  .admin-insights-heading {
    display: grid;
  }

  .admin-console-actions {
    flex-wrap: wrap;
  }

  .admin-secondary-button,
  .admin-primary-button,
  .admin-team-filter {
    width: 100%;
  }

  .admin-metric-grid,
  .admin-approvals-section .admin-pending-list {
    grid-template-columns: 1fr;
  }

  .admin-pending-actions {
    grid-template-columns: 1fr;
  }

  .admin-insight-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-access-bars {
    gap: 4px;
  }
}

/* DIVAR 360 v90: acesso real à área de membros e prévia local da gestão */
.profile-page.profile-session-pending .profile-shell {
  visibility: hidden;
}

.admin-panel {
  min-width: 0;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-panel-heading h2,
.admin-team-section h3 {
  margin: 0;
}

.admin-panel-heading .profile-inline-action {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

.admin-feedback {
  min-height: 1.35em;
  margin: 14px 0 0;
  color: #685b70;
  font-size: 0.83rem;
  font-weight: 720;
}

.admin-feedback[data-state="success"] {
  color: #257045;
}

.admin-feedback[data-state="error"] {
  color: #ae2458;
}

.admin-feedback[data-state="warning"] {
  color: #765000;
}

.admin-feedback[data-state="preview"] {
  border: 1px solid rgba(92, 65, 142, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f3edff;
  color: #4a3278;
}

.profile-page[data-admin-preview="true"] :disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

/* Busca local preserva seleções e botões de aprovação existentes. */
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-quick-actions a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(67, 36, 111, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #42236f;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.admin-quick-actions a span { color: #685b70; font-size: 0.85rem; line-height: 1.5; }
.admin-quick-actions a:hover { border-color: #ed3687; }
.admin-quick-actions a:focus-visible,
.admin-search-field input:focus-visible { outline: 3px solid #7255b7; outline-offset: 3px; }
.admin-list-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.admin-search-field { display: grid; flex: 1 1 240px; gap: 7px; min-width: 0; color: #42236f; font-size: 0.85rem; font-weight: 700; }
.admin-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(67, 36, 111, 0.3);
  border-radius: 10px;
  background: #fff;
  color: #42236f;
  font: inherit;
}
.admin-search-count { margin: 0 0 12px; color: #685b70; font-size: 0.8rem; }
.admin-pending-card[hidden], .admin-team-list li[hidden],
.admin-empty-copy[hidden] { display: none; }
@media (max-width: 900px) {
  .admin-quick-actions { grid-template-columns: 1fr; }
  .profile-page.is-admin-console .admin-workspace-card,
  .profile-page.is-admin-console .admin-console-header { scroll-margin-top: 126px; }
}

.admin-pending-list,
.admin-team-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.admin-pending-card,
.admin-team-list li {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(67, 36, 111, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-pending-card > div:first-child,
.admin-team-list li {
  min-width: 0;
}

.admin-pending-card strong,
.admin-team-list strong {
  display: block;
  color: #42236f;
  font-size: 0.92rem;
}

.admin-pending-card span,
.admin-team-list span,
.admin-empty-copy {
  display: block;
  margin-top: 3px;
  color: #685b70;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-pending-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.admin-team-select,
.admin-team-form input,
.admin-team-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(67, 36, 111, 0.24);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.9);
  color: #42236f;
  font: inherit;
}

.admin-team-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-team-form label {
  display: grid;
  gap: 6px;
  color: #42236f;
  font-size: 0.77rem;
  font-weight: 850;
}

.admin-team-form label span {
  color: #756584;
  font-weight: 650;
}

.admin-team-form textarea {
  resize: vertical;
}

.admin-team-form :is(input, textarea, select):focus-visible,
.admin-team-select:focus-visible {
  outline: 3px solid rgba(242, 61, 142, 0.32);
  outline-offset: 2px;
}

.admin-team-section {
  margin-top: 22px;
}

.admin-team-section h3 {
  color: #fff;
  font-size: 0.83rem;
}

.profile-panel-accent .admin-team-list li,
.profile-panel-accent .admin-empty-copy {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(35, 16, 63, 0.18);
  color: rgba(255, 255, 255, 0.84);
}

.profile-panel-accent .admin-team-list strong,
.profile-panel-accent .admin-team-list span {
  color: inherit;
}

.profile-panel-accent .admin-team-form label {
  color: #fff;
}

.profile-panel-accent .admin-team-form label span {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 640px) {
  .admin-panel-heading,
  .admin-pending-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-panel-heading .profile-inline-action,
  .admin-pending-actions .profile-inline-action,
  .admin-team-form .profile-inline-action {
    width: 100%;
    justify-content: center;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(14, 139, 125, 0.08), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
}

.top-nav a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(16, 42, 101, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 42, 101, 0.96), rgba(14, 139, 125, 0.94) 56%, rgba(245, 178, 26, 0.9)),
    #102a65;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe9a9;
}

.hero h1,
.panel h2,
.selected-game h3,
.section-title h3 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 3.6rem;
  line-height: 1;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.hero-metrics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.45rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.hero-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
}

.hero-image-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: #fff;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.hero-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.hero-note strong {
  color: var(--navy);
}

.hero-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wide-panel {
  margin: 18px 0;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading p,
.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.panel-heading.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.form-stack,
.list-stack,
.question-list {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: 3px solid rgba(14, 139, 125, 0.18);
  border-color: var(--teal);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary,
.button.ghost {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--text);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--teal);
}

.lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 16px;
  margin-bottom: 16px;
}

.mission-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mission-step {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mission-step span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.mission-step strong {
  font-size: 1.02rem;
}

.mission-step small {
  color: var(--muted);
}

.mission-step.is-active {
  border-color: rgba(14, 139, 125, 0.46);
  background: #e2f7f1;
}

.selected-game {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(16, 42, 101, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-warm);
}

.selected-game h3 {
  color: var(--navy);
  font-size: 1.4rem;
}

.selected-game p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-title {
  margin: 18px 0 10px;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.question-card,
.list-item,
.game-card,
.metric-card,
.catalog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.question-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.question-title {
  margin: 0;
  font-weight: 800;
}

.score-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.score-options label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.score-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.score-options label:has(input:checked) {
  border-color: var(--teal);
  background: #dff7f0;
  color: var(--teal-dark);
}

.result-box {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #ecfdf5;
  white-space: pre-wrap;
}

.metric-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.game-card,
.catalog-card,
.list-item {
  padding: 14px;
}

.catalog-card {
  display: grid;
  gap: 10px;
}

.catalog-card h3,
.game-card h3 {
  margin: 0;
  color: var(--navy);
}

.catalog-card p,
.game-card p,
.list-item p {
  margin: 0;
  color: var(--muted);
}

.catalog-card[data-status="api"] {
  border-top: 4px solid var(--teal);
}

.catalog-card[data-status="prototipo"] {
  border-top: 4px solid var(--sun);
}

.catalog-card[data-status="futuro"] {
  border-top: 4px solid var(--berry);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
}

.distribution-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 38px 1fr 64px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--paprika);
}

.score-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.log-box {
  max-height: 280px;
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #7fa39d #eef6f4;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1220;
  color: #e6edf3;
  white-space: pre-wrap;
}

.danger {
  color: var(--danger);
}

.marketing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(238, 59, 134, 0.18), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(79, 195, 255, 0.2), transparent 26%),
    #1f1f1f;
  color: #24211f;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.site-brand,
.site-nav,
.landing-actions,
.quick-actions,
.hud-left,
.hud-actions {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 10px;
  color: var(--game-purple);
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #1f1f1f;
  border-radius: 8px;
  background: var(--game-pink);
  color: #fff;
  font-weight: 950;
}

.site-brand strong,
.site-brand small {
  display: block;
  line-height: 1.1;
}

.site-brand strong {
  font-size: 1.02rem;
}

.site-brand small {
  color: #6b6274;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  color: #292526;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--game-pink);
}

.site-nav .nav-cta {
  background: var(--game-pink);
  color: #fff;
}

.landing-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 128px clamp(16px, 5vw, 72px) 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 16%),
    linear-gradient(135deg, #98e6ff 0%, #f7a7d6 48%, #ffcf6b 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 9%, transparent 9% 16%, rgba(255, 255, 255, 0.18) 16% 22%, transparent 22%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 96px);
  opacity: 0.46;
  pointer-events: none;
}

.landing-hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin: 0 auto;
}

.hero-copy-card {
  min-width: 0;
  border: 3px solid #211e24;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 14px 14px 0 rgba(52, 27, 95, 0.24);
}

.landing-kicker {
  margin: 0 0 8px;
  color: var(--game-pink);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy-card h1 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(2rem, 4.1vw, 3.95rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(0, 0, 0, 0.16);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy-card p {
  max-width: 660px;
  margin: 20px 0 0;
  color: #443e49;
  font-size: 1.08rem;
  font-weight: 700;
}

.landing-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.play-button,
.outline-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 24px;
  font-weight: 950;
  text-decoration: none;
}

.play-button {
  border: 3px solid #211e24;
  background: var(--game-pink);
  color: #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.outline-button {
  border: 3px solid var(--game-pink);
  background: #fff;
  color: var(--game-pink);
}

.outline-button.dark {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.character-poster {
  min-width: 0;
  height: min(68vh, 650px);
  min-height: 440px;
  overflow: hidden;
  border: 3px solid #211e24;
  border-radius: 8px;
  background: #fff;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.2);
}

.character-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
}

.hud-left {
  position: absolute;
  top: 98px;
  left: clamp(16px, 3vw, 44px);
  z-index: 4;
  gap: 14px;
}

.hud-card {
  min-width: 220px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 10px;
  align-items: center;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-pink);
  box-shadow: 0 6px 0 rgba(238, 59, 134, 0.35);
}

.hud-card .hud-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ffe1ef;
  color: var(--game-pink);
  font-size: 0.82rem;
  font-weight: 950;
}

.hud-card span {
  font-size: 0.82rem;
  font-weight: 950;
}

.hud-card strong {
  font-size: 1.55rem;
  line-height: 1;
}

.hud-actions {
  position: absolute;
  top: 98px;
  right: clamp(16px, 3vw, 44px);
  z-index: 4;
  gap: 10px;
}

.hud-actions a {
  min-width: 56px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 3px solid #a51f5f;
  border-radius: 8px;
  background: var(--game-pink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.quick-actions {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 32px));
  justify-content: center;
  gap: 16px;
  margin: -62px auto 0;
}

.quick-actions a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--game-pink);
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(238, 59, 134, 0.28);
}

.quick-actions span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--game-pink);
  color: #fff;
  font-weight: 950;
}

.quick-actions strong {
  font-size: 1.08rem;
}

.story-section,
.games-section,
.modules-section,
.admin-preview {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  padding: 82px 0 54px;
}

.section-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.story-section .section-copy h2,
.modules-section .section-copy h2 {
  color: #fff;
}

.section-copy p:not(.landing-kicker) {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.section-copy.centered {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.factor-grid,
.game-card-grid,
.module-track {
  display: grid;
  gap: 14px;
}

.factor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.factor-grid article,
.module-track article,
.play-card {
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.12);
}

.factor-grid strong,
.factor-grid span {
  display: block;
}

.factor-grid strong,
.play-card h3,
.module-track h3 {
  color: var(--game-purple);
}

.factor-grid span,
.play-card p,
.module-track p {
  color: #615c66;
}

.games-section {
  padding: 54px 0;
}

.game-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.play-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-color: rgba(238, 59, 134, 0.48);
}

.play-card span,
.module-track span {
  width: fit-content;
  border-radius: 8px;
  padding: 5px 9px;
  background: #ffe2ef;
  color: var(--game-pink);
  font-size: 0.78rem;
  font-weight: 950;
}

.play-card h3,
.module-track h3 {
  margin: 0;
  font-size: 1.45rem;
}

.play-card p,
.module-track p {
  margin: 0;
}

.play-card a {
  width: fit-content;
  margin-top: 8px;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--game-pink);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.play-card.is-live {
  border-color: var(--game-pink);
  box-shadow: 8px 8px 0 rgba(238, 59, 134, 0.24);
}

.modules-section {
  padding: 54px 0 76px;
}

.module-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.module-track article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  border: 3px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(52, 27, 95, 0.95), rgba(238, 59, 134, 0.88));
  color: #fff;
}

.admin-preview h2,
.admin-preview p {
  margin: 0;
}

.admin-preview h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.admin-preview p:not(.landing-kicker) {
  max-width: 780px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 980px) {
  .app-header {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 24px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 10px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-image-frame {
    aspect-ratio: 16 / 10;
  }

  .hero-image-frame img {
    object-position: center 14%;
  }

  .lobby-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 24px;
  }

  .landing-hero-stage,
  .story-section {
    grid-template-columns: 1fr;
  }

  .landing-hero-stage {
    min-height: 0;
  }

  .hud-left,
  .hud-actions {
    position: static;
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
  }

  .hud-left {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hud-actions {
    justify-content: center;
  }

  .quick-actions {
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .game-card-grid,
  .module-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-preview {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .panel-heading.split,
  .status-band {
    align-items: stretch;
    flex-direction: column;
  }

  .section-grid,
  .metric-grid,
  .cards-grid,
  .score-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .mission-board {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .character-poster {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .factor-grid,
  .game-card-grid,
  .module-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .layout {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
  }

  .app-header {
    padding: 12px 10px;
  }

  .top-nav a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .hero,
  .panel {
    padding: 16px;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions .button,
  .selected-game .button {
    width: 100%;
  }

  .score-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .hero-copy-card {
    padding: 18px;
  }

  .landing-actions a,
  .quick-actions a,
  .admin-preview a {
    width: 100%;
  }

  .hud-card {
    min-width: 0;
    width: 100%;
  }

  .quick-actions {
    width: min(100% - 20px, 1180px);
  }
}

/* DIVAR 360 v68: o elenco da home ganha vida sem deslocar a composição aprovada. */
.hero-float-showcase {
  position: relative;
  isolation: isolate;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-hero .hero-float-showcase img {
    transform-origin: center 58%;
    animation: segurancamente-ensemble-float 5.8s ease-in-out -1.2s infinite;
    will-change: transform;
  }
}

@keyframes segurancamente-ensemble-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.35deg);
  }

  50% {
    transform: translate3d(0, -9px, 0) rotate(0.35deg);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .landing-hero .hero-float-showcase img {
    animation-duration: 6.6s;
  }

  @keyframes segurancamente-ensemble-float {
    0%,
    100% {
      transform: translate3d(0, 0, 0) rotate(-0.2deg);
    }

    50% {
      transform: translate3d(0, -5px, 0) rotate(0.2deg);
    }
  }
}

/* Public landing refinement */
:root {
  --page-safe: clamp(20px, 5vw, 72px);
}

.marketing-page {
  background: #242124;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
}

.landing-hero {
  min-height: 100svh;
  padding: 132px var(--page-safe) 42px;
  background:
    linear-gradient(90deg, rgba(32, 20, 48, 0.9) 0%, rgba(32, 20, 48, 0.72) 37%, rgba(32, 20, 48, 0.22) 66%, rgba(32, 20, 48, 0.5) 100%),
    url("/assets/divar360-elenco-painel.webp") center / cover no-repeat,
    #ee3b86;
}

.landing-hero::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 96px);
  opacity: 0.34;
}

.landing-hero-stage {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}

.hero-copy-card {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy-card h1 {
  color: #fff;
  font-size: clamp(2.75rem, 7vw, 6.6rem);
  text-shadow: 0 4px 0 #341b5f, 0 10px 32px rgba(0, 0, 0, 0.42);
}

.hero-copy-card p {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.api-reality-note {
  max-width: 620px;
  margin-top: 20px;
  border-left: 5px solid var(--game-pink);
  border-radius: 8px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #332942;
  font-weight: 750;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.api-reality-note strong {
  color: var(--game-purple);
}

.factor-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 38px;
}

.character-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.character-lineup article {
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.14);
}

.character-lineup img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.character-lineup strong,
.character-lineup span {
  display: block;
}

.character-lineup strong {
  margin-top: 10px;
  color: var(--game-purple);
  font-size: 1.08rem;
}

.character-lineup span {
  margin-top: 4px;
  color: #615c66;
}

.games-section,
.modules-section,
.admin-preview,
.story-section {
  width: min(1180px, calc(100% - 40px));
}

/* Player page */
.play-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff8fb 0%, #eaf8ff 46%, #fff8e8 100%);
  color: var(--text);
}

.player-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px var(--page-safe);
  border-bottom: 1px solid rgba(52, 27, 95, 0.16);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.play-main {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 64px;
}

.play-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
  border: 3px solid #211e24;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(238, 59, 134, 0.96), rgba(79, 195, 255, 0.82) 55%, rgba(255, 207, 107, 0.9));
  box-shadow: 14px 14px 0 rgba(52, 27, 95, 0.22);
}

.play-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.96;
  text-shadow: 0 4px 0 #341b5f;
}

.play-copy p:not(.landing-kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  font-weight: 800;
}

.crew-stage {
  min-width: 0;
  overflow: hidden;
  border: 3px solid #211e24;
  border-radius: 8px;
  background: #fff;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18);
}

.crew-stage img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.play-panel,
.game-room,
.api-status-panel {
  border: 1px solid rgba(52, 27, 95, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.play-panel {
  padding: 20px;
}

.session-console {
  display: grid;
  align-content: start;
  gap: 12px;
}

.session-console strong {
  color: var(--game-purple);
  overflow-wrap: anywhere;
}

.session-console p {
  margin: 0;
  color: var(--muted);
}

.game-room {
  margin-top: 24px;
  padding: clamp(18px, 4vw, 30px);
}

.room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.room-header h2,
.api-status-panel h2 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.room-header p:not(.landing-kicker),
.api-status-panel p:not(.landing-kicker) {
  max-width: 760px;
  margin: 12px 0 0;
  color: #615c66;
}

.score-chip {
  min-width: 126px;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--game-pink);
  text-align: center;
  box-shadow: 0 6px 0 rgba(238, 59, 134, 0.22);
}

.score-chip span,
.score-chip strong {
  display: block;
}

.score-chip span {
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-chip strong {
  font-size: 2rem;
  line-height: 1;
}

.game-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 18px;
  margin-top: 24px;
}

.question-shell {
  min-width: 0;
  border: 2px solid rgba(238, 59, 134, 0.35);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background: #fff8fb;
}

.progress-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--game-purple);
  font-weight: 900;
}

.question-shell h3 {
  margin: 28px 0;
  color: #2b2432;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.answer-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.answer-button {
  min-height: 78px;
  border: 3px solid #211e24;
  border-radius: 8px;
  background: var(--game-pink);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.16);
}

.answer-button:nth-child(2) {
  background: var(--game-purple);
}

.answer-feedback {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-weight: 850;
}

.score-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  background: #eef9ff;
}

.score-panel img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
  background: #fff;
}

.score-panel h3,
.score-panel p {
  margin: 0;
}

.score-panel h3 {
  color: var(--game-purple);
}

.score-panel p {
  color: #615c66;
}

.score-actions {
  display: grid;
  gap: 10px;
}

.api-status-panel {
  margin-top: 24px;
  padding: clamp(18px, 4vw, 30px);
}

.api-status-panel .section-copy h2 {
  color: var(--game-purple);
}

.api-status-panel .section-copy p:not(.landing-kicker) {
  color: #615c66;
}

.api-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.api-status-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.api-status-grid strong,
.api-status-grid span {
  display: block;
}

.api-status-grid strong {
  color: var(--game-purple);
}

.api-status-grid span {
  margin-top: 4px;
  color: #615c66;
}

.api-games-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .landing-hero {
    padding-top: 96px;
    background-position: 58% center;
  }

  .landing-hero-stage {
    min-height: 520px;
  }

  .play-hero-panel,
  .game-play-layout,
  .story-section {
    grid-template-columns: 1fr;
  }

  .access-grid,
  .api-status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .player-header {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(238, 59, 134, 0.5) rgba(255, 255, 255, 0.45);
  }

  .site-nav::-webkit-scrollbar {
    height: 6px;
  }

  .site-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.45);
  }

  .site-nav::-webkit-scrollbar-thumb {
    background: rgba(238, 59, 134, 0.5);
    border-radius: 999px;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .landing-hero {
    padding: 24px 20px 34px;
    background:
      linear-gradient(180deg, rgba(32, 20, 48, 0.82) 0%, rgba(32, 20, 48, 0.62) 42%, rgba(32, 20, 48, 0.78) 100%),
      url("/assets/divar360-elenco-painel.webp") 50% top / auto 100% no-repeat,
      #ee3b86;
  }

  .landing-hero-stage {
    min-height: 560px;
    align-items: end;
  }

  .hud-left,
  .hud-actions {
    width: min(1180px, calc(100% - 40px));
  }

  .hero-copy-card h1 {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
  }

  .api-reality-note {
    font-size: 0.92rem;
  }

  .quick-actions,
  .play-main,
  .games-section,
  .modules-section,
  .admin-preview,
  .story-section,
  .factor-section {
    width: min(1180px, calc(100% - 40px));
  }

  .character-lineup,
  .access-grid,
  .api-status-grid,
  .room-header {
    grid-template-columns: 1fr;
  }

  .room-header {
    display: grid;
  }

  .score-chip {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-nav a {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .landing-actions {
    display: grid;
  }

  .landing-actions a {
    width: 100%;
  }

  .quick-actions a {
    min-width: 0;
  }

  .play-main {
    margin-top: 18px;
  }

  .play-hero-panel,
  .game-room,
  .api-status-panel,
  .play-panel {
    padding: 16px;
  }

  .crew-stage img {
    min-height: 220px;
  }

  .progress-row,
  .answer-buttons {
    grid-template-columns: 1fr;
  }

  .answer-button {
    min-height: 66px;
  }
}

/* Public landing v2: Lesa-inspired continuity without exposing internal tech copy */
.marketing-page {
  background:
    linear-gradient(180deg, #f23897 0%, #f35aa9 28%, #8357e5 58%, #37bce9 82%, #fff8e9 100%);
}

.landing-hero {
  min-height: 100svh;
  align-items: stretch;
  padding: 132px var(--page-safe) 42px;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.42), transparent 14%),
    radial-gradient(circle at 82% 18%, rgba(78, 218, 255, 0.34), transparent 18%),
    linear-gradient(180deg, #f83e9d 0%, #f756ac 45%, #8e63ea 100%);
}

.landing-hero::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 84% 20%, rgba(87, 221, 255, 0.26), transparent 18%);
  opacity: 0.8;
}

.landing-hero-stage {
  width: min(1240px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(500px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
}

.hero-copy-card {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy-card h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3rem, 4.7vw, 4.35rem);
  text-shadow: 0 5px 0 #341b5f, 0 18px 40px rgba(52, 27, 95, 0.34);
}

.hero-copy-card p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.api-reality-note {
  max-width: 640px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-left: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #44324c;
}

.hero-float-showcase {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: floatCrew 7s ease-in-out infinite;
}

.hero-float-showcase img {
  width: min(100%, 780px);
  max-height: 590px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 34px 30px rgba(52, 27, 95, 0.24));
}

.landing-hero .hud-left,
.landing-hero .hud-actions {
  top: 124px;
}

.hero-float-showcase::before,
.hero-float-showcase::after,
.learning-world::before,
.learning-world::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-float-showcase::before {
  display: none;
}

.hero-float-showcase::after {
  display: none;
}

.divar-banner-card {
  position: relative;
  z-index: 5;
  width: min(1040px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -36px auto 0;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 12px 12px 0 rgba(52, 27, 95, 0.18);
  backdrop-filter: blur(8px);
}

.divar-banner-card img {
  width: 100%;
  max-height: 210px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.divar-banner-card a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #211e24;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--game-pink);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.story-section {
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  align-items: center;
  padding: 92px 0 64px;
}

.world-card {
  min-width: 0;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 12px 12px 0 rgba(52, 27, 95, 0.18);
  backdrop-filter: blur(8px);
}

.world-card img {
  width: 100%;
  aspect-ratio: 16 / 6.7;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  filter: drop-shadow(0 18px 22px rgba(52, 27, 95, 0.18));
}

.float-soft {
  animation: floatCrew 8.5s ease-in-out infinite;
}

.learning-world {
  position: relative;
  overflow: hidden;
  padding: 76px max(var(--page-safe), calc((100vw - 1180px) / 2)) 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 230, 90, 0.34), transparent 17%),
    radial-gradient(circle at 92% 10%, rgba(76, 219, 255, 0.4), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.learning-world::before {
  width: 160px;
  height: 160px;
  left: 0;
  top: 24px;
  background: rgba(255, 255, 255, 0.18);
}

.learning-world::after {
  width: 120px;
  height: 120px;
  right: 0;
  bottom: 30px;
  background: rgba(255, 255, 255, 0.22);
}

.learning-world .factor-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 28px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-section {
  padding: 74px 0 58px;
}

.game-entry-scene {
  width: min(1180px, 100%);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  margin: 0 auto 34px;
  background: #fff;
  box-shadow: 14px 14px 0 rgba(52, 27, 95, 0.18);
}

.game-entry-scene img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
  object-position: center;
}

.games-section .section-copy p:not(.landing-kicker),
.modules-section .section-copy p:not(.landing-kicker) {
  color: rgba(255, 255, 255, 0.86);
}

.public-cta {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 64px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    #fff;
  box-shadow: 14px 14px 0 rgba(52, 27, 95, 0.18);
}

.public-cta h2,
.public-cta p {
  margin: 0;
}

.public-cta h2 {
  color: var(--game-purple);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

.public-cta p:not(.landing-kicker) {
  max-width: 720px;
  margin-top: 10px;
  color: #615c66;
}

@keyframes floatCrew {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-16px) rotate(0.5deg);
  }
}

@keyframes driftBubble {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -18px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-showcase,
  .float-soft,
  .hero-float-showcase::before,
  .hero-float-showcase::after {
    animation: none;
  }
}

/* DIVAR 360 v95: folha anterior visível e controles inspirados em couro */
.storybook-left-page {
  display: block;
  padding: 0;
}

.storybook-cover-page {
  width: 100%;
  min-height: 604px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px clamp(30px, 4.5vw, 62px) 30px;
}

.storybook-cover-page[hidden],
.storybook-previous-page[hidden] {
  display: none;
}

.storybook-previous-page[hidden]::before,
.storybook-previous-page[hidden]::after {
  content: none;
}

.storybook-previous-page {
  position: relative;
  width: 100%;
  min-height: 604px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px clamp(30px, 4.5vw, 62px);
  text-align: center;
}

.storybook-previous-page::before {
  position: absolute;
  top: 36px;
  left: 42px;
  color: #9c8d94;
  content: "Página anterior";
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storybook-previous-page .storybook-page-number {
  color: #978995;
}

.storybook-previous-page .storybook-kicker {
  margin-top: 17px;
}

.storybook-previous-page h3 {
  max-width: 17ch;
  margin: 7px 0 0;
  color: #382751;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.storybook-previous-page > p:last-of-type {
  max-width: 42ch;
  margin: 16px 0 0;
  color: #756878;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.65;
}

.storybook-previous-page::after {
  width: min(100%, 370px);
  height: 76px;
  margin-top: 24px;
  content: "";
  background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(91, 68, 105, 0.1) 21px 22px);
}

.storybook-controls button,
.storybook-final-page a {
  border: 2px solid #c18a4e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, #835337, #5f3826 58%, #3f241a);
  box-shadow:
    inset 0 0 0 2px rgba(255, 222, 159, 0.12),
    inset 0 -4px 0 rgba(41, 20, 12, 0.26),
    0 6px 12px rgba(70, 37, 21, 0.18);
  color: #fff2cf;
  text-shadow: 0 1px 0 rgba(39, 19, 11, 0.7);
}

.storybook-controls button:hover:not(:disabled),
.storybook-final-page a:hover:not([aria-disabled="true"]) {
  border-color: #e3b468;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(135deg, #966445, #6e422c 58%, #4a2a1d);
  color: #fff8df;
}

.storybook-controls button:disabled,
.storybook-final-page a[aria-disabled="true"] {
  border-color: #d4c4ad;
  background: #e6ded0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  color: #9b8f80;
  text-shadow: none;
}

@media (max-height: 760px) and (min-width: 721px) {
  .storybook-cover-page,
  .storybook-previous-page {
    min-height: 530px;
  }

  .storybook-cover-page {
    padding-top: 32px;
  }
}

@media (max-width: 720px) {
  .storybook-cover-page {
    min-height: 164px;
    display: grid;
    grid-template-columns: 1fr 92px;
    align-items: center;
    padding: 24px 25px 18px;
  }

  .storybook-previous-page {
    min-height: 310px;
    padding: 54px 24px 28px;
  }

  .storybook-previous-page::before {
    top: 24px;
    left: 24px;
  }

  .storybook-previous-page::after {
    height: 44px;
  }
}

.play-page .game-topbar,
.play-page .game-hud-row {
  transition: opacity 160ms ease, visibility 160ms ease;
}

.play-page.is-mission-open .game-topbar,
.play-page.is-mission-open .game-hud-row {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Biblioteca de prática: mesma ordem e estado da trilha */
.mission-chooser-card {
  width: min(980px, 100%);
}

.mission-chooser .game-mode-dock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-chooser .game-mode-card {
  position: relative;
  min-height: 184px;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-content: start;
}

.mission-chooser .game-mode-card > span {
  grid-column: 1;
  grid-row: 1;
}

.mission-chooser .game-mode-card > b {
  width: fit-content;
  align-self: center;
  justify-self: start;
  grid-column: 2;
  grid-row: 1;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eee8f2;
  color: #6d5c79;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mission-chooser .game-mode-card > strong,
.mission-chooser .game-mode-card > small,
.mission-chooser .game-mode-card > em {
  grid-column: 1 / -1;
}

.mission-chooser .game-mode-card.is-journey-locked {
  border-color: #bcaec8;
  background:
    linear-gradient(135deg, rgba(96, 63, 123, 0.055), transparent 55%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 0 rgba(86, 59, 111, 0.25);
}

.mission-chooser .game-mode-card.is-journey-locked > em {
  background: #6c477f;
}

.mission-chooser .game-mode-card.is-journey-unlocked > b {
  background: #e4f4ed;
  color: #277258;
}

.mission-chooser .game-mode-card.is-upcoming {
  border-color: #2d8d87;
  box-shadow: 0 10px 0 rgba(30, 103, 98, 0.34);
}

.mission-chooser .game-mode-card.is-upcoming > span,
.mission-chooser .game-mode-card.is-upcoming > em {
  background: #277d78;
}

.mission-chooser .game-mode-card.is-upcoming > b {
  background: #e3f2f0;
  color: #256b67;
}

@media (max-width: 720px) {
  .mission-chooser .game-mode-dock {
    grid-template-columns: 1fr;
  }

  .mission-chooser .game-mode-card {
    min-height: 176px;
  }
}

/* A regra precisa permanecer por último porque o perfil possui camadas legadas. */
.profile-page .profile-topbar {
  justify-content: space-between;
}

@media (max-width: 560px) {
  .profile-page .profile-topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* DIVAR 360 v105: overrides finais do lote de responsividade e identidade. */
.learning-card[data-story-card] {
  cursor: pointer;
}

.learning-card[data-story-card]:focus-visible {
  outline: 4px solid #ffd852;
  outline-offset: 5px;
}

.profile-trail-note {
  position: relative;
  padding-left: 52px;
}

.profile-trail-note > span:first-child {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
}

.nav-profile {
  min-height: 44px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 1fr;
  column-gap: 8px;
  padding: 4px 9px 4px 5px;
}

.nav-profile img {
  grid-row: 1;
  width: 34px;
  height: 34px;
}

.nav-profile span {
  font-size: 0.76rem;
}

.nav-profile small {
  display: none;
}

.profile-persona {
  position: relative;
}

.profile-persona-logout {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(54, 31, 83, 0.34);
  color: #fff;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-page .profile-topbar {
  min-height: 52px;
  justify-content: flex-start;
}

.dica-result-breakdown {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.dica-result-breakdown[hidden] { display: none; }

.dica-result-breakdown > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
}

.dica-result-breakdown b,
.dica-result-breakdown strong {
  color: #382066;
  font-size: 0.72rem;
}

.dica-result-breakdown i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6dceb;
}

.dica-result-breakdown em {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed3687, #7255b7);
  transition: width 420ms ease;
}

.certificate-module-card > p {
  gap: 8px;
  flex-wrap: wrap;
}

.certificate-module-card > p span {
  border: 1px solid #d7cbe0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3eef7;
  color: #6b567b;
  font-size: 0.65rem;
  font-weight: 850;
}

.certificate-module-card.is-complete > p span {
  border-color: #b8dfd2;
  background: #e9f7f2;
  color: #24735d;
}

@media (max-width: 900px) {
  .profile-page .profile-shell {
    width: min(100% - 20px, 820px);
  }

  .profile-page .profile-sidebar {
    position: static;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.4fr) minmax(120px, auto);
    align-items: center;
    gap: 10px;
    border: 3px solid #34205f;
    border-radius: 18px;
    padding: 11px;
  }

  .profile-sidebar-heading,
  .profile-sidebar-nav-label,
  .profile-sidebar-spacer,
  .profile-sidebar-ornament {
    display: none;
  }

  .profile-page .profile-persona {
    grid-column: 1;
    min-height: 76px;
    margin: 0;
    padding: 8px;
  }

  .profile-page .profile-tabs {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .profile-page .profile-tab {
    min-width: 0;
    min-height: 50px;
    padding: 8px;
    font-size: 0.7rem;
  }

  .profile-page .profile-tab > span { display: none; }

  .profile-page .profile-sidebar-hall {
    grid-column: 3;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .profile-page .profile-main {
    min-height: 0;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-shell {
    width: min(100% - 16px, 520px);
    padding-top: 8px;
  }

  .profile-page .profile-sidebar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .profile-page .profile-persona,
  .profile-page .profile-tabs,
  .profile-page .profile-sidebar-hall {
    grid-column: 1;
  }

  .profile-page .profile-persona {
    min-height: 80px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .profile-page .profile-tabs {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .profile-page .profile-tab > span { display: inline-grid; }

  .profile-page .profile-topbar {
    min-height: 42px;
    align-items: center;
    flex-direction: row;
  }

  .profile-page .learning-trail {
    min-height: 0;
    grid-template-rows: 72px repeat(4, auto) minmax(142px, auto) minmax(190px, auto);
  }

  .profile-page .learning-trail-step-fact { grid-row: 2; }
  .profile-page .learning-trail-step-dica { grid-row: 3; }
  .profile-page .learning-trail-step-match { grid-row: 4; }
  .profile-page .learning-trail-step-unity { grid-row: 5; }
  .profile-page .learning-trail-future { grid-row: 6; }
  .profile-page .learning-trail-horizon { grid-row: 7; }
}

@media (max-width: 950px) and (max-height: 500px) {
  .mission-chooser-card {
    width: min(96vw, 820px);
    max-height: calc(100dvh - 22px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #bd75a5 transparent;
  }

  .mission-chooser .game-mode-dock {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .mission-chooser .game-mode-card {
    min-height: 154px;
    scroll-snap-align: start;
  }

  .disc-screen .game-panel,
  .disc-question-card {
    max-height: calc(100dvh - 72px);
    overflow: auto;
  }
}

/* Primeiro aprendizado Unity WebGL disponível na biblioteca. */
.mission-chooser .game-mode-card.is-unity.is-journey-unlocked {
  border-color: #4fc3ff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 230, 109, 0.34), transparent 24%),
    linear-gradient(145deg, rgba(79, 195, 255, 0.2), rgba(238, 59, 134, 0.13) 54%, rgba(52, 27, 95, 0.12)),
    #fff;
  box-shadow: 0 10px 0 rgba(52, 27, 95, 0.34);
}

.mission-chooser .game-mode-card.is-unity.is-journey-unlocked > span,
.mission-chooser .game-mode-card.is-unity.is-journey-unlocked > em {
  background: linear-gradient(135deg, #ee3b86, #7138a6 58%, #341b5f);
}

.mission-chooser .game-mode-card.is-unity.is-journey-unlocked > b {
  background: #e6f8ff;
  color: #176889;
}

/* DIVAR 360 v104: acabamento de perfil, jornada, prática e certificados. */
.profile-persona {
  position: relative;
}

.profile-persona-logout {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(54, 31, 83, 0.34);
  color: #fff;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-persona-logout:hover,
.profile-persona-logout:focus-visible {
  background: #fff;
  color: #4a2774;
}

.profile-page .profile-topbar {
  min-height: 52px;
  justify-content: flex-start;
}

.learning-card[data-story-card] {
  cursor: pointer;
}

.learning-card[data-story-card]:focus-visible {
  outline: 4px solid #ffd852;
  outline-offset: 5px;
}

.profile-trail-note {
  position: relative;
  padding-left: 52px;
}

.profile-trail-note > span:first-child {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
}

.dica-result-breakdown {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.dica-result-breakdown[hidden] {
  display: none;
}

.dica-result-breakdown > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
}

.dica-result-breakdown b,
.dica-result-breakdown strong {
  color: #382066;
  font-size: 0.72rem;
}

.dica-result-breakdown i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6dceb;
}

.dica-result-breakdown em {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed3687, #7255b7);
  transition: width 420ms ease;
}

.certificate-module-card > p {
  gap: 8px;
  flex-wrap: wrap;
}

.certificate-module-card > p span {
  border: 1px solid #d7cbe0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3eef7;
  color: #6b567b;
  font-size: 0.65rem;
  font-weight: 850;
}

.certificate-module-card.is-complete > p span {
  border-color: #b8dfd2;
  background: #e9f7f2;
  color: #24735d;
}

.nav-profile {
  min-height: 44px;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 8px;
  padding: 4px 9px 4px 5px;
}

.nav-profile img {
  width: 34px;
  height: 34px;
}

.nav-profile span {
  font-size: 0.76rem;
}

.nav-profile small {
  font-size: 0.58rem;
}

/* Documento com hierarquia editorial e bloco verificável. */
.certificate-document {
  min-height: 650px;
  grid-template-rows: auto 1fr auto auto;
  border: 12px solid #f8ead1;
  border-radius: 4px;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 42%, rgba(237, 54, 135, 0.045), transparent 34%),
    repeating-linear-gradient(0deg, rgba(111, 82, 61, 0.025) 0 1px, transparent 1px 6px),
    #fffaf0;
}

.certificate-document-frame {
  inset: 16px;
  border: 1px solid #9d673c;
  box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 7px rgba(157, 103, 60, 0.62);
}

.certificate-document h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.certificate-document section > strong {
  padding-right: 36px;
  padding-left: 36px;
}

.certificate-document footer {
  align-items: end;
  gap: 24px;
}

.certificate-verify {
  display: grid !important;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-left: auto;
}

.certificate-verify > canvas,
.certificate-qr {
  width: 116px;
  height: 116px;
  border: 5px solid #fffaf0;
  outline: 1px solid rgba(126, 83, 50, 0.35);
}
.certificate-qr { display: grid; place-items: center; box-sizing: content-box; background: #fffaf0; }
.certificate-qr canvas,
.certificate-qr img { display: block; width: 116px; height: 116px; border: 0; outline: 0; }

.certificate-verify span {
  max-width: 285px;
  display: grid;
  gap: 5px;
}

.certificate-verify code {
  max-width: 285px;
  overflow-wrap: anywhere;
  color: #806f80;
  font-size: 0.53rem;
  line-height: 1.35;
}

.certificate-disclaimer {
  max-width: 72ch;
  justify-self: center;
}

@media (max-width: 900px) {
  .profile-page .profile-shell {
    width: min(100% - 20px, 820px);
  }

  .profile-page .profile-sidebar {
    position: static;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.4fr) minmax(120px, auto);
    align-items: center;
    gap: 10px;
    border: 3px solid #34205f;
    border-radius: 18px;
    padding: 11px;
  }

  .profile-sidebar-heading,
  .profile-sidebar-nav-label,
  .profile-sidebar-spacer,
  .profile-sidebar-ornament {
    display: none;
  }

  .profile-page .profile-persona {
    grid-column: 1;
    min-height: 76px;
    margin: 0;
    padding: 8px;
  }

  .profile-page .profile-tabs {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .profile-page .profile-tab {
    min-width: 0;
    min-height: 50px;
    padding: 8px;
    font-size: 0.7rem;
  }

  .profile-page .profile-tab > span {
    display: none;
  }

  .profile-page .profile-sidebar-hall {
    grid-column: 3;
    min-height: 50px;
    margin: 0;
  }

  .profile-page .profile-main {
    margin-left: 0;
    padding: 0 0 24px;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-shell {
    width: min(100% - 14px, 520px);
  }

  .profile-page .profile-sidebar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-page .profile-persona,
  .profile-page .profile-tabs,
  .profile-page .profile-sidebar-hall {
    grid-column: 1;
  }

  .profile-page .profile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-page .profile-tab {
    min-height: 46px;
    font-size: 0.63rem;
  }

  .profile-page .profile-topbar {
    min-height: 42px;
    align-items: center;
    flex-direction: row;
  }

  .profile-page .profile-hero {
    padding: 24px 18px;
  }

  .profile-page .profile-hero-art {
    width: min(70%, 210px);
    justify-self: center;
  }

  .profile-trail-note {
    padding: 14px 14px 14px 46px;
  }

  .learning-trail {
    grid-template-rows: 72px repeat(4, auto) minmax(142px, auto) minmax(190px, auto);
  }

  .learning-trail-step-fact { grid-row: 2; }
  .learning-trail-step-dica { grid-row: 3; }
  .learning-trail-step-match { grid-row: 4; }
  .learning-trail-step-unity { grid-row: 5; }
  .learning-trail-future { grid-row: 6; }
  .learning-trail-horizon { grid-row: 7; }

  .learning-trail-content.learning-card,
  .learning-trail-step-dica .learning-trail-content.learning-card,
  .learning-trail-step-unity .learning-trail-content.learning-card {
    min-height: 0;
    padding: 17px;
  }

  .learning-trail-content.learning-card > p:not(.learning-card-status) {
    font-size: 0.72rem;
  }

  .learning-trail-content.learning-card h3 {
    height: auto;
    font-size: 1.22rem;
  }

  .certificate-document {
    min-height: 760px;
    padding: 42px 25px;
  }

  .certificate-document footer,
  .certificate-verify {
    width: 100%;
  }

  .certificate-verify {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .certificate-verify canvas {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 950px) and (max-height: 500px) {
  .mission-chooser {
    align-items: center;
    padding: 8px;
  }

  .mission-chooser-card {
    width: min(820px, 100%);
    max-height: calc(100dvh - 16px);
    gap: 7px;
    overflow: auto;
    padding: 13px;
    scrollbar-width: thin;
    scrollbar-color: #ed3687 #f5e6ef;
  }

  .mission-chooser-card h1 {
    font-size: 1.45rem;
  }

  .mission-chooser-card > span {
    font-size: 0.68rem;
  }

  .mission-chooser .game-mode-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mission-chooser .game-mode-card {
    min-height: 116px;
    padding: 10px;
  }

  .play-page.is-game-focused .game-score-card {
    top: 8px;
    left: 8px;
    min-height: 54px;
    padding: 7px 11px;
  }

  .disc-live-panel {
    width: min(100% - 20px, 920px);
    gap: 8px;
    padding: 58px 0 10px;
  }

  .disc-live-panel .disc-arena {
    grid-template-columns: 1fr;
  }

  .disc-live-panel .disc-arena-art {
    display: none;
  }

  .disc-live-panel .disc-question-card {
    padding: 14px;
  }

  .disc-live-panel .disc-question-card h2 {
    margin-bottom: 10px;
    font-size: 1.18rem;
  }

  .disc-live-panel .disc-scale-buttons {
    gap: 7px;
  }

  .disc-live-panel .disc-scale-buttons button {
    min-height: 42px;
    padding: 7px 10px;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  .certificate-document {
    min-height: 180mm;
    border-width: 8px;
    padding: 18mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* Documento individual de certificado. */
.certificate-page {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(237, 54, 135, 0.2), transparent 26%),
    radial-gradient(circle at 90% 90%, rgba(75, 126, 224, 0.22), transparent 28%),
    #27153f;
  color: #382066;
}

.certificate-document-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.certificate-document-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.certificate-document-actions a,
.certificate-document-actions button,
.certificate-locked a {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 11px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

.certificate-document {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border: 10px solid #fff7e8;
  border-radius: 6px;
  padding: clamp(28px, 6vw, 74px);
  background:
    linear-gradient(90deg, rgba(193, 138, 78, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(193, 138, 78, 0.06) 1px, transparent 1px),
    #fffaf0;
  background-size: 24px 24px;
  box-shadow: 0 24px 60px rgba(10, 4, 22, 0.36);
}

.certificate-document-frame {
  position: absolute;
  inset: 14px;
  border: 3px double #9d673c;
  pointer-events: none;
}

.certificate-document header,
.certificate-document footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.certificate-document header > div {
  display: grid;
  margin-right: auto;
}

.certificate-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd852;
}

.certificate-document header strong {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.certificate-document header small,
.certificate-document footer small {
  color: #806f80;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-preview-badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f6d8e7;
  color: #9d215d;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-document section {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 36px 0;
  text-align: center;
}

.certificate-document section p {
  max-width: 64ch;
  margin: 8px 0;
  color: #756678;
  line-height: 1.55;
}

.certificate-document section > p:first-child {
  color: #c92f77;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.certificate-document h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
}

.certificate-document section > strong {
  border-bottom: 2px solid #c18a4e;
  padding: 0 28px 8px;
  color: #382066;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
}

.certificate-document h2 {
  margin: 10px 0 3px;
  color: #c92f77;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.certificate-document footer {
  border-top: 1px solid rgba(126, 83, 50, 0.25);
  padding-top: 18px;
}

.certificate-document footer > div {
  display: grid;
  gap: 4px;
}

.certificate-hash,
.certificate-disclaimer {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #7c6f7d;
  font-size: 0.62rem;
  line-height: 1.45;
  text-align: center;
}

.certificate-hash code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
}

.certificate-locked {
  max-width: 620px;
  margin: 80px auto;
  border-radius: 22px;
  padding: 46px;
  background: #fff;
  text-align: center;
}

.certificate-locked > span {
  font-size: 2rem;
}

.certificate-locked a {
  display: inline-block;
  margin-top: 16px;
  background: #ed3687;
}

@media (max-width: 640px) {
  .certificate-document-shell {
    width: min(100% - 16px, 1120px);
    padding-top: 12px;
  }

  .certificate-document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .certificate-document {
    min-height: 720px;
    border-width: 6px;
    padding: 34px 24px;
  }

  .certificate-document header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .certificate-preview-badge {
    width: fit-content;
  }

  .certificate-document footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .certificate-page {
    background: #fff;
  }

  .certificate-document-shell {
    width: 100%;
    padding: 0;
  }

  .certificate-document-actions {
    display: none;
  }

  .certificate-document {
    min-height: 190mm;
    box-shadow: none;
  }
}

/* v102: certificados por módulo. O hash local é apenas identificador de prévia. */
button.learning-trail-marker {
  padding: 0;
  font: inherit;
  cursor: default;
}

button.learning-trail-marker:disabled {
  opacity: 1;
}

button.learning-trail-marker.is-certified {
  cursor: pointer;
  box-shadow: 0 0 0 3px #382066, 5px 7px 0 rgba(52, 27, 95, 0.2), 0 0 0 9px rgba(255, 216, 82, 0.2);
}

button.learning-trail-marker.is-certified small {
  color: #18725d;
}

button.learning-trail-marker.is-certified:hover,
button.learning-trail-marker.is-certified:focus-visible {
  transform: translateY(-50%) scale(1.04);
  outline: 3px solid #ffd852;
  outline-offset: 5px;
}

.certificate-center {
  max-width: 1080px;
}

.certificate-center-header > p,
.certificate-module-card small,
.certificate-center-summary small {
  color: #c92f77;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.certificate-center-header h2 {
  margin: 8px 0 0;
  color: #382066;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.certificate-center-header > span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: #65546d;
  font-weight: 650;
  line-height: 1.55;
}

.certificate-center-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  border: 2px solid #382066;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #fffaf0, #f6efff);
  box-shadow: 8px 9px 0 rgba(52, 27, 95, 0.13);
}

.certificate-center-seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd852;
  color: #382066;
  font-size: 1.25rem;
}

.certificate-center-summary strong,
.certificate-center-summary p {
  display: block;
  margin: 0;
}

.certificate-center-summary strong {
  margin-top: 3px;
  color: #382066;
  font-size: 1.2rem;
}

.certificate-center-summary p {
  margin-top: 6px;
  color: #74667b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.certificate-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.certificate-module-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  border: 2px solid rgba(56, 32, 102, 0.2);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 5px 6px 0 rgba(52, 27, 95, 0.08);
}

.certificate-module-card.is-complete {
  border-color: #238770;
  background: linear-gradient(145deg, #fff, #edf9f5);
}

.certificate-module-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #382066;
  color: #fff;
  font-weight: 900;
}

.certificate-module-card h3 {
  margin: 4px 0 0;
  color: #382066;
  font-size: 1rem;
  line-height: 1.25;
}

.certificate-module-card > p,
.certificate-module-card > a {
  grid-column: 1 / -1;
}

.certificate-module-card > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.certificate-module-card > p span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #eee8f2;
  color: #695873;
  font-size: 0.66rem;
  font-weight: 800;
}

.certificate-module-card.is-complete > p span {
  background: #dff2eb;
  color: #1f705c;
}

.certificate-module-card > a {
  width: fit-content;
  border-radius: 10px;
  padding: 9px 12px;
  background: #ed3687;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 720px) {
  button.learning-trail-marker.is-certified:hover,
  button.learning-trail-marker.is-certified:focus-visible {
    transform: scale(1.04);
  }

  .certificate-module-grid {
    grid-template-columns: 1fr;
  }

  .certificate-center-summary {
    grid-template-columns: 1fr;
  }
}

/* v99 cascade lock: deve permanecer no fim para neutralizar cantos legados. */
@media (min-width: 721px) {
  .storybook-book {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.storybook-book .storybook-left-page,
.storybook-book .storybook-right-page {
  clip-path: none !important;
}

.storybook-page-number,
.storybook-previous-page .storybook-page-number {
  top: auto;
  bottom: 18px;
  color: #806f80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-variant-numeric: oldstyle-nums;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.storybook-page-number {
  right: 30px;
  left: auto;
}

.storybook-previous-page .storybook-page-number {
  right: auto;
  left: 30px;
}

.storybook-controls {
  position: absolute;
  z-index: 11;
  inset: 13px;
  display: block;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.storybook-controls .storybook-page-corner {
  position: absolute;
  top: 0;
  bottom: auto;
  width: 72px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  text-shadow: none;
}

.storybook-controls .storybook-page-corner-back { left: 0; }
.storybook-controls .storybook-page-corner-next { right: 0; }

.storybook-controls .storybook-page-corner::before,
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  top: var(--curl-top, calc(100% - 122px));
  bottom: auto;
  width: 72px;
  height: 104px;
  border: 0;
  border-radius: 0;
  content: "";
  opacity: 0.16;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 180ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 44%),
    linear-gradient(145deg, #fffaf0, #ead8b9 72%, #9a704b 73% 100%);
  box-shadow: none;
  filter: none;
}

.storybook-controls .storybook-page-corner::after {
  z-index: 0;
  background: rgba(48, 29, 48, 0.23);
  box-shadow: none;
  filter: blur(6px);
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 0;
  left: auto;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: translateX(49px) scaleX(0.32);
  transform-origin: right center;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  right: auto;
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(-49px) scaleX(0.32);
  transform-origin: left center;
}

.storybook-controls .storybook-page-corner:disabled {
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.storybook-controls .storybook-page-corner:disabled::before,
.storybook-controls .storybook-page-corner:disabled::after {
  opacity: 0;
}

.storybook-controls .storybook-page-corner:focus-visible {
  border-radius: 12px;
  outline: 3px solid #ffd852;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .storybook-book.is-previewing-forward .storybook-page-corner-next::before,
  .storybook-book.is-previewing-forward .storybook-page-corner-next::after,
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before,
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(2px) rotateY(-12deg) scaleX(1);
    filter: drop-shadow(-7px 7px 8px rgba(53, 35, 46, 0.25));
  }

  .storybook-book.is-previewing-backward .storybook-page-corner-back::before,
  .storybook-book.is-previewing-backward .storybook-page-corner-back::after,
  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before,
  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(-2px) rotateY(12deg) scaleX(1);
    filter: drop-shadow(7px 7px 8px rgba(53, 35, 46, 0.25));
  }
}

.storybook-close {
  position: absolute;
  z-index: 14;
  top: -2px;
  right: 8px;
  width: auto;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c18a4e;
  border-radius: 8px 8px 16px 16px;
  padding: 0 13px 0 10px;
  background: linear-gradient(145deg, #77482f, #4b291f);
  box-shadow: inset 0 0 0 2px rgba(255, 225, 166, 0.1), 0 8px 18px rgba(31, 18, 34, 0.3);
  color: #fff1c9;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.storybook-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.storybook-close:hover {
  background: linear-gradient(145deg, #8d5938, #5c3023);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .storybook-controls {
    inset: 0 9px 9px;
  }

  .storybook-controls .storybook-page-corner {
    top: 174px;
    bottom: auto;
    width: 54px;
    height: calc(100% - 174px);
  }

  .storybook-controls .storybook-page-corner::before,
  .storybook-controls .storybook-page-corner::after {
    top: var(--curl-top, calc(100% - 103px));
    width: 54px;
    height: 86px;
  }

  .storybook-page-number,
  .storybook-previous-page .storybook-page-number {
    bottom: 14px;
  }

  .storybook-page-number { right: 22px; left: auto; }
  .storybook-previous-page .storybook-page-number { right: auto; left: 22px; }

  .storybook-close {
    position: fixed;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .storybook-close {
    width: 42px;
    padding: 0;
  }

  .storybook-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* DIVAR 360 v99: física do livro, zonas laterais, fita marcadora e folios. */
.storybook-book {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  animation: none;
}

.storybook-book .storybook-left-page,
.storybook-book .storybook-right-page {
  clip-path: none !important;
}

.storybook-book::before {
  left: 50%;
  width: 30px;
}

.storybook-front-cover {
  position: absolute;
  z-index: 12;
  top: 13px;
  right: 13px;
  bottom: 13px;
  left: 50%;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 220, 126, 0.7);
  border-radius: 4px 14px 14px 4px;
  padding: 42px;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 222, 108, 0.18), transparent 23%),
    linear-gradient(145deg, #6c3e2a, #4d2a20 54%, #2d1818);
  box-shadow:
    inset 0 0 0 5px rgba(255, 227, 156, 0.08),
    inset 0 0 0 8px rgba(25, 11, 18, 0.28),
    -16px 8px 26px rgba(28, 15, 30, 0.34);
  color: #fff1c9;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(-180deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  visibility: hidden;
}

.storybook-front-cover::before,
.storybook-front-cover::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 197, 94, 0.45);
  border-radius: 5px 12px 12px 5px;
  content: "";
  pointer-events: none;
}

.storybook-front-cover::after {
  inset: 25px;
  border-style: double;
  border-width: 3px;
  opacity: 0.45;
}

.storybook-front-cover > span,
.storybook-front-cover > small,
.storybook-front-cover > strong,
.storybook-front-cover > i {
  position: relative;
  z-index: 1;
}

.storybook-front-cover > span,
.storybook-front-cover > small {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.storybook-front-cover > strong {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  text-align: center;
}

.storybook-front-cover > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 222, 108, 0.72);
  border-radius: 50%;
  color: #ffd852;
  font-style: normal;
}

.storybook-book.is-opening {
  animation: storyBookEnterV99 620ms cubic-bezier(0.2, 0.74, 0.2, 1) both;
}

.storybook-book.is-opening .storybook-front-cover {
  animation: storyFrontCoverOpenV99 680ms cubic-bezier(0.34, 0.02, 0.2, 1) both;
}

.storybook-book.is-closing {
  animation: storyBookExitV99 560ms cubic-bezier(0.46, 0.04, 0.58, 1) both;
}

.storybook-book.is-closing .storybook-front-cover {
  animation: storyFrontCoverCloseV99 520ms cubic-bezier(0.34, 0.02, 0.2, 1) both;
}

@keyframes storyBookEnterV99 {
  from { opacity: 0; transform: perspective(1700px) rotateX(6deg) scale(0.94) translateY(18px); }
  to { opacity: 1; transform: perspective(1700px) rotateX(0) scale(1) translateY(0); }
}

@keyframes storyBookExitV99 {
  0% { opacity: 1; transform: perspective(1700px) rotateX(0) scale(1) translateY(0); }
  72% { opacity: 1; transform: perspective(1700px) rotateX(4deg) scale(0.97) translateY(8px); }
  100% { opacity: 0; transform: perspective(1700px) rotateX(7deg) scale(0.92) translateY(20px); }
}

@keyframes storyFrontCoverOpenV99 {
  0% { opacity: 1; visibility: visible; transform: rotateY(0deg); }
  58% { opacity: 1; visibility: visible; }
  99% { opacity: 0.12; visibility: visible; transform: rotateY(-178deg); }
  100% { opacity: 0; visibility: hidden; transform: rotateY(-180deg); }
}

@keyframes storyFrontCoverCloseV99 {
  0% { opacity: 0.12; visibility: visible; transform: rotateY(-178deg); }
  42% { opacity: 1; visibility: visible; }
  100% { opacity: 1; visibility: visible; transform: rotateY(0deg); }
}

.storybook-turn-sheet {
  position: absolute;
  z-index: 10;
  top: 13px;
  bottom: 13px;
  left: 50%;
  width: calc(50% - 13px);
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.storybook-turn-sheet[hidden] {
  display: none;
}

.storybook-turn-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 3px 14px 14px 3px;
  padding: 58px clamp(27px, 4vw, 52px) 34px;
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(244, 194, 79, 0.14), transparent 27%),
    repeating-linear-gradient(0deg, rgba(112, 86, 69, 0.023) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 42px rgba(105, 75, 47, 0.11);
  backface-visibility: hidden;
}

.storybook-turn-face-back {
  border-radius: 14px 3px 3px 14px;
  transform: rotateY(180deg);
}

.storybook-turn-face .storybook-page-number {
  right: 30px;
}

.storybook-turn-face h3 {
  margin: 12px 0 0;
  color: #3c2857;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.9vw, 3.25rem);
  line-height: 0.98;
  text-align: center;
}

.storybook-turn-face > p:last-of-type {
  max-width: 44ch;
  color: #786b78;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  text-align: center;
}

.storybook-book.is-turning-forward .storybook-turn-sheet {
  left: 50%;
  width: calc(50% - 13px);
  transform-origin: left center;
  animation: storySheetForwardV99 620ms cubic-bezier(0.44, 0.04, 0.22, 1) both;
}

.storybook-book.is-turning-backward .storybook-turn-sheet {
  right: 50%;
  left: 13px;
  width: auto;
  transform-origin: right center;
  animation: storySheetBackwardV99 620ms cubic-bezier(0.44, 0.04, 0.22, 1) both;
}

@keyframes storySheetForwardV99 {
  0% { transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
  38% { filter: drop-shadow(-18px 8px 13px rgba(42, 26, 50, 0.24)); }
  50% { transform: rotateY(-90deg) skewY(-0.7deg); filter: drop-shadow(-30px 10px 18px rgba(42, 26, 50, 0.3)); }
  100% { transform: rotateY(-180deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
}

@keyframes storySheetBackwardV99 {
  0% { transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
  38% { filter: drop-shadow(18px 8px 13px rgba(42, 26, 50, 0.24)); }
  50% { transform: rotateY(90deg) skewY(0.7deg); filter: drop-shadow(30px 10px 18px rgba(42, 26, 50, 0.3)); }
  100% { transform: rotateY(180deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
}

.storybook-page-number,
.storybook-previous-page .storybook-page-number {
  top: auto;
  bottom: 18px;
  color: #806f80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-variant-numeric: oldstyle-nums;
  font-weight: 700;
  letter-spacing: 0;
}

.storybook-page-number {
  right: 30px;
  left: auto;
}

.storybook-previous-page .storybook-page-number {
  right: auto;
  left: 30px;
}

.storybook-controls {
  z-index: 11;
  inset: 13px;
}

.storybook-controls .storybook-page-corner {
  top: 0;
  bottom: auto;
  width: 72px;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.storybook-controls .storybook-page-corner-back {
  left: 0;
}

.storybook-controls .storybook-page-corner-next {
  right: 0;
}

.storybook-controls .storybook-page-corner::before,
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  top: var(--curl-top, calc(100% - 122px));
  bottom: auto;
  width: 72px;
  height: 104px;
  border: 0;
  border-radius: 0;
  content: "";
  opacity: 0.16;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.72, 0.18, 1),
    filter 180ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 44%),
    linear-gradient(145deg, #fffaf0, #ead8b9 72%, #9a704b 73% 100%);
}

.storybook-controls .storybook-page-corner::after {
  z-index: 0;
  background: rgba(48, 29, 48, 0.23);
  filter: blur(6px);
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 0;
  left: auto;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: translateX(49px) scaleX(0.32);
  transform-origin: right center;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  right: auto;
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(-49px) scaleX(0.32);
  transform-origin: left center;
}

.storybook-controls .storybook-page-corner:disabled::before,
.storybook-controls .storybook-page-corner:disabled::after {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .storybook-book.is-previewing-forward .storybook-page-corner-next::before,
  .storybook-book.is-previewing-forward .storybook-page-corner-next::after,
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before,
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(2px) rotateY(-12deg) scaleX(1);
    filter: drop-shadow(-7px 7px 8px rgba(53, 35, 46, 0.25));
  }

  .storybook-book.is-previewing-backward .storybook-page-corner-back::before,
  .storybook-book.is-previewing-backward .storybook-page-corner-back::after,
  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before,
  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(-2px) rotateY(12deg) scaleX(1);
    filter: drop-shadow(7px 7px 8px rgba(53, 35, 46, 0.25));
  }
}

.storybook-bookmark {
  position: absolute;
  z-index: 13;
  top: -4px;
  left: calc(50% + 18px);
  width: 48px;
  height: 132px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a4a31;
  cursor: pointer;
  transform: translateX(-50%);
}

.storybook-bookmark-cord {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 82px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #5c301f, #d09a53 48%, #5c301f);
  box-shadow: 1px 0 2px rgba(45, 24, 17, 0.25);
  transform: translateX(-50%);
  transition: height 180ms ease;
}

.storybook-bookmark-seal {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  transform-origin: top center;
  transition: transform 180ms ease, color 180ms ease;
}

.storybook-bookmark-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #8b4f36;
  filter: drop-shadow(0 5px 5px rgba(49, 27, 27, 0.24));
}

.storybook-bookmark-seal b {
  position: relative;
  z-index: 1;
  margin-top: -7px;
  color: #fff1c9;
  font: 800 0.72rem/1 Georgia, serif;
}

.storybook-bookmark.has-bookmark .storybook-bookmark-cord {
  background: linear-gradient(90deg, #6a173e, #d34b81 48%, #6a173e);
}

.storybook-bookmark.has-bookmark .storybook-bookmark-seal svg {
  fill: #a72b64;
}

.storybook-bookmark.is-current .storybook-bookmark-seal svg {
  fill: #d09224;
}

.storybook-bookmark:hover .storybook-bookmark-cord,
.storybook-bookmark:focus-visible .storybook-bookmark-cord {
  height: 90px;
}

.storybook-bookmark:hover .storybook-bookmark-seal,
.storybook-bookmark:focus-visible .storybook-bookmark-seal {
  transform: translateX(-50%) rotate(3deg) scale(1.06);
}

.storybook-bookmark:focus-visible {
  border-radius: 0 0 26px 26px;
  outline: 3px solid #ffd852;
  outline-offset: 3px;
}

.storybook-close {
  top: -2px;
  right: 8px;
  width: auto;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c18a4e;
  border-radius: 8px 8px 16px 16px;
  padding: 0 13px 0 10px;
  background: linear-gradient(145deg, #77482f, #4b291f);
  box-shadow: inset 0 0 0 2px rgba(255, 225, 166, 0.1), 0 8px 18px rgba(31, 18, 34, 0.3);
  color: #fff1c9;
  font-size: 0.72rem;
  font-weight: 850;
}

.storybook-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.storybook-close:hover {
  background: linear-gradient(145deg, #8d5938, #5c3023);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .storybook-front-cover {
    top: 9px;
    right: 9px;
    bottom: 9px;
    left: 9px;
    border-radius: 12px;
  }

  .storybook-turn-sheet,
  .storybook-book.is-turning-forward .storybook-turn-sheet,
  .storybook-book.is-turning-backward .storybook-turn-sheet {
    top: calc(100% - 509px);
    right: 9px;
    bottom: 9px;
    left: 9px;
    width: auto;
  }

  .storybook-turn-face {
    border-radius: 3px 3px 12px 12px;
    padding: 42px 28px 32px;
  }

  .storybook-controls {
    inset: 0 9px 9px;
  }

  .storybook-controls .storybook-page-corner {
    top: calc(100% - 509px);
    bottom: auto;
    width: 54px;
    height: 500px;
  }

  .storybook-controls .storybook-page-corner::before,
  .storybook-controls .storybook-page-corner::after {
    width: 54px;
    height: 86px;
    top: var(--curl-top, calc(100% - 103px));
  }

  .storybook-bookmark {
    top: calc(100% - 528px);
    left: 50%;
    height: 112px;
  }

  .storybook-bookmark-cord {
    height: 62px;
  }

  .storybook-bookmark-seal {
    top: 53px;
  }

  .storybook-page-number,
  .storybook-previous-page .storybook-page-number {
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .storybook-close {
    top: 9px;
    right: 9px;
    width: 42px;
    justify-content: center;
    border-radius: 8px 8px 14px 14px;
    padding: 0;
  }

  .storybook-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-front-cover,
  .storybook-turn-sheet,
  .storybook-bookmark-cord,
  .storybook-bookmark-seal {
    animation: none !important;
    transition: none !important;
  }
}

/* v97 final: prevalece sobre a antiga dobra sobreposta. */
.storybook-controls .storybook-page-corner {
  bottom: 0;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.storybook-controls .storybook-page-corner-back { left: 0; }
.storybook-controls .storybook-page-corner-next { right: 0; }

.storybook-controls .storybook-page-corner::before,
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 0;
  content: "";
  transition: transform 190ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 190ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 0;
  background: #efe5d4;
  filter: drop-shadow(0 5px 5px rgba(53, 35, 46, 0.24));
}

.storybook-controls .storybook-page-corner::after {
  z-index: 1;
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(244, 194, 79, 0.13), transparent 27%),
    repeating-linear-gradient(0deg, rgba(112, 86, 69, 0.023) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 25px rgba(105, 75, 47, 0.1);
  filter: drop-shadow(0 2px 2px rgba(53, 35, 46, 0.16));
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 23% 86%, 44% 69%, 63% 48%, 80% 24%);
  transform-origin: right bottom;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 77% 86%, 56% 69%, 37% 48%, 20% 24%);
  transform-origin: left bottom;
}

.storybook-controls .storybook-page-corner:focus-visible {
  outline: 0;
}

.storybook-controls .storybook-page-corner:focus-visible::before {
  filter: drop-shadow(0 0 2px #ed3687) drop-shadow(0 5px 5px rgba(53, 35, 46, 0.24));
}

@media (hover: hover) and (pointer: fine) {
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before {
    transform: translate(-5px, -5px) rotate(-2deg);
  }

  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    transform: translate(-12px, -10px) rotate(-7deg) scale(1.05);
    filter: drop-shadow(-7px 9px 7px rgba(53, 35, 46, 0.28));
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before {
    transform: translate(5px, -5px) rotate(2deg);
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    transform: translate(12px, -10px) rotate(7deg) scale(1.05);
    filter: drop-shadow(7px 9px 7px rgba(53, 35, 46, 0.28));
  }
}

@media (max-width: 720px) {
  .storybook-controls .storybook-page-corner {
    bottom: 0;
    width: 82px;
    height: 82px;
  }

  .storybook-controls .storybook-page-corner::before,
  .storybook-controls .storybook-page-corner::after {
    width: 68px;
    height: 68px;
  }
}

/* DIVAR 360 v97: resultado DICA, final da estrada e canto integrado à página. */
.learning-trail-finish {
  position: relative;
  z-index: 1;
  grid-column: 4 / 10;
  grid-row: 5;
  min-height: 190px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 15px;
  justify-self: stretch;
  align-self: center;
  padding: 32px 28px 24px;
  color: #4d3865;
}

.learning-trail-finish::before {
  position: absolute;
  top: 20px;
  right: 14px;
  left: 14px;
  height: 9px;
  border-radius: 999px;
  content: "";
  background: repeating-linear-gradient(90deg, #fff 0 22px, #ed398b 22px 44px);
  box-shadow: 0 3px 0 rgba(54, 31, 91, 0.15);
  transform: rotate(-2deg);
}

.learning-trail-finish strong,
.learning-trail-finish small {
  display: block;
}

.learning-trail-finish strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 1000;
}

.learning-trail-finish small {
  max-width: 31ch;
  margin-top: 5px;
  color: #786b82;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.learning-trail-lock {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ece6f2;
  box-shadow: 0 0 0 3px #4a3268, 5px 6px 0 rgba(52, 27, 95, 0.15);
  color: #765f88;
}

.learning-trail-lock svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.learning-trail-cones {
  position: absolute;
  top: -5px;
  right: 20%;
  left: 20%;
  height: 50px;
  pointer-events: none;
}

.learning-trail-cones span {
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 35px;
  clip-path: polygon(50% 0, 82% 75%, 100% 78%, 100% 100%, 0 100%, 0 78%, 18% 75%);
  background: linear-gradient(180deg, #ff9933 0 37%, #fff 37% 52%, #ff8730 52% 100%);
  filter: drop-shadow(3px 4px 0 rgba(54, 31, 91, 0.16));
}

.learning-trail-cones span:nth-child(1) { left: 5%; transform: rotate(-7deg); }
.learning-trail-cones span:nth-child(2) { left: calc(50% - 12px); transform: translateY(-8px); }
.learning-trail-cones span:nth-child(3) { right: 5%; transform: rotate(7deg); }

.dica-results-view {
  padding-bottom: 80px;
}

.dica-results-header {
  max-width: 760px;
}

.dica-results-header > p,
.dica-dimensions > p,
.dica-result-status > p {
  margin: 0;
  color: #ed3687;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dica-results-header h2 {
  margin: 6px 0 0;
  color: #40236d;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dica-results-header > span {
  max-width: 63ch;
  display: block;
  margin-top: 12px;
  color: #66566f;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.dica-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 22px;
  margin-top: 28px;
}

.dica-result-status,
.dica-dimensions {
  border: 3px solid #43256d;
  border-radius: 24px;
  box-shadow: 8px 10px 0 rgba(52, 27, 95, 0.13);
}

.dica-result-status {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 5vw, 55px);
  background:
    radial-gradient(circle at 88% 16%, rgba(244, 193, 63, 0.25), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 236, 251, 0.96));
}

.dica-result-lock {
  width: 58px;
  height: 58px;
  display: grid;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  background: #563477;
  color: #fff;
  box-shadow: 5px 6px 0 rgba(52, 27, 95, 0.2);
}

.dica-result-lock svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.dica-result-status.is-read .dica-result-lock {
  background: #d9852b;
}

.dica-result-status.is-complete .dica-result-lock {
  background: #218b72;
}

.dica-result-status h3 {
  max-width: 18ch;
  margin: 9px 0 0;
  color: #3f2860;
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.dica-result-status > span:not(.dica-result-lock) {
  max-width: 58ch;
  display: block;
  margin-top: 14px;
  color: #6d6074;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.55;
}

.dica-result-action {
  min-height: 46px;
  margin-top: 22px;
  border: 2px solid #43256d;
  border-radius: 12px;
  padding: 11px 17px;
  background: #ed3687;
  box-shadow: 4px 5px 0 #43256d;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.dica-result-action:hover {
  transform: translateY(-2px);
}

.dica-result-action:focus-visible {
  outline: 3px solid #ffd852;
  outline-offset: 3px;
}

.dica-dimensions {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(160deg, #563477, #7e4091 58%, #b23b86);
  color: #fff;
}

.dica-dimensions > p {
  margin-bottom: 5px;
  color: #ffe66d;
}

.dica-dimensions > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.dica-dimensions strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #563477;
  font-size: 1.1rem;
}

.dica-dimensions b,
.dica-dimensions small {
  display: block;
}

.dica-dimensions b {
  font-size: 0.84rem;
}

.dica-dimensions small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.67rem;
  line-height: 1.35;
}

/* A própria página perde o canto; a dobra preenche o recorte e levanta no hover. */
.storybook-left-page,
.storybook-right-page {
  transition: clip-path 180ms ease;
}

.storybook-book.has-next-page .storybook-right-page {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), calc(100% - 58px) 100%, 0 100%);
}

.storybook-book.has-previous-page .storybook-left-page {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 58px 100%, 0 calc(100% - 58px));
}

.storybook-controls .storybook-page-corner {
  bottom: 0;
  width: 96px;
  height: 96px;
}

.storybook-controls .storybook-page-corner-back { left: 0; }
.storybook-controls .storybook-page-corner-next { right: 0; }

.storybook-controls .storybook-page-corner::before,
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 0;
  content: "";
  transition: transform 190ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 190ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 0;
  background: #d8c9b3;
  filter: drop-shadow(0 5px 5px rgba(53, 35, 46, 0.3));
}

.storybook-controls .storybook-page-corner::after {
  z-index: 1;
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(244, 194, 79, 0.13), transparent 27%),
    repeating-linear-gradient(0deg, rgba(112, 86, 69, 0.023) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 25px rgba(105, 75, 47, 0.1);
  filter: drop-shadow(0 2px 2px rgba(53, 35, 46, 0.16));
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 23% 86%, 44% 69%, 63% 48%, 80% 24%);
  transform-origin: right bottom;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 77% 86%, 56% 69%, 37% 48%, 20% 24%);
  transform-origin: left bottom;
}

.storybook-controls .storybook-page-corner:focus-visible {
  outline: 0;
}

.storybook-controls .storybook-page-corner:focus-visible::after {
  filter: drop-shadow(0 0 3px #ffd852) drop-shadow(0 2px 2px rgba(53, 35, 46, 0.16));
}

@media (hover: hover) and (pointer: fine) {
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before {
    transform: translate(-5px, -5px) rotate(-2deg);
  }

  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    transform: translate(-12px, -10px) rotate(-7deg) scale(1.05);
    filter: drop-shadow(-7px 9px 7px rgba(53, 35, 46, 0.28));
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before {
    transform: translate(5px, -5px) rotate(2deg);
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    transform: translate(12px, -10px) rotate(7deg) scale(1.05);
    filter: drop-shadow(7px 9px 7px rgba(53, 35, 46, 0.28));
  }
}

@media (max-width: 850px) {
  .dica-results-layout {
    grid-template-columns: 1fr;
  }

  .dica-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dica-dimensions > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .storybook-book.has-previous-page .storybook-left-page {
    clip-path: none;
  }

  .storybook-book.has-previous-page.has-next-page .storybook-right-page {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 52px 100%, 0 calc(100% - 52px));
  }

  .storybook-book.has-previous-page:not(.has-next-page) .storybook-right-page {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 52px 100%, 0 calc(100% - 52px));
  }

  .storybook-controls .storybook-page-corner {
    bottom: 0;
    width: 82px;
    height: 82px;
  }

  .storybook-controls .storybook-page-corner::before,
  .storybook-controls .storybook-page-corner::after {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 560px) {
  .learning-trail {
    grid-template-rows: 72px repeat(4, auto) minmax(150px, auto);
  }

  .learning-trail-finish {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 150px;
    margin-left: 68px;
    padding: 38px 12px 18px 0;
  }

  .learning-trail-cones {
    right: 8%;
    left: 8%;
  }

  .learning-trail-lock {
    width: 55px;
    height: 55px;
  }

  .dica-results-header > span {
    font-size: 0.84rem;
  }

  .dica-result-status {
    min-height: 320px;
    padding: 27px 22px;
  }

  .dica-dimensions {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* DIVAR 360 v103: identidade autenticada legível em todas as áreas. */
.nav-profile {
  max-width: min(330px, 34vw);
}

.nav-profile.is-admin {
  border-color: rgba(90, 61, 138, 0.34);
  background: linear-gradient(135deg, #fff, #f5efff);
}

.nav-profile.is-admin small {
  color: #5b3a83;
}

.profile-persona-email {
  min-width: 0;
  overflow: hidden;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.59rem;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page .profile-topbar {
  justify-content: space-between;
}

.profile-session-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  border: 1px solid rgba(74, 41, 118, 0.14);
  border-radius: 14px;
  padding: 8px 9px 8px 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 16px rgba(52, 27, 95, 0.08);
}

.profile-session-summary > span,
.profile-session-summary > small {
  min-width: 0;
  overflow: hidden;
  grid-column: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-session-summary > span {
  color: #3e2464;
  font-size: 0.77rem;
  font-weight: 900;
}

.profile-session-summary > small {
  color: #776984;
  font-size: 0.65rem;
  font-weight: 700;
}

.profile-session-summary > button {
  min-height: 36px;
  grid-column: 2;
  grid-row: 1 / 3;
  border: 1px solid rgba(74, 41, 118, 0.18);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #5b3a83;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-session-summary > button:hover,
.profile-session-summary > button:focus-visible {
  border-color: #ee3b86;
  outline: 2px solid rgba(238, 59, 134, 0.2);
  outline-offset: 2px;
}

.profile-page.is-admin-console .profile-session-summary {
  background: #fff;
}

@media (max-width: 850px) {
  .nav-profile {
    max-width: min(100%, 310px);
  }
}

@media (max-width: 560px) {
  .profile-page .profile-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-page .profile-topbar > a {
    align-self: flex-start;
  }

  .profile-session-summary {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .landing-hero-stage,
  .story-section,
  .learning-world .factor-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-stage {
    min-height: 0;
  }

  .hero-float-showcase {
    order: -1;
    max-width: 720px;
    margin: 0 auto;
  }

  .public-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .landing-hero {
    padding: 22px 20px 34px;
  }

  .hero-float-showcase img {
    max-height: 340px;
    margin: 0 auto;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .quick-actions {
    margin-top: 18px;
  }

  .divar-banner-card {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .divar-banner-card a {
    width: 100%;
  }

  .story-section,
  .learning-world,
  .games-section,
  .modules-section {
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .game-entry-scene img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }
}

@media (max-width: 520px) {
  .hero-float-showcase img {
    max-height: 270px;
  }

  .site-nav a[href="#modulos"],
  .site-nav .nav-cta {
    display: none;
  }

  .hud-card strong {
    font-size: 1.28rem;
  }

  .public-cta .play-button {
    width: 100%;
  }

  .divar-banner-card {
    width: min(100% - 40px, 1040px);
    padding: 10px;
  }

  .divar-banner-card img {
    max-height: 160px;
  }
}

/* Public landing v3: brand asset, animated HUD and game-poster cards */
.site-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.site-brand-logo {
  width: clamp(168px, 17vw, 236px);
  height: 54px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.player-header .site-brand-logo {
  width: clamp(156px, 15vw, 220px);
  height: 50px;
}

.site-header {
  min-height: 74px;
}

.site-nav {
  gap: 8px;
}

.hud-card {
  grid-template-rows: auto auto auto auto;
  align-content: center;
}

.hud-card .hud-icon {
  grid-row: 1 / span 4;
}

.hud-card strong span {
  font: inherit;
}

.hud-phase {
  grid-column: 2;
  color: #5f2a68;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hud-progress {
  grid-column: 2;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f7d9e9;
}

.hud-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee3b86, #8e63ea, #37bce9);
}

.game-card-grid {
  align-items: stretch;
  gap: 18px;
}

.play-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 3px solid #211e24;
  padding: 0;
  background: #fff;
  box-shadow: 10px 10px 0 rgba(52, 27, 95, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 14px 0 rgba(52, 27, 95, 0.24);
}

.play-card.is-live {
  box-shadow: 10px 10px 0 rgba(238, 59, 134, 0.24);
}

.play-card.is-live:hover {
  box-shadow: 12px 14px 0 rgba(238, 59, 134, 0.26);
}

.play-card-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(135deg, #f23e97, #8f60e9 54%, #37bce9);
}

.play-card-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(31, 22, 39, 0.56));
  pointer-events: none;
}

.play-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.play-card[data-game-theme="disc"] .play-card-art img,
.play-card[data-game-theme="drag"] .play-card-art img,
.play-card[data-game-theme="rank"] .play-card-art img {
  padding: 8px;
  object-fit: contain;
  object-position: center 18%;
  transform: none;
}

.play-card[data-game-theme="drag"] .play-card-art img {
  padding: 4px;
  object-position: center;
}

.play-card[data-game-theme="room"] .play-card-art img {
  object-position: center;
}

.play-card-copy {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.play-card-copy > span {
  width: fit-content;
  border: 2px solid rgba(238, 59, 134, 0.3);
  border-radius: 8px;
  padding: 5px 9px;
  background: #ffe0ef;
  color: var(--game-pink);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.play-card-copy h3 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
}

.play-card-copy p {
  margin: 0;
  color: #5f5965;
}

.play-card-copy a,
.card-cta {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #211e24;
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--game-pink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.16);
}

.card-cta {
  border-color: rgba(52, 27, 95, 0.32);
  background: #f3ebff;
  color: var(--game-purple);
  box-shadow: none;
}

@media (max-width: 760px) {
  .site-brand-logo {
    width: min(240px, 70vw);
    height: 52px;
  }

  .site-header {
    min-height: 0;
  }

  .game-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .site-nav .nav-cta {
    display: inline-flex;
  }

  .hud-progress {
    height: 7px;
  }

  .play-card-copy {
    padding: 14px;
  }

  .play-card-copy a,
  .card-cta {
    width: 100%;
  }
}

/* Public landing v4: compact mission banner, waving guide and mobile game layout */
.divar-banner-card {
  width: min(680px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: clamp(-18px, -2vw, -8px);
  padding: 10px;
}

.divar-banner-card img {
  max-height: 132px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.7);
}

.divar-banner-card a {
  min-height: 52px;
  padding-inline: 16px;
}

.guide-wave {
  position: absolute;
  left: clamp(10px, 2vw, 28px);
  top: clamp(575px, 75vh, 610px);
  bottom: auto;
  z-index: 3;
  width: clamp(142px, 10.5vw, 160px);
  pointer-events: none;
  filter: drop-shadow(0 20px 22px rgba(52, 27, 95, 0.24));
}

.guide-wave img {
  width: 100%;
  display: block;
}

.play-card[data-game-theme="fake"] .play-card-art img {
  object-position: center;
}

@media (max-width: 900px) {
  .guide-wave {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    width: min(100% - 20px, 1180px);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.14);
  }

  .site-brand-logo {
    width: min(132px, 42vw);
    height: 42px;
  }

  .site-nav {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  .site-nav a {
    min-height: 40px;
    justify-content: center;
    padding: 6px 5px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100svh;
    padding: 18px 16px 34px;
  }

  .landing-hero-stage {
    display: contents;
  }

  .landing-hero .hud-left {
    position: relative;
    top: 0;
    left: auto;
    order: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hud-card {
    width: 100%;
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 3px 8px;
    padding: 8px;
  }

  .hud-card .hud-icon {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
  }

  .hud-card span {
    font-size: 0.68rem;
  }

  .hud-card strong {
    font-size: clamp(1rem, 4.8vw, 1.25rem);
  }

  .hud-phase {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .hud-progress {
    height: 7px;
  }

  .hero-float-showcase {
    order: 2;
    max-width: 100%;
    margin: 2px auto 0;
  }

  .hero-float-showcase img {
    width: min(100%, 410px);
    max-height: 340px;
    margin: 0 auto;
  }

  .landing-hero .hud-actions {
    position: relative;
    top: 0;
    right: auto;
    order: 3;
    width: auto;
    justify-content: center;
    gap: 10px;
    margin-top: -2px;
  }

  .hud-actions a {
    min-width: 66px;
    min-height: 54px;
  }

  .hero-copy-card {
    order: 4;
  }

  .guide-wave {
    display: none;
  }

  .divar-banner-card {
    order: 5;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .divar-banner-card img {
    max-height: 126px;
  }

  .divar-banner-card a {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .landing-hero {
    padding-top: 18px;
  }

  .hero-float-showcase img {
    max-height: 315px;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }
}

/* Public landing v5: WebP guide, stronger controls and tighter mission banner */
.landing-hero .hud-actions a {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.landing-hero .hud-actions a:hover,
.landing-hero .hud-actions a:focus-visible {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 0 #8b164d, 0 24px 32px rgba(52, 27, 95, 0.22);
  filter: saturate(1.08);
}

.landing-hero .hud-actions a:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 4px 0 #8b164d, 0 10px 18px rgba(52, 27, 95, 0.18);
}

.divar-banner-card {
  width: min(620px, calc(100% - 40px));
  gap: 10px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), rgba(255, 244, 250, 0.9) 34%, rgba(238, 59, 134, 0.14) 100%);
}

.divar-banner-card img {
  max-height: 104px;
  padding: 8px clamp(6px, 2vw, 18px);
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 14px rgba(52, 27, 95, 0.18));
}

.guide-wave {
  left: clamp(0px, 1vw, 18px);
  top: clamp(560px, 74vh, 610px);
  z-index: 7;
  width: clamp(190px, 13vw, 230px);
}

@keyframes mobileGuidePeek {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-72px) rotate(-2deg);
  }

  16%,
  72% {
    opacity: 1;
    transform: translateX(74px) rotate(0deg);
  }

  86% {
    opacity: 0.45;
    transform: translateX(18px) rotate(-1deg);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .guide-wave {
    display: none;
  }
}

@media (max-width: 760px) {
  .guide-wave {
    position: fixed;
    left: -158px;
    top: clamp(282px, 34vh, 340px);
    z-index: 40;
    display: block;
    width: clamp(238px, 62vw, 288px);
    animation: mobileGuidePeek 6.6s ease-in-out infinite;
    filter: drop-shadow(0 18px 18px rgba(52, 27, 95, 0.24));
  }

  .landing-hero .hud-actions {
    gap: 12px;
  }

  .landing-hero .hud-actions a {
    min-width: 78px;
    min-height: 66px;
    font-size: 1rem;
  }

  .divar-banner-card {
    width: min(100%, 560px);
  }

  .divar-banner-card img {
    max-height: 96px;
  }
}

@media (max-width: 520px) {
  .guide-wave {
    left: -154px;
    top: clamp(292px, 36vh, 336px);
    width: clamp(236px, 66vw, 280px);
  }

  .landing-hero .hud-actions a {
    min-width: 76px;
    min-height: 64px;
  }
}

/* Player game v2: visual Fato ou Fake experience */
.play-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(238, 59, 134, 0.32), transparent 34%),
    linear-gradient(180deg, #2b2039 0%, #181520 100%);
}

.play-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.player-header {
  background: rgba(255, 244, 250, 0.94);
  border-bottom: 4px solid rgba(238, 59, 134, 0.45);
}

.fake-game-stage {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 59, 134, 0.92), rgba(123, 78, 221, 0.78)),
    #ee3b86;
  box-shadow: 0 28px 0 rgba(52, 27, 95, 0.28), 0 36px 70px rgba(0, 0, 0, 0.34);
  color: #fff;
}

.fake-game-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/game-fato-fake.webp") center / cover no-repeat;
  opacity: 0.28;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.02);
}

.fake-game-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(52, 27, 95, 0.18), rgba(52, 27, 95, 0.38));
}

.game-intro-panel[hidden],
.game-cover-panel[hidden],
.game-live-panel[hidden],
.game-result-panel[hidden],
.game-loading-panel[hidden],
.game-menu-popover[hidden] {
  display: none !important;
}

.game-topbar,
.game-hud-row {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
}

.game-topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  justify-content: space-between;
  gap: 14px;
}

.game-exit-button,
.game-icon-button,
.game-start-button {
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, #f63d91, #b40f61);
  color: #fff;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #7c1249, 0 14px 22px rgba(52, 27, 95, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.game-exit-button {
  padding: 14px 18px;
  background: linear-gradient(180deg, #1db8e8, #057eaa);
  box-shadow: 0 6px 0 #075d7a, 0 14px 22px rgba(52, 27, 95, 0.22);
}

.game-exit-button:hover,
.game-icon-button:hover,
.game-start-button:hover,
.game-exit-button:focus-visible,
.game-icon-button:focus-visible,
.game-start-button:focus-visible {
  transform: translateY(-3px) scale(1.04);
  filter: saturate(1.08);
}

.game-exit-button:active,
.game-icon-button:active,
.game-start-button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 0 #7c1249, 0 8px 14px rgba(52, 27, 95, 0.2);
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-icon-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
}

.game-icon-button span {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.sound-control span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 14px;
  background: #fff;
  clip-path: polygon(0 26%, 45% 26%, 100% 0, 100% 100%, 45% 74%, 0 74%);
}

.sound-control span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 15px;
  height: 20px;
  border: 3px solid #fff;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: 6px 0 0 -3px #d52276;
  animation: soundWave 1.1s ease-in-out infinite;
}

.sound-control.is-muted span::after {
  width: 20px;
  height: 3px;
  top: 13px;
  right: 1px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  transform: rotate(-38deg);
  box-shadow: none;
  animation: none;
}

@keyframes soundWave {
  50% { transform: scaleY(0.82); opacity: 0.72; }
}

.fullscreen-control span {
  border: 3px solid #fff;
  border-radius: 3px;
}

.fullscreen-control span::before,
.fullscreen-control span::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid #f63d91;
  background: transparent;
}

.menu-control span,
.menu-control span::before,
.menu-control span::after {
  height: 4px;
  border-radius: 4px;
  background: #fff;
}

.menu-control span::before,
.menu-control span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.menu-control span::before {
  top: -9px;
}

.menu-control span::after {
  top: 9px;
}

.game-menu-popover {
  position: absolute;
  top: 72px;
  right: 0;
  z-index: 10;
  width: min(330px, calc(100vw - 42px));
  overflow: hidden;
  border: 3px solid #211e24;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.game-menu-popover button,
.game-menu-popover a,
.game-menu-popover strong {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 2px solid #211e24;
  padding: 0 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 1000;
  text-align: left;
  text-decoration: none;
}

.game-menu-popover button:nth-child(2),
.game-menu-popover a {
  color: var(--game-pink);
}

.game-menu-popover button:hover,
.game-menu-popover a:hover {
  background: #ffe4f0;
}

.game-menu-progress {
  display: grid;
  gap: 2px;
  border-bottom: 2px solid #211e24;
  padding: 10px 12px;
  background: #fff1f7;
}

.game-menu-progress span {
  color: #5a436f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-menu-progress strong {
  min-height: 0;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--game-pink);
  font-size: 1rem;
}

.game-hud-row {
  top: 98px;
  left: 20px;
  gap: 12px;
}

.game-score-card {
  min-width: 190px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 12px;
  align-items: center;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-purple);
  box-shadow: 0 5px 0 rgba(180, 15, 97, 0.55);
}

.game-score-card span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe1f0;
  color: var(--game-pink);
  font-weight: 1000;
}

.game-score-card strong {
  color: var(--game-pink);
  font-size: 1.8rem;
  line-height: 1;
}

.game-score-card small {
  font-weight: 900;
  text-transform: uppercase;
}

.game-intro-panel {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: end;
  gap: clamp(18px, 4vw, 34px);
  padding: 190px clamp(18px, 4vw, 42px) 38px;
}

.game-intro-panel img {
  width: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: 0 16px 0 rgba(52, 27, 95, 0.28);
}

.game-phase-card {
  display: grid;
  gap: 14px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.94);
  color: #211e24;
  box-shadow: 0 16px 0 rgba(52, 27, 95, 0.28);
}

.game-phase-card p,
.game-result-panel p {
  margin: 0;
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-phase-card h1,
.game-result-panel h2 {
  margin: 0;
  color: var(--game-pink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.game-phase-card span {
  color: #6c6670;
  font-weight: 700;
  line-height: 1.55;
}

.game-start-button {
  justify-self: end;
  min-height: 58px;
  padding: 0 28px;
}

.game-live-panel {
  min-height: 720px;
  padding: 172px clamp(18px, 4vw, 42px) 34px;
}

.game-question-banner {
  width: min(820px, 100%);
  display: grid;
  gap: 4px;
  margin: 0 auto 22px;
  border: 3px solid #7b7b7b;
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  text-align: center;
  box-shadow: 0 8px 0 rgba(52, 27, 95, 0.22);
}

.game-question-banner span {
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-question-banner strong {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

.game-arena {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(217, 20, 71, 0.24), transparent 42%, rgba(0, 155, 65, 0.22)),
    rgba(255, 255, 255, 0.18);
}

.side-label {
  position: absolute;
  top: 45%;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.72);
  opacity: 0.9;
  filter: drop-shadow(0 8px 12px rgba(52, 27, 95, 0.28));
}

.side-label-fake {
  left: 26px;
  color: #d91647;
}

.side-label-fato {
  right: 26px;
  color: #079738;
}

.game-question-card {
  position: relative;
  z-index: 2;
  width: min(520px, 72%);
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 4px solid #777;
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  color: #211e24;
  text-align: center;
  box-shadow: 0 12px 0 rgba(52, 27, 95, 0.24);
}

.game-question-card small {
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-question-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.32;
}

.timer-pill {
  position: absolute;
  left: 50%;
  bottom: -28px;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 3px solid var(--game-pink);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--game-pink);
  font-weight: 1000;
  transform: translateX(-50%);
}

.timer-pill span {
  width: 24px;
  height: 24px;
  border: 3px solid #211e24;
  border-radius: 50%;
}

.question-mascot {
  position: absolute;
  z-index: 1;
  max-width: 170px;
  pointer-events: none;
  filter: drop-shadow(0 15px 18px rgba(52, 27, 95, 0.25));
}

.mascot-a {
  left: 17%;
  bottom: 4px;
  animation: floatGuide 4.2s ease-in-out infinite;
}

.mascot-b {
  right: 14%;
  top: 12px;
  max-width: 132px;
  opacity: 0.88;
  animation: floatGuide 4.9s ease-in-out infinite reverse;
}

@keyframes floatGuide {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.fake-game-stage[data-question-theme="higiene"] .game-arena {
  background:
    linear-gradient(90deg, rgba(17, 152, 219, 0.28), transparent 42%, rgba(0, 155, 65, 0.22)),
    rgba(255, 255, 255, 0.18);
}

.fake-game-stage[data-question-theme="pressao"] .game-arena {
  background:
    linear-gradient(90deg, rgba(217, 20, 71, 0.32), transparent 42%, rgba(255, 173, 43, 0.2)),
    rgba(255, 255, 255, 0.18);
}

.fake-game-stage[data-question-theme="temperatura"] .game-arena {
  background:
    linear-gradient(90deg, rgba(238, 59, 134, 0.28), transparent 42%, rgba(79, 195, 255, 0.26)),
    rgba(255, 255, 255, 0.18);
}

.fake-game-stage[data-question-theme="cultura"] .game-arena {
  background:
    linear-gradient(90deg, rgba(123, 78, 221, 0.28), transparent 42%, rgba(113, 166, 53, 0.24)),
    rgba(255, 255, 255, 0.18);
}

.game-answer-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.game-answer-buttons .answer-button {
  min-height: 118px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 10px 0 rgba(52, 27, 95, 0.28);
}

.fake-answer {
  color: #d91647;
  text-shadow: 0 0 18px rgba(217, 20, 71, 0.35);
}

.fact-answer {
  color: #079738;
  text-shadow: 0 0 18px rgba(0, 155, 65, 0.35);
}

.game-answer-buttons .answer-button:hover,
.game-answer-buttons .answer-button:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

.game-answer-buttons .answer-button:disabled {
  cursor: default;
  opacity: 0.76;
}

.game-answer-buttons .is-correct-answer {
  outline: 5px solid rgba(56, 179, 75, 0.65);
}

.game-answer-buttons .is-wrong-choice {
  outline: 5px solid rgba(217, 20, 71, 0.65);
}

.game-feedback {
  width: min(820px, 100%);
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  margin: 18px auto 0;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #211e24;
}

.game-feedback:empty {
  visibility: hidden;
}

.game-feedback strong,
.game-feedback span {
  display: block;
}

.game-feedback strong {
  color: var(--game-pink);
  font-size: 1.1rem;
}

.game-feedback em {
  grid-row: span 2;
  min-width: 86px;
  border: 3px solid var(--game-pink);
  border-radius: 999px;
  padding: 10px 14px;
  color: #079738;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 1000;
  text-align: center;
}

.game-progress-track {
  width: min(760px, 100%);
  height: 12px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.36);
}

.game-result-panel {
  min-height: 720px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 160px 22px 42px;
  text-align: center;
}

.game-result-panel strong {
  max-width: 660px;
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
}

.game-access-section {
  margin-top: 54px;
}

@media (max-width: 900px) {
  .play-main {
    width: min(100% - 28px, 820px);
  }

  .game-intro-panel {
    grid-template-columns: 1fr;
    padding-top: 190px;
  }

  .game-intro-panel img {
    max-height: 360px;
  }

  .game-phase-card {
    order: -1;
  }

  .game-live-panel {
    padding-top: 192px;
  }

  .game-question-card {
    width: min(560px, 82%);
  }

  .side-label {
    top: auto;
    bottom: 32px;
  }
}

@media (max-width: 640px) {
  .play-main {
    width: 100%;
    padding-top: 0;
  }

  .fake-game-stage {
    min-height: 100svh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .game-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    align-items: flex-start;
  }

  .game-exit-button {
    max-width: 132px;
    padding: 12px 10px;
    font-size: 0.78rem;
  }

  .game-controls {
    gap: 7px;
  }

  .game-icon-button {
    width: 48px;
    height: 48px;
  }

  .game-hud-row {
    top: 76px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .game-score-card {
    min-width: 0;
    grid-template-columns: 42px 1fr;
    gap: 0 8px;
    padding: 8px;
  }

  .game-score-card span {
    width: 38px;
    height: 38px;
  }

  .game-score-card strong {
    font-size: 1.35rem;
  }

  .game-score-card small {
    font-size: 0.62rem;
  }

  .game-intro-panel,
  .game-live-panel,
  .game-result-panel {
    min-height: 100svh;
    padding-left: 14px;
    padding-right: 14px;
  }

  .game-intro-panel {
    padding-top: 164px;
    padding-bottom: 24px;
  }

  .game-intro-panel img {
    min-height: 190px;
    max-height: 250px;
  }

  .game-phase-card h1,
  .game-result-panel h2 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .game-start-button {
    justify-self: stretch;
  }

  .game-live-panel {
    padding-top: 162px;
    padding-bottom: 24px;
  }

  .game-question-banner {
    padding: 10px 12px;
  }

  .game-arena {
    min-height: 330px;
  }

  .game-question-card {
    width: min(100%, 350px);
    min-height: 220px;
    padding: 22px 16px 30px;
  }

  .question-mascot {
    max-width: 110px;
  }

  .mascot-a {
    left: -4px;
    bottom: 8px;
  }

  .mascot-b {
    right: -2px;
    top: 8px;
    max-width: 90px;
  }

  .side-label {
    bottom: 20px;
    font-size: clamp(2.2rem, 14vw, 3.7rem);
  }

  .side-label-fake {
    left: 12px;
  }

  .side-label-fato {
    right: 12px;
  }

  .game-answer-buttons {
    gap: 10px;
  }

  .game-answer-buttons .answer-button {
    min-height: 86px;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .game-feedback {
    grid-template-columns: 1fr;
    min-height: 92px;
  }

  .game-feedback em {
    grid-row: auto;
    justify-self: center;
  }
}

/* Player game v3: fullscreen-first game shell */
.play-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.play-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.fake-game-stage {
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.fake-game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: auto;
}

.game-topbar {
  top: 18px;
  left: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
}

.game-hud-row {
  top: 92px;
  left: clamp(14px, 2vw, 28px);
}

.game-intro-panel {
  min-height: 100svh;
  padding-top: 170px;
  padding-bottom: 28px;
}

.game-intro-panel img {
  max-height: min(46vh, 410px);
}

.game-live-panel {
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 22px;
}

.game-question-banner {
  min-height: 70px;
  margin-bottom: 14px;
  padding: 9px 16px;
}

.game-arena {
  min-height: min(35vh, 280px);
}

.game-question-card {
  width: min(500px, 62%);
  min-height: 176px;
  padding: 18px 22px 24px;
}

.game-question-card h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.timer-pill {
  --timer-progress: 1;
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(#4fc3ff calc(var(--timer-progress) * 1turn), #ff2b82 0) border-box;
}

.timer-pill strong {
  color: var(--game-pink);
}

.timer-pill span {
  position: relative;
}

.timer-pill span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #211e24;
  transform-origin: center 9px;
  animation: clockHand 1s linear infinite;
}

@keyframes clockHand {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.question-mascot {
  max-width: min(13vw, 150px);
}

.mascot-a {
  left: 19%;
  bottom: 0;
}

.mascot-b {
  right: 16%;
  top: 2px;
  max-width: min(11vw, 118px);
}

.game-answer-buttons {
  gap: 18px;
  margin-top: 14px;
}

.game-answer-buttons .answer-button {
  min-height: 92px;
  transition: transform 160ms ease, filter 160ms ease, outline-color 160ms ease;
}

.game-feedback {
  min-height: 58px;
  margin-top: 10px;
  padding: 9px 14px;
}

.game-progress-track {
  height: 10px;
  margin-top: 10px;
}

.game-access-section,
.api-status-panel {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .game-intro-panel {
    padding-top: 168px;
  }

  .game-live-panel {
    padding-top: 170px;
  }

  .game-question-card {
    width: min(540px, 78%);
  }

  .game-answer-buttons .answer-button {
    min-height: 86px;
  }
}

@media (max-width: 640px) {
  .game-exit-button {
    max-width: 118px;
    min-height: 48px;
    padding: 8px 10px;
  }

  .game-live-panel {
    padding-top: 150px;
  }

  .game-intro-panel {
    padding-top: 148px;
  }

  .game-intro-panel img {
    min-height: 170px;
    max-height: 220px;
  }

  .game-phase-card {
    padding: 16px;
  }

  .game-arena {
    min-height: 300px;
  }

  .game-question-card {
    width: min(100%, 338px);
    min-height: 190px;
  }

  .question-mascot {
    max-width: 104px;
  }

  .mascot-b {
    max-width: 82px;
  }

  .game-answer-buttons {
    margin-top: 12px;
  }

  .game-answer-buttons .answer-button {
    min-height: 78px;
  }

  .game-access-section,
  .api-status-panel {
    width: min(100% - 28px, 620px);
  }
}

/* Player game v4: keep the round as a real game viewport */
.play-page.is-game-focused {
  background: #ee3b86;
}

.play-page.is-game-focused .game-access-section,
.play-page.is-game-focused .api-status-panel {
  display: none;
}

.play-page.is-game-focused .fake-game-stage {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.play-page.is-game-focused .game-topbar,
.play-page.is-game-focused .game-hud-row {
  position: fixed;
}

.play-page.is-game-focused .game-topbar {
  top: max(12px, env(safe-area-inset-top));
  left: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
}

.play-page.is-game-focused .game-hud-row {
  top: calc(max(12px, env(safe-area-inset-top)) + 74px);
  left: clamp(12px, 2vw, 28px);
  right: auto;
}

.play-page.is-game-focused .game-live-panel {
  display: grid;
  align-content: start;
}

.play-page.is-game-focused .game-question-banner {
  backdrop-filter: blur(8px);
}

.play-page.is-game-focused .game-answer-buttons .answer-button {
  cursor: pointer;
  transform-origin: center;
}

.play-page.is-game-focused .game-answer-buttons .answer-button:active {
  transform: translateY(2px) scale(0.98);
}

.play-page.is-game-focused .timer-pill {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 8px 16px rgba(52, 27, 95, 0.18);
}

@media (min-width: 1180px) and (max-height: 820px) {
  .play-page.is-game-focused .game-live-panel {
    padding-top: 138px;
  }

  .play-page.is-game-focused .game-question-banner {
    min-height: 62px;
    margin-bottom: 10px;
  }

  .play-page.is-game-focused .game-arena {
    min-height: min(32vh, 250px);
  }

  .play-page.is-game-focused .game-question-card {
    min-height: 160px;
    padding: 16px 22px 22px;
  }

  .play-page.is-game-focused .game-answer-buttons .answer-button {
    min-height: 82px;
  }

  .play-page.is-game-focused .game-feedback {
    min-height: 52px;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .play-page.is-game-focused .fake-game-stage {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .play-page.is-game-focused .game-topbar {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
  }

  .play-page.is-game-focused .game-controls {
    gap: 8px;
  }

  .play-page.is-game-focused .game-icon-button {
    width: 54px;
    height: 54px;
  }

  .play-page.is-game-focused .game-hud-row {
    top: calc(max(8px, env(safe-area-inset-top)) + 66px);
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-page.is-game-focused .game-live-panel {
    padding-top: 152px;
  }

  .play-page.is-game-focused .game-question-banner {
    min-height: 58px;
    margin-bottom: 10px;
  }

  .play-page.is-game-focused .game-arena {
    min-height: 292px;
  }

  .play-page.is-game-focused .game-answer-buttons .answer-button {
    min-height: 84px;
  }
}

/* Player game v5: lobby, auth overlay and game-only flow */
.game-lobby-panel[hidden],
.game-auth-overlay[hidden] {
  display: none !important;
}

.game-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-login-button {
  min-height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-purple);
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(52, 27, 95, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-login-button:hover,
.game-login-button:focus-visible {
  transform: translateY(-3px) scale(1.04);
}

.game-lobby-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 176px clamp(18px, 4vw, 52px) 34px;
}

.game-lobby-bg,
.game-lobby-shade {
  position: absolute;
  inset: 0;
}

.game-lobby-bg {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04);
}

.game-lobby-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(52, 27, 95, 0.42), transparent 42%, rgba(238, 59, 134, 0.18)),
    linear-gradient(180deg, rgba(52, 27, 95, 0.12), rgba(52, 27, 95, 0.28));
}

.game-lobby-copy {
  width: min(520px, 100%);
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.92);
  color: #211e24;
  box-shadow: 0 14px 0 rgba(52, 27, 95, 0.28);
}

.game-lobby-copy p,
.game-auth-card p {
  margin: 0 0 6px;
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-lobby-copy h1,
.game-auth-card h2 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.game-lobby-copy span {
  display: block;
  margin-top: 12px;
  color: #5b5362;
  font-weight: 800;
}

.game-mode-dock {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: 34px;
  width: min(700px, 52vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-mode-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #211e24;
  text-align: left;
  box-shadow: 0 10px 0 rgba(52, 27, 95, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.game-mode-card:hover,
.game-mode-card:focus-visible {
  transform: translateY(-6px) scale(1.03);
  filter: saturate(1.08);
}

.game-mode-card:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.78;
}

.game-mode-card span,
.game-mode-card em {
  width: fit-content;
  border-radius: 8px;
  background: var(--game-pink);
  color: #fff;
  font-weight: 1000;
}

.game-mode-card span {
  padding: 6px 9px;
}

.game-mode-card strong {
  color: var(--game-purple);
  font-size: 1.15rem;
  line-height: 1.08;
}

.game-mode-card small {
  color: #615a66;
  font-weight: 800;
  line-height: 1.35;
}

.game-mode-card em {
  margin-top: auto;
  padding: 7px 10px;
  font-style: normal;
  text-transform: uppercase;
}

.game-mode-card.is-live {
  border-color: var(--game-pink);
  box-shadow: 0 10px 0 rgba(180, 15, 97, 0.48);
}

.game-phase-actions,
.score-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.game-start-button.secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-pink);
}

.game-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 14, 43, 0.58);
  backdrop-filter: blur(10px);
}

.game-auth-card {
  position: relative;
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #211e24;
  box-shadow: 0 18px 0 rgba(52, 27, 95, 0.34), 0 26px 48px rgba(0, 0, 0, 0.28);
}

.auth-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  background: #fff;
  color: var(--game-pink);
  font-size: 1.35rem;
  font-weight: 1000;
  cursor: pointer;
}

.game-session-box {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(238, 59, 134, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: #fff5fb;
}

.game-session-box strong {
  color: var(--game-purple);
}

.game-session-box p {
  margin: 0;
  color: #615a66;
}

@media (max-width: 980px) {
  .game-lobby-panel {
    display: grid;
    align-content: end;
    gap: 18px;
    overflow: auto;
    padding-top: 164px;
  }

  .game-lobby-copy,
  .game-mode-dock {
    position: relative;
    inset: auto;
    width: min(100%, 720px);
  }

  .game-mode-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-intro-panel .game-phase-card {
    order: initial;
  }
}

@media (max-width: 640px) {
  .game-topbar-left {
    gap: 7px;
  }

  .game-login-button,
  .game-exit-button {
    min-height: 54px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .game-lobby-panel {
    padding: 152px 14px 18px;
  }

  .game-lobby-bg {
    object-position: 49% center;
  }

  .game-lobby-copy {
    padding: 16px;
  }

  .game-mode-dock {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-mode-card {
    min-height: 126px;
  }

  .game-phase-actions,
  .score-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .game-phase-actions .game-start-button,
  .score-actions .button {
    width: 100%;
  }
}

/* Player game v6: interactive desk scene */
.play-page .button.primary,
.play-page .button.secondary,
.play-page .button.ghost,
.game-icon-button,
.game-start-button,
.game-login-button,
.answer-button,
.game-mode-card,
.scene-info-action,
.auth-close-button {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, outline-color 180ms ease;
}

.play-page .button.primary:hover,
.play-page .button.secondary:hover,
.play-page .button.ghost:hover,
.game-icon-button:hover,
.game-start-button:hover,
.game-login-button:hover,
.answer-button:hover,
.game-mode-card:hover,
.scene-info-action:hover,
.auth-close-button:hover,
.play-page .button.primary:focus-visible,
.play-page .button.secondary:focus-visible,
.play-page .button.ghost:focus-visible,
.game-icon-button:focus-visible,
.game-start-button:focus-visible,
.game-login-button:focus-visible,
.answer-button:focus-visible,
.game-mode-card:focus-visible,
.scene-info-action:focus-visible,
.auth-close-button:focus-visible {
  transform: translateY(-4px) scale(1.06);
  filter: saturate(1.1);
}

.play-page .button.primary:active,
.play-page .button.secondary:active,
.play-page .button.ghost:active,
.game-icon-button:active,
.game-start-button:active,
.game-login-button:active,
.answer-button:active,
.game-mode-card:active,
.scene-info-action:active,
.auth-close-button:active {
  transform: translateY(2px) scale(0.98);
}

.game-mode-card:disabled:hover,
.game-mode-card:disabled:focus-visible,
.game-mode-card:disabled:active {
  transform: none;
}

.play-page .button.primary {
  border: 3px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, #f63d91, #b40f61);
  color: #fff;
  box-shadow: 0 6px 0 #7c1249, 0 14px 22px rgba(52, 27, 95, 0.22);
}

.play-page .button.secondary,
.play-page .button.ghost {
  border: 3px solid var(--game-pink);
  background: rgba(255, 255, 255, 0.96);
  color: var(--game-pink);
  box-shadow: 0 6px 0 rgba(180, 15, 97, 0.35), 0 14px 22px rgba(52, 27, 95, 0.16);
}

.play-page.is-game-focused .game-topbar {
  justify-content: flex-end;
  pointer-events: none;
}

.play-page.is-game-focused .game-controls,
.play-page.is-game-focused .game-menu-popover {
  pointer-events: auto;
}

.game-lobby-panel {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  min-height: 100%;
  padding: 0;
  background: #f7dbe8;
  z-index: 0;
}

.game-lobby-bg {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.game-lobby-shade {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(52, 27, 95, 0.02), rgba(52, 27, 95, 0.16));
}

.interactive-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scene-object {
  position: absolute;
  z-index: 2;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.scene-object img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 18px rgba(52, 27, 95, 0.24));
}

.scene-object::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow:
    0 0 0 2px rgba(246, 61, 145, 0.3),
    0 0 18px rgba(255, 255, 255, 0.92);
}

.scene-object:hover,
.scene-object:focus-visible {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1.045);
  outline: 0;
}

.scene-object:hover img,
.scene-object:focus-visible img {
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 7px #fff)
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.96))
    drop-shadow(0 18px 20px rgba(52, 27, 95, 0.3));
}

.scene-object:hover::after,
.scene-object:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.scene-laptop::after {
  inset: 7% 2% 2%;
  border-radius: 24px;
}

.scene-laptop {
  width: min(47vw, 64vh, 780px);
  left: 51%;
  top: 55%;
}

.scene-red-guide {
  width: min(22vw, 380px);
  left: 21%;
  top: 44%;
}

.scene-blue-guide {
  width: min(17vw, 280px);
  left: 72%;
  top: 76%;
}

.scene-cartilha {
  width: min(15vw, 230px);
  left: 8%;
  top: 63%;
}

.scene-objectives {
  width: min(24vw, 360px);
  left: 43%;
  top: 81%;
}

.scene-routine {
  width: min(24vw, 360px);
  left: 61%;
  top: 80%;
}

.scene-faq {
  width: min(25vw, 390px);
  left: 82%;
  top: 32%;
}

.scene-guide-kit {
  width: min(24vw, 390px);
  left: 84%;
  top: 58%;
}

.scene-info-card,
.mission-chooser {
  position: absolute;
  z-index: 30;
}

.scene-info-card {
  right: clamp(14px, 4vw, 52px);
  bottom: clamp(18px, 4vw, 44px);
  width: min(390px, calc(100% - 28px));
  display: grid;
  gap: 10px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: #211e24;
  box-shadow: 0 16px 0 rgba(52, 27, 95, 0.3), 0 24px 42px rgba(0, 0, 0, 0.22);
}

.scene-info-card p,
.mission-chooser-card p {
  margin: 0;
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.scene-info-card h2,
.mission-chooser-card h1 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.scene-info-card span,
.mission-chooser-card > span {
  color: #5e5664;
  font-weight: 800;
}

.scene-info-action {
  justify-self: start;
  min-height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #f63d91, #b40f61);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #7c1249, 0 14px 22px rgba(52, 27, 95, 0.22);
  cursor: pointer;
}

.mission-chooser[hidden],
.scene-info-card[hidden] {
  display: none !important;
}

.mission-chooser {
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(52, 27, 95, 0.34);
  backdrop-filter: blur(8px);
}

.mission-chooser-card {
  position: relative;
  width: min(900px, 100%);
  display: grid;
  gap: 16px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  color: #211e24;
  box-shadow: 0 18px 0 rgba(52, 27, 95, 0.34), 0 28px 52px rgba(0, 0, 0, 0.28);
}

.mission-chooser .game-mode-dock {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mission-chooser .game-mode-card {
  min-height: 190px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
}

.mission-chooser .game-mode-card:disabled {
  transform: none;
}

@media (max-width: 900px) {
  .scene-laptop {
    width: min(66vw, 580px);
    left: 52%;
    top: 40%;
  }

  .scene-red-guide {
    width: min(29vw, 280px);
    left: 20%;
    top: 48%;
  }

  .scene-blue-guide {
    width: min(25vw, 230px);
    left: 73%;
    top: 70%;
  }

  .scene-cartilha {
    width: min(23vw, 190px);
    left: 12%;
    top: 68%;
  }

  .scene-objectives {
    width: min(35vw, 290px);
    left: 39%;
    top: 82%;
  }

  .scene-routine {
    width: min(35vw, 290px);
    left: 68%;
    top: 82%;
  }

  .scene-faq {
    width: min(39vw, 330px);
    left: 79%;
    top: 30%;
  }

  .scene-guide-kit {
    width: min(33vw, 290px);
    left: 82%;
    top: 56%;
  }
}

@media (max-width: 640px) {
  .play-page.is-game-focused .game-topbar {
    justify-content: flex-end;
  }

  .play-page.is-game-focused .fake-game-stage {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .game-lobby-panel {
    overflow: hidden;
  }

  .game-lobby-bg {
    object-position: center;
  }

  .scene-laptop {
    width: 78vw;
    left: 52%;
    top: 36%;
  }

  .scene-red-guide {
    width: 37vw;
    left: 21%;
    top: 48%;
  }

  .scene-blue-guide {
    width: 32vw;
    left: 73%;
    top: 69%;
  }

  .scene-cartilha {
    width: 30vw;
    left: 13%;
    top: 70%;
  }

  .scene-objectives {
    width: 43vw;
    left: 35%;
    top: 84%;
  }

  .scene-routine {
    width: 43vw;
    left: 72%;
    top: 84%;
  }

  .scene-faq {
    width: 48vw;
    left: 76%;
    top: 31%;
  }

  .scene-guide-kit {
    width: 42vw;
    left: 82%;
    top: 55%;
  }

  .scene-info-card {
    left: 14px;
    right: 14px;
    bottom: 18px;
    width: auto;
  }

  .mission-chooser {
    align-items: start;
    padding: 150px 14px 14px;
  }

  .mission-chooser-card {
    max-height: calc(100svh - 164px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--game-pink) #ffe1f0;
  }

  .mission-chooser .game-mode-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .scene-laptop {
    width: 68vw;
    left: 52%;
    top: 43%;
  }

  .scene-red-guide {
    width: 32vw;
    left: 22%;
    top: 53%;
  }

  .scene-blue-guide {
    width: 26vw;
    left: 73%;
    top: 74%;
  }

  .scene-cartilha {
    width: 24vw;
    left: 14%;
    top: 75%;
  }

  .scene-objectives {
    width: 35vw;
    left: 35%;
    top: 86%;
  }

  .scene-routine {
    width: 35vw;
    left: 73%;
    top: 86%;
  }

  .scene-faq {
    width: 38vw;
    left: 76%;
    top: 37%;
  }

  .scene-guide-kit {
    width: 34vw;
    left: 83%;
    top: 57%;
  }

  .mission-chooser {
    padding-top: 158px;
  }

  .mission-chooser-card {
    max-height: calc(100svh - 172px);
  }
}

/* Public/play v24: Full HD density, lighter assets and stable interaction hotspots */
.site-header {
  width: min(1280px, calc(100% - 40px));
}

.site-brand-logo {
  object-fit: contain;
}

.play-button,
.outline-button,
.divar-banner-card a,
.play-card-copy a,
.card-cta,
.site-nav .nav-cta,
.landing-hero .hud-actions a {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.play-button:hover,
.outline-button:hover,
.divar-banner-card a:hover,
.play-card-copy a:hover,
.card-cta:hover,
.site-nav .nav-cta:hover,
.landing-hero .hud-actions a:hover,
.play-button:focus-visible,
.outline-button:focus-visible,
.divar-banner-card a:focus-visible,
.play-card-copy a:focus-visible,
.card-cta:focus-visible,
.site-nav .nav-cta:focus-visible,
.landing-hero .hud-actions a:focus-visible {
  transform: translateY(-4px) scale(1.055);
  filter: saturate(1.08);
}

.play-button:active,
.outline-button:active,
.divar-banner-card a:active,
.play-card-copy a:active,
.card-cta:active,
.site-nav .nav-cta:active,
.landing-hero .hud-actions a:active {
  transform: translateY(2px) scale(0.98);
}

.factor-grid article,
.module-track article {
  border: 3px solid #211e24;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 10px 0 rgba(52, 27, 95, 0.18);
}

.guide-wave {
  top: auto;
  bottom: clamp(112px, 11svh, 160px);
  left: clamp(-12px, 1vw, 28px);
  z-index: 8;
  width: clamp(178px, 12vw, 230px);
  animation: guidePeek 9.5s ease-in-out infinite;
}

.guide-wave img {
  animation: guideBob 2.8s ease-in-out infinite;
  transform-origin: left bottom;
}

@keyframes guidePeek {
  0%, 100% {
    opacity: 0;
    transform: translateX(-74%) rotate(-2deg);
  }
  12%, 78% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  46% {
    transform: translateX(5px) rotate(1.2deg);
  }
}

@keyframes guideBob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-wave,
  .guide-wave img {
    animation: none;
  }
}

@media (min-width: 1440px) {
  .landing-hero {
    padding-top: 128px;
  }

  .landing-hero-stage {
    width: min(1360px, 100%);
    min-height: min(760px, calc(100svh - 164px));
    grid-template-columns: minmax(520px, 0.82fr) minmax(620px, 1.18fr);
  }

  .hero-float-showcase img {
    width: min(100%, 880px);
    max-height: 650px;
  }

  .hero-copy-card {
    max-width: 650px;
  }
}

.game-lobby-bg {
  object-fit: contain;
  object-position: center;
  background: #f6dce8;
}

.game-lobby-shade {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(52, 27, 95, 0.04), rgba(52, 27, 95, 0.18));
}

.interactive-scene {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
}

.scene-object {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}

.scene-object img {
  display: none;
}

.scene-object::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 2;
  min-width: max-content;
  border: 3px solid #211e24;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--game-purple);
  font-size: 0.8rem;
  font-weight: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 5px 5px 0 rgba(52, 27, 95, 0.2);
}

.scene-object::after {
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.scene-object:hover::before,
.scene-object:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scene-object.is-primary-scene::after {
  opacity: 0.22;
  animation: hotspotPulse 1.8s ease-in-out infinite;
}

.scene-object.is-primary-scene:hover::after,
.scene-object.is-primary-scene:focus-visible::after {
  animation: none;
  opacity: 1;
}

@keyframes hotspotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(255, 255, 255, 0.52);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18), 0 0 26px rgba(255, 255, 255, 0.88);
  }
}

.scene-laptop {
  width: 40%;
  height: 43%;
  left: 51%;
  top: 50%;
}

.scene-red-guide {
  width: 23%;
  height: 48%;
  left: 22.5%;
  top: 43.5%;
}

.scene-blue-guide {
  width: 17%;
  height: 31%;
  left: 68.5%;
  top: 78%;
}

.scene-cartilha {
  width: 14%;
  height: 34%;
  left: 7.5%;
  top: 62%;
}

.scene-objectives {
  width: 18%;
  height: 17%;
  left: 38.8%;
  top: 78.5%;
}

.scene-routine {
  width: 18.5%;
  height: 18%;
  left: 54.5%;
  top: 77.5%;
}

.scene-faq {
  width: 23%;
  height: 20%;
  left: 82.5%;
  top: 26.5%;
}

.scene-guide-kit {
  width: 25%;
  height: 54%;
  left: 84.5%;
  top: 66.5%;
}

.play-page.is-game-focused .game-hud-row {
  top: clamp(22px, 3vh, 34px);
  left: clamp(22px, 2.4vw, 38px);
  z-index: 8;
}

.game-score-card {
  width: clamp(210px, 15.4vw, 300px);
  min-width: 0;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.98);
}

.game-score-card span {
  width: 54px;
  height: 54px;
}

.game-topbar {
  z-index: 12;
}

.game-intro-panel img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
}

@media (orientation: portrait) {
  .game-lobby-bg {
    object-fit: cover;
    object-position: center;
  }

  .interactive-scene {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    left: 0;
    top: 0;
  }
}

@media (max-width: 900px) {
  .guide-wave {
    display: block;
    width: clamp(118px, 24vw, 170px);
    left: -24px;
    bottom: clamp(118px, 18svh, 180px);
  }
}

@media (max-width: 760px) {
  .landing-hero .hud-actions a {
    min-width: 64px;
    min-height: 58px;
    font-size: 0.9rem;
  }

  .guide-wave {
    z-index: 9;
    width: clamp(108px, 30vw, 142px);
    left: -28px;
    bottom: clamp(155px, 28svh, 240px);
  }

  .play-page.is-game-focused .game-hud-row {
    top: 78px;
    left: 10px;
    right: 10px;
  }

  .game-score-card {
    width: auto;
    min-height: 72px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 8px;
    padding: 8px;
  }

  .game-score-card span {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .game-score-card strong {
    font-size: 1.35rem;
  }

  .game-score-card small {
    font-size: 0.68rem;
  }

  .scene-laptop {
    width: 72vw;
    height: 28vh;
    left: 50%;
    top: 38%;
  }

  .scene-red-guide {
    width: 34vw;
    height: 27vh;
    left: 20%;
    top: 43%;
  }

  .scene-blue-guide {
    width: 30vw;
    height: 22vh;
    left: 72%;
    top: 73%;
  }

  .scene-cartilha {
    width: 32vw;
    height: 24vh;
    left: 15%;
    top: 66%;
  }

  .scene-objectives {
    width: 40vw;
    height: 16vh;
    left: 37%;
    top: 82%;
  }

  .scene-routine {
    width: 40vw;
    height: 16vh;
    left: 72%;
    top: 82%;
  }

  .scene-faq {
    width: 44vw;
    height: 15vh;
    left: 76%;
    top: 30%;
  }

  .scene-guide-kit {
    width: 42vw;
    height: 28vh;
    left: 82%;
    top: 56%;
  }
}

/* Public/play v25: restore native lobby objects; reference art must not be used as scene background */
.game-lobby-bg {
  object-fit: cover;
  object-position: center;
  background: #f6dce8;
}

.interactive-scene {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
}

.scene-object {
  height: auto;
}

.scene-object img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-object::before {
  bottom: auto;
  top: calc(100% + 8px);
}

.scene-object::after {
  background: transparent;
}

.scene-laptop::after {
  inset: 6% 1% 3%;
}

.scene-laptop {
  width: min(49vw, 68vh, 820px);
  left: 51%;
  top: 54%;
}

.scene-red-guide {
  width: min(22vw, 390px);
  left: 21%;
  top: 44%;
}

.scene-blue-guide {
  width: min(17vw, 300px);
  left: 72%;
  top: 76%;
}

.scene-cartilha {
  width: min(15vw, 240px);
  left: 8%;
  top: 63%;
}

.scene-objectives {
  width: min(24vw, 380px);
  left: 43%;
  top: 81%;
}

.scene-routine {
  width: min(24vw, 380px);
  left: 61%;
  top: 80%;
}

.scene-faq {
  width: min(25vw, 400px);
  left: 82%;
  top: 32%;
}

.scene-guide-kit {
  width: min(24vw, 400px);
  left: 84%;
  top: 58%;
}

@media (max-width: 900px) {
  .scene-laptop {
    width: min(66vw, 580px);
    left: 52%;
    top: 40%;
  }

  .scene-red-guide {
    width: min(29vw, 280px);
    left: 20%;
    top: 48%;
  }

  .scene-blue-guide {
    width: min(25vw, 230px);
    left: 73%;
    top: 70%;
  }

  .scene-cartilha {
    width: min(23vw, 190px);
    left: 12%;
    top: 68%;
  }

  .scene-objectives {
    width: min(35vw, 290px);
    left: 39%;
    top: 82%;
  }

  .scene-routine {
    width: min(35vw, 290px);
    left: 68%;
    top: 82%;
  }

  .scene-faq {
    width: min(39vw, 330px);
    left: 79%;
    top: 30%;
  }

  .scene-guide-kit {
    width: min(33vw, 290px);
    left: 82%;
    top: 56%;
  }
}

@media (max-width: 640px) {
  .scene-laptop {
    width: 78vw;
    left: 52%;
    top: 36%;
  }

  .scene-red-guide {
    width: 37vw;
    left: 21%;
    top: 48%;
  }

  .scene-blue-guide {
    width: 32vw;
    left: 73%;
    top: 69%;
  }

  .scene-cartilha {
    width: 30vw;
    left: 13%;
    top: 70%;
  }

  .scene-objectives {
    width: 43vw;
    left: 35%;
    top: 84%;
  }

  .scene-routine {
    width: 43vw;
    left: 72%;
    top: 84%;
  }

  .scene-faq {
    width: 48vw;
    left: 76%;
    top: 31%;
  }

  .scene-guide-kit {
    width: 42vw;
    left: 82%;
    top: 55%;
  }
}

/* DIVAR 360 v26: visual QA pass for public landing and playable lobby */
:root {
  --game-border: #211e24;
  --game-raised-shadow: 0 6px 0 #7c1249, 0 14px 22px rgba(52, 27, 95, 0.2);
  --game-raised-shadow-soft: 0 6px 0 rgba(180, 15, 97, 0.35), 0 14px 22px rgba(52, 27, 95, 0.16);
}

body.marketing-page,
body.play-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 360px),
    linear-gradient(135deg, #f23b91 0%, #a96be8 52%, #48c4f3 100%);
}

.site-header {
  border: 3px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 0 rgba(52, 27, 95, 0.18);
}

.site-nav a,
.play-button,
.outline-button,
.divar-banner-card a,
.play-card-copy a,
.card-cta,
.public-cta .play-button,
.play-page .button.primary,
.play-page .button.secondary,
.play-page .button.ghost,
.game-icon-button,
.game-start-button,
.answer-button,
.game-mode-card,
.scene-info-action {
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
}

.site-nav a {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.68);
  color: var(--game-border);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--game-pink);
  background: #fff;
  outline: 0;
}

.site-nav .nav-cta,
.play-button,
.divar-banner-card a,
.play-card-copy a,
.public-cta .play-button {
  border: 3px solid var(--game-border);
  background: linear-gradient(180deg, #f64296, #c81469);
  color: #fff;
  box-shadow: var(--game-raised-shadow);
}

.outline-button,
.play-page .button.secondary,
.play-page .button.ghost,
.scene-info-action {
  border: 3px solid var(--game-pink);
  background: rgba(255, 255, 255, 0.98);
  color: var(--game-pink);
  box-shadow: var(--game-raised-shadow-soft);
}

.landing-hero {
  min-height: 100svh;
  padding-inline: max(24px, calc((100vw - 1500px) / 2 + 48px));
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(79, 195, 255, 0.34), transparent 18%),
    linear-gradient(135deg, #f23b91 0%, #b75ce0 54%, #42c4f0 100%);
}

.landing-hero-stage {
  width: min(1450px, 100%);
}

.hero-copy-card {
  background: rgba(255, 255, 255, 0.9);
}

.hero-float-showcase img {
  margin-inline: auto;
}

.divar-banner-card {
  width: min(1120px, calc(100% - 48px));
}

.divar-banner-card img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.84);
}

.game-entry-scene {
  background: rgba(255, 255, 255, 0.92);
}

.game-entry-scene img {
  object-fit: contain;
  background: #ffe5f2;
}

.play-card {
  transform: translateZ(0);
}

.play-card:hover,
.play-card:focus-within {
  transform: translateY(-6px);
}

.play-card-copy a,
.card-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.play-page.is-game-focused .fake-game-stage {
  width: 100%;
  min-height: 100svh;
}

.scene-objectives,
.scene-routine {
  display: none !important;
}

.scene-laptop {
  width: min(54vw, 78vh, 880px);
  left: 51%;
  top: 52%;
}

.scene-red-guide {
  width: min(24vw, 420px);
  left: 20%;
  top: 42%;
}

.scene-blue-guide {
  width: min(18vw, 320px);
  left: 72%;
  top: 74%;
}

.scene-cartilha {
  width: min(16vw, 260px);
  left: 8%;
  top: 64%;
}

.scene-faq {
  width: min(25vw, 410px);
  left: 82%;
  top: 30%;
}

.scene-guide-kit {
  width: min(25vw, 420px);
  left: 84%;
  top: 61%;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}

.auth-mode-switch button {
  min-height: 44px;
  border: 3px solid var(--game-pink);
  border-radius: 8px;
  background: #fff;
  color: var(--game-pink);
  font-weight: 1000;
  cursor: pointer;
}

.auth-mode-switch button.is-active {
  border-color: var(--game-border);
  background: linear-gradient(180deg, #f64296, #c81469);
  color: #fff;
  box-shadow: 0 4px 0 #7c1249;
}

@media (min-width: 1600px) {
  .site-header {
    width: min(1380px, calc(100% - 72px));
  }

  .landing-hero-stage {
    min-height: min(780px, calc(100svh - 150px));
    grid-template-columns: minmax(560px, 0.78fr) minmax(720px, 1.22fr);
  }

  .hero-float-showcase img {
    width: min(100%, 940px);
    max-height: 700px;
  }

  .game-card-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

@media (max-width: 1100px) {
  .game-card-grid,
  .learning-world .factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-intro-panel {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .game-intro-panel img {
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .site-brand {
    justify-content: center;
  }

  .site-brand-logo {
    width: min(214px, 68vw);
    height: 58px;
    object-position: center;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: center;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .landing-hero {
    display: grid;
    align-items: start;
    gap: 12px;
    min-height: auto;
    padding: 174px 20px 44px;
  }

  .landing-hero .hud-left {
    position: relative;
    order: 1;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .landing-hero .hud-card {
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px;
  }

  .landing-hero .hud-card .hud-icon {
    width: 38px;
    height: 38px;
  }

  .landing-hero .hud-card strong {
    font-size: clamp(1.18rem, 6vw, 1.55rem);
  }

  .landing-hero-stage {
    order: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-float-showcase {
    order: 1;
  }

  .hero-float-showcase img {
    width: min(100%, 350px);
    max-height: 300px;
  }

  .hero-copy-card {
    order: 2;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .hero-copy-card p {
    color: #fff;
    text-shadow: 0 2px 0 rgba(52, 27, 95, 0.35);
  }

  .landing-hero .hud-actions {
    position: relative;
    order: 3;
    top: auto;
    right: auto;
    justify-content: center;
    margin-top: 2px;
  }

  .landing-hero .hud-actions a {
    min-width: 76px;
    min-height: 62px;
    font-size: 1rem;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .divar-banner-card {
    order: 4;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .divar-banner-card img {
    max-height: 140px;
  }

  .story-section,
  .learning-world .factor-grid,
  .game-card-grid,
  .module-track {
    grid-template-columns: 1fr;
  }

  .game-entry-scene img {
    aspect-ratio: 16 / 9;
  }

  .guide-wave {
    width: clamp(120px, 34vw, 156px);
    left: -34px;
    bottom: clamp(170px, 25svh, 230px);
  }

  .play-page.is-game-focused .game-hud-row {
    top: 84px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .play-page.is-game-focused .game-controls {
    gap: 8px;
  }

  .play-page.is-game-focused .game-icon-button {
    width: 64px;
    height: 64px;
  }

  .game-lobby-panel {
    min-height: 100svh;
  }

  .scene-laptop {
    width: min(84vw, 520px);
    left: 52%;
    top: 34%;
  }

  .scene-red-guide {
    width: min(42vw, 230px);
    left: 22%;
    top: 52%;
  }

  .scene-blue-guide {
    width: min(34vw, 190px);
    left: 73%;
    top: 72%;
  }

  .scene-cartilha {
    width: min(32vw, 180px);
    left: 15%;
    top: 75%;
  }

  .scene-faq {
    width: min(46vw, 250px);
    left: 78%;
    top: 26%;
  }

  .scene-guide-kit {
    width: min(42vw, 240px);
    left: 82%;
    top: 56%;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .landing-hero {
    padding-inline: 16px;
  }

  .landing-hero .hud-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .landing-hero .hud-card .hud-icon {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
  }

  .landing-hero .hud-card span {
    font-size: 0.7rem;
  }

  .landing-hero .hud-card strong {
    font-size: 1.2rem;
  }

  .game-phase-card h1,
  .game-result-panel h2 {
    font-size: 2rem;
  }
}

/* DIVAR 360 v27: cleaner HUD without redundant text badges */
.landing-hero .hud-card,
.play-page .game-score-card {
  grid-template-columns: minmax(0, 1fr);
}

.landing-hero .hud-card > span:not([data-counter]),
.play-page .game-score-card small {
  grid-column: 1;
}

.landing-hero .hud-card strong,
.landing-hero .hud-phase,
.landing-hero .hud-progress {
  grid-column: 1;
}

.landing-hero .hud-card .hud-icon,
.play-page .game-score-card > span:not([data-counter]) {
  display: none !important;
}

.play-page .game-score-card {
  align-content: center;
  gap: 4px;
}

.play-page .game-score-card strong,
.play-page .game-score-card small {
  grid-column: 1;
}

@media (max-width: 760px) {
  .landing-hero .hud-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .play-page.is-game-focused .game-score-card {
    min-height: 66px;
    padding: 10px 12px;
  }
}

/* DIVAR 360 v28: public home without in-game HUD, with inline mock auth */
.site-nav [hidden],
.landing-auth-form[hidden],
.nav-session[hidden],
.nav-logout[hidden] {
  display: none !important;
}

.site-nav button,
.nav-session {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 950;
  white-space: nowrap;
}

.site-nav button {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.68);
  color: var(--game-border);
  cursor: pointer;
}

.site-nav button:hover,
.site-nav button:focus-visible {
  border-color: var(--game-pink);
  background: #fff;
  outline: 0;
}

.site-nav button.nav-cta,
.site-nav .nav-logout {
  border: 3px solid var(--game-border);
  background: linear-gradient(180deg, #f64296, #c81469);
  color: #fff;
  box-shadow: var(--game-raised-shadow);
}

.site-nav .nav-logout {
  min-width: 64px;
  background: #fff;
  color: var(--game-pink);
}

.nav-session {
  border: 2px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.92);
  color: var(--game-purple);
  box-shadow: 0 5px 0 rgba(52, 27, 95, 0.14);
}

.landing-hero .hud-left,
.landing-hero .hud-actions {
  display: none !important;
}

.landing-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(112px, 13vh, 152px) max(24px, calc((100vw - 1540px) / 2 + 56px)) clamp(58px, 8vh, 92px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.36), transparent 17%),
    radial-gradient(circle at 82% 20%, rgba(74, 215, 255, 0.34), transparent 18%),
    linear-gradient(135deg, #f23897 0%, #f65faf 42%, #8e63ea 76%, #45c5f1 100%);
}

.landing-hero::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 44%),
    radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.24), transparent 20%);
  opacity: 1;
}

.landing-hero::after {
  content: "";
  position: absolute;
  top: clamp(138px, 18vh, 194px);
  left: clamp(86px, 13vw, 260px);
  z-index: 1;
  width: min(520px, 36vw);
  height: 220px;
  background:
    radial-gradient(circle at 4% 76%, #4fc3ff 0 13px, transparent 14px),
    radial-gradient(circle at 18% 24%, #ffcf6b 0 18px, transparent 19px),
    radial-gradient(circle at 38% 52%, #ffffff 0 9px, transparent 10px),
    radial-gradient(circle at 58% 16%, #8e63ea 0 15px, transparent 16px),
    radial-gradient(circle at 76% 66%, #ff7bc0 0 20px, transparent 21px),
    radial-gradient(circle at 94% 34%, #5ee6b8 0 12px, transparent 13px);
  opacity: 0.88;
  pointer-events: none;
  filter: drop-shadow(0 10px 10px rgba(52, 27, 95, 0.12));
}

.landing-hero-stage {
  width: min(1440px, 100%);
  min-height: min(760px, calc(100svh - 190px));
  grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
}

.hero-copy-card {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy-card h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(3.35rem, 5.4vw, 6.15rem);
  line-height: 0.92;
  text-shadow: 0 6px 0 #341b5f, 0 20px 40px rgba(52, 27, 95, 0.34);
}

.hero-copy-card p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.03rem, 1.8vw, 1.24rem);
  line-height: 1.55;
  text-shadow: 0 2px 0 rgba(52, 27, 95, 0.22);
}

.landing-actions {
  display: flex;
  justify-content: center;
  max-width: 620px;
}

.landing-actions .play-button,
.public-cta .play-button,
.landing-auth-form .play-button {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.landing-actions .play-button {
  min-width: min(100%, 360px);
  min-height: 68px;
  font-size: 1.08rem;
}

.landing-actions .play-button:hover,
.landing-actions .play-button:focus-visible,
.public-cta .play-button:hover,
.public-cta .play-button:focus-visible,
.landing-auth-form .play-button:hover,
.landing-auth-form .play-button:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 0 #8b164d, 0 24px 32px rgba(52, 27, 95, 0.22);
  filter: saturate(1.08);
  outline: 0;
}

.landing-actions .play-button:active,
.public-cta .play-button:active,
.landing-auth-form .play-button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 4px 0 #8b164d, 0 10px 18px rgba(52, 27, 95, 0.18);
}

.hero-float-showcase {
  align-self: center;
}

.hero-float-showcase img {
  width: min(100%, 860px);
  max-height: min(72svh, 720px);
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(52, 27, 95, 0.26));
}

.guide-wave {
  left: clamp(-18px, 1vw, 26px);
  top: auto;
  bottom: clamp(38px, 8vh, 82px);
  z-index: 6;
  width: clamp(170px, 13vw, 230px);
}

.story-section {
  width: min(1320px, calc(100% - 56px));
  min-height: 88svh;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(96px, 13vh, 150px) 0;
}

.story-section .section-copy h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  text-shadow: 0 5px 0 rgba(52, 27, 95, 0.34);
}

.story-section .section-copy p:not(.landing-kicker) {
  max-width: 660px;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.story-section .api-reality-note {
  max-width: 680px;
  margin-top: 24px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #44324c;
  box-shadow: 10px 10px 0 rgba(52, 27, 95, 0.16);
}

.story-section .divar-banner-card {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin: clamp(8px, 2vh, 22px) auto 0;
}

.story-section .divar-banner-card img {
  max-height: 130px;
  object-fit: contain;
}

.world-card {
  align-self: center;
}

.world-card img {
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.learning-world {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: center;
  width: 100%;
  padding: clamp(94px, 13vh, 150px) max(24px, calc((100vw - 1280px) / 2 + 48px));
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 86% 82%, rgba(255, 207, 107, 0.28), transparent 20%),
    linear-gradient(135deg, #8357e5 0%, #4fc3ff 100%);
}

.learning-world .section-copy.centered {
  max-width: 960px;
  margin-bottom: clamp(28px, 5vh, 54px);
}

.learning-world .section-copy h2 {
  color: #fff;
  font-size: clamp(2.35rem, 4.8vw, 5rem);
  line-height: 0.98;
  text-shadow: 0 5px 0 rgba(52, 27, 95, 0.3);
}

.learning-world .factor-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.learning-world .factor-grid article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 3px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.95);
}

.landing-auth-overlay[hidden] {
  display: none !important;
}

.landing-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 19, 44, 0.66);
  backdrop-filter: blur(8px);
}

.landing-auth-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 3px solid var(--game-border);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 66, 150, 0.16), transparent 30%),
    #fff8fc;
  box-shadow: 12px 12px 0 rgba(52, 27, 95, 0.34);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 59, 134, 0.7) rgba(255, 225, 239, 0.9);
}

.landing-auth-card::-webkit-scrollbar {
  width: 10px;
}

.landing-auth-card::-webkit-scrollbar-track {
  background: rgba(255, 225, 239, 0.9);
}

.landing-auth-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(238, 59, 134, 0.7);
}

.landing-auth-card .auth-mode-switch {
  margin: 0 0 18px;
}

.landing-auth-card .auth-mode-switch button {
  padding: 8px 10px;
  line-height: 1.15;
}

.landing-auth-card h2 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1;
}

.landing-auth-copy {
  margin: 12px 0 18px;
  color: #5f5368;
  font-weight: 700;
  line-height: 1.5;
}

.landing-auth-form {
  display: grid;
  gap: 14px;
}

.landing-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--game-purple);
  font-weight: 950;
}

.landing-auth-form input {
  min-height: 48px;
  width: 100%;
  border: 2px solid rgba(52, 27, 95, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #211e24;
  font: inherit;
}

.landing-auth-form input:focus {
  border-color: var(--game-pink);
  box-shadow: 0 0 0 4px rgba(238, 59, 134, 0.16);
  outline: 0;
}

.auth-password-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--game-purple);
  font-weight: 950;
}

.auth-password-field {
  position: relative;
  min-width: 0;
}

.landing-auth-form .auth-password-field input {
  padding-right: 58px;
}

.auth-password-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--game-purple);
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: rgba(238, 59, 134, 0.12);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--game-pink);
  outline-offset: -3px;
}

.auth-password-toggle:disabled {
  opacity: 0.5;
  cursor: wait;
}

.auth-password-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-password-slash {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-slash {
  display: block;
}

.auth-password-error {
  color: #a01852;
  font-size: 0.875rem;
  font-weight: 700;
}

.auth-password-error[hidden] {
  display: none;
}

.auth-required {
  color: #a01852;
}

.auth-password-group > label {
  display: block;
}

.auth-required-note {
  margin: 0;
  color: #5f5368;
  font-size: 0.875rem;
  font-weight: 700;
}

.landing-auth-form input[data-field-state="valid"] {
  border-color: #24734b;
  background: #f3faf5;
}

.landing-auth-form input[data-field-state="invalid"] {
  border-color: #b12340;
  background: #fff6f6;
}

.landing-auth-form input[data-field-state="valid"]:focus {
  box-shadow: 0 0 0 3px rgba(36, 115, 75, 0.16);
}

.landing-auth-form input[data-field-state="invalid"]:focus {
  box-shadow: 0 0 0 3px rgba(177, 35, 64, 0.16);
}

.auth-field-feedback,
.auth-preview-note {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-field-feedback[data-state="valid"] {
  color: #24734b;
}

.auth-field-feedback[data-state="invalid"] {
  color: #b12340;
}

.auth-field-feedback[hidden],
[data-registration-phone-preview][hidden] {
  display: none;
}

.auth-preview-note {
  color: #705d37;
}

.auth-password-strength {
  display: grid;
  gap: 10px;
  margin-top: 3px;
  padding: 12px;
  border: 1px solid #ded5e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  min-width: 0;
}

.auth-password-strength-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #655b6d;
  font-size: 0.8125rem;
  font-weight: 700;
}

.auth-password-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e1dce5;
}

.auth-password-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: #b12340;
}

.auth-password-strength[data-score="1"] .auth-password-meter > span { width: 25%; }
.auth-password-strength[data-score="2"] .auth-password-meter > span { width: 50%; }
.auth-password-strength[data-score="3"] .auth-password-meter > span { width: 75%; background: #9c631c; }
.auth-password-strength[data-score="4"] .auth-password-meter > span { width: 100%; background: #24734b; }
.auth-password-strength[data-score="4"] .auth-password-strength-heading { color: #24734b; }

.auth-password-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-password-rules li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 5px 3px;
  border: 1px solid #e1dce5;
  border-radius: 6px;
  background: #f5f2f7;
  color: #655b6d;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-password-rules li.is-met {
  color: #24734b;
  border-color: #b9d8c6;
  background: #edf7f1;
}

.auth-rule-icon {
  flex: 0 0 12px;
}

.auth-password-hint {
  color: #655b6d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 360px) {
  .auth-password-rules li {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .auth-rule-icon {
    flex-basis: auto;
  }
}

.landing-auth-form .play-button {
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

.landing-auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--game-pink);
  font-weight: 950;
}

.is-auth-modal-open {
  overflow: hidden;
}

@media (min-width: 1600px) {
  .landing-hero-stage {
    min-height: min(820px, calc(100svh - 190px));
    grid-template-columns: minmax(520px, 0.74fr) minmax(760px, 1.26fr);
  }

  .hero-float-showcase img {
    width: min(100%, 980px);
  }
}

@media (min-width: 1181px) {
  .landing-hero-stage {
    align-items: center;
    padding-top: clamp(18px, 4vh, 48px);
  }

  .hero-copy-card {
    transform: translateY(clamp(30px, 7vh, 72px));
  }

  .hero-float-showcase {
    justify-self: end;
    transform: translate(clamp(14px, 2.2vw, 34px), clamp(-38px, -4vh, -18px));
  }

  .hero-float-showcase img {
    width: min(100%, 920px);
  }

  .landing-actions {
    justify-content: center;
    margin-top: clamp(28px, 5vh, 54px);
  }
}

@media (max-width: 1180px) {
  .landing-hero {
    padding-inline: 34px;
  }

  .landing-hero-stage,
  .story-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-stage {
    min-height: auto;
    gap: 24px;
    padding-top: 20px;
  }

  .landing-hero::after {
    top: 156px;
    left: 50%;
    width: min(460px, 72vw);
    transform: translateX(-50%);
    opacity: 0.6;
  }

  .hero-copy-card {
    text-align: center;
  }

  .hero-copy-card p,
  .landing-actions {
    margin-inline: auto;
  }

  .hero-float-showcase {
    order: -1;
  }

  .hero-float-showcase img {
    margin-inline: auto;
    max-height: min(45svh, 440px);
  }

  .story-section {
    width: min(980px, calc(100% - 44px));
    min-height: auto;
    text-align: center;
  }

  .story-section .section-copy h2,
  .story-section .section-copy p:not(.landing-kicker),
  .story-section .api-reality-note {
    margin-inline: auto;
  }

  .story-section .api-reality-note {
    border-left: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    text-align: left;
  }

  .learning-world .factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .has-session .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav button,
  .nav-session {
    min-height: 48px;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .nav-session {
    grid-column: 1 / -1;
  }

  .landing-hero {
    align-items: start;
    min-height: auto;
    padding: 174px 20px 54px;
  }

  .landing-hero::after {
    display: none;
  }

  .landing-hero-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-float-showcase {
    order: 1;
  }

  .hero-float-showcase img {
    width: min(100%, 380px);
    max-height: 330px;
  }

  .hero-copy-card {
    order: 2;
    text-align: left;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-copy-card p {
    font-size: 1rem;
  }

  .landing-actions {
    display: grid;
    max-width: none;
    margin-top: 24px;
  }

  .landing-actions .play-button {
    min-width: 0;
    width: 100%;
    min-height: 60px;
  }

  .guide-wave {
    left: -160px;
    top: clamp(292px, 36vh, 348px);
    bottom: auto;
    width: clamp(236px, 64vw, 286px);
  }

  .story-section {
    width: min(640px, calc(100% - 32px));
    padding: 76px 0;
    gap: 22px;
  }

  .story-section .section-copy h2,
  .learning-world .section-copy h2 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  .world-card img {
    aspect-ratio: 16 / 10;
  }

  .story-section .divar-banner-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .story-section .divar-banner-card img {
    max-height: 110px;
  }

  .learning-world {
    min-height: auto;
    padding: 78px 18px;
  }

  .learning-world .factor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-brand-logo {
    width: min(200px, 64vw);
  }

  .site-nav a,
  .site-nav button {
    font-size: 0.7rem;
  }

  .hero-float-showcase img {
    max-height: 292px;
  }

  .landing-auth-overlay {
    padding: 12px;
  }

  .landing-auth-card {
    max-height: calc(100svh - 24px);
    padding: 18px;
  }
}

/* DIVAR 360 v29: same centered hero composition across breakpoints + mock profile */
.site-nav [hidden],
.nav-profile[hidden] {
  display: none !important;
}

.nav-profile {
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-purple);
  box-shadow: 0 5px 0 rgba(52, 27, 95, 0.14);
}

.nav-profile img {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(238, 59, 134, 0.48);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.nav-profile span,
.nav-profile small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile span {
  font-size: 0.84rem;
  font-weight: 1000;
}

.nav-profile small {
  color: var(--game-pink);
  font-size: 0.7rem;
  font-weight: 950;
}

.landing-hero {
  align-items: center;
  min-height: 100svh;
  padding: clamp(92px, 12vh, 126px) max(18px, calc((100vw - 1280px) / 2 + 24px)) clamp(44px, 7vh, 70px);
}

.landing-hero-stage {
  width: min(1040px, 100%);
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 24px);
  margin: 0 auto;
  padding-top: clamp(8px, 2vh, 18px);
}

.hero-float-showcase {
  order: 1;
  justify-self: center;
  transform: none !important;
}

.hero-float-showcase img {
  width: min(650px, 72vw);
  max-height: clamp(230px, 39vh, 410px);
  margin-inline: auto;
  object-fit: contain;
}

.hero-copy-card {
  order: 2;
  width: min(720px, 100%);
  text-align: center;
  transform: none !important;
}

.hero-copy-card h1 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(3.1rem, 6.1vw, 5.45rem);
}

.hero-copy-card p {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.landing-actions {
  justify-content: center;
  margin: clamp(20px, 3.5vh, 34px) auto 0;
}

.landing-hero::after {
  top: clamp(124px, 17vh, 176px);
  left: 50%;
  width: min(560px, 60vw);
  height: 230px;
  transform: translateX(-50%);
  opacity: 0.82;
}

.guide-wave {
  bottom: clamp(44px, 9vh, 92px);
}

@media (min-width: 1500px) {
  .landing-hero-stage {
    width: min(1120px, 100%);
  }

  .hero-float-showcase img {
    width: min(720px, 60vw);
    max-height: 430px;
  }
}

@media (max-width: 1180px) {
  .landing-hero {
    padding-inline: clamp(18px, 4vw, 34px);
  }

  .landing-hero-stage {
    gap: clamp(12px, 2vh, 20px);
    padding-top: clamp(8px, 2vh, 16px);
  }

  .hero-float-showcase {
    order: 1;
  }

  .hero-copy-card {
    order: 2;
    text-align: center;
  }

  .hero-float-showcase img {
    width: min(620px, 72vw);
    max-height: clamp(230px, 38vh, 390px);
  }

  .landing-hero::after {
    display: block;
  }
}

@media (max-width: 760px) {
  .has-session .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-profile {
    grid-column: 1;
    min-width: 0;
  }

  .site-nav .nav-logout {
    grid-column: 2;
  }

  .landing-hero {
    min-height: 100svh;
    padding: 172px 20px 44px;
  }

  .hero-float-showcase img {
    width: min(420px, 88vw);
    max-height: clamp(210px, 34vh, 315px);
  }

  .hero-copy-card {
    text-align: center;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.55rem, 11vw, 3.65rem);
  }

  .hero-copy-card p {
    text-align: center;
  }

  .landing-actions {
    width: min(360px, 100%);
  }

  .landing-hero::after {
    top: 164px;
    width: min(360px, 84vw);
    height: 180px;
    opacity: 0.55;
  }
}

@media (max-width: 430px) {
  .landing-hero {
    padding-top: 164px;
  }

  .hero-float-showcase img {
    max-height: 280px;
  }

  .nav-profile {
    padding-right: 8px;
  }
}

/* DIVAR 360 v30: keep the same centered hero reading on mobile */
@media (max-width: 760px) {
  .landing-hero {
    justify-content: flex-start;
    padding: clamp(212px, 24vh, 232px) 20px 38px;
  }

  .landing-hero-stage {
    justify-content: flex-start;
    gap: clamp(10px, 1.8vh, 16px);
  }

  .hero-float-showcase img {
    width: min(390px, 86vw);
    max-height: clamp(202px, 27vh, 270px);
  }

  .hero-copy-card h1 {
    font-size: clamp(2.42rem, 10.4vw, 3.25rem);
    line-height: 0.94;
  }

  .hero-copy-card p {
    max-width: 34rem;
    font-size: clamp(1rem, 4vw, 1.12rem);
  }

  .landing-actions {
    margin-top: clamp(16px, 2.4vh, 22px);
  }
}

@media (max-width: 430px) {
  .landing-hero {
    padding-top: 218px;
  }

  .hero-float-showcase img {
    max-height: 245px;
  }
}

/* DIVAR 360 v31: mobile header is in normal flow, so hero needs local spacing only */
@media (max-width: 760px) {
  .landing-hero {
    min-height: max(560px, calc(100svh - 216px));
    padding: clamp(24px, 4vh, 38px) 20px 38px;
  }

  .landing-hero-stage {
    padding-top: 0;
  }
}

/* DIVAR 360 v33: DISC, assets finais e polish para apresentação */
.site-brand-logo {
  object-fit: contain;
}

.hero-float-showcase img {
  filter: drop-shadow(0 24px 20px rgba(44, 21, 86, 0.2));
}

.story-section .compact-info-card {
  width: min(520px, 100%);
  padding: 14px 18px 15px 20px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 221, 77, 0.48), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(42, 178, 255, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 230, 246, 0.9) 52%, rgba(240, 219, 255, 0.9));
  color: #372058;
  box-shadow: 0 8px 0 rgba(54, 28, 94, 0.18), 0 20px 38px rgba(129, 49, 158, 0.18);
}

.story-section .compact-info-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--game-pink);
  font-size: 0.86rem;
}

.story-section .compact-info-card {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.5;
}

.story-section .divar-banner-card img {
  width: min(430px, 82vw);
  max-height: 180px;
  object-fit: contain;
}


.learning-world .factor-grid article {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  box-shadow: 0 8px 0 rgba(37, 19, 76, 0.22), 0 20px 36px rgba(48, 21, 91, 0.16);
}

.learning-world .factor-grid article::before {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.learning-world .factor-grid article::after {
  content: none !important;
  display: none;
}

.learning-world .factor-grid article::before {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.learning-world .factor-grid article::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 2.2rem;
  font-weight: 1000;
  opacity: 0;
}

.learning-world .factor-grid article:nth-child(1) {
  background: linear-gradient(135deg, #ee3b86, #7f43ef);
}

.learning-world .factor-grid article:nth-child(1)::after {
  content: "01";
}

.learning-world .factor-grid article:nth-child(2) {
  background: linear-gradient(135deg, #1aa6f7, #6246ea);
}

.learning-world .factor-grid article:nth-child(2)::after {
  content: "02";
}

.learning-world .factor-grid article:nth-child(3) {
  background: linear-gradient(135deg, #ffb000, #ff4f8b);
}

.learning-world .factor-grid article:nth-child(3)::after {
  content: "03";
}

.learning-world .factor-grid article:nth-child(4) {
  background: linear-gradient(135deg, #22c55e, #00a8c7);
}

.learning-world .factor-grid article:nth-child(4)::after {
  content: "04";
}

.learning-world .factor-grid article:nth-child(5) {
  background: linear-gradient(135deg, #6d28d9, #db2777);
}

.learning-world .factor-grid article:nth-child(5)::after {
  content: "05";
}

.learning-world .factor-grid article:nth-child(6) {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.learning-world .factor-grid article:nth-child(6)::after {
  content: "06";
}

.learning-world .factor-grid strong,
.learning-world .factor-grid span {
  position: relative;
  color: #fff;
}

.play-card[data-game-theme="disc"] .play-card-art {
  background: linear-gradient(135deg, #ffe2f2, #a955f7);
}

.play-card[data-game-theme="disc"] .play-card-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
}

.play-card[data-game-theme="hunt"] .play-card-art img,
.play-card[data-game-theme="include"] .play-card-art img,
.play-card[data-game-theme="board"] .play-card-art img,
.play-card[data-game-theme="room"] .play-card-art img,
.play-card[data-game-theme="team"] .play-card-art img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

.disc-intro-panel[hidden],
.disc-live-panel[hidden],
.disc-result-panel[hidden] {
  display: none !important;
}

.disc-intro-panel,
.disc-live-panel,
.disc-result-panel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.disc-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  min-height: min(760px, 100svh);
  padding: 112px 0 40px;
}

.disc-intro-panel > img {
  width: 100%;
  min-height: 340px;
  max-height: 620px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 12px 0 rgba(53, 26, 89, 0.22), 0 28px 48px rgba(57, 24, 92, 0.28);
}

.disc-phase-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 248, 0.94)),
    radial-gradient(circle at top right, rgba(255, 207, 64, 0.34), transparent 36%);
}

.disc-live-panel {
  display: grid;
  gap: 18px;
  padding: 104px 0 42px;
}

.disc-question-banner {
  justify-self: center;
}

.disc-arena {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
}

.disc-arena-art {
  width: 100%;
  min-height: 330px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 0 rgba(53, 26, 89, 0.18), 0 28px 48px rgba(42, 16, 81, 0.24);
}

.disc-question-card {
  border: 4px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 0 rgba(54, 23, 91, 0.22), 0 26px 44px rgba(53, 26, 89, 0.24);
}

.disc-question-card small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.disc-question-card h2 {
  margin: 0 0 22px;
  color: #2d174f;
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

.disc-scale-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.disc-scale-buttons button {
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 10px 14px;
  border: 3px solid #28143f;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff3f92, #d91473);
  color: #fff;
  box-shadow: 0 6px 0 #2d174f;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.disc-scale-buttons button strong {
  display: none;
}

.disc-scale-buttons button span {
  text-align: left;
  font-size: clamp(0.82rem, 1.35vw, 0.98rem);
  line-height: 1.2;
}

.disc-scale-buttons button:hover,
.disc-scale-buttons button:focus-visible,
.disc-scale-buttons button.is-selected {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 10px 0 #2d174f, 0 0 0 5px rgba(255, 255, 255, 0.58);
}

.disc-scale-buttons button:disabled:not(.is-selected) {
  opacity: 0.48;
}

.disc-result-panel {
  display: grid;
  align-content: center;
  min-height: min(760px, 100svh);
  padding: 110px 0 48px;
  color: #fff;
  text-align: center;
}

.disc-result-panel > p:first-child {
  margin: 0 0 8px;
  color: #ffe66d;
  font-weight: 1000;
  text-transform: uppercase;
}

.disc-result-panel h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  text-shadow: 0 6px 0 rgba(48, 21, 91, 0.7);
}

.disc-result-panel > strong {
  margin-top: 10px;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.disc-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px auto;
  width: min(820px, 100%);
}

.disc-score-grid article {
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #2d174f;
  box-shadow: 0 7px 0 rgba(45, 23, 79, 0.2);
}

.disc-score-grid span {
  display: block;
  color: var(--game-pink);
  font-size: 2rem;
  font-weight: 1000;
}

.disc-score-grid strong {
  display: block;
  font-size: 1.8rem;
}

.disc-score-grid small {
  color: #684f86;
  font-weight: 900;
}

.disc-report-text {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #372058;
  font-weight: 800;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .disc-intro-panel,
  .disc-arena {
    grid-template-columns: 1fr;
  }

  .disc-intro-panel {
    padding-top: 120px;
  }

  .disc-intro-panel > img,
  .disc-arena-art {
    min-height: 220px;
    max-height: 360px;
  }

  .disc-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .disc-intro-panel,
  .disc-live-panel,
  .disc-result-panel {
    width: min(100% - 24px, 430px);
    padding-top: 96px;
  }

  .disc-scale-buttons {
    grid-template-columns: 1fr;
  }
}

/* DIVAR 360 v34: catálogo ampliado e experiência local Deu Match */
.hero-visual .hero-image-frame img[src*="seguramente-elenco-clean"] {
  object-fit: contain;
  object-position: center;
  padding: clamp(14px, 2vw, 28px);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 226, 82, 0.36), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(57, 190, 244, 0.3), transparent 30%),
    linear-gradient(145deg, #fff8fc, #f5e8ff 52%, #e4f7ff);
}

.play-card[data-game-theme="match"] .play-card-art,
.play-card[data-game-theme="include"] .play-card-art,
.play-card[data-game-theme="team"] .play-card-art {
  background: linear-gradient(135deg, #ffe6f2, #eadcff 52%, #dff7ff);
}

.play-card[data-game-theme="board"] .play-card-art {
  background: linear-gradient(135deg, #ff4d9c, #874ee8 55%, #27bde9);
}

.play-card[data-game-theme="match"] .play-card-art img,
.play-card[data-game-theme="include"] .play-card-art img,
.play-card[data-game-theme="team"] .play-card-art img {
  padding: 8px;
  object-fit: contain;
  transform: none;
}

.match-intro-panel[hidden],
.match-live-panel[hidden],
.match-result-panel[hidden] {
  display: none !important;
}

.match-intro-panel,
.match-live-panel,
.match-result-panel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.match-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  min-height: min(760px, 100svh);
  padding: 112px 0 40px;
}

.match-intro-panel > img {
  width: 100%;
  min-height: 340px;
  max-height: 600px;
  object-fit: contain;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: clamp(10px, 2vw, 22px);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 226, 82, 0.36), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 229, 244, 0.94));
  box-shadow: 0 12px 0 rgba(53, 26, 89, 0.22), 0 28px 48px rgba(57, 24, 92, 0.28);
}

.match-phase-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 216, 74, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 232, 255, 0.96));
}

.match-live-panel {
  display: grid;
  gap: 18px;
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: 104px 0 42px;
}

.play-page.is-game-focused.is-match-playing .fake-game-stage,
.play-page.is-game-focused.is-match-result .fake-game-stage {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.68) rgba(57, 22, 91, 0.46);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.play-page.is-game-focused.is-match-playing .fake-game-stage::-webkit-scrollbar,
.play-page.is-game-focused.is-match-result .fake-game-stage::-webkit-scrollbar {
  width: 9px;
}

.play-page.is-game-focused.is-match-playing .fake-game-stage::-webkit-scrollbar-track,
.play-page.is-game-focused.is-match-result .fake-game-stage::-webkit-scrollbar-track {
  background: rgba(57, 22, 91, 0.46);
}

.play-page.is-game-focused.is-match-playing .fake-game-stage::-webkit-scrollbar-thumb,
.play-page.is-game-focused.is-match-result .fake-game-stage::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  background-clip: padding-box;
}

.match-question-banner {
  justify-self: center;
}

.memory-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.memory-status-grid.is-countdown-hidden {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memory-status-grid > [hidden] {
  display: none;
}

.memory-status-grid > span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(44, 20, 78, 0.84);
  color: #fff;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 6px 0 rgba(31, 13, 55, 0.32);
}

.memory-status-grid strong {
  color: #ffe66d;
  font-size: 1.15rem;
}

.memory-card-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  align-items: start;
}

.memory-card-grid.is-previewing {
  pointer-events: none;
}

.memory-card {
  position: relative;
  aspect-ratio: 1190.25 / 1683.75;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  perspective: 1100px;
  transition: transform 160ms ease, filter 160ms ease;
}

.memory-card:not(.is-revealed):not(.is-matched):hover,
.memory-card:not(.is-revealed):not(.is-matched):focus-visible {
  z-index: 2;
  outline: 4px solid #ffe66d;
  outline-offset: 4px;
  transform: translateY(-5px);
  filter: brightness(1.07);
}

.memory-card:disabled {
  cursor: default;
}

.memory-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.memory-card.is-revealed .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border: 3px solid #28143f;
  border-radius: inherit;
  backface-visibility: hidden;
  box-shadow: 0 7px 0 rgba(40, 20, 63, 0.92), 0 13px 22px rgba(41, 16, 70, 0.2);
}

.memory-card-back {
  place-content: center;
  padding: 0;
  background: #f8eef5 url("/assets/deu-match/capa-coracao.webp") center / 272% auto no-repeat;
  color: #fff;
  text-align: center;
}

.memory-card-back small {
  position: absolute;
  top: 8px;
  left: 9px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #4a2378;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
  box-shadow: 0 2px 0 rgba(40, 20, 63, 0.5);
}

.memory-card-back strong,
.memory-card-back > span {
  display: none;
}

.memory-card-front {
  position: absolute;
  border-color: var(--pair-accent, #28143f);
  background: var(--pair-color, #fff1f3);
  transform: rotateY(180deg);
}

.memory-card.is-image-card .memory-card-front {
  place-items: center;
  padding: clamp(8px, 10%, 18px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.64), transparent 58%),
    var(--pair-color, #fff1f3);
}

.memory-card-front img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 5px rgba(45, 23, 79, 0.2));
}

.memory-criteria-content {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.58), transparent 68%),
    var(--pair-color, #fff1f3);
  color: #2d174f;
  text-align: center;
}

.memory-pair-marker {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--pair-accent, #2d174f);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pair-accent, #2d174f);
  font: 900 1.08rem/1 "Segoe UI Symbol", "Noto Sans Symbols 2", system-ui, sans-serif;
  box-shadow: 0 2px 0 rgba(45, 23, 79, 0.18);
}

.memory-pair-marker-icon {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.memory-pair-marker-icon.is-fish {
  -webkit-mask-image: url("/assets/deu-match/fish-svgrepo-com.svg");
  mask-image: url("/assets/deu-match/fish-svgrepo-com.svg");
}

.memory-criteria-content strong {
  font-size: clamp(0.68rem, 1.08vw, 0.9rem);
  line-height: 1.18;
}

.memory-card.is-matched .memory-card-face {
  border-color: #22c55e;
  box-shadow: 0 7px 0 #166534, 0 0 0 4px rgba(255, 255, 255, 0.84), 0 0 28px rgba(34, 197, 94, 0.62);
}

.memory-card.is-matched::after {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  content: "✓";
  font-size: 1rem;
  font-weight: 1000;
  transform: translateZ(1px);
}

.memory-card.is-matched {
  cursor: zoom-in;
}

.memory-card.is-presenting-pair {
  filter: saturate(0.74) brightness(0.86);
  pointer-events: none;
}

.match-pair-presentation[hidden] {
  display: none !important;
}

.match-pair-presentation {
  position: fixed;
  z-index: 85;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.2), transparent 28%),
    rgba(27, 11, 49, 0.84);
  backdrop-filter: blur(10px);
  animation: match-pair-presentation-in 180ms ease-out;
}

.match-pair-presentation article {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 900px);
  min-height: min(62svh, 500px);
  grid-template-rows: auto 1fr auto;
  gap: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 3px solid var(--pair-accent, #2d174f);
  border-radius: 30px;
  padding: clamp(24px, 3.5vw, 42px) clamp(24px, 4.5vw, 54px) 38px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.86), transparent 24%),
    linear-gradient(135deg, #fffdfd 16%, var(--pair-color, #fff1f3));
  color: #2d174f;
  box-shadow: 0 24px 70px rgba(15, 5, 30, 0.5);
  animation: match-pair-card-in 260ms cubic-bezier(0.22, 0.75, 0.2, 1);
}

.match-pair-presentation article::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 9px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--pair-accent, #2d174f);
  content: "";
  animation: match-pair-presentation-progress var(--presentation-duration, 5s) linear forwards;
}

.match-pair-presentation article > p {
  margin: 0;
  color: var(--pair-accent, #2d174f);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-pair-presentation-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
}

.match-pair-presentation img {
  width: min(100%, 330px);
  max-height: min(42svh, 330px);
  justify-self: center;
  border: 3px solid var(--pair-accent, #2d174f);
  border-radius: 24px;
  padding: clamp(14px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.78);
  object-fit: contain;
  box-shadow: 0 14px 0 rgba(45, 23, 79, 0.16), 0 22px 32px rgba(45, 23, 79, 0.16);
}

.match-pair-presentation section {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.match-pair-presentation .memory-pair-marker {
  position: static;
  width: 46px;
  height: 46px;
  border-width: 3px;
  border-radius: 12px;
  font-size: 1.45rem;
}

.match-pair-presentation .memory-pair-marker-icon {
  width: 1.72rem;
  height: 1.72rem;
}

.match-pair-presentation h2,
.match-pair-presentation strong,
.match-pair-presentation span {
  margin: 0;
}

.match-pair-presentation h2 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 4.5vw, 3.8rem);
  line-height: 0.98;
}

.match-pair-presentation strong {
  color: var(--pair-accent, #2d174f);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 1000;
}

.match-pair-presentation section > span:last-child {
  max-width: 32ch;
  color: #3b2a4e;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
}

.match-pair-presentation small {
  color: #4b3860;
  font-size: 0.88rem;
  font-weight: 800;
}

.match-pair-presentation.is-closing {
  animation: match-pair-presentation-out 220ms ease-in forwards;
}

@keyframes match-pair-presentation-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes match-pair-presentation-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes match-pair-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes match-pair-presentation-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.memory-card-preview[hidden] {
  display: none !important;
}

.memory-card-preview {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(26, 11, 48, 0.82);
  backdrop-filter: blur(8px);
}

.memory-card-preview article {
  position: relative;
  display: grid;
  width: min(100%, 540px);
  max-height: calc(100svh - 36px);
  justify-items: center;
  gap: 14px;
  overflow: auto;
  border: 4px solid var(--pair-accent, rgba(255, 255, 255, 0.88));
  border-radius: 14px;
  padding: 22px;
  background: #fff4f5;
  color: #2d174f;
  box-shadow: 0 18px 50px rgba(19, 8, 35, 0.46);
  text-align: center;
}

.memory-card-preview article > button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2d174f;
  color: #fff;
  font: 1000 1.4rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.memory-card-preview img {
  width: min(72vw, 420px);
  aspect-ratio: 1 / 1;
  border: 3px solid var(--pair-accent, #2d174f);
  border-radius: 10px;
  padding: 8%;
  background: var(--pair-color, #fff1f3);
  object-fit: contain;
  object-position: center;
}

.memory-card-preview p {
  max-width: 48ch;
  margin: 22px 0 0;
  color: #21152e;
  font-size: clamp(1rem, 3.8vw, 1.3rem);
  font-weight: 800;
  line-height: 1.45;
}

.memory-card-preview strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.match-result-panel {
  display: grid;
  align-content: center;
  min-height: min(760px, 100svh);
  padding: 110px 0 48px;
  color: #fff;
  text-align: center;
}

.match-result-panel > p:first-child {
  margin: 0 0 8px;
  color: #ffe66d;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-result-panel h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  text-shadow: 0 6px 0 rgba(48, 21, 91, 0.7);
}

.match-result-panel > strong {
  margin: 10px 0 18px;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.match-result-rank {
  justify-self: center;
  margin: 10px 0 2px;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 8px 18px;
  background: #ffe066;
  color: #39175f;
  box-shadow: 0 6px 0 rgba(48, 21, 91, 0.45);
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.match-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin: 0 auto 18px;
}

.match-result-stats article {
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #351754;
  box-shadow: 0 7px 0 rgba(45, 23, 79, 0.22);
}

.match-result-stats span,
.match-result-stats small {
  display: block;
  font-weight: 900;
}

.match-result-stats span {
  color: #d91473;
  text-transform: uppercase;
}

.match-result-stats strong {
  display: block;
  margin: 2px 0;
  color: #351754;
  font-size: 2rem;
}

.match-result-stats small {
  color: #70518e;
}

.match-result-record {
  width: min(620px, 100%);
  margin: 0 auto 16px;
  color: #ffe66d;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .memory-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .match-intro-panel {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .match-intro-panel > img {
    min-height: 210px;
    max-height: 340px;
  }

  .memory-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .match-intro-panel,
  .match-result-panel {
    width: min(100% - 24px, 430px);
    padding-top: 176px;
  }

  .match-result-stats {
    gap: 8px;
  }

  .match-result-stats article {
    padding: 10px 8px;
  }

  .match-pair-presentation {
    align-items: end;
    padding: 14px;
  }

  .match-pair-presentation article {
    min-height: 0;
    gap: 14px;
    border-radius: 22px;
    padding: 22px 20px 28px;
  }

  .match-pair-presentation-content {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .match-pair-presentation img {
    width: min(45vw, 176px);
    max-height: 24svh;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 0 rgba(45, 23, 79, 0.16), 0 14px 22px rgba(45, 23, 79, 0.14);
  }

  .match-pair-presentation section {
    justify-items: center;
    gap: 6px;
  }

  .match-pair-presentation .memory-pair-marker {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .match-pair-presentation h2 {
    max-width: 18ch;
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .match-pair-presentation section > span:last-child {
    max-width: 29ch;
    font-size: 1rem;
  }

  .match-pair-presentation small {
    font-size: 0.76rem;
    text-align: center;
  }

  .play-page.is-game-focused.is-match-playing .fake-game-stage {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    scrollbar-gutter: auto;
  }

  .play-page.is-game-focused.is-match-playing .game-topbar {
    top: max(6px, env(safe-area-inset-top));
    right: 6px;
    left: auto;
    width: auto;
  }

  .play-page.is-game-focused.is-match-playing .game-controls {
    gap: 5px;
  }

  .play-page.is-game-focused.is-match-playing .game-icon-button {
    width: 42px;
    height: 42px;
    border-width: 2px;
    box-shadow: 0 4px 0 #7c1249, 0 8px 14px rgba(52, 27, 95, 0.2);
  }

  .play-page.is-game-focused.is-match-playing .game-icon-button span {
    transform: scale(0.72);
  }

  .play-page.is-game-focused.is-match-playing .game-hud-row {
    top: max(6px, env(safe-area-inset-top));
    right: auto;
    left: 6px;
    width: min(108px, calc(100vw - 150px));
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .play-page.is-game-focused.is-match-playing .game-score-card {
    width: auto;
    min-width: 0;
    min-height: 42px;
    gap: 0;
    border-width: 2px;
    padding: 5px 8px;
    box-shadow: 0 4px 0 rgba(180, 15, 97, 0.55);
  }

  .play-page.is-game-focused.is-match-playing .game-score-card strong {
    font-size: 1rem;
    text-align: center;
  }

  .play-page.is-game-focused.is-match-playing .game-score-card small {
    display: none;
  }

  .match-live-panel {
    width: calc(100% - 4px);
    gap: 6px;
    padding: 58px 0 8px;
  }

  .play-page.is-game-focused.is-match-playing .match-question-banner {
    min-height: 48px;
    margin: 0;
    gap: 2px;
    border-width: 2px;
    padding: 5px 8px;
    box-shadow: 0 4px 0 rgba(52, 27, 95, 0.22);
  }

  .play-page.is-game-focused.is-match-playing .match-question-banner span {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .play-page.is-game-focused.is-match-playing .match-question-banner strong {
    font-size: 0.83rem;
    line-height: 1.15;
  }

  .memory-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .memory-status-grid > span:last-child {
    display: none;
  }

  .memory-status-grid > span {
    min-height: 36px;
    gap: 4px;
    border-width: 2px;
    padding: 4px 7px;
    font-size: 0.7rem;
    box-shadow: 0 3px 0 rgba(31, 13, 55, 0.32);
  }

  .memory-status-grid strong {
    font-size: 0.86rem;
  }

  .memory-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .memory-card {
    grid-column: span 2;
    height: max(64px, min(calc((100svh - 210px) / 5), 32vw));
    aspect-ratio: auto;
    border-radius: 7px;
  }

  .memory-card:nth-child(13) {
    grid-column: 2 / span 2;
  }

  .memory-card:nth-child(14) {
    grid-column: 4 / span 2;
  }

  .memory-card-face {
    border-width: 2px;
    box-shadow: 0 3px 0 rgba(40, 20, 63, 0.92), 0 6px 10px rgba(41, 16, 70, 0.18);
  }

  .memory-criteria-content {
    padding: 4px;
  }

  .memory-pair-marker {
    top: 3px;
    right: 3px;
    width: 26px;
    height: 26px;
    border-width: 2px;
    border-radius: 5px;
    font-size: 0.86rem;
  }

  .memory-pair-marker-icon {
    width: 1.06rem;
    height: 1.06rem;
  }

  .memory-criteria-content strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.5rem, 2.45vw, 0.68rem);
    line-height: 1.06;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }

  .memory-card-back {
    gap: 2px;
    padding: 4px;
  }

  .memory-card-back strong {
    font-size: 0.78rem;
  }

  .memory-card-back > span {
    font-size: 0.5rem;
  }

  .memory-card-back small {
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-width: 1px;
    font-size: 0.55rem;
  }

  .memory-card.is-matched::after {
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .play-page.is-game-focused.is-match-playing .game-feedback {
    min-height: 0;
    margin: 0;
    gap: 2px;
    border-width: 2px;
    padding: 5px 8px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .play-page.is-game-focused.is-match-playing .game-feedback:empty {
    display: none;
  }

  .play-page.is-game-focused.is-match-playing .game-feedback strong {
    font-size: 0.75rem;
  }

  .play-page.is-game-focused.is-match-playing .game-progress-track {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-pair-presentation,
  .match-pair-presentation article,
  .match-pair-presentation.is-closing {
    animation: none;
  }

  .match-pair-presentation article::after {
    animation: none;
    transform: scaleX(1);
  }
}

@media (max-width: 520px) and (max-height: 650px) {
  .play-page.is-game-focused.is-match-playing .game-feedback {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* DIVAR 360 v44: seções empilhadas como páginas de um livro */
.scroll-card-stack {
  position: relative;
  isolation: isolate;
}

.scroll-stack-release {
  height: 70svh;
  pointer-events: none;
}

.scroll-stack-card {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 34px rgba(52, 27, 95, 0.22);
  scroll-margin-top: 0;
}

.scroll-stack-card::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 8;
  width: 68px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 2px 0 rgba(52, 27, 95, 0.18);
  pointer-events: none;
}

.scroll-stack-card-story {
  z-index: 1;
  width: 100%;
  padding-inline: max(28px, calc((100vw - 1320px) / 2));
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 219, 92, 0.28), transparent 22%),
    radial-gradient(circle at 88% 78%, rgba(76, 219, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #ee3b86 0%, #9b62df 58%, #54bfe8 100%);
}

.scroll-stack-card-journey {
  z-index: 2;
}

.game-entry-scroll.scroll-stack-card-entry {
  z-index: 3;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(108px, 13vh, 144px) max(28px, calc((100vw - 1180px) / 2)) clamp(44px, 7vh, 72px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 207, 107, 0.3), transparent 20%),
    radial-gradient(circle at 88% 80%, rgba(79, 195, 255, 0.34), transparent 22%),
    linear-gradient(145deg, #bd55d8 0%, #8357e5 48%, #4fc3ff 100%);
}

.game-entry-scroll .game-entry-scene {
  width: min(1180px, 100%);
  margin: 0 auto;
}

@media (max-width: 1180px) {
  .scroll-stack-card-story {
    padding-inline: 22px;
  }
}

@media (max-width: 760px) {
  .scroll-stack-release {
    height: 46svh;
  }

  .scroll-stack-card {
    min-height: 100svh;
    border-radius: 18px 18px 0 0;
  }

  .scroll-stack-card-story {
    width: 100%;
    padding-top: 236px;
    padding-bottom: 80px;
    padding-inline: 16px;
  }

  .learning-world.scroll-stack-card-journey {
    padding-top: 236px;
    padding-bottom: 80px;
  }

  .game-entry-scroll.scroll-stack-card-entry {
    padding: 104px 12px 42px;
  }

  .game-entry-scroll .game-entry-scene {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-stack-release {
    display: none;
  }

  .scroll-stack-card {
    position: relative;
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .scroll-stack-card::after {
    display: none;
  }
}

/* DIVAR 360 v53: covers imersivas, tutorial reutilizável e cena menos congestionada */
.game-entry-scroll .game-entry-scene {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
}

.game-entry-scroll .game-entry-scene span {
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(44, 20, 78, 0.9);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 6px 0 rgba(35, 12, 62, 0.35);
  transition: transform 180ms ease, filter 180ms ease;
}

.game-entry-scroll .game-entry-scene:hover span,
.game-entry-scroll .game-entry-scene:focus-visible span {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.story-section .divar-banner-card {
  min-height: 146px;
  align-items: center;
  overflow: visible;
}

.story-section .divar-banner-card a {
  align-self: center;
}

.game-immersive-cover {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: end center;
  overflow: hidden;
  padding: 142px clamp(18px, 5vw, 72px) clamp(34px, 7vh, 72px);
  isolation: isolate;
}

.game-immersive-cover-action {
  width: min(360px, 100%);
  display: grid;
  place-items: center;
}

.game-immersive-cover-action .game-start-button {
  width: 100%;
  min-height: 62px;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.game-immersive-cover::before,
.game-immersive-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.game-immersive-cover::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(32, 15, 58, 0.12) 0%, rgba(32, 15, 58, 0.3) 46%, rgba(32, 15, 58, 0.82) 100%);
}

.disc-intro-panel.game-immersive-cover::before {
  background: url("/assets/dica-cover.webp") center / contain no-repeat, #a855f7;
}

.match-intro-panel.game-immersive-cover::before {
  background: url("/assets/deu-match/capa-jogo-deu-match.webp") center / contain no-repeat, #ee3b86;
}

.game-immersive-cover-content {
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 240, 250, 0.92));
  box-shadow: 0 14px 0 rgba(34, 13, 62, 0.32), 0 28px 58px rgba(28, 11, 51, 0.42);
}

.game-immersive-cover-content > p {
  margin: 0;
  color: var(--game-pink);
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-immersive-cover-content h1 {
  margin: 0;
  color: var(--game-pink);
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.97;
}

.game-immersive-cover-content > strong {
  color: #2a1747;
}

.game-immersive-cover-content > span {
  color: #5d5966;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.5;
}

.game-immersive-cover-content .game-phase-actions {
  justify-content: flex-start;
  margin-top: 8px;
}

.disc-arena {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.disc-arena-art {
  display: none;
}

.disc-question-card {
  width: min(760px, 100%);
  margin-inline: auto;
}

.game-tutorial-overlay[hidden] {
  display: none !important;
}

.game-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 12, 48, 0.66);
  backdrop-filter: blur(10px);
}

.game-tutorial-card {
  position: relative;
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(145deg, #fff 0%, #fff0f7 100%);
  color: #251343;
  box-shadow: 0 16px 0 rgba(38, 16, 67, 0.34), 0 30px 62px rgba(0, 0, 0, 0.35);
}

.game-tutorial-card > p {
  margin: 0;
  color: var(--game-pink);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-tutorial-card h2 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.game-tutorial-card > span {
  color: #5d5966;
  font-weight: 760;
  line-height: 1.45;
}

.game-tutorial-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: tutorial;
  list-style: none;
}

.game-tutorial-card li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #35234e;
  font-weight: 850;
}

.game-tutorial-card li::before {
  counter-increment: tutorial;
  content: counter(tutorial);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--game-pink);
  color: #fff;
  font-weight: 1000;
}

.interactive-scene .scene-object {
  z-index: 5;
}

.interactive-scene .scene-red-guide {
  width: min(15vw, 250px);
  left: 12%;
  top: 50%;
}

.interactive-scene .scene-blue-guide {
  width: min(13vw, 215px);
  left: 88%;
  top: 72%;
}

.interactive-scene .scene-red-guide img,
.interactive-scene .scene-blue-guide img {
  filter: drop-shadow(0 12px 16px rgba(44, 20, 78, 0.18));
}

.unity-page {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(circle at 18% 12%, rgba(255, 216, 102, 0.24), transparent 25%), linear-gradient(145deg, #ed3c88 0%, #995ce4 52%, #4abbe5 100%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.unity-host-shell {
  width: min(1440px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin-inline: auto;
  padding: clamp(8px, 1.4vw, 18px);
}

.unity-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 7px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.unity-back-link span {
  font-size: 1.05rem;
  line-height: 1;
}

.unity-back-link b {
  font: inherit;
}

.unity-back-link:hover,
.unity-back-link:focus-visible {
  text-decoration: underline;
}

.unity-host-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: clamp(10px, 1.6vw, 20px);
  background: rgba(37, 17, 69, 0.5);
  box-shadow: 0 16px 0 rgba(38, 16, 67, 0.26);
  backdrop-filter: blur(10px);
}

.unity-host-heading p,
.unity-host-heading h1,
.unity-host-heading span,
.unity-host-notice {
  margin: 0;
}

.unity-host-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1.28fr);
  align-items: center;
  column-gap: 20px;
}

.unity-host-heading p {
  grid-column: 1;
  color: #ffe66d;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unity-host-heading h1 {
  grid-column: 1;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1;
}

.unity-host-heading span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.unity-host-heading span,
.unity-host-notice {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.unity-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.unity-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe66d, #ff4a99);
  transition: width 180ms ease;
}

.unity-canvas-mount {
  display: grid;
  width: min(100%, calc((100dvh - 260px) * 1.7778));
  min-height: 0;
  aspect-ratio: 16 / 9;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: rgba(15, 7, 29, 0.76);
}

.unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.unity-host-actions[hidden] {
  display: none;
}

.unity-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.unity-host-actions .play-button {
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.unity-host-actions .play-button.is-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.unity-completion-notice {
  position: fixed;
  z-index: 50;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  max-width: min(430px, calc(100vw - 96px));
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 13px 16px;
  background: rgba(32, 118, 94, 0.94);
  color: #fff;
  box-shadow: 0 8px 0 rgba(26, 72, 60, 0.52), 0 18px 36px rgba(26, 17, 47, 0.24);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.4;
}

.unity-completion-notice[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .game-entry-scroll .game-entry-scene span {
    right: 10px;
    bottom: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .story-section .divar-banner-card {
    min-height: 190px;
  }

  .game-immersive-cover {
    padding: 128px 14px 28px;
  }

  .disc-intro-panel.game-immersive-cover::before {
    background-position: 58% center;
  }

  .match-intro-panel.game-immersive-cover::before {
    background-position: 50% center;
  }

  .game-immersive-cover-content {
    gap: 10px;
    padding: 20px;
  }

  .game-immersive-cover-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .game-immersive-cover-content .game-phase-actions,
  .game-tutorial-card .game-phase-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .game-immersive-cover-content .game-start-button,
  .game-tutorial-card .game-start-button {
    width: 100%;
  }

  .game-immersive-cover-action {
    width: min(280px, 100%);
  }

  .game-tutorial-overlay {
    align-items: end;
    padding: 10px;
  }

  .game-tutorial-card {
    max-height: calc(100svh - 20px);
    overflow: auto;
    padding: 22px 18px;
  }

  .interactive-scene .scene-red-guide {
    width: min(25vw, 148px);
    left: 10%;
    top: 51%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(22vw, 132px);
    left: 89%;
    top: 72%;
  }

  .unity-host-shell {
    padding: 9px;
  }

  .unity-host-panel {
    border-radius: 14px;
    padding: 16px;
  }

  .unity-canvas-mount {
    width: min(100%, calc((100dvh - 245px) * 1.7778));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .unity-host-shell {
    padding: 5px 8px;
  }

  .unity-back-link {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .unity-host-panel {
    gap: 5px;
    border-width: 2px;
    border-radius: 10px;
    padding: 6px;
  }

  .unity-host-heading {
    grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.3fr);
    column-gap: 10px;
  }

  .unity-host-heading p,
  .unity-host-notice {
    display: none;
  }

  .unity-host-heading h1 {
    font-size: 1rem;
  }

  .unity-host-heading span {
    font-size: 0.66rem;
  }

  .unity-progress {
    height: 5px;
  }

  .unity-canvas-mount {
    width: min(100%, calc((100dvh - 70px) * 1.7778));
    border-width: 2px;
    border-radius: 8px;
  }
}

/* Após o carregamento, o Unity ocupa o palco sem scroll e sem barras duplicadas. */
.unity-page.is-unity-ready {
  overflow: hidden;
}

.unity-page.is-unity-ready .unity-host-shell {
  width: 100%;
  height: 100dvh;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
}

.unity-page.is-unity-ready .unity-back-link {
  position: fixed;
  z-index: 40;
  top: auto;
  bottom: clamp(12px, 1.6vw, 20px);
  left: clamp(10px, 1.6vw, 20px);
  width: clamp(46px, 4.4vw, 58px);
  height: clamp(46px, 4.4vw, 58px);
  display: none;
  place-items: center;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(180deg, #f63d91, #b40f61);
  color: #fff;
  box-shadow: 0 6px 0 #7c1249, 0 14px 24px rgba(52, 27, 95, 0.28);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.unity-page.is-unity-ready .unity-back-link:hover,
.unity-page.is-unity-ready .unity-back-link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.08);
  text-decoration: none;
}

.unity-page.is-unity-ready .unity-back-link:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 3px 0 #7c1249, 0 8px 14px rgba(52, 27, 95, 0.22);
}

.unity-page.is-unity-ready .unity-back-link span {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.unity-page.is-unity-ready .unity-back-link b,
.unity-page.is-unity-ready .unity-host-heading,
.unity-page.is-unity-ready .unity-progress,
.unity-page.is-unity-ready .unity-host-notice,
.unity-page.is-unity-ready .unity-host-actions {
  display: none !important;
}

.unity-page.is-unity-ready .unity-host-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background:
    radial-gradient(circle at 16% 15%, rgba(255, 230, 109, 0.22), transparent 22%),
    linear-gradient(145deg, #ee3b86 0%, #8e49c2 54%, #367fc4 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.unity-page.is-unity-ready .unity-canvas-mount {
  width: min(100vw, calc(100dvh * 1.7778));
  height: min(100dvh, calc(100vw * 0.5625));
  max-width: 100vw;
  max-height: 100dvh;
  justify-self: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  background: #251343;
  box-shadow: 0 0 0 6px rgba(52, 27, 95, 0.24);
}

/* Fato ou Fake: capa viva -> tutorial -> rodada */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fake-game-stage[data-game-state="cover"]::before {
  background:
    url("/assets/game-fato-fake.webp") center 45% / min(100%, 1440px) auto no-repeat,
    linear-gradient(180deg, #ed5b98 0%, #aa4ca1 56%, #613bad 100%);
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

@media (max-width: 760px) {
  .fake-game-stage[data-game-state="cover"]::before {
    background-size: auto 100%;
    background-position: center center;
  }
}

.fake-game-stage[data-game-state="cover"]::after {
  background:
    linear-gradient(180deg, rgba(25, 17, 47, 0.08) 0%, rgba(25, 17, 47, 0.03) 52%, rgba(25, 17, 47, 0.68) 100%),
    radial-gradient(circle at 50% 88%, rgba(238, 59, 134, 0.32), transparent 32%);
}

.game-cover-panel {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 170px 24px clamp(44px, 8vh, 82px);
}

.game-cover-start-button {
  min-width: min(340px, calc(100vw - 36px));
  min-height: 68px;
  justify-self: auto;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.04em;
  animation: fatoFakeStartPulse 2.4s ease-in-out infinite;
}

.fake-game-stage[data-game-state="intro"]::before {
  opacity: 0.42;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.035);
}

.game-intro-panel {
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  padding: 170px clamp(18px, 4vw, 42px) 42px;
}

.fato-fake-tutorial-card {
  width: min(720px, 100%);
  animation: fatoFakeTutorialEnter 420ms ease-out both;
}

@keyframes fatoFakeCoverMotion {
  0% {
    transform: scale(1.01) translate3d(-0.4%, -0.2%, 0);
  }

  100% {
    transform: scale(1.03) translate3d(0.4%, 0.25%, 0);
  }
}

@keyframes fatoFakeStartPulse {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.14) brightness(1.06);
  }
}

@keyframes fatoFakeTutorialEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .fake-game-stage[data-game-state="cover"]::before {
    background:
      url("/assets/game-fato-fake.webp") center 34% / 100% auto no-repeat,
      radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.2), transparent 38%),
      linear-gradient(180deg, #f04d91 0%, #c63791 54%, #6d3cc4 100%);
    transform: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  .fake-game-stage[data-game-state="cover"]::before {
    background:
      url("/assets/game-fato-fake.webp") center 34% / 100% auto no-repeat,
      radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.2), transparent 38%),
      linear-gradient(180deg, #f04d91 0%, #c63791 54%, #6d3cc4 100%);
    transform: none;
    animation: none;
  }

  .game-cover-panel {
    min-height: 100svh;
    padding: 142px 14px 32px;
  }

  .game-cover-start-button {
    min-width: min(100%, 360px);
    min-height: 62px;
  }

  .game-intro-panel {
    min-height: 100svh;
    padding: 146px 14px 24px;
  }

  .fato-fake-tutorial-card {
    gap: 10px;
    padding: 16px;
  }

  .fato-fake-tutorial-card h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }
}

@keyframes fatoFakeCoverMotionMobile {
  0% {
    transform: scale(1.01) translate3d(0, -0.4%, 0);
  }

  100% {
    transform: scale(1.035) translate3d(0, 0.4%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fake-game-stage[data-game-state="cover"]::before,
  .game-cover-start-button,
  .fato-fake-tutorial-card {
    animation: none;
  }

  .sound-control span::after {
    animation: none;
  }
}

/* Fato ou Fake v48: tutorial curto, gesto acessível, feedback e recorde */
.game-cover-actions {
  width: min(320px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  box-shadow: none;
}

.game-cover-actions > span {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.game-cover-quick-button {
  min-width: min(280px, calc(100vw - 52px));
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.94);
  color: var(--game-purple);
  box-shadow: 0 6px 0 rgba(25, 12, 48, 0.34);
}

.fato-fake-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 6px;
}

.fato-fake-guide-grid article {
  min-height: 138px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  border: 2px solid rgba(123, 78, 221, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(145deg, #fff 0%, #fff3fa 100%);
  text-align: left;
}

.fato-fake-guide-grid b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--game-pink);
  color: #fff;
  box-shadow: 0 4px 0 rgba(180, 15, 97, 0.38);
}

.fato-fake-guide-grid strong {
  color: var(--game-purple);
  font-size: 1rem;
}

.fato-fake-guide-grid span {
  color: #51475b;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.game-question-card {
  --quiz-swipe-x: 0px;
  --quiz-swipe-rotate: 0deg;
  --quiz-swipe-progress: 0;
  cursor: grab;
  touch-action: pan-y;
  transform: translate3d(var(--quiz-swipe-x), 0, 0) rotate(var(--quiz-swipe-rotate));
  transform-origin: 50% 86%;
  transition:
    transform 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.game-question-card:focus-visible {
  outline: 5px solid #ffcf33;
  outline-offset: 5px;
}

.game-question-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.game-question-card.is-answered {
  cursor: default;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.game-question-card.is-right-choice {
  border-color: #10a450;
  background: #f1fff6;
  box-shadow: 0 12px 0 rgba(5, 113, 50, 0.3);
}

.game-question-card.is-wrong-choice,
.game-question-card.is-timed-out {
  border-color: #d91647;
  background: #fff4f7;
  box-shadow: 0 12px 0 rgba(145, 11, 55, 0.28);
}

.swipe-decision {
  position: absolute;
  top: 18px;
  z-index: 3;
  border: 3px solid currentColor;
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-weight: 1000;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms linear, transform 100ms linear;
}

.swipe-decision-fake {
  left: 18px;
  color: #d91647;
  transform: translateX(-8px) rotate(-4deg);
}

.swipe-decision-fato {
  right: 18px;
  color: #078b38;
  transform: translateX(8px) rotate(4deg);
}

.game-question-card.is-swiping-left .swipe-decision-fake,
.game-question-card.is-swiping-right .swipe-decision-fato {
  opacity: var(--quiz-swipe-progress);
  transform: translateX(0) rotate(0);
}

.game-swipe-instruction {
  width: min(720px, 100%);
  margin: 10px auto 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
  text-shadow: 0 2px 5px rgba(52, 27, 95, 0.56);
}

.game-answer-buttons .answer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
}

.game-answer-buttons .answer-button > span {
  width: 1.1em;
  height: 1.1em;
  display: inline-grid;
  place-items: center;
  border: 0.08em solid currentColor;
  border-radius: 50%;
  font-size: 0.62em;
  line-height: 1;
}

.game-feedback.is-correct {
  border-color: #13a753;
  background: #f2fff7;
}

.game-feedback.is-wrong {
  border-color: #d91647;
  background: #fff4f7;
}

.game-feedback strong,
.game-feedback span {
  grid-column: 1;
}

.game-feedback em {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.game-feedback-next {
  width: min(420px, 100%);
  min-height: 50px;
  display: block;
  margin: 10px auto 0;
  border: 3px solid #fff;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--game-purple);
  color: #fff;
  font: inherit;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(52, 27, 95, 0.36);
  cursor: pointer;
}

.game-feedback-next[hidden] {
  display: none !important;
}

.game-feedback-next:hover,
.game-feedback-next:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.game-feedback-next:focus-visible {
  outline: 4px solid #ffcf33;
  outline-offset: 3px;
}

.quiz-result-card {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 18px 18px;
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 210, 84, 0.48), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(238, 59, 134, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 242, 255, 0.98));
  color: #211e24;
  box-shadow: 0 16px 0 rgba(52, 27, 95, 0.3), 0 28px 50px rgba(38, 17, 69, 0.24);
}

.quiz-result-card::before,
.quiz-result-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.quiz-result-card::before {
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -130px;
  background: rgba(123, 78, 221, 0.1);
}

.quiz-result-card::after {
  width: 100px;
  height: 100px;
  left: -42px;
  bottom: 32px;
  border: 16px solid rgba(238, 59, 134, 0.11);
}

.quiz-result-card > p:first-child {
  margin: 0;
  color: var(--game-pink);
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-result-card h2 {
  margin: 0;
  color: var(--game-purple);
  font-size: clamp(2.15rem, 7vw, 4.6rem);
  line-height: 0.95;
}

.game-result-panel .quiz-result-card > strong {
  color: #51475b;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.quiz-result-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  color: var(--game-purple);
  font-weight: 1000;
  text-transform: uppercase;
}

.quiz-result-rank::before {
  content: "◆";
  margin-right: 8px;
}

.quiz-result-rank.is-perfect,
.quiz-result-rank.is-gold {
  color: #9a6500;
  background: #fff7ce;
}

.quiz-result-rank.is-silver {
  color: #56606e;
  background: #f0f3f7;
}

.quiz-result-rank.is-bronze {
  color: #8d491d;
  background: #fff0e4;
}

.quiz-result-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz-result-stats article {
  display: grid;
  gap: 4px;
  border: 2px solid rgba(123, 78, 221, 0.22);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(145deg, #fff, #f6efff);
}

.quiz-result-stats span,
.quiz-result-stats small {
  color: #615a66;
  font-weight: 850;
}

.game-result-panel .quiz-result-stats strong {
  color: var(--game-pink);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1;
}

.quiz-result-record {
  width: 100%;
  margin: 0;
  border-radius: 14px;
  border-left: 5px solid var(--game-purple);
  padding: 10px 12px;
  background: #f4efff;
  color: #41374a;
  font-weight: 850;
  text-align: left;
}

.quiz-result-card.is-new-record {
  animation: quizRecordEnter 540ms ease-out both;
}

.quiz-result-card.is-new-record .quiz-result-record {
  border-left-color: #e8a600;
  background: #fff6c8;
  color: #694800;
}

.quiz-result-card .score-actions {
  width: 100%;
  justify-content: center;
}

@keyframes quizRecordEnter {
  0% {
    transform: scale(0.96);
  }

  60% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .game-cover-actions {
    gap: 9px;
    padding: 12px;
  }

  .game-cover-actions > span {
    font-size: 0.84rem;
  }

  .game-cover-start-button {
    min-height: 56px;
  }

  .game-cover-quick-button {
    min-height: 48px;
  }

  .fato-fake-guide-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fato-fake-guide-grid article {
    min-height: 0;
    grid-template-columns: 38px 1fr;
    gap: 2px 9px;
    padding: 9px;
  }

  .fato-fake-guide-grid b {
    grid-row: span 2;
  }

  .fato-fake-guide-grid strong,
  .fato-fake-guide-grid span {
    grid-column: 2;
  }

  .fato-fake-guide-grid span {
    font-size: 0.84rem;
  }

  .play-page.is-game-focused .game-live-panel {
    padding: 158px 10px 18px;
  }

  .play-page.is-game-focused .game-question-banner {
    min-height: 54px;
    padding: 7px 10px;
  }

  .play-page.is-game-focused .game-arena {
    min-height: 250px;
  }

  .play-page.is-game-focused .game-question-card {
    width: min(100%, 330px);
    min-height: 190px;
    padding: 18px 16px 24px;
  }

  .side-label {
    font-size: 2rem;
    opacity: 0.64;
  }

  .side-label-fake {
    left: 8px;
  }

  .side-label-fato {
    right: 8px;
  }

  .swipe-decision {
    top: 10px;
    padding: 6px 8px;
  }

  .swipe-decision-fake {
    left: 10px;
  }

  .swipe-decision-fato {
    right: 10px;
  }

  .game-swipe-instruction {
    min-height: 28px;
    margin-top: 7px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .game-answer-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .play-page.is-game-focused .game-answer-buttons .answer-button {
    min-height: 66px;
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .game-feedback {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 76px;
    gap: 5px 10px;
    margin-top: 8px;
    padding: 9px 10px;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .game-feedback strong {
    font-size: 0.94rem;
  }

  .game-feedback em {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 64px;
    padding: 7px 9px;
    font-size: 1.15rem;
  }

  .game-feedback-next {
    min-height: 48px;
    margin-top: 8px;
  }

  .game-progress-track {
    margin-top: 9px;
  }

  .game-result-panel {
    min-height: 100svh;
    padding: 142px 10px 24px;
  }

  .quiz-result-card {
    gap: 10px;
    padding: 16px;
  }

  .quiz-result-card h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .quiz-result-stats {
    gap: 8px;
  }

  .quiz-result-stats article {
    padding: 10px 7px;
  }

  .quiz-result-card .score-actions {
    gap: 8px;
  }

  .quiz-result-card .score-actions .button {
    min-height: 48px;
  }
}

@media (min-width: 641px) and (max-height: 760px) {
  .play-page.is-game-focused .game-live-panel {
    padding-top: 118px;
    padding-bottom: 12px;
  }

  .play-page.is-game-focused .game-question-banner {
    min-height: 60px;
    gap: 2px;
    margin-bottom: 7px;
    padding: 6px 12px;
  }

  .play-page.is-game-focused .game-question-banner span {
    font-size: 0.78rem;
  }

  .play-page.is-game-focused .game-question-banner strong {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .play-page.is-game-focused .game-arena {
    min-height: 198px;
  }

  .play-page.is-game-focused .game-question-card {
    min-height: 150px;
    padding-block: 14px 20px;
  }

  .play-page.is-game-focused .game-answer-buttons .answer-button {
    height: 76px;
    min-height: 76px;
    padding: 8px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
  }

  .game-swipe-instruction,
  .game-feedback,
  .game-feedback-next,
  .game-progress-track {
    margin-top: 7px;
  }
}

.play-page.is-game-focused .fake-game-stage[data-game-state="intro"],
.play-page.is-game-focused .fake-game-stage[data-game-state="playing"],
.play-page.is-game-focused .fake-game-stage[data-game-state="result"] {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.68) rgba(57, 22, 91, 0.42);
  scrollbar-width: thin;
}

.play-page.is-game-focused .fake-game-stage[data-game-state="intro"]::-webkit-scrollbar,
.play-page.is-game-focused .fake-game-stage[data-game-state="playing"]::-webkit-scrollbar,
.play-page.is-game-focused .fake-game-stage[data-game-state="result"]::-webkit-scrollbar {
  width: 8px;
}

.play-page.is-game-focused .fake-game-stage[data-game-state="intro"]::-webkit-scrollbar-track,
.play-page.is-game-focused .fake-game-stage[data-game-state="playing"]::-webkit-scrollbar-track,
.play-page.is-game-focused .fake-game-stage[data-game-state="result"]::-webkit-scrollbar-track {
  background: rgba(57, 22, 91, 0.42);
}

.play-page.is-game-focused .fake-game-stage[data-game-state="intro"]::-webkit-scrollbar-thumb,
.play-page.is-game-focused .fake-game-stage[data-game-state="playing"]::-webkit-scrollbar-thumb,
.play-page.is-game-focused .fake-game-stage[data-game-state="result"]::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
  .game-question-card,
  .swipe-decision,
  .game-feedback-next,
  .quiz-result-card.is-new-record {
    animation: none;
    transition: none;
  }
}

/* DIVAR 360 v54: correções finais de enquadramento e prioridade visual */
@media (max-width: 760px) {
  .fake-game-stage[data-game-state="cover"]::before {
    background-size: auto 58svh;
    background-position: center 34%;
  }

  .game-cover-panel {
    padding-top: 128px;
    padding-bottom: 30px;
  }

  .game-cover-actions {
    margin-top: auto;
  }
}

/* DIVAR 360 v55: pontos de conclusão, capa sem faixas e perfil demonstrativo */
.sound-control {
  display: grid;
  place-items: center;
}

.sound-control .sound-icon {
  position: absolute;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  filter: drop-shadow(0 1px 0 rgba(52, 27, 95, 0.38));
}

.sound-control .sound-icon-reduced,
.sound-control .sound-icon-muted {
  display: none;
}

.sound-control.is-reduced .sound-icon-full,
.sound-control.is-muted .sound-icon-full {
  display: none;
}

.sound-control.is-reduced .sound-icon-reduced,
.sound-control.is-muted .sound-icon-muted {
  display: block;
}

.sound-control.is-reduced::after,
.sound-control.is-muted::after {
  display: none;
}

.sound-control.is-reduced::after {
  content: "½";
}

.sound-control.is-muted::after {
  content: "×";
  background: #9a174d;
}

.sound-control span {
  display: none;
}

.quiz-result-rank.is-not-passed {
  color: #8d491d;
  background: #fff0e4;
}

.fake-game-stage[data-game-state="cover"]::before {
  background:
    url("/assets/game-fato-fake.webp") center center / cover no-repeat,
    linear-gradient(180deg, #ed5b98 0%, #aa4ca1 56%, #613bad 100%);
}

.fake-game-stage[data-game-state="cover"]::after {
  background: linear-gradient(180deg, rgba(25, 17, 47, 0.04) 0%, rgba(25, 17, 47, 0.05) 58%, rgba(25, 17, 47, 0.54) 100%);
}

.game-cover-panel {
  min-height: 100dvh;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  /* Em telas altas, preservar a arte principal e preencher o restante com a cena/gradiente. */
  .fake-game-stage[data-game-state="cover"]::before {
    background-size: auto 62svh;
    background-position: center 31%;
  }

  .game-cover-panel {
    min-height: 100svh;
    padding-top: max(96px, env(safe-area-inset-top));
  }
}

.story-section .divar-banner-card {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 34px);
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: clamp(24px, 5vw, 64px);
}

.story-section {
  padding-bottom: clamp(88px, 12vw, 170px);
}

.module-track article {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 8px 10px 0 rgba(52, 27, 95, 0.22), inset 0 0 0 999px rgba(255, 255, 255, 0.08);
}

.module-track article::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -28px;
  bottom: -34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.module-track article:nth-child(1) { background: linear-gradient(135deg, #ee3b86, #7f43ef); }
.module-track article:nth-child(2) { background: linear-gradient(135deg, #1aa6f7, #6246ea); }
.module-track article:nth-child(3) { background: linear-gradient(135deg, #ffb000, #ff4f8b); }
.module-track article:nth-child(4) { background: linear-gradient(135deg, #22c55e, #00a8c7); }
.module-track article h3,
.module-track article p { position: relative; z-index: 1; color: #fff; }
.module-track article h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

@media (max-width: 760px) {
  .story-section {
    padding-bottom: 132px;
  }

  .story-section .divar-banner-card {
    width: calc(100% - 20px);
    margin-inline: auto;
    margin-bottom: 48px;
    padding: 18px;
  }

  .module-track article {
    min-height: 160px;
  }
}

.story-section .divar-banner-card img {
  width: min(100%, 360px);
  max-height: 108px;
  justify-self: center;
}

.story-section .divar-banner-card a {
  min-height: 58px;
  white-space: nowrap;
}

.nav-profile {
  text-decoration: none;
}

.nav-profile:hover,
.nav-profile:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(238, 59, 134, 0.48);
  outline-offset: 3px;
}

.profile-page {
  min-height: 100svh;
  background: linear-gradient(135deg, #fef4fa 0%, #eef7ff 60%, #fff7de 100%);
  color: var(--text);
}

.profile-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-topbar a {
  color: var(--game-purple);
  font-weight: 950;
  text-decoration: none;
}

.profile-demo-note {
  display: inline-flex;
  border: 2px solid #f2bf44;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff8d8;
  color: #765000;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-hero,
.profile-panel {
  border: 3px solid rgba(52, 27, 95, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 10px 0 rgba(52, 27, 95, 0.18);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 232, 255, 0.94));
}

.profile-avatar {
  width: clamp(88px, 12vw, 126px);
  height: clamp(88px, 12vw, 126px);
  border: 4px solid var(--game-pink);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.profile-hero h1,
.profile-panel h2 {
  margin: 0;
  color: var(--game-purple);
}

.profile-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.profile-hero p {
  margin: 8px 0 0;
  color: #665b6d;
  font-weight: 750;
}

.profile-point-card {
  min-width: 164px;
  border-radius: 14px;
  padding: 14px;
  background: var(--game-purple);
  color: #fff;
  text-align: center;
}

.profile-point-card strong,
.profile-point-card span {
  display: block;
}

.profile-point-card strong {
  color: #ffe66d;
  font-size: 2.2rem;
  line-height: 1;
}

.profile-point-card span {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}

.profile-tab {
  border: 3px solid var(--game-purple);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--game-purple);
  font-weight: 950;
}

.profile-tab.is-active {
  background: var(--game-pink);
  color: #fff;
}

.profile-view[hidden] {
  display: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.profile-panel {
  padding: clamp(20px, 3vw, 30px);
}

.profile-panel > p {
  color: #665b6d;
  line-height: 1.55;
}

.profile-kicker {
  margin: 0 0 8px;
  color: var(--game-pink) !important;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dica-bars,
.team-list,
.recommendation-list {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.dica-bar {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.dica-bar i {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece5f4;
}

.dica-bar i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--game-pink), #8e63ea);
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-chip {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f3eafe;
  color: var(--game-purple);
  font-size: 0.8rem;
  font-weight: 900;
}

.recommendation-list article,
.team-list article {
  border-left: 5px solid var(--game-pink);
  padding: 12px 14px;
  background: #fff8fc;
}

.recommendation-list strong,
.team-list strong,
.recommendation-list span,
.team-list span {
  display: block;
}

.recommendation-list span,
.team-list span {
  margin-top: 4px;
  color: #665b6d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.manager-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.manager-summary article {
  border-radius: 12px;
  padding: 16px;
  background: #f5efff;
  color: var(--game-purple);
}

.manager-summary strong,
.manager-summary span {
  display: block;
}

.manager-summary strong {
  font-size: 1.8rem;
}

.manager-summary span {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .story-section .divar-banner-card {
    grid-template-columns: 1fr;
  }

  .story-section .divar-banner-card a {
    width: min(100%, 320px);
    justify-self: center;
  }

  .profile-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 102px;
  }

  .profile-hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    text-align: center;
  }

  .profile-avatar,
  .profile-point-card {
    justify-self: center;
  }

  .manager-summary {
    grid-template-columns: 1fr;
  }
}

/* DIVAR 360 v56: enquadramento previsível, sala contínua e saída da rodada */
.lobby-back-control[hidden],
.game-exit-overlay[hidden] {
  display: none !important;
}

.lobby-back-control {
  border-radius: 50%;
}

.lobby-back-control svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.game-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 13, 58, 0.58);
  backdrop-filter: blur(8px);
}

.game-exit-overlay article {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px 24px 16px 16px;
  padding: clamp(22px, 5vw, 34px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 102, 0.5), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(250, 238, 255, 0.98));
  color: #31204c;
  box-shadow: 0 14px 0 rgba(41, 17, 76, 0.34), 0 30px 54px rgba(25, 8, 50, 0.36);
}

.game-exit-overlay article > span {
  color: var(--game-pink);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-exit-overlay h2,
.game-exit-overlay p {
  margin: 0;
}

.game-exit-overlay h2 {
  color: var(--game-purple);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 0.98;
}

.game-exit-overlay p {
  color: #51475b;
  font-weight: 780;
  line-height: 1.5;
}

.play-page.is-game-result .game-hud-row {
  display: none;
}

/* A capa tem arte horizontal: usar contain evita perda de personagens em proporções 16:10 e retrato. */
.fake-game-stage[data-game-state="cover"]::before {
  background:
    url("/assets/game-fato-fake.webp") center center / contain no-repeat,
    linear-gradient(180deg, #ed5b98 0%, #aa4ca1 56%, #613bad 100%);
}

/* A transição deixa cada bloco terminar de aparecer antes da próxima seção; o efeito de páginas continua por cor, alça e snap, sem sobreposição que recorte conteúdo. */
.scroll-card-stack {
  scroll-snap-type: y proximity;
}

.scroll-stack-release {
  display: none;
}

.scroll-stack-card {
  position: relative;
  top: auto;
  overflow: visible;
  scroll-snap-align: start;
}

/* Desktop amplo mantém a sensação de páginas sobrepostas, sem deixar a terceira peça escapar da área útil. */
@media (min-width: 1361px) {
  .scroll-stack-card {
    overflow: visible;
  }

  .scroll-stack-card-story {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    grid-template-rows: minmax(0, min(66svh, 620px)) auto;
    align-content: start;
    align-items: center;
    gap: clamp(14px, 2vh, 22px) clamp(34px, 5vw, 72px);
    padding: clamp(74px, 10vh, 98px) max(48px, calc((100vw - 1320px) / 2)) clamp(28px, 4vh, 46px);
  }

  .scroll-stack-card-story.is-story-compact {
    grid-template-rows: minmax(0, 1fr);
  }

  .scroll-stack-card-story .section-copy,
  .scroll-stack-card-story .world-card {
    align-self: center;
  }

  .scroll-stack-card-story .world-card {
    max-height: min(50svh, 460px);
    margin: 0;
  }

  .scroll-stack-card-story .world-card img {
    width: 100%;
    height: 100%;
    max-height: min(44svh, 396px);
    object-fit: contain;
  }

  .scroll-stack-card-story .divar-banner-card {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(760px, 100%);
    min-height: 96px;
    justify-self: center;
    gap: clamp(14px, 2vw, 28px);
    margin: 0;
    padding: 12px 18px;
  }

  .scroll-stack-card-story .divar-banner-card img {
    width: min(310px, 40vw);
    max-height: 70px;
  }

  .interactive-scene .scene-laptop {
    width: min(52vw, 72vh, 820px);
    left: 50%;
    top: 55%;
  }

  .interactive-scene .scene-red-guide {
    width: min(18vw, 300px);
    left: 20%;
    top: 48%;
  }

  .interactive-scene .scene-cartilha {
    width: min(14vw, 220px);
    left: 9%;
    top: 76%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(15vw, 250px);
    left: 70%;
    top: 80%;
  }

  .interactive-scene .scene-faq {
    width: min(22vw, 350px);
    left: 79%;
    top: 34%;
    transform: translate(-50%, -50%) rotate(7deg);
  }

  .interactive-scene .scene-guide-kit {
    width: min(21vw, 345px);
    left: 84%;
    top: 70%;
  }

  .interactive-scene .scene-faq:hover,
  .interactive-scene .scene-faq:focus-visible {
    transform: translate(-50%, -50%) rotate(7deg) scale(1.045);
  }
}

/* Laptop, tablet e mobile não escondem conteúdo em um cartão sticky: a jornada continua em cartões inteiros. */
@media (max-width: 1360px) {
  .scroll-card-stack {
    scroll-snap-type: y proximity;
  }

  .scroll-stack-release {
    display: none;
  }

  .scroll-stack-card {
    position: relative;
    top: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: start;
  }

  .scroll-stack-card-story {
    padding: clamp(82px, 11vh, 120px) clamp(22px, 5vw, 60px) clamp(46px, 7vh, 78px);
  }

  .game-entry-scroll.scroll-stack-card-entry {
    min-height: 0;
    padding-block: clamp(72px, 11vh, 116px) clamp(46px, 7vh, 72px);
  }

  .interactive-scene .scene-laptop {
    width: min(60vw, 72vh, 680px);
    left: 50%;
    top: 52%;
  }

  .interactive-scene .scene-red-guide {
    width: min(19vw, 220px);
    left: 18%;
    top: 49%;
  }

  .interactive-scene .scene-cartilha {
    width: min(15vw, 170px);
    left: 9%;
    top: 76%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(15vw, 190px);
    left: 70%;
    top: 80%;
  }

  .interactive-scene .scene-faq {
    width: min(26vw, 275px);
    left: 79%;
    top: 34%;
    transform: translate(-50%, -50%) rotate(7deg);
  }

  .interactive-scene .scene-guide-kit {
    width: min(24vw, 270px);
    left: 84%;
    top: 70%;
  }

  .interactive-scene .scene-faq:hover,
  .interactive-scene .scene-faq:focus-visible {
    transform: translate(-50%, -50%) rotate(7deg) scale(1.045);
  }
}

@media (max-width: 760px) {
  .scroll-stack-card {
    border-radius: 18px 18px 0 0;
  }

  .scroll-stack-card-story,
  .learning-world.scroll-stack-card-journey {
    padding: 72px 16px 44px;
  }

  .scroll-stack-card-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .scroll-stack-card-story .world-card,
  .scroll-stack-card-story .divar-banner-card {
    margin: 0;
  }

  .game-entry-scroll.scroll-stack-card-entry {
    padding: 56px 12px 42px;
  }

  .fake-game-stage[data-game-state="cover"]::before {
    background-position: center 33%;
  }

  .interactive-scene .scene-laptop {
    width: min(82vw, 520px);
    left: 50%;
    top: 38%;
  }

  .interactive-scene .scene-red-guide {
    width: min(28vw, 145px);
    left: 13%;
    top: 53%;
  }

  .interactive-scene .scene-cartilha {
    width: min(28vw, 150px);
    left: 17%;
    top: 78%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(24vw, 124px);
    left: 72%;
    top: 81%;
  }

  .interactive-scene .scene-faq {
    width: min(39vw, 194px);
    left: 79%;
    top: 31%;
    transform: translate(-50%, -50%) rotate(6deg);
  }

  .interactive-scene .scene-guide-kit {
    width: min(35vw, 178px);
    left: 80%;
    top: 65%;
  }

  .interactive-scene .scene-faq:hover,
  .interactive-scene .scene-faq:focus-visible {
    transform: translate(-50%, -50%) rotate(6deg) scale(1.045);
  }

  .game-exit-overlay {
    align-items: end;
    padding: 12px;
  }

  .game-exit-overlay article {
    gap: 14px;
    border-radius: 22px 22px 14px 14px;
    padding: 22px 18px;
  }

  .game-exit-overlay .game-phase-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .interactive-scene .scene-laptop {
    width: min(76vw, 460px);
    top: 39%;
  }

  .interactive-scene .scene-cartilha {
    top: 80%;
  }

  .play-page.is-game-result .game-result-panel {
    padding: 88px 10px 16px;
  }

  .play-page.is-game-result .quiz-result-card {
    gap: 8px;
    padding: 14px;
  }

  .play-page.is-game-result .quiz-result-stats article {
    padding: 9px 6px;
  }
}

/* DIVAR 360 v72: refinamentos de leitura, navegação e jogos a partir da validação visual. */
.landing-actions {
  justify-content: center;
}

.hero-scroll-cue {
  width: 64px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(52, 27, 95, 0.2);
  box-shadow: 0 7px 0 rgba(52, 27, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-scroll-cue > span[aria-hidden="true"] {
  display: block;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(52, 27, 95, 0.36);
  animation: divar-scroll-cue 1.45s ease-in-out infinite;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 0 rgba(52, 27, 95, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.hero-scroll-cue:focus-visible {
  outline: 4px solid #ffe16b;
  outline-offset: 5px;
}

@keyframes divar-scroll-cue {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(6px); }
}

@media (min-width: 761px) {
  .scroll-stack-card-story.is-story-compact {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .scroll-stack-card-story.is-story-compact .section-copy h2 {
    max-width: 15ch;
    font-size: clamp(2.45rem, 4.35vw, 4.85rem);
    line-height: 0.94;
  }

  .scroll-stack-card-story.is-story-compact .world-card {
    width: min(100%, 610px);
    max-height: min(42svh, 390px);
    justify-self: end;
  }

  .scroll-stack-card-story.is-story-compact .world-card img {
    max-height: min(36svh, 340px);
  }

  .public-cta .play-button {
    min-width: clamp(285px, 28vw, 390px);
    justify-content: center;
    padding-inline: 34px;
  }
}

.games-section .play-card-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.games-section .play-card-copy > :last-child {
  margin-top: auto;
}

.games-section .play-card-copy > a,
.games-section .play-card-copy > .card-cta {
  align-self: flex-start;
}

.site-footer {
  padding-top: clamp(38px, 5.2vw, 64px);
}

.site-footer-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.82fr) minmax(260px, 1fr);
  align-items: center;
}

.site-footer-brand strong {
  display: block;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 rgba(52, 27, 95, 0.3);
}

.site-footer-brand p {
  max-width: 28ch;
  margin-top: 10px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer-socials {
  justify-self: end;
}

.site-footer-socials > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.site-footer-pending {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer-bottom {
  min-height: 46px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 16px;
}

/* O contador continua sem texto redundante, mas permanece anunciado para leitores de tela. */
#matchCountdownStat {
  gap: 0;
}

#matchCountdownStat strong {
  color: #ffe66d;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 0.88;
  text-shadow: 0 3px 0 rgba(31, 13, 55, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  .memory-card.is-revealed:not(.is-presenting-pair):hover,
  .memory-card.is-matched:not(.is-presenting-pair):hover {
    z-index: 8;
    filter: brightness(1.05) saturate(1.08);
    transform: translateY(-12px) scale(1.12);
  }
}

.memory-criteria-content {
  padding: clamp(15px, 2vw, 24px) clamp(12px, 1.6vw, 20px);
}

.memory-criteria-content strong {
  font-size: clamp(0.78rem, 1.24vw, 1.03rem);
  line-height: 1.24;
}

/* Fato ou Fake: decisão vertical nas laterais; em telas menores, enunciado acima e respostas abaixo. */
@media (min-width: 901px) {
  .play-page.is-game-playing .game-arena {
    min-height: clamp(420px, 53svh, 570px);
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    width: clamp(360px, 40vw, 570px);
    min-height: 230px;
    padding: 26px 28px 34px;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button {
    top: 0;
    bottom: 0;
    width: clamp(210px, 24vw, 320px);
    min-height: 0;
    border-radius: 26px;
    font-size: clamp(2.3rem, 4vw, 4.15rem);
    transform: none;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:focus-visible {
    transform: translateY(-5px) scale(1.018);
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:active {
    transform: translateY(2px) scale(0.99);
  }

  .play-page.is-game-playing .game-arena .question-mascot {
    bottom: 22px;
    max-width: min(10vw, 120px);
  }
}

/* O modal de saída fica direto: somente a decisão e as duas ações. */
.game-exit-overlay article.game-exit-card {
  width: min(510px, calc(100% - 32px));
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "actions";
  gap: 14px;
  padding: clamp(22px, 4vw, 30px);
}

.game-exit-copy {
  justify-items: center;
  text-align: center;
}

.game-exit-overlay .game-exit-copy h2 {
  font-size: clamp(1.7rem, 3.7vw, 2.3rem);
}

.game-exit-actions {
  padding-top: 14px;
}

/* A personagem azul ocupa o lugar do antigo guia, sem duplicar itens na mesa. */
@media (min-width: 1361px) {
  .interactive-scene .scene-faq {
    left: 86%;
    top: 30%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(18vw, 280px);
    left: 84%;
    top: 71%;
  }
}

@media (min-width: 761px) and (max-width: 1360px) {
  .interactive-scene .scene-faq {
    left: 85%;
    top: 31%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(19vw, 230px);
    left: 83%;
    top: 70%;
  }
}

@media (max-width: 760px) {
  .hero-scroll-cue {
    width: 56px;
    height: 62px;
  }

  .hero-scroll-cue > span[aria-hidden="true"] {
    font-size: 2rem;
  }

  .games-section .play-card-copy > a,
  .games-section .play-card-copy > .card-cta {
    align-self: stretch;
  }

  .site-footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-socials {
    justify-self: start;
  }

  .site-footer-socials > div {
    justify-content: flex-start;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:focus-visible,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:active {
    min-height: 88px;
    font-size: clamp(1.6rem, 8vw, 2.45rem);
  }

  .interactive-scene .scene-faq {
    width: min(36vw, 194px);
    right: 2.5%;
    left: auto;
    top: 28%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(32vw, 156px);
    right: 4%;
    left: auto;
    top: 69%;
  }
}

@media (max-width: 520px) {
  .memory-status-grid:not(.is-countdown-hidden) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-status-grid:not(.is-countdown-hidden) #matchCountdownStat {
    display: flex;
    grid-column: 1 / -1;
    min-height: 56px;
  }

  .memory-card {
    height: max(84px, min(calc((100svh - 185px) / 4.5), 38vw));
  }

  .memory-criteria-content {
    padding: 6px;
  }

  .memory-criteria-content strong {
    font-size: clamp(0.62rem, 3.1vw, 0.82rem);
    line-height: 1.14;
    -webkit-line-clamp: 8;
  }

  .game-exit-overlay article.game-exit-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue > span[aria-hidden="true"] {
    animation: none;
  }

  .memory-card,
  .memory-card-inner {
    transition-duration: 0.01ms;
  }
}

/* DIVAR 360 v71: rodapé público compartilhado entre a landing e o Sobre. */
.site-footer {
  position: relative;
  padding: clamp(46px, 7vw, 80px) max(20px, calc((100vw - 1180px) / 2)) 24px;
  border-top: 3px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 225, 100, 0.22), transparent 19%),
    radial-gradient(circle at 84% 18%, rgba(64, 200, 242, 0.25), transparent 22%),
    linear-gradient(135deg, #3a236b, #782f9d 49%, #207fb8);
  color: #fff;
}

.site-footer-shell,
.site-footer-bottom {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.7fr) minmax(220px, 0.9fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.site-footer-brand {
  max-width: 380px;
}

.site-footer-brand img {
  width: 152px;
  height: 56px;
  display: block;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  object-fit: contain;
  box-shadow: 6px 7px 0 rgba(31, 16, 62, 0.22);
}

.site-footer-brand p {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.site-footer-nav {
  display: grid;
  gap: 10px;
}

.site-footer-nav a,
.site-footer-bottom a {
  width: fit-content;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.site-footer-nav a::after {
  content: "↗";
  display: inline-block;
  margin-left: 7px;
  color: #ffe16b;
  transition: transform 180ms ease;
}

.site-footer-nav a:hover::after,
.site-footer-nav a:focus-visible::after {
  transform: translate3d(3px, -3px, 0);
}

.site-footer-nav a:focus-visible,
.site-footer-bottom a:focus-visible {
  outline: 3px solid #ffe16b;
  outline-offset: 4px;
}

.site-footer-socials {
  display: grid;
  gap: 12px;
}

.site-footer-socials > strong {
  color: #ffe16b;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-socials > div {
  display: grid;
  gap: 9px;
}

.site-footer-pending {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.site-footer-pending b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
}

.site-footer-pending em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.site-footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.site-footer-bottom a {
  color: #ffe16b;
}

.site-footer-bottom b {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.site-footer-bottom a:hover b,
.site-footer-bottom a:focus-visible b {
  transform: translate3d(3px, -3px, 0);
}

@media (max-width: 760px) {
  .site-footer {
    padding: 42px 18px 20px;
  }

  .site-footer-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer-brand {
    max-width: 440px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
  }
}

/* DIVAR 360 v67: rodadas com identidade própria e decisão sem duplicidade. */
.play-page.is-game-focused .fake-game-stage[data-game-state="playing"]::before,
.play-page.is-game-focused .fake-game-stage[data-game-state="result"]::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 224, 89, 0.3), transparent 22%),
    radial-gradient(circle at 86% 22%, rgba(88, 212, 255, 0.27), transparent 26%),
    linear-gradient(135deg, #ed3d86 0%, #b33fa6 48%, #54329a 100%);
  opacity: 1;
  filter: none;
  transform: none;
}

.play-page.is-game-focused .fake-game-stage[data-game-state="disc-playing"]::before,
.play-page.is-game-focused .fake-game-stage[data-game-state="disc-result"]::before {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 218, 88, 0.32), transparent 24%),
    radial-gradient(circle at 86% 74%, rgba(82, 216, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #ef438b 0%, #a348be 50%, #456dc4 100%);
  opacity: 1;
  filter: none;
  transform: none;
}

.play-page.is-game-focused .fake-game-stage[data-game-state="match-playing"]::before,
.play-page.is-game-focused .fake-game-stage[data-game-state="match-result"]::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 208, 74, 0.3), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(128, 220, 255, 0.25), transparent 25%),
    linear-gradient(135deg, #cf2f81 0%, #87399f 52%, #373083 100%);
  opacity: 1;
  filter: none;
  transform: none;
}

.play-page.is-game-focused .fake-game-stage[data-game-state="playing"]::after,
.play-page.is-game-focused .fake-game-stage[data-game-state="result"]::after,
.play-page.is-game-focused .fake-game-stage[data-game-state="disc-playing"]::after,
.play-page.is-game-focused .fake-game-stage[data-game-state="disc-result"]::after,
.play-page.is-game-focused .fake-game-stage[data-game-state="match-playing"]::after,
.play-page.is-game-focused .fake-game-stage[data-game-state="match-result"]::after {
  background:
    linear-gradient(180deg, rgba(44, 19, 84, 0.04) 0%, rgba(44, 19, 84, 0.14) 100%),
    radial-gradient(circle at 50% 100%, rgba(42, 21, 98, 0.34), transparent 54%);
}

/* Fato ou Fake: a pergunta fica no centro; os próprios botões viram as duas decisões laterais. */
.play-page.is-game-playing .game-live-panel {
  width: min(calc(100% - 40px), 1280px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 108px 0 32px;
  gap: clamp(12px, 2vh, 20px);
}

.play-page.is-game-playing .game-question-banner {
  width: min(660px, 100%);
  margin: 0 auto;
}

.play-page.is-game-playing .game-arena {
  min-height: clamp(300px, 40vh, 410px);
  overflow: visible;
  isolation: isolate;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08));
}

.play-page.is-game-playing .game-arena .game-question-card {
  z-index: 4;
  width: clamp(320px, 38vw, 510px);
  min-height: 188px;
}

.play-page.is-game-playing .game-arena .game-answer-buttons {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  margin: 0;
  pointer-events: none;
}

.play-page.is-game-playing .game-arena .game-answer-buttons .answer-button {
  position: absolute;
  top: 50%;
  width: clamp(168px, 22vw, 280px);
  min-height: 148px;
  border: 2px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  padding: 16px 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  box-shadow: 0 14px 28px rgba(45, 17, 88, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px) saturate(1.08);
  color: #fff;
  font-size: clamp(1.85rem, 3.4vw, 3.15rem);
  text-shadow: 0 3px 12px rgba(46, 14, 77, 0.46);
  transform: translateY(-50%);
  pointer-events: auto;
}

.play-page.is-game-playing .game-arena .game-answer-buttons .fake-answer {
  left: clamp(0px, 2.6vw, 42px);
  border-color: rgba(255, 190, 218, 0.92);
  background: linear-gradient(145deg, rgba(240, 44, 128, 0.5), rgba(143, 30, 107, 0.24));
}

.play-page.is-game-playing .game-arena .game-answer-buttons .fact-answer {
  right: clamp(0px, 2.6vw, 42px);
  border-color: rgba(181, 255, 205, 0.88);
  background: linear-gradient(145deg, rgba(50, 181, 113, 0.48), rgba(15, 104, 99, 0.24));
}

.play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:hover {
  /* Mantém a área lateral estável: aumentar o alvo cortava a composição em desktop. */
  transform: translateY(-50%);
  filter: brightness(1.06) saturate(1.04);
}

.play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:focus-visible {
  transform: translateY(-50%);
  outline: 3px solid rgba(255, 255, 255, 0.96);
  outline-offset: 4px;
}

.play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:active {
  transform: translateY(calc(-50% + 2px)) scale(0.985);
}

.play-page.is-game-playing .game-arena .question-mascot {
  z-index: 4;
  bottom: 12px;
  max-width: min(9vw, 104px);
  opacity: 0.94;
}

.play-page.is-game-playing .game-arena .mascot-a {
  left: 21%;
  top: auto;
}

.play-page.is-game-playing .game-arena .mascot-b {
  right: 21%;
  top: auto;
}

.play-page.is-game-playing .game-feedback {
  width: min(780px, 100%);
  min-height: 0;
  margin: 0 auto;
  border-width: 2px;
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow: 0 8px 0 rgba(52, 27, 95, 0.2), 0 14px 22px rgba(52, 27, 95, 0.14);
}

.play-page.is-game-playing .game-feedback:empty {
  display: none;
}

.play-page.is-game-playing .game-feedback-next {
  min-height: 48px;
  margin-top: 0;
}

/* Deu Match já mostra o par em sua apresentação própria; a faixa de estado e a barra duplicadas saem da tela. */
.play-page.is-match-playing #matchFeedback,
.play-page.is-match-result #matchFeedback {
  display: none;
}

/* Saída direta e compacta, sem repetir a explicação da escolha. */
.game-exit-overlay article.game-exit-card {
  width: min(540px, calc(100% - 32px));
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 18px 20px 16px;
}

.game-exit-overlay .game-exit-visual {
  width: 58px;
  min-height: 58px;
}

.game-exit-overlay .game-exit-copy {
  gap: 3px;
}

.game-exit-overlay .game-exit-copy h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.2rem);
}

.game-exit-actions {
  gap: 10px;
  padding-top: 12px;
}

.game-exit-actions .game-start-button {
  min-height: 52px;
}

@media (max-width: 900px) {
  .play-page.is-game-playing .game-live-panel {
    width: min(calc(100% - 24px), 680px);
    padding: 138px 0 24px;
  }

  .play-page.is-game-playing .game-arena {
    min-height: 0;
    padding: 0 0 14px;
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    width: min(100%, 510px);
    min-height: 176px;
    margin: 0 auto;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 560px);
    margin: 16px auto 0;
    pointer-events: auto;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:focus-visible,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:active {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    min-height: 78px;
    border-radius: 16px;
    font-size: clamp(1.45rem, 5vw, 2.25rem);
    transform: none;
  }

  .play-page.is-game-playing .game-arena .question-mascot {
    bottom: 6px;
    max-width: 78px;
    opacity: 0.66;
  }

  .play-page.is-game-playing .game-arena .mascot-a {
    left: 2%;
  }

  .play-page.is-game-playing .game-arena .mascot-b {
    right: 2%;
  }
}

@media (max-width: 520px) {
  .play-page.is-game-playing .game-live-panel {
    width: calc(100% - 20px);
    padding-top: 162px;
  }

  .play-page.is-game-playing .game-question-banner {
    min-height: 54px;
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    min-height: 168px;
    padding: 16px 18px 22px;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons {
    margin-top: 12px;
    gap: 8px;
  }

  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:focus-visible,
  .play-page.is-game-playing .game-arena .game-answer-buttons .answer-button:active {
    min-height: 70px;
    padding: 10px 6px;
  }

  .play-page.is-game-playing .game-arena .question-mascot {
    z-index: 1;
    opacity: 0.34;
  }

  .play-page.is-game-playing .game-feedback {
    border-radius: 12px;
    padding: 9px 11px;
  }

  .game-exit-overlay article.game-exit-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 16px;
  }

  .game-exit-overlay .game-exit-visual {
    width: 52px;
    min-height: 52px;
  }

  .game-exit-overlay .game-exit-copy h2 {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
  }
}

/* DIVAR 360 v59: páginas animadas sem empilhar uma seção por cima da outra. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-stack-card.scroll-motion {
    opacity: 0.28;
    transform: perspective(1200px) translate3d(0, 76px, 0) scale(0.95) rotateX(2.4deg);
    transform-origin: center top;
    filter: saturate(0.84);
    transition:
      opacity 360ms ease,
      transform 820ms cubic-bezier(0.18, 0.82, 0.2, 1),
      filter 560ms ease;
    will-change: opacity, transform, filter;
  }

  .scroll-stack-card.scroll-motion.is-scroll-visible {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) scale(1) rotateX(0);
    filter: saturate(1);
  }

  .scroll-stack-card.scroll-motion.is-scroll-visible .section-copy {
    animation: divar-section-content-in 660ms 40ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .scroll-stack-card.scroll-motion.is-scroll-visible .world-card,
  .scroll-stack-card.scroll-motion.is-scroll-visible .divar-banner-card,
  .scroll-stack-card.scroll-motion.is-scroll-visible .factor-grid,
  .scroll-stack-card.scroll-motion.is-scroll-visible .game-entry-scene {
    animation: divar-section-content-in 700ms 130ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes divar-section-content-in {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .scroll-stack-card.scroll-motion {
    opacity: 0.46;
    transform: translate3d(0, 34px, 0) scale(0.98);
    filter: none;
    transition-duration: 300ms, 580ms, 0ms;
  }
}

/* DIVAR 360 v60: o cabeçalho móvel é sticky e precisa de área segura quando uma página da jornada começa. */
@media (max-width: 980px) {
  .scroll-stack-card-story,
  .learning-world.scroll-stack-card-journey {
    padding-top: 176px;
    scroll-margin-top: 176px;
  }
}

.lobby-back-control svg {
  stroke-width: 2.65;
}

.game-menu-popover [hidden] {
  display: none !important;
}

/* DIVAR 360 v62: menu sem catálogo redundante, cards de arte integral e saída acolhedora. */
.play-card[data-game-theme="include"] .play-card-art img,
.play-card[data-game-theme="team"] .play-card-art img {
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.game-exit-overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(248, 95, 169, 0.26), transparent 30%),
    rgba(28, 12, 57, 0.7);
  backdrop-filter: blur(14px) saturate(1.08);
}

.game-exit-overlay article.game-exit-card {
  width: min(650px, 100%);
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "visual copy"
    "actions actions";
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
  border-color: rgba(255, 255, 255, 0.97);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 32px);
  background:
    radial-gradient(circle at 88% 12%, rgba(78, 191, 238, 0.2), transparent 22%),
    radial-gradient(circle at 10% 96%, rgba(255, 210, 94, 0.26), transparent 28%),
    linear-gradient(145deg, #fffefe 0%, #fff2fa 58%, #f0e8ff 100%);
  box-shadow: 0 16px 0 rgba(41, 17, 76, 0.38), 0 36px 70px rgba(14, 5, 32, 0.46);
}

.game-exit-visual {
  grid-area: visual;
  width: clamp(70px, 12vw, 100px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(145deg, #fb4a9d, #9a4fe9 62%, #4abfe9);
  box-shadow: inset 0 -7px 0 rgba(83, 26, 125, 0.24), 0 10px 0 rgba(163, 39, 111, 0.18);
}

.game-exit-visual svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.game-exit-copy {
  grid-area: copy;
  display: grid;
  gap: 8px;
}

.game-exit-overlay .game-exit-copy > span {
  color: var(--game-pink);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-exit-overlay .game-exit-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.game-exit-overlay .game-exit-copy p {
  max-width: 420px;
}

.game-exit-actions {
  grid-area: actions;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(87, 55, 110, 0.16);
  padding-top: 18px;
}

.game-exit-actions .game-start-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
}

.game-exit-actions .game-exit-leave-button {
  border-color: rgba(104, 63, 147, 0.36);
  background: rgba(255, 255, 255, 0.86);
  color: var(--game-purple);
  box-shadow: 0 6px 0 rgba(86, 46, 128, 0.22), 0 12px 20px rgba(52, 27, 95, 0.1);
}

@media (max-width: 760px) {
  .game-exit-overlay article.game-exit-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    border-radius: 26px 26px 18px 18px;
    padding: 20px 18px 18px;
  }

  .game-exit-visual {
    width: 68px;
  }

  .game-exit-overlay .game-exit-copy h2 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .game-exit-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .game-exit-actions .game-start-button {
    min-height: 52px;
  }
}

/* DIVAR 360 v66: deck sticky com páginas inteiras, sem mascarar conteúdo. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-card-stack {
    position: relative;
    isolation: isolate;
    scroll-snap-type: none;
  }

  .scroll-stack-release {
    display: block;
    height: clamp(46svh, 64svh, 70svh);
    pointer-events: none;
  }

  .scroll-stack-card {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: none;
    scroll-margin-top: 0;
  }

  .scroll-stack-card-story {
    z-index: 1;
    align-content: center;
  }

  .scroll-stack-card-journey {
    z-index: 2;
  }

  .game-entry-scroll.scroll-stack-card-entry {
    z-index: 3;
  }

  /* A página já faz a transição pelo empilhamento; transformar o contêiner sticky quebra seu encaixe. */
  .scroll-stack-card.scroll-motion {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
}

/* No celular, a Jornada cabe inteira na página sticky sem reduzir a leitura a um painel rolável. */
@media (max-width: 760px) and (min-height: 721px) and (prefers-reduced-motion: no-preference) {
  .learning-world.scroll-stack-card-journey {
    padding: 168px 14px 28px;
  }

  .scroll-stack-card-journey .section-copy.centered {
    margin-bottom: 16px;
  }

  .scroll-stack-card-journey .section-copy h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .scroll-stack-card-journey .factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .scroll-stack-card-journey .factor-grid article {
    min-height: 142px;
    gap: 6px;
    padding: 11px;
  }

  .scroll-stack-card-journey .factor-grid strong,
  .scroll-stack-card-journey .factor-grid span {
    font-size: clamp(0.74rem, 3.2vw, 0.82rem);
    line-height: 1.28;
  }
}

/* Uma viewport muito baixa não comporta uma página inteira com legibilidade: fluxo normal evita corte. */
@media (max-width: 760px) and (max-height: 720px) {
  .scroll-card-stack {
    scroll-snap-type: y proximity;
  }

  .scroll-stack-release {
    display: none;
  }

  .scroll-stack-card {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: start;
  }
}

/* DIVAR 360 v73: os jogos no celular são uma experiência horizontal, sem rolagem acidental. */
.mobile-landscape-prompt {
  display: none;
}

@keyframes mobileRotatePhone {
  0%,
  100% {
    transform: rotate(0deg);
  }

  48%,
  62% {
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  html:has(body.play-page),
  body.play-page,
  html:has(body.unity-page),
  body.unity-page {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.play-page .play-main,
  body.play-page .fake-game-stage,
  body.unity-page .unity-host-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
  }

  .mobile-landscape-prompt {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    padding: 32px;
    background:
      radial-gradient(circle at 24% 22%, rgba(255, 226, 93, 0.3), transparent 22%),
      radial-gradient(circle at 78% 72%, rgba(74, 201, 244, 0.3), transparent 26%),
      linear-gradient(145deg, #ee3b86 0%, #a94bc5 54%, #3f8fd3 100%);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  }

  .mobile-landscape-prompt svg {
    width: min(36vw, 142px);
    height: min(36vw, 142px);
    overflow: visible;
    fill: rgba(255, 255, 255, 0.13);
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.5;
    filter: drop-shadow(0 9px 0 rgba(52, 27, 95, 0.34));
    animation: mobileRotatePhone 2.8s ease-in-out infinite;
  }

  .mobile-landscape-prompt strong {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1;
    text-shadow: 0 5px 0 rgba(52, 27, 95, 0.34);
  }

  .mobile-landscape-prompt span {
    max-width: 26ch;
    font-size: clamp(1rem, 4.7vw, 1.3rem);
    font-weight: 800;
    line-height: 1.4;
  }
}

@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
  html:has(body.play-page),
  body.play-page,
  html:has(body.unity-page),
  body.unity-page {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.play-page .play-main,
  body.play-page .fake-game-stage,
  body.unity-page .unity-host-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
  }

  .fake-game-stage::-webkit-scrollbar {
    display: none;
  }

  .play-page.is-game-focused .game-topbar {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: auto;
  }

  .play-page.is-game-focused .game-controls {
    gap: 6px;
  }

  .play-page.is-game-focused .game-icon-button {
    width: 46px;
    height: 46px;
    border-width: 2px;
    box-shadow: 0 4px 0 #7c1249, 0 8px 14px rgba(52, 27, 95, 0.2);
  }

  .play-page.is-game-focused .game-icon-button span {
    transform: scale(0.82);
  }

  .play-page.is-game-focused .game-hud-row {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    width: 156px;
  }

  .play-page.is-game-focused .game-score-card {
    min-height: 54px;
    padding: 7px 12px;
    box-shadow: 0 4px 0 rgba(180, 15, 97, 0.54);
  }

  .play-page.is-game-focused .game-score-card strong {
    font-size: 1.4rem;
    line-height: 1;
  }

  .play-page.is-game-focused .game-score-card small {
    font-size: 0.62rem;
    line-height: 1.05;
  }

  /* Sala: mantém a mesa inteira e reposiciona os objetos para a proporção de celular deitado. */
  .game-lobby-panel {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .interactive-scene {
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
  }

  .interactive-scene .scene-laptop {
    width: min(51vw, 440px);
    left: 50%;
    top: 54%;
  }

  .interactive-scene .scene-red-guide {
    width: min(14vw, 118px);
    left: 20%;
    top: 58%;
  }

  .interactive-scene .scene-cartilha {
    width: min(14vw, 110px);
    left: 13%;
    top: 80%;
  }

  .interactive-scene .scene-faq {
    width: min(19vw, 162px);
    left: 82%;
    right: auto;
    top: 37%;
  }

  .interactive-scene .scene-blue-guide {
    width: min(14vw, 124px);
    left: 79%;
    right: auto;
    top: 76%;
  }

  .scene-info-card {
    right: 14px;
    bottom: 12px;
    width: min(310px, 40vw);
    max-height: calc(100dvh - 88px);
    gap: 6px;
    padding: 12px;
    overflow: hidden;
  }

  .scene-info-card h2 {
    font-size: 1.25rem;
  }

  .scene-info-card span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  /* Biblioteca: só os três aprendizados jogáveis permanecem visíveis na área curta. */
  .mission-chooser {
    align-items: center;
    padding: 64px 18px 12px;
    overflow: hidden;
  }

  .mission-chooser-card {
    width: min(860px, 100%);
    max-height: calc(100dvh - 76px);
    gap: 7px;
    padding: 12px 16px;
    overflow: hidden;
  }

  .mission-chooser-card p {
    font-size: 0.68rem;
  }

  .mission-chooser-card h1 {
    font-size: clamp(1.45rem, 3.8vw, 2rem);
  }

  .mission-chooser-card > span {
    font-size: 0.74rem;
    line-height: 1.22;
  }

  .mission-chooser .game-mode-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mission-chooser .game-mode-card {
    min-height: 0;
    height: 138px;
    gap: 4px;
    border-width: 3px;
    padding: 8px;
    box-shadow: 0 5px 0 rgba(180, 15, 97, 0.4);
  }

  .mission-chooser .game-mode-card:not(.is-live) {
    display: none;
  }

  .mission-chooser .game-mode-card span,
  .mission-chooser .game-mode-card em {
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .mission-chooser .game-mode-card strong {
    font-size: 0.96rem;
  }

  .mission-chooser .game-mode-card small {
    font-size: 0.68rem;
    line-height: 1.17;
  }

  /* Fato ou Fake: pergunta central, decisão abaixo, tudo dentro da viewport curta. */
  .play-page.is-game-playing .game-live-panel {
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 46px minmax(0, 1fr);
    gap: 7px;
    padding: 68px 0 8px;
    overflow: hidden;
  }

  .play-page.is-game-playing .game-question-banner {
    min-height: 46px;
    margin: 0;
    padding: 5px 10px;
  }

  .play-page.is-game-playing .game-question-banner span {
    font-size: 0.68rem;
  }

  .play-page.is-game-playing .game-question-banner strong {
    font-size: clamp(0.95rem, 2.15vw, 1.15rem);
    line-height: 1.13;
  }

  .play-page.is-game-playing .game-arena {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    width: min(58vw, 480px);
    min-height: 112px;
    gap: 5px;
    border-width: 3px;
    padding: 12px 18px 20px;
    box-shadow: 0 7px 0 rgba(52, 27, 95, 0.24);
  }

  .play-page.is-game-playing .game-question-card small {
    font-size: 0.62rem;
  }

  .play-page.is-game-playing .game-question-card h2 {
    font-size: clamp(0.93rem, 2.25vw, 1.2rem);
    line-height: 1.18;
  }

  .play-page.is-game-playing .timer-pill {
    bottom: -20px;
    min-width: 78px;
    gap: 4px;
    border-width: 2px;
    padding: 4px 8px;
    font-size: 0.82rem;
  }

  .play-page.is-game-playing .timer-pill span {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .play-page.is-game-playing .game-answer-buttons {
    position: absolute;
    right: 14%;
    bottom: 7px;
    left: 14%;
    z-index: 3;
    margin: 0;
    gap: 10px;
  }

  .play-page.is-game-playing .game-answer-buttons .answer-button,
  .play-page.is-game-playing .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-answer-buttons .answer-button:focus-visible,
  .play-page.is-game-playing .game-answer-buttons .answer-button:active {
    min-height: 54px;
    height: 54px;
    border-width: 3px;
    padding: 5px;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    transform: none;
  }

  .play-page.is-game-playing .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-answer-buttons .answer-button:focus-visible {
    transform: translateY(-3px);
  }

  .play-page.is-game-playing .question-mascot {
    max-width: 74px;
  }

  .play-page.is-game-playing .mascot-a {
    left: 11%;
    bottom: 66px;
  }

  .play-page.is-game-playing .mascot-b {
    right: 10%;
    top: 16px;
    max-width: 64px;
  }

  .play-page.is-game-playing .game-feedback,
  .play-page.is-game-playing .game-feedback-next {
    position: absolute;
    z-index: 8;
    right: 14%;
    bottom: 6px;
    left: 14%;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.73rem;
  }

  .play-page.is-game-playing .game-feedback-next {
    bottom: 8px;
    min-height: 42px;
  }

  /* DICA: reduz arte e alternativas sem converter a rodada em uma página rolável. */
  .disc-live-panel {
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 46px minmax(0, 1fr) 6px;
    gap: 7px;
    padding: 68px 0 8px;
    overflow: hidden;
  }

  .disc-live-panel .game-question-banner {
    min-height: 46px;
    margin: 0;
    padding: 5px 10px;
  }

  .disc-arena {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(190px, 0.76fr) minmax(320px, 1.24fr);
    gap: 12px;
    overflow: hidden;
  }

  .disc-arena-art {
    display: block !important;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    border-width: 3px;
  }

  .disc-question-card {
    max-height: 100%;
    border-width: 3px;
    padding: 12px;
    overflow: hidden;
  }

  .disc-question-card small {
    margin-bottom: 5px;
    font-size: 0.65rem;
  }

  .disc-question-card h2 {
    margin-bottom: 9px;
    font-size: clamp(1rem, 2.55vw, 1.38rem);
    line-height: 1.1;
  }

  .disc-scale-buttons {
    gap: 6px;
  }

  .disc-scale-buttons button {
    min-height: 42px;
    padding: 5px 8px;
    border-width: 2px;
    box-shadow: 0 4px 0 #2d174f;
  }

  .disc-scale-buttons button span {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .disc-live-panel .game-progress-track {
    height: 5px;
    margin: 0;
  }

  /* Deu Match: duas linhas de sete cartas utilizam a área útil toda. */
  .match-live-panel {
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 46px 42px minmax(0, 1fr);
    gap: 6px;
    padding: 68px 0 8px;
    overflow: hidden;
  }

  .match-live-panel .match-question-banner {
    min-height: 46px;
    margin: 0;
    padding: 5px 10px;
  }

  .match-live-panel .match-question-banner span {
    font-size: 0.68rem;
  }

  .match-live-panel .match-question-banner strong {
    font-size: clamp(0.88rem, 2vw, 1.08rem);
    line-height: 1.12;
  }

  .match-live-panel .memory-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-status-grid > span {
    min-height: 42px;
    padding: 4px 7px;
    border-width: 2px;
    font-size: 0.7rem;
    box-shadow: 0 3px 0 rgba(31, 13, 55, 0.32);
  }

  .match-live-panel #matchCountdownStat strong {
    font-size: 1.7rem;
  }

  .match-live-panel .memory-card-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-card,
  .match-live-panel .memory-card:nth-child(13),
  .match-live-panel .memory-card:nth-child(14) {
    grid-column: auto;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 8px;
  }

  .match-live-panel .memory-card-face {
    border-width: 2px;
    box-shadow: 0 3px 0 rgba(40, 20, 63, 0.92), 0 6px 10px rgba(41, 16, 70, 0.18);
  }

  .match-live-panel .memory-criteria-content {
    padding: 5px;
  }

  .match-live-panel .memory-criteria-content strong {
    font-size: clamp(0.54rem, 1.26vw, 0.7rem);
    line-height: 1.08;
  }

  .match-live-panel .memory-card-back small,
  .match-live-panel .memory-pair-marker {
    width: 20px;
    height: 20px;
    font-size: 0.58rem;
  }

  /* Painéis temporários seguem a mesma área útil do jogo; nada fica escondido atrás da borda inferior. */
  .game-tutorial-overlay {
    align-items: center;
    padding: 14px 24px;
    overflow: hidden;
  }

  .game-tutorial-card {
    width: min(680px, calc(100vw - 48px));
    max-height: calc(100dvh - 28px);
    gap: 6px;
    border-width: 3px;
    border-radius: 16px;
    padding: 14px 20px;
    overflow: hidden;
  }

  .game-tutorial-card > p {
    font-size: 0.7rem;
    letter-spacing: 0.055em;
  }

  .game-tutorial-card h2 {
    max-width: calc(100% - 42px);
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: 0.98;
  }

  .game-tutorial-card > span {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .game-tutorial-card ol {
    gap: 5px;
  }

  .game-tutorial-card li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .game-tutorial-card li::before {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  .game-tutorial-card .auth-close-button {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-width: 2px;
    font-size: 1.1rem;
  }

  .game-tutorial-card .game-phase-actions {
    width: auto;
    justify-self: end;
    margin: 0;
  }

  .game-tutorial-card .game-start-button {
    min-height: 40px;
    padding: 8px 20px;
    font-size: 0.76rem;
  }

  /* Ao responder, o feedback ocupa a faixa das decisões e o próximo passo permanece livre. */
  .play-page.is-game-playing .game-live-panel {
    padding-top: 76px;
  }

  .play-page.is-game-playing .game-live-panel:has(.game-feedback:not(:empty)) .game-answer-buttons {
    visibility: hidden;
    pointer-events: none;
  }

  .play-page.is-game-playing .game-feedback {
    right: 16%;
    bottom: 54px;
    left: 16%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    max-height: 58px;
    border-width: 2px;
    padding: 6px 10px;
    line-height: 1.12;
  }

  .play-page.is-game-playing .game-feedback strong,
  .play-page.is-game-playing .game-feedback span {
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .play-page.is-game-playing .game-feedback em {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 46px;
    min-height: 38px;
    padding: 5px;
    font-size: 0.9rem;
  }

  .play-page.is-game-playing .game-feedback-next {
    right: 28%;
    left: 28%;
    bottom: 6px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .play-page.is-game-result .game-result-panel {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 12px 24px;
    overflow: hidden;
  }

  .play-page.is-game-result .quiz-result-card {
    width: min(680px, calc(100vw - 48px));
    max-height: calc(100dvh - 24px);
    gap: 5px;
    border-width: 3px;
    border-radius: 18px;
    padding: 12px 18px;
  }

  .play-page.is-game-result .quiz-result-card > p:first-child {
    font-size: 0.66rem;
    letter-spacing: 0.055em;
  }

  .play-page.is-game-result .quiz-result-rank {
    border-width: 2px;
    padding: 4px 10px;
    font-size: 0.65rem;
  }

  .play-page.is-game-result .quiz-result-rank::before {
    margin-right: 5px;
  }

  .play-page.is-game-result .quiz-result-card h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);
  }

  .play-page.is-game-result .quiz-result-card > strong {
    max-width: 72ch;
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .play-page.is-game-result .quiz-result-stats {
    gap: 6px;
  }

  .play-page.is-game-result .quiz-result-stats article {
    gap: 2px;
    border-radius: 11px;
    padding: 6px 10px;
  }

  .play-page.is-game-result .quiz-result-stats span,
  .play-page.is-game-result .quiz-result-stats small {
    font-size: 0.62rem;
  }

  .play-page.is-game-result .quiz-result-stats strong {
    font-size: 1.45rem;
  }

  .play-page.is-game-result .quiz-result-card .score-actions {
    gap: 7px;
  }

  .play-page.is-game-result .quiz-result-card .score-actions .button {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 0.7rem;
  }
}

@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) and (prefers-reduced-motion: reduce) {
  .mobile-landscape-prompt svg {
    animation: none;
  }
}

/* DIVAR 360 v75: pistas de rolagem e jogos horizontais realmente pensados para a área útil do celular. */
.hero-scroll-cue {
  width: 56px;
  height: 78px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 5px 0 rgba(52, 27, 95, 0.28));
  transform: translateY(-3px);
}

.hero-scroll-cue-icon {
  width: 52px;
  height: 88px;
  overflow: visible;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 3px 0 rgba(52, 27, 95, 0.26));
}

.hero-scroll-cue-hand {
  display: none;
}

.hero-scroll-cue-wheel {
  animation: divar-scroll-wheel 1.55s ease-in-out infinite;
}

.hero-scroll-cue-chevron {
  animation: divar-scroll-chevron 1.55s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-scroll-cue-chevron--late {
  animation-delay: 0.15s;
}

@keyframes divar-scroll-wheel {
  0%, 22% {
    opacity: 0;
    transform: translateY(-2px);
  }

  42%, 72% {
    opacity: 1;
    transform: translateY(7px);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes divar-scroll-chevron {
  0%, 20% {
    opacity: 0.28;
    transform: translateY(-3px);
  }

  55% {
    opacity: 1;
    transform: translateY(4px);
  }

  100% {
    opacity: 0.28;
    transform: translateY(7px);
  }
}

@keyframes divar-scroll-hand {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(6px); }
}

@media (max-width: 760px) {
  /* Cabeçalho compacto, fixado no topo e sem segunda linha ou rolagem lateral. */
  .site-header {
    position: sticky;
    z-index: 120;
    top: 0;
    left: auto;
    width: 100%;
    min-height: 66px;
    margin: 0;
    transform: none;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 0 0 16px 16px;
    padding: 8px 10px;
    background: rgba(255, 249, 253, 0.97);
    box-shadow: 0 7px 0 rgba(97, 39, 117, 0.2);
    backdrop-filter: blur(12px);
  }

  .site-brand {
    width: 60px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-brand-logo {
    width: 58px;
    max-width: 100%;
    height: 38px;
    object-fit: contain;
  }

  .site-nav {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    overflow: visible;
    scrollbar-width: auto;
  }

  .site-nav a,
  .site-nav button {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 4px 3px;
    white-space: normal;
    text-align: center;
    font-size: clamp(0.58rem, 2.48vw, 0.66rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
  }

  .site-nav .nav-cta {
    border-width: 2px;
    box-shadow: 0 3px 0 #6a1748;
  }

  .landing-hero {
    min-height: calc(100svh - 66px);
    padding: 14px 20px 18px;
  }

  .landing-hero-stage {
    display: grid;
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: space-evenly;
    justify-items: center;
    gap: 10px;
  }

  .hero-float-showcase {
    order: 1;
    width: min(86vw, 344px);
    margin: 0;
  }

  .hero-float-showcase img {
    width: 100%;
    max-height: min(31svh, 238px);
    object-fit: contain;
  }

  .hero-copy-card {
    order: 2;
    max-width: 34ch;
    text-align: center;
  }

  .hero-copy-card h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.78rem);
    letter-spacing: -0.06em;
    line-height: 0.96;
  }

  .hero-copy-card p {
    max-width: 34ch;
    margin-inline: auto;
    font-size: clamp(0.84rem, 3.6vw, 0.98rem);
    line-height: 1.38;
  }

  .landing-actions {
    width: auto;
    min-height: 58px;
    display: flex;
    justify-content: center;
    margin-top: 3px;
  }

  .hero-scroll-cue {
    width: 52px;
    height: 66px;
  }

  .landing-actions .hero-scroll-cue {
    width: 52px;
  }

  .hero-scroll-cue-icon {
    width: 48px;
    height: 68px;
  }

  .hero-scroll-cue-mouse {
    display: none;
  }

  .hero-scroll-cue-hand {
    display: block;
  }

  .hero-scroll-cue-hand-motion {
    animation: divar-scroll-hand 1.6s ease-in-out infinite;
  }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 5px;
    padding-inline: 7px;
  }

  .site-brand,
  .site-brand-logo {
    width: 48px;
  }

  .site-nav {
    gap: 3px;
  }

  .site-nav a,
  .site-nav button {
    min-height: 40px;
    padding-inline: 2px;
    font-size: 0.55rem;
  }
}

/* Tablet: usa a mesma barra única da Home, sem voltar ao cabeçalho de duas linhas. */
@media (min-width: 761px) and (max-width: 900px) {
  .site-header {
    position: sticky;
    z-index: 120;
    top: 0;
    left: auto;
    width: 100%;
    min-height: 70px;
    margin: 0;
    transform: none;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 0 0 16px 16px;
    padding: 9px 18px;
    background: rgba(255, 249, 253, 0.97);
    box-shadow: 0 7px 0 rgba(97, 39, 117, 0.2);
    backdrop-filter: blur(12px);
  }

  .site-brand {
    width: 92px;
    display: flex;
    justify-content: center;
  }

  .site-brand-logo {
    width: 88px;
    height: 42px;
    object-fit: contain;
  }

  .site-nav {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .site-nav a,
  .site-nav button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 10px;
    white-space: normal;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.08;
  }

  .site-nav .nav-cta {
    border-width: 2px;
    box-shadow: 0 3px 0 #6a1748;
  }
}

/* O navegador móvel já ocupa a tela; o Fullscreen API não adiciona valor à rodada horizontal. */
@media (max-width: 960px) {
  body.play-page .fullscreen-control {
    display: none !important;
  }
}

@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
  /* Sala: notebook menor no centro e objetos com áreas de toque independentes em cada canto. */
  .interactive-scene {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .interactive-scene .scene-laptop {
    width: min(35vw, 300px);
    left: 50%;
    top: 53%;
  }

  .interactive-scene .scene-red-guide {
    width: min(10.5vw, 94px);
    left: 12%;
    top: 52%;
  }

  .interactive-scene .scene-cartilha {
    width: min(11vw, 96px);
    left: 10%;
    top: 80%;
  }

  .interactive-scene .scene-faq {
    width: min(18vw, 154px);
    right: auto;
    left: 88%;
    top: 29%;
    transform: translate(-50%, -50%) rotate(6deg);
  }

  .interactive-scene .scene-blue-guide {
    width: min(11vw, 98px);
    right: auto;
    left: 87%;
    top: 78%;
  }

  .interactive-scene .scene-faq:hover,
  .interactive-scene .scene-faq:focus-visible {
    transform: translate(-50%, -50%) rotate(6deg) scale(1.045);
  }

  /* Fato ou Fake: preserva faixa superior e ações em uma área fixa da rodada. */
  .play-page.is-game-playing .game-live-panel {
    grid-template-rows: 42px minmax(0, 1fr);
    padding-top: 70px;
  }

  .play-page.is-game-playing .game-question-banner {
    min-height: 42px;
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    width: min(58vw, 460px);
    min-height: 104px;
    padding: 10px 16px 18px;
  }

  /* DICA: no celular deitado, a imagem decorativa sai e as alternativas ganham uma coluna útil à direita. */
  .disc-live-panel {
    position: relative;
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
  }

  .disc-live-panel .game-question-banner {
    position: absolute;
    top: 70px;
    right: 0;
    left: 190px;
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 5px 10px;
  }

  .disc-live-panel .game-question-banner span {
    font-size: 0.64rem;
  }

  .disc-live-panel .game-question-banner strong {
    font-size: clamp(0.84rem, 2vw, 1.03rem);
    line-height: 1.1;
  }

  #discLivePanel .disc-question-banner {
    right: 0;
    left: 190px;
    width: auto;
    justify-self: stretch;
  }

  .disc-live-panel .disc-arena {
    position: absolute;
    top: 140px;
    right: 0;
    bottom: 12px;
    left: 190px;
    display: block;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .disc-live-panel .disc-arena-art {
    display: none !important;
  }

  .disc-live-panel .disc-question-card {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    box-sizing: border-box;
    margin: 0;
    border-width: 3px;
    padding: 10px 13px;
    overflow: hidden;
  }

  .disc-live-panel .disc-question-card small {
    margin-bottom: 4px;
    font-size: 0.6rem;
  }

  .disc-live-panel .disc-question-card h2 {
    margin: 0 0 8px;
    font-size: clamp(0.92rem, 2.1vw, 1.13rem);
    line-height: 1.12;
  }

  .disc-live-panel .disc-scale-buttons {
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .disc-live-panel .disc-scale-buttons button {
    min-height: 0;
    padding: 5px 8px;
  }

  .disc-live-panel .disc-scale-buttons button span {
    font-size: clamp(0.62rem, 1.56vw, 0.75rem);
    line-height: 1.1;
  }

  .disc-live-panel .game-progress-track {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 190px;
    height: 4px;
    margin: 0;
  }

  /* Deu Match: os indicadores viram uma coluna compacta junto à pontuação; as cartas usam o restante da tela. */
  .match-live-panel {
    position: relative;
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
  }

  .match-live-panel .match-question-banner {
    position: absolute;
    top: 70px;
    left: 0;
    width: 178px;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 8px;
  }

  .match-live-panel .match-question-banner span {
    font-size: 0.58rem;
    line-height: 1.05;
  }

  .match-live-panel .match-question-banner strong {
    display: none;
  }

  .match-live-panel .memory-status-grid {
    position: absolute;
    top: 120px;
    left: 0;
    width: 178px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .match-live-panel .memory-status-grid > span {
    min-height: 31px;
    padding: 3px 4px;
    font-size: 0.55rem;
    line-height: 1.05;
  }

  .match-live-panel .memory-status-grid > span strong {
    font-size: 0.8rem;
  }

  .match-live-panel #matchCountdownStat {
    display: flex;
    grid-column: 1 / -1;
    min-height: 31px;
  }

  .match-live-panel #matchCountdownStat strong {
    font-size: 1.2rem;
  }

  .match-live-panel .memory-card-grid {
    position: absolute;
    top: 70px;
    right: 0;
    bottom: 9px;
    left: 190px;
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-criteria-content {
    padding: 6px;
  }

  .match-live-panel .memory-criteria-content strong {
    font-size: clamp(0.62rem, 1.45vw, 0.78rem);
    line-height: 1.12;
  }

  .match-pair-presentation {
    align-items: end;
    padding: 10px 20px;
    background: rgba(27, 11, 49, 0.7);
    backdrop-filter: blur(6px);
  }

  .match-pair-presentation article {
    width: min(590px, calc(100vw - 40px));
    min-height: 0;
    grid-template-rows: auto auto auto;
    gap: 5px;
    border-width: 2px;
    border-radius: 14px;
    padding: 9px 12px 12px;
  }

  .match-pair-presentation article::after {
    height: 5px;
  }

  .match-pair-presentation article > p {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .match-pair-presentation-content {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
  }

  .match-pair-presentation img {
    width: 64px;
    height: 64px;
    max-height: 64px;
    border-width: 2px;
    border-radius: 10px;
    padding: 4px;
  }

  .match-pair-presentation section {
    justify-items: start;
    gap: 2px;
  }

  .match-pair-presentation .memory-pair-marker {
    width: 22px;
    height: 22px;
    border-width: 2px;
    border-radius: 7px;
    font-size: 0.7rem;
  }

  .match-pair-presentation h2 {
    max-width: none;
    font-size: clamp(0.88rem, 2.1vw, 1.05rem);
    line-height: 1.04;
  }

  .match-pair-presentation strong {
    font-size: clamp(0.68rem, 1.65vw, 0.82rem);
  }

  .match-pair-presentation section > span:last-child {
    max-width: 62ch;
    font-size: clamp(0.6rem, 1.35vw, 0.72rem);
    line-height: 1.15;
  }

  .match-pair-presentation small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue-wheel,
  .hero-scroll-cue-chevron,
  .hero-scroll-cue-hand-motion {
    animation: none;
  }
}

/* DIVAR 360 v78: área de membros sem simular dados oficiais */
.profile-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 89% 8%, rgba(73, 183, 239, 0.24), transparent 26%),
    radial-gradient(circle at 12% 94%, rgba(237, 57, 133, 0.16), transparent 30%),
    linear-gradient(135deg, #fff5fb 0%, #f1ebff 48%, #ebf8ff 100%);
}

.profile-page .profile-shell {
  width: min(1400px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(218px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px) 0 64px;
}

.profile-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  border: 3px solid #34205f;
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(246, 193, 68, 0.52), transparent 28%),
    linear-gradient(155deg, #462077 0%, #733aa2 54%, #e63d8a 155%);
  color: #fff;
  box-shadow: 10px 12px 0 rgba(52, 27, 95, 0.2);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-brand img {
  width: 76px;
  height: 46px;
  border-radius: 12px;
  padding: 9px 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 4px 5px 0 rgba(42, 15, 82, 0.32);
}

.profile-persona {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-page .profile-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  box-shadow: none;
}

.profile-persona strong,
.profile-persona span {
  display: block;
}

.profile-persona strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-persona span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.73rem;
  font-weight: 760;
}

.profile-page .profile-tabs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.profile-page .profile-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 13px;
  padding: 12px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-page .profile-tab[hidden] {
  display: none !important;
}

.profile-page .profile-tab span {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.66rem;
}

.profile-page .profile-tab:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.2);
}

.profile-page .profile-tab:focus-visible,
.profile-sidebar-hall:focus-visible,
.profile-brand:focus-visible,
.profile-primary-action:focus-visible,
.profile-secondary-action:focus-visible,
.learning-card a:focus-visible,
.profile-inline-action:focus-visible {
  outline: 3px solid #ffe66d;
  outline-offset: 3px;
}

.profile-page .profile-tab.is-active {
  border-color: #fff;
  background: #fff;
  color: #48216f;
  box-shadow: 4px 5px 0 rgba(42, 15, 82, 0.28);
}

.profile-page .profile-tab.is-active span {
  background: #ef3e8e;
  color: #fff;
}

.profile-sidebar-hall {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.profile-sidebar-hall > span {
  width: 26px;
  height: 26px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ffe66d;
  color: #48216f;
}

.profile-sidebar-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.45;
}

.profile-main {
  min-width: 0;
}

.profile-page .profile-topbar {
  min-height: 35px;
  margin: 0 0 17px;
}

.profile-page .profile-topbar a {
  color: #4b2577;
  font-size: 0.88rem;
}

.profile-page .profile-demo-note {
  border: 0;
  padding: 7px 11px;
  background: #fff1c4;
  color: #725200;
}

.profile-page .profile-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(205px, 0.72fr) minmax(152px, 0.34fr);
  gap: clamp(16px, 2.6vw, 30px);
  overflow: hidden;
  border: 3px solid #34205f;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 45% 4%, rgba(246, 193, 68, 0.44), transparent 24%),
    radial-gradient(circle at 88% 88%, rgba(83, 193, 238, 0.28), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff2fa 49%, #ecf7ff 100%);
  box-shadow: 10px 11px 0 rgba(52, 27, 95, 0.18);
}

.profile-hero-copy {
  position: relative;
  z-index: 1;
}

.profile-page .profile-hero h1 {
  max-width: 13ch;
  margin-top: 8px;
  color: #382066;
  font-size: clamp(2.1rem, 4.5vw, 4.15rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.profile-page .profile-hero-copy > p:last-of-type {
  max-width: 53ch;
  margin: 16px 0 0;
  color: #5e5169;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.profile-primary-action,
.profile-secondary-action,
.profile-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  border-radius: 13px;
  padding: 10px 17px;
  font-weight: 950;
  text-decoration: none;
}

.profile-primary-action {
  border: 3px solid #35215f;
  background: #ed3687;
  color: #fff;
  box-shadow: 4px 5px 0 #6b1b59;
}

.profile-secondary-action {
  border: 2px solid #694d93;
  background: rgba(255, 255, 255, 0.76);
  color: #4a2774;
}

.profile-hero-art {
  width: min(100%, 290px);
  justify-self: center;
  align-self: center;
  object-fit: contain;
}

.profile-state-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid #442170;
  border-radius: 18px;
  padding: 17px;
  background: #442170;
  color: #fff;
}

.profile-state-card strong,
.profile-state-card span,
.profile-state-card small {
  display: block;
}

.profile-state-card strong {
  color: #ffe66d;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.profile-state-card span {
  margin-top: 8px;
  font-size: 0.77rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-state-card small {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.profile-page .profile-view {
  margin-top: clamp(32px, 5vw, 56px);
}

.profile-section-heading {
  max-width: 690px;
}

.profile-section-heading h2 {
  margin: 0;
  color: #382066;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.profile-section-heading > p:last-child {
  margin: 12px 0 0;
  color: #615568;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.55;
}

.profile-learning-grid,
.manager-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 23px;
}

.learning-card {
  min-height: 245px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid #39205f;
  border-radius: 19px;
  padding: 20px;
  color: #fff;
  box-shadow: 6px 7px 0 rgba(52, 27, 95, 0.2);
}

.learning-card::after {
  position: absolute;
  right: -17px;
  bottom: -56px;
  color: rgba(255, 255, 255, 0.15);
  content: "✦";
  font-size: 11rem;
  line-height: 1;
  pointer-events: none;
}

.learning-card-fact {
  background: linear-gradient(145deg, #ec3a85, #7b349e);
}

.learning-card-dica {
  background: linear-gradient(145deg, #2b7ed9, #6643ad);
}

.learning-card-match {
  background: linear-gradient(145deg, #ed6f9e, #8b3eb2);
}

.learning-card-number {
  width: fit-content;
  margin: 0;
  border-radius: 9px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  font-weight: 1000;
}

.learning-card h3 {
  max-width: 12ch;
  margin: 20px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.02;
}

.learning-card > p:not(.learning-card-number) {
  max-width: 27ch;
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.45;
}

.learning-card a {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
}

.learning-card a span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 150ms ease;
}

.learning-card a:hover span {
  transform: translateX(3px);
}

.profile-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
  margin-top: 17px;
}

.profile-page .profile-panel {
  min-height: 100%;
  border: 3px solid #39205f;
  border-radius: 19px;
  padding: clamp(20px, 3vw, 29px);
  box-shadow: 6px 7px 0 rgba(52, 27, 95, 0.15);
}

.profile-panel-plain {
  background: rgba(255, 255, 255, 0.9);
}

.profile-panel-accent {
  background:
    radial-gradient(circle at 90% 12%, rgba(246, 193, 68, 0.4), transparent 22%),
    linear-gradient(135deg, #6241a7, #e03f8c);
}

.profile-page .profile-panel h2 {
  color: #3b236a;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.07;
}

.profile-page .profile-panel > p:not(.profile-kicker) {
  margin: 12px 0 0;
  color: #615568;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}

.profile-panel-accent .profile-kicker {
  color: #ffe66d !important;
}

.profile-panel-accent h2,
.profile-panel-accent > p:not(.profile-kicker) {
  color: #fff !important;
}

.profile-inline-action {
  width: fit-content;
  margin-top: 20px;
  border: 2px solid #fff;
  background: #fff;
  color: #4a2774;
}

.profile-inline-action span {
  margin-left: 7px;
}

.profile-manager-heading {
  max-width: 770px;
}

.manager-overview-card {
  min-height: 175px;
  border: 2px solid #594185;
  border-radius: 17px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.72);
  color: #40216e;
}

.manager-overview-card > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f0e7ff;
  color: #ed3687;
  font-size: 1.1rem;
  font-weight: 1000;
}

.manager-overview-card h3 {
  margin: 16px 0 0;
  font-size: 1.1rem;
}

.manager-overview-card p {
  margin: 8px 0 0;
  color: #665b6d;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.profile-manager-content {
  margin-top: 17px;
}

.manager-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 22px;
  border: 2px dashed #9b79d1;
  border-radius: 16px;
  padding: 22px;
  background: #faf6ff;
  text-align: center;
}

.manager-empty-state > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ed3687;
  color: #fff;
}

.manager-empty-state strong {
  color: #42236f;
  font-size: 0.95rem;
}

.manager-empty-state small {
  color: #665b6d;
  font-size: 0.8rem;
  font-weight: 650;
}

.profile-guideline-list {
  display: grid;
  gap: 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.profile-guideline-list li {
  position: relative;
  padding-left: 24px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.45;
}

.profile-guideline-list li::before {
  position: absolute;
  left: 0;
  color: #ffe66d;
  content: "✦";
}

@media (max-width: 1180px) {
  .profile-page .profile-shell {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 22px;
  }

  .profile-page .profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(186px, 0.62fr);
  }

  .profile-state-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 13px;
    align-items: center;
  }

  .profile-state-card span {
    margin: 0;
  }

  .profile-state-card small {
    grid-column: 2;
    margin-top: 5px;
  }
}

@media (max-width: 850px) {
  .profile-page .profile-shell {
    width: min(100% - 28px, 720px);
    grid-template-columns: 1fr;
    padding: 14px 0 46px;
  }

  .profile-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    border-radius: 19px;
    padding: 15px;
  }

  .profile-brand {
    min-width: 0;
  }

  .profile-brand img {
    width: 69px;
    height: 40px;
    padding: 7px 9px;
  }

  .profile-persona {
    grid-template-columns: 45px minmax(0, 1fr);
    padding: 7px;
  }

  .profile-page .profile-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .profile-persona strong {
    font-size: 0.82rem;
  }

  .profile-persona span {
    font-size: 0.66rem;
  }

  .profile-page .profile-tabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-sidebar-hall {
    grid-column: 1 / -1;
  }

  .profile-sidebar-note {
    grid-column: 1 / -1;
  }

  .profile-page .profile-topbar {
    margin-top: 4px;
  }

  .profile-page .profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(155px, 0.58fr);
    border-radius: 21px;
  }

  .profile-learning-grid,
  .manager-overview-grid {
    grid-template-columns: 1fr;
  }

  .learning-card {
    min-height: 205px;
  }

  .learning-card h3 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-shell {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-brand,
  .profile-persona,
  .profile-page .profile-tabs,
  .profile-sidebar-hall,
  .profile-sidebar-note {
    grid-column: auto;
  }

  .profile-persona {
    grid-template-columns: 47px minmax(0, 1fr);
  }

  .profile-page .profile-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.7) transparent;
  }

  .profile-page .profile-tab {
    width: auto;
    min-width: 154px;
    flex: 0 0 min(76%, 228px);
  }

  .profile-page .profile-topbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .profile-page .profile-topbar a {
    font-size: 0.78rem;
  }

  .profile-page .profile-demo-note {
    font-size: 0.64rem;
  }

  .profile-page .profile-hero {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 24px 20px 20px;
  }

  .profile-page .profile-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.25rem, 12vw, 3.05rem);
  }

  .profile-page .profile-hero-copy > p:last-of-type {
    font-size: 0.92rem;
  }

  .profile-hero-art {
    width: min(100%, 225px);
    order: 3;
  }

  .profile-state-card {
    grid-column: auto;
    grid-template-columns: auto minmax(0, 1fr);
    order: 2;
    padding: 14px;
  }

  .profile-state-card strong {
    grid-row: span 2;
  }

  .profile-state-card span {
    align-self: end;
    font-size: 0.68rem;
  }

  .profile-state-card small {
    grid-column: 2;
    margin: 2px 0 0;
    font-size: 0.68rem;
  }

  .profile-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-primary-action,
  .profile-secondary-action {
    width: 100%;
  }

  .profile-page .profile-view {
    margin-top: 36px;
  }

  .profile-section-heading h2 {
    font-size: clamp(1.75rem, 9.5vw, 2.4rem);
  }

  .profile-section-heading > p:last-child {
    font-size: 0.91rem;
  }

  .profile-information-grid {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-panel {
    padding: 20px;
  }

  .manager-overview-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page .profile-tab,
  .learning-card a span {
    transition: none;
  }
}

/* DIVAR 360 v83: jornada pessoal com trilha visual */
.profile-page {
  --profile-sidebar-width: clamp(238px, 19vw, 286px);
  min-height: 100dvh;
}

.profile-page .profile-shell {
  width: 100%;
  min-height: 100dvh;
  display: block;
  margin: 0;
  padding: 0;
}

.profile-page .profile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--profile-sidebar-width);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  border: 0;
  border-right: 3px solid #34205f;
  border-radius: 0 27px 27px 0;
  padding: 30px 21px;
  box-shadow: 9px 0 0 rgba(52, 27, 95, 0.15);
}

.profile-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-sidebar-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ffe66d;
  color: #a42e72;
  font-size: 0.92rem;
  font-weight: 1000;
  box-shadow: 2px 3px 0 rgba(44, 17, 78, 0.22);
}

.profile-sidebar-title {
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-page .profile-persona {
  position: relative;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto minmax(62px, auto);
  align-items: stretch;
  column-gap: 11px;
  row-gap: 8px;
  min-height: 112px;
  margin-top: 2px;
  overflow: hidden;
  padding: 14px 13px;
  background: linear-gradient(136deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.profile-page .profile-persona::after {
  position: absolute;
  right: -11px;
  bottom: -37px;
  z-index: 0;
  content: "✦";
  color: rgba(255, 255, 255, 0.15);
  font-size: 6.5rem;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(12deg);
}

.profile-persona-avatar-wrap {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  align-self: center;
  grid-column: 1;
  grid-row: 2;
}

.profile-page .profile-persona .profile-avatar {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 3px 4px 0 rgba(42, 15, 82, 0.22);
  object-fit: contain;
}

.profile-persona-avatar-wrap > span {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 0;
  background: #ffe66d;
  color: #a42e72;
  font-size: 0.65rem;
  font-weight: 1000;
  line-height: 1;
}

.profile-persona-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  grid-column: 2;
  grid-row: 2;
}

.profile-persona-label,
.profile-sidebar-nav-label {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-persona-label {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  line-height: 1;
}

.profile-page .profile-persona strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.1;
}

.profile-page .profile-persona .profile-persona-role {
  width: fit-content;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(52, 32, 95, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
}

.profile-sidebar-nav-label {
  margin: 2px 0 -10px;
}

.profile-sidebar-spacer {
  flex: 1 1 auto;
  min-height: 8px;
}

.profile-sidebar-ornament {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  color: rgba(255, 230, 109, 0.9);
  opacity: 0.9;
}

.profile-sidebar-ornament span {
  display: block;
  font-size: 0.8rem;
  line-height: 1;
}

.profile-sidebar-ornament span:nth-child(1) {
  transform: translateY(5px) rotate(-10deg);
}

.profile-sidebar-ornament span:nth-child(2) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.profile-sidebar-ornament span:nth-child(3) {
  transform: translateY(5px) rotate(10deg);
}

.profile-page .profile-sidebar-hall {
  min-height: 47px;
  justify-content: space-between;
  border-color: #fff;
  padding: 11px 13px;
  background: #ed3687;
  box-shadow: 4px 5px 0 rgba(42, 15, 82, 0.28);
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
}

.profile-page .profile-sidebar-hall > span {
  width: auto;
  height: auto;
  display: inline;
  background: transparent;
  color: inherit;
}

.profile-page .profile-sidebar-hall > i {
  font-size: 1.12rem;
  font-style: normal;
  line-height: 1;
}

.profile-page .profile-main {
  min-width: 0;
  min-height: 100dvh;
  margin-left: var(--profile-sidebar-width);
  padding: 26px clamp(28px, 3vw, 52px) 68px clamp(22px, 2.4vw, 42px);
}

.profile-page .profile-topbar {
  display: flex;
  min-height: 30px;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.profile-page .profile-topbar a {
  border-radius: 10px;
  padding: 7px 10px;
  color: #4b2577;
  font-weight: 850;
  text-decoration: none;
}

.profile-page .profile-topbar a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.profile-page .profile-hero {
  min-height: 340px;
  grid-template-columns: minmax(0, 1.16fr) minmax(230px, 0.84fr);
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
  padding: clamp(28px, 4.3vw, 54px);
}

.profile-page .profile-hero h1 {
  max-width: 14ch;
  margin: 0;
}

.profile-page .profile-hero-copy > p:last-of-type {
  max-width: 57ch;
}

.profile-page .profile-hero-actions {
  margin-top: 20px;
}

.profile-page .profile-hero-art {
  width: min(100%, 365px);
  max-height: 240px;
}

.profile-hero-availability {
  position: relative;
  width: min(100%, 385px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border: 2px solid rgba(66, 33, 112, 0.18);
  border-radius: 16px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-hero-availability::after {
  position: absolute;
  top: -13px;
  right: -13px;
  content: "✦";
  color: #ffe66d;
  font-size: 1.32rem;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(52, 27, 95, 0.16);
  transform: rotate(12deg);
}

.profile-hero-availability strong {
  color: #ed3687;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  font-weight: 1000;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.profile-hero-availability span,
.profile-hero-availability small {
  display: block;
}

.profile-hero-availability span {
  color: #43246f;
  font-size: 0.76rem;
  font-weight: 1000;
  line-height: 1.15;
  text-transform: uppercase;
}

.profile-hero-availability small {
  margin-top: 4px;
  color: #685b70;
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.3;
}

.profile-page .profile-view {
  margin-top: clamp(34px, 5vw, 60px);
}

.profile-page .profile-section-heading {
  max-width: 780px;
}

.profile-trail-note {
  width: fit-content;
  max-width: min(100%, 620px);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 0;
  border: 2px solid rgba(66, 33, 112, 0.16);
  border-radius: 16px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 4px 5px 0 rgba(52, 27, 95, 0.09);
  color: #5d4d68;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.42;
}

.profile-trail-note > span {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ed3687;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 1000;
}

.learning-trail {
  position: relative;
  max-width: 1070px;
  min-height: 1124px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(184px, 1fr)) minmax(164px, auto) minmax(210px, auto);
  gap: 28px 0;
  margin: 132px auto 0;
  padding: 0 46px;
  isolation: isolate;
}

.learning-trail::before {
  display: none;
}

.learning-trail-river {
  position: absolute;
  z-index: 0;
  inset: 0 24px;
  width: calc(100% - 48px);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.learning-trail-river-bank,
.learning-trail-river-water,
.learning-trail-river-glint {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learning-trail-river-bank {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 78;
}

.learning-trail-river-water {
  stroke: url(#profileLearningRiverGradient);
  stroke-width: 38;
  opacity: 0.9;
}

.learning-trail-river-glint {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 4;
  stroke-dasharray: 2 31;
}

.learning-trail-town {
  position: absolute;
  z-index: 1;
  top: -125px;
  left: calc(50% - 150px);
  width: 300px;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(52, 27, 95, 0.12)) drop-shadow(4px 6px 0 rgba(52, 27, 95, 0.1));
  pointer-events: none;
}

.learning-trail-guide {
  position: relative;
  z-index: 1;
  grid-column: 1 / 5;
  grid-row: 1;
  width: min(100%, 172px);
  align-self: end;
  justify-self: center;
  pointer-events: none;
}

.learning-trail-guide img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(5px 7px 0 rgba(52, 27, 95, 0.15));
}

.learning-trail-guide > span {
  position: absolute;
  top: 4%;
  right: 5%;
  color: #ed3687;
  font-size: 1.35rem;
  font-weight: 1000;
  text-shadow: 0 2px 0 #fff;
}

.learning-trail-step {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: block;
  align-self: center;
}

.learning-trail-step-fact,
.learning-trail-step-match {
  grid-column: 7 / -1;
}

.learning-trail-step-fact {
  grid-row: 1;
}

.learning-trail-step-dica {
  grid-column: 1 / 7;
  grid-row: 2;
}

.learning-trail-step-match {
  grid-row: 3;
}

.learning-trail-future {
  position: relative;
  z-index: 1;
  grid-column: 4 / 10;
  grid-row: 4;
  min-height: 164px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  align-self: center;
}

.learning-trail-future::before,
.learning-trail-future::after {
  position: relative;
  z-index: 0;
  content: "✦";
  color: #ed3687;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.learning-trail-future::before {
  position: absolute;
  top: 18px;
  right: calc(50% - 175px);
  color: #ffe66d;
  transform: rotate(12deg);
}

.learning-trail-future::after {
  position: absolute;
  bottom: 16px;
  left: calc(50% - 171px);
  color: #4b7ee0;
  font-size: 0.9rem;
  transform: rotate(-18deg);
}

.learning-trail-future-art,
.learning-trail-future-caption {
  position: relative;
  z-index: 1;
}

.learning-trail-future-art {
  width: min(100%, 316px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 8px rgba(52, 27, 95, 0.16));
}

.learning-trail-future-caption {
  display: block;
  color: #5d4774;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-align: center;
}

.learning-trail-horizon {
  position: relative;
  z-index: 1;
  grid-column: 4 / 10;
  grid-row: 5;
  min-height: 224px;
  display: grid;
  place-items: center;
  align-self: center;
  isolation: isolate;
}

.learning-trail-horizon::before,
.learning-trail-horizon::after {
  position: absolute;
  z-index: 0;
  content: "✦";
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.learning-trail-horizon::before {
  top: 27px;
  left: calc(50% - 162px);
  color: #ed3687;
  font-size: 1.15rem;
  transform: rotate(-13deg);
}

.learning-trail-horizon::after {
  right: calc(50% - 164px);
  bottom: 37px;
  color: #5d90e7;
  font-size: 0.92rem;
  transform: rotate(18deg);
}

.learning-trail-end-marker {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  border: 3px solid #382066;
  border-radius: 22px 22px 46px 46px;
  padding: 30px 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 42%),
    linear-gradient(145deg, #fff8ea, #ead8bc);
  box-shadow: 7px 9px 0 rgba(52, 27, 95, 0.16), inset 0 0 0 5px rgba(255, 255, 255, 0.48);
  color: #382066;
  text-align: center;
}

.learning-trail-end-marker::before {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 78%;
  height: 18px;
  border: 3px solid #382066;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #ed3687 0 30px, #fff 30px 48px);
  box-shadow: 0 5px 0 rgba(52, 27, 95, 0.1);
  content: "";
  transform: translateX(-50%);
}

.learning-trail-end-flag {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: -9px;
  border: 3px solid #382066;
  border-radius: 50%;
  background: #ffd852;
  box-shadow: 3px 4px 0 rgba(52, 27, 95, 0.15);
  color: #382066;
  font-weight: 1000;
}

.learning-trail-end-marker small {
  margin-top: 12px;
  color: #b62e72;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.learning-trail-end-marker strong {
  margin-top: 5px;
  font-size: clamp(1.25rem, 2.6vw, 1.72rem);
  letter-spacing: -0.025em;
}

.learning-trail-end-marker p {
  max-width: 28ch;
  margin: 8px 0 0;
  color: #6f5a76;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.learning-trail-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 94px;
  height: 94px;
  display: grid;
  place-content: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f8f1ff 100%);
  box-shadow: 0 0 0 3px #382066, 5px 7px 0 rgba(52, 27, 95, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.72);
  color: #382066;
  text-align: center;
  transform: translateY(-50%);
}

.learning-trail-marker::after {
  position: absolute;
  top: -17px;
  right: -13px;
  content: "✦";
  color: #ffe66d;
  font-size: 1.08rem;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 0 #fff;
  transform: rotate(13deg);
}

.learning-trail-step-fact .learning-trail-marker,
.learning-trail-step-match .learning-trail-marker {
  left: -50px;
}

.learning-trail-step-dica .learning-trail-marker {
  right: -50px;
}

.learning-trail-step-dica .learning-trail-marker::after {
  top: auto;
  right: -15px;
  bottom: -15px;
  color: #ed3687;
  transform: rotate(-13deg);
}

.learning-trail-step-match .learning-trail-marker::after {
  top: -16px;
  color: #5d90e7;
}

.learning-trail-marker span,
.learning-trail-marker small {
  display: block;
}

.learning-trail-marker span {
  color: #ed3687;
  font-size: 1.3rem;
  font-weight: 1000;
  line-height: 1;
}

.learning-trail-marker small {
  margin-top: 4px;
  color: #4a2774;
  font-size: 0.55rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.learning-trail-step-dica .learning-trail-marker span {
  color: #2b7ed9;
}

.learning-trail-step-match .learning-trail-marker span {
  color: #9b4bc6;
}

.learning-trail-content.learning-card {
  min-height: 178px;
  padding: 23px 24px 22px 70px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.learning-trail-step-dica .learning-trail-content.learning-card {
  padding: 23px 70px 22px 24px;
}

.learning-trail-content.learning-card h3 {
  max-width: 15ch;
  margin: 8px 0 0;
}

.learning-trail-content.learning-card > p:not(.learning-card-number) {
  max-width: 31ch;
}

.learning-trail-content.learning-card > .learning-card-status {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.59rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.learning-trail-content.learning-card a {
  margin-top: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .learning-trail-content.learning-card:hover {
    box-shadow: 9px 11px 0 rgba(52, 27, 95, 0.2);
    transform: translateY(-5px) rotate(-0.45deg);
  }

  .learning-trail-step-dica .learning-trail-content.learning-card:hover {
    transform: translateY(-5px) rotate(0.45deg);
  }
}

@media (max-width: 1180px) {
  .profile-page {
    --profile-sidebar-width: 232px;
  }

  .profile-page .profile-main {
    padding-right: clamp(22px, 3vw, 42px);
    padding-left: clamp(22px, 3vw, 42px);
  }

  .profile-page .profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.68fr);
    gap: 25px;
  }

  .profile-page .profile-hero-art {
    width: min(100%, 295px);
  }
}

@media (max-width: 850px) {
  .profile-page .profile-shell {
    width: min(100% - 28px, 720px);
    display: grid;
    margin: 0 auto;
    padding: 14px 0 46px;
  }

  .profile-page .profile-sidebar {
    position: static;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    border: 3px solid #34205f;
    border-radius: 19px;
    padding: 15px;
    box-shadow: 6px 7px 0 rgba(52, 27, 95, 0.15);
  }

  .profile-sidebar-heading {
    grid-column: 1 / -1;
    justify-content: space-between;
    align-self: start;
  }

  .profile-page .profile-persona {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
  }

  .profile-sidebar-nav-label,
  .profile-sidebar-spacer {
    display: none;
  }

  .profile-page .profile-tabs,
  .profile-sidebar-ornament,
  .profile-page .profile-sidebar-hall {
    grid-column: 1 / -1;
  }

  .profile-sidebar-ornament {
    display: none;
  }

  .profile-page .profile-main {
    min-height: 0;
    margin-left: 0;
    padding: 0 0 20px;
  }

  .profile-page .profile-topbar {
    margin-top: 5px;
  }

  .profile-page .profile-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(165px, 0.58fr);
    gap: 19px;
  }

  .learning-trail {
    max-width: 740px;
    min-height: 1008px;
    grid-template-rows: repeat(3, minmax(162px, 1fr)) minmax(148px, auto) minmax(184px, auto);
    margin-top: 114px;
    padding: 0 30px;
  }

  .learning-trail-guide {
    width: min(100%, 142px);
  }

  .learning-trail-town {
    top: -111px;
    left: calc(50% - 120px);
    width: 240px;
    transform: none;
  }

  .learning-trail-future {
    grid-column: 3 / 11;
    min-height: 148px;
  }

  .learning-trail-horizon {
    grid-column: 3 / 11;
    min-height: 210px;
  }

  .learning-trail-end-marker {
    width: min(100%, 310px);
  }

  .learning-trail-marker {
    width: 82px;
    height: 82px;
  }

  .learning-trail-step-fact .learning-trail-marker,
  .learning-trail-step-match .learning-trail-marker {
    left: -43px;
  }

  .learning-trail-step-dica .learning-trail-marker {
    right: -43px;
  }

  .learning-trail-content.learning-card {
    min-height: 164px;
    padding: 20px 19px 20px 58px;
  }

  .learning-trail-step-dica .learning-trail-content.learning-card {
    padding: 20px 58px 20px 19px;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-shell {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .profile-page .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-sidebar > .profile-sidebar-heading,
  .profile-page .profile-sidebar > .profile-persona,
  .profile-page .profile-sidebar > .profile-tabs,
  .profile-page .profile-sidebar > .profile-sidebar-ornament,
  .profile-page .profile-sidebar > .profile-sidebar-hall {
    grid-column: 1;
    width: auto;
  }

  .profile-sidebar-heading,
  .profile-page .profile-persona {
    min-width: 0;
  }

  .profile-page .profile-persona {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto minmax(54px, auto);
    min-height: 92px;
    gap: 11px;
    padding: 10px;
  }

  .profile-page .profile-persona .profile-avatar,
  .profile-persona-avatar-wrap {
    width: 54px;
    height: 54px;
  }

  .profile-page .profile-tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .profile-page .profile-tab {
    width: 100%;
    min-width: 0;
  }

  .profile-page .profile-hero {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }

  .profile-page .profile-hero h1 {
    max-width: 12ch;
  }

  .profile-page .profile-hero-art {
    width: min(100%, 250px);
    order: 2;
  }

  .profile-hero-availability {
    width: 100%;
  }

  .learning-trail {
    min-height: 0;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: 72px repeat(3, auto) minmax(142px, auto) minmax(190px, auto);
    gap: 14px 18px;
    margin-top: 112px;
    padding: 0;
  }

  .learning-trail::before {
    position: absolute;
    z-index: 0;
    top: 55px;
    bottom: 42px;
    left: 28px;
    width: 13px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, #ed3687 0%, #4a7de0 49%, #9b4bc6 100%);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.62);
    transform: none;
  }

  .learning-trail-river {
    display: none;
  }

  .learning-trail-town {
    top: -104px;
    left: 50%;
    width: 208px;
    transform: translateX(-50%);
  }

  .learning-trail-guide {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    align-self: end;
    justify-self: center;
  }

  .learning-trail-guide > span {
    top: -6px;
    right: -7px;
    font-size: 0.82rem;
  }

  .learning-trail-step {
    min-height: 0;
    display: grid;
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
  }

  .learning-trail-future {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 142px;
    justify-items: start;
    padding-left: 68px;
  }

  .learning-trail-horizon {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 186px;
    justify-items: start;
    padding-left: 68px;
  }

  .learning-trail-end-marker {
    width: min(100%, 252px);
    justify-self: start;
    padding: 28px 18px 22px;
  }

  .learning-trail-horizon::before {
    top: 16px;
    left: 81px;
  }

  .learning-trail-horizon::after {
    right: 18px;
    bottom: 30px;
  }

  .learning-trail-future-art {
    width: min(100%, 248px);
  }

  .learning-trail-future-caption {
    width: min(100%, 248px);
    font-size: 0.59rem;
  }

  .learning-trail-future::before {
    top: 7px;
    right: 19px;
  }

  .learning-trail-future::after {
    bottom: 9px;
    left: 58px;
  }

  .learning-trail-marker {
    position: relative;
    z-index: 1;
    top: auto;
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
    align-self: start;
    border-width: 3px;
    transform: none;
  }

  .learning-trail-marker::after {
    top: -8px;
    right: -7px;
    font-size: 0.74rem;
  }

  .learning-trail-step-dica .learning-trail-marker::after {
    top: auto;
    right: -8px;
    bottom: -8px;
  }

  .learning-trail-step-match .learning-trail-marker::after {
    top: -8px;
  }

  .learning-trail-step-fact .learning-trail-marker,
  .learning-trail-step-match .learning-trail-marker {
    left: auto;
  }

  .learning-trail-step-dica .learning-trail-marker {
    right: auto;
  }

  .learning-trail-marker span {
    font-size: 1rem;
  }

  .learning-trail-marker small {
    font-size: 0.46rem;
  }

  .learning-trail-content.learning-card,
  .learning-trail-step-dica .learning-trail-content.learning-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 183px;
    padding: 19px;
  }

  .learning-trail-content.learning-card h3 {
    font-size: 1.34rem;
  }

  .learning-trail-content.learning-card > p:not(.learning-card-number) {
    font-size: 0.82rem;
  }

  .profile-trail-note {
    width: 100%;
    max-width: none;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 0.79rem;
  }
}

/* Jogos em paisagem: celular deitado e laptop comum usam a mesma área útil.
   Sem esta faixa intermediária, 1024x768 caía no layout amplo e o tabuleiro
   do Deu Match ultrapassava a viewport. */
@media (min-width: 600px) and (max-width: 1200px) and (max-height: 820px) and (orientation: landscape) {
  html:has(body.play-page),
  body.play-page,
  body.play-page .play-main,
  body.play-page .fake-game-stage {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .play-page.is-game-playing .game-live-panel,
  .disc-live-panel,
  .match-live-panel {
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 68px 0 8px;
    overflow: hidden;
  }

  /* É Fato ou Fake: pergunta central, escolhas estáveis na base. */
  .play-page.is-game-playing .game-live-panel {
    display: grid;
    grid-template-rows: 60px minmax(0, 1fr);
    gap: 7px;
  }

  .play-page.is-game-playing .game-question-banner {
    width: min(680px, 100%);
    min-height: 60px;
    justify-self: center;
    margin: 0;
    padding: 5px 10px;
  }

  .play-page.is-game-playing .game-question-banner span {
    font-size: 0.68rem;
  }

  .play-page.is-game-playing .game-question-banner strong {
    font-size: clamp(0.95rem, 2.15vw, 1.15rem);
    line-height: 1.13;
  }

  .play-page.is-game-playing .game-arena {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .play-page.is-game-playing .game-arena .game-question-card {
    width: min(58vw, 480px);
    min-height: 112px;
    gap: 5px;
    border-width: 3px;
    padding: 12px 18px 20px;
  }

  .play-page.is-game-playing .game-question-card small {
    font-size: 0.62rem;
  }

  .play-page.is-game-playing .game-question-card h2 {
    font-size: clamp(0.93rem, 2.25vw, 1.2rem);
    line-height: 1.18;
  }

  .play-page.is-game-playing .game-answer-buttons {
    position: absolute;
    right: 14%;
    bottom: 7px;
    left: 14%;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    gap: 10px;
  }

  .play-page.is-game-playing .game-answer-buttons .answer-button,
  .play-page.is-game-playing .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-answer-buttons .answer-button:focus-visible,
  .play-page.is-game-playing .game-answer-buttons .answer-button:active {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-height: 54px;
    height: 54px;
    border-width: 3px;
    padding: 5px;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    transform: none;
  }

  .play-page.is-game-playing .game-answer-buttons .answer-button:hover,
  .play-page.is-game-playing .game-answer-buttons .answer-button:focus-visible {
    transform: translateY(-3px);
  }

  .play-page.is-game-playing .timer-pill {
    bottom: -20px;
    min-width: 78px;
    gap: 4px;
    border-width: 2px;
    padding: 4px 8px;
    font-size: 0.82rem;
  }

  .play-page.is-game-playing .question-mascot {
    max-width: 74px;
  }

  .play-page.is-game-playing .mascot-a {
    left: 11%;
    bottom: 66px;
  }

  .play-page.is-game-playing .mascot-b {
    right: 10%;
    top: 16px;
    max-width: 64px;
  }

  /* DICA: remove a faixa lateral reservada e centraliza a decisão. */
  .disc-live-panel {
    display: grid;
    grid-template-rows: 60px minmax(0, 1fr) 5px;
    gap: 7px;
  }

  .disc-live-panel .game-question-banner,
  #discLivePanel .disc-question-banner {
    position: static;
    width: min(680px, 100%);
    min-height: 60px;
    justify-self: center;
    margin: 0;
    padding: 5px 10px;
  }

  .disc-live-panel .disc-arena {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .disc-live-panel .disc-arena-art {
    display: none !important;
  }

  .disc-live-panel .disc-question-card {
    width: 100%;
    max-width: 640px;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 13px;
    overflow: hidden;
  }

  .disc-live-panel .disc-question-card small {
    margin-bottom: 4px;
    font-size: 0.6rem;
  }

  .disc-live-panel .disc-question-card h2 {
    margin: 0 0 8px;
    font-size: clamp(0.92rem, 2.1vw, 1.13rem);
    line-height: 1.12;
  }

  .disc-live-panel .disc-scale-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 0;
    gap: 6px;
  }

  .disc-live-panel .disc-scale-buttons button {
    min-height: 0;
    padding: 5px 8px;
  }

  .disc-live-panel .disc-scale-buttons button span {
    font-size: clamp(0.62rem, 1.56vw, 0.75rem);
    line-height: 1.1;
  }

  .disc-live-panel .game-progress-track {
    height: 5px;
    margin: 0;
  }

  /* Deu Match: duas linhas de sete cartas ocupam somente a área restante. */
  .match-live-panel {
    display: grid;
    grid-template-rows: 60px 42px minmax(0, 1fr);
    gap: 6px;
  }

  .play-page.is-game-focused.is-match-playing .fake-game-stage,
  .play-page.is-game-focused.is-match-result .fake-game-stage {
    overflow: hidden;
  }

  .match-live-panel .match-question-banner {
    position: static;
    width: min(680px, 100%);
    min-height: 60px;
    height: auto;
    justify-self: center;
    margin: 0;
    padding: 5px 10px;
  }

  .match-live-panel .match-question-banner span {
    font-size: 0.68rem;
  }

  .match-live-panel .match-question-banner strong {
    display: block;
    font-size: clamp(0.88rem, 2vw, 1.08rem);
    line-height: 1.12;
  }

  .match-live-panel .memory-status-grid {
    position: static;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-status-grid > span {
    min-height: 42px;
    padding: 4px 7px;
    border-width: 2px;
    font-size: 0.7rem;
    box-shadow: 0 3px 0 rgba(31, 13, 55, 0.32);
  }

  .match-live-panel #matchCountdownStat strong {
    font-size: 1.45rem;
  }

  .match-live-panel .memory-card-grid {
    position: static;
    width: 100%;
    min-height: 0;
    height: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-card,
  .match-live-panel .memory-card:nth-child(13),
  .match-live-panel .memory-card:nth-child(14) {
    grid-column: auto;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 8px;
  }

  .match-live-panel .memory-card-face {
    border-width: 2px;
    box-shadow: 0 3px 0 rgba(40, 20, 63, 0.92), 0 6px 10px rgba(41, 16, 70, 0.18);
  }

  .match-live-panel .memory-criteria-content {
    padding: 5px;
  }

  .match-live-panel .memory-criteria-content strong {
    font-size: clamp(0.54rem, 1.26vw, 0.7rem);
    line-height: 1.08;
  }

  .match-live-panel .memory-card-back small,
  .match-live-panel .memory-pair-marker {
    width: 20px;
    height: 20px;
    font-size: 0.58rem;
  }
}

/* DIVAR 360 v93: quatro trilhas, leitura obrigatória e marco de certificado */
.learning-trail-step-unity {
  grid-column: 1 / 7;
  grid-row: 4;
}

.learning-trail-step-unity .learning-trail-marker {
  right: -50px;
}

.learning-trail-step-unity .learning-trail-marker span {
  color: #158c83;
}

.learning-trail-step-unity .learning-trail-marker::after {
  top: auto;
  right: -14px;
  bottom: -14px;
  color: #f4ba31;
}

.learning-trail-step-unity .learning-trail-content.learning-card {
  padding: 23px 70px 22px 24px;
}

.learning-card-unity {
  background: linear-gradient(145deg, #178f88, #285e92 62%, #42306d);
}

.learning-card-book-action {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.learning-card-book-action:hover,
.learning-card-book-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.learning-card-book-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 2px;
}

.learning-card-book-action span {
  margin-left: 6px;
}

.learning-trail-certificate {
  position: relative;
  z-index: 1;
  grid-column: 3 / 11;
  grid-row: 5;
  min-height: 210px;
  display: grid;
  justify-items: center;
  align-content: center;
  border: 2px dashed rgba(67, 40, 105, 0.32);
  border-radius: 22px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 7px 9px 0 rgba(52, 27, 95, 0.08);
  color: #45315f;
  text-align: center;
}

.learning-certificate-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee9f4;
  color: #7d6b91;
  font-size: 1rem;
}

.learning-trail-certificate > p {
  margin: 12px 0 0;
  color: #aa3373;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.learning-trail-certificate h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.learning-trail-certificate > span:not(.learning-certificate-icon),
.learning-trail-certificate small {
  max-width: 520px;
  margin-top: 7px;
  color: #74677f;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.45;
}

.learning-trail-certificate button {
  margin-top: 14px;
  border: 1px solid #d3cbdc;
  border-radius: 10px;
  padding: 10px 14px;
  background: #eeeaf2;
  color: #8b8194;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: not-allowed;
}

.storybook-dialog {
  width: min(960px, calc(100% - 30px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 30px));
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 80px rgba(31, 18, 54, 0.36);
  color: #33264c;
}

.storybook-dialog::backdrop {
  background: rgba(27, 18, 43, 0.72);
  backdrop-filter: blur(7px);
}

body.is-storybook-open {
  overflow: hidden;
}

.storybook-shell {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  padding: 20px;
  background: linear-gradient(145deg, #46316e, #6d3f88);
}

.storybook-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px 16px;
  color: #fff;
}

.storybook-header p {
  margin: 0;
  color: #f8d866;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storybook-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.storybook-header button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

.storybook-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.storybook-progress i {
  width: 25%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4bf3d, #fff0a7);
  transition: width 180ms ease;
}

.storybook-book {
  position: relative;
  min-height: 500px;
  margin-top: 18px;
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(71, 50, 91, 0.12) 50%, transparent 50.3%),
    #f8f2e8;
  box-shadow: inset 0 0 0 1px rgba(75, 50, 91, 0.12), inset 0 0 35px rgba(99, 68, 38, 0.08);
}

.storybook-page {
  min-height: 452px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid #e4d9c8;
  border-radius: 13px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(rgba(112, 86, 128, 0.055) 1px, transparent 1px) 0 98% / 100% 31px,
    #fffdf8;
  box-shadow: 0 9px 20px rgba(70, 45, 35, 0.09);
  text-align: center;
}

.storybook-page[hidden] {
  display: none;
}

.storybook-page-number {
  color: #8d7b91;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storybook-kicker {
  margin: 20px 0 0;
  color: #b62e72;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storybook-page h3 {
  max-width: 17ch;
  margin: 7px 0 0;
  color: #382751;
  font-size: clamp(1.85rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.storybook-page > p:last-of-type {
  max-width: 590px;
  margin: 16px 0 0;
  color: #756878;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.55;
}

.storybook-blank-page::after {
  width: min(100%, 520px);
  height: 86px;
  margin-top: 28px;
  content: "";
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(91, 68, 105, 0.12) 22px 23px);
}

.storybook-unity-status {
  margin-top: 22px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf6f2;
  color: #287156;
  font-size: 0.67rem;
  font-weight: 820;
}

.storybook-final-page a {
  margin-top: 14px;
  border-radius: 10px;
  padding: 11px 16px;
  background: #3f2b68;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 860;
  text-decoration: none;
}

.storybook-final-page a[aria-disabled="true"] {
  background: #ddd6e2;
  color: #8d8393;
  cursor: not-allowed;
}

.storybook-final-page small {
  max-width: 540px;
  margin-top: 10px;
  color: #8a7f8d;
  font-size: 0.68rem;
}

.storybook-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 17px 4px 2px;
}

.storybook-controls button {
  width: fit-content;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 820;
  cursor: pointer;
}

.storybook-controls button:last-child {
  justify-self: end;
}

.storybook-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.storybook-controls > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 740;
}

@media (max-width: 850px) {
  .learning-trail-step-unity .learning-trail-marker {
    right: -43px;
  }

  .learning-trail-step-unity .learning-trail-content.learning-card {
    padding: 20px 58px 20px 19px;
  }
}

@media (max-width: 560px) {
  .learning-trail {
    grid-template-rows: 72px repeat(4, auto) minmax(220px, auto);
  }

  .learning-trail-step-unity .learning-trail-marker {
    right: auto;
  }

  .learning-trail-step-unity .learning-trail-content.learning-card {
    grid-column: 2;
    min-height: 183px;
    padding: 19px;
  }

  .learning-trail-certificate {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
    margin-left: 68px;
    padding: 20px;
  }

  .storybook-dialog {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 17px;
  }

  .storybook-shell {
    padding: 13px;
  }

  .storybook-book {
    min-height: 420px;
    padding: 12px;
    background: #f8f2e8;
  }

  .storybook-page {
    min-height: 396px;
    padding: 24px 18px;
  }

  .storybook-controls {
    grid-template-columns: 1fr 1fr;
  }

  .storybook-controls > span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

/* DIVAR 360 v94: livro aberto, leitura imersiva e virada de página */
.storybook-dialog {
  width: min(1100px, calc(100% - 48px));
  max-height: calc(100dvh - 34px);
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.storybook-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(91, 61, 126, 0.22), transparent 46%),
    rgba(24, 15, 38, 0.82);
  backdrop-filter: blur(11px) saturate(0.78);
}

.storybook-shell {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 14px;
  background: transparent;
}

.storybook-close {
  position: absolute;
  z-index: 8;
  top: -2px;
  right: -2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #482c68;
  box-shadow: 0 8px 20px rgba(31, 18, 46, 0.3);
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.storybook-close:hover {
  transform: translateY(-2px) rotate(4deg);
  background: #b62e72;
}

.storybook-close:focus-visible,
.storybook-controls button:focus-visible,
.storybook-final-page a:focus-visible {
  outline: 3px solid #ffd852;
  outline-offset: 3px;
}

.storybook-book {
  position: relative;
  isolation: isolate;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  margin: 0;
  border-radius: 22px;
  padding: 13px;
  background: transparent;
  box-shadow: 0 34px 80px rgba(12, 7, 20, 0.46);
  perspective: 1900px;
  animation: storyBookOpen 520ms cubic-bezier(0.2, 0.74, 0.2, 1) both;
}

.storybook-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  border: 1px solid rgba(255, 226, 130, 0.56);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 8% 92%, rgba(18, 9, 29, 0.25)),
    linear-gradient(145deg, #3b235b, #6a397f 55%, #3a235d);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.055),
    inset 0 0 0 7px rgba(25, 11, 43, 0.16),
    0 15px 0 -8px #27163d;
}

.storybook-book::before {
  position: absolute;
  z-index: 4;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 34px;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(48, 31, 52, 0.16) 44%, rgba(255, 255, 255, 0.46) 52%, transparent);
  filter: blur(1px);
}

.storybook-left-page,
.storybook-right-page {
  position: relative;
  z-index: 1;
  min-width: 0;
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(244, 194, 79, 0.14), transparent 27%),
    repeating-linear-gradient(0deg, rgba(112, 86, 69, 0.023) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 42px rgba(105, 75, 47, 0.11);
}

.storybook-left-page {
  min-height: 604px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px 3px 3px 15px;
  padding: 42px clamp(30px, 4.5vw, 62px) 30px;
  text-align: center;
}

.storybook-left-page::before,
.storybook-left-page::after {
  position: absolute;
  border: 1px solid rgba(182, 46, 114, 0.12);
  border-radius: 50%;
  content: "";
}

.storybook-left-page::before {
  width: 280px;
  height: 280px;
  top: -160px;
  left: -120px;
}

.storybook-left-page::after {
  width: 190px;
  height: 190px;
  right: -100px;
  bottom: -90px;
}

.storybook-brand {
  align-self: flex-start;
  color: #56376f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.storybook-brand i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: #ffd852;
  color: #42245f;
  font-style: normal;
}

.storybook-left-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 48px;
}

.storybook-left-copy p {
  margin: 0;
  color: #b62e72;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.storybook-left-copy h2 {
  max-width: 13ch;
  margin: 8px auto 0;
  color: #3c2857;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.storybook-left-copy > span {
  max-width: 34ch;
  display: block;
  margin: 15px auto 0;
  color: #786b78;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.55;
}

.storybook-left-page img {
  width: min(230px, 62%);
  max-height: 245px;
  margin: auto auto -4px;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(52, 37, 68, 0.18));
}

.storybook-left-page > small {
  color: #887b88;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.storybook-right-page {
  min-height: 604px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-radius: 3px 15px 15px 3px;
  padding: 34px clamp(27px, 4vw, 52px) 28px;
}

.storybook-right-page::after {
  position: absolute;
  top: 16px;
  right: -7px;
  bottom: 16px;
  width: 7px;
  border-radius: 0 4px 4px 0;
  content: "";
  background: repeating-linear-gradient(180deg, #e9decb 0 2px, #fffaf0 2px 5px);
  box-shadow: 4px 0 7px rgba(35, 22, 45, 0.16);
}

.storybook-folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8d7b91;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storybook-progress {
  height: 3px;
  margin-top: 14px;
  background: #e5d9df;
}

.storybook-progress i {
  background: linear-gradient(90deg, #b62e72, #f0ac32);
  transition: width 360ms ease;
}

.storybook-page-stage {
  position: relative;
  min-height: 448px;
  perspective: 1800px;
}

.storybook-page {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 0;
  border-radius: 0;
  padding: 34px 10px 24px;
  background: transparent;
  box-shadow: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.storybook-page::before {
  position: absolute;
  inset: 12px 0;
  z-index: -1;
  border: 1px solid rgba(91, 62, 101, 0.08);
  border-width: 1px 0;
  content: "";
  pointer-events: none;
}

.storybook-page[hidden] {
  display: none;
}

.storybook-page-number {
  color: #8f8191;
}

.storybook-kicker {
  margin-top: 17px;
}

.storybook-page h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.storybook-page > p:last-of-type {
  max-width: 44ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
}

.storybook-blank-page::after {
  width: min(100%, 390px);
  height: 76px;
  margin-top: 24px;
  background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(91, 68, 105, 0.1) 21px 22px);
}

.storybook-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(91, 62, 101, 0.11);
}

.storybook-controls button {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid #d9cdd7;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fffdf8;
  color: #4b3267;
  box-shadow: 0 4px 10px rgba(59, 38, 74, 0.07);
}

.storybook-controls button:hover:not(:disabled) {
  border-color: #b62e72;
  color: #a42163;
  transform: translateY(-1px);
}

.storybook-controls button:disabled {
  opacity: 0.34;
}

.storybook-final-page a {
  background: linear-gradient(135deg, #513071, #b62e72);
  box-shadow: 0 8px 18px rgba(91, 42, 103, 0.2);
}

.storybook-final-page a[aria-disabled="true"] {
  box-shadow: none;
}

.storybook-page.is-turning-forward-out {
  z-index: 6;
  transform-origin: left center;
  animation: storyPageForwardOut 220ms cubic-bezier(0.55, 0.05, 0.8, 0.2) forwards;
}

.storybook-page.is-turning-forward-in {
  z-index: 6;
  transform-origin: left center;
  animation: storyPageForwardIn 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.storybook-page.is-turning-backward-out {
  z-index: 6;
  transform-origin: right center;
  animation: storyPageBackwardOut 220ms cubic-bezier(0.55, 0.05, 0.8, 0.2) forwards;
}

.storybook-page.is-turning-backward-in {
  z-index: 6;
  transform-origin: right center;
  animation: storyPageBackwardIn 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.storybook-book.is-turning-forward::before,
.storybook-book.is-turning-backward::before {
  filter: blur(2px);
  opacity: 0.72;
}

@keyframes storyBookOpen {
  from {
    opacity: 0;
    transform: perspective(1600px) rotateX(7deg) scale(0.94) translateY(18px);
  }
  to {
    opacity: 1;
    transform: perspective(1600px) rotateX(0) scale(1) translateY(0);
  }
}

@keyframes storyPageForwardOut {
  from { opacity: 1; transform: rotateY(0deg); }
  to { opacity: 0.35; transform: rotateY(-86deg); }
}

@keyframes storyPageForwardIn {
  from { opacity: 0.35; transform: rotateY(86deg); }
  to { opacity: 1; transform: rotateY(0deg); }
}

@keyframes storyPageBackwardOut {
  from { opacity: 1; transform: rotateY(0deg); }
  to { opacity: 0.35; transform: rotateY(86deg); }
}

@keyframes storyPageBackwardIn {
  from { opacity: 0.35; transform: rotateY(-86deg); }
  to { opacity: 1; transform: rotateY(0deg); }
}

@media (max-height: 760px) and (min-width: 721px) {
  .storybook-book,
  .storybook-left-page,
  .storybook-right-page {
    min-height: 530px;
  }

  .storybook-page-stage {
    min-height: 374px;
  }

  .storybook-left-copy {
    margin-top: 28px;
  }

  .storybook-left-page img {
    width: 175px;
    max-height: 178px;
  }
}

@media (max-width: 720px) {
  .storybook-dialog {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #76528f transparent;
  }

  .storybook-shell {
    padding: 9px;
  }

  .storybook-close {
    position: fixed;
    top: 14px;
    right: 14px;
  }

  .storybook-book {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 9px;
    border-radius: 18px;
  }

  .storybook-book::before {
    display: none;
  }

  .storybook-cover {
    border-radius: 18px;
  }

  .storybook-left-page {
    min-height: 164px;
    display: grid;
    grid-template-columns: 1fr 92px;
    align-items: center;
    border-radius: 12px 12px 3px 3px;
    padding: 24px 25px 18px;
    text-align: left;
  }

  .storybook-brand {
    grid-column: 1 / -1;
  }

  .storybook-left-copy {
    margin-top: 18px;
  }

  .storybook-left-copy h2,
  .storybook-left-copy > span {
    margin-left: 0;
    margin-right: 0;
  }

  .storybook-left-copy h2 {
    font-size: clamp(1.8rem, 10vw, 2.65rem);
  }

  .storybook-left-copy > span {
    display: none;
  }

  .storybook-left-page img {
    width: 88px;
    margin: auto;
  }

  .storybook-left-page > small {
    display: none;
  }

  .storybook-right-page {
    min-height: 500px;
    border-radius: 3px 3px 12px 12px;
    padding: 25px 21px 22px;
  }

  .storybook-right-page::after {
    display: none;
  }

  .storybook-page-stage {
    min-height: 366px;
  }

  .storybook-page {
    min-height: 0;
    padding: 26px 4px 18px;
  }

  .storybook-page h3 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .storybook-controls {
    display: flex;
    padding-top: 14px;
  }

  .storybook-controls button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-book,
  .storybook-page,
  .storybook-progress i,
  .storybook-close,
  .storybook-controls button {
    animation: none !important;
    transition: none !important;
  }
}

/* v95 deve permanecer após os estilos legados do player e do livro. */
.storybook-left-page {
  display: block;
  padding: 0;
}

.storybook-controls button,
.storybook-final-page a {
  border: 2px solid #c18a4e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, #835337, #5f3826 58%, #3f241a);
  box-shadow:
    inset 0 0 0 2px rgba(255, 222, 159, 0.12),
    inset 0 -4px 0 rgba(41, 20, 12, 0.26),
    0 6px 12px rgba(70, 37, 21, 0.18);
  color: #fff2cf;
  text-shadow: 0 1px 0 rgba(39, 19, 11, 0.7);
}

.storybook-controls button:hover:not(:disabled),
.storybook-final-page a:hover:not([aria-disabled="true"]) {
  border-color: #e3b468;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(135deg, #966445, #6e422c 58%, #4a2a1d);
  color: #fff8df;
}

.storybook-controls button:disabled,
.storybook-final-page a[aria-disabled="true"] {
  border-color: #d4c4ad;
  background: #e6ded0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  color: #9b8f80;
  text-shadow: none;
}

.mission-chooser-card {
  width: min(980px, 100%);
}

.mission-chooser .game-mode-dock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-chooser .game-mode-card {
  min-height: 184px;
  grid-template-columns: auto 1fr;
}

/* DIVAR 360 v96: estrada respirada, certificado por evidências e livro sem controles de interface. */
@media (min-width: 561px) {
  .learning-trail-step-fact {
    transform: translateY(48px);
  }
}

.learning-certificate-milestones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.learning-certificate-milestones > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #d8cfdf;
  border-radius: 50%;
  background: #f1edf5;
  color: #8b7a98;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.learning-certificate-milestones > span.is-complete {
  border-color: #219577;
  background: #e5f6ef;
  color: #18755f;
  transform: translateY(-2px);
}

.learning-certificate-milestones svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.learning-certificate-milestones > i {
  width: clamp(20px, 4vw, 52px);
  height: 2px;
  background: repeating-linear-gradient(90deg, #cbbfd5 0 6px, transparent 6px 11px);
}

.learning-certificate-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

.learning-certificate-progress > span {
  border: 1px solid #ded4e5;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f3fa;
  color: #5e4a70;
  font-size: 0.68rem;
  font-weight: 850;
}

.learning-trail-certificate.is-locally-complete {
  border-style: solid;
  border-color: rgba(33, 149, 119, 0.52);
  background: rgba(248, 255, 252, 0.88);
}

.storybook-reading-status {
  width: calc(100% - 94px);
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 47px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storybook-reading-status .storybook-progress {
  height: 4px;
  margin: 0;
  background: rgba(255, 255, 255, 0.2);
}

.storybook-reading-status .storybook-progress i {
  background: linear-gradient(90deg, #f4c13f, #fff0a3);
  box-shadow: 0 0 10px rgba(255, 216, 82, 0.28);
}

.storybook-left-page::before,
.storybook-left-page::after {
  transition: opacity 170ms ease;
}

.storybook-left-page.has-turned-page::before,
.storybook-left-page.has-turned-page::after {
  opacity: 0;
}

.storybook-right-page {
  grid-template-rows: minmax(0, 1fr);
  padding: 24px clamp(27px, 4vw, 52px) 22px;
}

.storybook-page-stage {
  min-height: 558px;
}

.storybook-final-page {
  padding-top: 22px;
  padding-bottom: 32px;
}

.storybook-final-page h3 {
  font-size: clamp(1.8rem, 3.35vw, 2.85rem);
}

.storybook-final-page > p:last-of-type {
  margin-top: 11px;
}

.storybook-final-illustration {
  width: min(100%, 360px);
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid rgba(126, 83, 50, 0.22);
  border-radius: 58px;
  padding: 5px 13px;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 193, 63, 0.2), transparent 54%),
    linear-gradient(135deg, rgba(139, 86, 45, 0.08), rgba(255, 250, 240, 0.78));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.38);
}

.storybook-final-illustration img {
  width: 148px;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(66, 40, 83, 0.16));
}

.storybook-final-illustration span {
  color: #68452f;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.storybook-final-page .storybook-unity-status {
  margin-top: 9px;
}

.storybook-final-page a {
  margin-top: 8px;
}

.storybook-final-page small {
  margin-top: 7px;
}

.storybook-controls {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.storybook-controls .storybook-page-corner {
  position: absolute;
  bottom: 14px;
  width: 82px;
  height: 82px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #5c3926;
  text-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 160ms ease;
}

.storybook-controls .storybook-page-corner[hidden] {
  display: none;
}

.storybook-controls .storybook-page-corner::before {
  position: absolute;
  inset: 8px;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 45%),
    linear-gradient(145deg, #f9eed9, #dec29a 72%, #7d4d31 73% 100%);
  filter: drop-shadow(0 5px 4px rgba(61, 34, 20, 0.18));
  transition: transform 180ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 180ms ease;
}

.storybook-controls .storybook-page-corner-back {
  left: 14px;
}

.storybook-controls .storybook-page-corner-back::before {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transform-origin: left bottom;
}

.storybook-controls .storybook-page-corner-next {
  right: 14px;
}

.storybook-controls .storybook-page-corner-next::before {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform-origin: right bottom;
}

.storybook-controls .storybook-page-corner > span {
  position: absolute;
  z-index: 1;
  bottom: 13px;
  font: 900 1.8rem/1 Georgia, serif;
}

.storybook-controls .storybook-page-corner-back > span {
  left: 17px;
}

.storybook-controls .storybook-page-corner-next > span {
  right: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .storybook-controls .storybook-page-corner:hover:not(:disabled) {
    border: 0;
    background: transparent;
    color: #442719;
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before {
    transform: translateY(-8px) rotate(5deg) scale(1.04);
    filter: drop-shadow(4px 9px 6px rgba(61, 34, 20, 0.24));
  }

  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before {
    transform: translateY(-8px) rotate(-5deg) scale(1.04);
    filter: drop-shadow(-4px 9px 6px rgba(61, 34, 20, 0.24));
  }
}

.storybook-controls .storybook-page-corner:disabled {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #9b8f80;
  opacity: 0.16;
  text-shadow: none;
  cursor: default;
}

.storybook-controls .storybook-page-corner:focus-visible {
  border-radius: 12px;
  outline: 3px solid #ffd852;
  outline-offset: 2px;
}

@media (max-height: 760px) and (min-width: 721px) {
  .storybook-page-stage {
    min-height: 484px;
  }

  .storybook-final-illustration {
    min-height: 86px;
    grid-template-columns: 1fr 112px 1fr;
  }

  .storybook-final-illustration img {
    width: 112px;
    max-height: 78px;
  }
}

@media (max-width: 720px) {
  .storybook-reading-status {
    width: calc(100% - 48px);
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    margin: 2px 24px 9px;
    font-size: 0.56rem;
  }

  .storybook-right-page {
    padding: 18px 21px 16px;
  }

  .storybook-page-stage {
    min-height: 466px;
  }

  .storybook-final-illustration {
    min-height: 96px;
    grid-template-columns: 1fr 112px 1fr;
    padding-inline: 8px;
  }

  .storybook-final-illustration img {
    width: 112px;
    max-height: 86px;
  }

  .storybook-controls .storybook-page-corner {
    bottom: 10px;
    width: 72px;
    height: 72px;
  }

  .storybook-controls .storybook-page-corner-back {
    left: 10px;
  }

  .storybook-controls .storybook-page-corner-next {
    right: 10px;
  }
}

@media (max-width: 560px) {
  .learning-trail-step-fact {
    transform: none;
  }

  .learning-certificate-milestones > span {
    width: 38px;
    height: 38px;
  }

  .learning-certificate-milestones > i {
    width: 18px;
  }

  .learning-certificate-progress {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .storybook-reading-status > span:first-child {
    display: none;
  }

  .storybook-reading-status {
    grid-template-columns: 1fr auto;
  }

  .storybook-final-illustration span {
    display: none;
  }

  .storybook-final-illustration {
    width: 150px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* O controle nasce da própria folha: dobra curva, verso sombreado e elevação no hover. */
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  bottom: 7px;
  width: 66px;
  height: 66px;
  content: "";
  background: linear-gradient(145deg, #6f432b, #b98b5a 45%, #ead3ad 78%);
  filter: drop-shadow(0 7px 5px rgba(48, 27, 17, 0.26));
  transition: transform 190ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 190ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 1;
  inset: auto;
  bottom: 9px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(120, 86, 59, 0.2);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.96), transparent 44%),
    linear-gradient(145deg, #fffaf0, #ead8b9 76%, #c59a68);
  filter: drop-shadow(0 3px 3px rgba(61, 34, 20, 0.13));
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 9px;
  clip-path: none;
  border-radius: 100% 0 0 0;
  transform-origin: right bottom;
}

.storybook-controls .storybook-page-corner-next::after {
  right: 7px;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  left: 9px;
  clip-path: none;
  border-radius: 0 100% 0 0;
  transform-origin: left bottom;
}

.storybook-controls .storybook-page-corner-back::after {
  left: 7px;
}

.storybook-controls .storybook-page-corner > span {
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before {
    transform: translate(-7px, -9px) rotate(-7deg) scale(1.12);
    filter: drop-shadow(-5px 9px 6px rgba(61, 34, 20, 0.22));
  }

  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    transform: translate(-3px, -2px) scale(1.05);
    filter: drop-shadow(-5px 10px 7px rgba(48, 27, 17, 0.3));
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before {
    transform: translate(7px, -9px) rotate(7deg) scale(1.12);
    filter: drop-shadow(5px 9px 6px rgba(61, 34, 20, 0.22));
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    transform: translate(3px, -2px) scale(1.05);
    filter: drop-shadow(5px 10px 7px rgba(48, 27, 17, 0.3));
  }
}

/* v97 final: prevalece sobre a antiga dobra sobreposta. */
.storybook-controls .storybook-page-corner {
  bottom: 0;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.storybook-controls .storybook-page-corner-back { left: 0; }
.storybook-controls .storybook-page-corner-next { right: 0; }

.storybook-controls .storybook-page-corner::before,
.storybook-controls .storybook-page-corner::after {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 0;
  content: "";
  transition: transform 190ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 190ms ease;
}

.storybook-controls .storybook-page-corner::before {
  z-index: 0;
  background: #efe5d4;
  filter: drop-shadow(0 5px 5px rgba(53, 35, 46, 0.24));
}

.storybook-controls .storybook-page-corner::after {
  z-index: 1;
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(244, 194, 79, 0.13), transparent 27%),
    repeating-linear-gradient(0deg, rgba(112, 86, 69, 0.023) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 25px rgba(105, 75, 47, 0.1);
  filter: drop-shadow(0 2px 2px rgba(53, 35, 46, 0.16));
}

.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 23% 86%, 44% 69%, 63% 48%, 80% 24%);
  transform-origin: right bottom;
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 77% 86%, 56% 69%, 37% 48%, 20% 24%);
  transform-origin: left bottom;
}

.storybook-controls .storybook-page-corner:focus-visible {
  outline: 0;
}

.storybook-controls .storybook-page-corner:focus-visible::before {
  filter: drop-shadow(0 0 2px #ed3687) drop-shadow(0 5px 5px rgba(53, 35, 46, 0.24));
}

@media (hover: hover) and (pointer: fine) {
  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::before {
    transform: translate(-5px, -5px) rotate(-2deg);
  }

  .storybook-controls .storybook-page-corner-next:hover:not(:disabled)::after {
    transform: translate(-12px, -10px) rotate(-7deg) scale(1.05);
    filter: drop-shadow(-7px 9px 7px rgba(53, 35, 46, 0.28));
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::before {
    transform: translate(5px, -5px) rotate(2deg);
  }

  .storybook-controls .storybook-page-corner-back:hover:not(:disabled)::after {
    transform: translate(12px, -10px) rotate(7deg) scale(1.05);
    filter: drop-shadow(7px 9px 7px rgba(53, 35, 46, 0.28));
  }
}

@media (max-width: 720px) {
  .storybook-controls .storybook-page-corner {
    bottom: 0;
    width: 82px;
    height: 82px;
  }

  .storybook-controls .storybook-page-corner::before,
  .storybook-controls .storybook-page-corner::after {
    width: 68px;
    height: 68px;
  }
}

/* Alinha a dobra ao papel, não à capa externa do livro. */
.storybook-controls .storybook-page-corner {
  bottom: 12px;
}

.storybook-controls .storybook-page-corner-back { left: 12px; }
.storybook-controls .storybook-page-corner-next { right: 12px; }

.storybook-controls .storybook-page-corner-next::after {
  transform: translate(-9px, -7px) rotate(-4deg);
  filter: drop-shadow(-4px -4px 4px rgba(72, 51, 58, 0.22));
}

.storybook-controls .storybook-page-corner-back::after {
  transform: translate(9px, -7px) rotate(4deg);
  filter: drop-shadow(4px -4px 4px rgba(72, 51, 58, 0.22));
}

@media (max-width: 720px) {
  .storybook-controls .storybook-page-corner { bottom: 9px; }
  .storybook-controls .storybook-page-corner-back { left: 9px; }
  .storybook-controls .storybook-page-corner-next { right: 9px; }
}

/* Curva contínua: evita a aparência serrilhada de uma dobra poligonal. */
.storybook-controls .storybook-page-corner-next::before,
.storybook-controls .storybook-page-corner-next::after {
  clip-path: path("M 78 0 L 78 78 L 0 78 C 22 66 44 46 60 24 C 68 13 73 6 78 0 Z");
}

.storybook-controls .storybook-page-corner-back::before,
.storybook-controls .storybook-page-corner-back::after {
  clip-path: path("M 0 0 L 0 78 L 78 78 C 56 66 34 46 18 24 C 10 13 5 6 0 0 Z");
}

@media (max-width: 720px) {
  .storybook-controls .storybook-page-corner-next::before,
  .storybook-controls .storybook-page-corner-next::after {
    clip-path: path("M 68 0 L 68 68 L 0 68 C 19 58 38 40 52 21 C 59 11 64 5 68 0 Z");
  }

  .storybook-controls .storybook-page-corner-back::before,
  .storybook-controls .storybook-page-corner-back::after {
    clip-path: path("M 0 0 L 0 68 L 68 68 C 49 58 30 40 16 21 C 9 11 4 5 0 0 Z");
  }
}

/* DIVAR 360 v98: restaura o encerramento original e refina a leitura como livro. */
.learning-trail {
  min-height: 1388px;
  grid-template-rows: repeat(4, minmax(184px, 1fr)) minmax(164px, auto) minmax(210px, auto);
}

.learning-trail-future {
  grid-row: 5;
}

.learning-trail-horizon {
  grid-row: 6;
}

.storybook-previous-page::before {
  content: none;
}

.storybook-previous-page {
  position: relative;
}

.storybook-page-number,
.storybook-previous-page .storybook-page-number {
  position: absolute;
  top: auto;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  color: #8f8191;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.storybook-page-number {
  right: 112px;
}

.storybook-previous-page .storybook-page-number {
  right: auto;
  left: 112px;
}

.storybook-page.is-turning-forward-out,
.storybook-page.is-turning-forward-in,
.storybook-page.is-turning-backward-out,
.storybook-page.is-turning-backward-in {
  animation-duration: 260ms;
}

.storybook-book.is-turning-forward .storybook-page-corner-next::before,
.storybook-book.is-turning-forward .storybook-page-corner-next::after {
  animation: storyCornerForward 260ms cubic-bezier(0.36, 0.02, 0.22, 1) forwards;
}

.storybook-book.is-turning-backward .storybook-page-corner-back::before,
.storybook-book.is-turning-backward .storybook-page-corner-back::after {
  animation: storyCornerBackward 260ms cubic-bezier(0.36, 0.02, 0.22, 1) forwards;
}

@keyframes storyCornerForward {
  0% { opacity: 1; transform: translate(-9px, -7px) rotate(-4deg) scale(1); }
  48% { opacity: 1; transform: translate(-29px, -25px) rotate(-18deg) scale(1.12, 0.98); }
  100% { opacity: 0.2; transform: translate(-58px, -16px) rotate(-52deg) scale(0.68, 0.9); }
}

@keyframes storyCornerBackward {
  0% { opacity: 1; transform: translate(9px, -7px) rotate(4deg) scale(1); }
  48% { opacity: 1; transform: translate(29px, -25px) rotate(18deg) scale(1.12, 0.98); }
  100% { opacity: 0.2; transform: translate(58px, -16px) rotate(52deg) scale(0.68, 0.9); }
}

@keyframes storyPageForwardOut {
  0% { opacity: 1; transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
  32% { opacity: 1; transform: rotateY(-24deg) skewY(-0.7deg); filter: drop-shadow(-16px 8px 12px rgba(45, 27, 54, 0.18)); }
  100% { opacity: 0.32; transform: rotateY(-88deg) skewY(-1.2deg); filter: drop-shadow(-28px 10px 16px rgba(45, 27, 54, 0.24)); }
}

@keyframes storyPageForwardIn {
  0% { opacity: 0.32; transform: rotateY(88deg) skewY(1.2deg); filter: drop-shadow(28px 10px 16px rgba(45, 27, 54, 0.24)); }
  68% { opacity: 1; transform: rotateY(18deg) skewY(0.5deg); filter: drop-shadow(12px 7px 10px rgba(45, 27, 54, 0.16)); }
  100% { opacity: 1; transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
}

@keyframes storyPageBackwardOut {
  0% { opacity: 1; transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
  32% { opacity: 1; transform: rotateY(24deg) skewY(0.7deg); filter: drop-shadow(16px 8px 12px rgba(45, 27, 54, 0.18)); }
  100% { opacity: 0.32; transform: rotateY(88deg) skewY(1.2deg); filter: drop-shadow(28px 10px 16px rgba(45, 27, 54, 0.24)); }
}

@keyframes storyPageBackwardIn {
  0% { opacity: 0.32; transform: rotateY(-88deg) skewY(-1.2deg); filter: drop-shadow(-28px 10px 16px rgba(45, 27, 54, 0.24)); }
  68% { opacity: 1; transform: rotateY(-18deg) skewY(-0.5deg); filter: drop-shadow(-12px 7px 10px rgba(45, 27, 54, 0.16)); }
  100% { opacity: 1; transform: rotateY(0deg) skewY(0); filter: drop-shadow(0 0 0 transparent); }
}

@media (max-width: 850px) {
  .learning-trail {
    min-height: 1240px;
    grid-template-rows: repeat(4, minmax(162px, 1fr)) minmax(148px, auto) minmax(184px, auto);
  }
}

@media (max-width: 560px) {
  .learning-trail {
    min-height: 0;
    grid-template-rows: 72px repeat(4, auto) minmax(142px, auto) minmax(190px, auto);
  }

  .storybook-page-number,
  .storybook-previous-page .storybook-page-number {
    right: 82px;
    left: auto;
    bottom: 13px;
  }
}

.mission-chooser .game-mode-card.is-journey-locked {
  border-color: #bcaec8;
  background:
    linear-gradient(135deg, rgba(96, 63, 123, 0.055), transparent 55%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 0 rgba(86, 59, 111, 0.25);
}

.mission-chooser .game-mode-card.is-journey-locked > em {
  background: #6c477f;
}

.mission-chooser .game-mode-card.is-upcoming {
  border-color: #2d8d87;
  box-shadow: 0 10px 0 rgba(30, 103, 98, 0.34);
}

.mission-chooser .game-mode-card.is-upcoming > span,
.mission-chooser .game-mode-card.is-upcoming > em {
  background: #277d78;
}

@media (max-width: 720px) {
  .mission-chooser .game-mode-dock {
    grid-template-columns: 1fr;
  }

  .mission-chooser .game-mode-card {
    min-height: 176px;
  }
}

/* DIVAR 360 v103: prevalece sobre as camadas históricas do perfil. */
.profile-page .profile-topbar {
  justify-content: space-between;
}

@media (max-width: 560px) {
  .profile-page .profile-topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* DIVAR 360 v105 final: prevalece sobre todas as camadas legadas acima. */
.learning-card[data-story-card] { cursor: pointer; }
.learning-card[data-story-card]:focus-visible { outline: 4px solid #ffd852; outline-offset: 5px; }

.profile-trail-note { position: relative; padding-left: 52px; }
.profile-trail-note > span:first-child {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
}

.profile-persona { position: relative; }
.profile-persona-logout {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(54, 31, 83, 0.34);
  color: #fff;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-page .profile-topbar {
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
}

.nav-profile {
  min-height: 44px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 1fr;
  column-gap: 8px;
  padding: 4px 9px 4px 5px;
}
.nav-profile img { grid-row: 1; width: 34px; height: 34px; }
.nav-profile span { font-size: 0.76rem; }
.nav-profile small { display: none; }

.dica-result-breakdown { width: min(100%, 520px); display: grid; gap: 8px; margin-top: 18px; }
.dica-result-breakdown[hidden] { display: none; }
.dica-result-breakdown > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
}
.dica-result-breakdown b,
.dica-result-breakdown strong { color: #382066; font-size: 0.72rem; }
.dica-result-breakdown i { height: 9px; overflow: hidden; border-radius: 999px; background: #e6dceb; }
.dica-result-breakdown em {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed3687, #7255b7);
  transition: width 420ms ease;
}

.certificate-module-card > p { gap: 8px; flex-wrap: wrap; }
.certificate-module-card > p span {
  border: 1px solid #d7cbe0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3eef7;
  color: #6b567b;
  font-size: 0.65rem;
  font-weight: 850;
}
.certificate-module-card.is-complete > p span { border-color: #b8dfd2; background: #e9f7f2; color: #24735d; }

.certificate-document {
  min-height: 650px;
  grid-template-rows: auto 1fr auto auto;
  border: 12px solid #f8ead1;
  border-radius: 4px;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 42%, rgba(237, 54, 135, 0.045), transparent 34%),
    repeating-linear-gradient(0deg, rgba(111, 82, 61, 0.025) 0 1px, transparent 1px 6px),
    #fffaf0;
}
.certificate-document-frame {
  inset: 16px;
  border: 1px solid #9d673c;
  box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 7px rgba(157, 103, 60, 0.62);
}
.certificate-document h1 { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.8rem); }
.certificate-document section > strong { padding-right: 36px; padding-left: 36px; }
.certificate-document footer { align-items: end; gap: 24px; }
.certificate-verify {
  display: grid !important;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-left: auto;
}
.certificate-verify > canvas,
.certificate-qr {
  width: 116px;
  height: 116px;
  border: 5px solid #fffaf0;
  outline: 1px solid rgba(126, 83, 50, 0.35);
}
.certificate-qr { display: grid; place-items: center; box-sizing: content-box; background: #fffaf0; }
.certificate-qr canvas,
.certificate-qr img { display: block; width: 116px; height: 116px; border: 0; outline: 0; }
.certificate-verify span { max-width: 285px; display: grid; gap: 5px; }
.certificate-verify code { max-width: 285px; overflow-wrap: anywhere; color: #806f80; font-size: 0.53rem; line-height: 1.35; }
.certificate-disclaimer { max-width: 72ch; justify-self: center; }

@media (max-width: 900px) {
  .profile-page .profile-shell { width: min(100% - 20px, 820px); }
  .profile-page .profile-sidebar {
    position: static;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.4fr) minmax(120px, auto);
    align-items: center;
    gap: 10px;
    border: 3px solid #34205f;
    border-radius: 18px;
    padding: 11px;
  }
  .profile-sidebar-heading,
  .profile-sidebar-nav-label,
  .profile-sidebar-spacer,
  .profile-sidebar-ornament { display: none; }
  .profile-page .profile-persona { grid-column: 1; min-height: 76px; margin: 0; padding: 8px; }
  .profile-page .profile-tabs {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .profile-page .profile-tab { min-width: 0; min-height: 50px; padding: 8px; font-size: 0.7rem; }
  .profile-page .profile-tab > span { display: none; }
  .profile-page .profile-sidebar-hall {
    grid-column: 3;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .profile-page .profile-main { min-height: 0; margin-left: 0; }
}

@media (max-width: 560px) {
  .profile-page .profile-shell { width: min(100% - 16px, 520px); padding-top: 8px; }
  .profile-page .profile-sidebar { grid-template-columns: 1fr; gap: 9px; }
  .profile-page .profile-persona,
  .profile-page .profile-tabs,
  .profile-page .profile-sidebar-hall { grid-column: 1; }
  .profile-page .profile-persona { min-height: 80px; grid-template-columns: 52px minmax(0, 1fr); }
  .profile-page .profile-tabs { grid-template-columns: 1fr; overflow: visible; }
  .profile-page .profile-tab > span { display: inline-grid; }
  .profile-page .profile-topbar { min-height: 42px; align-items: center; flex-direction: row; }
  .profile-page .learning-trail {
    min-height: 0;
    grid-template-rows: 72px repeat(4, auto) minmax(142px, auto) minmax(190px, auto);
  }
  .profile-page .learning-trail-step-fact { grid-row: 2; }
  .profile-page .learning-trail-step-dica { grid-row: 3; }
  .profile-page .learning-trail-step-match { grid-row: 4; }
  .profile-page .learning-trail-step-unity { grid-row: 5; }
  .profile-page .learning-trail-future { grid-row: 6; }
  .profile-page .learning-trail-horizon { grid-row: 7; }
  .certificate-document { min-height: 0; border-width: 7px; padding: 30px 23px; }
  .certificate-document footer,
  .certificate-verify { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .certificate-verify { margin-left: 0; }
}

@media (max-width: 950px) and (max-height: 500px) {
  .mission-chooser-card {
    width: min(96vw, 820px);
    max-height: calc(100dvh - 22px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #bd75a5 transparent;
  }
  .mission-chooser .game-mode-dock {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .mission-chooser .game-mode-card { min-height: 154px; scroll-snap-align: start; }
  .disc-screen .game-panel,
  .disc-question-card { max-height: calc(100dvh - 72px); overflow: auto; }
}

@media print {
  .certificate-page { background: #fff; }
  .certificate-document-shell { width: 100%; margin: 0; }
  .certificate-document-actions { display: none !important; }
  .certificate-document {
    width: 277mm;
    min-height: 190mm;
    margin: 0 auto;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* DIVAR 360 v114: no celular, o livro vira uma página única e ocupa a viewport. */
@media (max-width: 720px) {
  .storybook-dialog[open] {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(155deg, #26173d, #4f326e);
  }

  .storybook-dialog .storybook-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 10px;
  }

  .storybook-dialog .storybook-reading-status {
    width: auto;
    min-height: 42px;
    margin: 0 54px 8px 6px;
  }

  .storybook-dialog .storybook-book {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    padding: 7px;
  }

  .storybook-dialog .storybook-left-page {
    display: none !important;
  }

  .storybook-dialog .storybook-right-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    padding: 16px 14px 12px;
  }

  .storybook-dialog .storybook-page-stage {
    height: 100%;
    min-height: 0;
  }

  .storybook-dialog .storybook-page {
    align-content: center;
    overflow-y: auto;
    padding: 34px 12px 88px;
    scrollbar-width: thin;
    scrollbar-color: #b62e72 transparent;
  }

  .storybook-dialog .storybook-page h3 {
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
  }

  .storybook-dialog .storybook-page > p:last-of-type {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .storybook-dialog .storybook-close {
    top: 8px;
    right: 8px;
  }

  .storybook-dialog .storybook-bookmark {
    top: 0;
    right: 8px;
  }

  .storybook-dialog .storybook-controls {
    inset: auto 18px 18px;
    height: 48px;
    pointer-events: none;
  }
}

/* DIVAR 360 v115: ações de navegação e sessão do perfil ficam separadas. */
.profile-page .profile-persona-logout {
  display: none;
}

.profile-page .profile-sidebar-logout {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(41, 24, 67, 0.48);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.profile-page .profile-sidebar-logout:hover,
.profile-page .profile-sidebar-logout:focus-visible {
  border-color: #ffd852;
  background: rgba(41, 24, 67, 0.76);
  transform: translateY(-1px);
  outline: none;
}

.profile-page .profile-sidebar-logout > i {
  font-size: 1rem;
  font-style: normal;
}

.profile-page .profile-topbar > a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid #d9cbe5;
  border-radius: 999px;
  padding: 8px 15px;
  background: #fff;
  color: #382066;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 4px 0 rgba(56, 32, 102, 0.12);
}

.profile-page .profile-topbar > a:hover,
.profile-page .profile-topbar > a:focus-visible {
  border-color: #ed3687;
  color: #bd1767;
  outline: none;
}

@media (max-width: 900px) {
  .profile-page .profile-sidebar-logout {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-sidebar-logout {
    grid-column: 1;
  }
}

.certificate-document-actions {
  flex-wrap: wrap;
}

.certificate-document-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: saturate(0.45);
}

.certificate-document-actions [data-certificate-action-status] {
  flex-basis: 100%;
  min-height: 18px;
  color: #6e5b78;
  font-size: 0.72rem;
  text-align: right;
}

.profile-page .profile-persona-avatar-wrap {
  position: relative;
}

.profile-page .profile-avatar-edit {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ed3687;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #7b174d;
}

.profile-avatar-dialog {
  width: min(100% - 28px, 640px);
  max-height: min(88dvh, 720px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
}

.profile-avatar-dialog::backdrop {
  background: rgba(31, 15, 48, 0.74);
  backdrop-filter: blur(7px);
}

.profile-avatar-card {
  display: grid;
  gap: 20px;
  border: 3px solid #34205f;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 34px);
  background: #fffafc;
  color: #34205f;
  box-shadow: 0 10px 0 rgba(30, 15, 52, 0.36);
}

.profile-avatar-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-avatar-card header span,
.profile-avatar-card header h2,
.profile-avatar-card > p {
  margin: 0;
}

.profile-avatar-card header span {
  color: #ed3687;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.profile-avatar-card header h2 {
  margin-top: 6px;
  font-size: clamp(1.55rem, 5vw, 2.45rem);
  line-height: 1.05;
}

.profile-avatar-card header > button {
  width: 42px;
  height: 42px;
  border: 2px solid #ed3687;
  border-radius: 12px;
  background: #fff;
  color: #ed3687;
  font-size: 1.4rem;
  font-weight: 900;
}

.profile-avatar-card > p {
  color: #6e5b78;
  line-height: 1.5;
}

.profile-avatar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-avatar-options button {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 2px solid #d9cbe5;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  color: #34205f;
  font-weight: 850;
  cursor: pointer;
}

.profile-avatar-options button:hover,
.profile-avatar-options button:focus-visible,
.profile-avatar-options button.is-selected {
  border-color: #ed3687;
  background: #fff0f7;
  outline: none;
}

.profile-avatar-options img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.profile-photo-pending {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px dashed #cbbbd8;
  border-radius: 16px;
  padding: 14px;
  background: #f5f0f7;
  color: #6e5b78;
}

.profile-photo-pending > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e7deec;
  font-size: 1.25rem;
}

.profile-photo-pending div {
  display: grid;
}

.profile-photo-pending small {
  margin-top: 3px;
}

.profile-photo-pending > b {
  border-radius: 999px;
  padding: 6px 9px;
  background: #e7deec;
  font-size: 0.64rem;
}

.profile-avatar-feedback {
  min-height: 18px;
  color: #24735d;
  font-weight: 750;
}

@media (max-width: 520px) {
  .profile-avatar-options {
    grid-template-columns: 1fr;
  }

  .profile-avatar-options button {
    grid-template-columns: 68px 1fr;
    align-items: center;
    justify-items: start;
  }

  .profile-avatar-options img {
    width: 64px;
    height: 64px;
  }

  .profile-photo-pending {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-photo-pending > b {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* DIVAR 360 v122: Deu Match usa toda a tela horizontal, sem rolagem. */
@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
  .play-page.is-game-focused.is-match-playing #jogo.fake-game-stage {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden !important;
  }

  .play-page.is-game-focused.is-match-playing .game-hud-row {
    top: max(6px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    width: 156px;
  }

  .play-page.is-game-focused.is-match-playing .game-score-card {
    min-height: 54px;
    padding: 7px 12px;
  }

  .match-live-panel {
    position: relative;
    display: block;
    width: min(820px, calc(100vw - 28px));
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
  }

  .match-live-panel .match-question-banner {
    position: absolute;
    top: max(7px, env(safe-area-inset-top));
    right: 154px;
    left: 172px;
    width: auto;
    min-height: 24px;
    height: 24px;
    justify-content: center;
    margin: 0;
    padding: 2px 8px;
    overflow: hidden;
  }

  .match-live-panel .match-question-banner span {
    overflow: hidden;
    font-size: clamp(0.54rem, 1.35vw, 0.66rem);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-live-panel .match-question-banner strong {
    display: none;
  }

  .match-live-panel .memory-status-grid {
    position: absolute;
    top: calc(max(7px, env(safe-area-inset-top)) + 29px);
    right: 154px;
    left: 172px;
    width: auto;
    height: 25px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .match-live-panel .memory-status-grid > span,
  .match-live-panel #matchCountdownStat {
    display: flex;
    grid-column: auto;
    min-height: 25px;
    padding: 2px 4px;
    font-size: clamp(0.46rem, 1.1vw, 0.56rem);
    line-height: 1;
  }

  .match-live-panel .memory-status-grid > span strong,
  .match-live-panel #matchCountdownStat strong {
    font-size: clamp(0.68rem, 1.55vw, 0.8rem);
    line-height: 1;
  }

  .match-live-panel .memory-card-grid {
    position: absolute;
    top: 68px;
    right: 0;
    bottom: 8px;
    left: 0;
    width: auto;
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .match-live-panel .memory-card,
  .match-live-panel .memory-card:nth-child(13),
  .match-live-panel .memory-card:nth-child(14) {
    grid-column: auto;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 8px;
  }

  .match-live-panel .memory-criteria-content {
    padding: 28px 5px 5px;
  }

  .match-live-panel .memory-criteria-content strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.64rem, 1.45vw, 0.74rem);
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
  }

  .match-live-panel .memory-pair-marker {
    top: 4px;
    right: 4px;
    width: 23px;
    height: 23px;
    font-size: 0.68rem;
  }

  .match-live-panel .memory-pair-marker-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .match-live-panel .memory-card-back small {
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }
}

/* DIVAR 360 v123: sobreposições finais contra regras legadas do arquivo. */
@media (max-width: 760px) {
  .hero-scroll-cue-hand {
    animation: divar-scroll-hand-gesture 1.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  .hero-scroll-cue-hand-motion { animation: none; }
  .mobile-story-support { display: block; max-width: 31ch; margin: 14px auto 0; color: rgba(255,255,255,.86); font-size: .9rem; font-weight: 700; line-height: 1.42; }
  .mobile-story-steps { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
  .mobile-story-steps span { border: 1px solid rgba(255,255,255,.48); border-radius: 999px; padding: 6px 8px; background: rgba(72,31,115,.18); }
  .mobile-entry-copy { display: block; margin: 0; color: #fff; font-size: .92rem; font-weight: 750; line-height: 1.42; text-align: center; }
}

@media (max-width: 760px) and (min-height: 721px) and (prefers-reduced-motion: no-preference) {
  .scroll-stack-card-story.is-story-compact { grid-template-rows: auto auto; align-content: center; gap: 22px; padding: 92px 16px 38px; }
  .scroll-stack-card-story.is-story-compact .section-copy { align-self: end; }
  .scroll-stack-card-story.is-story-compact .world-card { width: min(100%, 360px); max-height: min(35svh, 310px); justify-self: center; }
  .scroll-stack-card-story.is-story-compact .world-card img { max-height: min(35svh, 310px); }
  .game-entry-scroll.scroll-stack-card-entry { display: grid; align-content: center; padding: 86px 16px 44px; }
  .game-entry-scroll .game-entry-scene { display: grid; gap: 18px; align-content: center; }
  .game-entry-scroll .game-entry-scene img { width: 100%; }
}

@media (max-width: 760px) and (min-height: 721px) and (prefers-reduced-motion: no-preference) {
  .game-entry-scroll .game-entry-scene {
    min-height: min(58svh, 500px);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: space-between;
  }

  .game-entry-scroll .game-entry-scene img {
    align-self: end;
  }
}

@media (max-width: 560px) {
  .profile-page .profile-sidebar { position: relative; gap: 0; overflow: visible; }
  .profile-page .profile-persona { min-height: 68px; grid-template-columns: 48px minmax(0,1fr) 42px; gap: 9px; padding: 8px; }
  .profile-mobile-menu-button { width: 42px; height: 42px; display: grid; align-content: center; justify-items: center; gap: 4px; border: 2px solid rgba(255,255,255,.78); border-radius: 12px; padding: 0; background: rgba(52,27,95,.5); cursor: pointer; }
  .profile-mobile-menu-button span { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform 160ms ease, opacity 160ms ease; }
  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(2) { opacity: 0; }
  .profile-sidebar.is-mobile-menu-open .profile-mobile-menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .profile-page .profile-sidebar > .profile-tabs, .profile-page .profile-sidebar > .admin-sidebar-navigation, .profile-page .profile-sidebar > .profile-sidebar-hall, .profile-page .profile-sidebar > .profile-sidebar-logout { display: none; }
  .profile-sidebar.is-mobile-menu-open > .profile-tabs:not([hidden]), .profile-sidebar.is-mobile-menu-open > .admin-sidebar-navigation:not([hidden]) { display: grid; grid-column: 1; width: 100%; margin-top: 10px; }
  .profile-sidebar.is-mobile-menu-open > .profile-sidebar-hall, .profile-sidebar.is-mobile-menu-open > .profile-sidebar-logout { display: flex; grid-column: 1; width: 100%; margin-top: 10px; }
}

@media (min-width: 640px) and (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .mission-chooser { overflow: hidden; padding: 16px; }
  .mission-chooser-card { width: min(calc(100vw - 32px),820px); max-height: calc(100dvh - 32px); overflow: hidden; gap: 6px; padding: 14px 16px; }
  .mission-chooser-card h1 { font-size: clamp(1.25rem,2.7vw,1.7rem); }
  .mission-chooser-card > span { font-size: .68rem; line-height: 1.2; }
  .mission-chooser .game-mode-dock { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; overflow: visible; scroll-snap-type: none; }
  .mission-chooser .game-mode-card { min-width: 0; min-height: 126px; padding: 8px; scroll-snap-align: none; }
  .mission-chooser .game-mode-card > strong { font-size: .94rem; }
  .mission-chooser .game-mode-card > small { font-size: .62rem; line-height: 1.16; }
  .mission-chooser .game-mode-card > em { min-height: 26px; padding: 5px 7px; font-size: .58rem; }
}

@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
  .play-page.is-game-focused.is-match-playing .match-live-panel .match-question-banner { min-height: 24px; height: 24px; padding: 2px 8px; }
  .play-page.is-game-focused.is-match-playing .match-live-panel .memory-status-grid { top: calc(max(7px, env(safe-area-inset-top)) + 29px); }
}

@media (prefers-reduced-motion: reduce) { .hero-scroll-cue-hand { animation: none; } }

/* Menu do perfil sem dependência de script: o controle nativo permanece estável em mobile. */
.profile-mobile-menu-toggle { display: none; }

@media (max-width: 560px) {
  .profile-page .profile-sidebar { position: relative; }
  .profile-page .profile-persona { grid-template-columns: 48px minmax(0, 1fr); padding-right: 58px; }
  .profile-mobile-menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .profile-mobile-menu-button { position: absolute; z-index: 1; top: 18px; right: 16px; cursor: pointer; }
  .profile-mobile-menu-toggle:checked + .profile-mobile-menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .profile-mobile-menu-toggle:checked + .profile-mobile-menu-button span:nth-child(2) { opacity: 0; }
  .profile-mobile-menu-toggle:checked + .profile-mobile-menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .profile-mobile-menu-toggle:checked ~ .profile-tabs:not([hidden]), .profile-mobile-menu-toggle:checked ~ .admin-sidebar-navigation:not([hidden]) { display: grid; grid-column: 1; width: 100%; margin-top: 10px; }
  .profile-mobile-menu-toggle:checked ~ .profile-sidebar-hall, .profile-mobile-menu-toggle:checked ~ .profile-sidebar-logout { display: flex; grid-column: 1; width: 100%; margin-top: 10px; }
}

/* DIVAR 360 v126: fluxo explícito de leitura, capa isolada e certificado local honesto. */
.learning-card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.learning-card-actions .learning-card-book-action {
  margin-top: 0;
}

.learning-card-game-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.learning-card-game-action:hover,
.learning-card-game-action:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.learning-card-game-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.storybook-book.is-cover-only {
  grid-template-columns: minmax(0, 1fr) !important;
}

.storybook-book.is-cover-only .storybook-left-page {
  grid-column: 1 / -1;
  width: min(100%, 560px);
  justify-self: center;
}

.storybook-book.is-cover-only .storybook-right-page {
  display: none;
}

.storybook-book.is-cover-spread .storybook-left-page {
  display: none;
}

.storybook-book.is-cover-spread .storybook-right-page {
  grid-column: 1 / -1;
}

.certificate-document-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.certificate-document-state {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}

.certificate-document footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 28px;
}

.certificate-verification-note {
  display: flex !important;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  margin-left: auto;
  text-align: left;
}

.certificate-verification-note > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px dashed #c18a4e;
  border-radius: 50%;
  color: #9d673c;
  font-size: 1.8rem;
}

.certificate-verification-note div { display: grid; gap: 3px; }
.certificate-verification-note small { color: #806f80; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.certificate-verification-note strong { color: #382751; font-size: 0.95rem; }
.certificate-verification-note p { margin: 0; color: #806f80; font-size: 0.69rem; line-height: 1.4; }

@media (max-width: 720px) {
  .learning-card-actions { gap: 9px; }
  .certificate-document-actions { grid-template-columns: 1fr; justify-items: stretch; }
  .certificate-document-state { order: 3; text-align: left; }
  .certificate-document footer { grid-template-columns: 1fr; gap: 18px; }
  .certificate-verification-note { margin-left: 0; }
}

@media print {
  .certificate-document-state { color: #51405e; }
}
