* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

body {
  background-color: #111;
  background-image: radial-gradient(circle at center, #2a1604 0%, #111 100%);
  color: #fff;
  font-family: "Nunito", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" stroke="%23ff7b00" stroke-width="1.5" d="M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, filter 0.2s;
  animation: spin 3s linear infinite;
}

.custom-cursor.hover-active {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 0 10px #ff7b00);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ff7b00" stroke="%23ffffff" stroke-width="1.5" d="M12 0l2.5 9.5L24 12l-9.5 2.5L12 24l-2.5-9.5L0 12l9.5-2.5z"/></svg>');
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

header {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

header h1 {
  font-family: "Bangers", cursive;
  color: #ff7b00;
  font-size: 3.5rem;
  letter-spacing: 3px;
  text-shadow: 3px 3px 0px #882b00;
  margin-bottom: 15px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid #ff7b00;
}

.btn {
  background-color: #ff7b00;
  color: #111;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 4px;
  transition: transform 0.2s, background-color 0.2s;
  font-family: "Nunito", sans-serif;
}

.btn:hover {
  background-color: #ff9d40;
  transform: scale(1.05);
}

/* Game Board */
.game-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: 50px;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 12px;
}

.card {
  width: 100px;
  height: 100px;
  perspective: 1000px;
}

.inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.card.flip .inner {
  transform: rotateY(180deg);
}

.front,
.back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 3px solid #333;
}

.back {
  background: repeating-linear-gradient(
    45deg,
    #cc5500,
    #cc5500 10px,
    #993d00 10px,
    #993d00 20px
  );
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.front {
  background-color: #2c2c2c;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.matched .front {
  box-shadow: 0 0 20px #ff7b00;
  border-color: #ff7b00;
}

/* Sidebar */
.collection {
  border: 2px solid #ff7b00;
  border-radius: 8px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  width: 200px;
  min-height: 436px;
  box-shadow: inset 0 0 15px rgba(255, 123, 0, 0.2);
}

.collection h3 {
  text-align: center;
  color: #ff7b00;
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.collected-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dummy-card {
  width: 100%;
  aspect-ratio: 1;
  opacity: 0;
}

.collected-item {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  pointer-events: none;
}

.collected-item .inner {
  transform: rotateY(180deg) !important;
  transition: none !important;
}

/* Footer */
.footer {
  width: 100%;
  padding: 25px;
  background-color: #0a0a0a;
  text-align: center;
  border-top: 3px solid #ff7b00;
  margin-top: auto;
}

.footer p {
  margin-bottom: 12px;
  font-weight: 600;
}

.social-icons a {
  color: #ff7b00;
  font-size: 1.8rem;
  margin: 0 12px;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.popup.show {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 3px solid #ff7b00;
  box-shadow: 0 0 30px rgba(255, 123, 0, 0.4);
}

.popup-content h2 {
  font-family: "Bangers", cursive;
  color: #ff7b00;
  font-size: 3rem;
  margin-bottom: 15px;
}

.popup-content p {
  margin-bottom: 25px;
  font-size: 1.2rem;
}