:root {
  /* === COLORS === */
  --bg: #0A0000;       /* Page Background: Black */
  --beige: #9C8361;    /* Panels & Accents */
  
  /* Text Colors */
  --fg-header: #E0E0E0; 
  --fg-panel: #111;     
  
  --font-main: "Ibarra Real Nova", serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%; margin: 0; 
  background: var(--bg); 
  color: var(--fg-header); 
  font-family: var(--font-main); font-size: 18px; line-height: 1.5;
}

.serif-font, .pix, h1, h2, h3, h4, .btn, .tabbtn, input, button {
  font-family: var(--font-main);
}



/* Layout */
body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px; }

header { width: 100%; max-width: 980px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; position: relative; z-index: 60; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; color: var(--fg-header); }

/* Social Icons */
.socials { display: flex; gap: 8px; align-items: center; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; 
  background: var(--beige); 
  color: #000;
  border-radius: 50%; text-decoration: none; transition: transform 0.1s;
}
.social-link:hover { transform: scale(1.1); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }

header .btn {
  background: var(--beige);
  color: #000;
  border: 1px solid #000;
}

nav.tabs { width: 100%; max-width: 980px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.tabbtn { 
  line-height: 1; font-size: 18px; padding: 12px 20px; 
  border-radius: 10px; 
  border: 1px solid #000; 
  background: var(--beige); 
  color: var(--fg-panel);
  cursor: pointer; transition: transform 0.1s ease; font-weight: 500;
}
.tabbtn[aria-selected="true"] { 
  font-weight: 800; 
  border-width: 2px;
  transform: scale(1.05);
}

main { width: 100%; max-width: 980px; }
.panel { display: none; animation: fadeIn 0.3s ease; } 
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.card, .description-block, #streamers-content, #presskit-content {
  background: var(--beige);
  color: var(--fg-panel);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
}

.btn, .card .btn, .panel .btn {
  display: inline-block; 
  background: #000; 
  color: #fff; 
  line-height: 1; font-size: 18px; text-decoration: none; 
  padding: 12px 20px; border-radius: 8px; 
  border: 1px solid #fff4; 
  transition: transform .06s ease, opacity .15s ease; cursor: pointer; font-weight: 600;
}
.btn:hover { transform: translateY(-1px); } .btn:active { opacity: .9; }

.hero-container { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.description-block { text-align: center; font-size: 1.1em; }

.hero-img {
  display: block; width: 40%; height: auto; border-radius: 12px;
  border: none;
  align-self: center;
}

.sub { color: #333; margin: 8px 0 16px; font-size: 1rem; font-style: italic; }
.card h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; }

.acct-list { list-style: none; padding: 0; margin: 0; }
.acct-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #0003; }
.acct-list li:last-child { border-bottom: none; }
.acct-val { font-weight: 700; color: #000; }

.rows .row { display: flex; align-items: center; gap: .75rem; padding: 10px 0; border-bottom: 1px dashed #0003; }
.rows .row:last-child { border-bottom: 0; }
.rank { width: 2rem; text-align: right; opacity: .9; font-variant-numeric: tabular-nums; }
.name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }

.lb-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.chip { background: transparent; border: 1px solid #000; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 16px; font-weight: 500; }
.chip[data-active="true"] { background: #000; color: #fff; font-weight: 700; border-color: #000; }

/* === PRESS KIT NEW STRUCTURE === */
.pk-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; margin-top: 10px; }

.pk-sidebar { 
  background: rgba(0,0,0,0.05); 
  padding: 20px; 
  border-radius: 8px; 
  border: 1px solid rgba(0,0,0,0.1); 
}

.pk-section-title { 
  font-size: 14px; 
  color: #000; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  border-bottom: 2px solid #000; 
  padding-bottom: 8px; 
  margin-bottom: 15px; 
  margin-top: 0; 
  font-weight: 800; 
}

.pk-fact span, .pk-fact a { color: #111; font-size: 15px; display: block; line-height: 1.4; text-decoration: none; }
.pk-fact a:not(.social-link) { text-decoration: underline; }
.pk-fact a:hover { color: #000; font-weight: 500; }

/* Socials inside Presskit sidebar */
.pk-sidebar .socials { 
  display: flex;               
  gap: 6px;                    
  justify-content: flex-start; 
  flex-wrap: wrap; 
}

.pk-sidebar .social-link { 
  display: flex !important;    
  align-items: center;         
  justify-content: center;     
  
  background: #000; 
  color: var(--beige); 
  
  width: 26px;                 
  height: 26px; 
  border-radius: 50%;
  
  padding: 0;                  
  margin: 0;
  line-height: 1;              
}

.pk-sidebar .social-link svg { 
  width: 14px; 
  height: 14px; 
  display: block;              
  fill: currentColor;
}

.pk-main { }

.pk-block { margin-bottom: 40px; }
.pk-block h3 { 
  border-bottom: 1px solid rgba(0,0,0,0.2); 
  padding-bottom: 10px; 
  color: #000; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  font-size: 20px; 
  margin-top: 0; 
  font-weight: 700; 
}
.pk-block p { color: #222; line-height: 1.7; margin-bottom: 15px; font-size: 1.05rem; }
.pk-block ul { padding-left: 20px; color: #222; line-height: 1.7; margin: 0; }
.pk-block li { margin-bottom: 8px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }

/* === FOOTER === */
footer { 
  margin-top: auto; 
  padding: 40px 20px 60px;
  width: 100%; 
  background: transparent;
  text-align: center; 
  color: #888; 
  font-size: 14px; 
  line-height: 1.6; 
}
.footer-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.footer-logo { width: 80px; height: auto; opacity: 0.8; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }

.footer-links h4 { 
  color: var(--beige); 
  text-transform: uppercase; 
  font-size: 12px; 
  margin: 0 0 8px 0; 
  letter-spacing: 1.5px; 
  font-weight: 700; 
}
.footer-links a { display: inline-block; margin: 0 12px; color: #aaa; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.steam-logo { width: 90px; height: auto; opacity: 0.5; margin-top: 10px; }
.legal-text { font-size: 12px; color: #555; max-width: 600px; }

/* === STREAMER BOX === */
.streamer-guide { margin-top: 24px; } 
.streamer-guide ol { padding-left: 20px; color: var(--fg-panel); line-height: 1.6; margin-bottom: 12px; }

.streamer-box-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.streamer-link-box { 
  background: #000; 
  padding: 12px; 
  border: 1px solid #444; 
  color: #ccc; 
  font-family: monospace; 
  font-size: 13px; 
  word-break: break-all; 
  border-radius: 6px; 
  flex: 1; 
  display: flex;
  align-items: center;
}

/* Theme-matched Copy Button */
.copy-btn {
  background: #000; 
  border: none;
  color: var(--beige); 
  padding: 0 20px; 
  border-radius: 6px; 
  cursor: pointer;
  font-weight: 700; 
  font-size: 14px; 
  text-transform: uppercase;
  transition: all 0.2s ease;
  min-height: 44px; 
  font-family: var(--font-main);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copy-btn:hover { 
  color: #FFF; 
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.copy-btn.copied {
  background: #000 !important;
  color: #FFF !important;
}

/* Modals */
.modal-backdrop { position: fixed; inset: 0; background: #0008; display: none; align-items: center; justify-content: center; z-index: 50; }
.modal { width: min(420px, 92vw); background: var(--beige); color: var(--fg-panel); border-radius: 12px; border: 2px solid #000; padding: 24px; }
.modal h4 { margin: 0 0 12px; font-size: 24px; color: #000; }
.modal p { margin: 6px 0 16px; color: var(--fg-panel); opacity: .9; }
.rowbtns { display: grid; gap: 12px; } .rowbtns .btn { width: 100%; text-align: center; }
.close-x { background: transparent; border: 0; font-size: 24px; cursor: pointer; float: right; color: #000; line-height: 0.5; }

@media (max-width: 768px) {
  header { flex-direction: column; gap: 12px; }
  .brand { flex-direction: column; gap: 8px; }
  /* Added order: -1 here to push actions to the top */
  .actions { margin-left: 0; justify-content: center; order: -1; }
  .hero-img { width: 90%; }
  .streamer-box-row { flex-direction: column; }
  
  /* Press Kit Mobile: 1 Column */
  .pk-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* === SCROLLBAR === */
/* Works on Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--beige);
  border-radius: 6px;
  border: 3px solid var(--bg); /* Creates padding around thumb */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--beige) var(--bg);
}