:root {

  --gradient-start: #83dc00;
  --gradient-end: #fff0a3;

  --lime-gradient: linear-gradient(to bottom right, var(--gradient-start), var(--gradient-end));
  --footer-green: #618b2b;
  --footer-dark: #141c0c;
  --play-gradient: linear-gradient(to bottom right, #ff0000, #ffa3e3);
  --pale-green: #effbdc;
  --white: #ffffff;
  --text-dark: #111111;
  --placeholder-grey: rgba(128, 128, 128, 0.45);

  --font-display: "Rubik One", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;

  --edge-width: max(5px, 0.347vw);
  --overlap: 4vw;
  --peek-room: 1vw;
  --fold-peek: calc(0.6vw + var(--peek-room));

  --band-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  --card-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  --image-shadow: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

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

html,
body {
  overflow-x: clip;
}

html {
  background: var(--footer-dark);
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--white);
  color: var(--text-dark);
}

body:has(> main) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

body > main {
  flex: 1;
}

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

[hidden] {
  display: none !important;
}

.slide__image,
.slide__logo img,
.game-row__icon .picture-frame__image,
.play-page__logo {
  image-rendering: pixelated;
}

.is-fallback {
  image-rendering: auto;
}

h1, h2, h3, p {
  margin: 0;
  font-weight: 400;
}

.text-outline {
  --outline-width: 0.08em;
  --outline-color: #6e8c2d;
  --outline-opacity: 0.85;

  position: relative;
  isolation: isolate;
  color: var(--white);
}

.text-outline::before {
  content: attr(data-outline-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  color: var(--outline-color);
  opacity: var(--outline-opacity);
  filter: drop-shadow(0 0 0.15em rgba(0, 0, 0, 0.3));
  text-shadow:
    calc(var(--outline-width) * 1) 0 0 currentColor,
    calc(var(--outline-width) * 0.924) calc(var(--outline-width) * 0.383) 0 currentColor,
    calc(var(--outline-width) * 0.707) calc(var(--outline-width) * 0.707) 0 currentColor,
    calc(var(--outline-width) * 0.383) calc(var(--outline-width) * 0.924) 0 currentColor,
    0 calc(var(--outline-width) * 1) 0 currentColor,
    calc(var(--outline-width) * -0.383) calc(var(--outline-width) * 0.924) 0 currentColor,
    calc(var(--outline-width) * -0.707) calc(var(--outline-width) * 0.707) 0 currentColor,
    calc(var(--outline-width) * -0.924) calc(var(--outline-width) * 0.383) 0 currentColor,
    calc(var(--outline-width) * -1) 0 0 currentColor,
    calc(var(--outline-width) * -0.924) calc(var(--outline-width) * -0.383) 0 currentColor,
    calc(var(--outline-width) * -0.707) calc(var(--outline-width) * -0.707) 0 currentColor,
    calc(var(--outline-width) * -0.383) calc(var(--outline-width) * -0.924) 0 currentColor,
    0 calc(var(--outline-width) * -1) 0 currentColor,
    calc(var(--outline-width) * 0.383) calc(var(--outline-width) * -0.924) 0 currentColor,
    calc(var(--outline-width) * 0.707) calc(var(--outline-width) * -0.707) 0 currentColor,
    calc(var(--outline-width) * 0.924) calc(var(--outline-width) * -0.383) 0 currentColor;
}

.text-outline--lg    { --outline-width: 0.07em; }
.text-outline--sm    { --outline-width: 0.11em; }
.text-outline--dark  { --outline-width: 0.08em; --outline-color: #3e5c1a; --outline-opacity: 1; }
.text-outline--red   { --outline-color: #9e2a3a; --outline-opacity: 0.55; }

.band {
  --tilt: 0deg;

  position: relative;
  z-index: 2;
  width: 104vw;
  margin-left: -2vw;
  margin-block: calc(-1 * var(--overlap));
  transform: rotate(var(--tilt));

  background: var(--lime-gradient);

  padding-block: var(--edge-width);
  box-shadow:
    inset 0 var(--edge-width) 0 var(--white),
    inset 0 calc(-1 * var(--edge-width)) 0 var(--white),
    var(--band-shadow);
  color: var(--white);
  text-align: center;
}

.band__inner {
  width: 100vw;
  margin-inline: auto;
  padding: 2.4vw 20px 2vw;
}

.band--tilt-up   { --tilt: -3deg; }

.band--tilt-up .band__inner {
  padding-top: calc(2.4vw + var(--peek-room));
}
.band--tilt-down { --tilt: 1.5deg; }

.band__title {
  font-size: clamp(1.6rem, 4.8vw, max(4rem, 4.444vw));
  line-height: 1.1;
}

.band__subtitle {
  margin-top: 0.4em;
  font-size: clamp(0.6rem, 1.3vw, max(1.1rem, 1.222vw));
}

.band--header {
  --tilt: 1deg;

  z-index: 3;
  margin-top: -3vw;
  padding-top: 3vw;

  box-shadow:
    inset 0 calc(-1 * var(--edge-width)) 0 var(--white),
    var(--band-shadow);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(0.8vw + 8px) 3vw calc(0.6vw + 6px);
}

.header__logo {
  position: absolute;
  top: calc(0.4vw + 6px);
  left: 3vw;
}

.header__logo img {
  height: clamp(64px, 9vw, max(120px, 8.333vw));
  transform: rotate(calc(-1 * var(--tilt)));
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.45));
}

.header__nav {
  display: flex;
  gap: 0.9em;
  font-size: clamp(0.9rem, 2.3vw, max(1.9rem, 2.111vw));
}

.header__nav a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.header__nav a::after,
.social-icon::after,
.carousel__dots button::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.header__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-left: 0.2em;
}

.social-icon {
  position: relative;
  display: block;
  height: 1.15em;
}

.social-icon img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.55));
}

.social-icon:has(.is-missing) {
  width: 1.15em;
  border-radius: 25%;
  background: rgba(255, 255, 255, 0.35);
}

.first-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh + var(--overlap) - var(--fold-peek));
}

.carousel {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel__side {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 10%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel__side--prev {
  left: 0;
}

.carousel__side--next {
  right: 0;
}

@media (hover: hover) {
  .carousel__side {
    display: block;
  }

  .carousel__side--prev:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent);
  }

  .carousel__side--next:hover {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.18), transparent);
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
  background: var(--slide-bg, #d9d9d9);
}

.slide__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide__content {
  position: absolute;
  top: calc(var(--overlap) + 8vw);
  left: 10%;
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.slide__logo {
  width: 100%;
}

.slide__logo img {
  width: 100%;
  height: auto;
  max-height: 50svh;
  object-fit: contain;
}

.is-missing {
  display: none;
}

.slide__logo:has(.is-missing) {
  aspect-ratio: 2 / 1;
  background: var(--placeholder-grey);
}

.carousel__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(var(--overlap) + 3%);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel__dots button {
  position: relative;
  width: clamp(16px, 2.2vw, max(24px, 1.667vw));
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s;
}

.carousel__dots button:hover,
.carousel__dots button[aria-selected="true"] {
  opacity: 1;
}

.about {
  position: relative;
  z-index: 1;
  background: var(--pale-green);
  padding: calc(var(--overlap) + 2.8vw + 20px) 4vw calc(var(--overlap) + 1.4vw + 54px);
}

.about__grid {
  max-width: max(1200px, 83.333vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 3vw;
  row-gap: 4vw;
}

.card--first            { grid-column: 1 / 3; grid-row: 1; }
.about__picture--first  { grid-column: 3 / 6; grid-row: 1; }
.about__picture--second { grid-column: 1 / 4; grid-row: 2; }
.card--second           { grid-column: 4 / 6; grid-row: 2; }

.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card__title {
  padding: 0.9em 1em;
  background: var(--lime-gradient);
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, max(1.2rem, 1.333vw));
}

.card__title span {
  display: inline-block;
}

.card__body {
  min-height: clamp(160px, 20vw, max(260px, 18.056vw));
  padding: 1.2em 1.4em;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, max(1.1rem, 1.222vw));
  line-height: 1.6;
  color: var(--text-dark);
}

.card__body p + p {
  margin-top: 0.8em;
}

.card__body a {
  color: var(--footer-green);
}

.picture-frame {
  position: relative;
  border: var(--edge-width) solid var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.picture-frame:has(.is-fallback) {
  background: #d9d9d9;
}

.picture-frame__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.picture-frame__image.is-fallback {
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: var(--image-shadow);
}

.footer {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.footer__contact {
  padding: calc(var(--overlap) + 56px) 20px 64px;
  background: var(--footer-green);
  text-align: center;
  font-size: clamp(0.95rem, 1.8vw, max(1.25rem, 1.389vw));
  line-height: 1.5;
}

.footer__contact a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 4vw 28px;
  background: var(--footer-dark);
}

.footer__logo img {
  height: clamp(64px, 8vw, max(100px, 6.944vw));
  filter: var(--image-shadow);
}

.footer__links {
  display: flex;
  gap: clamp(32px, 8vw, max(120px, 8.333vw));
  margin-right: 4vw;
  font-family: var(--font-body);
}

.footer__links a,
.footer__links span {
  color: #dfe6d3;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__heading {
  font-size: clamp(1rem, 1.6vw, max(1.3rem, 1.444vw));
}

.footer__column ul {
  list-style: none;
  margin: 0.3em 0 0;
  padding-left: 1em;
  font-size: clamp(0.8rem, 1.1vw, max(0.95rem, 1.056vw));
  line-height: 1.4;
}

.games-page {
  position: relative;
  z-index: 1;
  background: var(--pale-green);

  padding: calc(var(--overlap) + 2.5vw) 6vw 8vw;
}

.page-title {
  width: fit-content;
  margin: 0 auto 3vw;
  padding: 0.25em 1em;
  background: var(--lime-gradient);
  border: var(--edge-width) solid var(--white);
  border-radius: 8px;
  box-shadow: var(--band-shadow);
  font-size: clamp(1.3rem, 3.4vw, max(2.9rem, 3.222vw));
  line-height: 1.1;
}

.page-title span {
  display: inline-block;
}

.game-list {
  max-width: max(1000px, 69.444vw);
  margin-inline: auto;
  display: grid;
  gap: 4vw;
}

.game-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  column-gap: 5vw;
}

.game-row:nth-child(even) {
  grid-template-columns: 3fr 2fr;
}

.game-row:nth-child(even) .game-row__icon {
  order: 2;
}

.game-row__icon {

  aspect-ratio: 630 / 500;
  box-sizing: content-box;
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-card .card__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.play-button {
  margin-top: auto;
  align-self: flex-end;
  padding: 0.3em 1em;
  background: var(--play-gradient);
  border: var(--edge-width) solid var(--white);
  border-radius: 11px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, max(1.3rem, 1.444vw));
  text-decoration: none;
  transition: filter 0.15s;
}

.play-button:hover {
  filter: brightness(1.08);
}

.play-button--steam {
  background: linear-gradient(to bottom right, #171a21, #66c0f4);
}

.play-button--steam .text-outline {
  --outline-color: #0b1620;
  --outline-opacity: 0.6;
}

.play-button span {
  display: inline-block;
}

.team-page {
  position: relative;
  z-index: 1;
  background: var(--pale-green);
  padding: calc(var(--overlap) + 2.5vw) 5vw 6vw;
}

.team-list {
  max-width: max(1100px, 76.389vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3vw;
  row-gap: 5vw;
}

@media (max-width: 900px) {
  .team-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 8vw;
  }
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vw;
  width: 100%;
  max-width: max(280px, 19.444vw);
  justify-self: center;
}

.team-member__photo {
  position: relative;
  width: 90%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: var(--edge-width) solid var(--white);
  overflow: hidden;
  background: var(--lime-gradient);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

.team-member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.team-member__card {
  width: 100%;
  container-type: inline-size;
}

.team-member__card .card__title {
  padding: 0.45em 0.6em;
  font-size: clamp(0.95rem, 1.6vw, max(1.4rem, 1.556vw));
}

.team-member__role {
  padding: 0.35em 1em 0.45em;
  font-family: var(--font-body);
  font-size: 6.8cqi;
  white-space: nowrap;
  text-align: center;
  color: var(--text-dark);
}

.play-page {
  position: relative;
  z-index: 1;
  background: var(--pale-green);
  padding: calc(var(--overlap) + 2vw) 6vw 8vw;
  text-align: center;
}

.play-page__title {
  margin-bottom: 2vw;
  font-size: clamp(1.8rem, 5vw, max(4.5rem, 5vw));
  line-height: 1.1;
  color: var(--text-dark);
}

.play-page__logo {
  max-height: clamp(80px, 12vw, max(180px, 12.5vw));
  width: auto;
  margin-inline: auto;
}

.game-embed {
  position: relative;
  overflow: hidden;
  box-sizing: content-box;
  max-width: calc(100% - 2 * var(--edge-width));
  margin-inline: auto;
  background: var(--lime-gradient);
  border: var(--edge-width) solid var(--white);
  box-shadow: var(--band-shadow);
}

.game-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
}

@media (max-width: 600px) {
  :root {
    --overlap: 7vw;
  }

  .header__inner {
    padding-inline: 16px;
  }

  .slide__content {
    left: 16px;
    right: 16px;
    width: auto;
    gap: 12px;
  }

  .carousel {
    min-height: 520px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .card--first,
  .card--second,
  .about__picture--first,
  .about__picture--second {
    grid-column: 1;
    grid-row: auto;
  }

  .card--second           { order: 3; }
  .about__picture--second { order: 4; }

  .about .picture-frame {
    aspect-ratio: 16 / 9;
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    margin-right: 0;
  }

  .game-row,
  .game-row:nth-child(even) {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .game-row:nth-child(even) .game-row__icon {
    order: 0;
  }

  .game-row__icon {
    width: 80%;
    justify-self: center;
  }

  .team-list {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .team-member {
    gap: 12px;
  }

  .play-page {
    padding-top: calc(var(--overlap) + 64px);
  }

  .footer__column ul a {
    display: inline-block;
    padding: 6px 0;
  }

  .footer__heading {
    display: inline-block;
    padding: 6px 0;
  }
}

@media (max-width: 360px) {
  .header__nav {
    gap: 0.7em;
    font-size: 0.8rem;
  }
}
