html.ll-wordset-game-run-modal-open,
body.ll-wordset-game-run-modal-open {
    overflow: hidden;
}

body.ll-tools-wordset-game-guard-active .ll-wordset-game-run-modal,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-run-modal *,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-stage,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-stage * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body.ll-tools-wordset-game-guard-active .ll-wordset-game-run-modal,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-run-modal__dialog,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-stage,
body.ll-tools-wordset-game-guard-active .ll-wordset-game-stage__canvas-wrap {
    overscroll-behavior: contain;
}

.ll-wordset-game-run-modal {
    --ll-wordset-game-run-pad: clamp(16px, 2.8vw, 28px);
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: var(--ll-wordset-game-run-pad);
}

.ll-wordset-game-run-modal[hidden] {
    display: none !important;
}

.ll-wordset-game-run-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.ll-wordset-game-run-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1220px);
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: grid;
    align-items: center;
    padding: 0;
}

.ll-wordset-game-run-modal__dialog .ll-wordset-game-stage {
    width: min(100%, 860px);
    max-width: 100%;
    max-height: calc(100dvh - (var(--ll-wordset-game-run-pad) * 2));
    margin: 0 auto;
}

.ll-wordset-game-run-modal__dialog .ll-wordset-game-stage[data-ll-wordset-active-game="speaking-practice"] {
    width: min(100%, 1080px);
    max-width: min(100%, 1080px);
}

.ll-wordset-games-page {
    --ll-games-ink: #0f172a;
    --ll-games-accent: #12233d;
    --ll-games-accent-hover: #0f172a;
    --ll-games-accent-strong: #171c2e;
    --ll-games-accent-soft: #f2f6fc;
    --ll-games-accent-soft-strong: #dde8f7;
    --ll-games-accent-border: rgba(18, 35, 61, 0.34);
    --ll-games-accent-border-strong: rgba(15, 23, 42, 0.42);
    --ll-games-accent-shadow: rgba(18, 35, 61, 0.24);
    --ll-games-accent-shadow-soft: rgba(18, 35, 61, 0.22);
    --ll-games-panel: #ffffff;
    --ll-games-line: rgba(15, 23, 42, 0.12);
    --ll-games-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
    --ll-games-canvas-bg: radial-gradient(circle at top, rgba(103, 232, 249, 0.18), transparent 34%), linear-gradient(180deg, #0f172a 0%, #12233d 46%, #171c2e 100%);
    width: 100%;
    max-width: var(--ll-wp-main-shell-max-width, 1100px);
    margin-inline: auto;
}

.ll-wordset-games-page [hidden] {
    display: none !important;
}

.ll-wordset-games-catalog {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.ll-wordset-game-card {
    flex: 0 1 460px;
    width: min(100%, 460px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--ll-games-line);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    box-shadow: var(--ll-games-shadow);
}

.ll-wordset-game-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 24px rgba(18, 35, 61, 0.28);
}

.ll-wordset-game-card[data-game-slug="bubble-pop"] .ll-wordset-game-card__icon {
    background: linear-gradient(180deg, #9addff 0%, #78cbf5 100%);
    color: #0f3b58;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 24px rgba(77, 161, 212, 0.26);
}

.ll-wordset-game-card__icon-svg {
    width: 30px;
    height: 30px;
}

.ll-wordset-game-card__body {
    min-width: 0;
}

.ll-wordset-game-card__title {
    margin: 0 0 6px;
    color: var(--ll-games-ink);
    font-size: clamp(1.16rem, 2.4vw, 1.45rem);
    line-height: 1.1;
}

.ll-wordset-game-card__description {
    margin: 0;
    color: rgba(15, 23, 42, 0.76);
    font-size: 0.98rem;
    line-height: 1.45;
}

.ll-wordset-game-card__status {
    margin: 10px 0 0;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.92rem;
}

.ll-wordset-game-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.ll-wordset-game-card__count {
    min-width: 56px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ll-games-ink);
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ll-wordset-game-card__launch,
.ll-wordset-game-stage__nav,
.ll-wordset-game-stage__control,
.ll-wordset-game-stage__overlay-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 14px;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.ll-wordset-game-card__launch {
    min-width: 120px;
    min-height: 46px;
    padding: 0 18px;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%);
    color: #fff !important;
    box-shadow: 0 12px 20px var(--ll-games-accent-shadow);
}

.ll-wordset-game-card__launch:hover,
.ll-wordset-game-card__launch:focus-visible {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%);
    outline: none;
}

.ll-wordset-game-card[data-game-slug="bubble-pop"] .ll-wordset-game-card__launch {
    background: linear-gradient(180deg, #9addff 0%, #78cbf5 100%);
    color: #0f3b58 !important;
    box-shadow: 0 12px 20px rgba(77, 161, 212, 0.24);
}

.ll-wordset-game-card[data-game-slug="bubble-pop"] .ll-wordset-game-card__launch:hover,
.ll-wordset-game-card[data-game-slug="bubble-pop"] .ll-wordset-game-card__launch:focus-visible {
    background: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%);
}

.ll-wordset-game-card__launch[disabled] {
    cursor: not-allowed;
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none;
}

.ll-wordset-games-login-window {
    margin-top: 22px;
}

.ll-wordset-game-stage {
    --ll-wordset-game-loader-track: #d3dbea;
    --ll-wordset-game-loader-fade: rgba(18, 35, 61, 0.22);
    --ll-wordset-game-loader-primary: #12233d;
    --ll-wordset-game-loader-secondary: #355178;
    --ll-wordset-game-loader-shadow: rgba(18, 35, 61, 0.34);
    --ll-wordset-game-loader-inner-ring: rgba(18, 35, 61, 0.3);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-width: min(100%, 760px, max(420px, calc(100vh - 180px)));
    margin-right: auto;
    margin-top: 16px;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.94));
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] {
    --ll-wordset-game-loader-track: #d7ecf8;
    --ll-wordset-game-loader-fade: rgba(120, 203, 245, 0.22);
    --ll-wordset-game-loader-primary: #4da1d4;
    --ll-wordset-game-loader-secondary: #9addff;
    --ll-wordset-game-loader-shadow: rgba(77, 161, 212, 0.34);
    --ll-wordset-game-loader-inner-ring: rgba(77, 161, 212, 0.3);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 26%),
        linear-gradient(180deg, rgba(235, 248, 255, 0.96), rgba(221, 240, 252, 0.94));
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__canvas-wrap {
    box-shadow:
        inset 0 0 0 1px rgba(143, 197, 228, 0.34),
        0 20px 42px rgba(102, 168, 209, 0.18);
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] .ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost) {
    background: linear-gradient(180deg, #9addff 0%, #78cbf5 100%);
    color: #0f3b58 !important;
    box-shadow: 0 12px 20px rgba(77, 161, 212, 0.24);
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] .ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):hover,
.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] .ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):focus-visible {
    background: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%);
}

.ll-wordset-game-stage__hud {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ll-wordset-game-stage__hud-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    gap: 10px;
}

.ll-wordset-game-stage__nav {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: var(--ll-games-ink) !important;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.ll-wordset-game-stage__nav:hover,
.ll-wordset-game-stage__nav:focus,
.ll-wordset-game-stage__nav:focus-visible,
.ll-wordset-game-stage__nav:active {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: var(--ll-games-ink) !important;
    border-color: rgba(15, 23, 42, 0.24);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    text-decoration: none !important;
    outline: none;
}

.ll-wordset-game-stage__nav--replay {
    min-width: auto;
    justify-content: center;
    padding: 8px 10px;
}

.ll-wordset-game-stage__nav--pause {
    min-width: 42px;
    justify-content: center;
    padding: 0;
}

.ll-wordset-game-stage__nav--pause.is-paused {
    color: var(--ll-games-accent-strong) !important;
    border-color: var(--ll-games-accent-border);
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-repeat-audio-ui {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-repeat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(29, 77, 153, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #1d4d99;
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-play-icon svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 18px;
    --bar-range: 16px;
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar {
    width: 5px;
    height: calc(var(--base, 12px) + var(--bar-range, 10px) * var(--level, 0));
    border-radius: 3px;
    background: #1d4d99;
    opacity: 1;
    transform-origin: center bottom;
    transition: height 0.18s ease, opacity 0.18s ease;
}

.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar:nth-child(2) { --base: 14px; }
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar:nth-child(3) { --base: 11px; }
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar:nth-child(4) { --base: 16px; }
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar:nth-child(5) { --base: 13px; }
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer .bar:nth-child(6) { --base: 15px; }

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar,
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar {
    opacity: 1;
    animation: ll-audio-mini-eq 1s ease-in-out infinite;
}

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar:nth-child(2),
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar:nth-child(2) {
    animation-delay: 0.08s;
}

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar:nth-child(3),
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar:nth-child(3) {
    animation-delay: 0.15s;
}

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar:nth-child(4),
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar:nth-child(4) {
    animation-delay: 0.22s;
}

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar:nth-child(5),
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar:nth-child(5) {
    animation-delay: 0.28s;
}

.ll-wordset-games-page .ll-prompt-audio-button.playing .ll-audio-mini-visualizer:not(.ll-audio-mini-visualizer--js) .bar:nth-child(6),
.ll-wordset-games-page .ll-prompt-audio-button .ll-audio-mini-visualizer.active:not(.ll-audio-mini-visualizer--js) .bar:nth-child(6) {
    animation-delay: 0.34s;
}

@keyframes ll-audio-mini-eq {
    0% { transform: scaleY(0.7); }
    35% { transform: scaleY(1.35); }
    65% { transform: scaleY(0.9); }
    100% { transform: scaleY(1); }
}

.ll-wordset-game-stage__stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ll-wordset-game-stage__stat {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ll-games-ink);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ll-wordset-game-stage__stat-icon {
    color: var(--ll-games-accent-strong);
    font-size: 1rem;
}

.ll-wordset-game-stage__canvas-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--ll-games-canvas-bg);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.ll-wordset-game-stage__canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    touch-action: none;
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__canvas {
    cursor: pointer;
    touch-action: manipulation;
}

.ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__controls {
    display: none;
}

.ll-wordset-game-stage__controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ll-wordset-game-stage__control {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, #eef4f8 100%);
    color: var(--ll-games-ink) !important;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.07);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.ll-wordset-game-stage__control-icon,
.ll-wordset-game-stage__control-fire-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ll-wordset-game-stage__control-arrow {
    width: 28px;
    height: 28px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ll-wordset-game-stage__control-fire-stack {
    flex-direction: column;
    gap: 7px;
}

.ll-wordset-game-stage__control-burst {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.ll-wordset-game-stage__control-keycap {
    min-width: 42px;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ll-wordset-game-stage__control-keycap-bar {
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
}

.ll-wordset-game-stage__control:hover,
.ll-wordset-game-stage__control:focus-visible,
.ll-wordset-game-stage__control.is-active {
    background: linear-gradient(180deg, var(--ll-games-accent-soft) 0%, var(--ll-games-accent-soft-strong) 100%);
    border-color: var(--ll-games-accent-border);
    color: var(--ll-games-accent) !important;
    outline: none;
}

.ll-wordset-game-stage__control--fire {
    min-height: 62px;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%);
    border-color: var(--ll-games-accent-border);
    color: #fff !important;
}

.ll-wordset-game-stage__control--fire:hover,
.ll-wordset-game-stage__control--fire:focus-visible,
.ll-wordset-game-stage__control--fire.is-active {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%);
    border-color: var(--ll-games-accent-border-strong);
    color: #fff !important;
}

.ll-wordset-game-stage__overlay {
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.ll-wordset-game-stage__loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
}

.ll-wordset-game-stage__loading-animation.ll-tools-loading-animation {
    position: relative;
    display: block;
    width: 74px;
    height: 74px;
    margin: 0;
    order: 0;
    border: none;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--ll-wordset-game-loader-track) 0deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    box-shadow: none;
    transform: translateZ(0);
    animation: none;
    overflow: visible;
    pointer-events: none;
}

.ll-wordset-game-stage__loading-animation.ll-tools-loading-animation::before,
.ll-wordset-game-stage__loading-animation.ll-tools-loading-animation::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ll-wordset-game-stage__loading-animation.ll-tools-loading-animation::before {
    inset: 0;
    background: conic-gradient(
        from 8deg,
        transparent 0deg 236deg,
        var(--ll-wordset-game-loader-fade) 254deg,
        var(--ll-wordset-game-loader-primary) 286deg,
        var(--ll-wordset-game-loader-secondary) 316deg,
        transparent 346deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    filter: drop-shadow(0 0 8px var(--ll-wordset-game-loader-shadow));
    animation: ll-wordset-game-loader-segment-sweep 1.05s linear infinite;
}

.ll-wordset-game-stage__loading-animation.ll-tools-loading-animation::after {
    inset: 15px;
    border: 2px solid var(--ll-wordset-game-loader-inner-ring);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

@keyframes ll-wordset-game-loader-segment-sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ll-wordset-game-stage__overlay-card {
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    color: var(--ll-games-ink);
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

.ll-wordset-game-stage__overlay-title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    line-height: 1.1;
}

.ll-wordset-game-stage__overlay-summary {
    margin: 0;
    color: rgba(15, 23, 42, 0.76);
    font-size: 0.98rem;
    line-height: 1.45;
}

.ll-wordset-game-stage__overlay-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ll-wordset-game-stage__overlay-button {
    min-height: 46px;
    padding: 0 18px;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%);
    color: #fff !important;
    box-shadow: 0 12px 20px var(--ll-games-accent-shadow-soft);
}

.ll-wordset-game-stage__overlay-button:hover,
.ll-wordset-game-stage__overlay-button:focus-visible {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%);
    outline: none;
}

.ll-wordset-game-stage__overlay-button--ghost {
    background: #fff;
    color: var(--ll-games-ink) !important;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.ll-wordset-game-stage__overlay-button--ghost:hover,
.ll-wordset-game-stage__overlay-button--ghost:focus-visible {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.28);
}

/* Theme-resistant button hardening for front-end game controls. */
.ll-wordset-games-page button.ll-wordset-game-card__launch,
.ll-wordset-games-page button.ll-wordset-game-stage__nav,
.ll-wordset-games-page button.ll-wordset-game-stage__control,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    border-style: solid !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    vertical-align: middle !important;
}

.ll-wordset-games-page button.ll-wordset-game-card__launch {
    min-width: 120px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border-width: 1px !important;
    border-radius: 14px !important;
    border-color: transparent !important;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 20px var(--ll-games-accent-shadow) !important;
}

.ll-wordset-games-page button.ll-wordset-game-card__launch:hover,
.ll-wordset-games-page button.ll-wordset-game-card__launch:focus,
.ll-wordset-games-page button.ll-wordset-game-card__launch:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-card__launch:active {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    color: #fff !important;
    outline: none !important;
}

.ll-wordset-games-page [data-game-slug="bubble-pop"] button.ll-wordset-game-card__launch {
    background: linear-gradient(180deg, #9addff 0%, #78cbf5 100%) !important;
    background-image: linear-gradient(180deg, #9addff 0%, #78cbf5 100%) !important;
    color: #0f3b58 !important;
    box-shadow: 0 12px 20px rgba(77, 161, 212, 0.24) !important;
}

.ll-wordset-games-page [data-game-slug="bubble-pop"] button.ll-wordset-game-card__launch:hover,
.ll-wordset-games-page [data-game-slug="bubble-pop"] button.ll-wordset-game-card__launch:focus,
.ll-wordset-games-page [data-game-slug="bubble-pop"] button.ll-wordset-game-card__launch:focus-visible,
.ll-wordset-games-page [data-game-slug="bubble-pop"] button.ll-wordset-game-card__launch:active {
    background: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%) !important;
    background-image: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%) !important;
    color: #0f3b58 !important;
}

.ll-wordset-games-page button.ll-wordset-game-card__launch[disabled] {
    cursor: not-allowed !important;
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%) !important;
    background-image: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__nav {
    min-height: 42px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    border-width: 1px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    background-color: #eff6ff !important;
    background-image: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: rgba(29, 77, 153, 0.14) !important;
    box-shadow: 0 10px 20px rgba(29, 77, 153, 0.12) !important;
    color: var(--ll-games-ink) !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__nav:hover,
.ll-wordset-games-page button.ll-wordset-game-stage__nav:focus,
.ll-wordset-games-page button.ll-wordset-game-stage__nav:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-stage__nav:active {
    background: linear-gradient(180deg, #e0eeff 0%, #c7defd 100%) !important;
    background-color: #e0eeff !important;
    background-image: linear-gradient(180deg, #e0eeff 0%, #c7defd 100%) !important;
    border-color: rgba(29, 77, 153, 0.26) !important;
    box-shadow: 0 12px 22px rgba(29, 77, 153, 0.14) !important;
    color: var(--ll-games-ink) !important;
    outline: none !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__nav--replay {
    min-width: auto !important;
    justify-content: center !important;
    padding: 8px 10px !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__nav--pause {
    min-width: 42px !important;
    justify-content: center !important;
    padding: 0 !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__nav--pause.is-paused {
    color: var(--ll-games-accent-strong) !important;
    border-color: var(--ll-games-accent-border) !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__control {
    min-height: 56px !important;
    border-width: 1px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fff 0%, #eef4f8 100%) !important;
    background-image: linear-gradient(180deg, #fff 0%, #eef4f8 100%) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.07) !important;
    color: var(--ll-games-ink) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__control:hover,
.ll-wordset-games-page button.ll-wordset-game-stage__control:focus,
.ll-wordset-games-page button.ll-wordset-game-stage__control:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-stage__control:active,
.ll-wordset-games-page button.ll-wordset-game-stage__control.is-active {
    background: linear-gradient(180deg, var(--ll-games-accent-soft) 0%, var(--ll-games-accent-soft-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent-soft) 0%, var(--ll-games-accent-soft-strong) 100%) !important;
    border-color: var(--ll-games-accent-border) !important;
    color: var(--ll-games-accent) !important;
    outline: none !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__control--fire {
    min-height: 62px !important;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    border-color: var(--ll-games-accent-border) !important;
    color: #fff !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__control--fire:hover,
.ll-wordset-games-page button.ll-wordset-game-stage__control--fire:focus,
.ll-wordset-games-page button.ll-wordset-game-stage__control--fire:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-stage__control--fire:active,
.ll-wordset-games-page button.ll-wordset-game-stage__control--fire.is-active {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    border-color: var(--ll-games-accent-border-strong) !important;
    color: #fff !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button {
    min-height: 46px !important;
    padding: 0 18px !important;
    border-width: 1px !important;
    border-radius: 14px !important;
    border-color: transparent !important;
    background: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent) 0%, var(--ll-games-accent-strong) 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 20px var(--ll-games-accent-shadow-soft) !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button:hover,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button:focus,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button:active {
    background: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    background-image: linear-gradient(180deg, var(--ll-games-accent-hover) 0%, var(--ll-games-accent-strong) 100%) !important;
    color: #fff !important;
    outline: none !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button--ghost {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08) !important;
    color: var(--ll-games-ink) !important;
}

.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button--ghost:hover,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button--ghost:focus,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button--ghost:focus-visible,
.ll-wordset-games-page button.ll-wordset-game-stage__overlay-button--ghost:active {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    border-color: rgba(15, 23, 42, 0.28) !important;
    color: var(--ll-games-ink) !important;
}

.ll-wordset-games-page .ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] button.ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost) {
    background: linear-gradient(180deg, #9addff 0%, #78cbf5 100%) !important;
    background-image: linear-gradient(180deg, #9addff 0%, #78cbf5 100%) !important;
    color: #0f3b58 !important;
    box-shadow: 0 12px 20px rgba(77, 161, 212, 0.24) !important;
}

.ll-wordset-games-page .ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] button.ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):hover,
.ll-wordset-games-page .ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] button.ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):focus,
.ll-wordset-games-page .ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] button.ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):focus-visible,
.ll-wordset-games-page .ll-wordset-game-stage[data-ll-wordset-active-game="bubble-pop"] .ll-wordset-game-stage__overlay[data-ll-wordset-game-overlay-mode="paused"] button.ll-wordset-game-stage__overlay-button:not(.ll-wordset-game-stage__overlay-button--ghost):active {
    background: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%) !important;
    background-image: linear-gradient(180deg, #a7e2ff 0%, #68bde8 100%) !important;
    color: #0f3b58 !important;
}

.ll-wordset-game-card[data-game-slug="speaking-practice"] .ll-wordset-game-card__icon {
    background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
    color: #fff7ed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 24px rgba(194, 65, 12, 0.24);
}

.ll-wordset-game-card[data-game-slug="speaking-practice"] .ll-wordset-game-card__launch {
    background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
    box-shadow: 0 12px 20px rgba(194, 65, 12, 0.24);
}

.ll-wordset-game-card[data-game-slug="speaking-practice"] .ll-wordset-game-card__launch:hover,
.ll-wordset-game-card[data-game-slug="speaking-practice"] .ll-wordset-game-card__launch:focus-visible {
    background: linear-gradient(180deg, #f7ad24 0%, #b45309 100%);
}

.ll-wordset-game-stage[data-ll-wordset-active-game="speaking-practice"] {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.96));
    overflow-y: auto;
    max-width: min(100%, 1160px);
}

.ll-wordset-game-stage[data-ll-wordset-active-game="speaking-practice"] .ll-wordset-game-stage__nav--pause {
    display: none !important;
}

.ll-wordset-speaking-stage {
    display: grid;
    grid-template-columns: minmax(0, clamp(220px, 24vw, 290px)) minmax(320px, 1fr);
    grid-template-areas:
        "topline topline"
        "prompt meter"
        "prompt actions"
        "prompt result";
    gap: clamp(10px, 1.4vw, 14px);
    padding: clamp(6px, 1vw, 10px);
    align-content: start;
    align-items: start;
}

.ll-wordset-speaking-stage__topline {
    grid-area: topline;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ll-wordset-speaking-stage__round,
.ll-wordset-speaking-stage__status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(194, 65, 12, 0.14);
    color: #7c2d12;
    font-weight: 700;
}

.ll-wordset-speaking-stage__prompt-shell {
    grid-area: prompt;
    width: min(100%, clamp(220px, 24vw, 290px));
    justify-self: start;
    perspective: 1200px;
}

.ll-wordset-speaking-stage__prompt-card {
    min-height: clamp(150px, 20vh, 210px);
    display: grid;
    place-items: center;
    padding: clamp(12px, 1.8vw, 18px);
    border-radius: 22px;
    border: 1px solid rgba(194, 65, 12, 0.12);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
    box-shadow: 0 26px 60px rgba(124, 45, 18, 0.12);
    transform: translateX(0);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    overflow: hidden;
}

.ll-wordset-speaking-stage__prompt-card.is-entering {
    animation: ll-speaking-prompt-enter 380ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ll-wordset-speaking-stage__prompt-card.has-image {
    padding: 0;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.55);
}

.ll-wordset-speaking-stage__prompt-card.has-text {
    place-items: center;
}

.ll-wordset-speaking-stage__prompt-card[data-speaking-result="right"] {
    border-color: rgba(22, 163, 74, 0.32);
    box-shadow: 0 26px 60px rgba(22, 163, 74, 0.14);
}

.ll-wordset-speaking-stage__prompt-card[data-speaking-result="close"] {
    border-color: rgba(202, 138, 4, 0.32);
    box-shadow: 0 26px 60px rgba(202, 138, 4, 0.14);
}

.ll-wordset-speaking-stage__prompt-card[data-speaking-result="wrong"] {
    border-color: rgba(220, 38, 38, 0.28);
    box-shadow: 0 26px 60px rgba(220, 38, 38, 0.12);
}

.ll-wordset-speaking-stage__image-frame {
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    place-items: stretch;
}

.ll-wordset-speaking-stage__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ll-wordset-speaking-stage__text-prompt {
    width: 100%;
    display: grid;
    place-items: center;
}

.ll-wordset-speaking-stage__text {
    margin: 0;
    color: #7c2d12;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.08;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ll-wordset-speaking-stage__meter {
    grid-area: meter;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    min-height: 60px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(194, 65, 12, 0.12);
    box-shadow: 0 16px 34px rgba(124, 45, 18, 0.08);
}

.ll-wordset-speaking-stage__meter-bar {
    --ll-speaking-meter-level: 0.08;
    height: 100%;
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbbf24 0%, #ea580c 100%);
    transform-origin: center bottom;
    transform: scaleY(var(--ll-speaking-meter-level));
    transition: transform 80ms linear;
}

.ll-wordset-speaking-stage__actions,
.ll-wordset-speaking-stage__result-actions {
    display: flex;
    gap: 12px;
}

.ll-wordset-speaking-stage__actions {
    grid-area: actions;
    align-items: center;
    justify-content: flex-start;
}

.ll-wordset-speaking-stage__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(194, 65, 12, 0.2);
}

.ll-wordset-speaking-stage__action--record {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 999px;
    background: #e74c3c;
    background-image: none;
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.28);
}

.ll-wordset-speaking-stage__record-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.ll-wordset-speaking-stage__record-icon-svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor !important;
}

.ll-wordset-speaking-stage__action--record:hover:not([disabled]),
.ll-wordset-speaking-stage__action--record:focus-visible {
    background: #c0392b;
    background-image: none;
    transform: scale(1.05);
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="listening"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: ll-speaking-record-pulse 1.5s infinite;
    opacity: 1;
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="processing"] {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    background-image: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    box-shadow: 0 10px 22px rgba(19, 94, 150, 0.24);
    opacity: 1;
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="retry"] {
    background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
    background-image: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
    box-shadow: 0 14px 24px rgba(194, 65, 12, 0.2);
}

.ll-wordset-speaking-stage__action[disabled] {
    cursor: wait;
    opacity: 0.7;
    box-shadow: none;
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="listening"][disabled],
.ll-wordset-speaking-stage__action--record[data-speaking-state="processing"][disabled] {
    opacity: 1;
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="listening"][disabled] {
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.28);
}

.ll-wordset-speaking-stage__action--record[data-speaking-state="processing"][disabled] {
    box-shadow: 0 10px 22px rgba(19, 94, 150, 0.24);
}

.ll-wordset-speaking-stage__action--ghost {
    background: rgba(255, 255, 255, 0.8);
    color: #7c2d12;
    border-color: rgba(194, 65, 12, 0.16);
    box-shadow: none;
}

.ll-wordset-speaking-stage__result {
    grid-area: result;
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(194, 65, 12, 0.12);
    box-shadow: 0 18px 40px rgba(124, 45, 18, 0.08);
    align-self: start;
}

.ll-wordset-speaking-stage__comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ll-wordset-speaking-stage__comparison-card {
    min-height: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.9);
    border: 1px solid rgba(194, 65, 12, 0.12);
    display: grid;
    align-content: start;
    gap: 8px;
}

.ll-wordset-speaking-stage__comparison-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ll-wordset-speaking-stage__comparison-label {
    margin: 0;
    color: rgba(124, 45, 18, 0.7);
    font-size: 0.82rem;
    font-weight: 700;
}

.ll-wordset-speaking-stage__comparison-meta {
    margin: 0;
    color: rgba(124, 45, 18, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ll-wordset-speaking-stage__comparison-value {
    margin: 0;
    color: #431407;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
    white-space: pre-wrap;
}

.ll-wordset-speaking-stage__diff-fragment {
    display: inline;
    border-radius: 0.35em;
    padding: 0 0.08em;
}

.ll-wordset-speaking-stage__diff-fragment--heard {
    background: rgba(239, 68, 68, 0.18);
    box-shadow: inset 0 -0.08em 0 rgba(220, 38, 38, 0.28);
}

.ll-wordset-speaking-stage__diff-fragment--target {
    background: rgba(245, 158, 11, 0.18);
    box-shadow: inset 0 -0.08em 0 rgba(217, 119, 6, 0.24);
}

.ll-wordset-speaking-stage__audio-button {
    appearance: none;
    border: 1px solid rgba(194, 65, 12, 0.16) !important;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    box-shadow: 0 8px 18px rgba(29, 77, 153, 0.1) !important;
    -webkit-tap-highlight-color: transparent;
}

.ll-wordset-speaking-stage__audio-button .ll-repeat-icon-wrap {
    border: 1px solid rgba(29, 77, 153, 0.14);
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4d99 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 6px 14px rgba(29, 77, 153, 0.12);
}

.ll-wordset-speaking-stage__audio-button .ll-audio-mini-visualizer .bar {
    background: #1d4d99;
}

.ll-wordset-speaking-stage__audio-button:hover,
.ll-wordset-speaking-stage__audio-button:focus,
.ll-wordset-speaking-stage__audio-button:focus-visible,
.ll-wordset-speaking-stage__audio-button:active,
.ll-wordset-speaking-stage__icon-action:hover,
.ll-wordset-speaking-stage__icon-action:focus,
.ll-wordset-speaking-stage__icon-action:focus-visible,
.ll-wordset-speaking-stage__icon-action:active {
    outline: none;
}

.ll-wordset-speaking-stage__audio-button:hover,
.ll-wordset-speaking-stage__audio-button:focus-visible {
    border-color: rgba(29, 77, 153, 0.28) !important;
    box-shadow: 0 10px 22px rgba(29, 77, 153, 0.14) !important;
}

.ll-wordset-speaking-stage__icon-action:hover,
.ll-wordset-speaking-stage__icon-action:focus-visible {
    transform: translateY(-1px);
}

.ll-wordset-speaking-stage__scoreline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ll-wordset-speaking-stage__bucket,
.ll-wordset-speaking-stage__score {
    color: #7c2d12;
    font-weight: 800;
}

.ll-wordset-speaking-stage__bar-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(124, 45, 18, 0.08);
    overflow: hidden;
}

.ll-wordset-speaking-stage__bar-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #eab308 0%, #f59e0b 50%, #ea580c 100%);
    transition: width 220ms ease;
}

.ll-wordset-speaking-stage__prompt-card[data-speaking-result="right"] ~ .ll-wordset-speaking-stage__result .ll-wordset-speaking-stage__bar-fill,
.ll-wordset-speaking-stage__result .ll-wordset-speaking-stage__bar-fill.is-right {
    background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
}

.ll-wordset-speaking-stage__prompt-card[data-speaking-result="wrong"] ~ .ll-wordset-speaking-stage__result .ll-wordset-speaking-stage__bar-fill,
.ll-wordset-speaking-stage__result .ll-wordset-speaking-stage__bar-fill.is-wrong {
    background: linear-gradient(90deg, #fb7185 0%, #dc2626 100%);
}

.ll-wordset-speaking-stage__details {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.ll-wordset-speaking-stage__detail {
    display: grid;
    gap: 4px;
}

.ll-wordset-speaking-stage__detail dt {
    color: rgba(124, 45, 18, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
}

.ll-wordset-speaking-stage__detail dd {
    margin: 0;
    color: #431407;
    font-size: 0.94rem;
    font-weight: 700;
}

.ll-wordset-speaking-stage__result-actions {
    align-items: center;
    justify-content: flex-end;
}

.ll-wordset-speaking-stage__icon-action {
    appearance: none;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(29, 77, 153, 0.18);
    box-sizing: border-box;
    border-radius: 14px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4d99 100%) !important;
    background-color: #1d4d99 !important;
    background-image: linear-gradient(180deg, #2563eb 0%, #1d4d99 100%) !important;
    color: #eff6ff !important;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(29, 77, 153, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.ll-wordset-speaking-stage__icon-action--ghost {
    background: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    background-image: none !important;
    color: #1d4d99 !important;
    border-color: rgba(29, 77, 153, 0.18) !important;
    box-shadow: none;
}

.ll-wordset-speaking-stage__icon-action-svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none !important;
}

.ll-wordset-speaking-stage__icon-action-svg path,
.ll-wordset-speaking-stage__icon-action-svg circle,
.ll-wordset-speaking-stage__icon-action-svg line,
.ll-wordset-speaking-stage__icon-action-svg polyline {
    stroke: currentColor !important;
    fill: none !important;
}

@keyframes ll-speaking-record-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(231, 76, 60, 0.28);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 28px rgba(220, 38, 38, 0.34);
    }
}

@keyframes ll-speaking-prompt-enter {
    from {
        opacity: 0;
        transform: translate3d(36px, 0, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 860px) {
    .ll-wordset-game-card {
        flex-basis: 100%;
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ll-wordset-game-card__actions {
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .ll-wordset-speaking-stage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topline"
            "prompt"
            "meter"
            "actions"
            "result";
    }

    .ll-wordset-speaking-stage__prompt-shell {
        width: min(100%, 260px);
        justify-self: center;
    }

    .ll-wordset-speaking-stage__topline,
    .ll-wordset-speaking-stage__scoreline {
        flex-direction: column;
        align-items: flex-start;
    }

    .ll-wordset-speaking-stage__comparison {
        grid-template-columns: 1fr;
    }

    .ll-wordset-speaking-stage__details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ll-wordset-game-run-modal {
        --ll-wordset-game-run-pad: 0px;
        padding: 0;
    }

    .ll-wordset-game-run-modal__backdrop {
        backdrop-filter: none;
    }

    .ll-wordset-game-run-modal__dialog {
        width: 100%;
        height: 100dvh;
    }

    .ll-wordset-game-run-modal__dialog .ll-wordset-game-stage {
        max-width: 100%;
    }

    .ll-wordset-game-card {
        padding: 16px;
        gap: 14px;
    }

    .ll-wordset-game-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .ll-wordset-game-stage {
        padding: 12px;
        border-radius: 24px;
    }

    .ll-wordset-game-stage__hud {
        grid-template-columns: 1fr auto;
        grid-template-areas: "stats actions";
    }

    .ll-wordset-game-stage__hud-actions {
        grid-area: actions;
        justify-self: flex-end;
    }

    .ll-wordset-game-stage__stats {
        grid-area: stats;
        justify-content: flex-start;
    }

    .ll-wordset-game-stage__controls {
        gap: 10px;
    }

    .ll-wordset-game-stage__control {
        min-height: 52px;
    }

    .ll-wordset-game-stage__control-arrow {
        width: 25px;
        height: 25px;
    }

    .ll-wordset-game-stage__control--fire {
        min-height: 58px;
    }

    .ll-wordset-game-stage__control-keycap {
        min-width: 38px;
    }

    .ll-wordset-game-stage__overlay {
        inset: 12px;
        padding: 12px;
    }

    .ll-wordset-game-stage__overlay-card {
        padding: 20px 16px;
    }

    .ll-wordset-speaking-stage {
        gap: 14px;
        padding: 2px;
    }

    .ll-wordset-speaking-stage__prompt-shell {
        width: min(100%, 220px);
    }

    .ll-wordset-speaking-stage__prompt-card {
        min-height: 150px;
        padding: 12px;
    }

    .ll-wordset-speaking-stage__meter {
        gap: 5px;
        padding: 14px 16px;
    }

    .ll-wordset-speaking-stage__action {
        width: 100%;
        justify-content: center;
    }

    .ll-wordset-speaking-stage__action--record {
        width: 52px;
    }

    .ll-wordset-speaking-stage__result {
        padding: 14px;
    }

    .ll-wordset-speaking-stage__result-actions {
        justify-content: space-between;
    }

    .ll-wordset-speaking-stage__comparison-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ll-wordset-game-card,
    .ll-wordset-game-card__launch,
    .ll-wordset-game-stage__nav,
    .ll-wordset-game-stage__control,
    .ll-wordset-game-stage__overlay-button,
    .ll-wordset-speaking-stage__prompt-card,
    .ll-wordset-speaking-stage__bar-fill,
    .ll-wordset-speaking-stage__meter-bar {
        transition: none !important;
        animation: none !important;
    }
}
