   <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 10px;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Logo Header Styles */
        .logo-header {
            text-align: center;
            padding: 20px 10px 30px 10px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }

        .logo-container {
            position: relative;
            display: inline-block;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(102, 126, 234, 0.95) 100%);
            border-radius: 25px;
            padding: 25px 35px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .logo-container:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        }

        .logo-main {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            z-index: 2;
        }

        .logo-icon {
            position: relative;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mystery-char {
            font-size: 48px;
            font-weight: bold;
            color: #FFD700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
            animation: mysteryPulse 3s ease-in-out infinite;
        }

        .floating-chars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .float-char {
            position: absolute;
            font-size: 16px;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
            animation: floatOrbit 6s linear infinite;
            animation-delay: var(--delay);
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
        }

        .logo-text {
            text-align: left;
        }

        .site-title {
            font-size: 32px;
            font-weight: bold;
            color: white;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: -1px;
        }

        .highlight {
            color: #FFD700;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
        }

        .site-url {
            font-size: 18px;
            color: #FFD700;
            font-weight: bold;
            margin: -5px 0 8px 0;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .logo-tagline {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            font-style: italic;
            margin-bottom: 12px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .script-showcase {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .script {
            font-size: 12px;
            padding: 3px 8px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            color: white;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
        }

        .script:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .script.telugu { border-left: 3px solid #ff6b6b; }
        .script.hindi { border-left: 3px solid #45b7d1; }
        .script.hebrew { border-left: 3px solid #4ecdc4; }
        .script.arabic { border-left: 3px solid #96ceb4; }
        .script.greek { border-left: 3px solid #feca57; }
        .script.english { border-left: 3px solid #667eea; }

        .logo-glow {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
            animation: logoGlow 4s ease-in-out infinite;
            pointer-events: none;
        }

  

        /* Mobile responsive logo */
        @media (max-width: 768px) {
            .logo-header {
                padding: 15px 5px 20px 5px;
                margin-bottom: 15px;
            }

            .logo-container {
                padding: 20px 25px;
                border-radius: 20px;
            }

            .logo-main {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .logo-icon {
                width: 60px;
                height: 60px;
            }

            .mystery-char {
                font-size: 36px;
            }

            .float-char {
                font-size: 14px;
            }

            .logo-text {
                text-align: center;
            }

            .site-title {
                font-size: 24px;
            }

            .site-url {
                font-size: 16px;
            }

            .logo-tagline {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .script-showcase {
                justify-content: center;
                gap: 6px;
            }

            .script {
                font-size: 10px;
                padding: 2px 6px;
            }
        }

        @media (max-width: 480px) {
            .logo-container {
                padding: 15px 20px;
            }

            .site-title {
                font-size: 20px;
            }

            .site-url {
                font-size: 14px;
            }

            .logo-tagline {
                font-size: 11px;
            }

            .script {
                font-size: 9px;
                padding: 2px 5px;
            }
        }

        /* Hide logo during calculation */
        .logo-header.hide-during-calculation {
            display: none !important;
        }

        /* Examples Popup Styles */
        .examples-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .examples-popup.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .examples-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.3);
            animation: popupSlideIn 0.5s ease-out;
        }

        .examples-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .examples-header h3 {
            color: #FFD700;
            font-size: 28px;
            margin: 0 0 10px 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .examples-header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            margin: 0;
        }

        .examples-cta {
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 30px 0;
            padding: 25px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            border: 2px solid rgba(255, 215, 0, 0.3);
        }

        .examples-icon {
            font-size: 48px;
            animation: bounce 2s infinite;
        }

        .examples-message {
            flex: 1;
        }

        .examples-title {
            color: #FFD700;
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .examples-subtitle {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            line-height: 1.4;
        }


        .examples-footer {
            text-align: center;
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .go-examples-btn {
            background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
            flex: 1;
            max-width: 200px;
        }

        .go-examples-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
        }

        .close-examples-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1;
            max-width: 150px;
        }

        .close-examples-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .mappings-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
            flex: 1;
            max-width: 220px;
        }

        .mappings-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

 

        /* Mobile responsive for examples popup */
        @media (max-width: 768px) {
            .examples-popup {
                padding: 10px;
            }

            .examples-content {
                padding: 20px;
                margin: 10px;
                width: calc(100% - 20px);
                max-height: 90vh;
                border-radius: 15px;
            }

            .examples-header h3 {
                font-size: 22px;
                margin-bottom: 8px;
            }

            .examples-header p {
                font-size: 14px;
                margin-bottom: 15px;
            }

            .examples-cta {
                flex-direction: column;
                gap: 15px;
                text-align: center;
                padding: 20px;
            }

            .examples-icon {
                font-size: 40px;
            }

            .examples-title {
                font-size: 18px;
            }

            .examples-subtitle {
                font-size: 13px;
            }

            .examples-footer {
                flex-direction: column;
                gap: 12px;
            }

            .go-examples-btn, .close-examples-btn, .mappings-btn {
                width: 100%;
                max-width: none;
            }
        }

        @media (max-width: 480px) {
            .examples-content {
                padding: 15px;
                margin: 5px;
                width: calc(100% - 10px);
            }

            .examples-header h3 {
                font-size: 20px;
            }

            .example-text {
                font-size: 16px;
            }

            .startup-title {
                font-size: 24px;
            }

            .startup-subtitle {
                font-size: 16px;
            }

            .rain-card {
                font-size: 11px;
                padding: 5px 8px;
            }
        }

        .input-section {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.5s ease;
        }

        .input-section.hide-during-calculation {
            display: none !important;
        }
        
        .social-sharing-section.hide-during-calculation {
            display: none !important;
        }

        /* FIXED: Prevent layout shifts and text cutoff issues */
        .input-section {
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }
        
        .results-section {
            transition: margin-top 0.3s ease;
            position: relative;
            z-index: 1;
        }
        
        /* Ensure smooth transitions when showing/hiding elements */
        .input-section:not(.hide-during-calculation) {
            opacity: 1;
            transform: translateY(0);
        }
        
        .results-section.fullscreen {
            margin-top: 0;
            position: relative;
            z-index: 100;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px 0;
        }
        
        .results-section:not(.fullscreen) {
            margin-top: 20px;
        }
        
        /* Hide elements during calculation for clean experience */
        .hide-during-calculation {
            display: none !important;
        }
        
        /* Calculation mode - hide everything except input and results */
        body.calculation-mode .language-switcher-container,
        body.calculation-mode .bulk-processor-section,
        body.calculation-mode .social-sharing-section,
        body.calculation-mode .try-texts-section,
        body.calculation-mode .logo-header,
        body.calculation-mode #copyrightFooter,
        body.calculation-mode #reopenTryExamples {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
            position: absolute !important;
            left: -9999px !important;
        }
        
        body.calculation-mode {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            min-height: 100vh;
        }
        
        /* Force page to start at top on mobile */
        html {
            scroll-behavior: auto;
        }
        
        body {
            scroll-behavior: auto;
        }
        
        /* Mobile-specific calculation mode */
        @media (max-width: 768px) {
            body.calculation-mode .language-switcher-container,
            body.calculation-mode .bulk-processor-section,
            body.calculation-mode .social-sharing-section,
            body.calculation-mode .try-texts-section,
            body.calculation-mode .logo-header,
            body.calculation-mode #copyrightFooter,
            body.calculation-mode #reopenTryExamples {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                height: 0 !important;
                max-height: 0 !important;
                overflow: hidden !important;
                position: fixed !important;
                top: -9999px !important;
                left: -9999px !important;
                z-index: -1 !important;
            }
            
            body.calculation-mode {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
                min-height: 100vh !important;
                overflow-x: hidden;
            }
            
            body.calculation-mode .input-section {
                background: rgba(255, 255, 255, 0.95) !important;
                border-radius: 15px !important;
                margin: 10px !important;
                padding: 15px !important;
                box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
            }
            
            body.calculation-mode .results-section {
                background: transparent !important;
                padding: 10px !important;
            }
        }
        
        /* Clean input section styling during calculation */
        .results-section.fullscreen ~ .input-section,
        .results-section.fullscreen + .input-section {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            margin: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
        }

        .timer-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .animation-header {
            width: 100%;
            text-align: center;
            margin-bottom: 8px;
        }

        .animation-type-label {
            font-size: 12px;
            font-weight: bold;
            color: #333;
            letter-spacing: 0.5px;
            background: rgba(255, 255, 255, 0.8);
            padding: 4px 12px;
            border-radius: 8px;
            border: 2px solid #667eea;
        }

        .animation-controls {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            padding: 12px;
            background: rgba(102, 126, 234, 0.9);
            border-radius: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            justify-content: center;
        }

        .animation-group {
            display: flex;
            align-items: center;
        }

        .animation-option {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .animation-option:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .animation-option input[type="radio"] {
            display: none;
        }

        .radio-custom {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid #fff;
            margin-right: 6px;
            position: relative;
            transition: all 0.3s ease;
        }

        .animation-option input[type="radio"]:checked + .radio-custom {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            border-color: #fff;
            box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
        }

        .animation-option input[type="radio"]:checked + .radio-custom::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: white;
        }

        .animation-name {
            font-size: 13px;
            font-weight: bold;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 0.5px;
        }

        .timer-group {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .timer-group label {
            font-size: 11px;
            font-weight: bold;
            white-space: nowrap;
        }

        .timer-input {
            width: 50px;
            padding: 5px;
            border: 2px solid #ddd;
            border-radius: 8px;
            text-align: center;
            font-size: 12px;
        }

        .text-input {
            width: 100%;
            padding: 15px;
            border: 3px solid #4CAF50;
            border-radius: 15px;
            font-size: 16px;
            resize: none;
            outline: none;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            line-height: 1.3;
            direction: auto;
            text-align: start;
            unicode-bidi: plaintext;
            transition: border-color 0.3s ease;
        }
        
        .text-input.warning {
            border: 3px solid #FF6B6B;
            background: rgba(255, 107, 107, 0.05);
        }
        
        .word-count-warning {
            margin-top: 8px;
            padding: 8px 12px;
            background: linear-gradient(135deg, #FF6B6B, #FF8E53);
            color: white;
            border-radius: 10px;
            font-size: 12px;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
            display: none;
            animation: warningPulse 2s ease-in-out infinite;
        }
        
        .word-count-warning.text-rejected {
            background: linear-gradient(135deg, #DC3545, #C82333);
            border: 2px solid #FF6B6B;
            box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
            animation: rejectionPulse 1.5s ease-in-out infinite;
        }
        

        .mobile .text-input {
            height: 120px;
        }

        .desktop .text-input {
            height: 80px;
        }

        /* Reverse ordinal checkbox */
        .reverse-ordinal-section {
            margin-top: 10px;
            padding: 10px;
            background: rgba(255, 193, 7, 0.1);
            border-radius: 10px;
            border: 2px solid #FFC107;
        }

        .reverse-ordinal-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .reverse-ordinal-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .reverse-ordinal-label {
            font-size: 13px;
            font-weight: bold;
            color: #333;
            cursor: pointer;
        }

        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .btn {
            flex: 1;
            min-width: 100px;
            padding: 12px 20px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            outline: none;
        }

        .calculate-btn {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
        }

        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .clear-btn {
            background: linear-gradient(45deg, #FF8A80, #FFB74D);
            color: white;
        }

        .clear-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        /* Additional Text Options */
        .additional-options {
            margin-top: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            border: 2px solid #667eea;
        }

        .additional-header {
            text-align: center;
            margin-bottom: 10px;
        }

        .additional-label {
            font-size: 13px;
            font-weight: bold;
            color: #333;
            background: rgba(102, 126, 234, 0.1);
            padding: 4px 12px;
            border-radius: 8px;
            border: 1px solid #667eea;
        }

        .additional-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .radio-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .radio-option:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-1px);
        }

        .radio-option input[type="radio"] {
            display: none;
        }

        .radio-custom-circle {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #667eea;
            margin-right: 6px;
            position: relative;
            transition: all 0.3s ease;
        }

        .radio-option input[type="radio"]:checked + .radio-custom-circle {
            background: linear-gradient(45deg, #667eea, #764ba2);
            border-color: #667eea;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
        }

        .radio-option input[type="radio"]:checked + .radio-custom-circle::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: white;
        }

        .radio-name {
            font-size: 12px;
            font-weight: bold;
            color: #333;
        }

        .delay-control {
            display: flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.7);
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #ddd;
        }

        .delay-control label {
            font-size: 11px;
            font-weight: bold;
            white-space: nowrap;
            color: #333;
        }

        .additional-inputs {
            margin-top: 15px;
        }

        .additional-text-group {
            margin-bottom: 15px;
        }
        .additional-text-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 12px;
            font-weight: bold;
            color: #333;
        }

        .additional-text-input {
            height: 80px !important;
            font-size: 13px;
            border: 2px solid #667eea;
        }

        /* Language mapping buttons */
        .language-mapping-section {
            margin-top: 15px;
            padding: 15px;
            background: rgba(106, 90, 205, 0.1);
            border-radius: 15px;
            border: 2px solid #6a5acd;
        }

        .language-mapping-header {
            text-align: center;
            margin-bottom: 12px;
        }

        .language-mapping-label {
            font-size: 13px;
            font-weight: bold;
            color: #333;
            background: rgba(106, 90, 205, 0.15);
            padding: 5px 15px;
            border-radius: 8px;
            border: 1px solid #6a5acd;
        }

        .language-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .language-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }

        .language-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
        }

        .language-btn.telugu { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
        .language-btn.hebrew { background: linear-gradient(45deg, #4ecdc4, #44a08d); }
        .language-btn.hindi { background: linear-gradient(45deg, #45b7d1, #2980b9); }
        .language-btn.arabic { background: linear-gradient(45deg, #96ceb4, #27ae60); }
        .language-btn.greek { background: linear-gradient(45deg, #feca57, #ff9ff3); }
        .language-btn.english { background: linear-gradient(45deg, #667eea, #764ba2); }

        /* Try Texts Section */
        .try-texts-section {
            margin-top: 20px;
            padding: 20px;
            background: rgba(255, 193, 7, 0.1);
            border-radius: 20px;
            border: 3px solid #FFC107;
            box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
        }

        .try-texts-header {
            text-align: center;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
        }

        .try-texts-close:hover {
            background: rgba(255, 107, 107, 1) !important;
            transform: scale(1.1);
        }

        .try-texts-label {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            background: rgba(255, 193, 7, 0.2);
            padding: 8px 20px;
            border-radius: 12px;
            border: 2px solid #FFC107;
            display: inline-block;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .try-texts-subtitle {
            margin-top: 10px;
            font-size: 13px;
            color: #666;
            font-style: italic;
        }

        .example-pairs-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .example-pair-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            border: 2px solid rgba(255, 193, 7, 0.3);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
        }

        .example-pair-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border-color: #FFC107;
        }

        .example-texts {
            margin-bottom: 15px;
        }

        .example-text {
            margin-bottom: 12px;
        }

        .example-text-label {
            font-size: 11px;
            font-weight: bold;
            color: #666;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .example-text-content {
            font-size: 13px;
            line-height: 1.4;
            color: #333;
            background: rgba(0, 0, 0, 0.02);
            padding: 10px;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
        }

        .gematria-text .example-text-content {
            border-left: 4px solid #4CAF50;
        }

        .translation-text .example-text-content {
            border-left: 4px solid #2196F3;
        }

        .try-button {
            position: relative;
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
            border: none;
            border-radius: 25px;
            padding: 12px 25px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            overflow: hidden;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .try-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
        }

        .try-button.animated-try {
            animation: tryButtonPulse 2s ease-in-out infinite;
        }

        .try-text {
            position: relative;
            z-index: 2;
        }

        .try-glow {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
            border-radius: 25px;
            opacity: 0;
            animation: tryGlow 3s ease-in-out infinite;
        }

        /* First Visit Arrow */
        .first-visit-arrow {
            position: fixed;
            top: 50%;
            right: 30px;
            transform: translateY(-50%);
            z-index: 1000;
            background: rgba(255, 193, 7, 0.95);
            padding: 15px 20px;
            border-radius: 20px;
            border: 3px solid #FF6B6B;
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            backdrop-filter: blur(10px);
        }

        .first-visit-arrow.show {
            opacity: 1;
            visibility: visible;
        }

        .arrow-container {
            text-align: center;
        }

        .arrow-text {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
        }

        .arrow-animated {
            font-size: 24px;
            animation: arrowBounce 1.5s ease-in-out infinite;
        }


        /* Calculate Hand Pointer */
        .calculate-hand-pointer {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1001;
            background: rgba(76, 175, 80, 0.95);
            padding: 15px 25px;
            border-radius: 20px;
            border: 3px solid #4CAF50;
            box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            backdrop-filter: blur(10px);
        }

        .calculate-hand-pointer.show {
            opacity: 1;
            visibility: visible;
        }

        .hand-container {
            text-align: center;
        }

        .hand-text {
            font-size: 14px;
            font-weight: bold;
            color: white;
            margin-bottom: 8px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .hand-emoji {
            font-size: 28px;
            animation: handPoint 1s ease-in-out infinite;
        }


        /* Mobile responsive adjustments for try texts */
        @media (max-width: 768px) {
            .try-texts-section {
                margin-top: 15px;
                padding: 15px;
            }

            .try-texts-label {
                font-size: 14px;
                padding: 6px 15px;
            }

            .try-texts-subtitle {
                font-size: 12px;
            }

            .example-pairs-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .example-pair-card {
                padding: 15px;
            }

            .example-text-content {
                font-size: 12px;
                padding: 8px;
            }

            .try-button {
                padding: 10px 20px;
                font-size: 13px;
            }

            .first-visit-arrow {
                right: 15px;
                padding: 12px 15px;
            }

            .arrow-text {
                font-size: 12px;
            }

            .arrow-animated {
                font-size: 20px;
            }

            .calculate-hand-pointer {
                bottom: 80px;
                padding: 12px 20px;
            }

            .hand-text {
                font-size: 13px;
            }

            .hand-emoji {
                font-size: 24px;
            }
        }

        /* Language mapping modal */
        .language-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .language-modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .language-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90vw;
            max-width: 600px;
            height: 80vh;
            max-height: 80vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            z-index: 2001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .language-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .language-modal-header {
            position: sticky;
            top: 0;
            z-index: 2002;
            background: rgba(102, 126, 234, 0.98);
            padding: 15px 20px;
            border-radius: 20px 20px 0 0;
            border-bottom: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            text-align: center;
        }

        .language-modal-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .language-modal-subtitle {
            font-size: 12px;
            opacity: 0.9;
            font-style: italic;
        }

        .language-modal-close {
            position: absolute;
            top: 12px;
            right: 15px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid #ff4444;
            color: #ff4444;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
            z-index: 2003;
            line-height: 1;
            text-shadow: none;
        }

        .language-modal-close:hover {
            background: #ff4444;
            color: white;
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(255, 68, 68, 0.5);
        }

        .language-modal-close.rtl {
            right: auto;
            left: 15px;
        }

        .language-modal-content {
            height: calc(100% - 70px);
            overflow-y: auto;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
        }

        .alphabet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .alphabet-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            padding: 12px 8px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .alphabet-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        .alphabet-char {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
            color: #333;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
        }

        .alphabet-value {
            font-size: 14px;
            font-weight: bold;
            color: #667eea;
            background: rgba(102, 126, 234, 0.1);
            padding: 3px 8px;
            border-radius: 8px;
        }

        .rules-section {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 15px;
            margin-top: 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .rules-title {
            color: #FFD700;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
            text-align: center;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .rules-content {
            color: white;
            font-size: 13px;
            line-height: 1.5;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .rules-content ul {
            padding-left: 20px;
        }

        .rules-content li {
            margin-bottom: 5px;
        }

        /* Text Display Blocks */
        .text-display-block {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px;
            margin: 8px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transform: translateY(-30px) scale(0.9);
            animation: blockAppear 0.8s ease-out forwards;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
        }
        
        /* Ensure first text block has extra top margin to prevent cut-off */
        .text-display-block:first-child {
            margin-top: 25px;
        }

        .text-display-block.main-text {
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
        }

        .text-display-block.additional-text-1 {
            background: linear-gradient(135deg, #6c5ce7 0%, #5f27cd 100%);
        }

        .text-display-block.additional-text-2 {
            background: linear-gradient(135deg, #0984e3 0%, #0c7db1 100%);
        }

        .text-header-card {
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            padding: 6px 10px;
            margin-bottom: 10px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.4;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            white-space: pre-line;
        }

        .text-block-content {
            font-size: 14px;
            font-weight: 500;
            line-height: 1.3;
            text-align: center;
            word-wrap: break-word;
        }



        .text-display-temporary {
            transition: all 0.5s ease;
        }

        .text-display-temporary.hidden {
            opacity: 0;
            transform: scale(0.8);
            height: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .static-text-block {
            opacity: 1 !important;
            transform: none !important;
            animation: none !important;
            position: relative;
        }

        .text-block-close {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid #ff4444;
            color: #ff4444;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            z-index: 10;
            line-height: 1;
            text-shadow: none;
        }

        .text-block-close:hover {
            background: #ff4444;
            color: white;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
        }

        .word-cards-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 6px 12px;
            margin: 8px 6px 6px 6px;
            border-radius: 10px;
            text-align: center;
            font-size: 12px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            white-space: pre-line;
        }

        .static-word-block {
            opacity: 1 !important;
            transform: none !important;
            animation: none !important;
        }

        .results-section {
            margin-top: 20px;
            min-height: 70vh;
            position: relative;
            transition: all 0.5s ease;
            direction: ltr;
        }

        .results-section.fullscreen {
            margin-top: 10px;
            min-height: 90vh;
            padding-top: 10px;
        }

        /* Word Blocks */
        .word-block {
            background: white;
            border-radius: 15px;
            padding: 8px;
            margin: 6px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            position: relative;
            display: inline-block;
            vertical-align: top;
            width: auto;
            min-width: 55px;
            max-width: 240px;
            opacity: 0;
        }

        /* Animation classes for word blocks */
        .word-block.anim-spiral {
            transform: scale(0) rotate(180deg);
            animation: spiralAppear 0.8s ease-out forwards;
        }

        .word-block.anim-bounce {
            transform: translateY(-100px) scale(0.3);
            animation: bounceAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
        }

        .word-block.anim-fade {
            transform: scale(0.8);
            animation: fadeAppear 0.6s ease-out forwards;
        }

        .word-block.anim-flip {
            transform: rotateX(90deg) scale(0.8);
            animation: flipAppear 0.8s ease-out forwards;
        }

        .word-block.anim-zoom {
            transform: scale(0) rotateZ(180deg);
            animation: zoomAppear 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }

        .word-block.anim-wave {
            transform: translateY(50px) skewX(15deg);
            animation: waveAppear 1s ease-in-out forwards;
        }

        .word-block.anim-pulse {
            transform: scale(0);
            animation: pulseAppear 1.2s ease-out forwards;
        }

        .word-block.style-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
        .word-block.style-2 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); color: white; }
        .word-block.style-3 { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); color: white; }
        .word-block.style-4 { background: linear-gradient(135deg, #45b7d1 0%, #2980b9 100%); color: white; }
        .word-block.style-5 { background: linear-gradient(135deg, #96ceb4 0%, #27ae60 100%); color: #333; }
        .word-block.style-6 { background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%); color: #333; }
        .word-block.style-7 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #333; }
        .word-block.style-8 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }
        .word-block.style-9 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); color: #333; }
        .word-block.style-10 { background: linear-gradient(135deg, #ff8a80 0%, #ff80ab 100%); color: white; }
        .word-block.style-11 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #333; }
        .word-block.style-12 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: #333; }
        .word-block.style-13 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); color: white; }
        .word-block.style-14 { background: linear-gradient(135deg, #feada6 0%, #f5efef 100%); color: #333; }
        .word-block.style-15 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); color: #333; }
        .word-block.style-16 { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); color: white; }
        .word-block.style-17 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
        .word-block.style-18 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
        .word-block.style-19 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #333; }
        .word-block.style-20 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); color: #333; }
        .word-block.style-21 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }

        .word-text {
            font-weight: bold;
            margin-bottom: 3px;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            word-wrap: break-word;
            padding-right: 35px;
            line-height: 1.4;
            font-size: 14px;
        }

        .word-total {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(33, 150, 243, 0.9);
            color: white;
            padding: 2px 6px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            min-width: 20px;
            text-align: center;
        }

        .breakdown {
            margin-top: 1px;
            text-align: left;
            display: flex;
            justify-content: flex-start;
        }

        .breakdown-table {
            display: inline-table;
            margin: 0;
            text-align: left;
            border-spacing: 1px 0px;
        }

        .breakdown-row {
            display: table-row;
        }

        .breakdown-char-cell,
        .breakdown-value-cell {
            display: table-cell;
            padding: 0px 1px;
            vertical-align: middle;
            text-align: left;
            white-space: nowrap;
        }

        .breakdown-char-cell {
            font-size: 11px;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            font-weight: 500;
            line-height: 1.3;
            min-width: auto;
        }

        .breakdown-value-cell {
            font-size: 9px;
            font-weight: 600;
            line-height: 1.2;
            min-width: auto;
        }

        /* Total Display Modal */
        .total-display {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            padding: 0;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            opacity: 0;
            display: none;
            width: 90vw;
            max-width: 500px;
            height: 55vh;
            max-height: 55vh;
            background: rgba(102, 126, 234, 0.85);
            backdrop-filter: blur(2px);
            overflow: hidden;
        }

        .total-display.compact {
            height: 75vh;
            max-height: 75vh;
        }

        .total-display.large {
            height: 80vh;
            max-height: 80vh;
        }

        .total-header {
            position: sticky;
            top: 0;
            z-index: 1001;
            background: rgba(102, 126, 234, 0.98);
            padding: 10px 8px;
            border-radius: 15px 15px 0 0;
            border-bottom: 2px solid rgba(255, 255, 255, 0.3);
            min-height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .language-indicator {
            font-size: 9px;
            font-weight: bold;
            color: #FFD700;
            margin-bottom: 4px;
            background: rgba(255, 215, 0, 0.1);
            padding: 2px 8px;
            border-radius: 8px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .calculating-text {
            font-size: 10px;
            font-weight: bold;
            line-height: 1.4;
            color: #FFD700;
            margin-top: 5px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            text-align: center;
            width: 100%;
            background: rgba(255, 215, 0, 0.1);
            padding: 3px;
            border-radius: 5px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .total-scrollable-content {
            height: calc(100% - 80px);
            overflow-y: auto;
            padding: 12px 8px;
            background: rgba(255, 255, 255, 0.05);
        }

        .question-mark-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 14px;
            min-width: 30px;
            text-align: center;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.5);
            animation: spinQuestionMark 2s linear infinite;
            display: inline-block;
            margin-bottom: 8px;
        }

  
        .number-cards-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 4px;
            margin: 8px 0;
            padding: 12px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            width: 100%;
            box-sizing: border-box;
            min-height: auto;
            overflow: visible;
        }

        .final-total-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            margin-bottom: 20px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: visible;
            width: 100%;
            box-sizing: border-box;
        }

        .number-card {
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 12px;
            min-width: 24px;
            text-align: center;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
            opacity: 0;
            border: 1px solid rgba(255, 255, 255, 0.5);
            line-height: 1.2;
            transition: all 0.3s ease;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            transform: translateY(20px) scale(0.8);
            animation: smoothCardAppear 0.6s ease-out forwards;
            overflow: visible;
            white-space: nowrap;
            max-width: none;
            word-break: keep-all;
        }
        
        /* Responsive font sizing for large numbers */
        .number-card[data-large-number="true"] {
            font-size: 10px;
            padding: 4px 6px;
        }
        
        .number-card.total-card[data-large-number="true"] {
            font-size: 12px;
            padding: 6px 8px;
        }

        .number-card:nth-child(21n+1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .number-card:nth-child(21n+2) { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
        .number-card:nth-child(21n+3) { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }
        .number-card:nth-child(21n+4) { background: linear-gradient(135deg, #45b7d1 0%, #2980b9 100%); }
        .number-card:nth-child(21n+5) { background: linear-gradient(135deg, #96ceb4 0%, #27ae60 100%); }
        .number-card:nth-child(21n+6) { background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%); }
        .number-card:nth-child(21n+7) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
        .number-card:nth-child(21n+8) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
        .number-card:nth-child(21n+9) { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); }
        .number-card:nth-child(21n+10) { background: linear-gradient(135deg, #ff8a80 0%, #ff80ab 100%); }
        .number-card:nth-child(21n+11) { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
        .number-card:nth-child(21n+12) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
        .number-card:nth-child(21n+13) { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
        .number-card:nth-child(21n+14) { background: linear-gradient(135deg, #feada6 0%, #f5efef 100%); }
        .number-card:nth-child(21n+15) { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
        .number-card:nth-child(21n+16) { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
        .number-card:nth-child(21n+17) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
        .number-card:nth-child(21n+18) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .number-card:nth-child(21n+19) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
        .number-card:nth-child(21n+20) { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
        .number-card:nth-child(21n+21) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

        .plus-symbol {
            color: #FFD700;
            font-size: 12px;
            font-weight: 900;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            opacity: 0;
            animation: smoothSymbolAppear 0.5s ease-out forwards;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 12px;
            transform: translateY(15px) scale(0.7);
            flex-shrink: 0;
        }

        .equals-symbol {
            color: #00FF7F;
            font-size: 14px;
            font-weight: 900;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            opacity: 0;
            animation: smoothSymbolAppear 0.5s ease-out forwards;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 16px;
            transform: translateY(15px) scale(0.7);
            flex-shrink: 0;
        }

        .number-card.total-card {
            background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%) !important;
            font-size: 14px;
            padding: 6px 12px;
            min-width: 36px;
            border: 2px solid #FFD700;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            position: relative;
            transform: translateY(20px) scale(0.8);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            animation: smoothTotalAppear 0.8s ease-out forwards;
            margin-bottom: 15px;
            overflow: visible;
            white-space: nowrap;
            max-width: none;
        }


        .total-display.show {
            opacity: 1;
            display: block;
        }

        .total-text {
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 2px;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            line-height: 1.0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .total-value {
            font-size: 20px;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            margin-bottom: 4px;
        }

        .close-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid #ff4444;
            color: #ff4444;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
            z-index: 1002;
            line-height: 1;
            text-shadow: none;
        }

        .close-btn:hover {
            background: #ff4444;
            color: white;
            transform: scale(1.15);
            box-shadow: 0 6px 16px rgba(255, 68, 68, 0.5);
        }

        .total-breakdown {
            margin-top: 8px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            font-size: 11px;
            height: auto;
            overflow: visible;
        }

        .total-breakdown.compact {
            margin-top: 6px;
            padding: 8px;
            font-size: 10px;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.6);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* Static Total Display */
        .simple-static-total {
            background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
            color: white;
            padding: 10px;
            margin: 10px 8px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            border: 2px solid #FFD700;
        }

        .simple-total-header {
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            line-height: 1.2;
            text-align: center;
            display: inline;
        }

        .simple-total-value {
            font-size: 24px;
            font-weight: bold;
            color: #FFD700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            margin-bottom: 12px;
            text-align: center;
            display: inline;
            margin-left: 6px;
        }

        .simple-total-container {
            text-align: center;
            margin-bottom: 8px;
        }

        .simple-breakdown-section {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
            line-height: 2.0;
            font-size: 11px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            color: white;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .simple-number {
            display: inline-block;
            font-weight: bold;
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            opacity: 0;
            transform: scale(2.0);
            animation: lightNumberAppear 0.8s ease-out forwards;
            padding: 3px 5px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: 1px solid rgba(255, 255, 255, 0.4);
            margin: 1px 2px;
            min-width: 18px;
            height: 18px;
            text-align: center;
            line-height: 12px;
            font-size: 9px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .simple-number:nth-child(21n+1) { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .simple-number:nth-child(21n+2) { 
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
        }
        .simple-number:nth-child(21n+3) { 
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
        }
        .simple-number:nth-child(21n+4) { 
            background: linear-gradient(135deg, #45b7d1 0%, #2980b9 100%);
        }
        .simple-number:nth-child(21n+5) { 
            background: linear-gradient(135deg, #96ceb4 0%, #27ae60 100%);
        }
        .simple-number:nth-child(21n+6) { 
            background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
        }
        .simple-number:nth-child(21n+7) { 
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
        }
        .simple-number:nth-child(21n+8) { 
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        }
        .simple-number:nth-child(21n+9) { 
            background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
        }
        .simple-number:nth-child(21n+10) { 
            background: linear-gradient(135deg, #ff8a80 0%, #ff80ab 100%);
        }
        .simple-number:nth-child(21n+11) { 
            background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
        }
        .simple-number:nth-child(21n+12) { 
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }
        .simple-number:nth-child(21n+13) { 
            background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
        }
        .simple-number:nth-child(21n+14) { 
            background: linear-gradient(135deg, #feada6 0%, #f5efef 100%);
        }
        .simple-number:nth-child(21n+15) { 
            background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
        }
        .simple-number:nth-child(21n+16) { 
            background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
        }
        .simple-number:nth-child(21n+17) { 
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        .simple-number:nth-child(21n+18) { 
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }
        .simple-number:nth-child(21n+19) { 
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }
        .simple-number:nth-child(21n+20) { 
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
        }
        .simple-number:nth-child(21n+21) { 
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        }

        .simple-plus {
            color: #FFD700;
            font-weight: inherit;
            margin: 0 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            font-size: inherit;
            display: inline;
            white-space: nowrap;
            opacity: 1;
        }

        .simple-plus.animated {
            opacity: 0;
            animation: lightSymbolAppear 0.5s ease-out forwards;
        }

        .simple-equals {
            color: #00FF7F;
            font-weight: inherit;
            margin: 0 3px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            font-size: inherit;
            display: inline;
            white-space: nowrap;
            opacity: 1;
        }

        .simple-equals.animated {
            opacity: 0;
            animation: lightSymbolAppear 0.6s ease-out forwards;
        }

        .simple-final-total {
            color: #FFD700;
            font-weight: bold;
            font-size: 16px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            text-decoration: underline;
            display: inline;
            padding: 2px 4px;
            border-radius: 4px;
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid #FFD700;
            margin: 0 2px;
            opacity: 1;
            white-space: nowrap;
            overflow: visible;
            max-width: none;
        }

        .simple-final-total.animated {
            opacity: 0;
            animation: lightTotalAppear 0.8s ease-out forwards;
        }

        .simple-calculation-container {
            padding: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            font-size: 11px;
            line-height: 2.2;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            word-spacing: 1px;
        }

        .loading {
            text-align: center;
            padding: 50px;
            font-size: 18px;
            color: white;
        }

        .error {
            background: #ff4444;
            color: white;
            padding: 10px;
            border-radius: 10px;
            margin: 10px 0;
            text-align: center;
        }

        .copyright-footer {
            text-align: center;
            padding: 15px 10px;
            margin-top: 20px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 12px;
            border-radius: 10px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.5s ease;
        }

        .copyright-footer.hide-during-calculation {
            display: none !important;
        }

        /* Custom scrollbar for preview content */
        .preview-content::-webkit-scrollbar {
            width: 8px;
        }
        
        .preview-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        .preview-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }
        
        .preview-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        /* Startup Animation Overlay with Colorful Card Rain Effect */
        .startup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
            z-index: 15000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 1;
            visibility: visible;
            transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            overflow: hidden;
        }

        .startup-overlay.hide {
            opacity: 0;
            visibility: hidden;
        }

        .startup-title {
            font-size: 48px;
            font-weight: bold;
            color: white;
            margin-bottom: 30px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
            animation: startupGlow 2s ease-in-out infinite alternate;
            text-align: center;
            z-index: 15002;
            position: relative;
        }


        .startup-subtitle {
            font-size: 24px;
            color: #FFD700;
            margin-bottom: 50px;
            text-align: center;
            font-style: italic;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            z-index: 15002;
            position: relative;
        }

        /* Enhanced Colorful Card Rain Effect */
        .rain-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 15001;
        }

        .rain-card {
            position: absolute;
            border-radius: 12px;
            padding: 8px 12px;
            font-size: 14px;
            font-weight: bold;
            color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.5);
            animation: rainFall linear infinite;
            font-family: 'Noto Sans Telugu', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Arabic', Arial, sans-serif;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .rain-card.color-1 { 
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-2 { 
            background: linear-gradient(135deg, #4ecdc4, #44a08d);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-3 { 
            background: linear-gradient(135deg, #45b7d1, #2980b9);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-4 { 
            background: linear-gradient(135deg, #96ceb4, #27ae60);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-5 { 
            background: linear-gradient(135deg, #feca57, #ff9ff3);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-6 { 
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-7 { 
            background: linear-gradient(135deg, #f093fb, #f5576c);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-8 { 
            background: linear-gradient(135deg, #4facfe, #00f2fe);
            border-left: 4px solid #fff; 
        }
        .rain-card.color-9 { 
            background: linear-gradient(135deg, #43e97b, #38f9d7);
            color: #333;
            border-left: 4px solid #333; 
        }
        .rain-card.color-10 { 
            background: linear-gradient(135deg, #fa709a, #fee140);
            color: #333;
            border-left: 4px solid #333; 
        }


        /* Welcome Popup */
        .welcome-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 16000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .welcome-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .welcome-popup {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
            border-radius: 25px;
            padding: 40px 50px;
            text-align: center;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.3);
            transform: scale(0.3) translateY(100px);
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            max-width: 90vw;
            position: relative;
            overflow: hidden;
        }

        .welcome-overlay.show .welcome-popup {
            transform: scale(1) translateY(0);
        }

        .welcome-popup::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s ease-in-out infinite;
        }

         .welcome-title {
            font-size: 48px;
            font-weight: bold;
            color: white;
            margin-bottom: 20px;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
            animation: welcomeGlow 2s ease-in-out infinite alternate;
            position: relative;
            z-index: 1;
        }

        .welcome-tagline {
            font-size: 18px;
            color: #FFD700;
            font-style: italic;
            line-height: 1.6;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            margin-bottom: 30px;
            position: relative;
            z-index: 1;
            animation: taglineFade 1s ease-in 0.5s both;
        }


        .welcome-symbols {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
            position: relative;
            z-index: 1;
        }

        .welcome-symbol {
            font-size: 24px;
            animation: symbolBounce 2s ease-in-out infinite;
            opacity: 0;
            animation-fill-mode: both;
        }

        .welcome-symbol:nth-child(1) { animation-delay: 1s; }
        .welcome-symbol:nth-child(2) { animation-delay: 1.2s; }
        .welcome-symbol:nth-child(3) { animation-delay: 1.4s; }
        .welcome-symbol:nth-child(4) { animation-delay: 1.6s; }
        .welcome-symbol:nth-child(5) { animation-delay: 1.8s; }
        .welcome-symbol:nth-child(6) { animation-delay: 2s; }

        /* Mobile responsive adjustments */
        @media screen and (max-width: 768px) {
            .text-input {
                font-size: 16px !important;
                height: 120px;
                padding: 12px;
            }
            
            .timer-input {
                font-size: 16px !important;
            }
            
            .container { 
                padding: 5px; 
            }
            
            .results-section {
                padding-top: 10px;
                min-height: 60vh; 
            }
            
            .results-section.fullscreen {
                padding-top: 10px;
                min-height: 80vh; 
            }
            
            .word-block { 
                margin: 4px;
                width: auto; 
                min-width: 55px; 
                max-width: 90vw;
            }
            
            .animation-controls { 
                gap: 4px;
                padding: 6px;
                flex-wrap: wrap; 
                justify-content: center; 
            }
            
            .animation-name { 
                font-size: 10px;
                letter-spacing: 0.2px;
            }
            
            .radio-custom { 
                width: 8px;
                height: 8px;
                margin-right: 3px;
            }
            
            .animation-option { 
                padding: 3px 6px;
            }
            
            .timer-group label { 
                font-size: 8px;
            }
            
            .timer-input { 
                width: 40px;
                font-size: 11px; 
            }
            
            .btn {
                padding: 8px 15px;
                font-size: 14px;
                min-width: 80px;
            }
            
            .button-group {
                gap: 8px;
            }
            
            .language-mapping-section {
                padding: 10px;
                margin-top: 10px;
            }
            
            .language-buttons {
                gap: 4px;
            }
            
            .language-btn {
                padding: 4px 8px;
                font-size: 10px;
                border-radius: 15px;
            }
            
            .language-mapping-label {
                font-size: 11px;
                padding: 3px 10px;
            }
            
            .additional-options {
                padding: 10px;
                margin-top: 10px;
            }
            
            .additional-label {
                font-size: 11px;
                padding: 3px 10px;
            }
            
            .additional-controls {
                flex-direction: column;
                gap: 6px;
            }
            
            .radio-group {
                justify-content: center;
                gap: 6px;
            }
            
            .radio-option {
                padding: 3px 6px;
                font-size: 10px;
            }
            
            .radio-custom-circle {
                width: 10px;
                height: 10px;
                margin-right: 3px;
            }
            
            .radio-name {
                font-size: 9px;
            }
            
            .delay-control {
                justify-content: center;
                padding: 4px 6px;
            }
            
            .delay-control label {
                font-size: 9px;
            }
            
            .reverse-ordinal-section {
                padding: 6px;
                margin-top: 8px;
            }
            
            .reverse-ordinal-label {
                font-size: 11px;
            }
            
            .reverse-ordinal-checkbox input[type="checkbox"] {
                width: 14px;
                height: 14px;
            }
            
            .input-section {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .timer-controls {
                gap: 8px;
                margin-bottom: 8px;
            }
            
            .additional-text-input {
                height: 70px !important;
                font-size: 12px;
            }

            .welcome-popup {
                padding: 30px 25px;
                border-radius: 20px;
            }
            
            .welcome-title {
                font-size: 36px;
                margin-bottom: 15px;
            }
            
            .welcome-tagline {
                font-size: 16px;
                margin-bottom: 20px;
            }
            
            .welcome-symbols {
                gap: 10px;
                margin-top: 20px;
            }
            
            .welcome-symbol {
                font-size: 20px;
            }

            /* Startup responsive */
            .startup-title {
                font-size: 32px;
            }

            .startup-subtitle {
                font-size: 18px;
            }

            .rain-card {
                font-size: 12px;
                padding: 6px 10px;
            }

            .alphabet-grid {
                grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
                gap: 8px;
            }
            
            .alphabet-card {
                padding: 8px 4px;
            }
            
            .alphabet-char {
                font-size: 18px;
            }
            
            .alphabet-value {
                font-size: 11px;
                padding: 2px 6px;
            }
            
            .language-modal {
                width: 95vw;
                height: 85vh;
            }
            
            .language-modal-header {
                padding: 12px 15px;
            }
            
            .language-modal-title {
                font-size: 16px;
            }
            
            .language-modal-content {
                padding: 15px;
            }
            
            /* Mobile adjustments for total display modal */
            .total-display {
                height: 65vh;
                max-height: 65vh;
            }

            .total-display.compact {
                height: 80vh;
                max-height: 80vh;
            }

            .total-display.large {
                height: 85vh;
                max-height: 85vh;
            }
        }

        @media (max-width: 480px) {
            .welcome-popup {
                padding: 25px 20px;
            }
            
            .welcome-title {
                font-size: 28px;
            }
            
            .welcome-tagline {
                font-size: 14px;
            }
            
            /* Extra mobile adjustments for total display modal */
            .total-display {
                height: 70vh;
                max-height: 70vh;
            }

            .total-display.compact {
                height: 85vh;
                max-height: 85vh;
            }

            .total-display.large {
                height: 90vh;
                max-height: 90vh;
            }
        }

        /* Language Selection in Welcome Popup */
        .language-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin: 30px 0;
            position: relative;
            z-index: 1;
        }

        .language-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            padding: 15px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            backdrop-filter: blur(10px);
        }

        .language-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .lang-flag {
            font-size: 28px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .lang-name {
            font-size: 14px;
            font-weight: 600;
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .welcome-message {
            font-size: 20px;
            color: #FFD700;
            line-height: 1.6;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            margin-bottom: 30px;
            position: relative;
            z-index: 1;
            animation: messageGlow 2s ease-in-out infinite alternate;
        }

        .continue-hint {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            position: relative;
            z-index: 1;
        }

        #countdown {
            font-weight: bold;
            color: #FFD700;
        }

        @keyframes messageGlow {
            0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 215, 0, 0.3); }
            100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.6); }
        }

        /* Responsive adjustments for language selection */
        @media (max-width: 768px) {
            .language-options {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .language-btn {
                padding: 12px 8px;
            }
            
            .lang-flag {
                font-size: 24px;
            }
            
            .lang-name {
                font-size: 12px;
            }
            
            .welcome-message {
                font-size: 18px;
            }
        }

        @media (max-width: 480px) {
            .language-options {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .language-btn {
                padding: 10px 6px;
            }
            
            .lang-flag {
                font-size: 20px;
            }
            
            .lang-name {
                font-size: 11px;
            }
            
            .welcome-message {
                font-size: 16px;
            }
        }
    </style>
