:root {
  --color-purple: #884dff;
  --color-pink: #e700c5;
  --color-orange: #ff7300;
  --color-dark: #1c1c1c;
  --color-white: #ffffff;
  --gradient: linear-gradient(90deg, #e700c5 0%, #ff7300 100%);
  --container-width: 1200px;
  --container-padding: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dark);
  background: #fff;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1368px) {
  .container {
    padding: 0;
  }
}

/* ===== Reusable text styles ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 40px;
  border-radius: 60px;
  border: 2px solid #fff;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 0, 197, 0.35);
}

/* ===== Header ===== */
.header {
  background: #fff;
  padding: 20px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  width: 30px;
  height: 30px;
}

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

.logo__text {
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--color-dark);
  white-space: nowrap;
}

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

.nav a {
  font-size: 14px;
  color: var(--color-dark);
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--color-purple);
  overflow: hidden;
  padding: 125px 0 125px;
  min-height: 666px;
}

.hero__border {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: calc(100% - 48px);
  height: 95px;
  background-image: url(/wp-content/themes/quarkvirexzorath/../img/zigzag-border.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 2;
}

.hero__border--top {
  top: 0;
}

.hero__border--bottom {
  bottom: 0;
  transform: translateX(-50%) scaleY(-1);
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 104px;
}

.hero__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: #fff;
}

.hero__title {
  font-weight: 800;
  font-size: 70px;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.hero__desc {
  width: 309px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

.hero__cta-block {
  width: 298px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

.hero__cta-text {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

.hero__panda {
  position: absolute;
  left: 50%;
  top: 118px;
  transform: translateX(-50%);
  width: 562px;
  height: 548px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* ===== About ===== */
.about {
  padding: 60px 0;
}

.about__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 387px 381px 387px;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.about__image {
  width: 387px;
  height: 620px;
  object-fit: contain;
}

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

.about__dice {
  font-size: 80px;
  line-height: 1;
}

.about__col p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dark);
}

.about__heading {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.about__sub {
  font-weight: 800;
  font-size: 14px;
  margin-top: 6px;
}

.about__col--advantages {
  gap: 10px;
}

.about__col--advantages .btn {
  margin-top: 20px;
}

/* ===== Gallery ===== */
.gallery {
  padding: 50px 0 60px;
}

.gallery .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.gallery__desc {
  max-width: 899px;
  font-size: 14px;
  line-height: 1.4;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 285px);
  gap: 20px;
  width: 100%;
}

.gallery__item {
  width: 285px;
  height: 440px;
  border: 5px solid var(--color-pink);
  border-radius: 30px;
  overflow: hidden;
}

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

/* ===== Trending (purple) ===== */
.trending {
  position: relative;
  background: var(--color-purple);
  padding: 135px 0 135px;
  overflow: hidden;
}

.trending__border {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: calc(100% - 48px);
  height: 95px;
  background-image: url(/wp-content/themes/quarkvirexzorath/../img/zigzag-border.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 2;
}

.trending__border--top { top: 0; }
.trending__border--bottom {
  bottom: 0;
  transform: translateX(-50%) scaleY(-1);
}

.trending__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  color: #fff;
}

.trending__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  max-width: 900px;
}

.trending__desc {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  max-width: 900px;
}

.trending__games {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.trending__row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.trending__game {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

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

.trending__game a{
  position: absolute;
  inset: 0;
}

/* ===== Adventure ===== */
.adventure {
  padding: 60px 0;
}

.adventure__grid {
  display: grid;
  grid-template-columns: 434px 1fr;
  gap: 30px;
  align-items: center;
}

.adventure__image {
  width: 434px;
  height: 440px;
  border: 5px solid var(--color-pink);
  border-radius: 30px;
  overflow: hidden;
}

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

.adventure__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.adventure__content > p {
  font-size: 14px;
  line-height: 1.5;
}

.adventure__contact {
  font-weight: 700;
  font-size: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0 30px;
  background: #fff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer__nav a {
  font-size: 14px;
  color: var(--color-dark);
  transition: opacity 0.2s ease;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.footer__socials a {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__socials img {
  width: 100%;
  height: 100%;
}

.footer__copy {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.5);
}

.footer__mascot {
  width: 407px;
  height: 464px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== Policy pages ===== */
.policy-hero {
  background: var(--color-purple);
  padding: 70px 0;
}

.policy-hero__title {
  font-weight: 800;
  font-size: 70px;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.policy {
  padding: 60px 0;
}

.policy__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.policy__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy__heading {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dark);
}

.policy__block p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
}

.policy__contact {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .policy-hero {
    padding: 50px 0;
  }
  .policy-hero__title {
    font-size: 40px;
  }
}

/* ===== Game page ===== */
.game-hero {
  background: var(--color-purple);
  margin-top: 20px;
  padding: 40px 153px;
  overflow: hidden;
}

.game-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.game-hero__avatar {
  width: 220px;
  height: 220px;
  border-radius: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.game-hero__title {
  margin: 0;
  font-weight: 800;
  font-size: 60px;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  width: 100%;
}

.game-hero__text {
  margin: 0;
  font-size: 14px;
  line-height: normal;
  text-align: center;
  color: #fff;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 40px;
  border: 2px solid #fff;
  border-radius: 60px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(231, 0, 197, 0.25);
}

.feature {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 1200px;
  max-width: calc(100% - 168px);
  margin: 92px auto 0;
}

.feature__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  flex: 1 1 0;
  min-width: 0;
}

.feature--text-first .feature__content {
  width: 710px;
  max-width: 710px;
  flex: 0 0 auto;
}

.feature--image-first .feature__content {
  width: 736px;
  max-width: 736px;
  flex: 0 0 auto;
}

.feature__title {
  margin: 0;
  font-weight: 800;
  font-size: 60px;
  line-height: normal;
  text-transform: uppercase;
  width: 100%;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.feature__body {
  width: 100%;
  font-size: 14px;
  line-height: normal;
  color: var(--color-dark);
}

.feature__body p {
  margin: 0 0 1em 0;
}

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

.feature__media {
  flex-shrink: 0;
}

.feature__media--plain {
  width: 460px;
  height: 300px;
  border-radius: 26px;
  overflow: hidden;
}

.feature__media--framed {
  width: 434px;
  height: 440px;
  border: 5px solid var(--color-pink);
  border-radius: 30px;
  overflow: hidden;
}

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

.contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__line {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Cookies ===== */
.cookies {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.cookies__card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 4px solid var(--color-purple);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cookies__icon {
  font-size: 60px;
  line-height: 1;
}

.cookies__title {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
}

.cookies__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-dark);
  margin: 0;
}

.cookies__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cookies__btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  padding: 20px 44px;
  border-radius: 60px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookies__btn--primary {
  background: var(--gradient);
  color: #fff;
  border: none;
}

.cookies__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 0, 197, 0.35);
}

.cookies__btn--secondary {
  background: #fff;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.cookies__btn--secondary:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .game-hero {
    padding: 40px 60px;
  }
  .game-hero__title {
    font-size: 48px;
  }
  .feature {
    max-width: calc(100% - 80px);
  }
  .feature__title {
    font-size: 48px;
  }
}

@media (max-width: 960px) {
  .game-hero {
    padding: 40px 30px;
  }
  .game-hero__title {
    font-size: 36px;
  }
  .game-hero__avatar {
    width: 160px;
    height: 160px;
  }
  .feature {
    flex-direction: column;
    margin-top: 60px;
  }
  .feature--image-first {
    flex-direction: column;
  }
  .feature--text-first .feature__content,
  .feature--image-first .feature__content {
    width: 100%;
    max-width: 100%;
  }
  .feature__title {
    font-size: 36px;
  }
  .feature__media--plain,
  .feature__media--framed {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 460 / 300;
  }
  .feature__media--framed {
    aspect-ratio: 434 / 440;
  }
}

@media (max-width: 560px) {
  .game-hero__title {
    font-size: 28px;
  }
  .feature__title {
    font-size: 28px;
  }
  .btn-primary {
    padding: 18px 30px;
  }
}

@media (max-width: 1280px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
  .about__image {
    grid-column: 1 / -1;
    margin: 0 auto;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__item {
    width: 100%;
  }
  .adventure__grid {
    grid-template-columns: 1fr;
  }
  .adventure__image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .footer__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    text-align: left;
  }
  .footer__mascot {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    padding: 110px 0;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__panda {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 30px auto 0;
  }
  .hero__inner {
    align-items: stretch;
  }
  .hero__desc,
  .hero__cta-block {
    width: 100%;
  }
  .section-title,
  .trending__title {
    font-size: 36px;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__image {
    width: 100%;
    max-width: 380px;
    height: auto;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .gallery__item {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .trending__game {
    width: 140px;
    height: 140px;
  }
  .footer__mascot {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  .cookies__card {
    padding: 28px 24px;
    border-radius: 24px;
    gap: 18px;
  }
  .cookies__title {
    font-size: 26px;
  }
  .cookies__text {
    font-size: 14px;
  }
  .cookies__actions {
    flex-direction: column;
  }
  .cookies__btn {
    width: 100%;
    padding: 18px 28px;
  }
}
