@font-face {
  font-family: "rubik";
  src: url("./rubik.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  font-family: "impact";
  background-color: #d2250f;
  overflow-x: hidden;
  color: white;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.container {
  display: flex;
  flex-direction: row;
  width: 100dvw;
}
.head {
  display: flex;
  flex-direction: row;
  width: 100dvw;
}
.left {
  display: flex;
  flex-direction: column;
  width: 30dvw;
  border: 6px solid #ffee00;
}
.banner {
  width: 30dvw;
  height: auto;
  object-fit: contain;
  box-sizing: border-box;
  border: 6px solid #ffee00;
}
.left-middle {
  height: 60vh;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}
.left-img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  border: 6px solid #ffee00;
  box-sizing: border-box;
}

.left-bottom {
  height: fit-content;
}
.right {
  display: flex;
  flex-direction: column;
  width: 70dvw;
  align-items: center;
  justify-content: center;
}
.right-header {
  width: 70dvw;
  display: flex;
  flex-direction: row;
  gap: 5vw;
  align-items: center;
  justify-content: center;
}
.right-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.copyText {
  font-size: 2vw;
}
.head-img {
  height: auto;
  width: 10vw;
  object-fit: contain;
  box-sizing: border-box;
  border-radius: 20px;
}
.right-h1 {
  font-size: 5vw;
  font-weight: bold;
}
.footer {
  display: flex;
  flex-wrap: nowrap;
}

.footer > div {
  flex: 0 0 calc(100% / 6);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border: 6px solid #ffee00;

  min-width: 0;
}

.footer > div > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.footer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.2s ease;
}
.footer img:hover {
  transform: scale(0.8);
}
#horn {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.p-3 p {
  margin: 0;
  font-size: 2.7vw;
}
.p-5 p {
  margin: 0;
  font-size: 2.2vw;
}
.launch-video {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #ffee00;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .head {
    flex-direction: column;
  }
  .banner {
    width: 100%;
    height: auto;
  }
  .container {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .left,
  .right {
    flex-direction: column;
    width: 100%;
  }
  .left > *,
  .right > * {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .head-img {
    width: 20vw;
  }
  .right-header {
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .right-h1 {
    font-size: 13vw;
    margin: 0;
  }
  .copyText {
    font-size: 4vw;
    text-align: center;
  }

  .footer {
    flex-wrap: wrap;
  }
  .footer > div {
    flex: 0 0 50%;
  }
  .p-3 p {
    margin: 0;
    font-size: 8vw;
  }
  .p-5 p {
    margin: 0;
    font-size: 8vw;
  }
}
/* 

quiz



*/
.quiz-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
}
.quiz-q {
  font-size: 3.3vw;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
}

@media (max-width: 800px) {
  .quiz-q {
    font-size: 7vw;
  }
}
.quiz-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.quiz-btn {
  border: 1px solid #222;
  background: #ffee00;
  color: #d60022;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5vw;
}
.quiz-btn:hover {
  transform: translateY(-1px);
}
.quiz-btn:active {
  transform: translateY(0);
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.85;
}
.quiz-float {
  position: absolute;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: floatUp 1.9s ease-out forwards;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-float img {
  width: 40%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
}
@keyframes floatUp {
  from {
    transform: translate(-50%, 20px) scale(0.95);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translate(-50%, -80px) scale(1);
    opacity: 0;
  }
}
.shake {
  animation: shake 0.35s;
}
@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}

@media (max-width: 700px) {
  .quiz-options {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .quiz-btn {
    font-size: 5vw;
  }
}

/* 




main 



*/

#entry-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.view {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hidden {
  display: none;
}

.view--gif {
  background: #d2250f;
}
.view--gif {
  background: #d2250f;
  position: relative;
  overflow: hidden;
}

#gif-center {
  height: 100dvh;
  width: auto;
  max-height: 100%;
  max-width: none;
  object-fit: contain;
  display: grid;
  place-items: center;
}
#step-gif {
  position: fixed;
  inset: 0;
}

#unlock-btn {
  position: absolute;
  bottom: clamp(24px, 6vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  display: block;

  width: clamp(110px, 22vmin, 160px);
  height: auto;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  animation: pulse2 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-2px) scale(1.03);
  }
}
@keyframes pulse2 {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(0px) scale(1.03);
  }
}
#tap-to-start {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.view--photo {
  background: #000;
}
#photo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view--video {
  position: absolute;
  inset: 0;
  background: #9f0000;
  overflow: hidden;
}

.view--video video {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  transform: translateX(-50%);
  background: transparent;
}

#btn-answer,
#btn-cancel {
  position: absolute;
  bottom: clamp(24px, 8vh, 64px);
  width: 8%;
  min-width: 100px;
  height: auto;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  animation: pulse 1.6s ease-in-out infinite;
}
.view--video video {
  z-index: 0;
}
#btn-cancel {
  z-index: 1;
}
@keyframes pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
  }
}
