/* MU Season 6 — โทนดำ ส้มเข้ม อมน้ำตาล */

:root {
  --bg-deep:       #0c0805;
  --bg-card:       #161008;
  --bg-card-hover: #1e140c;
  --orange:        #c45a18;
  --orange-light:  #e07830;
  --orange-bright: #f09040;
  --orange-dim:    #8a4010;
  --orange-glow:   rgba(196, 90, 24, 0.3);
  --text:          #e8ddd0;
  --text-muted:    #9a8070;
  --border:        #3a2418;
  --border-orange: #5a3820;
  --font-display:  'Cinzel', 'Times New Roman', serif;
  --font-body:     'Segoe UI', Tahoma, sans-serif;
  --radius:        4px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(196, 90, 24, 0.1) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c45a18' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 820px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--orange-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '◆';
  font-size: 0.6rem;
  color: var(--orange-dim);
}

/* ── Download Card ──────────────────────────────────────────────── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--orange);
}

.download-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-orange);
  border-radius: var(--radius);
  color: var(--orange-light);
  background: rgba(196, 90, 24, 0.08);
}

.card-icon svg { width: 24px; height: 24px; }

.card-info h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--orange-bright);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-required {
  background: rgba(196, 90, 24, 0.2);
  color: var(--orange-light);
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Download Button ──────────────────────────────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(180deg, #f09040 0%, #b05010 100%);
  color: #1a0c04;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid #c06018;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: filter 0.2s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-download:active { transform: translateY(0); }

.btn-download.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-download .ext-label {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 400;
}

@media (max-width: 640px) {
  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card-icon { margin: 0 auto; }

  .card-info h2 { justify-content: center; }

  .card-meta { justify-content: center; }

  .card-action { display: flex; justify-content: center; }

  .btn-download { width: 100%; justify-content: center; }
}
