:root {
    --ink: #111;
    --paper: #fff;
    --yellow: #F7C415;
    --muted: #555;
    --page: clamp(18px, 4vw, 56px);
    --font: "Trebuchet MS", ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; letter-spacing: 0; }
html { background: var(--paper); color-scheme: light; }
body { min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ba8700; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--yellow); font-weight: 700; }
.skip-link:focus { top: 12px; }
.page-header { width: min(1500px, 100%); min-height: 84px; padding: 20px var(--page); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 20; }
.brand-link { font-size: 14px; font-weight: 900; border-bottom: 3px solid var(--yellow); padding: 8px 0; }
.page-header-minimal { justify-content: flex-end; }
.site-menu { position: relative; }
.site-menu > summary { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.menu-lines { width: 30px; display: grid; gap: 6px; }
.menu-lines i { height: 3px; border-radius: 2px; background: var(--ink); }
.site-menu[open] .menu-lines i:first-child { transform: translateY(9px) rotate(45deg); }
.site-menu[open] .menu-lines i:nth-child(2) { opacity: 0; }
.site-menu[open] .menu-lines i:last-child { transform: translateY(-9px) rotate(-45deg); }
.menu-panel { position: absolute; top: 58px; right: 0; width: min(300px, calc(100vw - 36px)); padding: 12px 20px; background: var(--paper); border: 3px solid var(--ink); border-radius: 5px 8px 4px 7px; box-shadow: 7px 8px 0 var(--yellow); }
.menu-panel a { display: block; padding: 10px 4px; font-size: 17px; }
.menu-panel a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.map-page { width: 100%; margin: auto; padding: 0 var(--page) 36px; overflow: hidden; }
.intro { position: relative; text-align: center; }
/* Crop the supplied tagline only; keep the responsive tagline as real text below. */
.intro-art { width: min(620px, 100%); aspect-ratio: 2571 / 1020; overflow: hidden; margin: -8px auto 0; }
.intro-art img { width: 100%; height: auto; }
.intro-art picture,
.dvm-camera-hop-inner picture { display: block; width: 100%; }
.sign-visual picture { position: absolute; inset: 0; display: block; }

.intro-tagline { font-size: 21px; max-width: 700px; margin: 8px auto 0; }
.map-scene { max-width: 1388px; height: 460px; position: relative; isolation: isolate; z-index: 1; margin: -12px auto 0; }
.road { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.road-desktop { --road-tile-width: 1440px; width: 100vw; left: 50%; top: 78px; height: 560px; transform: translateX(-50%); overflow: hidden; }
.road-strip { position: absolute; left: 50%; width: calc(var(--road-tile-width) * 5); display: flex; transform: translateX(-50%); }
/* Crop transparent side gutters in CSS, preserving the PNG's aspect ratio.
   The small vertical steps align its two hand-drawn endpoints between copies. */
.road-tile { flex: 0 0 var(--road-tile-width); height: calc(var(--road-tile-width) * 724 / 2116); background: url('../img/trilho-desktop.webp') no-repeat; background-size: calc(var(--road-tile-width) * 2172 / 2116) auto; background-position: calc(var(--road-tile-width) * -32 / 2116) top; }
.road-tile:nth-child(1) { transform: translateY(32px); }
.road-tile:nth-child(2) { transform: translateY(16px); }
.road-tile:nth-child(4) { transform: translateY(-16px); }
.road-tile:nth-child(5) { transform: translateY(-32px); }
.road-mobile { display: none; }
.doodle { position: absolute; z-index: 2; height: auto; pointer-events: none; user-select: none; }
img.doodle { display: block; }
span.doodle { display: inline; }

/* Novo botão JOGAR — câmera gamer fixa (não usa nuvem como anchor).
   Wrapper externo (.dvm-play-btn = layout-elem, editor move X/Y/Z/S/R).
   Wrapper interno (.dvm-camera-hop-inner = animação hop — SEMPRE volta identity).
   Label .dvm-camera-play-label = pointer-events none, etiqueta amarela doodle. */
.dvm-play-btn {
  position: absolute;
  z-index: 10;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transform-origin: 50% 100%;
  transition: transform .18s ease, filter .18s ease;
}
.dvm-play-btn:hover,
.dvm-play-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.dvm-play-btn:focus-visible {
  filter: drop-shadow(0 0 0 3px var(--yellow)) drop-shadow(6px 8px 0 rgba(0,0,0,0.10));
}

.dvm-camera-hop-inner {
  display: block;
  width: 100%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.dvm-camera-hop-inner img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,0.10));
}
.dvm-camera-hop-inner.is-hopping {
  animation: dvmCameraHop 420ms cubic-bezier(.2,.88,.2,1) both;
}
.dvm-camera-hop-inner.is-hopping.is-double {
  animation: dvmCameraHopDouble 820ms cubic-bezier(.2,.88,.2,1) both;
}
@keyframes dvmCameraHop {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1,1); }
  18%  { transform: translate(0, -26px) rotate(-1.4deg) scale(1,1); }
  30%  { transform: translate(0, -26px) rotate(-0.6deg) scale(1,1); }
  42%  { transform: translate(0, -22px) rotate(0.6deg) scale(1,1); }
  78%  { transform: translate(0, -4px) rotate(0.2deg) scale(1,1); }
  92%  { transform: translate(0, 0) rotate(0deg) scale(1.02,.98); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1,1); }
}
@keyframes dvmCameraHopDouble {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1,1); }
  10%  { transform: translate(0, -22px) rotate(-1.2deg) scale(1,1); }
  18%  { transform: translate(0, -6px) rotate(0.4deg) scale(1,1); }
  28%  { transform: translate(0, -28px) rotate(1.5deg) scale(1,1); }
  40%  { transform: translate(0, -24px) rotate(-0.4deg) scale(1,1); }
  58%  { transform: translate(0, -8px) rotate(0.2deg) scale(1,1); }
  88%  { transform: translate(0, -1px) rotate(0deg) scale(1.02,.98); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1,1); }
}

.dvm-camera-play-label {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%) translateY(0);
  background: #F7C415;
  color: #111;
  border: 2.5px solid #111;
  border-radius: 5px 7px 4px 8px;
  padding: 4px 12px 4px;
  font: 900 12.5px/1 var(--font);
  letter-spacing: 0.14em;
  white-space: nowrap;
  box-shadow: 3px 4px 0 #111;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: transform .22s ease;
  z-index: 5;
}
@media (max-width: 960px) {
  .dvm-camera-play-label {
    display: block;
    bottom: -18px;
    font-size: 11.5px;
    padding: 3.5px 10px;
    letter-spacing: 0.12em;
    box-shadow: 2.5px 3.5px 0 #111;
    border-width: 2px;
  }
}
@media (max-width: 960px) {
  .dvm-camera-hop-inner.is-hopping {
    animation-duration: 460ms;
  }
  @keyframes dvmCameraHop {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1,1); }
    18%  { transform: translate(0, -19px) rotate(-1.1deg) scale(1,1); }
    30%  { transform: translate(0, -19px) rotate(-0.4deg) scale(1,1); }
    42%  { transform: translate(0, -16px) rotate(0.5deg) scale(1,1); }
    78%  { transform: translate(0, -3px) rotate(0.1deg) scale(1,1); }
    92%  { transform: translate(0, 0) rotate(0deg) scale(1.02,.98); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1,1); }
  }
  @keyframes dvmCameraHopDouble {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1,1); }
    10%  { transform: translate(0, -16px) rotate(-1deg) scale(1,1); }
    18%  { transform: translate(0, -4px) rotate(0.3deg) scale(1,1); }
    28%  { transform: translate(0, -22px) rotate(1.2deg) scale(1,1); }
    40%  { transform: translate(0, -18px) rotate(-0.3deg) scale(1,1); }
    58%  { transform: translate(0, -6px) rotate(0.2deg) scale(1,1); }
    88%  { transform: translate(0, -1px) rotate(0deg) scale(1.02,.98); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1,1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .dvm-camera-hop-inner.is-hopping { animation: none !important; transform: none !important; }
  .dvm-camera-play-label { transition: none; }
  .dvm-play-btn { transition: none; }
}

/* Posição inicial (base coerente; usuário refina depois com layout editor).
   Desktop: área livre acima do trilho, próximo centro-esquerdo.
   Mobile:  meio do mapa, acima das placas iniciais.
   (!important para garantir base consistente antes do editor ativar inline styles) */
@media (min-width: 961px) {
  .dvm-play-btn {
    left: 42%;
    top: 290px;
    width: clamp(115px, 11.25vw, 190px);
  }
}
@media (max-width: 960px) {
  .dvm-play-btn {
    left: 38%;
    top: 64%;
    width: clamp(105px, 27.5vw, 148px);
  }
}
.doodle-sun { width: 132px; left: 10%; top: 0; transform-origin: 50% 50%; animation: sun-turn 26s steps(220, end) infinite; }
@keyframes sun-turn { to { transform: rotate(360deg); } }
.doodle-cloud-1 { width: 168px; left: -2%; top: 0; }
.doodle-cloud-2 { width: 178px; right: -2%; top: -58px; }
.doodle-bush-1 { width: 145px; left: 22%; bottom: 0; }
.doodle-bush-2 { width: 138px; left: 42%; bottom: 18px; }
.doodle-bush-3 { width: 148px; right: 20%; bottom: -8px; }
.doodle-stone-1 { width: 124px; left: 34.5%; bottom: -18px; transform: rotate(-8deg); }
.doodle-stone-2 { width: 124px; right: 27%; bottom: 8px; transform: rotate(7deg); }
.sign { width: 19%; position: absolute; z-index: 4; }
.sign.is-left  { z-index: 5; }
.sign.is-right { z-index: 7; }
.sign:focus-within, .sign:has(details[open]) { z-index: 9; }
.sign-board, .sign-menu { display: block; width: 100%; margin: 0; padding: 0; }
.sign-board { cursor: pointer; transform: rotate(var(--tilt, 0deg)) scale(var(--scale, 1)); transition: transform .16s ease; }
.sign-board:hover { transform: rotate(0deg) scale(var(--scale, 1)); }
.sign-size { position: relative; width: 100%; display: block; transform: scale(0.75); transform-origin: 50% 50%; }
.sign-sway { position: relative; display: block; width: 100%; transform-origin: 50% var(--sway-origin-y, 100%); animation: sign-breeze 36s ease-in-out infinite; animation-delay: var(--breeze-delay, 0s); }
.sign-visual { position: relative; display: block; isolation: isolate; transform: scale(1); transform-origin: 50% 50%; z-index: 1; width: 100%; aspect-ratio: 1086 / 1448; }
.sign-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: 50% 50%; transition: opacity .12s ease; }
.sign-image-normal { opacity: 1; z-index: 1; }
.sign-image-hover { opacity: 0; z-index: 2; pointer-events: none; }
.sign-board.sign-board.sign-board:focus-visible .sign-image-normal,
.sign-board.sign-board.sign-board:active .sign-image-normal,
.sign-board.sign-board.sign-board.is-pressed .sign-image-normal,
.sign-menu[open] > .sign-board.sign-board.sign-board .sign-image-normal { opacity: 0 !important; }
.sign-board.sign-board.sign-board:focus-visible .sign-image-hover,
.sign-board.sign-board.sign-board:active .sign-image-hover,
.sign-board.sign-board.sign-board.is-pressed .sign-image-hover,
.sign-menu[open] > .sign-board.sign-board.sign-board .sign-image-hover { opacity: 1 !important; }
.sign:focus-within .sign-sway, .sign-menu[open] .sign-sway, .sign:has(.sign-board.is-pressed) .sign-sway { animation-play-state: paused; }
body.layout-editor-active .sign .sign-sway { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
    .sign-board.sign-board.sign-board:hover .sign-image-normal { opacity: 0 !important; }
    .sign-board.sign-board.sign-board:hover .sign-image-hover { opacity: 1 !important; }
    .sign:has(.sign-board:hover) .sign-sway { animation-play-state: paused; }
}
@keyframes sign-breeze {
    0%, 100% { transform: rotate(0deg); }
    22% { transform: rotate(+0.45deg); }
    48% { transform: rotate(-0.35deg); }
    74% { transform: rotate(+0.20deg); }
}
.sign-casamentos    { left: 6%;   top: 248px; --tilt: -1.6deg; }
.sign-documentarios { left: auto; right: 5%; top: 34px; --tilt: 1.4deg; }
.sign-aprender      { left: 39%;  top: 54px; --tilt: 0.6deg; --scale: .88; }
.sign-ferramentas   { left: auto; right: 28%; top: 258px; --tilt: 2deg; }
.sign-empresas      { left: 19%;  top: 10px;  --tilt: -1deg; }
.sign-casamentos {
  --sway-origin-y: 94.5%;
  --breeze-delay: 0s;
}
.sign-documentarios {
  --sway-origin-y: 93.4%;
  --breeze-delay: 2.4s;
}
.sign-aprender {
  --sway-origin-y: 93.6%;
  --breeze-delay: 5s;
}
.sign-ferramentas {
  --sway-origin-y: 95.7%;
  --breeze-delay: 7.2s;
}
.sign-empresas {
  --sway-origin-y: 97.9%;
  --breeze-delay: 9.8s;
}
.sign-menu { position: relative; width: 100%; }
.sign-menu > summary { list-style: none; }
.tool-choice { position: absolute; z-index: 8; top: 65%; left: 50%; transform: translateX(-50%); width: 260px; max-width: calc(100vw - 40px); padding: 14px 18px; border: 3px solid var(--ink); border-radius: 5px 8px 4px 7px; background: var(--paper); box-shadow: 3px 4px 0 #e5e5e5; }
.tool-choice p { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.tool-choice a { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 900; border-top: 1px solid #ddd; }
.tool-choice a:hover { text-decoration: underline; text-decoration-color: #bd8700; text-underline-offset: 4px; }
.sign-ferramentas .tool-choice { padding: 6px; }
.sign-ferramentas .tool-choice a { min-height: 48px; padding: 10px 12px; border-top-color: var(--ink); color: #111; }
.sign-ferramentas .tool-choice a:first-of-type { border-top: 0; }
.sign-ferramentas .tool-choice a:hover { background: var(--yellow); color: #000; text-decoration-color: #111; }
.sign-ferramentas .tool-choice a:focus-visible { background: var(--yellow); color: #000; outline: 2px dashed #111; outline-offset: -5px; text-decoration: underline; text-underline-offset: 4px; }
.sign-ferramentas .tool-choice a:active,
.sign-ferramentas .tool-choice a.is-selected { background: var(--yellow); color: #000; }
.sign-ferramentas .tool-choice a.is-selected::after { content: '\2713'; margin-left: auto; padding-left: 8px; font-size: 18px; }
.closing-note { position: relative; margin: 16px auto 0; display: grid; justify-items: center; text-align: center; }
.closing-note p { font-size: 23px; font-weight: 900; line-height: 1.2; transform: rotate(-2deg); }
.closing-note p::after { content: ''; display: block; height: 4px; background: var(--yellow); margin-top: 10px; transform: rotate(-2deg); }
.closing-note .explore-link { display: grid; justify-items: center; margin-top: 20px; color: var(--ink); text-decoration: none; }
.closing-note .explore-label { font-size: 11px; }
.closing-note .explore-arrow { width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin-top: 8px; }
.closing-note .explore-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.about-dvm { border-top: 1px solid #e7e7e7; margin: 24px auto 0; padding: 36px var(--page) 48px; text-align: center; }
.about-dvm h2 { font-size: 18px; margin-bottom: 8px; }
.about-dvm p { font-size: 16px; color: var(--muted); }
.about-dvm a { display: inline-block; margin: 18px 12px 0; border-bottom: 2px solid var(--yellow); padding: 4px 0; }
.about-dvm .about-universe-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 100%);
    min-height: 52px;
    height: auto;
    margin: 0 auto 18px;
    padding: 10px 18px;
    border: 2px solid var(--ink);
    border-radius: 7px;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.about-dvm .about-universe-button:hover { background: #ffdc45; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.about-dvm .about-universe-button:active,
.about-dvm .about-universe-button.is-pressed { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.about-dvm .about-universe-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
@media (min-width: 961px) and (max-width: 1200px) {
    .map-scene { height: 420px; }
    .road-desktop { top: 24px; }
    .doodle-sun { top: -8px; }
}
@media (max-width: 960px) {
    .page-header { min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
    .intro-art { width: min(540px, 100%); margin-top: 2px; }
    .intro-tagline { font-size: 18px; max-width: 460px; }
    .map-scene { width: min(100%, 460px); height: auto; aspect-ratio: 460 / 1360; margin: 20px auto 0; }
    .road-desktop { display: none; }
    .road-mobile { display: block; width: 100%; height: 100%; left: 0; top: 0; }
    .sign { width: 64%; }
    /* Percurso vertical mobile: ABAIXO / ACIMA / ACIMA / ABAIXO / ACIMA (req 7) */
    .sign-casamentos { left: -2%; top: 2%; }    /* ABAIXO esq */
    .sign-documentarios { left: auto; right: -2%; top: 21%; }  /* ACIMA dir */
    .sign-aprender { left: -3%; top: 40%; }     /* ACIMA esq */
    .sign-ferramentas { left: auto; right: -3%; top: 60%; }    /* ABAIXO dir */
    .sign-empresas { right: auto; left: -3%; top: 80%; }       /* ACIMA esq */
    .sign-documentarios .tool-choice, .sign-ferramentas .tool-choice { right: 2%; left: auto; transform: none; }
    .doodle-sun { width: 33%; right: 6%; left: auto; top: 2.5%; }
    .doodle.doodle-cloud-1 { width: 156px !important; max-width: 156px !important; left: -5%; top: 18%; }
    .doodle.doodle-cloud-2 { width: 164px !important; max-width: 164px !important; right: -4%; top: 9.5%; }
    .doodle-bush-1 { width: 33%; left: -5%; bottom: 29%; }
    .doodle-bush-2 { width: 33%; left: 35%; bottom: 44%; }
    .doodle-bush-3 { width: 33%; right: -3%; bottom: 3%; }
    .doodle-stone-1 { width: 32%; left: 7%; bottom: 26%; }
    .doodle-stone-2 { width: 32%; right: -1%; bottom: 15%; }
    .closing-note { margin-top: 30px; }
    .closing-note p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
    .doodle-sun { animation: none; transform: none; }
    .sign-visual { animation: none; }
    .doodle-cloud-1, .doodle-cloud-2 { transform: none !important; }
}

/* Composition refinements reuse the original transparent artwork. */
.menu-panel { box-shadow: 10px 11px 0 var(--yellow); }
.menu-panel a, .tool-choice a { padding: 10px 8px; }
.menu-panel a:is(:hover, :focus-visible, :active, .is-pressed, .is-selected),
.tool-choice a:is(:hover, :focus-visible, :active, .is-pressed, .is-selected),
.about-dvm a:is(:hover, :focus-visible, :active, .is-pressed),
.brand-link:is(:hover, :focus-visible, :active, .is-pressed),
.closing-note .explore-link:is(:hover, :focus-visible, :active, .is-pressed) .explore-arrow,
.site-menu > summary:is(:hover, :focus-visible, :active, .is-pressed) {
    background: var(--yellow); color: var(--ink); text-decoration: none;
}
.sign-ferramentas .tool-choice a:is(:hover, :focus-visible) { text-decoration: none; }
.doodle-sun { animation: sun-turn 26s steps(220, end) infinite; }
.doodle-cloud-3 { width: 130px; left: 31%; top: 10px; }
.doodle-cloud-4 { width: 142px; right: 25%; top: -40px; }
.road-desktop { top: 106px; }
.map-scene { height: 488px; }
.doodle-stone-1, .doodle-stone-2 { width: 186px; }
.sign-visual { transform: scale(1); transform-origin: 50% 50%; }
/* Composição de placas novas: arquivo PNG único e completo.
   Blocos abaixo desativam composição antiga (poste separado + ground/matinho automático)
   para as 5 placas de porta. O asset pau.png fica no disco sem ser renderizado. */
.sign-image { clip-path: none; -webkit-clip-path: none; }
.sign-post { display: none !important; }
.sign .sign-ground { display: none !important; }
/* Percurso vertical mobile — referência req 7/8 (usuário refina no editor).
   ABAIXO(dir) · ACIMA(esq) · ACIMA(esq) · ABAIXO(dir) · ACIMA(esq) */
@media (max-width: 960px) {
  .sign-casamentos    { left: -1%; top: 1%;  }
  .sign-documentarios { right: -1%; top: 21%; }
  .sign-aprender      { left: -3%; top: 41%; }
  .sign-ferramentas   { right: -2%; top: 61%; }
  .sign-empresas      { left: -4%; top: 80%; }
  .doodle-stone-1, .doodle-stone-2 { width: 48%; }
  .doodle-stone-1 { left: -2%; bottom: 25%; }
  .doodle-stone-2 { right: -5%; bottom: 14%; }
  .doodle.doodle-cloud-3 { width: 122px !important; max-width: 122px !important; left: -3%; top: 35%; }
  .doodle.doodle-cloud-4 { width: 122px !important; max-width: 122px !important; right: -2%; top: 26%; }
}
@media (min-width: 961px) {
  .sign.is-left  { z-index: 5; }
  .sign.is-right { z-index: 7; }
}

/* V37 — Novas nuvens cloud-5 / cloud-6 (menores, editáveis) */
.doodle-cloud-5 { width: 110px; left: 52%; top: 34px; z-index: 2; }
.doodle-cloud-6 { width: 126px; right: 9%; top: 128px; z-index: 2; }
@media (max-width: 960px) {
  .doodle.doodle-cloud-5 {
    width: 92px !important; max-width: 92px !important; left: 44%; top: 51%;
  }
  .doodle.doodle-cloud-6 {
    width: 104px !important; max-width: 104px !important; right: 2%; top: 61%;
  }
}

/* V38 — ícones sociais header ligeiramente maiores */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-header .social-links {
  display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 4px;
  padding: 1px 0;
}
.page-header .social-links a {
  width: 46px; height: 46px; display: grid; place-items: center; padding: 2px;
}
.page-header .social-links img {
  width: 34px; height: 34px; max-width: 34px; max-height: 34px; object-fit: contain;
  display: block;
}
@media (min-width: 961px) {
  .page-header .social-links a { width: 46px; height: 46px; }
  .page-header .social-links img { width: 34px; height: 34px; max-width: 34px; max-height: 34px; }
}
@media (max-width: 520px) {
  .page-header .social-links { gap: 3px; margin-right: 0; }
  .page-header .social-links a { width: 42px; height: 42px; }
  .page-header .social-links img { width: 30px; height: 30px; max-width: 30px; max-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .doodle-sun, .doodle-cloud-3, .doodle-cloud-4 { animation: none; transform: none; }
}

.social-links { display: flex; align-items: center; gap: 2px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 5px; transition: background-color .15s ease, transform .15s ease; }
.social-links img { width: 34px; height: 34px; object-fit: contain; display: block; }
.social-links a:is(:hover, :focus-visible, :active) { background: transparent; transform: translateY(-1px); }
@media (max-width: 960px) {
  .social-links { gap: 1px; }
  .social-links a { width: 36px; height: 36px; }
  .social-links img { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .social-links a { width: 34px; height: 34px; }
  .social-links img { width: 24px; height: 24px; }
}
.cloud { animation: none; will-change: transform; max-width: 220px !important; display: block; }
.cloud img { width: 100%; height: auto; animation: none; transform: none; object-fit: contain; }
.doodle.doodle-cloud-1 { width: 168px !important; max-width: 175px !important; }
.doodle.doodle-cloud-2 { width: 210px !important; top: -85px; max-width: 210px !important; }
.doodle.doodle-cloud-3 { width: 130px !important; max-width: 135px !important; }
.doodle.doodle-cloud-4 { width: 142px !important; max-width: 145px !important; }
.road-strip { transform: translateX(-50%) rotate(-3deg); transform-origin: 50% 50%; }
.sign-ground {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  user-select: none;
  display: block;
  width: auto;
  height: auto;
}
.sign-ground img { display: block; }
/* posições x/y/scale/rotate são 100% do Layout Editor / [data-layout-id] consolidado com !important;
   nenhum posicionamento forçado aqui — o usuário ajusta manualmente */
.meadow { width: 92px; }
.meadow-1 { left: 5%;   bottom: 8px;  }
.meadow-2 { left: 28%;  bottom: 70px; }
.meadow-3 { right: 30%; bottom: 0px;  }
.meadow-4 { right: 6%;  bottom: 60px; }
.meadow-5 { left: 48%;  bottom: 36px; } /* B/D próximo pedra 2 */
.meadow-6 { right: 16%; bottom: 92px; }
.meadow-7 { left: 18%;  bottom: 118px; } /* C pequeno na curva antes do aprender */
.meadow-8 { right: 42%; bottom: 130px; } /* A pequeno na curva interior */
@media (min-width: 961px) {
    /* Composição INICIAL desktop (referência req 7/8/13):
       CASAMENTOS · ABAIXO · esquerda
       DOCUMENTÁRIOS · ACIMA · direita
       APRENDER · ACIMA · centro-esq
       FERRAMENTAS · ABAIXO · centro-direita
       EMPRESAS · ACIMA · esq alta */
    .sign-casamentos    { left: 6%;   top: 248px; }
    .sign-documentarios { left: auto; right: 5%;  top: 34px;  }
    .sign-aprender      { left: 39%;  top: 54px;  }
    .sign-ferramentas   { left: auto; right: 28%; top: 258px; }
    .sign-empresas      { left: 19%;  top: 10px;  }
}
@media (max-width: 960px) {
    .page-header-minimal { gap: 8px; }
    .doodle.doodle-cloud-2 { width: 172px !important; max-width: 172px !important; top: 6.5%; }
    .sign-casamentos    { top: 1%;   left: 2%;  } /* ABAIXO esq */
    .closing-note { margin-top: 65px; }
    .sign-documentarios { top: 21%; right: 2%; } /* ACIMA dir */
    .sign-aprender      { top: 41%; left: 2%;  } /* ACIMA esq */
    .sign-ferramentas   { top: 61%; right: 2%; } /* ABAIXO dir */
    .sign-empresas      { top: 80%; left: 2%;  } /* ACIMA esq */
    .sign.is-left .tool-choice, .sign.is-right .tool-choice { left: auto; transform: none; }
    .meadow { width: 24%; }
    .meadow-1 { left: 0;    top: 19%; bottom: auto; }
    .meadow-2 { left: 64%; top: 39%; bottom: auto; }
    .meadow-3 { right: 66%; top: 76%; bottom: auto; }
    .meadow-4 { right: 0;   bottom: 1%; }
    .meadow-5 { left: 38%; top: 28%; bottom: auto; }
    .meadow-6 { right: 38%; top: 54%; bottom: auto; }
    .meadow-7 { left: 8%;  top: 68%; bottom: auto; width: 20%; }
    .meadow-8 { right: 12%; top: 92%; bottom: auto; width: 20%; }
}
@media (prefers-reduced-motion: reduce) {
    .cloud { transform: none !important; }
    .cloud img { animation: none; transform: none; }
}

/* =========================================================================
   LAYOUT CONSOLIDADO (FINAL) — gerado a partir do JSON export do Layout Editor
   Em caso de dúvida, comparar com /dvm/?layoutEditor=1 para ver a referência.
   Aplica-se SOMENTE quando NÃO há !important do editor inline ativo.
   Valores exatos do JSON fornecido — NÃO reinterprete.
   ========================================================================= */

/* ---------- DESKTOP (≥ 961px) ---------- */
@media (min-width: 961px) {
  [data-layout-id="sun"]                       { left: 15% !important; right: auto !important; top: -18% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="sun"]                       { --cons-base: scale(1) rotate(3.27deg); }
  [data-layout-id="cloud-1"]                   { left: -2% !important; right: auto !important; top: 0 !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-1"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-2"]                   { left: 86.36% !important; right: auto !important; top: -17.42% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-2"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-3"]                   { left: 31% !important; right: auto !important; top: 2.05% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-3"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-4"]                   { left: 64.43% !important; right: auto !important; top: -8.2% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-4"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-5"]                   { left: 52% !important; right: auto !important; top: 6.97% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-5"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-6"]                   { left: 81.62% !important; right: auto !important; top: 26.23% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-6"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="bush-1"]                    { left: 22% !important; right: auto !important; top: 80% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="bush-2"]                    { left: 42% !important; right: auto !important; top: 40% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="bush-3"]                    { left: 75% !important; right: auto !important; top: 45% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-1"]                  { left: 5% !important; right: auto !important; top: 90% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-2"]                  { left: 28% !important; right: auto !important; top: 50% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-3"]                  { left: 63.15% !important; right: auto !important; top: 85.86% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-4"]                  { left: 87.15% !important; right: auto !important; top: 73.57% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-5"]                  { left: 48% !important; right: auto !important; top: 78.48% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-6"]                  { left: 60% !important; right: auto !important; top: 50% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-7"]                  { left: 23% !important; right: auto !important; top: 56% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-8"]                  { left: 51.15% !important; right: auto !important; top: 54.51% !important; bottom: auto !important; z-index: 12 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="rock-1"]                    { left: 30% !important; right: auto !important; top: 75% !important; bottom: auto !important; z-index: 3 !important; transform: scale(1) rotate(-4deg) !important; }
  [data-layout-id="rock-2"]                    { left: 63% !important; right: auto !important; top: 60.25% !important; bottom: auto !important; z-index: 17 !important; transform: scale(1) rotate(-3deg) !important; }
  [data-layout-id="cameraJogar"]               { left: 5.29% !important; right: auto !important; top: 36.6% !important; bottom: auto !important; z-index: 10 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="sign-casamentos"]           { left: 16.58% !important; right: auto !important; top: 10.35% !important; bottom: auto !important; z-index: 7 !important; }
  [data-layout-id="sign-documentarios"]        { left: 30.31% !important; right: auto !important; top: 22.25% !important; bottom: auto !important; z-index: 5 !important; }
  [data-layout-id="sign-aprender"]             { left: 45.02% !important; right: auto !important; top: 14.11% !important; bottom: auto !important; z-index: 5 !important; }
  [data-layout-id="sign-ferramentas"]          { left: 55.71% !important; right: auto !important; top: 35.86% !important; bottom: auto !important; z-index: 7 !important; }
  [data-layout-id="sign-empresas"]             { left: 68.63% !important; right: auto !important; top: 25.11% !important; bottom: auto !important; z-index: 19 !important; }
}

/* ---------- MOBILE (≤ 960px) ---------- */
@media (max-width: 960px) {
  [data-layout-id="sun"]                       { left: 10% !important; right: auto !important; top: 0 !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="sun"]                       { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-1"]                   { left: -2% !important; right: auto !important; top: 0 !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-1"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-2"]                   { left: 86.36% !important; right: auto !important; top: -17.42% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-2"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-3"]                   { left: 31% !important; right: auto !important; top: 2.05% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-3"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-4"]                   { left: 64.43% !important; right: auto !important; top: -8.2% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-4"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-5"]                   { left: 52% !important; right: auto !important; top: 6.97% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-5"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="cloud-6"]                   { left: 81.62% !important; right: auto !important; top: 26.23% !important; bottom: auto !important; z-index: 2 !important; }
  [data-layout-id="cloud-6"]                   { --cons-base: scale(1) rotate(0deg); }
  [data-layout-id="bush-1"]                    { left: 22% !important; right: auto !important; top: 70.29% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="bush-2"]                    { left: 42% !important; right: auto !important; top: 68.03% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="bush-3"]                    { left: 68.98% !important; right: auto !important; top: 71.31% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-1"]                  { left: 5% !important; right: auto !important; top: 84.22% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-2"]                  { left: 28% !important; right: auto !important; top: 71.52% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-3"]                  { left: 63.15% !important; right: auto !important; top: 85.86% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-4"]                  { left: 87.15% !important; right: auto !important; top: 73.57% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-5"]                  { left: 48% !important; right: auto !important; top: 78.48% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-6"]                  { left: 77.15% !important; right: auto !important; top: 67.01% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-7"]                  { left: 18% !important; right: auto !important; top: 56.97% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="meadow-8"]                  { left: 51.15% !important; right: auto !important; top: 54.51% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="rock-1"]                    { left: 34.5% !important; right: auto !important; top: 65.57% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(-8deg) !important; }
  [data-layout-id="rock-2"]                    { left: 59.15% !important; right: auto !important; top: 60.25% !important; bottom: auto !important; z-index: 2 !important; transform: scale(1) rotate(7deg) !important; }
  [data-layout-id="cameraJogar"]               { left: 42% !important; right: auto !important; top: 33.61% !important; bottom: auto !important; z-index: 10 !important; transform: scale(1) rotate(0deg) !important; }
  [data-layout-id="sign-casamentos"]           { left: 6% !important; right: auto !important; top: 50.82% !important; bottom: auto !important; z-index: 7 !important; }
  [data-layout-id="sign-documentarios"]        { left: 76% !important; right: auto !important; top: 6.97% !important; bottom: auto !important; z-index: 5 !important; }
  [data-layout-id="sign-aprender"]             { left: 39% !important; right: auto !important; top: 11.07% !important; bottom: auto !important; z-index: 5 !important; }
  [data-layout-id="sign-ferramentas"]          { left: 53% !important; right: auto !important; top: 52.87% !important; bottom: auto !important; z-index: 7 !important; }
  [data-layout-id="sign-empresas"]             { left: 16.42% !important; right: auto !important; top: -10.77% !important; bottom: auto !important; z-index: 5 !important; }
}



/* Rodada mobile focada - zigue-zague lateral sem sol/nuvens. */
@media (max-width: 719px) {
  .map-page {
    padding-bottom: 44px;
  }

  .intro-art {
    width: min(88vw, 360px);
    margin-top: 4px;
  }

  .intro-tagline {
    max-width: 22rem;
    margin-top: 12px;
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.35;
  }

  .map-scene {
    width: min(100%, 430px);
    height: clamp(1180px, 307vw, 1320px);
    aspect-ratio: auto;
    margin-top: clamp(26px, 7vw, 40px);
    overflow: visible;
  }

  .road-mobile,
  .road-desktop,
  [data-layout-id="sun"],
  [data-layout-id="cloud-1"],
  [data-layout-id="cloud-2"],
  [data-layout-id="cloud-3"],
  [data-layout-id="cloud-4"],
  [data-layout-id="cloud-5"],
  [data-layout-id="cloud-6"] {
    display: none !important;
  }

  .sign {
    width: min(100%, 430px);
    max-width: none;
    pointer-events: none;
  }

  .sign-size {
    width: clamp(210px, 61vw, 264px);
    transform: none;
  }

  .sign-casamentos .sign-size,
  .sign-aprender .sign-size,
  .sign-empresas .sign-size {
    margin-right: auto;
  }

  .sign-documentarios .sign-size,
  .sign-ferramentas .sign-size {
    margin-left: auto;
  }

  .sign-size,
  .sign-sway,
  .sign-menu,
  .sign-board,
  .sign-visual,
  .tool-choice,
  .tool-choice a {
    pointer-events: auto;
  }

  .sign-board {
    position: relative;
    display: block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .sign-image,
  .sign-visual picture,
  .doodle,
  .road {
    pointer-events: none;
  }

  [data-layout-id="sign-casamentos"].sign-casamentos {
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    z-index: 12 !important;
  }

  [data-layout-id="sign-documentarios"].sign-documentarios {
    left: auto !important;
    right: 0 !important;
    top: 13.6% !important;
    z-index: 14 !important;
  }

  [data-layout-id="sign-aprender"].sign-aprender {
    left: 0 !important;
    right: auto !important;
    top: 27.2% !important;
    z-index: 16 !important;
  }

  [data-layout-id="sign-ferramentas"].sign-ferramentas {
    left: auto !important;
    right: 0 !important;
    top: 40.8% !important;
    z-index: 18 !important;
  }

  [data-layout-id="sign-empresas"].sign-empresas {
    left: 0 !important;
    right: auto !important;
    top: 54.4% !important;
    z-index: 20 !important;
  }

  .sign:focus-within,
  .sign:has(details[open]),
  .sign.is-menu-open {
    z-index: 120 !important;
  }

  .sign-menu[open] {
    position: relative;
    z-index: 130 !important;
  }

  .sign-menu[open] > .sign-board {
    z-index: 131 !important;
  }

  .sign-menu[open] .tool-choice {
    z-index: 140 !important;
    top: 68%;
    width: min(302px, calc(100vw - 34px));
    max-width: calc(100vw - 34px);
    padding: 14px 16px;
    background: var(--paper);
    box-shadow: 7px 8px 0 var(--yellow), 0 0 0 9999px rgba(255,255,255,.58);
  }

  .sign-documentarios .tool-choice,
  .sign-ferramentas .tool-choice,
  .sign.is-left .tool-choice,
  .sign.is-right .tool-choice {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .tool-choice p {
    font-size: 15px;
    line-height: 1.42;
  }

  .tool-choice a {
    min-height: 46px;
    font-size: 13px;
  }

  [data-layout-id="cameraJogar"].dvm-play-btn {
    left: auto !important;
    right: clamp(24px, 7vw, 42px) !important;
    top: 86% !important;
    width: clamp(148px, 38.75vw, 183px) !important;
    z-index: 24 !important;
    transform: scale(1) rotate(0deg) !important;
  }

  .dvm-camera-play-label {
    bottom: -20px;
  }

  [data-layout-id="bush-1"] {
    left: 2% !important;
    top: 68.8% !important;
    width: clamp(72px, 21vw, 94px) !important;
    opacity: .78;
  }

  [data-layout-id="bush-3"] {
    left: auto !important;
    right: 4% !important;
    top: 59.8% !important;
    width: clamp(74px, 22vw, 98px) !important;
    opacity: .80;
  }

  [data-layout-id="meadow-1"] {
    left: 4% !important;
    top: 12.8% !important;
    width: clamp(58px, 17vw, 76px) !important;
  }

  [data-layout-id="meadow-3"] {
    left: auto !important;
    right: 5% !important;
    top: 37.2% !important;
    width: clamp(58px, 17vw, 78px) !important;
  }

  [data-layout-id="meadow-5"] {
    left: 12% !important;
    top: 50.8% !important;
    width: clamp(58px, 17vw, 78px) !important;
  }

  [data-layout-id="meadow-7"] {
    left: auto !important;
    right: 16% !important;
    top: 81.8% !important;
    width: clamp(52px, 15vw, 68px) !important;
  }

  [data-layout-id="rock-1"] {
    left: auto !important;
    right: 7% !important;
    top: 27.2% !important;
    width: clamp(66px, 20vw, 88px) !important;
    opacity: .72;
  }

  [data-layout-id="bush-2"],
  [data-layout-id="meadow-2"],
  [data-layout-id="meadow-4"],
  [data-layout-id="meadow-6"],
  [data-layout-id="meadow-8"],
  [data-layout-id="rock-2"] {
    display: none !important;
  }

  .closing-note {
    margin-top: clamp(28px, 9vw, 54px);
  }

  .closing-note p {
    font-size: clamp(19px, 5.2vw, 22px);
  }
}

/* Home closing copy and contact choices. */
.closing-note p { max-width: 100%; }
.closing-note p span { display: block; }
.closing-note p br { display: none; }
.about-dvm > p { max-width: 650px; margin-inline: auto; }
.about-actions { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.about-dvm .about-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 226px;
  max-width: 100%;
  margin: 0;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: #000;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.about-dvm .about-action:hover { background: #ffdc45; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.about-dvm .about-action:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.about-dvm .about-action:active,
.about-dvm .about-action.is-pressed { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.about-dvm .about-action-dvmflix {
  position: relative;
}
.about-dvm .about-action-contact { gap: 8px; }
.about-action-contact-icon { width: 20px; height: 20px; flex: none; }
.about-action-badge {
  position: absolute;
  top: -13px;
  left: 13px;
  padding: 3px 7px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--yellow);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  transform: rotate(-4deg);
  pointer-events: none;
}

body.contact-dialog-open { position: fixed; width: 100%; overflow: hidden; }
body.universe-dialog-open { overflow: hidden; }
.universe-dialog {
  width: min(500px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(18px, 4vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fffdf6;
  box-shadow: 9px 9px 0 var(--yellow);
  color: var(--ink);
}
.universe-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.universe-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--yellow); }
.universe-dialog h2 { font-size: clamp(22px, 5vw, 30px); font-weight: 900; line-height: 1.2; }
.universe-dialog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.universe-dialog-close:hover { background: #ffdc45; }
.universe-dialog-close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.universe-dialog-links { display: grid; padding-top: 10px; text-align: left; }
.universe-dialog-links a { display: block; min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #ddd; font-size: clamp(17px, 3vw, 21px); line-height: 1.5; }
.universe-dialog-links a:last-child { border-bottom: 0; }
.universe-dialog-links a:hover, .universe-dialog-links a:focus-visible { background: var(--yellow); }
.universe-dialog :is(a, button):focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.contact-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 30px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fffdf6;
  box-shadow: 8px 8px 0 #000;
  color: var(--ink);
}
.contact-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.contact-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.contact-dialog h2 { max-width: 520px; font-size: clamp(22px, 4vw, 30px); font-weight: 900; line-height: 1.15; }
.contact-dialog > p { margin: 12px 0 24px; color: var(--muted); font-size: 16px; }
.contact-dialog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: #000;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.contact-options a:hover,
.contact-dialog-close:hover { background: #ffdc45; }
.contact-options a:active,
.contact-dialog-close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.contact-dialog :is(a, button):focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.contact-direct { display: block; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 6px 2px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 900; line-height: 1.4; text-align: center; }
.contact-direct:hover { background: var(--yellow); }
@media (max-width: 600px) {
  .about-actions { flex-direction: column; align-items: center; }
  .about-dvm .about-action { width: min(100%, 320px); }
  .contact-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .about-dvm .about-action, .about-dvm .about-universe-button { transition: none; }
}


/* Rodada 2026-09-12 - paineis de placas e hit area mobile. */
.sign:focus-within,
.sign:has(.sign-menu[open]),
.sign.is-menu-open {
  z-index: 120 !important;
}
.sign-menu[open] {
  position: relative;
  z-index: 130 !important;
}
.sign-menu[open] .tool-choice {
  z-index: 140 !important;
}
.sign-panel-close {
  display: none;
}
.sign-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
  pointer-events: auto;
}
.sign-panel-backdrop[hidden] {
  display: none !important;
}
@media (max-width: 719px) {
  body.dvm-sign-panel-open {
    overflow-x: hidden;
  }
  body.dvm-sign-panel-open .map-scene {
    touch-action: none;
  }
  .sign-size {
    aspect-ratio: 1086 / 1448;
  }
  .sign-sway,
  .sign-menu {
    height: 100%;
  }
  .sign-board {
    height: 58%;
    overflow: visible;
  }
  .sign-visual {
    position: absolute;
    inset: 0;
    width: 100%;
  }
  .sign-menu[open] .tool-choice {
    left: 50% !important;
    right: auto !important;
    top: 54%;
    transform: translateX(calc(-50% + var(--panel-mobile-shift-x, 0px))) !important;
    width: min(330px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 36px 16px 15px;
    box-sizing: border-box;
  }
  .sign-panel-close {
    position: absolute;
    top: -14px;
    right: -12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 3px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font: 900 23px/1 var(--font, system-ui, sans-serif);
    cursor: pointer;
    touch-action: manipulation;
  }
  .sign-panel-close:focus-visible {
    outline: 2px dashed var(--ink);
    outline-offset: 3px;
  }
}


/* Rodada 2026-09-15 - mobile hit area placas e camera topo. */
@media (max-width: 719px) {
  .sign-board {
    height: 34% !important;
    overflow: visible;
  }

  .sign-visual {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1086 / 1448;
    pointer-events: none;
  }

  .sign-image,
  .sign-visual picture {
    pointer-events: none;
  }

  [data-layout-id="cameraJogar"].dvm-play-btn {
    left: auto !important;
    right: clamp(14px, 4.4vw, 22px) !important;
    top: clamp(10px, 3vw, 18px) !important;
    width: clamp(118px, 32vw, 142px) !important;
    z-index: 15 !important;
    transform: scale(1) rotate(0deg) !important;
  }

  .dvm-camera-play-label {
    bottom: -18px;
  }
}
