:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --background-color: #FAFAFA;
  --button-hover: #333;
  --reset-color: #888;
  --reset-hover: #666;
  --shadow-color: rgba(0,0,0,0.2);
  --input-shadow: rgba(0,0,0,0.1);
  --placeholder-color: #999;
}

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

html, body {
  width: 100%;
  height: auto;
  overflow: auto;
}

body {
  background: var(--background-color);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

#wheel {
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: transform 0.5s ease-out;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  will-change: transform;
}

#pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid var(--primary-color);
  z-index: 2;
  pointer-events: none;
}

#wrapper {
  position: relative;
  width: 90vw;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 20px auto 40px;
}

.button {
  height: 40px;
  padding: 0 20px;
  font-size: 16px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70vw;
  max-width: 100px;
  transition: background-color 0.3s ease;
  letter-spacing: 0.1em;
}

.button:hover {
  background: var(--button-hover);
}

#controls {
  width: 70vw;
  max-width: 220px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

#menu-input {
  display: block;
  width: var(--btn-w);
  font-size: 16px;
  height: 45px;
  padding: 0 40px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 5px var(--input-shadow);
  box-sizing: border-box;
  text-transform: uppercase;
  color: var(--primary-color);
}

#menu-input::placeholder {
  color: var(--primary-color);
  opacity: 0.6;
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(0, 0, 0, 0.8);
  color: var(--secondary-color);
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  will-change: transform, opacity;
}

#reset {
  margin-top: 0;
}

#spin {
  margin-bottom: 10px;
}

/* SVG Button Styles */
.spot {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.svg-wrapper {
  margin: 20px auto;
  margin-top: 0;
  position: relative;
  width: 150px;
  height: 40px;
  display: inline-block;
  border-radius: 3px;
}

#shape {
  stroke-width: 6px;
  fill: transparent;
  stroke: #009FFD;
  stroke-dasharray: 85 400;
  stroke-dashoffset: -220;
  transition: 1s all ease;
}

#text {
  margin-top: -35px;
  text-align: center;
}

#text a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
}

.svg-wrapper:hover #shape {
  stroke-dasharray: 50 0;
  stroke-width: 3px;
  stroke-dashoffset: 0;
  stroke: #06D6A0;
}

:root {
  --bg: var(--background-color);
  --primary: #78FFCD;
  --solid: #fff;
  --btn-w: 140px;
  --dot-w: calc(var(--btn-w)*.2);
  --tr-X: calc(var(--btn-w) - var(--dot-w));
}