.dd-cipher-game{max-width:800px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#fff;border-radius:12px;box-shadow:0 2px 8px rgb(0 0 0 / .1);position:relative}.dd-cipher-header{text-align:center;margin-bottom:30px}.dd-cipher-title{font-size:24px;color:#1a1a1a;margin:0 0 20px}.dd-cipher-player-name{font-size:1.125rem;color:#4299e1;font-weight:600;margin:-.75rem 0 1.25rem}.dd-cipher-header-row{display:flex;align-items:center;justify-content:center;gap:.75rem;position:relative;margin-bottom:1rem}.dd-cipher-header-row .dd-cipher-title{margin-bottom:0}.dd-cipher-help-btn{width:2rem;height:2rem;border-radius:999px;border:1px solid #cbd5e0;background:#edf2f7;color:#2d3748;font-weight:700;cursor:pointer;line-height:1;flex-shrink:0;transition:background-color 0.2s ease,transform 0.2s ease}.dd-cipher-help-btn:hover{background:#e2e8f0;transform:scale(1.05)}.dd-cipher-progress{margin:0 0 1.25rem;text-align:left}.dd-cipher-progress-track{height:.5rem;background:#edf2f7;border-radius:999px;overflow:hidden;margin-bottom:.5rem}.dd-cipher-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#4299e1,#63b3ed);border-radius:999px;transition:width 0.25s ease}.dd-cipher-progress-letters,.dd-cipher-progress-codes{margin:.15rem 0;font-size:.9rem;color:#4a5568}.dd-cipher-correct-letter{border-color:#38a169!important;background:#f0fff4!important;color:#22543d!important}.dd-cipher-wrong-letter{border-color:#e53e3e!important;background:#fff5f5!important;color:#742a2a!important;animation:ddCipherShake 0.35s ease}@keyframes ddCipherShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}.dd-cipher-completion-phrase{margin:0 0 1.25rem;font-size:1.05rem;color:#4a5568}.dd-cipher-completion-phrase strong{display:block;margin-top:.35rem;color:#2d3748;font-size:1.2rem}.dd-cipher-stats{display:flex;gap:20px;justify-content:center;margin:20px 0;font-size:14px}.dd-cipher-stat{display:flex;align-items:center;gap:8px;background:#f8f9fa;padding:8px 16px;border-radius:20px}.dd-cipher-stat-label{color:#666}.dd-cipher-timer{background:#f8fafc;padding:1rem;border-radius:8px;text-align:center;box-shadow:0 2px 4px rgb(0 0 0 / .05);margin-bottom:.5rem;display:block;min-width:200px}.dd-cipher-timer-text{font-size:1.5rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.dd-cipher-hints-text{font-size:1rem;color:#4a5568}.dd-cipher-hints-text:not(:empty){color:#e53e3e}.dd-cipher-timer-label,.dd-cipher-hints-label{font-weight:700;color:#666}.dd-cipher-timer-value{font-family:monospace;font-size:1.2rem;color:#333}.dd-cipher-hint-button{padding:.5rem 1rem;background:#4CAF50;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background 0.2s}.dd-cipher-hint-button:hover{background:#45a049}.dd-cipher-hint-button:disabled{background:#ccc;cursor:not-allowed}.dd-cipher-main{margin:30px 0;position:relative;transition:filter 0.3s ease,opacity 0.3s ease;text-align:center}.dd-cipher-main.blurred{filter:blur(8px);opacity:.35;pointer-events:none;user-select:none;transition:all 0.3s ease}.dd-cipher-instructions{text-align:center;color:#666;margin-bottom:20px;font-size:16px;line-height:1.5}.dd-cipher-encrypted{font-family:monospace;font-size:1.2rem;margin-bottom:1rem;color:#333;letter-spacing:1px;text-align:center}.dd-cipher-words-container{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0;justify-content:center;padding-top:20px}.dd-cipher-boxes{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0;justify-content:center}.dd-cipher-word{display:flex;gap:6px;background:rgb(0 0 0 / .03);padding:12px;border-radius:8px;box-shadow:0 1px 3px rgb(0 0 0 / .05)}.dd-cipher-words{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:flex-start}.dd-cipher-letter{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}.dd-cipher-encrypted-letter{font-size:1.5rem;font-weight:600;color:#2d3748;text-transform:uppercase;position:absolute;top:-32px;left:50%;transform:translateX(-50%);background:#fff;padding:4px 8px;border-radius:4px;box-shadow:0 1px 3px rgb(0 0 0 / .1);letter-spacing:.5px;line-height:1;z-index:1;transition:all 0.2s ease}.dd-cipher-encrypted-letter:hover{transform:translateX(-50%) scale(1.1);box-shadow:0 2px 4px rgb(0 0 0 / .15)}.dd-cipher-input{width:50px;height:50px;text-align:center;border:2px solid #ddd;border-radius:6px;font-size:24px;font-weight:700;text-transform:uppercase;transition:all 0.2s ease;background:#fff;color:#000;padding:0;margin:0;position:relative}.dd-cipher-input:focus{border-color:#007cba;box-shadow:0 0 0 2px rgb(0 124 186 / .2);outline:none;transform:scale(1.05);z-index:1}.dd-cipher-input:disabled{background:#f8f9fa;cursor:not-allowed}.dd-cipher-hint-letter{background-color:#4299e1!important;border-color:#2b6cb0!important;color:white!important;cursor:not-allowed!important}.dd-cipher-matched-letter{background-color:#fff8e1;border-color:#ffc107;color:#ff8f00;animation:none}.dd-cipher-success{background-color:#c6f6d5;color:#2f855a;border-color:#2f855a}@keyframes matchPulse{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}.dd-cipher-space{width:12px}.dd-cipher-controls{display:flex;justify-content:center;margin:20px 0}.dd-cipher-hint-btn{padding:.75rem 1.5rem;border:none;border-radius:6px;background-color:#4299e1;color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all 0.2s ease;text-align:center;box-shadow:0 2px 4px rgb(0 0 0 / .1);text-decoration:none;display:inline-block;line-height:1.2;margin:1rem 0;font-family:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dd-cipher-hint-btn:hover{background-color:#3182ce;transform:translateY(-1px);box-shadow:0 2px 4px rgb(0 0 0 / .1)}.dd-cipher-hint-btn:active{transform:translateY(0)}.dd-cipher-hint-btn:disabled{background-color:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.dd-cipher-check-btn{background-color:#007cba;color:#fff}.dd-cipher-check-btn:hover{background-color:#006ba1}.dd-cipher-start-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgb(255 255 255 / .92);display:flex;align-items:center;justify-content:center;z-index:100;border-radius:12px}.dd-cipher-start-content{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px rgb(0 0 0 / .1);text-align:center}.dd-cipher-start-content h3{color:#2d3748;font-size:1.875rem;margin:0 0 1rem;font-weight:700}.dd-cipher-start-content p{color:#4a5568;margin:0 0 1.5rem;line-height:1.5}.dd-cipher-start-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.dd-cipher-start-btn,.dd-cipher-instructions-btn{padding:.75rem 1.5rem;border:none;border-radius:6px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all 0.2s ease;text-align:center;box-shadow:0 2px 4px rgb(0 0 0 / .1)}.dd-cipher-start-btn{background-color:#4299e1;color:#fff}.dd-cipher-instructions-btn{background-color:#edf2f7;color:#2d3748;border:1px solid #cbd5e0}.dd-cipher-start-btn:hover{background-color:#3182ce;transform:translateY(-1px)}.dd-cipher-instructions-btn:hover{background-color:#e2e8f0;transform:translateY(-1px)}.dd-cipher-start-btn:active,.dd-cipher-instructions-btn:active{transform:translateY(0)}.dd-cipher-start-btn:disabled{background-color:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.dd-cipher-instructions-modal{position:fixed;inset:0;background:rgb(45 55 72 / .55);display:flex;align-items:center;justify-content:center;z-index:10000;opacity:0;visibility:hidden;transition:opacity 0.2s ease,visibility 0.2s ease;padding:max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));box-sizing:border-box}.dd-cipher-instructions-modal.show{opacity:1;visibility:visible}.dd-cipher-instructions-panel{background:#fff;border-radius:12px;box-shadow:0 8px 24px rgb(0 0 0 / .15);max-width:420px;width:100%;max-height:min(85vh, 640px);display:flex;flex-direction:column;overflow:hidden;text-align:left}.dd-cipher-instructions-header{flex-shrink:0;padding:1.25rem 1.25rem .75rem;border-bottom:1px solid #edf2f7}.dd-cipher-instructions-header h3{margin:0;color:#2d3748;font-size:1.35rem;text-align:center;line-height:1.3}.dd-cipher-instructions-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.75rem 1.25rem}.dd-cipher-instructions-list{margin:0;padding-left:1.25rem;color:#4a5568;line-height:1.55;font-size:.95rem}.dd-cipher-instructions-list li{margin-bottom:.65rem}.dd-cipher-instructions-list li:last-child{margin-bottom:0}.dd-cipher-instructions-footer{flex-shrink:0;padding:.75rem 1.25rem 1.25rem;border-top:1px solid #edf2f7;background:#fff}.dd-cipher-instructions-close{display:block;width:100%;padding:.75rem 1.5rem;border:none;border-radius:6px;background-color:#4299e1;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color 0.2s ease}.dd-cipher-instructions-close:hover{background-color:#3182ce}.dd-cipher-feedback{position:fixed;top:0;left:0;right:0;bottom:0;background:rgb(0 0 0 / .75);display:flex;align-items:center;justify-content:center;z-index:1000;opacity:0;visibility:hidden;transition:opacity 0.3s ease,visibility 0.3s ease;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding:max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));overflow-y:auto;-webkit-overflow-scrolling:touch}.dd-cipher-feedback.show{opacity:1;visibility:visible}.dd-cipher-feedback .dd-cipher-completion-content{background:#fff;padding:clamp(1.25rem, 4vw, 2.5rem);border-radius:16px;text-align:center;width:min(500px, 100%);max-width:100%;max-height:calc(100dvh - 2rem);overflow-y:auto;box-shadow:0 8px 32px rgb(0 0 0 / .1);transform:translateY(12px);transition:transform 0.3s ease;position:relative;z-index:1001;margin:auto;border:1px solid #e2e8f0;flex-shrink:0}.dd-cipher-feedback.show .dd-cipher-completion-content{transform:translateY(0)}.dd-cipher-feedback .dd-cipher-completion-content h3{margin:0 0 1rem;color:#2d3748;font-size:clamp(1.35rem, 4vw, 2rem);font-weight:700;letter-spacing:-.025em;line-height:1.25}.dd-cipher-feedback .dd-cipher-completion-phrase{margin:0 0 1.25rem;font-size:clamp(0.95rem, 2.5vw, 1.05rem);color:#4a5568}.dd-cipher-feedback .dd-cipher-completion-phrase strong{display:block;margin-top:.35rem;color:#2d3748;font-size:clamp(1.1rem, 3.5vw, 1.35rem);word-break:break-word}.dd-cipher-completion-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:1rem;padding:1rem;background:#f8fafc;border-radius:12px}.dd-cipher-completion-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;background:#fff;padding:1rem .75rem;border-radius:8px;box-shadow:0 1px 3px rgb(0 0 0 / .06);min-width:0}.dd-cipher-completion-stat--full{grid-column:1 / -1}.dd-cipher-completion-stat-icon{font-size:1.75rem;line-height:1}.dd-cipher-completion-stat-label{font-size:.875rem;color:#4a5568;font-weight:500}.dd-cipher-completion-stat-value{font-size:clamp(1.1rem, 3vw, 1.5rem);color:#2d3748;font-weight:700;line-height:1.2}.dd-cipher-completion-total{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:1rem;background:#f8fafc;border-radius:8px}.dd-cipher-completion-total-label{font-size:.95rem;color:#4a5568;font-weight:600}.dd-cipher-completion-total-value{font-size:clamp(1.25rem, 3.5vw, 1.75rem);color:#2d3748;font-weight:700}.dd-cipher-completion-buttons{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem;justify-content:center}.dd-cipher-completion-close,.dd-cipher-completion-new-game{flex:1 1 140px;padding:.75rem 1.25rem;border-radius:.375rem;font-weight:500;font-size:1rem;cursor:pointer;transition:all 0.2s ease}.dd-cipher-completion-close{background-color:#f3f4f6;color:#374151;border:1px solid #d1d5db}.dd-cipher-completion-close:hover{background-color:#e5e7eb}.dd-cipher-completion-new-game{background-color:#f97316;color:#fff;border:1px solid #ea580c}.dd-cipher-completion-new-game:hover{background-color:#ea580c}canvas{position:fixed;top:0;left:0;pointer-events:none;z-index:1002}@media (max-width:768px){.dd-cipher-instructions-panel{max-width:none;max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);border-radius:10px}.dd-cipher-instructions-header{padding:1rem 1rem .65rem}.dd-cipher-instructions-header h3{font-size:1.2rem}.dd-cipher-instructions-body{padding:.65rem 1rem}.dd-cipher-instructions-list{font-size:.9rem;line-height:1.5;padding-left:1.1rem}.dd-cipher-instructions-list li{margin-bottom:.55rem}.dd-cipher-instructions-footer{padding:.65rem 1rem 1rem}.dd-cipher-instructions-close{font-size:.95rem;padding:.7rem 1.25rem}.dd-cipher-start-content{max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow-y:auto;padding:1.5rem}.dd-cipher-start-content h3{font-size:1.5rem}.dd-cipher-start-actions{flex-direction:column;align-items:stretch}.dd-cipher-start-btn,.dd-cipher-instructions-btn{width:100%}.dd-cipher-feedback{align-items:flex-start}.dd-cipher-feedback .dd-cipher-completion-content{margin-top:.5rem}.dd-cipher-completion-buttons{flex-direction:column;align-items:stretch}.dd-cipher-completion-close,.dd-cipher-completion-new-game{flex:1 1 auto;width:100%;min-width:0}}@media (max-width:420px){.dd-cipher-completion-stats{grid-template-columns:1fr}.dd-cipher-completion-stat--full{grid-column:auto}}.dd-cipher-footer{display:flex;justify-content:space-between;align-items:center;margin-top:2rem;padding-top:1rem;border-top:1px solid #eee}.dd-cipher-score{display:flex;align-items:center;gap:.5rem}.dd-cipher-score-label{font-weight:700;color:#666}.dd-cipher-score-value{font-size:1.2rem;color:#333}.dd-cipher-confetti-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.screen-reader-text{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:768px){.dd-cipher-game{padding:1rem;width:100%;max-width:100vw;overflow-x:hidden}.dd-cipher-title{font-size:1.5rem;margin-bottom:1.5rem}.dd-cipher-input{width:40px;height:40px;font-size:18px}.dd-cipher-hint-btn{font-size:14px;padding:10px 20px}.dd-cipher-stats{flex-wrap:wrap}.dd-cipher-stat{font-size:12px;padding:6px 12px}}.dd-cipher-success-message{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px rgb(0 0 0 / .1);text-align:center;max-width:600px;margin:2rem auto}.dd-cipher-success-message h3{color:#2d3748;font-size:1.875rem;margin:0 0 2rem;font-weight:700}