:root {
  --bg-primary: #080d0a;
  --bg-secondary: #0f1612;
  --bg-tertiary: #16201a;
  --bg-card: rgba(18, 26, 21, 0.82);
  --bg-card-hover: rgba(26, 38, 30, 0.95);
  --border-color: rgba(245, 158, 11, 0.24);
  --border-focus: #fbbf24;
  --text-primary: #fffbeb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-rich: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #38bdf8;
  --accent-orange: #ea580c;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(217, 119, 6, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 40%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  background-attachment: fixed;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fef08a;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrap, .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.brand, .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-tag {
  background: linear-gradient(135deg, #d97706, #f59e0b 60%, #fbbf24 100%);
  color: #0f172a;
  font-size: 0.725rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
  color: #000;
}

.btn-secondary {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fffbeb;
}
.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}
.btn-danger:hover {
  background: #f43f5e;
  color: #fff;
}

.btn-hud {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.btn-hud:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
}

.btn-steam {
  background: #171a21;
  border: 1px solid #3c4454;
  color: #c5c3c0;
}
.btn-steam:hover {
  background: #2a475e;
  color: #fff;
  border-color: #66c0f4;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.825rem;
}

/* Announcement Ticker */
.ticker-bar {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.ticker-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  padding: 50px 0 35px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Cards & Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Rules Accordion */
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.rule-card.highlight {
  border-color: var(--accent-orange);
  background: rgba(234, 88, 12, 0.08);
}
.rule-card.warning-card {
  border-color: var(--accent-amber);
}
.rule-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
}
.rule-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.rule-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rule-body {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}
.rule-body ul {
  padding-left: 20px;
  margin: 12px 0;
}
.rule-body li {
  margin-bottom: 8px;
}

.rule-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-allow { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-gold { background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(245, 158, 11, 0.35)); color: #fbbf24; border: 1px solid #fbbf24; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-prohibit { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.badge-warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; }

/* Pack Limit Table */
.pack-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.pack-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.pack-table th {
  background: rgba(245, 158, 11, 0.14);
  padding: 14px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}
.pack-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.pack-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.pack-limit-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-amber);
}

/* Map Layout */
.map-page-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - 68px);
  position: relative;
}
#map-viewport {
  width: 100%;
  height: 100%;
  background: #060d09;
}
.map-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  gap: 20px;
}

/* Team / Pack Roster */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.team-member-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(52, 211, 153, 0.4);
}
.member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald-light);
  object-fit: cover;
}
.member-info {
  flex: 1;
}
.member-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.member-dino {
  font-size: 0.85rem;
  color: var(--accent-emerald-light);
}
.member-coords {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Garage UI */
.active-dino-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
.dino-avatar-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.stat-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stat-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.fill-health { background: #ef4444; }
.fill-hunger { background: #f59e0b; }
.fill-thirst { background: #06b6d4; }
.fill-stamina { background: #10b981; }
.fill-growth { background: #8b5cf6; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.garage-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.garage-slot-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
}
.garage-slot-card.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.01);
  opacity: 0.6;
}
.garage-slot-card.empty:hover {
  opacity: 1;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #060e0a;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .map-page-wrap { grid-template-columns: 1fr; height: auto; }
  #map-viewport { height: 550px; }
  .active-dino-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Landmark Pin & Tooltip */
.location-landmark-pin {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.location-landmark-pin:hover {
  transform: scale(1.3);
}
.map-landmark-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid #38bdf8 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
.map-landmark-tooltip::before {
  border-top-color: #38bdf8 !important;
}

/* Dino Population Status Pill (No Player Names) */
.dino-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.dino-status-pill:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}

/* Big Official Steam Login Button */
.btn-steam-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
  border: 1.5px solid #66c0f4;
  color: #ffffff !important;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(102, 192, 244, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
}
.btn-steam-big:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 50%, #1999e3 100%);
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(102, 192, 244, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}


