* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  background-color: #080505;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .logo {
  font-family: 'Teko', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #080505;
  border-bottom: 2px solid #ff2a2a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #a0a6b5;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Teko', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: #ff2a2a;
}

.user-widget {
  position: relative;
  margin-left: 0.5rem;
}

.btn-login {
  background: #ff2a2a;
  color: #ffffff;
  border: none;
  padding: 0.4rem 1.2rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn-login:hover {
  background: #cc0000;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.6);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.3);
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.user-profile:hover {
  border-color: #ff2a2a;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.3);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ff2a2a;
  object-fit: cover;
}

.user-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.4);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  z-index: 200;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #a0a6b5;
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dropdown-item:hover {
  background: rgba(255, 42, 42, 0.15);
  color: #ff2a2a;
}

/* CAROUSEL CONTROLS & FIT FOR #222 */
.cup-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 6px;
  padding: 0.6rem;
}

.carousel-nav-btn {
  background: #080505;
  border: 1px solid #ff2a2a;
  color: #ff2a2a;
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #ff2a2a;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.6);
}

.cup-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.4rem 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a #080505;
  cursor: grab;
  width: 100%;
}

.cup-carousel-track.active {
  cursor: grabbing;
}

.cup-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.cup-carousel-track::-webkit-scrollbar-track {
  background: #080505;
}

.cup-carousel-track::-webkit-scrollbar-thumb {
  background-color: #ff2a2a;
  border-radius: 3px;
}

.carousel-card {
  flex: 0 0 270px;
  background: #050303;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.carousel-card:hover {
  border-color: #ff2a2a;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.25);
}

.carousel-card.active {
  border: 2px solid #ff2a2a;
  background: linear-gradient(180deg, rgba(255, 42, 42, 0.15) 0%, #080505 100%);
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.4);
}

.carousel-card-badge {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.carousel-card-badge.live {
  background: rgba(255, 42, 42, 0.2);
  color: #ff2a2a;
  border: 1px solid #ff2a2a;
  animation: livePulse 1.5s infinite alternate ease-in-out;
}

.carousel-card-badge.upcoming {
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  border: 1px solid #00bfff;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.format-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 6px;
  white-space: nowrap;
}

.format-badge.theme {
  background: rgba(255, 153, 0, 0.2);
  color: #ff9900;
  border: 1px solid #ff9900;
}

.format-badge.mappool {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 1px solid #00ff88;
}

.carousel-card-winner {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.carousel-card-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}

.carousel-card-theme {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff2a2a;
  margin: 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card-date {
  font-size: 0.8rem;
  color: #a0a6b5;
}

/* UPCOMING COUNTDOWN BANNER */
.upcoming-preview-card {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, #0e0a0a 100%);
  border: 1px solid #00bfff;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.2);
}

.upcoming-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.upcoming-countdown-badge {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #00bfff;
  background: rgba(0, 191, 255, 0.1);
  padding: 0.3rem 1rem;
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 4px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.upcoming-preview-card h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.upcoming-preview-card p {
  color: #d0d5e0;
  font-size: 1.05rem;
}

.upcoming-chip-badge {
  display: inline-block;
  background: #00bfff;
  color: #000000;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* MAPPOOL DENSE TABLE VIEW */
.mappool-table-wrapper {
  margin: 1.5rem 0;
  background: #0b0808;
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mappool-table-title {
  background: #050303;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(255, 42, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.mappool-table-title h3 {
  color: #ff2a2a;
  font-size: 1.6rem;
  letter-spacing: 1.5px;
}

.mappool-table-title-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mappool-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #a0a6b5;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.mappool-filter-label:hover {
  border-color: #ff2a2a;
  color: #ffffff;
}

.mappool-filter-label input[type="checkbox"] {
  width: auto !important;
  cursor: pointer;
  accent-color: #ff2a2a;
}

.mappool-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mappool-table th {
  background: #080505;
  color: #a0a6b5;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.mappool-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  vertical-align: middle;
}

.mappool-table tr:hover {
  background: rgba(255, 42, 42, 0.06);
}

.mappool-table tr.unplayed-row {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.2);
}

.mappool-table tr.unplayed-row:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.03);
}

.map-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-thumb-img {
  width: 52px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
}

.map-name-text {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.map-version-text {
  color: #a0a6b5;
  font-size: 0.85rem;
  font-weight: 400;
}

.map-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  border-radius: 3px;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-action:hover {
  background: #ff2a2a;
  border-color: #ff2a2a;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.5);
}

.btn-map-action.direct:hover {
  background: #00bfff;
  border-color: #00bfff;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.btn-map-action.copy:hover {
  background: #00ff88;
  border-color: #00ff88;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-tag-unplayed {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #a0a6b5;
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ADMIN PANEL STYLING FIXES */
.admin-header-tabs {
  display: flex;
  gap: 0.8rem;
  border-bottom: 2px solid rgba(255, 42, 42, 0.3);
  margin-bottom: 2rem;
}

.admin-tab-btn {
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.3);
  color: #a0a6b5;
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.5rem 1.8rem;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #ffffff;
  border-color: #ff2a2a;
  background: rgba(255, 42, 42, 0.15);
}

.admin-tab-btn.active {
  color: #ffffff;
  background: #ff2a2a;
  border-color: #ff2a2a;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.5);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.form-box {
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.3);
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.form-box h2 {
  font-size: 2rem;
  color: #ff2a2a;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 42, 42, 0.2);
  padding-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d0d5e0;
}

/* EXPLICIT FORM INPUT STYLING */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  background: #050303 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 0.75rem 0.9rem !important;
  border-radius: 4px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100%;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: #ff2a2a !important;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.4) !important;
}

select option {
  background: #0e0a0a;
  color: #ffffff;
  padding: 0.5rem;
}

/* SLOT BADGES FOR MAPPOOL MAPS & HEADERS */
.slot-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
  min-width: 44px;
}

.slot-badge.nm { background: #5dadec; color: #000; }
.slot-badge.hd { background: #e3a247; color: #000; }
.slot-badge.hr { background: #e34747; color: #fff; }
.slot-badge.dt { background: #b447e3; color: #fff; }
.slot-badge.fm { background: #47e36b; color: #000; }
.slot-badge.tb { background: #ffffff; color: #000; }
.slot-badge.ez { background: #00e5ff; color: #000; }
.slot-badge.fl { background: #a0a6b5; color: #000; }

.slot-badge.nip {
  background: rgba(255, 42, 42, 0.25);
  color: #ff2a2a;
  border: 1px solid #ff2a2a;
  cursor: help;
}

.unplayed-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #a0a6b5;
  padding: 0.6rem;
  border-radius: 4px;
  text-align: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 4px;
  background: #0e0a0a;
}

.dummy-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dummy-table th, .dummy-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  vertical-align: middle;
}

.dummy-table th {
  background: #050303;
  color: #ffffff;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

main {
  flex: 1;
  max-width: 1750px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.15rem;
  color: #a0a6b5;
  max-width: 650px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.card {
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 4px;
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-badge {
  background: rgba(255, 42, 42, 0.15);
  color: #ff2a2a;
  border: 1px solid rgba(255, 42, 42, 0.4);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1rem;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  font-family: 'Teko', sans-serif;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  background: #ff2a2a;
  color: #ffffff;
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  letter-spacing: 1px;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
}

.btn:hover {
  background: #cc0000;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
}

.zsum-tag {
  color: #00bfff;
  font-weight: bold;
}

.mod-badge {
  display: inline-block;
  background: #ff2a2a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

.btn-danger {
  background: #a80000;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}

.btn-danger:hover {
  background: #e60000;
  box-shadow: 0 0 15px rgba(230,0,0,0.5);
}

.player-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.player-link:hover {
  color: #ff2a2a;
  text-shadow: 0 0 8px rgba(255, 42, 42, 0.6);
}

.map-header-cell {
  text-align: center;
  min-width: 110px;
}

.map-header-img {
  width: 100%;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  border: 1px solid rgba(255,255,255,0.1);
}

.live-pulse-badge {
  color: #ff2a2a;
  font-weight: 900;
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  animation: livePulse 1.5s infinite alternate ease-in-out;
  display: inline-flex;
  align-items: center;
}

@keyframes livePulse {
  0% { opacity: 0.4; text-shadow: 0 0 2px rgba(255,42,42,0.2); }
  100% { opacity: 1; text-shadow: 0 0 15px rgba(255,42,42,0.9); }
}

.podium-section {
  margin: 2rem 0 1.5rem;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.podium-card {
  background: #0e0a0a;
  border-radius: 6px;
  padding: 1.8rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  width: 100%;
  max-width: 270px;
}

.podium-card.rank-1 {
  order: 2;
  min-height: 330px;
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, #0e0a0a 70%);
}

.podium-card.rank-2 {
  order: 1;
  min-height: 290px;
  border: 2px solid #c0c0c0;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.15);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.06) 0%, #0e0a0a 70%);
}

.podium-card.rank-3 {
  order: 3;
  min-height: 270px;
  border: 2px solid #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.15);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.06) 0%, #0e0a0a 70%);
}

.podium-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.podium-card.rank-1:hover { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); }
.podium-card.rank-2:hover { box-shadow: 0 0 35px rgba(192, 192, 192, 0.4); }
.podium-card.rank-3:hover { box-shadow: 0 0 35px rgba(205, 127, 50, 0.4); }

.podium-medal {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.podium-avatar {
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.rank-1 .podium-avatar { width: 92px; height: 92px; border: 3px solid #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.5); }
.rank-2 .podium-avatar { width: 78px; height: 78px; border: 3px solid #c0c0c0; box-shadow: 0 0 12px rgba(192,192,192,0.4); }
.rank-3 .podium-avatar { width: 72px; height: 72px; border: 3px solid #cd7f32; box-shadow: 0 0 12px rgba(205,127,50,0.4); }

.podium-username {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.podium-zsum {
  font-family: 'Teko', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.rank-1 .podium-zsum { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-2 .podium-zsum { color: #c0c0c0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.4); }
.rank-3 .podium-zsum { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.4); }
.podium-avg { color: #a0a6b5; font-size: 0.85rem; }

.mod-multipliers-card {
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem auto 2rem;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.15);
}

.mod-multipliers-header {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  color: #ff2a2a;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.mod-multipliers-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mod-multiplier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.mod-chip-bonus {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid #00ff88;
  color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.mod-chip-penalty {
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid #ff2a2a;
  color: #ff2a2a;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.2);
}

.chip-mod-name {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  color: #ffffff;
}

.adjusted-star {
  color: #ff9900;
  font-weight: bold;
  font-size: 0.9rem;
  margin-left: 3px;
  cursor: help;
}

.mappool-card {
  background: #0e0a0a;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.mappool-card:hover {
  border-color: #ff2a2a;
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.35);
  transform: translateY(-4px);
}

.mappool-card-header {
  position: relative;
  height: 110px;
  overflow: hidden;
  cursor: pointer;
}

.mappool-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.mappool-card-header:hover img {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.mappool-card-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(14, 10, 10, 0.95) 90%);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.map-link-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 5, 5, 0.85);
  color: #ff2a2a;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border: 1px solid #ff2a2a;
  transition: all 0.2s ease;
  pointer-events: none;
}

.mappool-card-header:hover .map-link-badge {
  background: #ff2a2a;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.8);
}

.stat-hover-box {
  background: rgba(255,255,255,0.02);
  padding: 0.6rem;
  border-radius: 4px;
  cursor: help;
  transition: background 0.2s, transform 0.2s;
}

.stat-hover-box:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.lobby-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #050303;
  border: 1px solid rgba(255, 42, 42, 0.4);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.lobby-link-btn:hover {
  border-color: #ff2a2a;
  background: rgba(255, 42, 42, 0.15);
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.5);
  color: #ff2a2a;
  transform: translateY(-2px);
}

/* MODAL OVERLAY & POPUP BOX */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: #0e0a0a;
  border: 2px solid #ff9900;
  border-radius: 8px;
  padding: 2rem;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
}

footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #707785;
  font-size: 0.85rem;
}