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

:root {
  --orange: #e8610a;
  --orange-light: #ff8533;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --text: #f0ebe3;
  --text-muted: rgba(240, 235, 227, 0.45);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0d0905;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Background glow ── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 30% 55%, rgba(200, 70, 10, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 72% 48%, rgba(120, 40, 5, 0.18) 0%, transparent 65%);
}

/* ── Main glass card ── */
.card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(900px, 94vw);
  min-height: 420px;
  max-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.55),
    0 0 120px rgba(180, 60, 5, 0.12);
}

/* top-edge highlight */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.06) 100%);
}

/* ── Left logo panel ── */
.card-logo {
  flex: 0 0 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.15) 100%);
  border-right: 1px solid var(--glass-border);
  position: relative;
}

.card-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 55%, rgba(200, 70, 10, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.logo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 60px rgba(200, 80, 10, 0.35),
    0 12px 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
}

/* ── Right content panel ── */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 36px 40px;
}

/* Studio */
.studio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0.9);
}

/* Title */
.game-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.game-title span {
  color: var(--orange);
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* Tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

/* Meta row */
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--glass-border);
}

/* ── OS Selector ── */
.os-selector {
  display: flex;
  gap: 8px;
}

.os-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.os-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.os-icon-png {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0.45);
  transition: filter 0.2s ease;
}

.os-btn.active .os-icon-png,
.os-btn:hover:not(.unavailable) .os-icon-png {
  filter: brightness(1);
}

.os-btn:hover:not(.unavailable) {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.os-btn.active {
  border-color: rgba(232, 97, 10, 0.6);
  background: rgba(232, 97, 10, 0.15);
  color: var(--text);
  box-shadow: 0 0 20px rgba(232, 97, 10, 0.12);
}

.os-btn.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.soon-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  margin-left: 2px;
}

/* ── Download button ── */
.download-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--orange) 0%, #c4520a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 20px rgba(232, 97, 10, 0.40),
    0 1px 0 rgba(255,255,255,0.12) inset;
  width: fit-content;
}

.dl-btn svg {
  width: 18px;
  height: 18px;
}

.dl-btn:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  box-shadow:
    0 6px 28px rgba(232, 97, 10, 0.55),
    0 1px 0 rgba(255,255,255,0.15) inset;
  transform: translateY(-1px);
}

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

.dl-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.unavail-note {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
  padding-left: 2px;
}

.unavail-note.visible {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .card {
    flex-direction: column;
    min-height: unset;
    max-height: 98vh;
    overflow-y: auto;
  }

  .card-logo {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 28px 24px 20px;
  }

  .logo-wrap {
    width: 140px;
    height: 140px;
  }

  .card-content {
    padding: 24px 24px 32px;
    gap: 14px;
  }

  .os-selector {
    flex-wrap: wrap;
  }
}
