.container {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f6f0 0%, #ffffff 100%);
  padding-top: env(safe-area-inset-top);
}

/* Banner Section */
.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.banner-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 30px;
  text-align: center;
}

.banner-logo {
  margin-bottom: 16px;
}

.banner-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.banner-text {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  display: inline-block;
}

.hero-title .title-competitive {
  background: linear-gradient(180deg, #ffb200 0%, #ff8a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-title .title-poker {
  color: #333;
  display: inline-block;
}

.hero-sub {
  font-size: 20px;
  color: #836845;
  line-height: 22px;
  margin-bottom: 6px;
  font-weight: 600;
}

.banner-trophy {
  margin: 20px auto;
  max-width: 200px;
}

.banner-trophy img {
  width: 100%;
  height: auto;
  display: block;
}

.trophy-points {
  font-size: 20px;
  color: #836845;
  line-height: 20px;
  padding: 0 20px;
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
}

/* Download Section */
.download-section {
  padding: 20px 20px 12px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  gap: 14px;
}

.download-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.download-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  gap: 12px;
}

.download-row .download-card {
  margin-bottom: 0;
}

.download-card.recommended {
  background: #fef8e8;
  width: 100%;
  margin-bottom: 0;
}

.download-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.download-card.recommended {
  background: #fef8e8;
}

.platform-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.platform-name {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin-left: 12px;
  text-align: left;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: inline-block;
}

.install-btn {
  height: 36px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  min-width: 80px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: auto;
}

.install-btn:active {
  opacity: 0.8;
}

.android-btn {
  background-color: #4caf50;
  background-blend-mode: overlay;
}

.ios-btn {
  background-color: #2196f3;
  background-blend-mode: overlay;
}

.stable-btn {
  background-color: #FFB347;
  background-blend-mode: overlay;
}

.badge {
  position: absolute;
  top: -6px;
  left: -6px;
  padding: 2px 8px;
  background: #ffc107;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  font-weight: 600;
  z-index: 2;
}

.open-game-wrapper {
  position: relative;
  margin: 14px 0;
  width: 100%;
}

.web-tag {
  position: absolute;
  top: -6px;
  left: 12px;
  padding: 2px 8px;
  background: #ffc107;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  font-weight: 600;
  z-index: 2;
}

.open-game-btn {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffb200, #ff8a00);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.open-game-btn:active {
  transform: scale(0.98);
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35);
}

.download-tips {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.tip-text {
  font-size: 12px;
  color: #999;
  line-height: 18px;
  margin-bottom: 4px;
}

.tip-text:last-child {
  margin-bottom: 0;
}

/* Scroll Hint (Fixed) */
.scroll-hint {
  position: fixed;
  bottom: calc(0px + env(safe-area-inset-bottom));
  left: 85%;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.scroll-hint.hidden {
  display: none;
}

.scroll-tip {
  text-align: center;
  opacity: 0.65;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  background-image: url('../assets/images/common/ldy_icon_jt.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.hint-text {
  font-size: 12px;
  color: #999;
  opacity: 0.8;
}

/* Guide Section */
.guide-section {
  padding: 24px 16px;
  background: #fff4e2;
  border-radius: 20px;
  margin: 0 20px 40px;
}

.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.guide-tab {
  padding: 10px 24px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  outline: none;
}

.guide-tab:hover {
  background: #eeeeee;
}

.guide-tab.active {
  background: #ff9800;
  border-color: #ff9800;
  color: #ffffff;
  font-weight: 600;
}

.guide-content {
  position: relative;
}

.guide-panel {
  display: none;
}

.guide-panel.active {
  display: block;
}

.guide-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

/* Language Switch (Fixed Top Right) */
.lang-switch-fixed {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 1000;
  font-size: 13px;
  opacity: 0.6;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.lang-switch-fixed span[data-lang] {
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}

.lang-switch-fixed span[data-lang]:hover {
  opacity: 0.8;
}

.lang-switch-fixed span[data-lang].active {
  opacity: 1;
  font-weight: 600;
}

.lang-switch-fixed .divider {
  margin: 0;
  cursor: default;
  opacity: 0.4;
}

.guide-subtitle {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  line-height: 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-image {
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.step-content {
  padding: 0 8px;
  text-align: center;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: center;
}

.step-desc {
  font-size: 14px;
  color: #666;
  line-height: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-sub {
    font-size: 14px;
  }
  
  .download-card {
    padding: 12px 14px;
  }
  
  .platform-icon {
    width: 26px;
    height: 26px;
  }
  
  .platform-name {
    font-size: 14px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }
  
  .install-btn {
    height: 30px;
    padding: 0 16px;
    font-size: 12px;
    min-width: 60px;
  }
  
  .open-game-btn {
    height: 48px;
    font-size: 16px;
  }
  
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step-image {
    width: 90%;
  }
}

@media (min-width: 414px) {
  .container {
    max-width: 414px;
    margin: 0 auto;
  }
}
