
      html,


      #gameContainer {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        max-width: 1200px;
        width: 100%;
      }

      #header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 20px 20px 0 0;
        text-align: center;
        position: relative;
      }

      #header h1 {
        font-size: 32px;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
      }

      #header p {
        font-size: 16px;
        opacity: 0.95;
      }

      .header-controls {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
        gap: 10px;
      }

      .header-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
      }

      .header-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
      }

      #pictureSelect {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 30px;
        flex-wrap: wrap;
        background: #f8f9fa;
      }

      .pictureOption {
        background: white;
        border: 3px solid #ddd;
        border-radius: 15px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
        width: 150px;
      }

      .pictureOption:hover {
        transform: translateY(-5px);
        border-color: #667eea;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      }

      .pictureOption.selected {
        border-color: #667eea;
        background: #e8eaf6;
      }

      .pictureOption svg {
        width: 100px;
        height: 100px;
      }

      .pictureOption p {
        margin-top: 10px;
        font-weight: bold;
        color: #333;
      }

      #coloringArea {
        display: none;
        padding: 20px;
      }

      #toolbar {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        align-items: center;
      }

      .toolSection {
        display: flex;
        flex-direction: column;
        gap: 10px;
        animation: fadeInUp 0.5s ease;
      }

      .toolSection label {
        font-weight: bold;
        color: #333;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .colorPalette {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
        padding: 5px;
      }

      .colorBtn {
        width: 40px;
        height: 40px;
        border: 3px solid #ddd;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
      }

      .colorBtn::after {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 10px;
        border: 2px solid transparent;
        transition: all 0.3s;
      }

      .colorBtn:hover {
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      }

      .colorBtn.active {
        border-color: #333;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4);
        transform: scale(1.1);
      }

      .colorBtn.active::after {
        border-color: rgba(102, 126, 234, 0.5);
        animation: pulse 1.5s infinite;
      }

      .toolBtn {
        background: white;
        border: 2px solid #ddd;
        border-radius: 12px;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
      }

      .toolBtn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
        );
        transition: left 0.5s;
      }

      .toolBtn:hover::before {
        left: 100%;
      }

      .toolBtn:hover {
        background: #f8f9fa;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
      }

      .toolBtn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
      }

      .toolBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }

      .toolBtn:disabled:hover {
        transform: none;
        box-shadow: none;
      }

      .brush-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        margin-top: 10px;
      }

      .brush-option {
        background: white;
        border: 2px solid #ddd;
        border-radius: 12px;
        padding: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        font-size: 12px;
        font-weight: bold;
        position: relative;
        overflow: hidden;
      }

      .brush-option::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(102, 126, 234, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
      }

      .brush-option:hover::before {
        width: 100%;
        height: 100%;
      }

      .brush-option:hover {
        border-color: #667eea;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
      }

      .brush-option.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
      }

      .brush-option .brush-icon {
        font-size: 28px;
        margin-bottom: 6px;
        position: relative;
        z-index: 1;
        transition: transform 0.3s;
      }

      .brush-option:hover .brush-icon {
        transform: scale(1.15) rotate(5deg);
      }

      .brush-option.active .brush-icon {
        animation: bounce 0.5s ease;
      }

      /* Stagger animation for brush options */
      #brushStyleSection .brush-option {
        animation: fadeInUp 0.4s ease backwards;
      }

      #brushStyleSection .brush-option:nth-child(1) {
        animation-delay: 0.05s;
      }
      #brushStyleSection .brush-option:nth-child(2) {
        animation-delay: 0.1s;
      }
      #brushStyleSection .brush-option:nth-child(3) {
        animation-delay: 0.15s;
      }
      #brushStyleSection .brush-option:nth-child(4) {
        animation-delay: 0.2s;
      }
      #brushStyleSection .brush-option:nth-child(5) {
        animation-delay: 0.25s;
      }
      #brushStyleSection .brush-option:nth-child(6) {
        animation-delay: 0.3s;
      }
      #brushStyleSection .brush-option:nth-child(7) {
        animation-delay: 0.35s;
      }
      #brushStyleSection .brush-option:nth-child(8) {
        animation-delay: 0.4s;
      }
      #brushStyleSection .brush-option:nth-child(9) {
        animation-delay: 0.45s;
      }
      #brushStyleSection .brush-option:nth-child(10) {
        animation-delay: 0.5s;
      }

      .brush-preview {
        width: 100%;
        height: 30px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-top: 5px;
      }

      .feature-toggle {
        background: white;
        border: 2px solid #ddd;
        border-radius: 12px;
        padding: 10px 18px;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
      }

      .feature-toggle::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: -100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(102, 126, 234, 0.1),
          transparent
        );
        transition: left 0.5s;
      }

      .feature-toggle:hover::after {
        left: 100%;
      }

      .feature-toggle:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
      }

      .feature-toggle.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        animation: subtle-pulse 3s ease-in-out infinite;
      }

      @keyframes subtle-pulse {
        0%,
        100% {
          box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        50% {
          box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
        }
      }

      .slider-container {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .slider-container input[type="range"] {
        flex: 1;
      }

      .pattern-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        margin-top: 10px;
      }

      .pattern-btn {
        background: white;
        border: 2px solid #ddd;
        border-radius: 10px;
        padding: 12px;
        cursor: pointer;
        font-size: 28px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
      }

      .pattern-btn::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(102, 126, 234, 0.15);
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
      }

      .pattern-btn:hover::before {
        width: 150%;
        height: 150%;
      }

      .pattern-btn:hover {
        border-color: #667eea;
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      }

      .pattern-btn.active {
        border-color: #667eea;
        background: linear-gradient(135deg, #e8eaf6 0%, #f0f0ff 100%);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
      }

      /* Stagger animation for pattern buttons */
      #patternsSection .pattern-btn {
        animation: fadeInUp 0.3s ease backwards;
      }

      #patternsSection .pattern-btn:nth-child(1) {
        animation-delay: 0.05s;
      }
      #patternsSection .pattern-btn:nth-child(2) {
        animation-delay: 0.1s;
      }
      #patternsSection .pattern-btn:nth-child(3) {
        animation-delay: 0.15s;
      }
      #patternsSection .pattern-btn:nth-child(4) {
        animation-delay: 0.2s;
      }
      #patternsSection .pattern-btn:nth-child(5) {
        animation-delay: 0.25s;
      }
      #patternsSection .pattern-btn:nth-child(6) {
        animation-delay: 0.3s;
      }
      #patternsSection .pattern-btn:nth-child(7) {
        animation-delay: 0.35s;
      }
      #patternsSection .pattern-btn:nth-child(8) {
        animation-delay: 0.4s;
      }
      #patternsSection .pattern-btn:nth-child(9) {
        animation-delay: 0.45s;
      }
      #patternsSection .pattern-btn:nth-child(10) {
        animation-delay: 0.5s;
      }

      /* Stagger animation for color buttons */
      .colorPalette .colorBtn {
        animation: fadeInUp 0.25s ease backwards;
      }

      .colorPalette .colorBtn:nth-child(1) {
        animation-delay: 0.03s;
      }
      .colorPalette .colorBtn:nth-child(2) {
        animation-delay: 0.06s;
      }
      .colorPalette .colorBtn:nth-child(3) {
        animation-delay: 0.09s;
      }
      .colorPalette .colorBtn:nth-child(4) {
        animation-delay: 0.12s;
      }
      .colorPalette .colorBtn:nth-child(5) {
        animation-delay: 0.15s;
      }
      .colorPalette .colorBtn:nth-child(6) {
        animation-delay: 0.18s;
      }
      .colorPalette .colorBtn:nth-child(7) {
        animation-delay: 0.21s;
      }
      .colorPalette .colorBtn:nth-child(8) {
        animation-delay: 0.24s;
      }
      .colorPalette .colorBtn:nth-child(9) {
        animation-delay: 0.27s;
      }
      .colorPalette .colorBtn:nth-child(10) {
        animation-delay: 0.3s;
      }
      .colorPalette .colorBtn:nth-child(11) {
        animation-delay: 0.33s;
      }
      .colorPalette .colorBtn:nth-child(12) {
        animation-delay: 0.36s;
      }
      .colorPalette .colorBtn:nth-child(13) {
        animation-delay: 0.39s;
      }
      .colorPalette .colorBtn:nth-child(14) {
        animation-delay: 0.42s;
      }
      .colorPalette .colorBtn:nth-child(15) {
        animation-delay: 0.45s;
      }
      .colorPalette .colorBtn:nth-child(16) {
        animation-delay: 0.48s;
      }

      #brushSize,
      #opacitySlider {
        width: 150px;
        -webkit-appearance: none;
        appearance: none;
        height: 8px;
        border-radius: 5px;
        background: linear-gradient(to right, #ddd 0%, #667eea 100%);
        outline: none;
        transition: all 0.3s;
      }

      #brushSize:hover,
      #opacitySlider:hover {
        background: linear-gradient(to right, #bbb 0%, #764ba2 100%);
      }

      #brushSize::-webkit-slider-thumb,
      #opacitySlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        transition: all 0.3s;
      }

      #brushSize::-webkit-slider-thumb:hover,
      #opacitySlider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
      }

      #brushSize::-webkit-slider-thumb:active,
      #opacitySlider::-webkit-slider-thumb:active {
        transform: scale(1.3);
      }

      #brushSize::-moz-range-thumb,
      #opacitySlider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        transition: all 0.3s;
      }

      #brushSize::-moz-range-thumb:hover,
      #opacitySlider::-moz-range-thumb:hover {
        transform: scale(1.2);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
      }

      #colorPicker {
        width: 50px;
        height: 40px;
        border: 3px solid #ddd;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      #colorPicker:hover {
        transform: scale(1.1);
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      }

      .toast {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #333;
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s;
        z-index: 1000;
      }

      .toast.show {
        opacity: 1;
        transform: translateY(0);
      }

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

      .modal.show {
        display: flex;
      }

      .modal-content {
        background: white;
        padding: 30px;
        border-radius: 20px;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
      }

      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }

      .modal-header h2 {
        color: #667eea;
        font-size: 24px;
      }

      .close-modal {
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: #999;
        transition: color 0.2s;
      }

      .close-modal:hover {
        color: #333;
      }

      .help-item {
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
      }

      .help-item h3 {
        color: #764ba2;
        margin-bottom: 8px;
        font-size: 18px;
      }

      .help-item p {
        color: #666;
        line-height: 1.6;
      }


      @keyframes slideUp {
        from {
          transform: translateY(50px);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      @keyframes sparkle {
        0%,
        100% {
          transform: scale(1) rotate(0deg);
          filter: brightness(1);
        }
        50% {
          transform: scale(1.2) rotate(180deg);
          filter: brightness(1.5);
        }
      }

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

      @keyframes pulse {
        0%,
        100% {
          opacity: 0.5;
        }
        50% {
          opacity: 1;
        }
      }

      @keyframes ripple {
        0% {
          transform: scale(0);
          opacity: 1;
        }
        100% {
          transform: scale(2);
          opacity: 0;
        }
      }

      .sparkle-btn {
        position: relative;
        overflow: hidden;
      }

      .sparkle-btn::after {
        content: "✨";
        position: absolute;
        top: -5px;
        right: -5px;
        font-size: 16px;
        animation: sparkle 2s infinite;
      }

      #canvasContainer {
        display: flex;
        justify-content: center;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 15px;
        position: relative;
      }

      .canvas-overlay {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(102, 126, 234, 0.9);
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        font-weight: bold;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
      }

      .canvas-overlay.show {
        opacity: 1;
      }

      #canvas {
        border: 3px solid #333;
        background: white;
        cursor: crosshair;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
      }

      #backBtn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s;
      }

      #backBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      }

      .sizeLabel {
        font-size: 16px;
        font-weight: bold;
        color: #667eea;
        padding: 4px 10px;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 6px;
        transition: all 0.3s;
        display: inline-block;
        min-width: 40px;
        text-align: center;
      }

      /* Tablet styles */
      @media (max-width: 1024px) and (min-width: 769px) {
        #pictureSelect {
          padding: 20px;
          gap: 15px;
        }

        .pictureOption {
          width: 140px;
          padding: 12px;
        }

        .pictureOption img {
          max-width: 120px;
          max-height: 120px;
        }

        #toolbar {
          gap: 15px;
          padding: 20px;
        }

        .toolSection {
          padding: 15px;
        }

        #canvas {
          touch-action: none;
          -webkit-user-select: none;
          user-select: none;
        }
      }

      /* Mobile styles */
      @media (max-width: 768px) {
        body {
          padding: 0;
          overflow-x: hidden;
        }

        #gameContainer {
          border-radius: 0;
          min-height: 100vh;
        }

        #header {
          padding: 15px 10px;
          border-radius: 0;
          position: relative;
        }

        #header h1 {
          font-size: 24px;
          margin-top: 40px;
          margin-bottom: 8px;
        }

        #header p {
          font-size: 14px;
        }

        .header-controls {
          position: fixed;
          top: 10px;
          right: 10px;
          gap: 5px;
          z-index: 1000;
        }

        .header-btn {
          padding: 8px 12px;
          font-size: 13px;
          gap: 4px;
          min-width: 44px;
          min-height: 44px;
        }

        #pictureSelect {
          padding: 15px;
          gap: 12px;
          justify-content: center;
        }

        .pictureOption {
          width: calc(50% - 10px);
          min-width: 120px;
          max-width: 150px;
          padding: 12px;
          min-height: 120px;
        }

        .pictureOption img {
          width: 100% !important;
          height: auto !important;
          max-width: 100px;
          max-height: 100px;
        }

        .pictureOption p {
          font-size: 13px;
          margin-top: 8px;
          font-weight: 500;
        }

        #toolbar {
          flex-direction: column;
          gap: 12px;
          padding: 15px 10px;
          max-height: 70vh;
          overflow-y: auto;
          overflow-x: hidden;
          -webkit-overflow-scrolling: touch;
        }

        .toolSection {
          width: 100%;
          max-width: 100%;
          padding: 12px;
          overflow: hidden;
        }

        .toolSection label {
          font-size: 14px;
          font-weight: 500;
        }

        .colorPalette {
          grid-template-columns: repeat(4, 1fr);
          gap: 8px;
          padding: 5px;
          max-width: 100%;
        }

        .colorBtn {
          width: 100%;
          height: 0;
          padding-bottom: 100%;
          min-width: auto;
          min-height: auto;
          border-width: 3px;
          position: relative;
        }

        .colorBtn::before {
          content: "";
          position: absolute;
          inset: 0;
          border-radius: 50%;
        }

        .toolBtn {
          font-size: 14px;
          padding: 12px 15px;
          width: 100%;
          justify-content: center;
          min-height: 48px;
          font-weight: 500;
        }

        .brush-grid {
          display: flex;
          flex-direction: column;
          gap: 10px;
          max-width: 100%;
        }

        .brush-option {
          padding: 12px;
          font-size: 13px;
          min-height: 60px;
          display: flex;
          align-items: center;
          gap: 12px;
          text-align: left;
        }

        .brush-option .brush-icon {
          font-size: 28px;
          margin-bottom: 0;
          flex-shrink: 0;
        }

        .pattern-grid {
          grid-template-columns: repeat(5, 1fr);
          gap: 8px;
          max-width: 100%;
        }

        .pattern-btn {
          width: 100%;
          height: 0;
          padding-bottom: 100%;
          min-width: auto;
          min-height: auto;
          font-size: 18px;
          position: relative;
        }

        .pattern-btn::before {
          content: attr(data-pattern);
          position: absolute;
          inset: 0;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .slider-container {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
          width: 100%;
        }

        .slider-container label {
          font-size: 14px;
          width: 100%;
        }

        #sizeSlider,
        #opacitySlider {
          width: 100%;
          height: 8px;
          -webkit-appearance: none;
          appearance: none;
        }

        #sizeSlider::-webkit-slider-thumb,
        #opacitySlider::-webkit-slider-thumb {
          width: 24px;
          height: 24px;
        }

        .feature-toggle {
          font-size: 14px;
          padding: 12px 18px;
          min-height: 48px;
          font-weight: 500;
        }

        #canvasContainer {
          padding: 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          min-height: 400px;
        }

        #canvas {
          max-width: 100%;
          max-height: 500px;
          width: 100%;
          height: auto;
          touch-action: none;
          -webkit-user-select: none;
          user-select: none;
          -webkit-tap-highlight-color: transparent;
        }

        .modal-content {
          margin: 10px;
          max-width: calc(100% - 20px);
          max-height: calc(100vh - 40px);
          padding: 20px;
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
        }

        .modal-content h2 {
          font-size: 22px;
          margin-bottom: 15px;
        }

        .help-grid {
          grid-template-columns: 1fr;
          gap: 15px;
        }

        .help-item {
          padding: 15px;
        }

        .help-item h3 {
          font-size: 17px;
          margin-bottom: 8px;
        }

        .help-item p {
          font-size: 14px;
          line-height: 1.5;
        }

        #backBtn {
          min-height: 48px;
          font-size: 15px;
          padding: 12px 20px;
        }
      }

      .fade-in {
        animation: fadeInUp 0.6s ease forwards;
      }


