:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #031222; color: #fff; }
.presentation { position: relative; width: 100%; height: 100%; isolation: isolate; }
#canvas { display: block; width: 100%; height: 100%; }
.brand {
  position: absolute;
  top: clamp(22px, 4vw, 48px);
  left: clamp(22px, 4vw, 64px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 1s ease, transform 1s ease;
  text-shadow: 0 2px 20px #000;
}
.presentation.revealed .brand { opacity: 1; transform: translateY(0); }
.brand p { margin: 0 0 9px; color: #ffb56b; font-size: 10px; letter-spacing: .22em; font-weight: 700; }
.brand h1 { margin: 0; font-size: clamp(21px, 3.2vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.brand .tagline { margin: 10px 0 0; color: #e0e9f2; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .025em; font-weight: 400; }
.caption {
  position: absolute;
  left: clamp(22px, 4vw, 64px);
  bottom: clamp(28px, 5vh, 52px);
  max-width: 330px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
.presentation.finished .caption { opacity: 1; transform: translateY(0); }
.caption::before { content: ""; display: block; height: 2px; width: 42px; margin-bottom: 15px; background: #ff9b3d; box-shadow: 0 0 14px #ff9b3d; }
.caption p { margin: 0; font-size: clamp(19px, 2vw, 29px); font-weight: 700; line-height: 1.22; text-shadow: 0 2px 18px #000; }
.caption span { display: block; margin-top: 9px; color: #cbd6e1; font-size: 12px; letter-spacing: .025em; }
.controls {
  position: absolute;
  right: calc(clamp(16px, 3vw, 36px) + 80px);
  bottom: clamp(22px, 4vh, 42px);
  display: flex;
  gap: 8px;
}
.controls[hidden], #status[hidden] { display: none; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #ffffff35;
  border-radius: 24px;
  background: #051321b8;
  backdrop-filter: blur(12px);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
button:hover { background: #10263dde; border-color: #ffb367; }
button:focus-visible { outline: 2px solid #ffb367; outline-offset: 4px; }
button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#status { position: absolute; inset: 0; display: grid; place-content: center; padding: 28px; text-align: center; background: #031222eb; z-index: 2; }
#status p { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.6; }
.loader { width: 32px; height: 32px; margin: 0 auto 18px; border: 2px solid #ffffff20; border-top-color: #ffa34e; border-radius: 50%; animation: loading .9s linear infinite; }
.error .loader { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.whatsapp-float {
  position: fixed;
  right: max(clamp(16px, 3vw, 36px), env(safe-area-inset-right));
  bottom: max(clamp(22px, 4vh, 42px), env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid #ffffffb3;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px #0006, 0 0 20px #25d36680;
  transition: background .2s ease, transform .2s ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid #62ff9c;
  border-radius: 50%;
  box-shadow: 0 0 16px #25d366, inset 0 0 12px #25d36680;
  pointer-events: none;
  animation: whatsapp-glow 2s ease-out infinite;
}
.whatsapp-float svg { width: 34px; height: 34px; }
.whatsapp-float:hover { background: #1ebe5d; transform: translateY(-3px); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 16px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #051321f2;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; visibility: visible; }
@keyframes whatsapp-glow {
  0% { transform: scale(1); opacity: .95; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}
noscript { position: absolute; inset: 0; display: grid; place-content: center; padding: 32px; background: #031222; text-align: center; z-index: 3; }
@keyframes loading { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .brand { top: 28px; left: 24px; max-width: calc(100% - 118px); }
  .brand h1 { font-size: clamp(18px, 5.4vw, 21px); }
  .brand p { max-width: 240px; font-size: 9px; line-height: 1.6; }
  .caption { bottom: 94px; left: 24px; max-width: 260px; }
  .caption p { font-size: 22px; }
  .controls { right: 100px; bottom: max(22px, env(safe-area-inset-bottom)); }
  .whatsapp-float { right: max(20px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}
@media (max-height: 450px) and (min-width: 601px) {
  .brand { top: 20px; left: 24px; }
  .brand h1 { font-size: 23px; }
  .brand .tagline { font-size: 11px; }
  .caption { bottom: 22px; left: 24px; }
  .caption p { font-size: 18px; }
  .caption span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
