/* >786-R< tribute page — desert combat theme
   palette:
     desert-dark: #1a1610
     desert-mid:  #3d3524
     sand-1:      #c9a86e
     sand-2:      #a88a55
     bone:        #e8dcc0
     rust:        #b0623b
     olive:       #656a3f
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  color: #e8dcc0;
  background: #1a1610;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, .stencil { font-family: "Black Ops One", "Impact", sans-serif; letter-spacing: 0.03em; }

/* subtle grain overlay for that CRT / dusty-monitor feel */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 100;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,220,180,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201,168,110,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(176,98,59,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #241d13 0%, #1a1610 55%, #100c07 100%);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  /* faint horizon line */
  content: "";
  position: absolute; left: 0; right: 0; top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,110,0.35), transparent);
}
.hero::after {
  /* stencil scanlines background hint */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(0,0,0,0.06) 4px, rgba(0,0,0,0.06) 5px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.eyebrow {
  font-family: "Special Elite", monospace;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.4em;
  color: #a88a55;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.clan-name {
  font-size: clamp(3rem, 12vw, 9rem);
  color: #e8dcc0;
  text-shadow:
     0 3px 0 #3d3524,
     0 6px 30px rgba(176,98,59,0.35),
     0 0 60px rgba(0,0,0,0.4);
  line-height: 0.95;
  margin: 0 0 8px;
  display: block;
  letter-spacing: 0.04em;
}
.clan-name .th {
  font-size: 0.5em;
  color: #c9a86e;
  vertical-align: super;
  margin-right: 4px;
}
.clan-tag-line {
  display: block;
  font-family: "Special Elite", monospace;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #c9a86e;
  letter-spacing: 0.25em;
  margin: 12px 0 20px;
}
.roster-grid.single {
  grid-template-columns: minmax(280px, 640px);
  justify-content: center;
}
.section-lede {
  color: #a88a55;
  font-family: "Special Elite", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-top: -16px;
  margin-bottom: 22px;
}
.soldier .handle {
  font-family: "Special Elite", monospace;
  font-size: 0.8rem;
  color: #b0623b;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.soldier.lead {
  border-left-color: #a88a55;
  background: linear-gradient(180deg, #26200f 0%, #1e180f 100%);
}
.stencil-quote .attrib {
  display: block;
  color: #7a6a45;
  font-size: 0.85em;
  margin-top: 8px;
  letter-spacing: 0.15em;
}

/* SERVER SECTION */
.server-block {
  background: #241d13;
  border: 1px solid rgba(201,168,110,0.15);
  border-left: 4px solid #b0623b;
  padding: 20px 24px;
  margin-top: 20px;
  font-family: "Special Elite", monospace;
}
.server-line {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(201,168,110,0.12);
  align-items: baseline;
  flex-wrap: wrap;
}
.server-line:last-child { border-bottom: none; }
.server-line .lbl {
  color: #7a6a45;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-width: 180px;
}
.server-line .val {
  color: #c9a86e;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.server-line .note {
  color: #7a6a45;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.server-note {
  font-style: italic;
  color: #a88a55;
  margin-top: 20px;
  font-size: 0.95rem;
  border-left: 2px solid #656a3f;
  padding-left: 16px;
}

/* FOOT extra */
.foot-copyright a {
  color: #7a6a45;
  text-decoration: underline;
}
.foot-copyright a:hover { color: #c9a86e; }
.motto {
  font-family: "Special Elite", monospace;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: #c9a86e;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.years {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #7a6a45;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
}
.hero-bottom-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent 0%, #1a1610 100%);
  pointer-events: none;
}

/* SECTIONS */
.section {
  padding: 72px 0;
  border-top: 1px solid rgba(201,168,110,0.12);
  position: relative;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #c9a86e;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 12px;
}
.section h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #b0623b, transparent);
}
.section p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 68ch;
  color: #d5c8ab;
  margin-bottom: 18px;
}

.stencil-quote {
  font-family: "Special Elite", monospace;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: #a88a55;
  letter-spacing: 0.1em;
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid #b0623b;
  max-width: 62ch;
}

/* ROSTER */
.roster-grid {
  list-style: none;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 12px;
}
.soldier {
  background: linear-gradient(180deg, #241d13 0%, #1e180f 100%);
  border: 1px solid rgba(201,168,110,0.18);
  border-left: 4px solid #b0623b;
  padding: 22px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.soldier:hover { border-color: rgba(201,168,110,0.5); transform: translateY(-2px); }
.soldier.featured {
  border-left-color: #c9a86e;
  background: linear-gradient(180deg, #2a2216 0%, #201a10 100%);
  box-shadow: 0 4px 20px rgba(176,98,59,0.12);
}
.soldier.placeholder { opacity: 0.55; }
.rank {
  font-family: "Special Elite", monospace;
  font-size: 0.75rem;
  color: #b0623b;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.callsign {
  font-family: "Black Ops One", "Impact", sans-serif;
  font-size: 1.7rem;
  color: #e8dcc0;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.tag {
  font-family: "Special Elite", monospace;
  font-size: 0.85rem;
  color: #c9a86e;
  margin-bottom: 14px;
  letter-spacing: 0.15em;
}
.bio {
  color: #b8a988;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* MOD STATS */
.mod-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.stat {
  background: #241d13;
  border: 1px solid rgba(201,168,110,0.15);
  padding: 18px;
  text-align: center;
}
.stat-label {
  font-family: "Special Elite", monospace;
  font-size: 0.72rem;
  color: #7a6a45;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-val {
  font-family: "Black Ops One", sans-serif;
  font-size: 1.2rem;
  color: #c9a86e;
  letter-spacing: 0.03em;
}

/* FOOT */
.foot {
  padding: 48px 0 36px;
  border-top: 1px solid rgba(201,168,110,0.12);
  background: #100c07;
  text-align: center;
}
.foot-tag {
  font-family: "Black Ops One", sans-serif;
  font-size: 1.8rem;
  color: #c9a86e;
  margin-bottom: 8px;
}
.foot-line {
  font-family: "Special Elite", monospace;
  color: #7a6a45;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.foot-copyright {
  color: #4a412b;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* THEME PLAYER — big in-page graphic block */
#yt-audio-host {
  position: fixed;
  right: -50px; bottom: -50px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.theme-section { padding: 56px 0; }
.theme-player-big {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background: linear-gradient(180deg, #241d13 0%, #1a1610 100%);
  border: 1px solid rgba(201,168,110,0.2);
  border-left: 6px solid #b0623b;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 0 60px rgba(176,98,59,0.05);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.theme-player-big:hover {
  border-color: rgba(201,168,110,0.4);
  box-shadow: 0 10px 44px rgba(176,98,59,0.18), inset 0 0 60px rgba(176,98,59,0.08);
}
.tp-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #0f0b06;
}
.tp-art img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(1.05) saturate(0.85) brightness(0.85);
}
.tp-scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px);
  mix-blend-mode: multiply;
}
.tp-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(15,11,6,0.7) 100%),
    linear-gradient(90deg, transparent 60%, rgba(26,22,16,0.95) 100%);
}
.tp-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  gap: 6px;
}
.tp-eyebrow {
  font-family: "Special Elite", monospace;
  color: #a88a55;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.tp-title {
  font-family: "Black Ops One", "Impact", sans-serif;
  color: #e8dcc0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 2px 0 #3d3524, 0 4px 20px rgba(176,98,59,0.2);
}
.tp-sub {
  font-family: "Special Elite", monospace;
  color: #b8a988;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

/* the button itself — shares theming with any future page buttons */
.btn-theme {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #b0623b 0%, #8e4a29 100%);
  color: #f4e8cf;
  border: 1px solid #c9a86e;
  border-left: 5px solid #e8dcc0;
  padding: 14px 26px;
  font-family: "Black Ops One", "Impact", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(176,98,59,0.35), inset 0 1px 0 rgba(255,220,180,0.2);
}
.btn-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(176,98,59,0.55), inset 0 1px 0 rgba(255,220,180,0.3);
}
.btn-theme:active { transform: translateY(0); }
.btn-theme:focus-visible {
  outline: 2px solid #e8dcc0;
  outline-offset: 3px;
}
.btn-theme .tp-icon { font-size: 1.15rem; color: #f4e8cf; }
.btn-theme .tp-stop-text,
.btn-theme .tp-stop { display: none; }

/* playing state: swap button label + accent stripe */
.theme-player-big[data-state="playing"] .btn-theme .tp-play-text,
.theme-player-big[data-state="playing"] .btn-theme .tp-play { display: none; }
.theme-player-big[data-state="playing"] .btn-theme .tp-stop-text,
.theme-player-big[data-state="playing"] .btn-theme .tp-stop { display: inline; }
.theme-player-big[data-state="playing"] {
  border-left-color: #c9a86e;
}
.theme-player-big[data-state="playing"] .btn-theme {
  background: linear-gradient(180deg, #656a3f 0%, #4d5330 100%);
  border-color: #a8b078;
  box-shadow: 0 4px 20px rgba(101,106,63,0.4), inset 0 1px 0 rgba(232,220,192,0.15);
}
.theme-player-big[data-state="playing"] .tp-art img {
  animation: tp-pulse 3.2s ease-in-out infinite;
}
@keyframes tp-pulse {
  0%,100% { filter: sepia(0.35) contrast(1.05) saturate(0.85) brightness(0.85); }
  50%     { filter: sepia(0.2)  contrast(1.15) saturate(1.05) brightness(1.0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .roster-grid { gap: 16px; }
  .theme-player-big { grid-template-columns: 1fr; }
  .tp-art { min-height: 180px; }
  .tp-vignette {
    background:
      radial-gradient(ellipse at center, transparent 40%, rgba(15,11,6,0.7) 100%),
      linear-gradient(180deg, transparent 60%, rgba(26,22,16,0.95) 100%);
  }
}
@media (max-width: 560px) {
  .hero { min-height: 80vh; }
  .clan-name { text-shadow: 0 2px 0 #3d3524, 0 4px 20px rgba(176,98,59,0.35); }
  .section { padding: 44px 0; }
  .wrap { padding: 0 18px; }
  .btn-theme { padding: 12px 18px; font-size: 0.9rem; }
  .tp-body { padding: 20px 22px; }
}
