@font-face {
  font-family: "Trade Gothic AKI";
  src: url("../juego/css/TradeGothic-Bold.woff2") format("woff2"),
       url("../juego/css/TradeGothic-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wrapper: 1100px;
  --aki-red: #ed1c24;
  --aki-blue: #26347d;
  --yellow: #ffe100;
  --orange: #ff8500;
  --deep-blue: #0050a8;
  --green-screen: #21ff00;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Trade Gothic AKI", Arial, Helvetica, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}
.cv-header {
  background: white;
  text-align: center;
  /*margin: 15px auto;*/
  padding: 15px;
}
.cv-header a {
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  color: black;
  margin: 0 25px;
  padding: 10px;
  font-weight: bold;
  font-size: 12px;
}
.red-btn {
  background: #f22921;
  color: white !important;
  min-height: 30px;
  line-height: 30px;
}
.bp-btn {
  width: auto;
  padding: 10px 20px !important;
  border-radius: 20px;
  display: inline-block;
  cursor: pointer;
  font-weight: 900 !important;
}
.site {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-image: url("../img/bg-main.jpg");
  background-size: cover;
  background-position: center top;
}

.site::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(6, 34, 28, .74), rgba(6, 34, 28, 0));
  pointer-events: none;
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 6;
  background: var(--aki-red);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 8px;
}

.aki-logo {
  width: clamp(85px, 10vw, 100px);
}

.promo-line {
  position: relative;
  z-index: 6;
  min-height: 45px;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(38, 52, 125, .94);
  text-align: center;
  font-size: clamp(17px, 2vw, 17px);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .24);
}

main {
  position: relative;
  z-index: 2;
}

.screen {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: calc(100vh - 140px);
  padding: clamp(28px, 5vw, 74px) 0 clamp(120px, 14vw, 210px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(.985);
  transition:
    opacity .5s ease,
    transform .55s cubic-bezier(.2, .75, .2, 1),
    visibility 0s linear .5s;
}

.screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.screen:not(.is-active) {
  position: absolute;
  inset: 0 0 auto;
}

.is-screen-transitioning .aki-button {
  pointer-events: none;
}

.wrapper {
  width: min(var(--wrapper), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.hero-grid,
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  /*align-items: center;*/
  align-items: normal;
  gap: clamp(26px, 5vw, 64px);
}

.hero-grid {
  grid-template-columns: minmax(500px, .98fr) minmax(520px, 1.02fr);
  gap: clamp(20px, 3vw, 46px);
}

.brand-lockup {
  width: min(540px, 100%);
  margin-left: -8px;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .28));
}

.intro-screen .brand-lockup {
  width: min(610px, 100%);
  margin-left: 0;
  transform: translateY(-14px);
}

.hero-copy {
  text-align: center;
  text-shadow: 0 4px 7px rgba(0, 0, 0, .35);
}

.hero-copy h1 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: .98;
}

.hero-copy h1 span {
  display: block;
  font-size: .6em;
}

.hero-copy p {
  margin: 18px 0 58px;
  font-size: clamp(32px, 3.7vw, 32px);
  line-height: 1.1;
}

.player-form {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.player-label {
  color: var(--yellow);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: .5px currentColor;
}

.player-input {
  width: min(300px, 350px);
  padding:6px 22px 7px;
  border: 5px solid #fff;
  border-radius: 999px;
  color: var(--aki-blue);
  background: rgba(255, 255, 255, .95);
  box-shadow: inset 0 5px 0 rgba(255, 225, 0, .28), 0 8px 12px rgba(0, 0, 0, .22);
  font-size: clamp(20px, 2.8vw, 25px);
  line-height: 1;
  text-align: center;
  outline: none;
}

.player-input::placeholder {
  color: rgba(38, 52, 125, .58);
}

.player-input:focus {
  border-color: var(--yellow);
  box-shadow: inset 0 5px 0 rgba(255, 225, 0, .34), 0 0 0 4px rgba(255, 225, 0, .28), 0 8px 12px rgba(0, 0, 0, .22);
}

.aki-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(300px, 100%);
  min-height: 75px;
  padding: 14px 46px 12px;
  border-radius: 999px;
  border: 7px solid #fff;
  color: var(--deep-blue);
  background: linear-gradient(180deg, #ffc12c 0 18%, var(--orange) 19% 100%);
  box-shadow: inset 0 8px 0 rgba(255, 230, 91, .42), 0 8px 0 rgba(190, 83, 0, .22);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(35px, 4.4vw, 35px);
  font-weight: bolder;
  line-height: .88;
  letter-spacing: 0;
  text-align: center;
  -webkit-text-stroke: 1px currentColor;
  transform: translateY(0) scale(1);
  transition:
    transform .22s ease,
    filter .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.aki-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9%;
  right: 9%;
  height: 28%;
  border-radius: 10px;
  background: rgba(255, 214, 56, .46);
  pointer-events: none;
}

.aki-button span {
  position: relative;
  z-index: 1;
}
.aki-button:hover,
.aki-button:focus-visible {
  transform: translateY(-4px) scale(1.025);
  color: var(--yellow);
  background: linear-gradient(180deg, #0068c8 0 18%, var(--deep-blue) 19% 100%);
  filter: saturate(1.12) brightness(1.05);
  box-shadow: inset 0 8px 0 rgba(74, 169, 255, .38), 0 13px 0 rgba(0, 39, 95, .28), 0 16px 22px rgba(0, 0, 0, .22);
}

.aki-button:hover::before,
.aki-button:focus-visible::before {
  background: rgba(74, 169, 255, .46);
}

.aki-button:active {
  transform: translateY(2px) scale(.99);
  color: var(--yellow);
  background: linear-gradient(180deg, #0058ad 0 18%, #003f86 19% 100%);
  filter: saturate(1.05) brightness(.98);
  box-shadow: inset 0 5px 0 rgba(74, 169, 255, .28), 0 4px 0 rgba(0, 39, 95, .3), 0 8px 12px rgba(0, 0, 0, .18);
}

.aki-button:focus-visible {
  outline: 4px solid rgba(255, 225, 0, .8);
  outline-offset: 5px;
}

.game-logo {
  width: min(320px, 42vw);
  margin: -50px 0 -68px -26px;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 9px 7px rgba(0, 0, 0, .3));
}

.game-shell {
  position: relative;
  overflow: hidden;
  border: 7px solid var(--yellow);
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .72), 0 12px 16px rgba(0, 0, 0, .28);
}

.game-shell::before {
  content: "";
  display: block;
  aspect-ratio: 1360 / 640;
}

.game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.game-help {
  /*max-width: 780px;*/
  margin: 26px auto 0;
  text-align: center;
  font-size: clamp(22px, 2.9vw, 22px);
  line-height: 1.12;
  text-shadow: 0 3px 5px rgba(0, 0, 0, .34);
}

.result-copy {
  text-align: center;
  text-shadow: 0 4px 7px rgba(0, 0, 0, .35);
}

.result-copy h2 {
  margin: 0 0 30px;
  font-size: clamp(30px, 4.3vw, 30px);
  line-height: 1.08;
}

.score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 38px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: .98;
}
.score span {
  font-size: clamp(25px, 4.4vw, 25px);
  position: relative;
  top: -25px;
  font-weight: lighter;
}

.score-number {
  color: var(--yellow);
  font-size: clamp(112px, 13vw, 135px);
  line-height: .76;
  text-shadow: none;
  letter-spacing: -25px;
}

.score-ball {
  width: clamp(55px, 6vw, 55px);
  margin-left: 0px;
  align-self: flex-end;
  transform: translateY(-6px);
}

.share-ribbon {
  width: min(100%, 385px);
  margin: 0 auto 28px;
  padding: 15px 20px 10px;
  border-radius: 10px;
  background: #df000b;
  box-shadow: 8px 10px 12px rgba(0, 0, 0, .28);
  font-size: clamp(22px, 3vw, 22px);
  line-height: 1.08;
  text-transform: uppercase;
}

.instructions {
  text-align: left;
  display: grid;
  gap: 18px;
  margin: 0 auto 36px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(19px, 2vw, 19px);
  line-height: 1.22;
}

.instructions p {
  margin: 0;
  position: relative;
  padding-left: 34px;
}

.instructions p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05em;
  width: 26px;
  height: 26px;
  background: url("../img/pelota.png") center / contain no-repeat;
}

.result-actions {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.players-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(58vw, 870px);
  z-index: 3;
  pointer-events: none;
}

.intro-screen .players-art {
  width: min(54vw, 820px);
  bottom: -42px;
}

.ball-art {
  position: absolute;
  right: max(-140px, -7vw);
  bottom: -110px;
  width: min(31vw, 460px);
  z-index: 3;
  pointer-events: none;
}

.horn {
  position: absolute;
  bottom: -24px;
  width: min(17vw, 240px);
  z-index: 3;
  pointer-events: none;
}

.horn-left {
  left: -18px;
}

.horn-right {
  right: -18px;
  transform: scaleX(-1);
}

.confetti-left,
.confetti-right {
  position: absolute;
  bottom: 0;
  width: min(22vw, 290px);
  z-index: 2;
  pointer-events: none;
  opacity: .95;
}

.confetti-left {
  left: 0;
}

.confetti-right {
  right: 0;
  transform: scaleX(-1);
}

.game-screen {
  padding-top: clamp(56px, 7vw, 100px);
}

.game-screen .wrapper {
  width: min(1100px, calc(100% - 40px));
}

.result-screen .brand-lockup {
  width: min(560px, 100%);
}

.result-screen .players-art {
  width: min(58vw, 850px);
}

@media (max-width: 900px) {
  .site {
    background-position: center top;
  }

  .screen {
    min-height: calc(100vh - 128px);
    padding-bottom: 260px;
  }

  .hero-grid,
  .result-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-lockup,
  .result-screen .brand-lockup {
    width: min(520px, 92%);
    margin: 0 auto;
  }

  .hero-copy p {
    margin-bottom: 28px;
  }

  .player-form {
    gap: 14px;
  }

  .players-art,
  .result-screen .players-art {
    width: min(100vw, 620px);
  }

  .ball-art {
    width: min(42vw, 260px);
    right: -78px;
    bottom: -54px;
  }

  .game-logo {
    width: min(270px, 62vw);
    margin: -34px auto -40px;
  }

  .game-shell {
    border-width: 5px;
    border-radius: 20px;
  }

  .game-screen .wrapper {
    width: min(1000px, calc(100% - 28px));
  }
}

@media (max-width: 560px) {
  .cv-header a {
    margin: 0;
  }
  .players-art, .result-screen .players-art {
    width: min(100vw, 620px) !important;
    bottom: 0 !important;
  }
  .game-logo {
    display: none;
  }
  .topbar {
    min-height: 60px;
  }

  .promo-line {
    min-height: 45px;
  }

  .screen {
    min-height: calc(100vh - 118px);
    padding-top: 26px;
    padding-bottom: 230px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 13vw, 45px);
  }

  .hero-copy p {
    font-size: clamp(28px, 10vw, 28px);

  }

  .player-label {
    font-size: clamp(22px, 7vw, 28px);
  }

  .player-input {
    min-height: 54px;
    border-width: 4px;
    font-size: clamp(22px, 7vw, 26px);
  }

  .aki-button {
    min-height: 68px;
    min-width: min(300px, 100%);
    padding-inline: 30px;
    border-width: 5px;
    font-size: clamp(36px, 12vw, 48px);
  }

  .score {
    flex-wrap: wrap;
    gap: 10px;
  }

  .score-number {
    font-size: clamp(94px, 28vw, 130px);
  }

  .share-ribbon {
    padding: 16px 18px 14px;
  }

  .instructions {
    gap: 12px;
  }

  .horn {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .screen,
  .aki-button {
    transform: none !important;
  }
}
