/* =========================================================
           WORD UNSCRAMBLER — HOMEPAGE DESIGN SYSTEM
           ========================================================= */

        .word-scrambler-wrap,
        .word-scrambler-wrap * {
            box-sizing: border-box;
        }

        .word-scrambler-wrap {
            --ws-green: #057a1b;
            --ws-green-dark: #046516;
            --ws-green-light: #0a9b2d;
            --ws-ink: #16344a;
            --ws-muted: #65798a;
            --ws-line: #dce7e0;
            --ws-soft: #f0f8f2;
            --ws-pale: #f7fbf8;
            --ws-gold: #ffc107;

            width: 100% !important;
            max-width: 100%;
            margin: 28px auto 40px;
            color: var(--ws-ink);
            font-family: inherit;
        }

        /* MAIN TOOL PANEL */
        .word-scrambler-form {
            position: relative;
            overflow: hidden;
            padding: 25px;
            border: 1px solid #cfe1d4 !important;
            border-radius: 16px !important;
            background: #ffffff !important;
            box-shadow: 0 8px 24px rgba(24, 62, 37, .05) !important;
        }

        .word-scrambler-form::before {
            content: "";
            position: absolute;
            width: 170px;
            height: 170px;
            right: -80px;
            top: -85px;
            border-radius: 50%;
            background: rgba(10, 155, 45, .06);
            pointer-events: none;
        }

        .word-scrambler-form > * {
            position: relative;
            z-index: 1;
        }

        .word-scrambler-field {
            margin-bottom: 17px;
        }

        .word-scrambler-field label {
            display: block;
            margin: 0 0 7px;
            color: var(--ws-ink);
            font-size: 13px;
            line-height: 1.4;
            font-weight: 800;
        }

        .word-scrambler-field input {
            width: 100%;
            min-height: 46px;
            padding: 11px 14px;
            border: 1px solid #cfe1d4 !important;
            border-radius: 10px !important;
            background: #fff !important;
            color: var(--ws-ink);
            font-family: inherit;
            font-size: 15px;
            outline: none;
            box-shadow: 0 2px 7px rgba(20, 50, 30, .025) !important;
            transition: border-color .18s ease, box-shadow .18s ease;
        }
		
		
    
        .word-scrambler-field select {
	    width: 100% !important;
    min-height: 46px;
    padding: 11px 14px !important;
    border: 1px solid #cfe1d4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--ws-ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 7px rgba(20, 50, 30, .025) !important;
    transition: border-color .18s ease, box-shadow .18s ease;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M0 0L6 8L12 0Z%22 fill=%22%23057a1b%22/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
   background-position: right 18px center !important;
   padding-right: 40px !important;
    background-size: 12px 8px !important;
    cursor: pointer;
}	
		
		
		

        .word-scrambler-field input::placeholder {
            color: #8a9aa6;
        }

        html body .word-scrambler-wrap .word-scrambler-form input[type="text"]:focus,
        html body .word-scrambler-wrap .word-scrambler-field input:focus,
        html body .word-scrambler-wrap .word-scrambler-field select:focus {
            border-color: var(--ws-green) !important;
            box-shadow: 0 0 0 3px rgba(5, 122, 27, .10) !important;
        }

        /* ACTIONS */
        .word-scrambler-action-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 4px;
        }

        .word-scrambler-button,
        .word-scrambler-advanced-toggle {
            width: 100%;
            min-height: 45px;
            padding: 10px 14px !important;
            border-radius: 10px !important;
            font-family: inherit;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            cursor: pointer;
            box-sizing: border-box;
            transition: .18s ease;
        }

        .word-scrambler-button {
            border: 1px solid var(--ws-green) !important;
            background: var(--ws-green) !important;
            color: #fff !important;
            box-shadow: 0 5px 12px rgba(5, 122, 27, .16);
        }

        .word-scrambler-button:hover,
        .word-scrambler-button:focus,
        .word-scrambler-button:active {
            background: var(--ws-green-dark) !important;
            border-color: var(--ws-green-dark) !important;
            color: #fff !important;
            transform: translateY(-2px);
            outline: none;
        }

        .word-scrambler-advanced-toggle {
            border: 1px solid #cfe1d4 !important;
            background: #fff !important;
            color: var(--ws-green) !important;
            box-shadow: none !important;
        }

        .word-scrambler-advanced-toggle:hover,
        .word-scrambler-advanced-toggle:focus,
        .word-scrambler-advanced-toggle:active {
            background: var(--ws-soft) !important;
            border-color: #b8d8c0 !important;
            color: var(--ws-green-dark) !important;
            outline: none;
        }

        /* ADVANCED OPTIONS */
        .word-scrambler-advanced {
            display: none;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-top: 14px;
        }

        .word-scrambler-advanced.is-open {
            display: grid;
            padding-top: 14px;
            border-top: 1px solid #dce7e0;
        }

        /* RESULTS */
        .word-scrambler-results {
            margin-top: 25px;
        }

        .word-scrambler-results-title {
            position: relative;
			margin: 0 0 12px !important;
            padding: 0 0 0 15px !important;
            color: #303639 !important;
            font-size: 26px !important;
            line-height: 1.25 !important;
            font-weight: 900 !important;
        }

		
		

        .word-scrambler-results-title::before {
            content: "" !important;
            position: absolute !important;
            left: 0 !important;
            top: 1px !important;
            width: 5px !important;
            height: calc(100% - 8px) !important;
            border-radius: 99px !important;
            background: #057a1b !important;
        }

        .word-scrambler-count {
            margin: 0 0 14px;
            color: #303639 !important;
            font-size: 13px;
            line-height: 1.5;
            font-weight: 700;
        }

        /*
         * Result groups intentionally use no colored header background.
         * The old red header treatment has been replaced with the same
         * clean white/light-green language used by the homepage.
         */
        .word-scrambler-group {
            position: relative;
            overflow: hidden;
            margin-bottom: 16px;
            background: #fff;
            border: 1px solid var(--ws-line) !important;
            border-radius: 15px !important;
            box-shadow: 0 4px 15px rgba(20, 50, 30, .035);
        }

        .word-scrambler-group h2.word-scrambler-group-title {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin: 0 !important;
            padding: 13px 16px 13px 18px !important;
            background: #f7fbf8 !important;
            border: 0 !important;
            border-bottom: 1px solid #dce7e0 !important;
            color: var(--ws-ink) !important;
            font-size: 15px;
            line-height: 1.3;
            font-weight: 900;
        }

        

        .word-scrambler-group-title span:last-child {
            color: var(--ws-muted) !important;
            font-size: 11px;
            font-weight: 800;
            white-space: nowrap;
        }

        .word-scrambler-word-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0;
            padding: 16px;
            list-style: none;
        }

        .word-scrambler-word-list li {
            width: auto;
            margin: 0;
        }

        .word-scrambler-word {
            display: block;
            width: auto;
            padding: 8px 12px;
            border: 1px solid #cfe1d4 !important;
            border-radius: 9px !important;
            background: #f7fbf8 !important;
            color: #034c11 !important;
            font-family: inherit;
            font-size: 14px;
            line-height: 1.35;
            font-weight: 800;
            text-decoration: none !important;
            cursor: pointer;
            box-sizing: border-box;
            box-shadow: 0 2px 0 rgba(5, 122, 27, .04);
            transition: .16s ease;
        }

        .word-scrambler-word:hover,
        .word-scrambler-word:focus,
        .word-scrambler-word:active {
            background: #eaf7ed !important;
            border-color: #b8d8c0 !important;
            color: var(--ws-green-dark) !important;
            transform: translateY(-1px);
            outline: none;
        }

        .word-scrambler-word sub {
            color: #7c8e9a;
            font-size: 10px;
            font-weight: 800;
            margin-left: 3px;
            vertical-align: baseline;
        }

        .word-scrambler-blank {
            color: var(--ws-gold) !important;
            font-weight: 900;
        }

        /* EMPTY RESULTS */
        .word-scrambler-empty {
            padding: 20px;
            border: 1px solid #dce7e0;
            border-radius: 12px;
            background: #f7fbf8;
            color: var(--ws-muted);
            font-size: 13px;
            line-height: 1.5;
        }

        /* POPUP */
        .word-scrambler-popup {
            position: fixed !important;
            inset: 0;
            z-index: 99999 !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(8, 30, 16, .48) !important;
            color: #333 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .word-scrambler-popup-box {
            width: 100% !important;
            max-width: 360px;
            padding: 22px;
            border: 1px solid #dce7e0;
            border-radius: 16px;
            background: #fff !important;
            color: #333 !important;
            opacity: 1 !important;
            visibility: visible !important;
            box-shadow: 0 15px 50px rgba(0, 0, 0, .22) !important;
        }

        .word-scrambler-popup-word {
            margin: 0 0 18px !important;
            color: #16344a !important;
            font-size: 22px;
            line-height: 1.2;
            font-weight: 900;
            text-align: center;
        }

        .word-scrambler-popup-button {
            display: block !important;
            width: 100%;
            margin-top: 9px;
            min-height: 43px;
            padding: 11px 14px;
            border: 1px solid var(--ws-green);
            border-radius: 10px;
            background: #057a1b !important;
            color: #fff !important;
            opacity: 1 !important;
            visibility: visible !important;
            font-family: inherit;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            text-align: center;
            text-decoration: none !important;
            cursor: pointer;
            box-sizing: border-box;
            transition: .18s ease;
        }

        .word-scrambler-popup-button:hover,
        .word-scrambler-popup-button:focus {
            background: var(--ws-green-dark);
            border-color: var(--ws-green-dark);
            color: #fff !important;
            outline: none;
        }

        .word-scrambler-popup-close,
        .word-scrambler-popup-close:hover {
            background: #fff !important;
            border-color: #cfe1d4 !important;
            color: #057a1b !important;
        }

        /* MOBILE */
        @media (max-width: 600px) {
            .word-scrambler-wrap {
                margin: 22px auto 32px;
				padding: 0px;
            }

            .word-scrambler-form {
                padding: 18px;
                border-radius: 15px !important;
            }

            .word-scrambler-action-row {
                grid-template-columns: 1fr;
            }

            .word-scrambler-advanced {
                grid-template-columns: 1fr;
            }

            .word-scrambler-results-title {
                font-size: 22px !important;
                line-height: 1.3 !important;
            }

            .word-scrambler-group h2.word-scrambler-group-title {
                align-items: flex-start;
                flex-direction: column;
                gap: 3px;
                padding: 13px 14px 13px 17px !important;
            }

            .word-scrambler-word-list {
                gap: 7px;
                padding: 14px;
            }

            .word-scrambler-word {
                padding: 8px 10px;
                font-size: 13px;
            }

            .word-scrambler-popup {
                padding: 15px;
            }

            .word-scrambler-popup-box {
                padding: 18px;
            }
        }
