.lwl-lexicongrove__tt-modal {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    place-items: center;
    --lwl-tt-gold: rgba(216, 186, 103, 0.72);
    --lwl-tt-violet: rgba(145, 110, 255, 0.26);
    --lwl-tt-teal: rgba(96, 198, 255, 0.24);
}

.lwl-lexicongrove__tt-modal[hidden] {
    display: none;
}

.lwl-lexicongrove__tt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 16, 0.72);
    backdrop-filter: blur(4px);
}

.lwl-lexicongrove__tt-panel {
    position: relative;
    width: var(--lwl-grove-frame-width, min(1040px, 94vw));
    height: var(--lwl-grove-frame-height, min(760px, 88vh));
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(128, 179, 255, 0.28);
    background: linear-gradient(180deg, var(--bg-1, rgba(15, 19, 30, 0.94)), var(--bg-2, rgba(9, 12, 22, 0.96)));
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48), 0 0 28px rgba(120, 170, 255, 0.18);
    color: #ebf1ff;
    animation: lwl_lexicongrove_tt_panel_in 260ms cubic-bezier(0.23, 0.83, 0.2, 1);
}

.lwl-lexicongrove__tt-panel.lwl-tt-stage {
    --bg-1: rgba(15, 19, 30, 0.94);
    --bg-2: rgba(9, 12, 22, 0.96);
    --bg-3: rgba(118, 86, 255, 0.28);
    --bg-4: rgba(90, 195, 255, 0.2);
    --bg-vignette: rgba(3, 6, 13, 0.52);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.lwl-lexicongrove__tt-panel.lwl-tt-stage.lwl-bg--dawn {
    --bg-1: rgba(255, 251, 242, 0.96);
    --bg-2: rgba(239, 229, 206, 0.97);
    --bg-3: rgba(234, 189, 115, 0.26);
    --bg-4: rgba(147, 198, 255, 0.22);
    --bg-vignette: rgba(68, 49, 16, 0.16);
}

.lwl-lexicongrove__tt-panel.lwl-tt-stage.lwl-bg--night {
    --bg-1: rgba(15, 19, 30, 0.94);
    --bg-2: rgba(9, 12, 22, 0.96);
    --bg-3: rgba(118, 86, 255, 0.28);
    --bg-4: rgba(90, 195, 255, 0.2);
    --bg-vignette: rgba(3, 6, 13, 0.52);
}

.lwl-lexicongrove__tt-panel.lwl-tt-stage.lwl-bg--aurora {
    --bg-1: rgba(8, 23, 34, 0.95);
    --bg-2: rgba(7, 15, 29, 0.96);
    --bg-3: rgba(85, 231, 206, 0.24);
    --bg-4: rgba(133, 98, 255, 0.2);
    --bg-vignette: rgba(3, 8, 19, 0.46);
}

.lwl-lexicongrove__tt-panel::before,
.lwl-lexicongrove__tt-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lwl-lexicongrove__tt-panel::before {
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(140% 120% at 14% 12%, var(--bg-3, rgba(118, 86, 255, 0.28)), transparent 58%),
        radial-gradient(130% 115% at 86% 84%, var(--bg-4, rgba(90, 195, 255, 0.2)), transparent 62%),
        radial-gradient(110% 88% at 54% -8%, rgba(255, 255, 255, 0.16), transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
        radial-gradient(180% 140% at 50% 50%, transparent 58%, var(--bg-vignette, rgba(3, 6, 13, 0.52)) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0px,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 0.74;
    transform: scale(1.03);
    transform-origin: center;
    animation: lwl_lexicongrove_tt_liquid_shift 52s ease-in-out infinite alternate;
}

.lwl-lexicongrove__tt-panel::after {
    inset: 1px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 38%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lwl-lexicongrove__tt-header {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 0;
}

.lwl-lexicongrove__tt-title-wrap {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: clamp(8px, 1.3vw, 12px) clamp(18px, 2.4vw, 30px);
    border-radius: 16px;
    border: 1px solid rgba(214, 226, 246, 0.22);
    background:
        radial-gradient(120% 130% at 22% 18%, rgba(186, 157, 255, 0.24), transparent 56%),
        radial-gradient(130% 120% at 84% 78%, rgba(159, 171, 204, 0.16), transparent 64%),
        linear-gradient(150deg, rgba(11, 13, 20, 0.95), rgba(26, 20, 43, 0.9) 42%, rgba(9, 11, 18, 0.96));
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 34px rgba(160, 127, 240, 0.1);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.lwl-lexicongrove__tt-title-wrap::before,
.lwl-lexicongrove__tt-title-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lwl-lexicongrove__tt-title-wrap::before {
    background:
        radial-gradient(140% 90% at 50% -10%, rgba(243, 246, 255, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 52%);
    opacity: 0.62;
}

.lwl-lexicongrove__tt-title-wrap::after {
    width: 36%;
    left: -44%;
    background: linear-gradient(112deg, transparent 10%, rgba(232, 239, 255, 0.22) 48%, transparent 88%);
    mix-blend-mode: screen;
    opacity: 0.36;
    transform: skewX(-18deg);
    animation: lwl_lexicongrove_tt_title_glimmer 8.2s ease-in-out infinite;
}

.lwl-lexicongrove__tt-kicker {
    position: relative;
    z-index: 1;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(210, 216, 239, 0.9);
    text-shadow: 0 0 10px rgba(184, 164, 239, 0.22);
}

.lwl-lexicongrove__tt-title {
    position: relative;
    z-index: 1;
    margin: 2px 0 0;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(240, 245, 255, 0.98);
    text-shadow: 0 0 16px rgba(171, 181, 245, 0.18), 0 0 24px rgba(199, 212, 255, 0.12);
}

.lwl-lexicongrove__tt-close,
.lwl-lexicongrove__tt-back,
.lwl-lexicongrove__tt-pill {
    border: 1px solid rgba(142, 188, 255, 0.35);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(35, 47, 72, 0.96), rgba(24, 31, 46, 0.98));
    color: #e8efff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lwl-lexicongrove__tt-back {
    grid-column: 1;
    justify-self: start;
}

.lwl-lexicongrove__tt-close {
    grid-column: 3;
    justify-self: end;
}

.lwl-lexicongrove__tt-close,
.lwl-lexicongrove__tt-back {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lwl-lexicongrove__tt-close:hover,
.lwl-lexicongrove__tt-close:focus-visible,
.lwl-lexicongrove__tt-back:hover,
.lwl-lexicongrove__tt-back:focus-visible,
.lwl-lexicongrove__tt-pill:hover,
.lwl-lexicongrove__tt-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(108, 178, 255, 0.35), 0 0 18px rgba(145, 110, 255, 0.2);
    outline: none;
}

.lwl-lexicongrove__tt-close:active,
.lwl-lexicongrove__tt-back:active,
.lwl-lexicongrove__tt-pill:active {
    transform: translateY(1px);
}

.lwl-lexicongrove__tt-body {
    padding: 14px 18px 16px;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lwl-lexicongrove__tt-footer {
    display: flex;
    justify-content: flex-start;
    padding: 0 18px 16px;
}

.lwl-lexicongrove__tt-back {
    font-weight: 600;
}

.lwl-lexicongrove__tt-step {
    display: grid;
    gap: 14px;
}

.lwl-lexicongrove__tt-step--difficulty {
    min-height: clamp(360px, 62vh, 560px);
    align-content: center;
    gap: 16px;
}

.lwl-lexicongrove__tt-menu-screen {
    min-height: 0;
    align-content: start;
    justify-items: center;
    padding-top: clamp(4px, 1.4vh, 14px);
}

.lwl-lexicongrove__tt-menu-info-card {
    width: min(820px, 100%);
    border: 1px solid rgba(166, 206, 255, 0.34);
    border-radius: 14px;
    background:
        radial-gradient(140% 120% at 100% 0, rgba(126, 102, 230, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(20, 27, 43, 0.94), rgba(14, 20, 33, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px rgba(5, 10, 18, 0.28);
    padding: clamp(14px, 2.1vw, 20px) clamp(14px, 2.4vw, 24px);
    text-align: center;
}

.lwl-lexicongrove__tt-menu-title {
    margin: 0;
    font-size: clamp(21px, 2.2vw, 30px);
    font-weight: 650;
    letter-spacing: 0.02em;
    color: rgba(242, 248, 255, 0.98);
    text-shadow: 0 0 14px rgba(148, 191, 255, 0.16);
}

.lwl-lexicongrove__tt-menu-subtitle {
    margin: 8px 0 0;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.5;
    color: rgba(224, 236, 255, 0.92);
}

.lwl-lexicongrove__tt-step-title {
    margin: 2px 0 0;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
}

.lwl-lexicongrove__tt-step-sub {
    margin: 0;
    color: rgba(220, 232, 255, 0.84);
}

.lwl-lexicongrove__tt-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(820px, 100%);
}

.lwl-lexicongrove__tt-step--branch {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100%;
}

.lwl-lexicongrove__tt-world-grid {
    width: min(1020px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: stretch;
}

.lwl-lexicongrove__tt-world-card {
    --world-glow: #7cb8ff;
    --world-accent: #d7bc6d;
    --world-glow-rgb: 124, 184, 255;
    --world-accent-rgb: 215, 188, 109;
    border: 1px solid rgba(142, 188, 255, 0.35);
    border-radius: 14px;
    background:
        radial-gradient(140% 120% at 12% 8%, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(120% 110% at 88% 90%, rgba(40, 54, 78, 0.34), transparent 54%),
        repeating-linear-gradient(132deg, rgba(16, 22, 35, 0.94) 0 7px, rgba(13, 19, 30, 0.92) 7px 13px),
        linear-gradient(180deg, rgba(22, 30, 47, 0.98), rgba(14, 20, 32, 0.99));
    color: #eaf1ff;
    text-align: left;
    padding: 14px;
    min-height: 148px;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.22, 0.78, 0.2, 1), border-color 220ms ease, box-shadow 240ms ease;
}

.lwl-lexicongrove__tt-world-card > * {
    position: relative;
    z-index: 1;
}

.lwl-lexicongrove__tt-world-card::before,
.lwl-lexicongrove__tt-world-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.lwl-lexicongrove__tt-world-card::before {
    background:
        radial-gradient(110% 110% at 24% 20%, rgba(255, 255, 255, 0.11), transparent 58%),
        radial-gradient(120% 110% at 84% 76%, rgba(0, 0, 0, 0.3), transparent 60%),
        repeating-linear-gradient(161deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 8px),
        repeating-linear-gradient(27deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 13px),
        radial-gradient(140px 84px at 14% 74%, rgba(230, 236, 248, 0.12) 1px, transparent 8px),
        radial-gradient(180px 112px at 86% 24%, rgba(0, 0, 0, 0.22) 1px, transparent 9px);
    mix-blend-mode: soft-light;
    opacity: 0.24;
    filter: contrast(1.08) blur(0.2px);
}

.lwl-lexicongrove__tt-world-card::after {
    background:
        radial-gradient(150% 120% at 0% 100%, rgba(var(--world-glow-rgb), 0.68) 0%, transparent 62%),
        repeating-linear-gradient(153deg, rgba(var(--world-glow-rgb), 0.62) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(24deg, rgba(var(--world-glow-rgb), 0.42) 0 1px, transparent 1px 14px),
        linear-gradient(112deg, transparent 10%, rgba(var(--world-glow-rgb), 0.48) 46%, transparent 78%);
    background-size: 175% 175%, 200% 180%, 220% 190%, 180% 160%;
    background-position: -115% 125%, 0% 0%, 100% 100%, -120% 40%;
    opacity: 0;
    transform: translateX(-6%) scale(1.02);
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 6px rgba(var(--world-glow-rgb), 0.52));
    will-change: opacity, transform;
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 0.78, 0.2, 1), filter 320ms ease, background-position 420ms ease-out;
}

.lwl-lexicongrove__tt-world-card:hover,
.lwl-lexicongrove__tt-world-card:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(var(--world-accent-rgb), 0.74);
    box-shadow:
        inset 0 0 0 1px rgba(var(--world-accent-rgb), 0.44),
        0 0 16px rgba(var(--world-glow-rgb), 0.44),
        0 0 28px rgba(var(--world-glow-rgb), 0.32);
}

.lwl-lexicongrove__tt-world-card:hover::after,
.lwl-lexicongrove__tt-world-card:focus-visible::after {
    opacity: 0.46;
    transform: translateX(0) scale(1);
    filter: drop-shadow(0 0 12px rgba(var(--world-glow-rgb), 0.74));
    background-position: -22% 62%, 24% 14%, 84% 74%, -26% 34%;
}

.lwl-lexicongrove__tt-world-left {
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.lwl-lexicongrove__tt-world-title-wrap {
    min-height: 0;
    display: flex;
    align-items: center;
}

.lwl-lexicongrove__tt-world-title {
    font-size: clamp(19px, 1.55vw, 24px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.015em;
    color: rgba(242, 248, 255, 0.98);
    text-shadow: 0 0 12px rgba(148, 191, 255, 0.15);
}

.lwl-lexicongrove__tt-world-progress-wrap {
    min-height: 0;
    display: grid;
    align-content: center;
    gap: 8px;
}

.lwl-lexicongrove__tt-world-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.lwl-lexicongrove__tt-world-progress-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(185, 208, 245, 0.88);
}

.lwl-lexicongrove__tt-world-progress-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(232, 240, 255, 0.96);
}

.lwl-lexicongrove__tt-world-progress-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 37, 0.84);
    border: 1px solid rgba(123, 168, 236, 0.25);
}

.lwl-lexicongrove__tt-world-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(112, 174, 255, 0.88), rgba(214, 184, 104, 0.86));
    box-shadow: 0 0 12px rgba(126, 183, 255, 0.28), 0 0 10px rgba(212, 181, 104, 0.22);
    transition: width 260ms ease;
}

.lwl-lexicongrove__tt-world-media {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 138px;
    height: 116px;
    justify-self: end;
    border-radius: 18px 13px 19px 12px;
    overflow: hidden;
}

.lwl-lexicongrove__tt-world-img {
    width: 138px;
    height: 116px;
    object-fit: contain;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    animation: lwl_lexicongrove_tt_tome_fade_in 260ms ease-out forwards;
}

.lwl-lexicongrove__tt-world-placeholder {
    width: 138px;
    height: 116px;
    border-radius: 18px 13px 19px 12px;
    border: 1px dashed rgba(157, 193, 248, 0.24);
    background:
        radial-gradient(80% 80% at 50% 36%, rgba(124, 169, 237, 0.14), transparent 66%),
        linear-gradient(180deg, rgba(16, 22, 36, 0.68), rgba(12, 18, 29, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    opacity: 0.72;
}

@keyframes lwl_lexicongrove_tt_tome_fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lwl-lexicongrove__tt-world-img {
        animation: none;
        opacity: 1;
    }

    .lwl-lexicongrove__tt-title-wrap::after {
        animation: none;
        transform: skewX(-18deg);
        opacity: 0.12;
    }

    .lwl-lexicongrove__tt-world-card::after {
        animation: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .lwl-lexicongrove__tt-world-card:hover::after,
    .lwl-lexicongrove__tt-world-card:focus-visible::after {
        opacity: 0.3;
        transform: none;
    }
}

.lwl-lexicongrove__tt-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lwl-lexicongrove__tt-step-actions {
    min-height: 18px;
}

.lwl-lexicongrove__tt-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(820px, 100%);
}

.lwl-lexicongrove__tt-difficulty {
    border: 1px solid rgba(142, 188, 255, 0.35);
    border-radius: 14px;
    background:
        radial-gradient(120% 100% at 100% 0, rgba(121, 103, 216, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(28, 37, 58, 0.96), rgba(17, 23, 36, 0.98));
    color: #eaf1ff;
    text-align: left;
    padding: 14px;
    min-height: 108px;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 42%);
    align-items: center;
    gap: 10px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lwl-lexicongrove__tt-difficulty:hover,
.lwl-lexicongrove__tt-difficulty:focus-visible,
.lwl-lexicongrove__tt-difficulty.is-active {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(211, 182, 102, 0.75);
    box-shadow: 0 0 16px rgba(108, 178, 255, 0.26), 0 0 18px rgba(145, 110, 255, 0.18);
}

.lwl-lexicongrove__tt-difficulty-left {
    display: grid;
    align-content: center;
}

.lwl-lexicongrove__tt-difficulty-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.lwl-lexicongrove__tt-difficulty-sub {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: rgba(219, 231, 255, 0.86);
}

.lwl-lexicongrove__tt-difficulty-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 3px 0;
    overflow: visible;
}

.lwl-lexicongrove__tt-difficulty-img {
    width: 100%;
    max-width: 168px;
    max-height: 108px;
    object-fit: contain;
    pointer-events: none;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 10px rgba(8, 12, 22, 0.35));
    transition: transform 220ms ease, filter 220ms ease, opacity 180ms ease;
}

.lwl-lexicongrove__tt-difficulty--medium .lwl-lexicongrove__tt-difficulty-img {
    max-height: 96px;
}

.lwl-lexicongrove__tt-difficulty:hover .lwl-lexicongrove__tt-difficulty-img,
.lwl-lexicongrove__tt-difficulty:focus-visible .lwl-lexicongrove__tt-difficulty-img {
    transform: translateY(-2px) scale(1.03);
    filter:
        drop-shadow(0 7px 12px rgba(8, 12, 22, 0.38))
        drop-shadow(0 0 14px rgba(206, 176, 98, 0.32))
        drop-shadow(0 0 20px rgba(116, 184, 255, 0.22));
}

.lwl-lexicongrove__tt-step--size {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: clamp(360px, 62vh, 560px);
    gap: clamp(14px, 2.4vh, 22px);
}

.lwl-lexicongrove__tt-size-grid {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.lwl-lexicongrove__tt-size-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(142, 188, 255, 0.35);
    border-radius: 14px;
    background:
        radial-gradient(130% 110% at 100% 0, rgba(126, 102, 230, 0.19), transparent 58%),
        radial-gradient(120% 120% at 0 100%, rgba(72, 143, 235, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(28, 37, 58, 0.96), rgba(17, 23, 36, 0.98));
    color: #eaf1ff;
    min-height: clamp(124px, 18vh, 154px);
    padding: clamp(16px, 2vw, 22px);
    text-align: left;
    cursor: pointer;
    display: grid;
    align-content: center;
    gap: 8px;
    transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.lwl-lexicongrove__tt-size-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(140% 120% at 18% 12%, rgba(255, 255, 255, 0.14), transparent 58%),
        repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 9px);
    mix-blend-mode: soft-light;
    opacity: 0.22;
}

.lwl-lexicongrove__tt-size-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 26px rgba(0, 0, 0, 0.18);
}

.lwl-lexicongrove__tt-size-card:hover,
.lwl-lexicongrove__tt-size-card:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(211, 182, 102, 0.76);
    box-shadow: 0 0 0 1px rgba(211, 182, 102, 0.36), 0 14px 28px rgba(6, 10, 18, 0.35), 0 0 20px rgba(116, 184, 255, 0.24);
}

.lwl-lexicongrove__tt-size-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(226, 204, 134, 0.6), 0 14px 28px rgba(6, 10, 18, 0.35), 0 0 20px rgba(116, 184, 255, 0.24);
}

.lwl-lexicongrove__tt-size-card.is-active {
    border-color: rgba(222, 196, 116, 0.88);
    background:
        radial-gradient(130% 115% at 100% 0, rgba(146, 122, 244, 0.27), transparent 58%),
        radial-gradient(120% 120% at 0 100%, rgba(84, 170, 255, 0.2), transparent 60%),
        linear-gradient(180deg, rgba(30, 41, 64, 0.97), rgba(18, 25, 39, 0.99));
    box-shadow:
        0 0 0 1px rgba(222, 196, 116, 0.35),
        0 0 0 3px rgba(222, 196, 116, 0.16),
        inset 0 0 0 1px rgba(233, 216, 162, 0.2),
        inset 0 0 26px rgba(157, 118, 250, 0.16),
        0 14px 30px rgba(6, 11, 20, 0.38),
        0 0 22px rgba(116, 184, 255, 0.25);
}

.lwl-lexicongrove__tt-size-title,
.lwl-lexicongrove__tt-size-sub {
    position: relative;
    z-index: 1;
}

.lwl-lexicongrove__tt-size-title {
    display: block;
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(243, 248, 255, 0.98);
    text-shadow: 0 0 14px rgba(160, 198, 255, 0.22);
}

.lwl-lexicongrove__tt-size-sub {
    display: block;
    font-size: clamp(12px, 1.15vw, 14px);
    color: rgba(218, 233, 255, 0.86);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lwl-lexicongrove__tt-pill {
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.lwl-lexicongrove__tt-quiet-link {
    border: 0;
    background: transparent;
    color: rgba(202, 221, 255, 0.86);
    padding: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.lwl-lexicongrove__tt-quiet-link:hover,
.lwl-lexicongrove__tt-quiet-link:focus-visible {
    color: #f2f6ff;
    text-shadow: 0 0 10px rgba(122, 175, 255, 0.22);
    outline: none;
}

.lwl-lexicongrove__tt-loading {
    min-height: 260px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: rgba(206, 222, 255, 0.92);
    text-shadow: 0 0 14px rgba(119, 173, 255, 0.26);
}

.lwl-lexicongrove__tt-game {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    height: 100%;
    min-height: 0;
}

.lwl-lexicongrove__tt-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lwl-lexicongrove__tt-top-meta {
    display: grid;
    gap: 6px;
}

.lwl-lexicongrove__tt-branch,
.lwl-lexicongrove__tt-progress {
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(205, 224, 255, 0.88);
    text-shadow: 0 0 10px rgba(114, 168, 255, 0.2);
}

.lwl-lexicongrove__tt-game-grid-wrap {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(270px, 360px);
    gap: 12px;
    min-height: 0;
    align-items: stretch;
    flex: 1 1 auto;
}

.lwl-lexicongrove__tt-game-grid-wrap > *,
.lwl-lexicongrove__tt-side,
.lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-clue,
.lwl-lexicongrove__tt-clue-card,
.lwl-lexicongrove__tt-clue-face,
.lwl-lexicongrove__tt-clue-text {
    min-width: 0;
}

.lwl-lexicongrove__tt-grid {
    display: grid;
    column-gap: 3px;
    row-gap: 6px;
    width: min(100%, 640px);
    margin-inline: auto;
    background: rgba(18, 24, 38, 0.76);
    border: 1px solid rgba(132, 182, 255, 0.25);
    border-radius: 14px;
    padding: 8px;
    align-self: stretch;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 20px rgba(93, 154, 247, 0.08);
}

.lwl-lexicongrove__tt-cell {
    position: relative;
    min-width: 24px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121, 164, 235, 0.3);
    border-radius: 6px;
    background: rgba(21, 29, 46, 0.95);
    color: #f3f7ff;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lwl-lexicongrove__tt-cell.is-block {
    border-color: transparent;
    background: rgba(8, 12, 21, 0.72);
    cursor: default;
}

.lwl-lexicongrove__tt-grid .lwl-lexicongrove__tt-cell:hover:not(.is-block):not(.is-solved):not(.is-revealed),
.lwl-lexicongrove__tt-grid .lwl-lexicongrove__tt-cell:focus-visible:not(.is-block):not(.is-solved):not(.is-revealed),
.lwl-lexicongrove__tt-grid .lwl-lexicongrove__tt-cell:active:not(.is-block):not(.is-solved):not(.is-revealed),
.lwl-lexicongrove__tt-grid .lwl-lexicongrove__tt-cell.is-active:not(.is-block):not(.is-solved):not(.is-revealed) {
    background: rgba(21, 29, 46, 0.95);
    border-color: rgba(212, 175, 55, 0.68);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.52) inset,
        0 0 14px rgba(212, 175, 55, 0.25),
        0 0 28px rgba(212, 175, 55, 0.12);
    outline: none;
}

.lwl-lexicongrove__tt-grid .lwl-lexicongrove__tt-cell:active:not(.is-block):not(.is-solved):not(.is-revealed) {
    transform: scale(0.98);
}

.lwl-lexicongrove__tt-cell.is-solved {
    background: rgba(28, 50, 82, 0.92);
}

.lwl-lexicongrove__tt-cell.is-revealed {
    background: rgba(24, 43, 70, 0.9);
    border-color: rgba(133, 184, 255, 0.46);
}

.lwl-lexicongrove__tt-cell.is-typed .lwl-lexicongrove__tt-letter,
.lwl-lexicongrove__tt-letter.is-typed {
    color: rgba(224, 234, 255, 0.8);
}

.lwl-lexicongrove__tt-cell.is-cursor:not(.is-solved):not(.is-revealed) {
    border-color: rgba(219, 188, 96, 0.78);
    box-shadow:
        0 0 0 1px rgba(219, 188, 96, 0.56) inset,
        0 0 12px rgba(219, 188, 96, 0.26),
        0 0 20px rgba(148, 113, 255, 0.12);
    animation: lwl_lexicongrove_tt_cursor_pulse 1.25s ease-in-out infinite;
}

.lwl-lexicongrove__tt-cell.is-wrong {
    animation: lwl_lexicongrove_tt_wrong_shake 300ms ease, lwl_lexicongrove_tt_violet_pulse 300ms ease;
    border-color: rgba(181, 147, 230, 0.72);
}

.lwl-lexicongrove__tt-cell.is-wrong::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    border: 1px solid rgba(172, 132, 236, 0.42);
    box-shadow: 0 0 12px rgba(138, 110, 215, 0.24);
    pointer-events: none;
}

.lwl-lexicongrove__tt-cell.tt-word-solved {
    position: relative;
    z-index: 1;
}

.lwl-lexicongrove__tt-cell.tt-word-solved::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    border-top: 1px solid rgba(210, 220, 235, 0.65);
    border-bottom: 1px solid rgba(210, 220, 235, 0.65);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 10px rgba(210, 220, 235, 0.16),
        0 0 18px rgba(210, 220, 235, 0.1);
    pointer-events: none;
}

.lwl-lexicongrove__tt-cell.tt-word-solved-start::after {
    left: -3px;
    border-left: 1px solid rgba(210, 220, 235, 0.68);
    border-radius: 9px 0 0 9px;
}

.lwl-lexicongrove__tt-cell.tt-word-solved-end::after {
    right: -3px;
    border-right: 1px solid rgba(210, 220, 235, 0.68);
    border-radius: 0 9px 9px 0;
}

.lwl-lexicongrove__tt-cell.is-pop {
    animation: lwl_lexicongrove_tt_reveal_pop 420ms ease-out;
}

.lwl-lexicongrove__tt-grid.is-animating,
.lwl-lexicongrove__tt-word-list.is-animating {
    pointer-events: none;
}

.lwl-lexicongrove__tt-cell.anim-glow {
    border-color: var(--lwl-tt-gold);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.55) inset,
        0 0 14px rgba(212, 175, 55, 0.24),
        0 0 24px rgba(110, 189, 255, 0.16),
        0 0 28px rgba(146, 112, 255, 0.13);
    animation: lwl_lexicongrove_tt_cell_glow 460ms ease-out;
}

.lwl-lexicongrove__tt-cell.anim-bind-sweep {
    animation: lwl_lexicongrove_tt_bind_sweep 360ms ease-out;
}

.lwl-lexicongrove__tt-cell.anim-complete-sweep {
    animation: lwl_lexicongrove_tt_complete_sweep 520ms ease-out;
}

.lwl-lexicongrove__tt-grid.is-shimmer {
    animation: lwl_lexicongrove_tt_grid_shimmer 620ms ease-out;
}

.lwl-lexicongrove__tt-panel.is-completion-sparkle::before {
    opacity: 0.78;
    animation: lwl_lexicongrove_tt_completion_sparkle 820ms ease-out;
}

.lwl-lexicongrove__tt-letter.anim-fall-in {
    animation: lwl_lexicongrove_tt_fall_in 340ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

@keyframes lwl_lexicongrove_tt_reveal_pop {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
    }
    35% {
        box-shadow: 0 0 14px rgba(90, 196, 255, 0.42), 0 0 18px rgba(146, 112, 255, 0.32);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
    }
}

@keyframes lwl_lexicongrove_tt_cell_glow {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    45% {
        box-shadow:
            0 0 0 1px rgba(212, 175, 55, 0.58) inset,
            0 0 16px rgba(212, 175, 55, 0.28),
            0 0 26px rgba(110, 189, 255, 0.18),
            0 0 30px rgba(146, 112, 255, 0.16);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(212, 175, 55, 0.48) inset,
            0 0 10px rgba(212, 175, 55, 0.16),
            0 0 16px rgba(110, 189, 255, 0.1),
            0 0 18px rgba(146, 112, 255, 0.08);
    }
}

@keyframes lwl_lexicongrove_tt_fall_in {
    0% {
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
    }
    55% {
        transform: translateY(1px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes lwl_lexicongrove_tt_cursor_pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(219, 188, 96, 0.52) inset,
            0 0 10px rgba(219, 188, 96, 0.2),
            0 0 18px rgba(148, 113, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(219, 188, 96, 0.62) inset,
            0 0 15px rgba(219, 188, 96, 0.3),
            0 0 24px rgba(148, 113, 255, 0.16);
    }
}

@keyframes lwl_lexicongrove_tt_wrong_shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

@keyframes lwl_lexicongrove_tt_violet_pulse {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    45% {
        box-shadow:
            0 0 0 1px rgba(176, 145, 235, 0.45) inset,
            0 0 12px rgba(140, 104, 224, 0.24),
            0 0 18px rgba(104, 160, 236, 0.14);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes lwl_lexicongrove_tt_bind_sweep {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    35% {
        box-shadow:
            0 0 0 1px rgba(222, 193, 117, 0.54) inset,
            0 0 14px rgba(222, 193, 117, 0.28),
            0 0 20px rgba(110, 178, 245, 0.16);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(222, 193, 117, 0.15) inset,
            0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes lwl_lexicongrove_tt_complete_sweep {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(215, 224, 236, 0.72) inset,
            0 0 14px rgba(215, 224, 236, 0.24),
            0 0 22px rgba(161, 177, 214, 0.16);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(215, 224, 236, 0.24) inset,
            0 0 0 rgba(0, 0, 0, 0);
    }
}

.lwl-lexicongrove__tt-num {
    position: absolute;
    left: 2px;
    top: 1px;
    font-size: 9px;
    line-height: 1;
    color: rgba(170, 199, 255, 0.88);
}

.lwl-lexicongrove__tt-letter {
    font-size: clamp(11px, 1.05vw, 15px);
    font-weight: 700;
}

.lwl-lexicongrove__tt-side {
    display: grid;
    gap: 10px;
    grid-template-rows: 316px minmax(22px, auto) minmax(0, 1fr);
    align-content: stretch;
    min-height: 0;
    height: 100%;
    padding-inline: 10px;
    justify-items: center;
}

.lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-clue,
.lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-status,
.lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-word-list {
    width: 100%;
    max-width: 330px;
    margin-inline: auto;
}

.lwl-lexicongrove__tt-clue {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 96px;
    gap: 8px;
    height: 100%;
    min-height: 0;
}

.lwl-lexicongrove__tt-clue-card {
    position: relative;
    min-height: 0;
    height: 100%;
}

.lwl-lexicongrove__tt-clue-face {
    border: 1px solid rgba(124, 170, 238, 0.22);
    border-radius: 12px;
    background: rgba(15, 20, 34, 0.88);
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(6, 11, 20, 0.26);
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.lwl-lexicongrove__tt-clue-face::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 199, 118, 0.5), transparent);
    pointer-events: none;
}

.lwl-lexicongrove__tt-clue-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(165, 195, 255, 0.88);
}

.lwl-lexicongrove__tt-clue-text {
    margin-top: 6px;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.5;
    color: #eef3ff;
    text-wrap: pretty;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    overflow: hidden;
}

.lwl-lexicongrove__tt-clue-len {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(186, 206, 246, 0.84);
}

.lwl-lexicongrove__tt-clue-actions {
    min-height: 0;
    height: 100%;
}

.lwl-lexicongrove__tt-clue-unavailable {
    font-size: 12px;
    color: rgba(186, 206, 246, 0.8);
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.lwl-lexicongrove__tt-es-flashcard {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: block;
    cursor: pointer;
    perspective: 1100px;
    text-align: left;
}

.lwl-lexicongrove__tt-es-flashcard:focus-visible {
    outline: 2px solid rgba(181, 214, 255, 0.68);
    outline-offset: 2px;
    border-radius: 14px;
}

.lwl-lexicongrove__tt-es-flashcard-inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 320ms ease;
    height: 100%;
}

.lwl-lexicongrove__tt-es-flashcard.is-flipped .lwl-lexicongrove__tt-es-flashcard-inner {
    transform: rotateY(180deg);
}

.lwl-lexicongrove__tt-es-face {
    grid-area: 1 / 1;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 0;
    height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.lwl-lexicongrove__tt-es-face--front {
    border: 1px solid rgba(153, 193, 255, 0.3);
    background:
        radial-gradient(130% 110% at 100% 0, rgba(118, 100, 228, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(22, 30, 47, 0.96), rgba(15, 21, 35, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(6, 11, 20, 0.26);
}

.lwl-lexicongrove__tt-es-face--back {
    transform: rotateY(180deg);
    border: 1px solid rgba(216, 186, 103, 0.44);
    background:
        radial-gradient(135% 115% at 0% 0%, rgba(232, 199, 118, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(27, 34, 52, 0.97), rgba(16, 22, 36, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(224, 192, 114, 0.18),
        0 10px 24px rgba(6, 11, 20, 0.3);
}

.lwl-lexicongrove__tt-es-flashcard.is-sparkle .lwl-lexicongrove__tt-es-face--back {
    animation: lwl_lexicongrove_tt_es_sparkle 760ms ease-out;
}

.lwl-lexicongrove__tt-es-flashcard.is-sparkle .lwl-lexicongrove__tt-es-word {
    animation: lwl_lexicongrove_tt_es_word_pop 760ms ease-out;
}

.lwl-lexicongrove__tt-es-front-kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(178, 205, 246, 0.86);
}

.lwl-lexicongrove__tt-es-front-copy {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(235, 242, 255, 0.96);
}

.lwl-lexicongrove__tt-es-word {
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f6f0d7;
    text-shadow: 0 0 16px rgba(231, 202, 128, 0.24);
}

@keyframes lwl_lexicongrove_tt_es_sparkle {
    0% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 18px rgba(224, 192, 114, 0.18),
            0 10px 24px rgba(6, 11, 20, 0.3);
    }
    45% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            0 0 24px rgba(239, 212, 142, 0.36),
            0 0 40px rgba(168, 205, 255, 0.2),
            0 10px 24px rgba(6, 11, 20, 0.34);
    }
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 18px rgba(224, 192, 114, 0.18),
            0 10px 24px rgba(6, 11, 20, 0.3);
    }
}

@keyframes lwl_lexicongrove_tt_es_word_pop {
    0% {
        transform: translateY(2px) scale(0.98);
        opacity: 0.88;
        text-shadow: 0 0 12px rgba(231, 202, 128, 0.18);
    }
    50% {
        transform: translateY(0) scale(1.04);
        opacity: 1;
        text-shadow: 0 0 24px rgba(244, 218, 154, 0.34);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        text-shadow: 0 0 16px rgba(231, 202, 128, 0.24);
    }
}

.lwl-lexicongrove__tt-hidden-keyboard {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.lwl-lexicongrove__tt-status {
    min-height: 20px;
    font-size: 13px;
    transition: color 180ms ease, text-shadow 180ms ease;
}

.lwl-lexicongrove__tt-status.is-good {
    color: #a8f4cf;
    text-shadow: 0 0 12px rgba(145, 232, 195, 0.22);
}

.lwl-lexicongrove__tt-status.is-bad {
    color: #ffd4d4;
    text-shadow: 0 0 10px rgba(255, 175, 175, 0.18);
}

.lwl-lexicongrove__tt-word-list {
    display: grid;
    gap: 6px;
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding-inline: 2px;
}

.lwl-lexicongrove__tt-word {
    border: 1px solid rgba(114, 155, 230, 0.28);
    border-radius: 10px;
    background: rgba(16, 22, 36, 0.86);
    color: #e8efff;
    text-align: left;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 13px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lwl-lexicongrove__tt-word:hover,
.lwl-lexicongrove__tt-word:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(175, 205, 255, 0.55);
    box-shadow: 0 6px 16px rgba(18, 26, 44, 0.35), 0 0 12px rgba(122, 175, 255, 0.22);
    outline: none;
}

.lwl-lexicongrove__tt-word span {
    opacity: 0.78;
}

.lwl-lexicongrove__tt-word.is-active {
    border-color: rgba(168, 200, 255, 0.8);
    box-shadow: 0 0 12px rgba(120, 170, 255, 0.25);
}

.lwl-lexicongrove__tt-word.is-solved {
    color: #a8f4cf;
    border-color: rgba(120, 210, 170, 0.45);
}

.lwl-lexicongrove__tt-step--done {
    text-align: center;
    justify-items: center;
    position: relative;
}

.lwl-lexicongrove__tt-step--done::before {
    content: "";
    position: absolute;
    inset: -8px 20% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 199, 120, 0.62), transparent);
    animation: lwl_lexicongrove_tt_done_sheen 2.2s ease-in-out infinite;
}

.lwl-lexicongrove__tt-panel::-webkit-scrollbar,
.lwl-lexicongrove__tt-word-list::-webkit-scrollbar {
    width: 8px;
}

.lwl-lexicongrove__tt-panel::-webkit-scrollbar-track,
.lwl-lexicongrove__tt-word-list::-webkit-scrollbar-track {
    background: rgba(19, 25, 39, 0.44);
    border-radius: 999px;
}

.lwl-lexicongrove__tt-panel::-webkit-scrollbar-thumb,
.lwl-lexicongrove__tt-word-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(153, 189, 255, 0.68), rgba(111, 141, 215, 0.58));
}

@keyframes lwl_lexicongrove_tt_panel_in {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes lwl_lexicongrove_tt_title_glimmer {
    0%,
    65%,
    100% {
        transform: translateX(0) skewX(-18deg);
        opacity: 0;
    }
    72% {
        opacity: 0.28;
    }
    84% {
        transform: translateX(440%) skewX(-18deg);
        opacity: 0.18;
    }
}

@keyframes lwl_lexicongrove_tt_drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 6px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes lwl_lexicongrove_tt_liquid_shift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 0% 0%, 50% 50%, 0 0;
        transform: scale(1.03) translate3d(0, 0, 0);
    }
    50% {
        background-position: 8% 10%, 92% 90%, 52% -4%, 0% 0%, 50% 50%, 0 1px;
        transform: scale(1.04) translate3d(-4px, 2px, 0);
    }
    100% {
        background-position: 12% 14%, 88% 86%, 54% -8%, 0% 0%, 50% 50%, 0 0;
        transform: scale(1.05) translate3d(3px, -2px, 0);
    }
}

@keyframes lwl_lexicongrove_tt_grid_shimmer {
    0% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 20px rgba(93, 154, 247, 0.08);
    }
    45% {
        box-shadow:
            inset 0 0 0 1px rgba(220, 191, 112, 0.25),
            0 0 24px rgba(220, 191, 112, 0.18),
            0 0 30px rgba(101, 170, 255, 0.14);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 20px rgba(93, 154, 247, 0.08);
    }
}

@keyframes lwl_lexicongrove_tt_done_sheen {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

@keyframes lwl_lexicongrove_tt_completion_sparkle {
    0% {
        opacity: 0.2;
        filter: saturate(1);
    }
    40% {
        opacity: 0.8;
        filter: saturate(1.15);
    }
    100% {
        opacity: 0.45;
        filter: saturate(1);
    }
}

.lwl-lexicongrove__tt-complete-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 8;
    background: rgba(10, 14, 24, 0.42);
    backdrop-filter: blur(2px);
}

.lwl-lexicongrove__tt-complete-card {
    width: min(860px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(193, 214, 243, 0.42);
    background:
        radial-gradient(140% 100% at 100% 0, rgba(126, 102, 230, 0.2), transparent 54%),
        linear-gradient(180deg, rgba(20, 27, 43, 0.95), rgba(13, 18, 30, 0.97));
    box-shadow: 0 18px 34px rgba(3, 8, 16, 0.48), 0 0 20px rgba(176, 200, 242, 0.16);
    padding: 22px 22px 20px;
    text-align: center;
    animation: lwl_lexicongrove_tt_panel_in 180ms ease-out;
}

.lwl-lexicongrove__tt-complete-title {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 30px);
    letter-spacing: 0.03em;
    color: #f2f6ff;
    text-shadow: 0 0 18px rgba(200, 220, 255, 0.24);
}

.lwl-lexicongrove__tt-complete-text {
    margin: 10px auto 0;
    max-width: 58ch;
    line-height: 1.55;
    color: rgba(225, 236, 255, 0.92);
}

.lwl-lexicongrove__tt-complete-selected {
    margin-top: 14px;
    display: grid;
    justify-items: center;
}

.lwl-lexicongrove__tt-world-card--reward {
    width: min(740px, 100%);
    min-height: 184px;
    cursor: default;
    pointer-events: none;
}

.lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-title {
    font-size: clamp(22px, 2vw, 30px);
}

.lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-media {
    width: 166px;
    height: 132px;
}

.lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-img,
.lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-placeholder {
    width: 166px;
    height: 132px;
}

.lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-progress-wrap {
    position: relative;
}

.lwl-lexicongrove__tt-complete-gain {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(180, 239, 207, 0.98);
    text-shadow: 0 0 12px rgba(102, 226, 173, 0.35);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 200ms ease, transform 220ms ease;
}

.lwl-lexicongrove__tt-complete-gain.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lwl-lexicongrove__tt-complete-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lwl-lexicongrove__tt-complete-actions .lwl-lexicongrove__tt-pill {
    min-width: 188px;
}

@media (max-width: 900px) {
    .lwl-lexicongrove__tt-header {
        padding: 10px 12px 0;
    }

    .lwl-lexicongrove__tt-title-wrap {
        width: min(520px, calc(100% - 76px));
        border-radius: 14px;
        padding: 10px 14px;
    }

    .lwl-lexicongrove__tt-close {
        justify-self: end;
    }

    .lwl-lexicongrove__tt-world-grid {
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-world-card {
        min-height: 134px;
    }

    .lwl-lexicongrove__tt-world-title {
        font-size: clamp(18px, 5vw, 22px);
    }

    .lwl-lexicongrove__tt-difficulty-grid {
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-difficulty {
        grid-template-columns: minmax(0, 1fr) minmax(90px, 38%);
    }

    .lwl-lexicongrove__tt-difficulty-img {
        max-width: 144px;
        max-height: 96px;
    }

    .lwl-lexicongrove__tt-size-grid {
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-size-card {
        min-height: 116px;
    }

    .lwl-lexicongrove__tt-world-card--reward {
        min-height: 152px;
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-media {
        justify-self: start;
        width: 142px;
        height: 112px;
    }

    .lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-img,
    .lwl-lexicongrove__tt-world-card--reward .lwl-lexicongrove__tt-world-placeholder {
        width: 142px;
        height: 112px;
    }

    .lwl-lexicongrove__tt-complete-actions .lwl-lexicongrove__tt-pill {
        min-width: 100%;
    }

    .lwl-lexicongrove__tt-game-grid-wrap {
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-side {
        grid-template-rows: auto minmax(22px, auto) minmax(0, 1fr);
        justify-items: stretch;
        padding-inline: 0;
    }

    .lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-clue,
    .lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-status,
    .lwl-lexicongrove__tt-side > .lwl-lexicongrove__tt-word-list {
        max-width: 100%;
    }

    .lwl-lexicongrove__tt-clue {
        grid-template-rows: auto minmax(84px, auto);
        height: auto;
    }

    .lwl-lexicongrove__tt-clue-card,
    .lwl-lexicongrove__tt-clue-face,
    .lwl-lexicongrove__tt-clue-actions,
    .lwl-lexicongrove__tt-es-flashcard-inner,
    .lwl-lexicongrove__tt-es-face,
    .lwl-lexicongrove__tt-clue-unavailable {
        height: auto;
    }

    .lwl-lexicongrove__tt-es-face,
    .lwl-lexicongrove__tt-clue-unavailable {
        min-height: 84px;
    }

    .lwl-lexicongrove__tt-grid {
        width: 100%;
    }

    .lwl-lexicongrove__tt-pill-grid {
        grid-template-columns: 1fr;
    }

    .lwl-lexicongrove__tt-panel {
        width: var(--lwl-grove-frame-width, min(1040px, calc(100% - 10px)));
        height: var(--lwl-grove-frame-height, min(760px, 88vh));
        max-height: 88vh;
    }
}

@media (max-width: 640px) {
    .lwl-lexicongrove__tt-clue-face {
        padding: 9px 10px;
    }

    .lwl-lexicongrove__tt-clue-text {
        font-size: clamp(15px, 4.6vw, 18px);
        line-height: 1.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lwl-lexicongrove__tt-panel,
    .lwl-lexicongrove__tt-panel::before,
    .lwl-lexicongrove__tt-title-wrap::after,
    .lwl-lexicongrove__tt-cell,
    .lwl-lexicongrove__tt-letter,
    .lwl-lexicongrove__tt-word,
    .lwl-lexicongrove__tt-step--done::before {
        animation-duration: 120ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 80ms !important;
    }
}
