/* =========================================================
   Dragon Theme - Rank CSS
   Author: Samuel Alvincent
   ========================================================= */

/* ===========================
   Root Variables
   =========================== */
:root {
  --bg1: #190b07;
  --bg2: #3b1508;
  --edge1: #ff5e3b;
  --edge2: #ff9945;
  --edge3: #fff0a6;
  --text: #fff1e5;
  --muted: #ffcfb3;
  --border: rgba(255, 255, 255, 0.15);
  --glass1: rgba(255, 255, 255, 0.05);
  --glass2: rgba(255, 255, 255, 0.02);
  --accent: #ff8945;
}

/* ===========================
   Base
   =========================== */
html,
body {
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* ===========================
   Glowing Fire Aura
   =========================== */
.flame {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 25% 10%, rgba(255, 120, 60, 0.12), transparent 40%),
    radial-gradient(800px 400px at 70% 25%, rgba(255, 160, 80, 0.08), transparent 40%),
    radial-gradient(900px 480px at 50% 60%, rgba(255, 40, 0, 0.06), transparent 50%);
  filter: blur(26px) saturate(130%);
  animation: flameShift 14s ease-in-out infinite alternate;
}

@keyframes flameShift {
  50% {
    filter: hue-rotate(-10deg) brightness(1.1);
  }
}

.canvas-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  display: block;
}

/* ===========================
   Card
   =========================== */
.card {
  border-radius: 24px;
  padding: 30px 26px 32px;
  background: linear-gradient(180deg, var(--glass1), var(--glass2));
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

/* ===========================
   Header
   =========================== */
.hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe0c5, #ff8945);
  color: #2b0b00;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(255, 137, 69, 0.45);
}

.title {
  margin: 0;
  font-weight: 1000;
  font-size: clamp(30px, 5.8vw, 54px);
  position: relative;
}

.title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-22deg) translateX(-120%);
  mix-blend-mode: screen;
  filter: blur(1.2px);
  animation: shine 3.8s ease-in-out infinite 1s;
}

@keyframes shine {
  to {
    transform: skewX(-22deg) translateX(120%);
  }
}

/* ===========================
   Subtitle & Divider
   =========================== */
.sub {
  text-align: center;
  font-weight: 900;
  opacity: 0.9;
  margin: 6px 0 14px;
}

.divider {
  height: 1px;
  margin: 10px auto 18px;
  width: min(920px, 92%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* ===========================
   List
   =========================== */
.list {
  width: min(920px, 95%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
}

.li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.li.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffbe70, #ff7a3b);
  color: #2b0b00;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 120, 60, 0.35);
}

/* ===========================
   Buttons
   =========================== */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

.btn.primary {
  background: linear-gradient(90deg, #ff3b3b, #ff8a3b, #ffd76b);
  box-shadow: 0 10px 26px rgba(255, 120, 60, 0.35);
}

.btn.ghost {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

/* ===========================
   Footer Copy
   =========================== */
.copy {
  opacity: 0.85;
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}
