@media (max-height: 700px) {
  .center-block {
    transform: scale(0.9);
    transform-origin: top left;
  }
}

@media (max-height: 600px) {
  .center-block {
    transform: scale(0.8);
    transform-origin: top left;
  }
}

@media (max-height: 500px) {
  .center-block {
    transform: scale(0.7);
    transform-origin: top left;
  }
}
.center-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 auto;
  width: 90vw;
  max-width: 400px;
}

.center-block .video-frame {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
@font-face {
  font-family: 'Akkurat-Black';
  src: url('../fonts/AkkuratLL-Black.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  background: #c4f3cb;
  width: 100vw;
  height: auto;
  min-height: 100vh;
  font-family: 'Akkurat-Black', Arial, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

.logo {
  position: relative;
  margin: 0 0 30px 0;
  color: #9026ff;
  font-size: 33px;
  font-weight: 900;
  z-index: 10;
  user-select: none;
  font-family: 'Akkurat-Black', Arial, sans-serif;
  line-height: 1;
  text-align: left;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background-color: #00fc00;
  z-index: 1;
  transform: translateY(-50%);
}

.container {
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 32px;
  padding-bottom: 24px;
}

.video-frame {
  position: relative;
  width: 90vw;
  max-width: 400px;
  aspect-ratio: 9/16;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0;
  height: auto;
  max-height: calc(100vh - 80px); /* deixa espai per al logo i padding */
}
@media (max-aspect-ratio: 9/14) {
  .container {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .video-frame {
    max-height: calc(100vh - 48px);
    max-width: 320px;
  }
}

.video-frame video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  border: 6px solid #c4f3cb;
  border-top: 6px solid #00fc00;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

@media (min-width: 600px) {
  .video-frame {
    max-width: 420px;
  }
}

@media (min-width: 900px) {
  .container {
    max-width: 480px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .logo {
    margin-left: 0;
  }
  .video-frame {
    margin-left: 0;
  }
}