:root {
  --primary: #ffffff;          
  --bg-dark: #0f0f0f;           
  --card: #1e1e1e;             
  --panel-bg: var(--card);
  --text: #e0e0e0;              
  --border: #333;               
  --muted: #888;                
  --input-bg: #2a2a2a;          
  --stat-bg: #252525;           
  --slot-empty: #1a1a1a;        
  --slot-filled: #2d2d2d;       
  --forum-btn-bg: #2a2a2a;      
  --forum-btn-hover: #444;      
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);       
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

nav a:not(.btn):hover {
  color: var(--primary);
  background: rgba(255,255,255,0.05);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-image: url('hootblackroleplay.jpg'), linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;           
  margin: 0 0 1.5rem 0;
  color: var(--primary);       
  font-weight: 800;            
  text-transform: uppercase;  
  letter-spacing: 2px;         
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);  
}

.hero p {
  margin: 0 auto;
  max-width: 700px;           
  color: var(--text);          
  font-size: 1.25rem;         
  line-height: 1.4;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary); 
  color: var(--bg-dark);      
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  background: #ccc;           
}

nav a.btn.forum-btn {
  background: var(--forum-btn-bg);
  color: var(--primary);
  padding: 0.5rem 1rem;        
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); 
}

nav a.btn.forum-btn:hover {
  background: var(--forum-btn-hover);
  transform: none;             
  box-shadow: inset 0 1px 5px rgba(0,0,0,0.7);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.logout-btn {
  background: #555;           
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
}

.logout-btn:hover {
  background: #777;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--panel-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.news-section {
  margin-top: 4rem;
}

.news-item {
  border-left: 5px solid var(--primary);  
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dashboard {
  background: rgba(10, 12, 15, 0.95);
}

.modal-content {
  background: var(--panel-bg);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.3rem;
}

.close-modal:hover {
  color: var(--text);
}

.screen-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.7rem;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

hr {
  border: 0;
  border-top: 1px solid #444;
  margin: 1.5rem 0;
}

.dashboard-container {
  background: var(--panel-bg);
  width: 90%;
  max-width: 800px;
  min-height: 550px;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.player-badge {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rank-tag {
  display: inline-block;
  background: #333;           
  color: var(--primary);      
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dashboard-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text);
}

.dashboard-header p.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--stat-bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-weight: bold;
  color: var(--text);
  font-size: 1.2rem;
}

.money {
  color: var(--primary);      
}

.panels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.panel {
  background: var(--stat-bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-title {
  margin: 0 0 1rem 0;
  color: var(--primary);      
  font-size: 1.1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.inventory-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.slot {
  aspect-ratio: 1;
  background: var(--slot-empty);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.slot.item {
  background: var(--slot-filled);
  border-color: var(--primary);   
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

.slot::after {
  content: '?';
  color: #666;
  font-size: 0.8rem;
}

.slot.item::after {
  content: '';
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-status {
  font-size: 0.8rem;
}

.task-status.active::after {
  content: "●";
  color: var(--primary);        
}

.task-status.done::after {
  content: "○";
  color: var(--muted);          
}

.notes-block {
  background: var(--stat-bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  margin-top: auto;
}

.notes-block .panel-title {
  margin: 0 0 0.7rem 0;
  color: var(--text);
  text-align: left;
}
