/* ========== Trang Tải Game ========== */
:root {
  --dl-gold: #d4af37;
  --dl-gold-light: #f5d76e;
  --dl-bg: #080604;
  --dl-glow: 0 0 18px rgba(212, 175, 55, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body.download-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: #e8dcc8;
  background: var(--dl-bg);
  -webkit-tap-highlight-color: transparent;
}

.download-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 16px 32px;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(rgba(8, 6, 4, 0.82), rgba(8, 6, 4, 0.92)),
    url("../images/bg.jpg") center center / cover no-repeat fixed;
}

.download-page__back {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--dl-gold-light);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(8, 6, 4, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-page__back:hover,
.download-page__back:focus {
  color: var(--dl-gold-light);
  text-decoration: none;
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: var(--dl-glow);
}

.download-page__box {
  width: min(100%, 640px);
  padding: 28px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(61, 40, 24, 0.95) 0%, rgba(26, 16, 8, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), var(--dl-glow);
}

.download-page__logo {
  display: block;
  width: min(180px, 60vw);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.download-page__title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dl-gold-light);
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  margin: 0 0 8px;
}

.download-page__desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #c9b99a;
}

.download-page__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 18px;
  text-decoration: none;
  color: #1a1008;
  background: linear-gradient(180deg, var(--dl-gold-light) 0%, var(--dl-gold) 100%);
  border: 1px solid rgba(212, 175, 55, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-card:hover,
.download-card:focus {
  transform: scale(1.02);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.55);
  color: #1a1008;
  text-decoration: none;
}

.download-card__label {
  font-size: 16px;
  font-weight: 700;
}

.download-card__hint {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

.download-card--soon {
  pointer-events: none;
  cursor: not-allowed;
  color: #8a7a68;
  background: linear-gradient(180deg, #3a3228 0%, #2a2218 100%);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: none;
}

.download-card--soon .download-card__hint {
  color: #c9a227;
  opacity: 1;
}

.download-page__guide {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}

.download-page__guide-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dl-gold-light);
  margin: 0 0 8px;
}

.download-page__guide-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #c9b99a;
}

.download-page__guide-item {
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.download-page__guide-item:last-child {
  margin-bottom: 0;
}

.download-page__guide-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.download-page__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.download-page__footer a {
  font-size: 13px;
  color: var(--dl-gold-light);
  text-decoration: none;
}

.download-page__footer a:hover {
  text-decoration: underline;
}

@media (min-width: 480px) {
  .download-page__box {
    padding: 32px 28px 28px;
  }

  .download-page__guide {
    margin-top: 28px;
    padding-top: 24px;
  }
}
