@font-face {
  font-family: 'Minecraft';
  src: url('/media/Minecraft-Tenv2.woff') format('woff');
}

@font-face {
  font-family: 'Pixelated';
  src: url('/media/pixelated.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  src: url('/media/assets/inter.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: #f5f5f5;
  background: #1a1a1a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.main-content {
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/media/background4.webp') center/cover no-repeat;
  background-attachment: fixed;
  opacity: 1;
  z-index: -1;
  transform: none !important;
  animation: none !important;
}

.background-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(30, 30, 30, 0.93) 100%);
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.competitions-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 4rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(137, 207, 240, 0.5), 0 4px 8px rgba(0, 0, 0, 0.8);
}

.page-subtitle {
  font-size: 1.3rem;
  color: #d0d0d0;
}

.active-competition-section {
  margin-bottom: 5rem;
}

.competition-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.active-card {
  border-color: rgba(137, 207, 240, 0.6);
  box-shadow: 0 10px 40px rgba(137, 207, 240, 0.3);
}

.competition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.competition-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem;
  color: #89CFF0;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.competition-badge {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.competition-badge.active {
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(137, 207, 240, 0.4);
}

.competition-description {
  font-size: 1.1rem;
  color: #d0d0d0;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.timer-container {
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid rgba(137, 207, 240, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.timer-label {
  font-size: 1.2rem;
  color: #89CFF0;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.timer-value {
  font-family: 'Minecraft', sans-serif;
  font-size: 3.5rem;
  color: #89CFF0;
  text-shadow: 0 0 15px rgba(137, 207, 240, 0.7);
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.timer-label-small {
  font-size: 0.9rem;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-separator {
  font-family: 'Minecraft', sans-serif;
  font-size: 3rem;
  color: #89CFF0;
  margin: 0 0.5rem;
}

.competition-main-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.competition-left {
  flex: 1;
  min-width: 300px;
}

.competition-right {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-container-compact {
  background: rgba(20, 20, 20, 0.6);
  border: 2px solid rgba(137, 207, 240, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.timer-label-compact {
  font-size: 0.9rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.timer-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timer-unit-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.timer-value-compact {
  font-family: 'Minecraft', sans-serif;
  font-size: 2rem;
  color: #89CFF0;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.timer-label-compact-small {
  font-size: 0.7rem;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-separator-compact {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.5rem;
  color: #89CFF0;
  margin: 0 0.3rem;
}

.competition-stats-compact {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-value-compact {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.8rem;
  color: #89CFF0;
  text-shadow: 0 0 8px rgba(137, 207, 240, 0.5);
}

.stat-text-compact {
  font-size: 0.85rem;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-view-participants-large {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  border: none;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(137, 207, 240, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.btn-view-participants-large svg {
  width: 24px;
  height: 24px;
}

.btn-view-participants-large:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  box-shadow: 0 8px 25px rgba(137, 207, 240, 0.6);
  transform: translateY(-3px);
}

.competition-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem;
  color: #89CFF0;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.stat-text {
  font-size: 1rem;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.past-competitions-section {
  margin-top: 4rem;
}

.section-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 3rem;
  color: #89CFF0;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px rgba(137, 207, 240, 0.5);
}

.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.past-competition-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 2px solid rgba(137, 207, 240, 0.2);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  animation: cardFadeIn 0.6s ease-out backwards;
}

.past-competition-card:nth-child(1) { animation-delay: 0.1s; }
.past-competition-card:nth-child(2) { animation-delay: 0.2s; }
.past-competition-card:nth-child(3) { animation-delay: 0.3s; }
.past-competition-card:nth-child(4) { animation-delay: 0.4s; }
.past-competition-card:nth-child(5) { animation-delay: 0.5s; }
.past-competition-card:nth-child(6) { animation-delay: 0.6s; }

.past-competition-card:hover {
  border-color: rgba(137, 207, 240, 0.5);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(137, 207, 240, 0.4);
}

.future-competition {
  border-color: rgba(137, 207, 240, 0.3) !important;
  cursor: default !important;
  position: relative;
  pointer-events: none;
}

.future-competition::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(137, 207, 240, 0.08) 0%, transparent 70%);
  animation: futureGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes futureGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

.future-competition:hover {
  border-color: rgba(137, 207, 240, 0.5) !important;
  box-shadow: 0 15px 40px rgba(137, 207, 240, 0.3) !important;
  transform: translateY(-8px) scale(1.02);
}

.future-competition .past-competition-title {
  color: #89CFF0 !important;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.4), 0 0 20px rgba(137, 207, 240, 0.2) !important;
}

.future-competition .past-competition-date {
  color: #888 !important;
}


.past-competition-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.8rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}


.future-competition-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(137, 207, 240, 0.15) 0%, rgba(107, 182, 224, 0.15) 100%);
  border: 2px solid rgba(137, 207, 240, 0.4);
  border-radius: 25px;
  color: #89CFF0;
  font-weight: 600;
  font-size: 1rem;
  margin: 1rem 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(137, 207, 240, 0.6);
  }
}

.future-competition-badge svg {
  width: 20px;
  height: 20px;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.past-competition-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.past-competition-winner {
  font-size: 1rem;
  color: #d0d0d0;
  margin-bottom: 0.5rem;
}

.past-competition-winner span {
  color: #89CFF0;
  font-weight: 600;
}

.past-competition-votes {
  font-size: 0.9rem;
  color: #888;
}

.competition-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.competition-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}

.competition-modal.closing {
  animation: fadeOut 0.3s ease forwards;
}

.competition-modal-content.closing {
  animation: slideUp 0.3s ease forwards;
}

.participants-modal.closing {
  animation: fadeOut 0.3s ease forwards;
}

.participants-modal-content.closing {
  animation: slideUp 0.3s ease forwards;
}

.build-detail-modal.closing {
  animation: fadeOut 0.3s ease forwards;
}

.build-detail-modal-content.closing {
  animation: slideUp 0.3s ease forwards;
}

.captcha-modal.closing {
  animation: fadeOut 0.3s ease forwards;
}

.captcha-modal-content.closing {
  animation: slideUp 0.3s ease forwards;
}

.competition-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  margin: 2% auto;
  padding: 3rem;
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.competition-modal-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.competition-modal-close:hover {
  color: #89CFF0;
}

.modal-competition-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.modal-competition-date {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2rem;
}

.modal-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.modal-screenshot {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(137, 207, 240, 0.2);
  transition: all 0.3s ease;
}

.modal-screenshot:hover {
  border-color: rgba(137, 207, 240, 0.5);
  transform: scale(1.05);
}

.modal-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-winner-info {
  background: rgba(137, 207, 240, 0.1);
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.modal-winner-title {
  font-size: 1.5rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-winner-title svg {
  width: 24px;
  height: 24px;
}

.modal-winner-name {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-winner-name span {
  color: #89CFF0;
  font-weight: 600;
}

.modal-votes-count {
  font-size: 1.1rem;
  color: #d0d0d0;
}

.competition-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-view-participants {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(137, 207, 240, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-view-participants:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  box-shadow: 0 6px 20px rgba(137, 207, 240, 0.6);
  transform: translateY(-2px);
}

.participants-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.participants-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.participants-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  margin: 2% auto;
  padding: 3rem;
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 1200px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.participants-modal-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.participants-modal-close:hover {
  color: #89CFF0;
}

.participants-modal-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem;
  color: #89CFF0;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.participants-modal-subtitle {
  font-size: 1.2rem;
  color: #d0d0d0;
  margin-bottom: 2rem;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.participant-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 2px solid rgba(137, 207, 240, 0.2);
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.participant-card:hover {
  border-color: rgba(137, 207, 240, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(137, 207, 240, 0.3);
}

.participant-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.participant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-number {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
  color: #89CFF0;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(137, 207, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(137, 207, 240, 0.6);
  z-index: 2;
  backdrop-filter: blur(15px);
  letter-spacing: 1px;
  min-width: 60px;
  text-align: center;
}

.participant-star {
  position: absolute;
  top: -25px;
  left: -25px;
  z-index: 100;
  animation: starPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  pointer-events: none;
}

.participant-star svg {
  width: 50px;
  height: 50px;
  animation: starRotate 3s linear infinite;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
  }
}

@keyframes starRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.participant-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.participant-username {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.5rem;
  color: #89CFF0;
  margin-bottom: 0.5rem;
}

.participant-votes {
  font-size: 1rem;
  color: #d0d0d0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.participant-description {
  font-size: 0.9rem;
  color: #d0d0d0;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.btn-view-build {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-build:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  transform: translateY(-2px);
}

.build-detail-modal {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-detail-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.build-detail-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  margin: 2% auto;
  padding: 3rem;
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-detail-modal-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.build-detail-modal-close:hover {
  color: #89CFF0;
}

.build-detail-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem;
  color: #89CFF0;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.build-detail-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(137, 207, 240, 0.2);
}

.build-detail-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: rgba(20, 20, 20, 0.8);
}

.build-detail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95) translateX(20px);
  pointer-events: none;
}

.build-detail-image.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.build-detail-image.prev {
  transform: scale(0.95) translateX(-20px);
}

.image-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid rgba(137, 207, 240, 0.5);
  color: #89CFF0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.image-slider-btn:hover {
  background: rgba(137, 207, 240, 0.2);
  border-color: rgba(137, 207, 240, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.image-slider-btn svg {
  width: 24px;
  height: 24px;
}

.image-slider-prev {
  left: 15px;
}

.image-slider-next {
  right: 15px;
}

.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(20, 20, 20, 0.9);
  color: #d0d0d0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(137, 207, 240, 0.3);
  backdrop-filter: blur(10px);
}

.build-detail-info {
  margin-top: 2rem;
}

.build-detail-votes {
  font-size: 1.3rem;
  color: #89CFF0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.build-detail-description {
  font-size: 1.1rem;
  color: #d0d0d0;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.build-detail-comments {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(137, 207, 240, 0.2);
}

.comments-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.8rem;
  color: #89CFF0;
  margin-bottom: 1.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-item {
  background: rgba(20, 20, 20, 0.8);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid rgba(137, 207, 240, 0.5);
}

.author-comment {
  background: rgba(137, 207, 240, 0.1);
  border-left-color: rgba(137, 207, 240, 0.8);
}

.comment-user {
  color: #89CFF0;
  font-weight: 600;
  margin-right: 0.5rem;
}

.comment-text {
  color: #d0d0d0;
}

.btn-vote-build {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  color: #fff;
  border: 2px solid rgba(137, 207, 240, 0.5);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(137, 207, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-vote-build::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-vote-build:hover::before {
  left: 100%;
}

.btn-vote-build:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  border-color: rgba(137, 207, 240, 0.8);
  box-shadow: 0 6px 25px rgba(137, 207, 240, 0.5), 0 0 20px rgba(137, 207, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.btn-vote-build:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(137, 207, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-vote {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.btn-vote:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  box-shadow: 0 6px 20px rgba(137, 207, 240, 0.6);
  transform: translateY(-2px);
}

.vote-instruction-modal {
  display: none;
  position: fixed;
  z-index: 2300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-instruction-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.vote-instruction-modal.closing {
  animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-instruction-content {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid rgba(137, 207, 240, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-instruction-content.closing {
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-instruction-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.vote-instruction-close:hover {
  color: #89CFF0;
}

.vote-instruction-inner {
  text-align: center;
}

.vote-instruction-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(137, 207, 240, 0.2) 0%, rgba(107, 182, 224, 0.2) 100%);
  border-radius: 16px;
  border: 2px solid rgba(137, 207, 240, 0.3);
  color: #89CFF0;
}

.vote-instruction-icon svg {
  width: 32px;
  height: 32px;
}

.vote-instruction-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2rem;
  color: #89CFF0;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.5);
}

.vote-instruction-description {
  font-size: 1rem;
  color: #d0d0d0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.vote-instruction-steps {
  text-align: left;
  margin-bottom: 2rem;
}

.vote-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.vote-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(137, 207, 240, 0.4);
}

.vote-step-content {
  flex: 1;
  padding-top: 0.3rem;
}

.vote-step-content p {
  margin: 0;
  color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.5;
}

.vote-step-content strong {
  color: #89CFF0;
  font-weight: 600;
}

.win-r-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(137, 207, 240, 0.15);
  border: 1.5px solid rgba(137, 207, 240, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  color: #89CFF0;
  vertical-align: middle;
}

.win-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ctrl-v-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(137, 207, 240, 0.15);
  border: 1.5px solid rgba(137, 207, 240, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  color: #89CFF0;
  vertical-align: middle;
}

.enter-key-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(137, 207, 240, 0.15);
  border: 1.5px solid rgba(137, 207, 240, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  color: #89CFF0;
  vertical-align: middle;
}

.btn-copy-vote-code {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #89CFF0 0%, #6BB6E0 100%);
  color: #fff;
  border: 2px solid rgba(137, 207, 240, 0.5);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(137, 207, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-copy-vote-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-copy-vote-code:hover::before {
  left: 100%;
}

.btn-copy-vote-code:hover {
  background: linear-gradient(135deg, #A5D8F5 0%, #89CFF0 100%);
  border-color: rgba(137, 207, 240, 0.8);
  box-shadow: 0 6px 25px rgba(137, 207, 240, 0.5), 0 0 20px rgba(137, 207, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.btn-copy-vote-code:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(137, 207, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-copy-vote-code svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.vote-command-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

.copy-notification-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-notification-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.copy-notification-content {
  background: linear-gradient(135deg, rgba(137, 207, 240, 0.95) 0%, rgba(107, 182, 224, 0.95) 100%);
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(137, 207, 240, 0.6), 0 0 40px rgba(137, 207, 240, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.copy-notification-content svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}



@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .competition-title {
    font-size: 1.8rem;
  }
  
  .competition-main-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .competition-left,
  .competition-right {
    width: 100%;
  }
  
  .btn-view-participants-large {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }
  
  .timer-compact {
    gap: 0.3rem;
  }
  
  .timer-value-compact {
    font-size: 1.5rem;
  }
  
  .timer-separator-compact {
    font-size: 1.2rem;
  }
  
  .timer-unit-compact {
    min-width: 50px;
  }
  
  .timer {
    gap: 0.5rem;
  }
  
  .timer-value {
    font-size: 2.5rem;
  }
  
  .timer-separator {
    font-size: 2rem;
  }
  
  .competition-modal-content,
  .participants-modal-content,
  .build-detail-modal-content,
  .vote-instruction-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .modal-competition-title {
    font-size: 1.8rem;
  }
  
  .participants-grid {
    grid-template-columns: 1fr;
  }
}
