/* Riseofdead - Cyberpunk/Matrix Design */
/* Black + Cyan Neon Theme */

:root {
  --black: #000000;
  --black-light: #0a0a0a;
  --black-card: #0d0d0d;
  --cyan: #00d9ff;
  --cyan-dark: #006b7d;
  --cyan-bright: #00ffff;
  --text: #e0e0e0;
  --text-bright: #ffffff;
  --text-muted: #808080;
  --border: rgba(0, 217, 255, 0.2);
  --border-bright: rgba(0, 217, 255, 0.5);
  --glow-cyan: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
  --glow-cyan-strong: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.5), 0 0 30px rgba(0, 217, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid Background */
#networkCanvas {
  display: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 217, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 64px;
}

.section {
  margin-top: 26px;
  padding-top: 10px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(16px, calc((100vw - 1200px)/2));
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
  cursor: pointer;
}

.brandMark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.brandText {
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 10px;
}

.nav a, .nav button {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 750;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: all 0.2s;
}

.nav a:hover, .nav button:hover {
  color: var(--cyan);
  background: rgba(0, 217, 255, 0.05);
  border-color: var(--border);
}

.nav a.active, .nav button.active {
  color: var(--cyan-bright);
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--border-bright);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Headers */
.pageHeader h1 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
  color: var(--text-bright);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.pageHeader p {
  margin: 0;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

/* Cards */
.card, .panel {
  border-radius: 4px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--black-card), var(--black-light));
  padding: 18px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.panel {
  padding: 20px;
  margin-bottom: 16px;
}

.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cardIcon {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(0, 217, 255, 0.5));
}

.card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-bright);
}

.badge {
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0, 217, 255, 0.05);
}

/* Copy Rows */
.copyRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.copyRow code {
  flex: 1;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--cyan-bright);
}

.btn {
  background: rgba(0, 217, 255, 0.1);
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--border-bright);
  box-shadow: var(--glow-cyan);
}

/* Accounts Grid */
.accounts {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .accounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .accounts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Games */
.games {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gameWrap {
  display: flex;
  flex-direction: column;
}

.gameHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gameTitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
}

.status-on {
  color: #00ff00;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-off {
  color: #ff0040;
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid rgba(255, 0, 64, 0.3);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.gameCard {
  flex: 1;
  display: block;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--black-card), var(--black-light));
  padding: 16px;
  transition: all 0.3s;
}

.gameCard:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.gameInner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kvRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.k {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v {
  font-size: 14px;
  color: var(--text-bright);
  font-weight: 600;
  text-align: right;
}

.pillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 11px;
  color: var(--cyan);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
}

/* System Grid */
.system {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .system {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .system {
    grid-template-columns: repeat(3, 1fr);
  }
}

.statRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.statRow:last-child {
  border-bottom: none;
}

.label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.value {
  font-size: 14px;
  color: var(--text-bright);
  font-weight: 600;
  text-align: right;
}

/* Age Counter */
.ageCounter {
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.ageLabel {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.ageDisplay {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text);
  text-align: center;
  line-height: 1.8;
}

.ageNum {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--cyan-bright);
  text-shadow: var(--glow-cyan);
  margin: 0 4px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timelineRow {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.timelineYear {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  min-width: 60px;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

.timelineText {
  font-size: 15px;
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 16px 20px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: none;
  margin-top: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-card);
  color: var(--cyan-bright);
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
  box-shadow: var(--glow-cyan-strong);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  font-weight: 600;
}
