body.is-fullscreen-tool .site-header,
body.is-fullscreen-tool .site-footer,
body.is-fullscreen-tool .hero,
body.is-fullscreen-tool .text-content,
body.is-fullscreen-tool .non-fullscreen,
body.is-fullscreen-tool .ad-slot,
body.is-fullscreen-tool .mobile-sticky-cta {
  display: none !important;
}

body.is-fullscreen-tool {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden !important;
  overscroll-behavior: none;
  background: var(--bg);
}

body.is-fullscreen-tool main {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  display: grid;
  place-items: center;
  background: var(--bg);
}

body.is-fullscreen-tool .section,
body.is-fullscreen-tool .container,
body.is-fullscreen-tool .tool-card,
body.is-fullscreen-tool .tool-shell,
body.is-fullscreen-tool .display-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

body.is-fullscreen-tool .section,
body.is-fullscreen-tool .container,
body.is-fullscreen-tool .tool-card,
body.is-fullscreen-tool .tool-shell {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

body.is-fullscreen-tool .tool-shell {
  display: grid;
  place-items: center;
  background: var(--bg);
}

body.is-fullscreen-tool .display-wrap {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 3.2vh, 26px);
  background: var(--bg);
  text-align: center;
}

body.is-fullscreen-tool .time-display {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(3.2rem, 21vw, 17rem);
  line-height: .94;
  letter-spacing: -0.024em;
}

.fullscreen-controls {
  display: none;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

body.is-fullscreen-tool .fullscreen-controls {
  display: flex;
  width: min(100%, 720px);
  max-width: calc(100dvw - 32px);
  margin: 0 auto;
  padding: 0;
  justify-self: center;
}

body.is-fullscreen-tool .fullscreen-controls .btn {
  min-width: 0;
}

/* v21: cronômetro em tela cheia sem vazamento lateral */
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] main,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .section,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .container,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .tool-card,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .tool-shell,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .display-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-width: 100dvw;
  transform: none !important;
}

body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .tool-shell,
body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .display-wrap {
  display: grid;
  place-content: center;
  justify-items: center;
}

body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .display-wrap {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .time-display {
  width: 100%;
  max-width: calc(100dvw - 24px);
  font-size: clamp(2.35rem, 11.8vw, 10rem);
  line-height: .98;
  letter-spacing: -0.018em;
}

body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .fullscreen-controls {
  width: min(100%, 560px);
  max-width: calc(100dvw - 24px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 620px) {
  body.is-fullscreen-tool .display-wrap {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  body.is-fullscreen-tool .time-display {
    font-size: clamp(2.85rem, 16.2vw, 6.1rem);
    letter-spacing: -0.018em;
  }

  body.is-fullscreen-tool .fullscreen-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(100dvw - 24px);
    gap: 10px;
  }

  body.is-fullscreen-tool .fullscreen-controls .danger {
    grid-column: 1 / -1;
  }

  body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .time-display {
    font-size: clamp(2.25rem, 10.8vw, 4.7rem);
    max-width: calc(100dvw - 24px);
    letter-spacing: -0.012em;
  }

  body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .fullscreen-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100dvw - 24px);
  }

  body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .fullscreen-controls .danger {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  body.is-fullscreen-tool[data-fullscreen-tool="stopwatch"] .time-display {
    font-size: clamp(2rem, 10vw, 4rem);
  }
}
