@import url("https://fonts.googleapis.com/css2?family=Recursive:wght@300..1000&family=Roboto+Flex:wght@100..1000&display=swap");

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: "Recursive", monospace;
  font-variation-settings: "MONO" 1;
  background: linear-gradient(
    100deg,
    color(display-p3 0.11 0.57 0.99) 14%,
    color(display-p3 0.35 0.21 0.75) 98%
  );
}

#scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#scene .letter {
  position: absolute;
  text-align: center;
  margin-top: 4%;
  font-size: clamp(3rem, 7vw + 2rem, 40rem);
  line-height: 1;
  text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  color: white;
  transform-origin: center;
  will-change: transform, font-weight;
  transition: font-weight 0.1s ease-out;
  border-bottom: 4px solid cyan;
}

.desk-fan {
  position: fixed;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  width: 400px;
  z-index: -1;
  pointer-events: none;
  stroke: black;
  fill: none;
}

.desk-fan #fan-blades {
  transform-origin: 200px 180px;
  will-change: transform;
  stroke: #d0d5db;
}

/* UI bar moved near center (slightly above) */
.ui-layer {
  position: fixed;
  top: calc(50% - 140px); /* adjust this value to move it up/down */
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 10;
}

/* Bigger instruction text, centered */
.ui-layer .instruction {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 650;
  font-size: clamp(18px, 1.6vw, 26px);
  color: cyan;
  letter-spacing: 4px;
  text-shadow:
    0 0.5px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 14px rgba(0, 255, 255, 0.25);
}

/* Keep the button on the right */
.ui-layer button {
  margin-left: auto;
  appearance: none;
  background: oklch(2.4% 0 0 / 0.25);
  backdrop-filter: blur(8px);
  border: 2px solid cyan;
  padding: 12px 22px;
  font: 700 14px "Roboto Flex", sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  color: cyan;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ui-layer button:hover {
  background: #1a1a1a;
}