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

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

        .wordnet-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%;
            max-width: 780px;
            margin: 28px auto 40px;
            color: var(--ws-ink);
            font-family: inherit;
        }

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

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

        .wordnet-search > * {
            position: relative;
            z-index: 1;
        }

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

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

        .wordnet-search input[type="text"]::placeholder {
            color: #8a9aa6;
        }

        html body .wordnet-search input[type="text"]:focus,
        html body .wordnet-search input[type="text"]:focus-visible,
        html body .wordnet-search input[type="text"]:active {
            border-color: var(--ws-green) !important;
            box-shadow: 0 0 0 3px rgba(5, 122, 27, .10) !important;
        }

        /* ACTION */
        .wordnet-search button {
            width: 100%;
            min-height: 45px;
            margin-top: 17px;
            padding: 10px 14px !important;
            border: 1px solid var(--ws-green) !important;
            border-radius: 10px !important;
            background: var(--ws-green) !important;
            color: #fff !important;
            font-family: inherit;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            cursor: pointer;
            box-sizing: border-box;
            box-shadow: 0 5px 12px rgba(5, 122, 27, .16);
            transition: .18s ease;
        }

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

        /* RESULTS HEADING */
        .wordnet-results-title {
            position: relative;
            margin: 30px 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;
        }

        .wordnet-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;
        }

        .wordnet-count {
            margin: 0 0 14px !important;
            padding: 0 !important;
            color: #303639 !important;
            font-size: 12px;
            line-height: 1.5;
            font-weight: 700;
        }

        /* RESULT CARDS */
        .wordnet-card {
            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);
        }

        .wordnet-header {
            position: relative;
            margin: 0 !important;
            padding: 13px 16px 13px 18px !important;
            background: #f7fbf8 !important;
            border: 0 !important;
            border-bottom: 1px solid #dce7e0 !important;
        }

        .wordnet-header h2.wordnet-title {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin: 0 !important;
            padding: 0 !important;
            background: transparent !important;
            border: 0 !important;
            color: var(--ws-ink) !important;
            font-size: 15px;
            line-height: 1.3;
            font-weight: 900;
        }


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

        .wordnet-body {
            padding: 16px !important;
        }

        .wordnet-pos {
            margin-bottom: 22px;
        }

        .wordnet-pos:last-child {
            margin-bottom: 0;
        }

        .wordnet-pos-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 12px;
            color: var(--ws-ink);
            font-size: 15px;
            line-height: 1.3;
            font-weight: 900;
        }

        .wordnet-pos-title::before {
            content: "";
            width: 4px;
            height: 18px;
            flex: 0 0 4px;
            border-radius: 99px;
            background: var(--ws-green);
        }

        .wordnet-definitions {
            margin: 0;
            padding: 0;
            list-style: none;
            counter-reset: wordnet-counter;
        }

        .wordnet-definitions li {
            position: relative;
            margin: 0 0 10px;
            padding: 12px 14px 12px 45px;
            background: #f7fbf8;
            border: 1px solid #cfe1d4;
            border-radius: 9px;
            color: #34495e;
            font-size: 14px;
            line-height: 1.55;
            counter-increment: wordnet-counter;
        }

        .wordnet-definitions li:last-child {
            margin-bottom: 0;
        }

        .wordnet-definitions li::before {
            content: counter(wordnet-counter);
            position: absolute;
            left: 12px;
            top: 11px;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #eaf7ed;
            color: var(--ws-green);
            font-size: 11px;
            font-weight: 800;
        }

        /* DICTIONARY LIST */
        .wordnet-dictionary-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .wordnet-dictionary-list li {
            width: auto;
            margin: 0;
            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;
        }

        /* RELATED WORDS */
        .wordnet-related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0;
            padding: 0;
        }

        .wordnet-related-item {
            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;
            transition: .16s ease;
        }

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

        /* FOOTERS */
        .wordnet-source,
        .wordnet-lookup-footer {
            padding: 17px 16px;
            background: #f7fbf8;
            border-top: 1px solid #dce7e0;
            color: var(--ws-muted);
            font-size: 12px;
            line-height: 1.6;
        }

        .wordnet-source strong {
            color: var(--ws-ink);
        }

        .wordnet-source a,
        .wordnet-lookup-footer a {
            color: var(--ws-green) !important;
            font-weight: 800;
            text-decoration: none;
        }

        .wordnet-source a:hover,
        .wordnet-lookup-footer a:hover {
            text-decoration: underline;
        }

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

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

            .wordnet-search {
                padding: 18px;
                border-radius: 15px !important;
            }

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

            .wordnet-header h2.wordnet-title {
                align-items: flex-start;
                flex-direction: column;
                gap: 3px;
                padding: 0 !important;
            }

            .wordnet-body {
                padding: 14px !important;
            }

            .wordnet-definitions li {
                padding: 12px 12px 12px 43px;
            }

            .wordnet-source,
            .wordnet-lookup-footer {
                padding: 16px 14px;
            }
        }
