
    :root {
      --primary-color: #0655af;
      --secondary-color: #3b3939;
      --font-color: #5f6161;
      --border-color: rgba(255, 255, 255, 0.4);
      --input-bg: rgba(255, 255, 255, 0.5);
      --panel-bg: rgba(255, 255, 255, 0.6);
      --shadow-color: rgba(0, 0, 0, 0.08);
    }


    html {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background-color: #fbfcfc;
      color: var(--font-color);
      display: flex;
      flex-direction: column;
      min-height: 100vh;

    }

    *,
    *:before,
    *:after {
      box-sizing: inherit;
    }


    .page-wrapper {
      width: 100%;
      overflow-x: hidden;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .glass-ui {
      background: var(--panel-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-color);
      box-shadow: 0 4px 15px var(--shadow-color);
    }

    header {
      position: sticky;
      top: 0;
      z-index: 2;
      border-width: 0 0 1px 0;
      width: 100%;
    }

    header.glass-ui,
    footer {
      background: linear-gradient(45deg, #ee8253, #f20418);
      color: white;
      border: none;
      backdrop-filter: none;
    }

    header .header-title {
      color: white;
      text-decoration: none;
    }

    header nav button {
      color: white;
      border-color: rgba(244, 238, 238, 0.5);
    }

    header nav button:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    header nav button.active {
      background: white;
      color: #ff5f6d;
      border-color: white;
    }


    footer {
      text-align: center;
      font-size: 0.9rem;
      padding: 15px 20px;
      box-shadow: 0 -2px 5px var(--shadow-color);
      width: 100%;
    }

    .footer-content,
    footer p {
      color: white;
    }


    .header-content,
    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 20px;
      width: 100%;
    }

    .footer-content {
      justify-content: center;
      padding-top: 15px;
      padding-bottom: 15px;
    }

    header .header-content {
      padding-top: 15px;
      padding-bottom: 15px;
    }


    header .header-title {
      margin: 0;
      font-size: 26px;
      font-weight: 700;
      flex-shrink: 0;
    }

    header nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    header nav button {
      background: transparent;
      border: 1px solid rgba(0, 0, 0, 0.1);
      padding: 8px 14px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .page-intro {
      text-align: center;
      padding: 20px 15px 0;
    }

    .page-intro h1 {
      font-size: 2.2rem;
      margin: 0 0 10px 0;
      color: var(--secondary-color);
    }

    .page-intro p {
      font-size: 1rem;
      margin: 0;
      color: var(--font-color);
    }

    .app-layout {
      display: flex;
      flex-direction: row;
      gap: 20px;
      max-width: 1280px;
      width: 100%;
      margin: 20px auto 0;
      padding: 0 15px;
      align-items: flex-start;
    }

    .wheel-main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;

    }

    .wheel-main-content:fullscreen {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      background-color: #f3f7f8;
    }

    .wheel-main-content:fullscreen .wheel-header {
      display: none;
    }

    .wheel-main-content:fullscreen .wheel-container {
      width: 90vmin;
      height: 90vmin;
      max-width: none;
    }

    .wheel-header {
      width: 100%;
      max-width: 500px;
      text-align: left;
      margin-bottom: 20px;
      padding: 20px;
      border-radius: 12px;
    }


    @media (max-width: 768px) {
      .page-intro h1 {
        font-size: 1.8rem;
      }

      .header-content {
        flex-direction: column;
        gap: 10px;
      }

      header nav {
        justify-content: center;
      }

      .app-layout {
        padding: 0 10px;
      }
    }



    .wheel-header h1 {
      margin: 0 0 5px 0;
      font-size: 1.8rem;
      word-wrap: break-word;
      color: var(--secondary-color);
    }

    .wheel-header p {
      margin: 0;
      font-size: 1rem;
      word-wrap: break-word;
    }

    .wheel-container {
      position: relative;
      width: 500px;
      height: 500px;
      max-width: 100%;
      margin-top: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @keyframes slow-spin {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    #wheel-canvas {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 12px solid var(--panel-bg);
      box-shadow: 0 0 0 4px var(--primary-color), 0 10px 30px var(--shadow-color);
      transition: transform 0s;
      animation: slow-spin 30s linear infinite;
    }

    .wheel-pointer {
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      width: 30px;
      height: 65px;
      z-index: 10;
      filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.2));
    }

    .wheel-pointer::before {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      transform-origin: center top;
      width: 0;
      height: 0;
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
      border-top: 45px solid var(--primary-color);
    }


    .wheel-pointer.shake-active::before {
      animation: shake 0.1s;
    }

    @keyframes shake {

      0%,
      100% {
        transform: translateX(-50%) rotate(0);
      }

      25% {
        transform: translateX(-50%) rotate(-5deg);
      }

      75% {
        transform: translateX(-50%) rotate(5deg);
      }
    }

    #spin-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      font-size: 1.8rem;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(145deg, #5a9eee, #4282c8);
      border: 6px solid white;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4), 0 0 0 4px var(--primary-color);
      transition: all 0.2s ease-out;
      z-index: 10;
    }

    #spin-btn:not(:disabled):hover {
      transform: translate(-50%, -50%) scale(1.05);
    }

    #spin-btn:disabled {
      cursor: not-allowed;
      background: #95a5a6;
    }

    #fullscreen-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: var(--panel-bg);
      border-radius: 50%;
      cursor: pointer;
      z-index: 11;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      border: 1px solid var(--border-color);
    }

    #fullscreen-btn:hover {
      transform: scale(1.1);
    }

    #fullscreen-btn svg {
      width: 20px;
      height: 20px;
      stroke: var(--primary-color);
      stroke-width: 2.5;
    }

    #exit-fullscreen-icon {
      display: none;
    }

    .settings-sidebar {
      flex: 0 0 400px;
    }

    .settings-sidebar h2 {
      text-align: center;
      margin-top: 0;
      margin-bottom: 30px;
      font-weight: 600;
      position: relative;
      padding-bottom: 10px;
      color: var(--secondary-color);
    }

    .settings-sidebar h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: var(--primary-color);
      border-radius: 3px;
    }

    .toggle-group {
      border-radius: 12px;
      margin-bottom: 20px;
      overflow: hidden;
    }

    .toggle-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      background: none;
      border: none;
      padding: 15px 20px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .toggle-header:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .toggle-header h3 {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0;
      font-size: 1.1rem;
      font-weight: 500;
      color: var(--secondary-color);
    }

    .toggle-header h3 svg {
      width: 20px;
      height: 20px;
      stroke: var(--primary-color);
      stroke-width: 2;
    }

    .toggle-icon {
      font-size: 1.5rem;
      color: var(--primary-color);
      transition: transform 0.3s;
    }

    .toggle-icon::before {
      content: '+';
    }

    .toggle-group.is-open .toggle-icon {
      transform: rotate(45deg);
    }

    .toggle-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out, padding 0.3s ease-out;
      padding: 0 20px;
    }

    .toggle-group.is-open .toggle-content {
      max-height: 800px;
      padding: 10px 20px 20px 20px;
    }

    .sidebar-input,
    .sidebar-textarea,
    .sidebar-select {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      background: var(--input-bg);
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      color: var(--font-color);
    }

    .sidebar-textarea {
      resize: vertical;
    }

    .icon-settings-bar {
      display: flex;
      justify-content: space-around;
      padding: 10px;
      border-radius: 12px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .icon-btn {
      background: var(--input-bg);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all 0.2s ease;
      margin: 5px;
    }

    .icon-btn:hover {
      background: rgba(255, 255, 255, 0.8);
      transform: translateY(-2px);
    }

    .icon-btn svg {
      width: 24px;
      height: 24px;
      stroke: var(--primary-color);
      stroke-width: 2;
    }

    .settings-modal {
      display: none;
      position: fixed;
      z-index: 10001;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s;
    }

    .settings-modal-content {
      padding: 25px;
      border-radius: 15px;
      width: 90%;
      max-width: 380px;
    }

    .settings-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-color);
    }

    .settings-modal-header h3 {
      margin: 0;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--secondary-color);
    }

    .modal-save-btn {
      width: 100%;
      padding: 12px;
      margin-top: 20px;
      border: none;
      border-radius: 8px;
      background: var(--primary-color);
      color: white;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .input-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .input-row:last-child {
      margin-bottom: 0;
    }

    .input-row label {
      font-weight: 500;
      color: var(--secondary-color);
    }

    .input-row input, .input-row select {
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
    }

    .input-row input[type="number"] {
      width: 100px;
      text-align: right;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      background: var(--input-bg);
    }

    .input-row input[type="range"] {
      flex-grow: 1;
      margin-left: 15px;
    }

    .input-row input[type="color"] {
      padding: 2px;
      width: 100px;
      height: 35px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .palette-section h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: var(--secondary-color);
    }
    .palette-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    .palette-btn {
        padding: 8px 12px;
        border: 1px solid var(--primary-color);
        background-color: transparent;
        color: var(--primary-color);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .palette-btn:hover {
        background-color: var(--primary-color);
        color: white;
    }
    .alternating-colors .input-row {
        justify-content: flex-start;
        gap: 15px;
    }
     .alternating-colors .input-row input[type="color"] {
        width: 50px;
        height: 35px;
    }

    #options-list .option-item {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    #options-list .option-item input[type="text"] {
      flex-grow: 1;
    }

    #options-list .option-item input[type="color"] {
      min-width: 40px;
      height: 40px;
      border: none;
      border-radius: 8px;
      padding: 0;
      background: transparent;
      cursor: pointer;
    }

    #options-list .option-item .remove-btn {
      background: #e74c3c;
      color: white;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      font-weight: bold;
      cursor: pointer;
    }

    #add-option-btn {
      width: 100%;
      padding: 12px;
      color: #fff;
      background-color: var(--primary-color);
      border-radius: 8px;
      font-weight: bold;
      border: none;
      cursor: pointer;
      margin-top: 10px;
    }

    #add-option-btn:disabled,
    #options-list .remove-btn:disabled {
      background: #95a5a6;
    }

    #winner-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
      color: white;
      overflow: hidden;
    }

    .winner-effects-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .winner-effects-container .ray {
      position: absolute;
      left: -25%;
      width: 150%;
      height: 3px;
      background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
      opacity: 0;
      transform-origin: center;
    }

    #winner-overlay.visible .ray {
      animation-duration: 1.5s;
      animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
      animation-fill-mode: forwards;
    }

    @keyframes shoot-from-left {
      0% {
        transform: translateX(-100vw) rotate(-20deg);
        opacity: 0.7;
      }

      50% {
        opacity: 1;
      }

      100% {
        transform: translateX(100vw) rotate(10deg);
        opacity: 0;
      }
    }

    @keyframes shoot-from-right {
      0% {
        transform: translateX(100vw) rotate(-20deg);
        opacity: 0.7;
      }

      50% {
        opacity: 1;
      }

      100% {
        transform: translateX(-100vw) rotate(10deg);
        opacity: 0;
      }
    }

    #winner-overlay.visible .ray:nth-child(-n+10) {
      animation-name: shoot-from-left;
    }

    #winner-overlay.visible .ray:nth-child(n+11) {
      animation-name: shoot-from-right;
    }

    .ray:nth-child(1) {
      top: 5%;
      animation-delay: 0.1s;
    }

    .ray:nth-child(2) {
      top: 15%;
      animation-delay: 0.3s;
    }

    .ray:nth-child(3) {
      top: 25%;
      animation-delay: 0.2s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(4) {
      top: 35%;
      animation-delay: 0.5s;
    }

    .ray:nth-child(5) {
      top: 45%;
      animation-delay: 0.4s;
    }

    .ray:nth-child(6) {
      top: 55%;
      animation-delay: 0.15s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(7) {
      top: 65%;
      animation-delay: 0.35s;
    }

    .ray:nth-child(8) {
      top: 75%;
      animation-delay: 0.25s;
    }

    .ray:nth-child(9) {
      top: 85%;
      animation-delay: 0.45s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(10) {
      top: 95%;
      animation-delay: 0.05s;
    }

    .ray:nth-child(11) {
      top: 10%;
      animation-delay: 0.12s;
    }

    .ray:nth-child(12) {
      top: 20%;
      animation-delay: 0.32s;
    }

    .ray:nth-child(13) {
      top: 30%;
      animation-delay: 0.22s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(14) {
      top: 40%;
      animation-delay: 0.52s;
    }

    .ray:nth-child(15) {
      top: 50%;
      animation-delay: 0.42s;
    }

    .ray:nth-child(16) {
      top: 60%;
      animation-delay: 0.17s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(17) {
      top: 70%;
      animation-delay: 0.37s;
    }

    .ray:nth-child(18) {
      top: 80%;
      animation-delay: 0.27s;
    }

    .ray:nth-child(19) {
      top: 90%;
      animation-delay: 0.47s;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .ray:nth-child(20) {
      top: 100%;
      animation-delay: 0.07s;
    }

    #winner-overlay.visible {
      opacity: 1;
      pointer-events: all;
    }

    .winner-card {
      position: relative;
      z-index: 1;
      width: 500px;
      max-width: 90%;
      padding: 40px;
      border-radius: 20px;
      text-align: center;
      color: white;
      background: radial-gradient(circle, #4a557d 0%, #2c3e50 100%);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      transform: scale(0.7);
      animation: zoomIn 0.4s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    #winner-overlay .winner-text {
      font-size: 1.5rem;
      margin-top: 0;
      margin-bottom: 10px;
    }

    #winner-display {
      font-family: 'Pacifico', cursive;
      font-size: 3.5rem;
      margin: 10px 0 30px 0;
      word-wrap: break-word;
      text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    }

    #winner-overlay .winner-actions {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }

    #winner-overlay .winner-actions button {
      padding: 12px 24px;
      border: none;
      border-radius: 25px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      color: #fff;
    }

    #save-winner-btn {
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.4);
    }

    #remove-winner-btn {
      background: #e74c3c;
    }

    #library-view {
      max-width: 1280px;
      margin: 40px auto;
      padding: 20px;
      border-radius: 15px;
    }

    #library-view h2 {
      text-align: center;
      color: var(--secondary-color);
      margin-top: 0;
      margin-bottom: 30px;
    }

    #library-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 25px;
    }

    .library-item {
      border-radius: 12px;
      padding: 15px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      text-align: center;
    }

    .library-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px var(--shadow-color);
    }

    .library-item canvas {
      width: 100%;
      aspect-ratio: 1/1;
      border-radius: 50%;
      margin-bottom: 10px;
    }

    .library-item h4 {
      margin: 0;
      font-size: 1rem;
      font-weight: 500;
      color: var(--secondary-color);
    }

    .hidden {
      display: none !important;
    }

    .info-section {
      max-width: 1280px;
      margin: 60px auto;
      padding: 0 20px;
      line-height: 1.7;
    }

    .info-section h2,
    .info-section h3,
    .info-section h4 {
      color: var(--secondary-color);
      margin-top: 2.5em;
      margin-bottom: 1em;
      line-height: 1.3;
    }

    .info-section h2 {
      text-align: left;
      font-size: 2rem;
      position: relative;
      padding-bottom: 20px;
      margin-bottom: 40px;
      margin-top: 0;
    }

    .info-section h3 {
      font-size: 1.5rem;
      padding-left: 10px;
    }

    .info-section p {
      margin-bottom: 1.25em;
    }

    .info-section ul,
    .info-section ol {
      padding-left: 40px;
      margin-bottom: 1.5em;
    }

    .info-section li {
      margin-bottom: 0.75em;
    }

    .info-section ul ul,
    .info-section ol ol {
      margin-top: 0.75em;
      margin-bottom: 0.75em;
    }

    .info-section code {
      background-color: rgba(230, 230, 230, 0.7);
      padding: 3px 6px;
      border-radius: 5px;
      font-family: 'Courier New', Courier, monospace;
      font-size: 0.95em;
    }

    .info-section strong {
      font-weight: 600;
      color: var(--secondary-color);
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes zoomIn {
      from {
        transform: scale(0.7);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }


    @media (max-width: 900px) {
      .app-layout {
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
        gap: 20px;
      }

      .settings-sidebar {
        width: 100%;
        flex-basis: auto;
      }
    }


    @media (max-width: 500px) {
      .page-intro h1 {
        font-size: 2.2rem;
      }

      #winner-display {
        font-size: 2.5rem;
      }

      .wheel-container {
        width: 90vw;
        height: 90vw;
      }

      #spin-btn {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
      }
    }

    body.embed-mode header,
    body.embed-mode footer,
    body.embed-mode .page-intro,
    body.embed-mode .settings-sidebar,
    body.embed-mode .info-section,
    body.embed-mode #library-view,
    body.embed-mode .ad-container {
      display: none !important;
    }

    body.embed-mode .app-layout {
      max-width: 700px;
      padding-top: 40px;
      padding-bottom: 40px;
    }
  