@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;700&family=Inter:wght@400;500;600;700&family=Nunito+Sans:wght@400;500&display=swap');

:root {
  --color-primary: #3d0088;
  --color-light-purple: #a88bff;
  --color-pale-purple: #c8b5ff;
  --color-white: #ffffff;
  --color-black: #000000;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.page {
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-white);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 60px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-white);
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-light {
  background-color: var(--color-light-purple);
}

.btn-dark {
  background-color: var(--color-primary);
}

.header {
  width: 100%;
  background-color: var(--color-white);
  padding: 7px max(30px, calc(50% - 570px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 58px;
}

.nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-black);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--color-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-black);
}

.footer {
  width: 100%;
  background-color: var(--color-white);
  border: 18px solid var(--color-light-purple);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.footer-inner {
  width: 1140px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 0 20px;
}

.footer-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 160px;
  line-height: 0.9;
  color: var(--color-primary);
  text-transform: uppercase;
  transform: rotate(-0.48deg);
  width: 100%;
  word-break: break-word;
}

.footer-info p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-black);
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  width: 44px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 260px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-black);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  color: var(--color-black);
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-white {
  background-color: var(--color-white);
  padding: 60px max(50px, calc(50% - 550px));
  gap: 40px;
}

.section-purple {
  background-color: var(--color-primary);
  padding: 40px max(19px, calc(50% - 581px));
  gap: 40px;
}

.section-pale {
  background-color: var(--color-pale-purple);
  padding: 60px max(50px, calc(50% - 550px));
  gap: 40px;
}

.section-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  width: 100%;
  word-break: break-word;
}

.section-title-purple {
  color: var(--color-primary);
  font-size: 80px;
  text-align: center;
}

.section-title-black {
  color: var(--color-black);
  font-size: 80px;
  text-align: center;
}

.section-title-left {
  text-align: left;
}

.section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.hero {
  position: relative;
  background-color: var(--color-primary);
  padding: 40px max(19px, calc(50% - 581px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  width: 100%;
}

.hero-image {
  position: absolute;
  left: calc(50% - 312px);
  top: 159px;
  width: 897px;
  height: 550px;
  object-fit: cover;
  pointer-events: none;
}

.hero-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 130px;
  line-height: 0.9;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  word-break: break-word;
  position: relative;
  z-index: 2;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 1100px;
  max-width: 100%;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-white);
  width: 238px;
}

.about {
  position: relative;
}

.about-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.about-image {
  width: 520px;
  height: 457px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text {
  width: 560px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kirby-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.kirby-left {
  left: calc(50% - 600px);
  top: 155px;
  width: 114px;
  height: 131px;
  transform: rotate(-28.67deg);
}

.kirby-right {
  left: calc(50% - 175px);
  top: 508px;
  width: 114px;
  height: 131px;
  transform: rotate(31.68deg);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.games-grid .game-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background-color: transparent;
  display: block;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.games-grid .game-card:hover {
  transform: translateY(-4px);
}

.games-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.features-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.1;
}

.feature-card.light {
  background-color: var(--color-light-purple);
  color: var(--color-white);
}

.feature-card.pale {
  background-color: var(--color-pale-purple);
  color: var(--color-black);
}

.feature-card.flex-grow {
  flex: 1;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
}

.feature-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
}

.story {
  position: relative;
}

.story-content {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  position: relative;
}

.story-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.story-text {
  width: 560px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-text strong {
  font-weight: 600;
  display: block;
}

.story-image {
  width: 520px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.story-kirby-top {
  position: absolute;
  left: 982px;
  top: -50px;
  width: 146px;
  height: 168px;
  pointer-events: none;
  z-index: 3;
}

.story-kirby-mid {
  position: absolute;
  left: 550px;
  top: 262px;
  width: 162px;
  height: 131px;
  transform: rotate(-28.67deg);
  pointer-events: none;
  z-index: 3;
}

.catalog {
  background-color: var(--color-white);
  padding: 40px max(30px, calc(50% - 570px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  overflow: hidden;
}

.catalog-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-primary);
  text-transform: uppercase;
  width: 100%;
  word-break: break-word;
}

.catalog-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

.catalog-arrow {
  width: 35px;
  height: 39px;
  flex-shrink: 0;
}

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

.catalog-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-black);
  width: 100%;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 73px;
  row-gap: 20px;
  width: 100%;
  justify-items: center;
  align-items: center;
}

.game-tile {
  background-color: var(--color-pale-purple);
  border: 1px solid var(--color-black);
  padding: 14px 14px 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 269px;
  height: 332px;
  color: var(--color-black);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-tile:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 8px 24px rgba(61, 0, 136, 0.15);
}

.game-tile-img {
  width: 241px;
  height: 241px;
  flex-shrink: 0;
  overflow: hidden;
}

.game-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile-name {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--color-black);
  width: 241px;
  word-break: break-word;
}

.game-tile.rotate-left {
  transform: rotate(-15deg);
}

.game-tile.rotate-right {
  transform: rotate(11.39deg);
}

.policy {
  background-color: var(--color-white);
  padding: 40px max(30px, calc(50% - 570px));
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.policy-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-primary);
  text-transform: uppercase;
  width: 100%;
  word-break: break-word;
}

.policy-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-black);
  width: 100%;
  word-break: break-word;
}

.policy-body p {
  margin-bottom: 10px;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul {
  margin: 0 0 10px 27px;
  padding: 0;
  list-style: disc;
}

.policy-body ul li {
  line-height: 1.1;
  margin: 0;
}

.policy-body a {
  text-decoration: underline;
  color: var(--color-black);
}

.policy-body a:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .policy {
    padding: 40px 20px;
    gap: 20px;
  }

  .policy-title {
    font-size: 42px;
  }

  .policy-body {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .policy-title {
    font-size: 32px;
  }

  .policy-body {
    font-size: 15px;
  }

  .policy-body ul {
    margin-left: 22px;
  }
}

.game {
  background-color: var(--color-primary);
  padding: 40px max(30px, calc(50% - 570px));
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
  overflow: hidden;
}

.game-header {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.game-card {
  background-color: var(--color-white);
  border: 1px solid #112e8d;
  width: 269px;
  height: 332px;
  padding: 14px 14px 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.game-card-img {
  width: 241px;
  height: 241px;
  flex-shrink: 0;
  overflow: hidden;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-name {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 0.9;
  color: #112e8d;
  text-transform: uppercase;
  width: 241px;
  word-break: break-word;
}

.game-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-white);
  text-transform: uppercase;
  word-break: break-word;
}

.game-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.game-actions {
  display: flex;
  gap: 80px;
  align-items: center;
}

.game-arrow {
  width: 35px;
  height: 39px;
  flex-shrink: 0;
}

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

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: #112e8d;
  border-radius: 100px;
  width: 174px;
  height: 58px;
  padding: 20px 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  border: none;
  cursor: pointer;
  text-transform: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-start:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.game-description {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-white);
  text-align: center;
}

@media (max-width: 1024px) {
  .game {
    padding: 40px 20px;
    gap: 20px;
    align-items: center;
  }

  .game-header {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .game-title {
    font-size: 50px;
    text-align: center;
    width: 100%;
  }

  .game-actions {
    gap: 30px;
  }

  .game-description {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 42px;
  }

  .game-card {
    width: 240px;
    height: auto;
    padding: 14px;
  }

  .game-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .game-card-name {
    width: 100%;
    font-size: 20px;
  }

  .btn-start {
    width: 140px;
    height: 50px;
    padding: 16px 30px;
  }
}

@media (max-width: 1024px) {
  .catalog {
    padding: 40px 20px;
    gap: 20px;
  }

  .catalog-title {
    font-size: 32px;
  }

  .catalog-text {
    font-size: 18px;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: stretch;
    align-items: stretch;
  }

  .game-tile {
    width: 100%;
    height: auto;
    padding: 14px;
    transform: none !important;
  }

  .game-tile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .game-tile-name {
    width: 100%;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .catalog-title {
    font-size: 28px;
  }

  .catalog-grid {
    gap: 15px;
  }

  .game-tile {
    padding: 10px;
  }

  .game-tile-name {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .header {
    padding: 7px 20px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 40px 20px;
    gap: 20px;
  }

  .hero-image {
    position: static;
    width: 100%;
    max-width: 430px;
    height: 300px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 50px;
    order: -1;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 20px;
  }

  .hero-text {
    width: 100%;
    text-align: left;
  }

  .hero .btn {
    align-self: center;
  }

  .section-white,
  .section-pale {
    padding: 40px 20px;
    gap: 20px;
  }

  .section-title-purple,
  .section-title-black {
    font-size: 32px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image,
  .story-image {
    width: 100%;
    max-width: 390px;
    height: 300px;
  }

  .about-text,
  .story-text {
    width: 100%;
  }

  .kirby-left {
    left: -8px;
    top: 55px;
    width: 81px;
    height: 94px;
  }

  .kirby-right {
    left: auto;
    right: -8px;
    top: 288px;
    width: 92px;
    height: 106px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
  }

  .games-grid .game-card {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
  }

  .features {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .features-col {
    display: contents;
  }

  .feature-card.light {
    order: 2;
  }

  .feature-card.pale {
    order: 1;
  }

  .story-content {
    flex-direction: column;
    align-items: center;
  }

  .story-text-wrap {
    order: 2;
    width: 100%;
  }

  .story-image {
    order: 1;
  }

  .story-kirby-top,
  .story-kirby-mid {
    display: none;
  }

  .footer {
    border-width: 8px;
    padding: 40px 0;
    gap: 20px;
  }

  .footer-inner {
    width: 100%;
    padding: 0 20px;
    gap: 20px;
  }

  .footer-title {
    font-size: 55px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-line {
    height: 1px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 7px 15px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title-purple,
  .section-title-black {
    font-size: 28px;
  }

  .footer-title {
    font-size: 42px;
  }

  .btn {
    padding: 14px 40px;
    font-size: 16px;
  }
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(18, 18, 18, 0.92);
  animation: cookie-fade 0.35s ease;
}

.cookie-overlay[hidden] {
  display: none;
}

.cookie-card {
  width: 100%;
  max-width: 1320px;
  background-color: var(--color-white);
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  animation: cookie-pop 0.4s ease;
}

.cookie-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 110px);
  line-height: 0.9;
  color: var(--color-primary);
  text-transform: uppercase;
}

.cookie-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--color-black);
  max-width: 1080px;
}

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

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

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.cookie-btn {
  min-width: 165px;
  padding: 22px 64px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px);
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@keyframes cookie-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cookie-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

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

@media (max-width: 768px) {
  .cookie-card {
    padding: 40px 22px;
    gap: 26px;
  }

  .cookie-actions {
    width: 100%;
    gap: 14px;
  }

  .cookie-btn {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
  }
}

/* ==========================================================================
   Scroll-reveal animations (only when JS is enabled and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  .js .hero-title,
  .js .hero-bottom,
  .js .section-title,
  .js .section-text,
  .js .about-content,
  .js .games-grid .game-card,
  .js .feature-card,
  .js .story-content,
  .js .catalog-title,
  .js .catalog-intro,
  .js .game-tile,
  .js .policy-title,
  .js .policy-body,
  .js .game-header,
  .js .game-actions-wrap {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .hero-title:not(.is-visible),
  .js .hero-bottom:not(.is-visible),
  .js .section-title:not(.is-visible),
  .js .section-text:not(.is-visible),
  .js .about-content:not(.is-visible),
  .js .games-grid .game-card:not(.is-visible),
  .js .feature-card:not(.is-visible),
  .js .story-content:not(.is-visible),
  .js .catalog-title:not(.is-visible),
  .js .catalog-intro:not(.is-visible),
  .js .game-tile:not(.is-visible),
  .js .policy-title:not(.is-visible),
  .js .policy-body:not(.is-visible),
  .js .game-header:not(.is-visible),
  .js .game-actions-wrap:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ==========================================================================
   Extra hover effects
   ========================================================================== */
.games-grid .game-card img,
.game-tile-img img,
.game-card-img img {
  transition: transform 0.4s ease;
}

.games-grid .game-card:hover img,
.game-tile:hover .game-tile-img img,
.game-card:hover .game-card-img img {
  transform: scale(1.06);
}

.about-image,
.story-image {
  transition: transform 0.4s ease;
}

.about-image:hover,
.story-image:hover {
  transform: scale(1.02);
}

.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(61, 0, 136, 0.18);
}

.brand-logo {
  transition: transform 0.4s ease;
}

.brand:hover .brand-logo {
  transform: rotate(8deg) scale(1.05);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.game-arrow img,
.catalog-arrow img {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.game-actions:hover .game-arrow img,
.catalog-intro:hover .catalog-arrow img {
  transform: rotate(45deg) translate(5px, 5px);
}

/* ==========================================================================
   Mobile navigation toggle
   ========================================================================== */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .header-inner.menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-basis: 100%;
    order: 3;
    gap: 16px;
    padding-top: 6px;
    animation: nav-drop 0.25s ease;
  }

  .burger span {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .header-inner.menu-open .burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header-inner.menu-open .burger span:nth-child(2) {
    opacity: 0;
  }

  .header-inner.menu-open .burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.inline-link {
  color: #9c84ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500
}

.inline-link:hover {
  opacity: .85
}

.editorial-meta {
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 14px;
  letter-spacing: .02em;
  position: relative;
}

.editorial-note {
  border-left: 2px solid #9c84ff;
  padding: 6px 0 6px 16px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6
}

.source-line {
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 0;
   color: #ffffff;
}

.dev-notice {
  display: block;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;

  text-align: center
}

.byline {
  text-align: center;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6
}