:root {
  color-scheme:dark;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#e7ecdf;
  background:#171e1b
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
main {
  min-height:100svh;
  max-width:1040px;
  margin:auto;
  padding:64px 40px;
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:80px;
  align-items:center
}
.wheel-panel {
  min-width:0;
  text-align:center
}
.wheel-wrap {
  position:relative;
  width:100%;
  aspect-ratio:1;
  filter:drop-shadow(0 16px 24px #0003)
}
canvas {
  display:block;
  width:100%;
  height:100%;
  border:6px solid #303c34;
  border-radius:50%
}
.pointer {
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);
  width:26px;
  height:34px;
  background:#e7ecdf;
  clip-path:polygon(0 0,100% 0,50% 100%);
  z-index:2
}
#result {
  font-size:26px;
  line-height:1.4;
  min-height:37px;
  margin-top:24px;
  overflow-wrap:anywhere
}
.options-panel {
  display:flex;
  flex-direction:column;
  gap:16px
}
label {
  font-size:18px;
  font-weight:500
}
textarea {
  width:100%;
  height:260px;
  resize:vertical;
  border:1px solid #435047;
  border-radius:12px;
  background:#202a24;
  font:17px/1.9 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:16px;
  color:#e7ecdf;
  outline:none
}
textarea:focus {
  border-color:#a9b58a;
  box-shadow:0 0 0 3px #a9b58a18
}
textarea:disabled {
  opacity:.65
}
button {
  font:inherit;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  touch-action:manipulation;
  padding:15px 25px;
  min-height:52px;
  border:0;
  border-radius:12px;
  background:#b9c59a;
  color:#1c2a20
}
button:hover:enabled {
  background:#cbd5b1
}
button:disabled {
  opacity:.4;
  cursor:default
}
button[aria-busy=true] {
  opacity:.65
}
button:focus-visible {
  outline:3px solid #d4c49d;
  outline-offset:4px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(max-width:700px) {
  main {
  min-height:100svh;
  max-width:440px;
  padding:40px 24px;
  grid-template-columns:1fr;
  gap:20px;
  align-content:center
}
.wheel-wrap {
  max-width:330px;
  margin:auto
}
#result {
  margin-top:16px;
  font-size:23px;
  min-height:32px
}
textarea {
  height:160px
}
.options-panel {
  gap:12px
}

}

