{"id":1201,"date":"2025-07-12T14:47:33","date_gmt":"2025-07-12T14:47:33","guid":{"rendered":"https:\/\/enricando.com.br\/?p=1201"},"modified":"2025-07-15T13:54:14","modified_gmt":"2025-07-15T13:54:14","slug":"roleta","status":"publish","type":"post","link":"https:\/\/enricando.com.br\/es\/roleta\/","title":{"rendered":"roleta"},"content":{"rendered":"\n<p>Aten\u00e7\u00e3o, voc\u00ea s\u00f3 tem 1 chance. Gira a Roleta de Pr\u00eamios e pegue o ser Presente na Hora. Boa sorte!<\/p>\n\n\n\n<style>\n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n\n        .wheel-main-container {\n            font-family: 'Arial', sans-serif;\n            background: white;\n            border-radius: 20px;\n            padding: 20px;\n            box-shadow: 0 20px 40px rgba(0,0,0,0.1);\n            max-width: 600px;\n            width: 100%;\n            margin: 10px auto;\n            text-align: center;\n        }\n\n        .wheel-section {\n            width: 100%;\n            position: relative;\n        }\n\n        .wheel-container {\n            width: 100%;\n            max-width: 450px;\n            margin: 0 auto;\n            position: relative;\n            aspect-ratio: 1;\n        }\n\n        #wheel {\n            width: 100%;\n            height: 100%;\n            border-radius: 50%;\n            box-shadow: 0 15px 35px rgba(0,0,0,0.2);\n            animation: spin 8s linear infinite;\n        }\n\n        @keyframes spin {\n            from { transform: rotate(0deg); }\n            to { transform: rotate(360deg); }\n        }\n\n        .wheel-pointer {\n            position: absolute;\n            top: -10px;\n            left: 50%;\n            transform: translateX(-50%);\n            z-index: 2;\n            filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));\n        }\n\n        .controls-section {\n            margin-top: 30px;\n            padding: 0 10px;\n        }\n\n        .power-control {\n            margin-bottom: 20px;\n        }\n\n        .power-control label {\n            display: block;\n            margin-bottom: 10px;\n            font-weight: bold;\n            color: #333;\n            font-size: clamp(14px, 2.5vw, 16px);\n        }\n\n        #powerSlider {\n            width: 100%;\n            max-width: 350px;\n            height: 8px;\n            border-radius: 4px;\n            background: #ddd;\n            outline: none;\n            -webkit-appearance: none;\n            margin-bottom: 5px;\n        }\n\n        #powerSlider::-webkit-slider-thumb {\n            -webkit-appearance: none;\n            appearance: none;\n            width: 24px;\n            height: 24px;\n            border-radius: 50%;\n            background: #667eea;\n            cursor: pointer;\n            box-shadow: 0 2px 6px rgba(0,0,0,0.2);\n        }\n\n        #powerSlider::-moz-range-thumb {\n            width: 24px;\n            height: 24px;\n            border-radius: 50%;\n            background: #667eea;\n            cursor: pointer;\n            border: none;\n            box-shadow: 0 2px 6px rgba(0,0,0,0.2);\n        }\n\n        .power-labels {\n            display: flex;\n            justify-content: space-between;\n            margin-bottom: 20px;\n            color: #666;\n            font-size: clamp(10px, 2vw, 12px);\n            max-width: 350px;\n            margin-left: auto;\n            margin-right: auto;\n        }\n\n        #spinBtn {\n            padding: 16px 40px;\n            font-size: clamp(18px, 4vw, 24px);\n            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);\n            color: white;\n            border: none;\n            border-radius: 50px;\n            cursor: pointer;\n            font-weight: bold;\n            transition: all 0.3s ease;\n            box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);\n            width: 100%;\n            max-width: 320px;\n            text-decoration: none;\n            display: inline-block;\n        }\n\n        #spinBtn:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 12px 25px rgba(40, 167, 69, 0.4);\n        }\n\n        .sparkles {\n            position: absolute;\n            width: 100%;\n            height: 100%;\n            pointer-events: none;\n            z-index: 1;\n            border-radius: 50%;\n            overflow: hidden;\n        }\n\n        .sparkle {\n            position: absolute;\n            width: 6px;\n            height: 6px;\n            background: #ffd700;\n            border-radius: 50%;\n            animation: sparkle 2s infinite;\n        }\n\n        @keyframes sparkle {\n            0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }\n            50% { opacity: 1; transform: scale(1) rotate(180deg); }\n        }\n\n        @media (max-width: 768px) {\n            .wheel-main-container {\n                padding: 15px;\n                margin: 5px auto;\n            }\n            \n            .wheel-container {\n                max-width: 320px;\n            }\n            \n            .controls-section {\n                padding: 0 5px;\n                margin-top: 25px;\n            }\n        }\n\n        @media (max-width: 480px) {\n            .wheel-main-container {\n                padding: 10px;\n            }\n            \n            .wheel-container {\n                max-width: 280px;\n            }\n        }\n\n        @media (max-width: 360px) {\n            .wheel-container {\n                max-width: 250px;\n            }\n        }\n<\/style>\n\n<div class=\"wheel-main-container\">\n  <div class=\"wheel-section\">\n    <div class=\"wheel-container\">\n      <canvas id=\"wheel\"><\/canvas>\n      <div class=\"wheel-pointer\">\n        <svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\">\n          <polygon points=\"15,3 27,27 3,27\" style=\"fill:#2d3436; stroke:#fff; stroke-width:2;\" \/>\n        <\/svg>\n      <\/div>\n      <div class=\"sparkles\" id=\"sparkles\"><\/div>\n    <\/div>\n\n    <div class=\"controls-section\">\n      <div class=\"power-control\">\n        <label for=\"powerSlider\">\ud83c\udf9a\ufe0f Escolha a for\u00e7a do giro (1\u201310):<\/label>\n        <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" id=\"powerSlider\">\n        <div class=\"power-labels\">\n          <span>Suave<\/span>\n          <span>Intenso<\/span>\n        <\/div>\n      <\/div>\n\n      <a href=\"https:\/\/enricando.com.br\/roleta-de-premios\" id=\"spinBtn\">\ud83c\udfaf GIRE A ROLETA<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n  const canvas = document.getElementById(\"wheel\");\n  const ctx = canvas.getContext(\"2d\");\n  const sparkles = document.getElementById(\"sparkles\");\n  \n  \/\/ Itens da roleta (apenas visual)\n  const wheelPrizes = [\n    \"\ud83d\ude22 Tente novamente\",\n    \"\ud83c\udf81 Mixer\",\n    \"\ud83d\ude43 Outra vez n\u00e3o foi\",\n    \"\ud83c\udf77 Jogo de Copos\",\n    \"\ud83d\ude1e N\u00e3o ganhou\",\n    \"\ud83e\uddc1 Batedeira\",\n    \"\ud83d\ude22 Mais sorte depois\",\n    \"\ud83c\udf74 Talheres\",\n    \"\ud83d\ude43 N\u00e3o foi agora\",\n    \"\ud83e\uded7 Copos\",\n    \"\ud83d\ude1e Que pena\",\n    \"\ud83d\udd01 Tente mais tarde\",\n    \"\ud83d\ude45\u200d\u2642\ufe0f Nada ainda\",\n    \"\ud83d\udcb8 PIX R$1000\",\n    \"\ud83d\ude22 Pr\u00f3xima vez\",\n    \"\ud83d\ude43 Sem sorte ainda\",\n    \"\ud83d\udd01 Tente depois\",\n    \"\ud83e\uddc1 Batedeira\",\n    \"\ud83d\ude22 Quase l\u00e1\",\n    \"\ud83c\udf81 Mixer\"\n  ];\n  \n  const slices = wheelPrizes.length;\n  const sliceAngle = 360 \/ slices;\n\n  const colors = wheelPrizes.map((p, i) => {\n    const lowerText = p.toLowerCase();\n    if (lowerText.includes(\"pix\")) {\n      return \"#FFD700\"; \/\/ Dourado para PIX\n    } else if (lowerText.includes(\"\ud83d\ude22\") || lowerText.includes(\"\ud83d\ude1e\") || lowerText.includes(\"\ud83d\ude43\") || lowerText.includes(\"\ud83d\udd01\") || lowerText.includes(\"\ud83d\ude45\u200d\u2642\ufe0f\")) {\n      return \"#FF6B6B\"; \/\/ Vermelho para perdeu\n    } else {\n      return i % 2 === 0 ? \"#4ECDC4\" : \"#45B7D1\"; \/\/ Alternando cores\n    }\n  });\n\n  function setupCanvas() {\n    const container = canvas.parentElement;\n    const containerWidth = container.offsetWidth || 300;\n    const containerHeight = container.offsetHeight || 300;\n    const size = Math.min(containerWidth, containerHeight);\n    const dpr = window.devicePixelRatio || 1;\n    \n    const finalSize = Math.max(size, 200);\n    \n    canvas.width = finalSize * dpr;\n    canvas.height = finalSize * dpr;\n    canvas.style.width = finalSize + \"px\";\n    canvas.style.height = finalSize + \"px\";\n    \n    ctx.scale(dpr, dpr);\n    \n    return finalSize;\n  }\n\n  function drawWheel() {\n    const size = setupCanvas();\n    const centerX = size \/ 2;\n    const centerY = size \/ 2;\n    const radius = Math.max(size \/ 2 - 10, 50);\n    \n    ctx.clearRect(0, 0, canvas.width, canvas.height);\n    ctx.save();\n    ctx.translate(centerX, centerY);\n    \n    for (let i = 0; i < slices; i++) {\n      const startAngle = (i * sliceAngle * Math.PI) \/ 180;\n      const endAngle = ((i + 1) * sliceAngle * Math.PI) \/ 180;\n      \n      ctx.beginPath();\n      ctx.moveTo(0, 0);\n      ctx.arc(0, 0, radius, startAngle, endAngle);\n      ctx.fillStyle = colors[i];\n      ctx.fill();\n      \n      ctx.strokeStyle = \"#ffffff\";\n      ctx.lineWidth = 2;\n      ctx.stroke();\n      \n      ctx.save();\n      ctx.rotate(startAngle + (sliceAngle * Math.PI) \/ 360);\n      ctx.fillStyle = \"#000\";\n      ctx.font = `bold ${Math.max(10, size * 0.028)}px sans-serif`;\n      ctx.textAlign = \"right\";\n      ctx.textBaseline = \"middle\";\n      ctx.fillText(wheelPrizes[i], radius - 10, 0);\n      ctx.restore();\n    }\n    \n    ctx.beginPath();\n    ctx.arc(0, 0, Math.max(15, size * 0.04), 0, 2 * Math.PI);\n    ctx.fillStyle = \"#2d3436\";\n    ctx.fill();\n    ctx.strokeStyle = \"#ffffff\";\n    ctx.lineWidth = 3;\n    ctx.stroke();\n    \n    ctx.restore();\n  }\n\n  function createSparkles() {\n    sparkles.innerHTML = '';\n    for (let i = 0; i < 12; i++) {\n      const sparkle = document.createElement(\"div\");\n      sparkle.className = \"sparkle\";\n      sparkle.style.left = Math.random() * 100 + \"%\";\n      sparkle.style.top = Math.random() * 100 + \"%\";\n      sparkle.style.animationDelay = Math.random() * 2 + \"s\";\n      sparkles.appendChild(sparkle);\n    }\n  }\n\n  function startPixBlink() {\n    setInterval(() => {\n      for (let i = 0; i < slices; i++) {\n        if (\/pix\/i.test(wheelPrizes[i])) {\n          colors[i] = colors[i] === \"#FFD700\" ? \"#fff700\" : \"#FFD700\";\n          drawWheel();\n        }\n      }\n    }, 1000);\n  }\n\n  window.addEventListener(\"resize\", () => {\n    setTimeout(() => {\n      drawWheel();\n    }, 100);\n  });\n\n  \/\/ Inicializar a roleta\n  drawWheel();\n  createSparkles();\n  startPixBlink();\n});\n<\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aten\u00e7\u00e3o, voc\u00ea s\u00f3 tem 1 chance. Gira a Roleta de Pr\u00eamios e pegue o ser Presente na Hora. Boa sorte! \ud83c\udf9a\ufe0f Escolha a for\u00e7a do giro (1\u201310): Suave Intenso \ud83c\udfaf GIRE A ROLETA<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_breakdance_hide_in_design_set":false,"_breakdance_tags":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1201","post","type-post","status-publish","format-standard","hentry","category-autoajuda"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/posts\/1201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/comments?post=1201"}],"version-history":[{"count":48,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/posts\/1201\/revisions"}],"predecessor-version":[{"id":1261,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/posts\/1201\/revisions\/1261"}],"wp:attachment":[{"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/media?parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/categories?post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enricando.com.br\/es\/wp-json\/wp\/v2\/tags?post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}