/* MU Season 6 — การ์ดเดิม + พื้นหลังเว็บ S3 */

: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);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 1rem 260px;
  background-color: #000;
  background-image: url("/s3/common/img/fullbg.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 1656px auto;
}

.scene {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 1109px;
  height: 469px;
  margin-left: -554px;
  background: url("/s3/common/img/footer.png") no-repeat center bottom;
  background-size: 1109px auto;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  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 dashed rgba(91, 58, 14, 0.65);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 1px 3px #000;
}

.section-title::before {
  content: '◆';
  font-size: 0.6rem;
  color: var(--orange-dim);
}

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -0.35rem 0 1.15rem;
  line-height: 1.5;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card {
  background: rgba(8, 5, 4, 0.42);
  border: 1px dashed #5b3a0e;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.72), inset 0 -1px 0 rgba(91, 58, 14, 0.28);
  transition: background 0.2s;
}

.download-card::before {
  display: none;
}

.download-card:hover {
  background: rgba(8, 5, 4, 0.55);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8), inset 0 -1px 0 rgba(91, 58, 14, 0.28);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #5b3a0e;
  border-radius: 0;
  color: var(--orange-light);
  background: rgba(8, 5, 4, 0.45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.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;
}

.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; }
}
