/* ==========================================================================
   PK888 Game — App download page
   ========================================================================== */

.dl-hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 76px) clamp(46px, 5.6vw, 84px);
  overflow: hidden;
}

.dl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36rem 24rem at 16% 4%, rgba(212, 175, 55, 0.22), transparent 62%),
    radial-gradient(34rem 24rem at 84% 20%, rgba(176, 16, 48, 0.24), transparent 62%);
}

.dl-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.dl-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-4);
}

.dl-hero__lead {
  max-width: 60ch;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-lead);
}

/* App identity card */
.app-card {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  padding: 18px 24px 18px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(42, 21, 71, 0.9), rgba(122, 10, 33, 0.35));
  box-shadow: var(--shadow-card);
}

.app-card__icon {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 20px;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), var(--shadow-gold-glow);
  object-fit: cover;
}

.app-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.app-card__meta b {
  color: var(--color-gold-bright);
}

.app-card__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold-bright);
}

.app-card__stars svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 940px) {
  .dl-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dl-hero__lead { margin-inline: auto; }
  .dl-hero .btn-row { justify-content: center; }
  .dl-hero__visual { order: -1; }
  .app-card { text-align: left; }
}

@media (max-width: 520px) {
  .app-card {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-4);
  }
  .app-card__meta { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Specs & QR
   -------------------------------------------------------------------------- */

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(201, 184, 220, 0.14);
  font-size: 0.94rem;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list dt,
.spec-list span:first-child {
  color: var(--color-text-muted);
}

.spec-list b {
  text-align: right;
  color: var(--color-text-primary);
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgba(21, 10, 36, 0.85);
  box-shadow: inset 0 0 34px rgba(212, 175, 55, 0.12);
  overflow: hidden;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Scanning laser line */
.qr-frame::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), transparent);
  box-shadow: 0 0 12px rgba(244, 205, 91, 0.8);
  animation: qrScan 3.2s ease-in-out infinite;
}

@keyframes qrScan {
  0%, 100% { top: 12%; opacity: 0.2; }
  50% { top: 86%; opacity: 1; }
}

/* Own element, not a second pseudo on .qr-frame — ::after there is the laser. */
.qr-corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.qr-corners::before,
.qr-corners::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-gold);
  pointer-events: none;
}

.qr-corners::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 6px 0 0 0;
}

.qr-corners::after {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 6px 0;
}

/* --------------------------------------------------------------------------
   Platform cards
   -------------------------------------------------------------------------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.platform {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--gradient-panel);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.platform:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover), var(--shadow-gold-glow);
}

.platform__os {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold-bright);
}

.platform__os svg {
  width: 26px;
  height: 26px;
}
