/* xiaoming2.com/static/css/landing.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  background: url("../images/bg.jpg") no-repeat center/cover;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  overflow-x: hidden;
}

.landing-container {
  width: 90%;
  max-width: 600px;
  text-align: center;
  opacity: 0.9;
}

.title-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 250, 250, 0.99); /* updated opacity */
  padding: 1rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.landing-title {
  white-space: nowrap;
  width: 100%;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: transparent;
  -webkit-text-stroke: 1px #1E40AF;
  background: linear-gradient(90deg, #000 0%, #000 100%);
  -webkit-background-clip: text;
}

.landing-subtitle,
.landing-subtitle .fixed-text,
.landing-subtitle .ticker {
  white-space: nowrap;
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: transparent;
  -webkit-text-stroke: 1px #1E40AF;
  background: linear-gradient(90deg, #000 0%, #000 100%);
  -webkit-background-clip: text;
}

.landing-subtitle {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0.75rem;
}

.fixed-text {
  flex: none;
  margin-right: 1rem;
}

.ticker-container {
  flex: 1;
  overflow: hidden;
}

.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Features styling */
.features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.2rem;
  justify-content: flex-start;
  align-self: flex-start;
  margin: 0 0 0.5rem 0.1rem;
}

.feature {
  padding: 0.5rem 2.5rem;
  background: transparent;
  border-radius: 999px;
  color: #555555;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  font-size: 1.35em;
}

/* Bubble button styling */
.bubbly-button {
  background: linear-gradient(to bottom, #000 0%, #555 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  font-size: 27px;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  align-self: flex-start;
  margin: -2px 0 0 3.0rem; /* moved up for web */
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bubbly-button:hover {
  background: linear-gradient(to bottom, #222 0%, #777 100%);
}

/* Character image */
.title-character {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(160px, 40vw, 240px); /* 2× bigger */
  pointer-events: none;
}

/* Platform boxes */
.platforms {
  display: flex;
  flex-direction: column;
  row-gap: 1px;
  align-items: center;
}

.platform {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.platform-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin-block: -20px;
}

.btn-group {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 32px;
}

.btn {
  width: 45%;
  min-width: 140px;
  max-width: 200px;
  padding-block: 0.75rem;
  font-size: clamp(16px, 2.5vw, 18px);
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(to bottom, #1E40AF 0%, #1E40AF 100%);
  color: #FFFFFF;
  white-space: nowrap;
  text-align: center;
}

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

.activity-bonus img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin: 0;
}

/* Mobile overrides */
body.mobile .feature {
  font-size: 1.2em;
}
body.mobile .bubbly-button {
  padding: 7px 14px;
  font-size: 16px;
  align-self: flex-start;
  margin: -3.0px 0 0 3.0rem; /* moved up & right for mobile */
}
body.mobile .title-character {
  width: clamp(160px, 40vw, 240px); /* 2× bigger for mobile */
}
body.mobile .btn-group {
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 8%;
}
body.mobile .btn {
  width: 40%;
  min-width: 120px;
  max-width: 160px;
  padding-block: 0.5rem;
  font-size: clamp(14px, 3vw, 16px);
}
body.mobile .platforms {
  row-gap: 1px;
}
