:root {
  --paper: #fff;
  --ink: #000;
  --muted: #6f6f6f;
  --line: #000;
  --cyan: #34e4cb;
  --yellow: #ffd166;
  --page-pad: clamp(20px, 5vw, 80px);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.lang-pt {
  display: none;
}

.page-pt .lang-en {
  display: none;
}

.page-pt .lang-pt {
  display: inline;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px var(--page-pad);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(10px);
}

.js .site-header {
  animation: header-enter 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  width: 74px;
  height: 74px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 2px solid var(--line);
  cursor: pointer;
}

.language-switch__en,
.language-switch__pt {
  opacity: 0.35;
}

.language-switch__en,
.page-pt .language-switch__pt {
  opacity: 1;
}

.page-pt .language-switch__en {
  opacity: 0.35;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-bottom-color: var(--ink);
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.hero {
  min-height: calc(100svh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(240px, 320px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 80px);
  padding: 64px 0 72px;
}

.hero__copy {
  min-width: 0;
}

.js .hero__copy {
  animation: reveal-up 720ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.section-kicker,
.game__meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__mark {
  justify-self: end;
  display: grid;
  gap: 0;
  width: min(100%, 408px);
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(92px, 10vw, 136px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.js .hero__mark {
  animation: mark-enter 760ms 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-stripe {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 68fr 32fr;
  width: 100%;
  height: 12px;
}

.brand-stripe span {
  transform-origin: left center;
}

.js .hero .brand-stripe span {
  animation: stripe-enter 780ms 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.js .hero .brand-stripe__yellow {
  animation-delay: 600ms;
}

.brand-stripe__cyan {
  background: var(--cyan);
}

.brand-stripe__yellow {
  background: var(--yellow);
}

.section {
  position: relative;
  padding: 96px 0;
  border-top: 0;
}

.section::before,
.game::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--line);
  transform-origin: left center;
}

.js .section::before,
.js .game::before {
  transform: scaleX(0);
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .section:has(.is-visible)::before,
.js .game:has(.is-visible)::before {
  transform: scaleX(1);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 96px);
}

h2 {
  max-width: 760px;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.intro > p,
.game__content > p {
  max-width: 680px;
  color: #191919;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.12;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 36px 0;
  border-top: 0;
}

.game:last-child {
  border-bottom: 2px solid var(--line);
}

.game__media {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #f7f7f7;
}

.js .game__media {
  clip-path: inset(0 0 100% 0);
  transform: translateY(28px);
}

.js .game__media.is-visible {
  clip-path: inset(0);
  transform: translateY(0);
  transition:
    clip-path 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game__logo {
  position: relative;
  z-index: 1;
  max-width: min(76%, 360px);
}

.js .game__media .game__logo {
  opacity: 0;
  transform: scale(0.94);
}

.js .game__media.is-visible .game__logo {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 520ms 280ms ease,
    transform 720ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game__logo--orbitwars {
  max-width: min(72%, 380px);
}

.game__media--orbitwars {
  background: #000;
}

.game__media--orbitwars::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  content: "";
  background: linear-gradient(90deg, var(--cyan) 0 68%, var(--yellow) 68% 100%);
  transform-origin: left center;
}

.js .game__media--orbitwars::after {
  transform: scaleX(0);
}

.js .game__media--orbitwars.is-visible::after {
  transform: scaleX(1);
  transition: transform 620ms 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game__media--flat {
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(90deg, var(--cyan) 0 68%, var(--yellow) 68% 100%) border-box;
  border: 2px solid transparent;
}

.game__logo--cucarank {
  max-width: min(70%, 300px);
}

.mini-games {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
}

.mini-games img {
  width: 56px;
  height: 56px;
  padding: 10px;
  background: var(--paper);
  border: 2px solid var(--line);
}

.game__content {
  align-self: center;
}

h3 {
  margin-bottom: 20px;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 10px;
  border: 2px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  box-shadow: 8px 8px 0 var(--yellow);
  transform: translate(-2px, -2px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 560ms var(--reveal-delay, 0ms) ease,
    transform 680ms var(--reveal-delay, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal-item {
  opacity: 0;
  transform: translateY(14px);
}

.js .game__content.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms var(--item-delay, 0ms) ease,
    transform 520ms var(--item-delay, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px var(--page-pad) 42px;
}

.site-footer .brand-stripe {
  margin-bottom: 32px;
}

.js .site-footer .brand-stripe span {
  transform: scaleX(0);
}

.js .site-footer .brand-stripe.is-visible span {
  transform: scaleX(1);
  transition: transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .site-footer .brand-stripe.is-visible .brand-stripe__yellow {
  transition-delay: 120ms;
}

.site-footer p {
  margin-bottom: 12px;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.site-footer a {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.not-found {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 28px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--page-pad);
}

.not-found .brand {
  width: 92px;
  height: 92px;
}

.not-found h1 {
  max-width: 820px;
}

.not-found .button {
  width: fit-content;
}

.not-found .brand-stripe {
  max-width: 680px;
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-enter {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes stripe-enter {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js .reveal,
  .js .reveal-item,
  .js .game__media,
  .js .game__media .game__logo {
    clip-path: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 58px;
    height: 58px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .language-switch {
    min-height: 26px;
    padding: 0 6px;
  }

  .hero,
  .intro,
  .game {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__mark {
    justify-self: start;
    width: 100%;
    max-width: 360px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .game__media {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
  }

  .brand {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .nav-links {
    flex: 1;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .language-switch {
    gap: 4px;
    min-height: 24px;
    padding: 0 5px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero__mark {
    font-size: clamp(84px, 28vw, 128px);
  }

  .game__media {
    min-height: 240px;
  }

  .mini-games img {
    width: 48px;
    height: 48px;
  }
}

/* Legal / privacy pages */
.legal {
  padding: 64px 0 120px;
}

.legal__head {
  padding: 16px 0 40px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 48px;
}

.legal__head h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  max-width: 920px;
}

.legal__head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal__toc {
  margin: 0 0 56px;
  padding: 24px;
  border: 2px solid var(--line);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 32px;
  font-size: 14px;
  font-weight: 700;
}

.legal__toc a {
  border-bottom: 2px solid transparent;
}

.legal__toc a:hover,
.legal__toc a:focus-visible {
  border-bottom-color: var(--ink);
}

.legal__section {
  padding: 32px 0;
  border-top: 2px solid var(--line);
  max-width: 880px;
}

.legal__section:first-of-type {
  border-top: 0;
}

.legal__section h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal__section h3 {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 8px;
}

.legal__section p,
.legal__section li {
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  font-weight: 500;
}

.legal__section p + p,
.legal__section ul,
.legal__section ol {
  margin-top: 12px;
}

.legal__section ul,
.legal__section ol {
  padding-left: 22px;
}

.legal__section li + li {
  margin-top: 6px;
}

.legal__section a {
  border-bottom: 2px solid var(--ink);
}

.legal__section strong {
  font-weight: 900;
}

.legal__contact {
  margin-top: 16px;
  padding: 20px;
  border: 2px solid var(--line);
  background: #fafafa;
  font-size: 14px;
  line-height: 1.6;
}
