* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.16), transparent 32%),
    linear-gradient(225deg, rgba(255, 61, 129, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(138, 255, 108, 0.11), transparent 38%),
    #000;
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: -18%;
  z-index: 0;
  display: block;
  content: "";
  background:
    conic-gradient(
      from 215deg at 50% 50%,
      rgba(0, 0, 0, 0.3),
      rgba(0, 209, 255, 0.22),
      rgba(255, 216, 74, 0.15),
      rgba(255, 61, 129, 0.2),
      rgba(83, 244, 200, 0.16),
      rgba(0, 0, 0, 0.35)
    );
  filter: blur(72px);
  opacity: 0.74;
  transform: scale(1.08);
}

#app {
  position: relative;
  z-index: 1;
}

.word-control {
  position: fixed;
  top: clamp(14px, 3vw, 30px);
  left: 50%;
  z-index: 5;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.word-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font: 600 20px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.word-input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.68);
}

.word-input::selection {
  background: rgba(255, 255, 255, 0.28);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
