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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

button:hover,
input:hover,
textarea:hover {
  cursor: url('assets/images/cursor.cur') 8 8, auto;
}

.metamorphous-regular {
  font-family: "Metamorphous", serif;
  font-weight: 400;
  font-style: normal;
}


.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

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

.app {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.wheel-container {
  position: relative;
  width: 75vw;
  height: 75vw;
  max-width: 750px;
  max-height: 750px;
}

.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center top;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #e74c3c;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.pointer.custom {
  width: 100px;
  height: 180px;
  border: none;
  top: -50px;
  transform-origin: center top;
}

.pointer.swing {
  animation: pointerSwing 0.15s ease-out;
}

@keyframes pointerSwing {
  0% { transform: translateX(-50%) rotate(0deg); }
  40% { transform: translateX(-50%) rotate(-15deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

.pointer.custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  background: #2d2d2d;
  color: #d4d4d4;
  transition: background 0.2s;
}

.btn:hover {
  background: #3c3c3c;
}

.btn-spin {
  font-size: 1.5rem;
  background: #ca1300;
  color: #fff;
  letter-spacing: 2px;
}

.btn-spin:hover {
  background: #75180f;
}

.btn-danger {
  background: #4b1a1a;
  border-color: #6b2020;
}

.btn-danger:hover {
  background: #6b2020;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 260px;
}

.sidebar h1 {
  font-size: 42px;
  color: #ccc;
}

marquee {
  background-color: rgba(155, 5, 5, 0.24);
}

.panel {
  background: #1e1e1e;
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#namesInput {
  width: 100%;
  height: 160px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  color: #d4d4d4;
  padding: 0.6rem;
  font-size: 0.95rem;
  resize: vertical;
  font-family: 'Consolas', 'Courier New', monospace;
  height: 445px;
}

#namesInput::placeholder {
  color: #5a5a5a;
}

.btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.row-justify-between {
  justify-content: space-between;
}

.panel label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #969696;
}

.asset-select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.3rem;
  background: #252526;
  color: #d4d4d4;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  font-size: 0.85rem;
}

.panel input[type="file"] {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #969696;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.panel-header h2 {
  margin-bottom: 0;
}

.btn-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.past-winners {
  width: 100%;
  height: 120px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  color: #d4d4d4;
  padding: 0.6rem;
  font-size: 0.95rem;
  resize: vertical;
  font-family: 'Consolas', 'Courier New', monospace;
}

.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 105;
}

.modal-content {
  position: relative;
  background: #1e1e1e;
  padding: 2.5rem 3rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #3c3c3c;
  box-shadow: 0 0 40px rgba(231,76,60,0.4);
  z-index: 102;
}

.modal-content h2 {
  font-size: 1.4rem;
  color: #e74c3c;
  margin-bottom: 0.8rem;
}

#winnerName {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .app {
    flex-direction: column;
    align-items: center;
  }
  .wheel-container {
    width: 90vw;
    height: 90vw;
    max-width: 500px;
    max-height: 500px;
  }
}


/*
  Yoink: https://codepen.io/thierrymichel/pen/Pwzbmd
*/
[class*="push"] {
   position: relative;
   display: inline-block;
   width: 150px;
   height: 150px;
   border: 0;
   outline: none;
   background-color: rgba(194, 41, 10, 1);
   border-radius: 50%;
   cursor: pointer;
   transition: box-shadow 200ms;
}

.push--flat {
   box-shadow: inset 0 7.5px 0 rgba(218, 46, 11, 1), inset 0 -7.5px 0 rgba(170, 36, 9, 1), inset 0 0 0 7.5px rgba(179, 38, 9, 1), inset 0 0 0 20px rgba(194, 41, 10, 1), inset 0 0 0 24px rgba(97, 20, 5, 1), inset 0 0 0 26.0869565217px rgba(0, 0, 0, 1), inset 0 0 0 32px rgba(247, 133, 110, 0.7), inset 0 0 0 43.6363636364px rgba(194, 41, 10, 1), inset 0 96px 32px rgba(170, 36, 9, 1), inset 0 0 24px 40px rgba(145, 31, 8, 1), 0 12px 0 rgba(0, 0, 0, .3);
}

.push--flat:after {
   content: '';
   position: absolute;
   bottom: 12px;
   left: 24px;
   display: block;
   width: 102px;
   height: 102px;
   border: 16px solid rgba(0, 0, 0, .3);
   border-width: 0 0 16px;
   border-radius: 50%;
   transition-duration: 200ms;
}

.push--flat:active, .push--flat.is-pushed {
   box-shadow: inset 0 7.5px 0 rgba(218, 46, 11, 1), inset 0 -7.5px 0 rgba(170, 36, 9, 1), inset 0 0 0 7.5px rgba(179, 38, 9, 1), inset 0 0 0 20px rgba(194, 41, 10, 1), inset 0 0 0 24px rgba(97, 20, 5, 1), inset 0 0 0 28.2352941176px rgba(0, 0, 0, 1), inset 0 0 0 32px rgba(247, 133, 110, 0.2), inset 0 0 0 43.6363636364px rgba(179, 38, 9, 1), inset 0 96px 32px rgba(155, 33, 8, 1), inset 0 0 24px 40px rgba(121, 26, 6, 1), 0 12px 0 rgba(0, 0, 0, .3);
   background-color: rgba(184, 39, 10, 1);
}

.push--flat:active:after, .push--flat.is-pushed:after {
   bottom: 28px;
   border-width: 0;
}

.push--skeuo {
   box-shadow: inset 0 10px 0 rgba(218, 46, 11, 1), inset 0 -10px 4px rgba(170, 36, 9, 1), 0 0 4px rgba(194, 41, 10, 1), inset 0 0 8px rgba(121, 26, 6, 1), inset 0 0 8px rgba(51, 51, 51, 0.5), inset 0 0 4px 20px rgba(194, 41, 10, 1), inset 0 -8px 6px 24px rgba(51, 51, 51, 0.7), inset 0 0 4px 24px rgba(97, 20, 5, 1), inset 0 0 4px 24px rgba(51, 51, 51, 0.7), inset 0 0 2px 26.0869565217px rgba(0, 0, 0, 1), inset 0 0 2px 30px rgba(247, 133, 110, 0.7), inset 0 12px 0 28.2352941176px rgba(244, 71, 37, 0.7), inset 0 -12px 4px 28.2352941176px rgba(145, 31, 8, 0.2), inset 0 0 0 43.6363636364px rgba(194, 41, 10, 1), inset 0 96px 32px rgba(170, 36, 9, 1), inset 0 0 24px 40px rgba(145, 31, 8, 1), 0 6px 12px rgba(0, 0, 0, .5);
}

.push--skeuo:active, .push--skeuo.is-pushed {
   box-shadow: inset 0 10px 0 rgba(218, 46, 11, 1), inset 0 -10px 4px rgba(170, 36, 9, 1), 0 0 4px rgba(194, 41, 10, 1), inset 0 0 8px rgba(121, 26, 6, 1), inset 0 0 8px rgba(51, 51, 51, 0.5), inset 0 0 4px 20px rgba(194, 41, 10, 1), inset 0 -8px 6px 24px rgba(51, 51, 51, 0.7), inset 0 0 4px 24px rgba(97, 20, 5, 1), inset 0 0 4px 24px rgba(51, 51, 51, 0.7), inset 0 0 6px 28.2352941176px rgba(0, 0, 0, 1), inset 0 0 2px 32px rgba(247, 133, 110, 0.2), inset 0 12px 0 28px rgba(244, 71, 37, 0.5), inset 0 -12px 4px 28px rgba(97, 20, 5, 0.2), inset 0 0 0 43.6363636364px rgba(179, 38, 9, 1), inset 0 96px 32px rgba(155, 33, 8, 1), inset 0 0 24px 40px rgba(121, 26, 6, 1), 0 6px 12px rgba(0, 0, 0, .5);
   background-color: rgba(184, 39, 10, 1);
}

.push--skeuo:active:before, .push--skeuo.is-pushed:before {
   opacity: 0.5;
}

.push--skeuo:before {
   content: '';
   position: absolute;
   bottom: 53.3333333333px;
   left: 66.6666666667px;
   display: block;
   width: 109.0909090909px;
   height: 72.7272727273px;
   background: rgba(247, 133, 110, 0.2);
   background: linear-gradient(to top, rgba(250, 173, 158, 0.3) 0%, rgba(194, 41, 10, 0.1) 100%);
   border-radius: 40% 40% 60% 60%;
   transition: opacity 200ms;
}