.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

body {
  min-width: 350px;
}

.wheel-wrapper {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 45px !important;
}

.page-blocker.visible {
  display: block !important;
}

.wheel-wrapper {
  width: 600px;
  height: 600px;
  position: relative;
  margin: 0 auto;
  margin-bottom: 45px;
}

.wheel-container {
  width: 600px;
  height: 600px;
  position: relative;
  border-radius: 50%;
  box-shadow: 
    0 0 0 4px #000,
    0 0 0 15px #fff,
    0 0 0 18px #000,
    0 0 20px 8px rgba(0, 0, 0, 0.3);
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-container.spinning {
  pointer-events: none;
}

#wheelCanvas {
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: white;
  border: 4px solid #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #f3f4f6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.spin-button:active {
  transform: translate(-50%, -50%) scale(0.95);
  transition: all 0.1s;
}

.spin-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translate(-50%, -50%) scale(1);
}

.spin-text {
  font-weight: bold;
  color: #000;
  font-size: 20px;
  transition: all 0.2s;
}

.spin-button:hover .spin-text {
  transform: scale(1.1);
}

@keyframes loading-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes names-loading {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(2);
  }
}

.button[disabled].loading {
  position: relative;
  background-color: #008995 !important;
  color: #c2c2c2;
  transition: none;
  cursor: not-allowed;
  pointer-events: none;
}

.button[disabled].loading::before {
  content: "";
  position: absolute;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background-image: conic-gradient(
      #008995 0deg,
      #008995 140deg,
      transparent 180deg,
      transparent 320deg,
      #008995 360deg
    ),
    radial-gradient(#008995 50%, white 0, white 65%, transparent 0);
  animation: loading-rotate 1s linear infinite;
  left: calc(50% - 0.75em);
  top: calc(50% - 0.75em);
  transform-origin: center;
}

.result .names-loading-indicator.visible {
  display: flex !important;
}

.result .names-loading-indicator .nli {
  height: 0;
  position: absolute;
  transform-origin: center;
  width: 60px;
}

.result .names-loading-indicator .nli::before,
.result .names-loading-indicator .nli::after {
  animation-direction: alternate;
  animation-duration: 0.4s;
  animation-iteration-count: infinite;
  animation-name: names-loading;
  animation-timing-function: linear;
  background-color: #008995;
  border-radius: 50%;
  box-shadow: 0 0 0 #008995;
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  top: -3px;
  transform-origin: center;
  width: 6px;
}

.result .names-loading-indicator .nli::before {
  left: 0;
}

.result .names-loading-indicator .nli::after {
  right: 0;
}

.result .names-loading-indicator .nli.nli-1 {
  transform: translateY(30px) rotate(0deg);
}

.result .names-loading-indicator .nli.nli-1::before {
  animation-delay: 0s;
}

.result .names-loading-indicator .nli.nli-1::after {
  animation-delay: -0.4s;
}

.result .names-loading-indicator .nli.nli-2 {
  transform: translateY(30px) rotate(45deg);
}

.result .names-loading-indicator .nli.nli-2::before {
  animation-delay: 0.1s;
}

.result .names-loading-indicator .nli.nli-2::after {
  animation-delay: -0.3s;
}

.result .names-loading-indicator .nli.nli-3 {
  transform: translateY(30px) rotate(90deg);
}

.result .names-loading-indicator .nli.nli-3::before {
  animation-delay: 0.2s;
}

.result .names-loading-indicator .nli.nli-3::after {
  animation-delay: -0.2s;
}

.result .names-loading-indicator .nli.nli-4 {
  transform: translateY(30px) rotate(135deg);
}

.result .names-loading-indicator .nli.nli-4::before {
  animation-delay: 0.3s;
}

.result .names-loading-indicator .nli.nli-4::after {
  animation-delay: -0.1s;
}

.copy-text-button.copied {
  background-color: #17afbc !important;
}

.copy-text-button.copied .button-text {
  height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  width: 0;
}

.copy-text-button.copied .copied-text {
  display: inline-block;
}

.copy-text-button.copied .icon {
  display: none;
}

.button.disabled,
.button:disabled {
  background-color: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1) !important;
  transform: none !important;
}

.button:disabled:hover {
  background-color: #d1d5db !important;
  transform: none !important;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1) !important;
}

#dropzone.dz-drag-hover .message--drop {
  display: flex !important;
}

#dropzone.dz-drag-hover::after {
  background-color: transparent;
  bottom: 0;
  content: "";
  display: block;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1000;
}

#dropzone.dz-error .message--error[data-error-dropzone] {
  display: flex !important;
}

#dropzone .dz-preview {
  display: none !important;
}

.ps-form .names-instruction.no-placeholder .names-instruction-text {
  display: none;
}

.icon {
  display: inline-block;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

#current-names-list,
#winners-list {
  scrollbar-width: thin;
  scrollbar-color: #17afbc #f1f1f1;
  padding-right: 4px;
}

#current-names-list::-webkit-scrollbar,
#winners-list::-webkit-scrollbar {
  width: 6px;
}

#current-names-list::-webkit-scrollbar-track,
#winners-list::-webkit-scrollbar-track {
  background: transparent;
}

#current-names-list::-webkit-scrollbar-thumb,
#winners-list::-webkit-scrollbar-thumb {
  background: #17afbc;
  border-radius: 3px;
}

#current-names-list::-webkit-scrollbar-thumb:hover,
#winners-list::-webkit-scrollbar-thumb:hover {
  background: #008995;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#winnerName {
  animation: pulse 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0, 137, 149, 0.3);
}

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

.page-decor {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
}

.page-decor::before,
.page-decor::after {
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.2;
  position: absolute;
  transition: 0.25s ease-in-out;
  z-index: -1;
}

.page-decor::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='940' height='980' viewBox='0 0 940 980' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='.5' d='M938.711 709.866c0 148.887-120.659 269.582-269.5 269.582s-269.5-120.695-269.5-269.582c0-148.886 120.659-269.581 269.5-269.581s269.5 120.695 269.5 269.581Z' stroke='%2317AFBC'/%3E%3Cpath opacity='.5' d='M269.711 243.866c0 74.364-60.265 134.647-134.605 134.647C60.766 378.513.5 318.23.5 243.866c0-74.363 60.265-134.646 134.606-134.646 74.34 0 134.605 60.283 134.605 134.646Z' stroke='%2379D48B'/%3E%3Cpath d='M288.463 296.29c81.794 0 148.1-66.327 148.1-148.145C436.563 66.327 370.257 0 288.463 0c-81.793 0-148.1 66.327-148.1 148.145 0 81.818 66.307 148.145 148.1 148.145Z' fill='%23ED9F26' style='mix-blend-mode:multiply'/%3E%3C/svg%3E");
  height: 980px;
  width: 940px;
  right: -274px;
  top: -207px;
}

.page-decor::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='570' height='1001' viewBox='0 0 570 1001' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M568.711 730.447c0 148.886-120.659 269.583-269.5 269.583s-269.5-120.697-269.5-269.583c0-148.886 120.659-269.582 269.5-269.582s269.5 120.696 269.5 269.582Z' stroke='%23EB2C0B' style='mix-blend-mode:multiply' opacity='.5'/%3E%3C/svg%3E");
  height: 1001px;
  width: 570px;
  left: -299px;
  top: 417px;
}

.result::before {
  display: none;
}

.result .item:first-child:last-child {
  list-style: none;
  margin-inline-start: -2.5em;
}

.ps-usecases {
  margin-bottom: 60px;
}

.action {
  margin-bottom: 40px !important;
}

@media (max-width: 768px) {
  .ps-usecases .list {
    list-style: none;
  }

  .ps-usecases .list .item {
    position: relative;
    padding-left: 1.5em;
  }

  .ps-usecases .list .item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #17afbc;
    font-weight: bold;
    font-size: 1.2em;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(10px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (min-width: 720px) and (max-width: 1088.9px) {
  .page-decor::before {
    height: 619px;
    right: -173px;
    top: -146px;
    width: 593px;
  }

  .page-decor::after {
    height: 645px;
    left: -228px;
    top: 514px;
    width: 367px;
  }
}

@media (max-width: 768px) {
  .wheel-wrapper {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 35px;
  }
  
  .wheel-container {
    width: 320px;
    height: 320px;
    max-width: 320px;
    max-height: 320px;
    box-shadow: 
      0 0 0 3px #000,
      0 0 0 10px #fff,
      0 0 0 12px #000,
      0 0 15px 6px rgba(0, 0, 0, 0.3);
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .wheel-wrapper > div > svg {
    width: 65px !important;
    height: 65px !important;
  }
  
  .spin-button {
    width: 60px;
    height: 60px;
  }
  
  .spin-text {
    font-size: 14px;
  }
  
  .page-decor::before {
    height: 335px;
    right: -113px;
    top: 583px;
    width: 321px;
  }

  .page-decor::after {
    bottom: -66px;
    height: 386px;
    left: -142px;
    top: auto;
    width: 222px;
  }
}

@media (max-width: 430px) {
  .wheel-wrapper {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 30px;
  }
  
  .action {
    margin-bottom: 30px !important;
  }
  
  .wheel-container {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .wheel-wrapper > div > svg {
    width: 60px !important;
    height: 60px !important;
  }
  
  .spin-button {
    width: 55px;
    height: 55px;
  }
  
  .spin-text {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .wheel-wrapper {
    width: 280px;
    height: 280px;
    min-width: 280px;
    min-height: 280px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 25px;
  }
  
  .action {
    margin-bottom: 25px !important;
  }
  
  .wheel-container {
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
    min-width: 280px;
    min-height: 280px;
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .wheel-wrapper > div > svg {
    width: 55px !important;
    height: 55px !important;
  }
  
  .spin-button {
    width: 50px;
    height: 50px;
  }
  
  .spin-text {
    font-size: 12px;
  }
}

@media screen and (max-width: 430px) {
  .page-decor {
    display: none;
  }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
  .wheel-wrapper {
    width: 320px;
    height: 320px;
    max-width: 80vw;
    max-height: 80vw;
    margin: 0 auto;
    position: relative;
    margin-bottom: 35px;
  }
  
  .wheel-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 
      0 0 0 3px #000,
      0 0 0 10px #fff,
      0 0 0 12px #000,
      0 0 15px 6px rgba(0, 0, 0, 0.3);
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .result.content-frame {
    min-h-auto !important;
  }
  
  .ps-usecases {
    margin-top: 20px;
  }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
  .wheel-wrapper {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 20px;
  }
  
  .wheel-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 
      0 0 0 2px #000,
      0 0 0 8px #fff,
      0 0 0 10px #000,
      0 0 12px 5px rgba(0, 0, 0, 0.3);
  }
  
  .action {
    margin-bottom: 25px !important;
  }
  
  .wheel-wrapper > div > svg {
    width: 55px !important;
    height: 55px !important;
  }
  
  .spin-button {
    width: 55px;
    height: 55px;
  }
  
  .spin-text {
    font-size: 13px;
  }
}

@media screen and (min-height: 450px) and (max-height: 550px) and (orientation: landscape) {
  .wheel-wrapper {
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 20px;
  }
  
  .action {
    margin-bottom: 25px !important;
  }
  
  .wheel-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .spin-button {
    width: 50px;
    height: 50px;
  }
  
  .spin-text {
    font-size: 12px;
  }
  
  .wheel-wrapper > div > svg {
    width: 50px !important;
    height: 50px !important;
  }
  
  .result.content-frame {
    min-height: auto !important;
    padding: 20px !important;
  }
}

@media screen and (min-height: 550px) and (max-height: 700px) and (orientation: landscape) {
  .wheel-wrapper {
    width: 350px;
    height: 350px;
    max-width: 350px;
    max-height: 350px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 25px;
  }
  
  .action {
    margin-bottom: 30px !important;
  }
  
  .wheel-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  
  .spin-button {
    width: 60px;
    height: 60px;
  }
  
  .spin-text {
    font-size: 14px;
  }
  
  .wheel-wrapper > div > svg {
    width: 55px !important;
    height: 55px !important;
  }
  
  .result.content-frame {
    min-height: auto !important;
  }
}

@media screen and (max-width: 767px) {
  @supports (-webkit-overflow-scrolling: touch) {
    input,
    select,
    textarea {
      font-size: 16px !important;
    }
  }
}