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

:root {
  font-size: 12px;
  --color-text: #fff;
  --color-bg: #000;
  --color-link: #fff;
  --color-link-hover: #c471e1;
  --page-padding: 1.5rem;
  --color-card-1: #d09df2;
  --color-card-2: #9df2eb;
  --color-card-3: #f5e2a4;
  --color-card-4: #d09df2;
  --color-card-5: #9dcaf2;
  --color-card-6: #f29dcc;
  --color-bg-card: rgba(255, 255, 255, 0.2);
  --color-bg-card-inner: rgb(41 27 41);
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: \"Zen Antique Soft\", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url(../img/noise.png), radial-gradient(circle, rgb(52 33 56) 0%, rgb(0 0 0) 100%);
  background-size: 400px, 100% 100vh;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: '';
  position: fixed;
  z-index: 1000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5,0.5,1);
  }
}

a {
  text-decoration: underline;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
   that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
   that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
   keyboard-focus on browsers that do support
   :focus-visible */
  outline: 2px solid red;
  background: transparent;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}

.frame {
  padding: var(--page-padding);
  position: relative;
  display: grid;
  z-index: 1000;
  width: 100%;
  height: 100%;
  grid-row-gap: 1rem;
  grid-column-gap: 1rem;
  pointer-events: none;
  justify-items: start;
  align-items: center;
  grid-template-columns: auto auto auto auto;
  grid-template-areas: 'title title title title' 'home back archive node' 'sponsor sponsor sponsor sponsor' 'hire hire hire hire';
}

.frame__home {
  grid-area: home;
  justify-self: start;
  align-self: center;
}

.frame__back {
  grid-area: back;
  justify-self: start;
  align-self: center;
}

.frame__archive {
  grid-area: archive;
  justify-self: start;
  align-self: center;
}

.frame__node {
  grid-area: node;
  justify-self: start;
  align-self: center;
}

.frame__node--active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(168, 130, 255, 0.9);
  background: rgba(168, 130, 255, 0.1);
  color: rgba(225,210,255,0.92);
  letter-spacing: 0.08rem;
  font-size: 14px;
  line-height: 1.2;
  height: 36px;
  min-width: 80px;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

/* Nav tabs with bordered style */
.frame__back, .frame__archive, .frame__node, .frame__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.08rem;
  font-size: 14px;
  line-height: 1.2;
  height: 36px;
  min-width: 80px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.frame__back:hover, .frame__archive:hover, .frame__node:hover, .frame__home:hover {
  transform: translateY(-1px);
  border-color: rgba(168,130,255,0.9);
  box-shadow: 0 10px 20px rgba(168,130,255,0.35);
  background: rgba(168,130,255,0.12);
  text-decoration: none;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  margin: 0;
}

/* Brand (logo + name) occupying title area */
.frame__brand {
  grid-area: title;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  pointer-events: auto;
}
.frame__brand .brand__logo {
  height: 26px;
  width: 26px;
}
.frame__brand .brand__name {
  font-size: 14px;
  letter-spacing: 0.12rem;
}

/* Home link before tabs */
.frame__home {
  grid-area: home;
  justify-self: start;
}

.frame__sub {
  display: grid;
  position: fixed;
  bottom: var(--page-padding);
  right: var(--page-padding);
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-link-hover);
  place-items: center;
  border-radius: 50%;
  background-color: #000;
  pointer-events: auto;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 9999;
}

.frame__sub:hover {
  background-color: #000;
}

.frame__sub:hover::before,
.frame__sub:focus::before  {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: -30%;
  left: -30%;
}

.frame__sub svg {
  fill: var(--color-link-hover);
  width: 25px;
  height: 25px;
}

.modal {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0,20px,0);
  position: fixed;
  bottom: 55px;
  right: var(--page-padding);
  background: #8a74c4;
  color: #fff;
  width: 280px;
  max-width: calc(100vw - var(--page-padding) * 2);
  line-height: 1.4;
  padding: 1.5rem;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s;
  z-index: 10000;
}

.frame__sub.active .modal {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0px,0px,0px);
  bottom: 95px;
}

.frame__hire {
  grid-area: hire;
  max-width: 200px;
}

.frame__demos {
  grid-area: demos;
  display: flex;
  gap: 1rem;
}

main {
  position: relative;
}

.intro {
  width: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 20vh 20vh auto;
  grid-template-areas: 'intro-title' 'intro-hint' '...';
  place-items: center;
  padding: 0 var(--page-padding);
}

.intro__title {
  text-transform: uppercase;
  font-size: clamp(2rem,7vw,8rem);
  font-weight: 400;
  grid-area: intro-title;
  position: relative;
  z-index: 100;
  align-self: center;
  margin: 0;
  text-align: center;
}

.intro__hint {
  grid-area: intro-hint;
  position: relative;
  z-index: 100;
  align-self: center;
  font-size: 1.5rem;
  text-align: center;
}

.intro__hint::after {
  content: '\00BB';
  position: absolute;
  top: 100%;
  left: 0%;
  text-align: center;
  font-size: 3rem;
  width: 100%;
  transform: rotate(90deg);
  animation: pulse 0.3s linear alternate infinite;
}

@keyframes pulse {
  to {
    top: 120%;
  }
}

.outro {
  display: grid;
  place-items: center;
  margin: 40vh 0;
}

.outro__title {
  font-weight: 300;
  font-size: clamp(1.5rem,10vw,2rem);
}

.grid {
  position: relative;
  perspective: 1000px;
  align-self: start;
  grid-area: intro-title;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(3,auto);
  justify-content: center;
  gap: 3rem;
  filter: brightness(70%);
}

.card {
  width: 30vw;
  max-width: 255px;
  min-width: 150px;
  aspect-ratio: 2/3;
  font-size: 9px;
  text-transform: uppercase;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  position: relative;
  align-items: stretch;
  outline: 1px solid var(--color-card);
  background: var(--color-bg-card);
  grid-template-areas: 'card-img card-img' 'card-title card-meta' 'card-subtitle card-subtitle' 'card-desc card-desc';
}

.grid .card {
   box-shadow: 0 2px 7px 0 rgba(0,0,0,0.8);
}

.card:nth-child(1n) {
  --color-card: var(--color-card-1);
}

.card:nth-child(2n) {
  --color-card: var(--color-card-2);
}

.card:nth-child(3n) {
  --color-card: var(--color-card-3);
}

.card:nth-child(4n) {
  --color-card: var(--color-card-4);
}

.card:nth-child(5n) {
  --color-card: var(--color-card-5);
}

.card:nth-child(6n) {
  --color-card: var(--color-card-6);
}

.card > * {
  background-color: var(--color-bg-card-inner);
}

.card__img {
  grid-area: card-img;
  background-size: cover;
  background-position: 50% 50%;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 6px 6px 0 0;
}

.card__title {
  padding: 0.5rem 3px;
  grid-area: card-title;
  margin: 0;
}

.card__meta {
  grid-area: card-meta;
  padding: 0.5rem 3px;
  text-align: right;
}

.card__subtitle {
  grid-area: card-subtitle;
  margin: 0;
  padding: 0 3px;
}

.card__description {
  grid-area: card-desc;
  margin: 0;
  border-radius: 0 0 6px 6px;
  padding: 0 3px;
}

.card-wrap {
  margin-top: 5vh;
  display: grid;
  grid-gap: 2rem;
  grid-auto-flow: row;
  grid-template-columns: 250px;
  text-align: center;
  justify-items: center;
}

.card--rel  {
  align-items: start;
  background: rgba(255,255,255,0.1);
}

.card--rel .card__img {
  aspect-ratio: 4 / 3;
  filter: contrast(0.8);
}

.card--rel .card__title {
  grid-column-end: 3;
  background: none;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: none;
  padding: 2rem 1rem 1rem;
}

.credits {
  font-size: 1.5rem;
  text-align: center;
  margin: 50vh auto 0;
  padding-bottom: 50vh;
}

.section-title {
  width: 100%;
  display: grid;
  place-items: center;
  font-size: clamp(2rem,6vw,6rem);
  line-height: 1;
  font-weight: 400;
  margin: 25vh auto 0;
  max-width: 600px;
  text-align: center;
  text-transform: uppercase;
}

.wrap {
  position: relative;
  min-height: 100vh;
}

.wrap__inner {
  position: relative;
  perspective: 1000px;
}

.content {
  width: 100vw;
  position: relative;
  transform-style: preserve-3d;
  display: grid;
  grid-template-areas: 'card';
  grid-template-columns: 100%;
  place-items: center;
}

.content .card {
  grid-area: card;
  background: rgba(132, 128, 143, 0.36);
}

@media screen and (min-width: 53em) {
  body {
    --page-padding: 2rem;
  }
  .frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr auto auto auto auto 1fr;
    grid-template-rows: auto auto;
    align-content: space-between;
    align-items: center;
    grid-template-areas: 'title home back archive node .' 'hire ... ... ... sub .';
  }
  .frame__sub {
    justify-self: end;
  }
  .frame__title {
    padding-right: 4rem;
    justify-self: center;
    align-self: center;
  }
  .frame__home,
  .frame__back,
  .frame__archive,
  .frame__node {
    align-self: center;
  }
  .frame__hire {
    align-self: end;
  }
  .modal {
    bottom: 50px;
    right: 50px;
  }
  .intro {
    grid-template-rows: 60vh 40vh auto;
  }
  .intro__title {
    align-self: end;
  }
  .grid {
    padding-top: 12vh;
  }
  .content {
    min-height: 100vh;
    justify-content: center;
    align-items: center;
  }
  .card-wrap {
    grid-template-columns: repeat(2, 300px);
  }
}

/* PG Long Styles */

/* PGL Gameplay Section */
.gameplay-section {
  width: 100%;
  padding: 4rem var(--page-padding);
  margin: 2rem 0;
}

.gameplay-grid {
  margin-top: 5vh;
  display: grid;
  grid-gap: 2rem;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
  justify-items: center;
  margin-bottom: 3rem;
}

.gameplay-card {
  width: 100%;
  max-width: 255px;
  min-width: 150px;
  aspect-ratio: 2/3;
  font-size: 9px;
  text-transform: uppercase;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.gameplay-card:nth-child(1n) {
  --color-card: var(--color-card-1);
}
.gameplay-card:nth-child(2n) {
  --color-card: var(--color-card-2);
}
.gameplay-card:nth-child(3n) {
  --color-card: var(--color-card-3);
}
.gameplay-card:nth-child(4n) {
  --color-card: var(--color-card-4);
}
.gameplay-card:nth-child(5n) {
  --color-card: var(--color-card-5);
}
.gameplay-card:nth-child(6n) {
  --color-card: var(--color-card-6);
}

/* Remove the background override for glass effect */

.gameplay-card.animate-in:hover {
  transform: translateY(-5px) scale(1);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-card);
  transition: all 0.3s ease;
}

.gameplay-icon {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 15px 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gameplay-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px 15px 0 0;
}

.gameplay-title {
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  background: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 2;
  position: relative;
}

.gameplay-desc {
  padding: 0 1rem 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  text-transform: none;
  background: transparent;
}

.gameplay-reward {
  display: none !important;
  padding: 0.8rem 1rem;
  background: var(--color-card);
  color: #000000;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 0 15px 15px;
  text-align: center;
  text-shadow: none;
}

/* Tokenomics Showcase */
.tokenomics-showcase {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tokenomics-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tokenomics-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tokenomics-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tokenomics-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-link-hover);
  margin-bottom: 0.5rem;
}

.tokenomics-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tokenomics-arrow {
  font-size: 1.5rem;
  color: var(--color-link-hover);
  margin: 0 0.5rem;
}

/* Scroll Animation */
.gameplay-card {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gameplay-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gameplay-card:nth-child(1) { transition-delay: 0.1s; }
.gameplay-card:nth-child(2) { transition-delay: 0.2s; }
.gameplay-card:nth-child(3) { transition-delay: 0.3s; }
.gameplay-card:nth-child(4) { transition-delay: 0.4s; }
.gameplay-card:nth-child(5) { transition-delay: 0.5s; }
.gameplay-card:nth-child(6) { transition-delay: 0.6s; }

/* Mobile Responsive */
@media screen and (min-width: 53em) {
  .gameplay-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 5vh auto 3rem;
  }
}

@media screen and (max-width: 768px) {
  .gameplay-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3vh auto 2rem;
  }

  .gameplay-card {
    max-width: 280px;
  }

  .tokenomics-flow {
    flex-direction: column;
    gap: 1rem;
  }

  .tokenomics-arrow {
    transform: rotate(90deg);
  }

  .gameplay-section {
    padding: 2rem 1rem;
  }

  /* Mobile grid layout - 2 cards per row */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .grid .card {
    width: 100%;
    max-width: none;
    min-width: 140px;
    aspect-ratio: 2/3;
  }

  /* Mobile optimizations for stack motion effects */
  .wrap {
    min-height: 80vh;
  }

  /* Mobile navigation adjustments */
  .frame {
    grid-template-areas: 'title title title title' 'home back archive node' 'sponsor sponsor sponsor sponsor' 'hire hire hire hire';
    grid-template-columns: auto auto auto auto;
    grid-row-gap: 0.8rem;
    grid-column-gap: 1rem;
    align-items: center;
  }

  /* Mobile navigation links styling */
  .frame__home, .frame__back, .frame__archive, .frame__node {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    height: 32px;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  /* Mobile wallet button adjustments */
  .frame__wallet {
    position: fixed;
    top: calc(var(--page-padding) + 65px);
    right: var(--page-padding);
    font-size: 11px;
    padding: 6px 12px;
    z-index: 1001;
    border-radius: 20px;
  }

  .frame__wallet svg {
    width: 12px;
    height: 12px;
  }

  /* Mobile language selector adjustments */
  .frame__lang {
    top: calc(var(--page-padding) + 55px);
    right: calc(var(--page-padding) + 100px);
  }

  .lang-toggle {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
  }

  .lang-toggle svg {
    width: 32px;
    height: 32px;
  }

  .lang-text {
    font-size: 11px;
  }

  .header-actions .lang-toggle {
    width: 44px;
    height: 44px;
  }
  
  .header-actions .lang-toggle svg {
    width: 32px;
    height: 32px;
  }

  .content {
    min-height: 80vh;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 800px;
  }

  .content .card {
    max-width: 200px;
    min-width: 120px;
  }

  .wrap__inner {
    perspective: 800px;
  }

  .section-title {
    font-size: clamp(1.5rem, 8vw, 4rem);
    margin: 15vh auto 5vh;
  }

  /* Mobile modal positioning */
  .modal {
    bottom: 60px;
    right: -10px;
    left: auto;
    width: 280px;
    max-width: calc(100vw - 2rem);
    margin: 0;
    font-size: 15px;
    padding: 1.25rem;
    position: fixed;
    z-index: 10000;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .grid .card {
    min-width: 120px;
    font-size: 8px;
  }

  .card__description {
    font-size: 0.8em;
    line-height: 1.3;
  }

  /* Mobile modal adjustments */
  .modal {
    bottom: 60px;
    right: -10px;
    left: auto;
    width: 260px;
    max-width: calc(100vw - 2rem);
    margin: 0;
    font-size: 14px;
    padding: 1rem;
    position: fixed;
    z-index: 10000;
  }

  /* Extra small mobile wallet button */
  .frame__wallet {
    font-size: 11px;
    padding: 6px 10px;
    top: 24px;
    right: 16px;
  }

  .frame__wallet svg {
    width: 10px;
    height: 10px;
  }

  /* Extra small mobile language selector */
  .frame__lang {
    top: 16px;
    right: 120px;
  }

  .lang-toggle {
    padding: 5px 7px;
    font-size: 11px;
    border-radius: 5px;
    width: 44px;
    height: 44px;
  }

  .lang-toggle svg {
    width: 32px;
    height: 32px;
  }

  .lang-text {
    font-size: 10px;
  }
}

/* New Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 28px;
}
.header-brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.brand-name {
  color: rgba(225, 210, 255, 0.95);
  letter-spacing: 0.05rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.nav-link:hover {
  border-color: rgba(168, 130, 255, 0.4);
  background: rgba(168, 130, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link--active {
  border-color: rgba(168, 130, 255, 0.6);
  background: rgba(168, 130, 255, 0.15);
  color: rgba(225, 210, 255, 0.95);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #a882ff;
  background: #a882ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.08rem;
  box-shadow: 0 2px 8px rgba(168, 130, 255, 0.3);
}

.wallet-btn:hover {
  border-color: #9966ff;
  background: #9966ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(153, 102, 255, 0.4);
}

.wallet-btn:active {
  transform: translateY(0);
}

/* 杩炴帴鐘舵€佷笅鐨勯挶鍖呮寜閽牱寮?*/
.wallet-btn.connected {
  padding: 8px 16px;
  gap: 8px;
}

.wallet-btn .user-avatar-container {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.wallet-btn .user-avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.wallet-btn .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* 鏅€氱敤鎴锋牱寮?- 鍏ㄧ櫧鑹蹭富棰?*/
.wallet-btn.normal {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.wallet-btn.normal:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.wallet-btn.normal .user-avatar-container {
  border-color: #ffffff;
  background: transparent;
}

.wallet-btn.normal .wallet-address {
  color: #ffffff;
}

/* 鐧藉悕鍗曠敤鎴锋牱寮?- 鍏ㄧ传鑹蹭富棰?*/
.wallet-btn.whitelist {
  background: transparent;
  border-color: #a882ff;
  color: #a882ff;
  box-shadow: 0 2px 8px rgba(168, 130, 255, 0.2);
}

.wallet-btn.whitelist:hover {
  background: rgba(168, 130, 255, 0.1);
  border-color: #a882ff;
  color: #a882ff;
  box-shadow: 0 4px 16px rgba(168, 130, 255, 0.3);
}

.wallet-btn.whitelist .user-avatar-container {
  border-color: #a882ff;
  background: transparent;
}

.wallet-btn.whitelist .wallet-address {
  color: #a882ff;
}

/* 榛樿閽卞寘鍦板潃鏍峰紡 */
.wallet-btn .wallet-address {
  font-size: 14px;
  font-weight: 500;
}

.wallet-disconnect-btn {
  margin-left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wallet-disconnect-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.wallet-disconnect-btn span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.wallet-disconnect-btn--mobile {
  width: 100%;
  height: 48px;
  margin-left: 0;
  border-radius: 12px;
  border: 1px solid rgba(168, 130, 255, 0.35);
  background: rgba(16, 10, 32, 0.7);
  color: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(168, 130, 255, 0.24);
}

.wallet-disconnect-btn--mobile:hover {
  background: rgba(28, 18, 48, 0.85);
  border-color: rgba(168, 130, 255, 0.5);
  box-shadow: 0 10px 24px rgba(168, 130, 255, 0.32);
}

.wallet-disconnect-btn--mobile svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.wallet-disconnect-btn--mobile span,
.wallet-disconnect-btn--mobile .wallet-disconnect-label {
  font-size: 14px;
  transform: none;
  line-height: 1;
}

.wallet-disconnect-label {
  font-weight: 600;
  letter-spacing: 0.02rem;
}

/* 鐢ㄦ埛涓嬫媺鑿滃崟鏍峰紡 */
.user-dropdown {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 180px;
  overflow: hidden;
}

/* 闅愯棌dropdown-content */
.dropdown-content {
  display: none !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #333;
}

.dropdown-item svg {
  flex-shrink: 0;
}

/* Language toggle in header */
.header-actions .lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions .lang-toggle:hover {
  color: rgba(168, 130, 255, 0.9);
  transform: translateY(-2px) scale(1.1);
}

.header-actions .lang-toggle:active {
  transform: translateY(0) scale(0.95);
}

.header-actions .lang-toggle svg {
  width: 48px;
  height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Language state indicators */
.header-actions .lang-toggle[data-current-lang="zh"] {
  color: rgba(168, 130, 255, 0.9);
}

.header-actions .lang-toggle[data-current-lang="en"] {
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 20px;
  height: 100%;
  padding-top: 80px;
}

.mobile-nav-content .wallet-disconnect-btn {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  min-height: 40px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.mobile-nav-link:hover {
  border-color: rgba(168, 130, 255, 0.4);
  background: rgba(168, 130, 255, 0.1);
  transform: translateX(8px);
}

.mobile-nav-link--active {
  border-color: rgba(168, 130, 255, 0.6);
  background: rgba(168, 130, 255, 0.15);
  color: rgba(225, 210, 255, 0.95);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #a882ff;
  background: #a882ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.08rem;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(168, 130, 255, 0.3);
}

.mobile-wallet-btn:hover {
  border-color: #9966ff;
  background: #9966ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(153, 102, 255, 0.4);
}

.mobile-wallet-section {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  transition: all 0.3s ease;
}

.mobile-wallet-section .wallet-disconnect-btn {
  align-self: stretch;
}

.mobile-wallet-section.wallet-connected-block {
  background: rgba(10, 6, 20, 0.75);
  border: 1px solid rgba(168, 130, 255, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  gap: 14px;
  box-shadow: 0 12px 26px rgba(10, 6, 24, 0.5);
}

.mobile-wallet-section.wallet-connected-block .mobile-wallet-btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 12px;
}

.mobile-wallet-section.wallet-connected-block .mobile-wallet-btn.normal {
  border-color: rgba(255, 255, 255, 0.12);
}

.mobile-wallet-section.wallet-connected-block .mobile-wallet-btn.whitelist {
  border-color: rgba(168, 130, 255, 0.35);
}

/* Responsive header */
@media screen and (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
    top: 60px;
  }
  
  /* 绉诲姩绔殣钘廝C绔挶鍖呮寜閽?*/
  .wallet-btn {
    display: none;
  }

  .header-actions .wallet-disconnect-btn {
    display: none !important;
  }
  
  .header-actions .lang-toggle {
    width: 48px;
    height: 48px;
  }
  
  .header-actions .lang-toggle svg {
    width: 48px;
    height: 48px;
  }
}

@media screen and (max-width: 480px) {
  .header-container {
    padding: 0.5rem 1rem;
  }
  
  .mobile-nav-content {
    padding: 1.5rem;
  }
  
  .mobile-nav-link {
    padding: 0.8rem;
    font-size: 15px;
  }
  
  .mobile-wallet-btn {
    padding: 0.8rem;
    font-size: 13px;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
}

/* Add top padding to main content to account for fixed header */
 main {
   padding-top: 70px;
 }
 
 @media screen and (max-width: 768px) {
   main {
     padding-top: 60px;
   }
 }
 
 @media screen and (max-width: 480px) {
   main {
     padding-top: 100px;
   }
 }

/* Chinese overview section styles */
.cn-overview {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 130, 255, 0.1), rgba(168, 130, 255, 0.05));
  border-radius: 20px;
  border: 1px solid rgba(168, 130, 255, 0.2);
}

.cn-overview h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.cn-overview h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2rem 0 1rem 0;
}

.cn-overview p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.cn-benefits {
  list-style: none;
  padding: 0;
}

.cn-benefits li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.cn-benefits li::before {
  content: "鉁?;
  position: absolute;
  left: 0;
  top: 0;
}

/* Language-specific display */
.cn-only {
  display: block;
}

@media screen and (max-width: 768px) {
  .cn-overview {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
  
  .cn-overview h2 {
    font-size: 2rem;
  }
  
  .cn-overview h3 {
    font-size: 1.5rem;
  }
  
  .cn-overview p,
  .cn-benefits li {
    font-size: 1rem;
  }
}

.frame__wallet:hover {
  background: linear-gradient(135deg, rgba(168, 130, 255, 0.25), rgba(168, 130, 255, 0.35));
  border-color: rgba(168, 130, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 130, 255, 0.25);
  color: #fff;
}

.frame__wallet:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 130, 255, 0.2);
}

/* Connected state */
.frame__wallet.connected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.25));
  border-color: rgba(16, 185, 129, 0.4);
  color: rgba(210, 255, 230, 0.95);
}

.frame__wallet.connected:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.35));
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.frame__lang {
  position: fixed;
  top: var(--page-padding);
  right: var(--page-padding);
  display: flex;
  align-items: center;
  z-index: 1000;
  pointer-events: auto;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-link-hover);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.lang-toggle svg {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

.lang-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

 /* Language-specific visibility */
 .cn-only { display: none !important; }
 html[lang="zh-CN"] .cn-only { display: none !important; }
 html[lang="zh-CN"] .en-only { display: block; }

/* 閽卞寘杩炴帴鍜屼釜浜轰腑蹇冪浉鍏虫牱寮?*/

/* 妯℃€佹鍩虹鏍峰紡 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, rgba(41, 27, 41, 0.95), rgba(52, 33, 56, 0.95));
  border: 1px solid rgba(168, 130, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(168, 130, 255, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* 寮哄埗寮圭獥灞呬腑 - 瑕嗙洊鎵€鏈夊叾浠栨牱寮?*/
#userMenuModal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10001 !important;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(168, 130, 255, 0.2);
}

.modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #fff;
  background: rgba(168, 130, 255, 0.2);
}

.modal-body p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  text-align: center;
}


/* 鐢ㄦ埛澶村儚鍜屼笅鎷夎彍鍗?*/
.user-avatar-container {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.user-avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Modal Base Styles */
#userMenuModal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.8) !important;
	backdrop-filter: blur(10px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 10001 !important;
	pointer-events: auto !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: none !important;
	bottom: auto !important;
	right: auto !important;
	max-width: none !important;
	min-height: 100vh !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#userMenuModal.show {
	opacity: 1 !important;
	visibility: visible !important;
}

#userMenuModal .modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
}

#userMenuModal .modal-content {
	position: relative !important;
	background: linear-gradient(135deg, rgba(41, 27, 41, 0.95), rgba(52, 33, 56, 0.95)) !important;
	border: 1px solid rgba(168, 130, 255, 0.3) !important;
	border-radius: 20px !important;
	padding: 30px !important;
	max-width: 500px !important;
	width: 90% !important;
	max-height: 80vh !important;
	overflow-y: auto !important;
	box-shadow: 0 20px 60px rgba(168, 130, 255, 0.2) !important;
	transform: scale(0.9) !important;
	transition: transform 0.3s ease !important;
	margin: auto !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
}

#userMenuModal.show .modal-content {
	transform: scale(1) !important;
}

#userMenuModal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(168, 130, 255, 0.2);
}

#userMenuModal .modal-header h3 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

#userMenuModal .modal-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 24px;
	cursor: pointer;
	padding: 5px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

#userMenuModal .modal-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

#userMenuModal .modal-body {
	margin: 0;
}

/* User Menu Modal Styles */
.user-menu-modal {
	width: 320px;
	max-width: 90vw;
}

.user-menu-item {
	display: flex;
	align-items: center;
	padding: 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.user-menu-item:hover {
	background: rgba(168, 130, 255, 0.1);
	border-color: rgba(168, 130, 255, 0.3);
	transform: translateY(-2px);
}

.menu-item-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(168, 130, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	color: #a882ff;
}

.menu-item-content {
	flex: 1;
}

.menu-item-content h4 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
}

.menu-item-content p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	text-align: left;
}

.menu-item-arrow {
	color: rgba(255, 255, 255, 0.5);
	transition: all 0.3s ease;
}

.user-menu-item:hover .menu-item-arrow {
	color: #a882ff;
	transform: translateX(4px);
}


/* 鐧藉悕鍗曠敤鎴峰ご鍍忔牱寮?*/
.user-avatar-container.whitelist {
  border-color: #a882ff;
}

/* 闈炵櫧鍚嶅崟鐢ㄦ埛澶村儚鏍峰紡 */
.user-avatar-container.normal {
  border-color: #ffffff;
}

/* 绉诲姩绔ご鍍忔牱寮?*/
.mobile-wallet-btn .user-avatar-container {
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-wallet-btn .user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-wallet-btn .user-avatar-container.whitelist {
  border-color: #a882ff;
}

.mobile-wallet-btn .user-avatar-container.normal {
  border-color: #ffffff;
  background: transparent;
}

/* 绉诲姩绔挶鍖呭湴鍧€鏍峰紡 */
.mobile-wallet-address {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 鐧藉悕鍗曠敤鎴峰湴鍧€涓虹传鑹?*/
.mobile-wallet-address.whitelist {
  color: #a882ff;
}

/* 鏅€氱敤鎴峰湴鍧€涓虹櫧鑹?*/
.mobile-wallet-address.normal {
  color: #ffffff;
}

/* 鏅€氱敤鎴风殑绉诲姩绔挶鍖呮寜閽?- 鍏ㄧ櫧鑹蹭富棰?*/
.mobile-wallet-btn.normal {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.mobile-wallet-btn.normal:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* 鏅€氱敤鎴风Щ鍔ㄧ澶村儚瀹瑰櫒鐧借壊椋庢牸 */
.mobile-wallet-btn.normal .user-avatar-container {
  border-color: #ffffff;
  background: transparent;
}

/* 鏅€氱敤鎴风Щ鍔ㄧ鍦板潃鏂囧瓧鐧借壊 */
.mobile-wallet-btn.normal .mobile-wallet-address {
  color: #ffffff;
}

/* 鐧藉悕鍗曠敤鎴风殑绉诲姩绔挶鍖呮寜閽?- 鍏ㄧ传鑹蹭富棰?*/
.mobile-wallet-btn.whitelist {
  background: transparent;
  border-color: #a882ff;
  color: #a882ff;
  box-shadow: 0 2px 8px rgba(168, 130, 255, 0.2);
}

.mobile-wallet-btn.whitelist:hover {
  background: rgba(168, 130, 255, 0.1);
  border-color: #a882ff;
  color: #a882ff;
  box-shadow: 0 4px 16px rgba(168, 130, 255, 0.3);
}

/* 鐧藉悕鍗曠敤鎴风Щ鍔ㄧ澶村儚瀹瑰櫒绱壊椋庢牸 */
.mobile-wallet-btn.whitelist .user-avatar-container {
  border-color: #a882ff;
  background: transparent;
}

/* 鐧藉悕鍗曠敤鎴风Щ鍔ㄧ鍦板潃鏂囧瓧绱壊 */
.mobile-wallet-btn.whitelist .mobile-wallet-address {
  color: #a882ff;
}



/* 杩炴帴鐘舵€佺殑閽卞寘鎸夐挳鏍峰紡 */
.wallet-btn.connected {
  background: transparent;
  border: 1px solid rgba(168, 130, 255, 0.3);
  padding: 6px;
  position: relative;
}

.wallet-btn.connected:hover {
  border-color: rgba(168, 130, 255, 0.6);
  background: rgba(168, 130, 255, 0.1);
}

/* 绠€鍖朏ooter鏍峰紡 */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-credit a {
  color: #a882ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: #c471e1;
}

.footer-version {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: \"Zen Antique Soft\", serif;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    margin: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-credit {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Hide homepage intro title and hint */
.intro__title,
.intro__hint {
  display: none !important;
}

/* Shorten gameplay card height while keeping image and description visible */
.gameplay-card { aspect-ratio: auto !important; }
.gameplay-icon { aspect-ratio: 4 / 3 !important; }

