:root {
  --holly-red: #b22222;
  --deep-red: #8b1a1a;
  --pine-green: #1d4e28;
  --forest-green: #2c7033;
  --snow: #f4f5f7;
  --frost: #e2e5e8;
  --gold: #ffda77;
  --text-dark: #2b2b2b;
  --text-light: #fff;
  --border-color: #c8c8c8;
  --content-bg: #f9fafb;
  --highlight: rgba(255, 255, 255, 0.15);
}

body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #e87b7b 0%, #cc4444 60%, #a82a2a 100%) fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 3px 3px;
  opacity: 0.3;
  animation: snow 35s linear infinite;
  z-index: 0;
}

@keyframes snow {
  0% { transform: translateY(0); }
  100% { transform: translateY(1000px); }
}

#header {
  background: linear-gradient(to bottom, var(--holly-red), var(--deep-red));
  color: var(--text-light);
  padding: 10px 0;
  border-bottom: 2px solid #6a1111;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  position: relative;
  z-index: 5;
}

.header-content {
  width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
}

.logo img { margin-right: 10px; }

.nav-tabs {
  display: flex;
  background: linear-gradient(to bottom, #fff9f0, #f4ede3);
  border-bottom: 1px solid var(--border-color);
  padding-left: 10px;
}

.nav-tab {
  padding: 8px 20px;
  margin-right: 5px;
  background: linear-gradient(to bottom, #fff9f0, #f3eee5);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  position: relative;
  top: 1px;
}

.nav-tab:hover {
  background: linear-gradient(to bottom, #fffdf7, #fef3eb);
  color: var(--holly-red);
}

.nav-tab.active {
  background: #fffaf5;
  border-bottom: 1px solid #fffaf5;
  color: var(--holly-red);
  box-shadow: 0 -2px 0 var(--gold) inset;
}

#container {
  width: 1035px;
  margin: 40px auto;
  background: var(--content-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.content-block {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #fcfcfc;
}

.block-header {
  background: linear-gradient(to bottom, var(--forest-green), var(--pine-green));
  padding: 10px 15px;
  border-bottom: 1px solid #103918;
  font-weight: bold;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.block-content { padding: 15px; }

.user-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border-color);
}

.user-item:last-child { border-bottom: none; }

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  margin-right: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(to bottom, #fff, #f1f1f1);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(to bottom, #fef7ec, #fff3e0);
}

.btn-primary {
  background: linear-gradient(to bottom, var(--holly-red), var(--deep-red));
  color: #fff;
  border-color: #7b1111;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #c53030, #9a1818);
}

.aero-highlight {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 150, 0, 0.25);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.08);
}

#footer {
  width: 960px;
  margin: 20px auto;
  padding: 15px 0;
  text-align: center;
  color: #444;
  font-size: 12px;
  border-radius: 6px;
}

.game-card {
  width: 180px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  margin: 10px;
  position: relative;
  border: 1px solid var(--border-color);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  z-index: 1000;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  color: var(--text-dark);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #fff8f0;
  color: var(--holly-red);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

@media (max-width: 1000px) {
  .header-content, #container {
    width: auto;
    margin: 0 10px;
  }
  #container { grid-template-columns: 1fr; }
}
