/* =================================================
   THE PUNK TANG CLAN — FINAL STYLE
   ================================================= */

/* ---------- VARIABLES ---------- */
:root {
  --gold: #f5d76e;
  --red: #c0392b;
  --dark-red: #7f1d1d;
  --bg: #0a0a0a;
  --panel: #0f0f0f;
  --text: #f2f2f2;
  --muted: #a0a0a0;
}

/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ATMOSPHERIC BACKGROUND ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(192,57,43,0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(245,215,110,0.25), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(127,29,29,0.35), transparent 55%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 2px
    ),
    radial-gradient(circle, transparent 55%, #000 95%);
  z-index: -1;
}

/* ---------- LAYOUT ---------- */
.frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 22px 120px;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.tab {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: .25em;
  cursor: pointer;
  transition: all .25s ease;
}

.tab:hover {
  background: var(--red);
  color: #000;
}

.tab.active {
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #000;
  border: none;
}

/* ---------- PANELS ---------- */
.panel {
  display: none;
  max-width: 960px;
  width: 100%;
  padding: 64px 42px;
  background: linear-gradient(180deg, #120a0a, #0a0a0a);
  border: 2px solid rgba(192,57,43,0.45);
  box-shadow: 0 0 60px rgba(192,57,43,0.25);
  text-align: center;
}

.panel.active {
  display: block;
}

/* ---------- TITLES ---------- */
.title {
  font-family: "ZCOOL QingKe HuangYou", cursive;
  font-size: clamp(88px, 14vw, 200px);
  letter-spacing: .12em;
  color: var(--gold);
  margin: 0 0 20px;
  text-shadow:
    0 0 20px rgba(245,215,110,0.35),
    0 0 50px rgba(192,57,43,0.25);
}

h2 {
  font-family: "ZCOOL QingKe HuangYou", cursive;
  font-size: 42px;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 30px;
}

h3 {
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--gold);
  margin: 0;
}

/* ---------- TEXT ---------- */
p {
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0;
}

.tagline {
  margin: 20px 0 40px;
  letter-spacing: .18em;
  color: var(--muted);
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  margin: 30px 0 40px;
}

.manifesto p {
  font-family: "ZCOOL QingKe HuangYou", cursive;
  font-size: 22px;
  letter-spacing: .18em;
  color: var(--gold);
  margin: 10px 0;
}

/* ---------- BUTTONS ---------- */
.actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  padding: 16px 38px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .25em;
  cursor: pointer;
  transition: all .25s ease;
}

.btn:hover {
  background: var(--gold);
  color: #000;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--red));
  border: none;
  color: #000;
}

.btn.ghost {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- MINT STATS ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stats span {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
}

.stats b {
  font-size: 18px;
  color: var(--gold);
}

/* ---------- CLAN STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
}

.stat-box {
  padding: 24px;
  background: #000;
  border: 1px solid rgba(192,57,43,0.5);
}

.stat-box span {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
}

.stat-box b {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  color: var(--gold);
}

/* ---------- ACTIVITY ---------- */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-item {
  background: #000;
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  text-align: left;
}

.activity-item p {
  margin: 6px 0;
  color: var(--text);
}

.activity-item small {
  color: var(--muted);
}

.type {
  font-size: 11px;
  letter-spacing: .3em;
}

.type.mint { color: var(--gold); }
.type.transfer { color: #c77dff; }
.type.ritual { color: #ff6b6b; }

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: #000;
  border: 2px solid rgba(192,57,43,0.45);
}

/* ---------- ROADMAP (GRAPHIC) ---------- */
.roadmap-wrap {
  position: relative;
  margin-top: 40px;
  display: grid;
  gap: 22px;
}

.roadmap-line {
  position: absolute;
  left: 26px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(245,215,110,0.75),
    rgba(192,57,43,0.55),
    rgba(127,29,29,0.55)
  );
  opacity: .55;
}

.rm-card {
  position: relative;
  padding: 22px 22px 18px 64px;
  text-align: left;
  background: linear-gradient(180deg, #0f0a0a, #070707);
  border: 1px solid rgba(192,57,43,0.45);
  box-shadow: 0 0 35px rgba(192,57,43,0.14);
}

.rm-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.rm-seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245,215,110,0.4), rgba(192,57,43,0.3));
  color: var(--gold);
  font-family: "ZCOOL QingKe HuangYou", cursive;
  font-size: 22px;
  position: relative;
}

.rm-seal::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 50%;
  width: 38px;
  height: 2px;
  background: rgba(245,215,110,0.45);
}

.rm-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.rm-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}

.rm-bullet {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--gold), var(--red));
}

/* ---------- FOOT NOTES ---------- */
.status,
.live-note {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--muted);
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  .panel { padding: 48px 22px; }
  .title { font-size: clamp(64px, 18vw, 140px); }
  h2 { font-size: 34px; }
  .roadmap-line { left: 18px; }
  .rm-card { padding-left: 54px; }
}
