/* Memotest Aeropuertos Argentina — diseño fijo 1080x1920 (tótem vertical). */
html, body { margin: 0; padding: 0; background: #3f3f3f; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; }
img { -webkit-user-drag: none; pointer-events: none; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
b { font-weight: 700; }
.hidden { display: none !important; }

@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.stage {
  position: relative; width: 1080px; height: 1920px; overflow: hidden; margin: 0 auto;
  font-family: 'Kanit', sans-serif; color: #fff; background: #00a1b7; user-select: none;
}
.bg { position: absolute; inset: 0; background: linear-gradient(168deg, #0a8fa6 0%, #00a1b7 40%, #12b596 100%); }
.bg-corner {
  position: absolute; top: 0; left: 0; width: 340px; height: 640px; opacity: .9;
  background: linear-gradient(200deg, #7ec242 0%, #39b07a 55%, rgba(0,161,183,0) 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bg-game { position: absolute; inset: 0; background: linear-gradient(170deg, #04353f 0%, #075660 46%, #0a7b73 100%); animation: fadeIn 300ms ease; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; animation: riseIn 420ms ease both; }
.row { display: flex; align-items: center; }
.title { margin: 0; color: #fff; font-size: 96px; line-height: 1.06; font-weight: 400; text-align: center; letter-spacing: -.5px; }

/* Botones */
.btn {
  border: 0; background: #f4f5f5; color: #00a1b7; font-family: 'Kanit', sans-serif; font-weight: 700; cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,40,60,.22); transition: transform 140ms ease, box-shadow 140ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(.97); box-shadow: 0 6px 18px rgba(0,40,60,.22); }
.btn-xl { font-size: 60px; padding: 22px 74px 26px; border-radius: 26px; }
.btn-lg { font-size: 55px; padding: 18px 54px 22px; border-radius: 24px; }
.btn-md { font-size: 44px; padding: 16px 52px 19px; border-radius: 22px; }

/* Bienvenida */
.welcome { align-items: center; padding: 170px 90px 300px; }
.welcome-ready { gap: 28px; margin-top: 120px; font-size: 60px; }
.welcome-text { margin: 130px 0 0; font-size: 50px; line-height: 1.34; text-align: center; font-weight: 300; }
.welcome-bullets { justify-content: center; gap: 20px; margin-top: 44px; font-size: 50px; font-weight: 300; }
.welcome-btn { margin-top: 160px; }

/* Formulario */
.form { padding: 150px 90px 290px; }
.form-title { margin-bottom: 70px; line-height: 1.04; letter-spacing: normal; }
.form-title b { display: block; }
.lbl { font-size: 37px; font-weight: 700; margin-bottom: 14px; }
.lbl-mail { margin-top: 36px; }
.lbl-viaje { margin: 46px 0 22px; }
.txt {
  height: 86px; border-radius: 18px; border: 0; padding: 0 26px; font-size: 38px; color: #0b4a54; background: #fff; outline: none;
  font-family: 'Kanit', sans-serif;
}
.opts { display: flex; flex-direction: column; gap: 22px; }
.indent { padding-left: 60px; }
.check { display: flex; align-items: center; gap: 26px; cursor: pointer; min-height: 56px; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 46px; height: 46px; border-radius: 10px; background: #fff; flex: none; position: relative; }
.check .box::after {
  content: ""; position: absolute; inset: 8px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a1b7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { outline: 3px solid #d6e800; }
.check-sm span:last-child { font-size: 27px; font-weight: 300; }
.check-lg { gap: 24px; }
.check-lg span:last-child { font-size: 37px; font-weight: 700; }
.check-xs { align-items: flex-start; gap: 22px; }
.check-xs span:last-child { font-size: 20px; line-height: 1.4; font-weight: 300; padding-top: 4px; }
.bases { margin: 52px 0 20px; }
.legal { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 300; max-width: 800px; }
.legal-opts { gap: 20px; margin-top: 28px; }
.form-footer { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: auto; }
.form-error { margin: 0; min-height: 30px; font-size: 24px; color: #ffd166; font-weight: 400; }
.form:invalid .btn { opacity: .45; }

/* Cómo jugar */
.howto-top {
  position: absolute; top: 0; left: 0; right: 0; height: 780px; display: flex; align-items: flex-start; justify-content: center; padding-top: 170px;
  background: linear-gradient(170deg, #04353f 0%, #075660 100%);
}
.preview { display: grid; grid-template-columns: repeat(4, 178px); gap: 22px; }
.preview img { width: 178px; height: 251px; border-radius: 16px; display: block; }
.howto-curve {
  position: absolute; top: 560px; left: -6%; width: 112%; height: 1400px;
  background: linear-gradient(180deg, #0aa3ae 0%, #00a1b7 30%, #12b596 100%); border-radius: 50% 50% 0 0 / 130px 130px 0 0;
}
.howto-body { position: absolute; top: 700px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; padding: 0 90px; }
.howto-heading { gap: 30px; }
.howto-heading .bar { width: 6px; height: 78px; background: #d6e800; border-radius: 3px; }
.howto-title { font-size: 96px; font-weight: 400; line-height: 1; }
.howto-p1 { margin: 64px 0 0; font-size: 50px; font-weight: 700; text-align: center; }
.howto-p2 { margin: 44px 0 0; font-size: 50px; line-height: 1.3; font-weight: 300; text-align: center; }
.howto-time { justify-content: center; gap: 22px; margin-top: 52px; font-size: 50px; font-weight: 300; }
.howto-p3 { margin: 44px 0 0; font-size: 50px; font-weight: 300; }
.howto-btn { margin-top: 72px; padding-left: 90px; padding-right: 90px; }

/* Juego */
.game { align-items: center; padding: 90px 50px 0; animation: none; }
.game-kicker { font-size: 34px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; opacity: .8; }
.timer { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.timer-num { font-size: 110px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-num.low { color: #ffd166; }
.timer-unit { font-size: 40px; font-weight: 300; opacity: .75; }
.board { display: grid; grid-template-columns: repeat(4, 230px); grid-auto-rows: 324px; gap: 20px; margin-top: 56px; }
.card { position: relative; perspective: 1200px; cursor: pointer; transition: opacity 320ms ease; }
.card.done { opacity: .42; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 420ms cubic-bezier(.2,.75,.25,1); }
.card.open .inner { transform: rotateY(180deg); }
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.3);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity 0s linear 210ms;
}
.card .front { transform: rotateY(180deg); opacity: 0; }
.card.open .front { opacity: 1; }
.card.open .back { opacity: 0; }

/* Pie */
.footer {
  position: absolute; bottom: 0; left: -6%; width: 112%; height: 212px; background: #fff; border-radius: 50% 50% 0 0 / 74px 74px 0 0;
  display: flex; align-items: center; justify-content: center; padding-top: 40px;
}
.footer img { width: 430px; height: auto; display: block; }

/* Popups */
.overlay { position: absolute; inset: 0; background: rgba(3,36,43,.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; animation: fadeIn 200ms ease; }
.modal { position: relative; border-radius: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: popIn 320ms cubic-bezier(.2,.8,.3,1) both; }
.modal-match { width: 880px; background: #0aa0b4; }
.modal-match img { width: 100%; height: auto; display: block; border-radius: inherit; }
.modal-match-btn { position: absolute; left: 0; right: 0; bottom: 58px; display: flex; justify-content: center; }
.modal-result {
  width: 690px; padding: 90px 60px 70px; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(160deg, #0a9fb4 0%, #00a1b7 35%, #13b394 100%);
}
.modal-result h2 { margin: 34px 0 0; color: #fff; font-size: 85px; font-weight: 700; line-height: 1.06; }
.res-p { margin: 44px 0 0; font-size: 36px; font-weight: 300; }
.res-p.b { font-weight: 700; }
.res-p2 { margin-top: 20px; line-height: 1.34; }
.res-big { margin: 24px 0 0; font-size: 52px; font-weight: 700; }
.modal-result .btn-lg { margin-top: 56px; }
.btn-x {
  position: absolute; top: 34px; right: 34px; width: 66px; height: 66px; border-radius: 50%; border: 2.5px solid #fff; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
