:root {
  --bg-black: #000000;
  --bg-navy: #050a25;
  --gold: #eeb909;
  --gold-soft: rgba(233, 198, 102, .35);
  --gold-gradient: linear-gradient(90deg, #fffef6 0%, #f3dc96 20%, #fff8dd 50%, #d8af50 75%, #fffef6 100%);
  --btn-gradient: linear-gradient(135deg, #6d4cff, #5865F2, #4752c4);
  --text-white: #ffffff;
  --font-body: 'Poppins', sans-serif;
  --font-nav: 'Roboto', sans-serif;
  --font-display: 'Cinzel', serif;
  --max-width: 1224px;
}

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

body {
  background: var(--bg-navy);
  color: var(--text-white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  flex-wrap: wrap;
}

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

.logo__icon { width: 36px; height: 24px; }

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #39c8ff, #a25bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 15px;
  color: var(--gold);
  transition: opacity .2s ease;
}

.main-nav a:hover { opacity: .75; }

.main-nav a.is-active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.has-dropdown { position: relative; }

.has-dropdown .caret { font-size: 11px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--bg-black);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
  z-index: 20;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a { display: block; padding: 8px 18px; white-space: nowrap; }
.dropdown a:hover { background: rgba(238, 185, 9, .08); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 3px;
  margin-right: 6px;
}

.lang-switch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .15s ease, background .15s ease;
}

.lang-switch__btn:hover { opacity: .8; }
.lang-switch__btn.is-active { opacity: 1; background: rgba(238,185,9,.18); }

.social-icon, .cart-icon { color: var(--gold); width: 22px; height: 22px; }
.social-icon svg, .cart-icon svg { width: 100%; height: 100%; }
.social-icon:hover, .cart-icon:hover { opacity: .75; }

/* ---------- Layout helpers ---------- */
main { max-width: var(--max-width); margin: 0 auto; padding: 48px 20px; }

/* ---------- Pill titles (gold foil) ---------- */
.pill-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,22,32,.98), rgba(10,12,18,.98));
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 10px rgba(233,198,102,.08);

  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: .04em;
  text-transform: uppercase;

  background-image: var(--gold-gradient);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: foil 8s linear infinite;
}

.pill-title::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, #fff6d6, #d7b056, #fff0b2, #a87c21, #fff6d6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pill-title--lg {
  display: flex;
  margin: 0 auto 40px;
  width: fit-content;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.hero__image { border-radius: 12px; width: 100%; }

.hero__text p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ---------- Game cards ---------- */
.card-grid {
  display: grid;
  gap: 32px;
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 620px;
  margin: 0 auto;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.game-card__media {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.platform-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, .18);
}

.platform-badge--android { border-color: rgba(164, 198, 57, .5); color: #c3e86b; }
.platform-badge--windows { border-color: rgba(0, 173, 239, .5); color: #6fd4ff; }

.game-card .pill-title {
  font-size: clamp(16px, 2vw, 22px);
  padding: 4px 22px;
}

.game-card__subtitle {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,245,215,.8);
  text-shadow: 0 0 8px rgba(233,198,102,.15);
}

.btn-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 14px;
  background: var(--btn-gradient);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 15px rgba(88,101,242,.35), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88,101,242,.55), inset 0 1px 0 rgba(255,255,255,.2);
}

.catalog { margin-bottom: 72px; }

/* ---------- Page hero (text-only, home/other pages) ---------- */
.page-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  background-image: var(--gold-gradient);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: foil 8s linear infinite;
  margin-bottom: 20px;
}

.page-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.75);
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(18,22,32,.9), rgba(10,12,18,.9));
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 26px 24px;
}

.feature-card__icon { width: 30px; height: 30px; color: var(--gold); display: block; margin-bottom: 14px; }

.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Team section ---------- */
.team {
  text-align: center;
  margin-bottom: 72px;
}

.team__intro {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: rgba(255,255,255,.8);
}

.team__photo {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
}

/* ---------- Product pages (purple gradient background) ---------- */
.product-page {
  background: linear-gradient(180deg, #000 0%, #000 12%, #2a1454 55%, #a221c9 100%);
}

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.product-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(160,90,255,.6), 0 0 40px rgba(80,140,255,.35);
  margin-bottom: 20px;
  grid-column: 1 / -1;
  text-align: center;
}

.product-hero__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}

.product-hero__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.product-hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.product-hero__body p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 480px;
}

.product-hero__body p strong { color: #fff; }

.product-hero__tagline {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,240,255,.85);
}

.product-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 6px;
}

.product-tag {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  font-family: var(--font-nav);
  font-size: 13px;
  color: #fff;
}

.product-hero--centered { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto 56px; }

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; }
}

/* ---------- Torneos (gold gradient background) ---------- */
.torneos-page {
  background: linear-gradient(180deg, #000 0%, #000 15%, #6b5514 55%, #d8ae3f 100%);
}

.tournament-grid { margin-bottom: 72px; }

.tournament-badge {
  font-size: clamp(12px, 1.6vw, 15px);
  padding: 6px 18px;
  white-space: nowrap;
}

/* ---------- Software blocks ---------- */
.software-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 88px;
}

.software-block__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow-icon { width: 16px; height: 16px; }

.software-block__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin: 0 0 20px;
}

.software-block__text {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  max-width: 680px;
  margin: 0 auto 16px;
}

.software-block__image {
  width: 100%;
  border-radius: 12px;
  margin: 28px 0;
}

.software-block .btn-cta { margin-top: 8px; }

/* ---------- Empty store page ---------- */
.store-empty {
  position: relative;
  max-width: none;
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  margin: 0;
}

.store-empty__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.05);
}

.store-empty__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(5,10,37,.55), rgba(0,0,0,.92));
}

.store-empty__card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 40px;
  border-radius: 20px;
  background: rgba(5,10,25,.55);
  border: 1px solid var(--gold-soft);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.store-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
}

.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(238,185,9,.12);
  border: 1px solid var(--gold-soft);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.store-empty__text {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

/* ---------- Legal / privacy pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto 72px;
}

.legal__updated {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin: 40px 0 14px;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 14px; }

.legal ul { margin: 0 0 14px 20px; }
.legal li { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 8px; list-style: disc; }

.legal a { color: var(--gold); text-decoration: underline; }

.legal strong { color: #fff; }

/* ---------- Token panel ---------- */
.token-panel {
  max-width: 620px;
  margin: 0 auto 72px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

.token-panel__logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.token-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 8px;
}

.token-panel__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
}

.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.token-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
}

.token-stat__label {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}

.token-stat__value { font-weight: 600; font-size: 15px; }
.token-stat__value--accent { color: #7ee08a; }

.token-address {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  text-align: left;
}

.token-address__label {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}

.token-address__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.token-address__row code {
  font-family: monospace;
  font-size: 13px;
  color: #fff;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.token-address--action { text-align: center; }
.token-address--action .token-address__row { margin-bottom: 16px; }

.btn-thirdweb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a1200;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffb238, #ff8a00);
  margin-bottom: 28px;
}

.btn-stake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #04231a;
  border-radius: 14px;
  background: linear-gradient(90deg, #1fd88f, #17b892);
}

/* ---------- Contact form ---------- */
.contact {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 72px;
}

.contact__intro {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin: 16px 0 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.contact-form input,
.contact-form textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form .btn-cta {
  border: none;
  cursor: pointer;
  align-self: center;
}

@keyframes foil {
  from { background-position: 0% 50%; }
  to   { background-position: 250% 50%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-black);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 96px;
  padding: 48px 20px;
  text-align: center;
}

.site-footer__col h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.site-footer__col p { font-size: 14px; margin-bottom: 6px; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__col .copyright { opacity: .6; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .site-header { padding: 16px 20px; }
  .main-nav ul { gap: 16px; }
}
