@font-face {
  font-family: Nunito;
  src: url(../fonts/Nunito-Black.woff2) format("woff2"),
       url(../fonts/Nunito-Black.woff) format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url(../fonts/Nunito-Regular.woff2) format("woff2"),
       url(../fonts/Nunito-Regular.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url(../fonts/Nunito-SemiBold.woff2) format("woff2"),
       url(../fonts/Nunito-SemiBold.woff) format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body,
#app {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  background-color: #779e63;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
  font-family: Nunito, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

#app {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Header */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: 100vw;
  padding: 0.75rem 1rem 0;
  gap: 0.5rem;
}

.title {
  width: min(300px, 50vw);
  height: 4em;
  margin: 0.5em auto;
  display: block;
  overflow: visible;
  justify-self: center;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.35rem;
  z-index: 2;
  min-height: 2.5rem;
}

.top-links-left {
  justify-content: flex-start;
}

.top-links-right {
  justify-content: flex-end;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 0 3px 0 #000;
  transition: transform 120ms ease, filter 120ms ease;
  -webkit-text-stroke: 0;
}

.top-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 #000;
}

.top-btn[hidden] {
  display: none !important;
}

.top-btn-x {
  background: #111;
}

.top-btn-pump {
  background: #00d18d;
  color: #062318;
}

@media (min-width: 800px) {
  .title {
    width: min(300px, 40vw);
    height: 5em;
  }

  .top-btn {
    min-height: 2.75rem;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
  }
}

/* Monke */
.cat-img {
  height: 0;
  flex-grow: 1;
  width: 100%;
  max-width: 800px;
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  touch-action: manipulation;
  text-align: center;
  color: #fff;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #000;
  paint-order: stroke fill;
  font-weight: 900;
  font-size: 80px;
  word-wrap: break-word;
}

@media (min-width: 1000px) {
  .cat-img {
    font-size: 40px;
    -webkit-text-stroke-width: 1.5px;
  }
}

.cat-img.p,
.cat-img.p.bot {
  background-image: url(../img/monke-p.png);
}

.cat-img.op,
.cat-img.op.bot {
  background-image: url(../img/monke-op.png);
}

.cat-img .counter {
  display: inline-block;
}

.pop-out-enter-active {
  transition: transform 80ms ease-in-out;
}

.pop-out-enter.rot-ll {
  transform: scale(1.2) rotate(-10deg);
}

.pop-out-enter.rot-l {
  transform: scale(1.2) rotate(-5deg);
}

.pop-out-enter.rot-c {
  transform: scale(1.3) rotate(0deg);
}

.pop-out-enter.rot-r {
  transform: scale(1.2) rotate(5deg);
}

.pop-out-enter.rot-rr {
  transform: scale(1.2) rotate(10deg);
}

.pop-out-enter-to {
  transform: scale(1);
}
