* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #F9F5EB;
            color: #1A3C34;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            overflow-y: auto;
            zoom: 0.88;
        }

        .container {
            max-width: 1400px;
            width: 100%;
            min-height: 100vh;
            padding: calc(2rem + 50px) 3rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3rem;
        }

        .left-panel {
            flex: 0 0 auto;
            width: 450px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .right-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .title-img {
            width: 100%;
            max-width: 700px;
            height: auto;
            margin-bottom: 0.5rem;
        }

        .subtitle-img {
            width: 100%;
            max-width: 400px;
            height: auto;
            opacity: 0.8;
            margin-top: 2rem;
        }

        .speech-analysis-btn {
            position: relative;
            display: inline-block;
            margin-top: 1.25rem;
            padding: 0.7rem 3rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.15rem;
            font-weight: 700;
            color: #F9F5EB;
            background: linear-gradient(135deg, #2A5A4E, #1A3C34);
            border: 2px solid #1A3C34;
            border-radius: 8px;
            text-decoration: none;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }

        .speech-analysis-btn:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 16px rgba(26, 60, 52, 0.45);
        }

        .speech-analysis-btn:active {
            transform: scale(0.97);
        }

        .reel-assembly {
            display: flex;
            align-items: stretch;
            width: 100%;
            gap: 16px;
        }

        .topic-window {
            width: 100%;
            min-width: 0;
            margin-top: 75px;
            height: 390px;
            position: relative;
            overflow: hidden;
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
            box-shadow: inset 0 20px 30px -20px rgba(0,0,0,0.06), inset 0 -20px 30px -20px rgba(0,0,0,0.06);
        }

        /* --- Slot Lever Handle --- */
        .slot-handle {
            width: 60px;
            flex-shrink: 0;
            position: relative;
            overflow: visible;
        }

        .handle-pivot {
            position: absolute;
            bottom: 173px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 40%, #3A6A5E, #1A3C34);
            border: 2px solid #1A3C34;
            z-index: 4;
        }

        .handle-pivot::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 40%, #5A8A7E, #2A5A4E);
        }

        .handle-arm {
            position: absolute;
            bottom: 185px;
            left: 50%;
            margin-left: -3px;
            width: 6px;
            height: 80px;
            transform-origin: center bottom;
            transform: rotate(0deg);
            z-index: 3;
        }

        .handle-shaft {
            width: 6px;
            height: 100%;
            border-radius: 3px;
            background: linear-gradient(to right, #2A5A4E, #1A3C34);
        }

        .handle-knob {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, #E8D8FF, #D4C0F9 50%, #B89EE8);
            border: 2px solid #1A3C34;
            cursor: grab;
            touch-action: none;
            box-shadow: 0 2px 6px rgba(26, 60, 52, 0.2);
            transition: box-shadow 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .handle-knob-grip {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 3px,
                rgba(26, 60, 52, 0.15) 3px,
                rgba(26, 60, 52, 0.15) 5px
            );
        }

        .handle-knob:hover {
            box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
        }

        .handle-arm.grabbing .handle-knob {
            cursor: grabbing;
        }

        .handle-arm.disabled .handle-knob {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .handle-arm.spring-back {
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes leverHint {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(25deg); }
        }

        .handle-arm.hint {
            animation: leverHint 0.6s ease-in-out 3;
        }

        .pull-lever-hint {
            position: absolute;
            bottom: 305px;
            left: 50%;
            transform: translateX(-50%);
            width: 140px;
            height: auto;
            opacity: 0.55;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .pull-lever-hint.hidden {
            opacity: 0;
        }

        .mobile-spin-btn {
            display: none;
            margin-top: 1.25rem;
            padding: 0.85rem 2.5rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.3rem;
            font-weight: 700;
            color: #F9F5EB;
            background: linear-gradient(135deg, #2A5A4E, #1A3C34);
            border: 2px solid #1A3C34;
            border-radius: 50px;
            cursor: pointer;
            touch-action: manipulation;
            box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }

        .mobile-spin-btn:active {
            transform: scale(0.95);
            box-shadow: 0 2px 6px rgba(26, 60, 52, 0.3);
        }

        .mobile-spin-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .topic-col {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .desktop-btn-row {
            display: flex;
            gap: 0.75rem;
            margin-top: 30px;
            justify-content: center;
        }

        .spin-btn-desktop {
            display: inline-block;
            padding: 0.6rem 2.2rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.1rem;
            font-weight: 700;
            color: #F9F5EB;
            background: linear-gradient(135deg, #2A5A4E, #1A3C34);
            border: 2px solid #1A3C34;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }

        .spin-btn-desktop:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(26, 60, 52, 0.4);
        }

        .spin-btn-desktop:active {
            transform: scale(0.95);
        }

        .spin-btn-desktop:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .timer-btn-desktop {
            display: inline-block;
            padding: 0.6rem 2.2rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.1rem;
            font-weight: 700;
            color: #1A3C34;
            background: transparent;
            border: 2px solid #1A3C34;
            border-radius: 50px;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .timer-btn-desktop:hover {
            background: #1A3C34;
            color: #F9F5EB;
        }

        .mobile-btn-row {
            display: none;
            gap: 0.75rem;
            margin-top: 1.25rem;
            justify-content: center;
        }

        .mobile-btn-row .mobile-spin-btn {
            display: block;
            margin-top: 0;
        }

        .timer-btn-mobile {
            display: none;
            padding: 0.85rem 2.5rem;
            font-family: 'Baloo 2', cursive;
            font-size: 1.3rem;
            font-weight: 700;
            color: #1A3C34;
            background: transparent;
            border: 2px solid #1A3C34;
            border-radius: 50px;
            text-decoration: none;
            cursor: pointer;
            touch-action: manipulation;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .timer-btn-mobile:hover {
            background: #1A3C34;
            color: #F9F5EB;
        }

        .reel-strip {
            position: absolute;
            width: 100%;
            left: 0;
            top: 0;
            will-change: transform;
        }

        .reel-item {
            width: 100%;
            height: 130px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-family: 'DM Serif Display', serif;
            font-size: 5rem;
            line-height: 1.15;
            color: #1A3C34;
            padding: 0 1rem;
            user-select: none;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .reel-center-line {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            height: 130px;
            border-top: 1px solid rgba(26, 60, 52, 0.08);
            border-bottom: 1px solid rgba(26, 60, 52, 0.08);
            pointer-events: none;
            z-index: 2;
        }

        .reel-strip.settled .reel-item {
            opacity: 0.3;
            transform: scale(1);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .reel-strip.settled .reel-item.landed {
            opacity: 1;
            transform: scale(1.6);
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
            z-index: 5;
            position: relative;
        }

        .brand-badge {
            position: fixed;
            top: 1rem;
            right: 1.5rem;
            width: 330px;
            height: auto;
            opacity: 0.8;
            z-index: 10;
        }

        .brand-badge-mobile {
            display: none;
            width: 180px;
            height: auto;
            opacity: 0.8;
            margin: 1.5rem auto 0;
        }

        .container {
            animation: fadeIn 0.8s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Tablet portrait: vertical layout with spin button */
        @media (max-width: 1024px) and (orientation: portrait) {
            .tab-bar { position: static !important; transform: none !important; margin: 1rem auto 0; z-index: auto; left: auto; top: auto; }
            body {
                overflow-y: auto;
                justify-content: flex-start;
                zoom: 0.9;
            }
            .container {
                flex-direction: column;
                padding: 2rem;
                padding-top: 0.5rem;
                gap: 1.5rem;
                min-height: auto;
            }
            .left-panel { flex: 0 0 auto; width: auto; align-items: center; text-align: center; }
            .right-panel { width: 100%; margin-top: 0; }
            .title-img { max-width: 480px; }
            .subtitle-img { max-width: 400px; margin-top: 1rem; }
            .brand-badge { display: none; }
            .speech-analysis-btn { padding: 0.5rem 1.5rem; font-size: 0.95rem; margin-top: 0.75rem; }
            .brand-badge-mobile { display: block; width: 180px; }
            .reel-item { font-size: 2rem; height: 100px; }
            .topic-window { height: 300px; min-width: 0; margin-top: 0; }
            .reel-center-line { height: 100px; }
            .reel-strip.settled .reel-item.landed { transform: scale(1.5); }
            .slot-handle { display: none; }
            .mobile-spin-btn { display: block; margin-top: 3rem; }
            .desktop-btn-row { display: none; }
            .mobile-btn-row { display: flex; margin-top: 3rem; }
            .mobile-btn-row .mobile-spin-btn { margin-top: 0; }
            .timer-btn-mobile { display: block; }
        }

        /* Phone: vertical layout */
        @media (max-width: 768px) {
            .tab-bar { position: static !important; transform: none !important; margin: 1rem auto 0; z-index: auto; left: auto; top: auto; }
            body {
                overflow-y: auto;
                justify-content: flex-start;
                zoom: 0.9;
            }
            .container {
                flex-direction: column;
                padding: 2rem;
                padding-top: 0.5rem;
                gap: 0.5rem;
                min-height: auto;
            }
            .left-panel { flex: 0 0 auto; width: auto; align-items: center; text-align: center; padding-top: 20px; }
            .right-panel { width: 100%; }
            .title-img { max-width: 400px; }
            .subtitle-img { max-width: 340px; margin-top: 0.25rem; }
            .brand-badge { display: none; }
            .speech-analysis-btn { padding: 0.5rem 1.5rem; font-size: 0.95rem; margin-top: 0.75rem; }
            .brand-badge-mobile { display: block; width: 180px; }
            .reel-item { font-size: 2.6rem; height: 120px; }
            .topic-window { height: 360px; min-width: 0; margin-top: 0; }
            .reel-center-line { height: 120px; }
            .reel-strip.settled .reel-item.landed { transform: scale(1.5); }
            .slot-handle { display: none; }
            .mobile-spin-btn { display: block; }
            .desktop-btn-row { display: none; }
            .mobile-btn-row { display: flex; }
            .mobile-btn-row .mobile-spin-btn { margin-top: 0; }
            .timer-btn-mobile { display: block; }
        }

        @media (max-width: 480px) {
            .container { padding: 1rem 1rem 2rem; gap: 0.5rem; padding-top: 0.5rem; }
            .title-img { max-width: 280px; }
            .subtitle-img { width: 240px; margin-top: 0.25rem; }
            .brand-badge-mobile { width: 120px; }
            .reel-assembly { margin-left: -1rem; margin-right: -1rem; }
            .reel-item { font-size: 2rem; height: 100px; padding: 0 0.5rem; }
            .topic-window { height: 300px; margin-top: 0; }
            .reel-center-line { height: 100px; }
            .reel-strip.settled .reel-item.landed { transform: scale(1.2); }
            .slot-handle { display: none; }
            .mobile-spin-btn { display: block; }
            .desktop-btn-row { display: none; }
            .mobile-btn-row { display: flex; }
            .mobile-btn-row .mobile-spin-btn { margin-top: 0; }
            .timer-btn-mobile { display: block; }
        }
        /* --- Dropdown Row (language + difficulty) --- */
        .dropdown-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            align-self: center;
            margin-bottom: 0.5rem;
            z-index: 20;
            transform: translateX(-38px) translateY(20px);
        }

        /* --- Language Dropdown --- */
        .lang-dropdown {
            position: relative;
            display: inline-block;
        }

        /* --- Difficulty Dropdown --- */
        .diff-dropdown {
            position: relative;
            display: inline-block;
        }

        .lang-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0.6rem 1.5rem;
            font-family: 'Inter', sans-serif;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1A3C34;
            background: transparent;
            border: 1.5px solid rgba(26, 60, 52, 0.25);
            border-radius: 20px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
            user-select: none;
        }

        .lang-trigger:hover {
            border-color: rgba(26, 60, 52, 0.5);
            background: rgba(26, 60, 52, 0.04);
        }

        .lang-trigger .lang-flag {
            font-size: 1.3rem;
            line-height: 1;
        }

        .lang-trigger .lang-chevron {
            font-size: 0.6rem;
            transition: transform 0.2s ease;
        }

        .lang-dropdown.open .lang-trigger .lang-chevron {
            transform: rotate(180deg);
        }

        .lang-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 50%;
            min-width: 180px;
            max-height: 360px;
            overflow-y: auto;
            background: #F9F5EB;
            border: 1.5px solid rgba(26, 60, 52, 0.15);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(26, 60, 52, 0.12);
            padding: 0.35rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-4px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            z-index: 10;
        }

        .lang-dropdown.open .lang-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 0.5rem 1rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            color: #1A3C34;
            background: none;
            border: none;
            cursor: pointer;
            transition: background 0.15s ease;
            text-align: left;
        }

        .lang-option:hover {
            background: rgba(26, 60, 52, 0.06);
        }

        .lang-option .lang-flag {
            font-size: 1.1rem;
            line-height: 1;
        }

        .lang-option .lang-check {
            margin-left: auto;
            font-size: 0.75rem;
            opacity: 0;
            color: #2A5A4E;
        }

        .lang-option.selected .lang-check {
            opacity: 1;
        }

        .diff-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0.6rem 1.5rem;
            font-family: 'Inter', sans-serif;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1A3C34;
            background: transparent;
            border: 1.5px solid rgba(26, 60, 52, 0.25);
            border-radius: 20px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
            user-select: none;
        }

        .diff-trigger:hover {
            border-color: rgba(26, 60, 52, 0.5);
            background: rgba(26, 60, 52, 0.04);
        }

        .diff-trigger .diff-icon {
            font-size: 1.1rem;
            line-height: 1;
        }

        .diff-trigger .diff-chevron {
            font-size: 0.6rem;
            transition: transform 0.2s ease;
        }

        .diff-dropdown.open .diff-trigger .diff-chevron {
            transform: rotate(180deg);
        }

        .diff-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 50%;
            min-width: 180px;
            background: #F9F5EB;
            border: 1.5px solid rgba(26, 60, 52, 0.15);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(26, 60, 52, 0.12);
            padding: 0.35rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-4px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            z-index: 10;
        }

        .diff-dropdown.open .diff-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .diff-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 0.5rem 1rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            color: #1A3C34;
            background: none;
            border: none;
            cursor: pointer;
            transition: background 0.15s ease;
            text-align: left;
        }

        .diff-option:hover {
            background: rgba(26, 60, 52, 0.06);
        }

        .diff-option .diff-icon {
            font-size: 1.1rem;
            line-height: 1;
        }

        .diff-option .diff-check {
            margin-left: auto;
            font-size: 0.75rem;
            opacity: 0;
            color: #2A5A4E;
        }

        .diff-option.selected .diff-check {
            opacity: 1;
        }

        .dropdown-row {
            flex-wrap: nowrap;
            justify-content: center;
        }

        .lang-dropdown, .diff-dropdown, .cat-dropdown {
            flex-shrink: 1;
            min-width: 0;
        }

        .cat-dropdown {
            position: relative;
        }

        .cat-dropdown.disabled {
            opacity: 0.35;
            pointer-events: none;
        }

        .cat-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0.6rem 1.5rem;
            font-family: 'Inter', sans-serif;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1A3C34;
            background: transparent;
            border: 1.5px solid rgba(26, 60, 52, 0.25);
            border-radius: 20px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
            user-select: none;
        }

        .cat-trigger:hover {
            border-color: rgba(26, 60, 52, 0.5);
            background: rgba(26, 60, 52, 0.04);
        }

        .cat-trigger .cat-icon {
            font-size: 1.1rem;
            line-height: 1;
        }

        .cat-trigger .cat-chevron {
            font-size: 0.6rem;
            transition: transform 0.2s ease;
        }

        .cat-dropdown.open .cat-trigger .cat-chevron {
            transform: rotate(180deg);
        }

        .cat-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 50%;
            min-width: 220px;
            max-height: 320px;
            overflow-y: auto;
            background: #F9F5EB;
            border: 1.5px solid rgba(26, 60, 52, 0.15);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(26, 60, 52, 0.12);
            padding: 0.35rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-4px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            z-index: 10;
        }

        .cat-dropdown.open .cat-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .cat-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 0.5rem 1rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            color: #1A3C34;
            background: none;
            border: none;
            cursor: pointer;
            transition: background 0.15s ease;
            text-align: left;
        }

        .cat-option:hover {
            background: rgba(26, 60, 52, 0.06);
        }

        .cat-option .cat-icon {
            font-size: 1.1rem;
            line-height: 1;
        }

        .cat-option .cat-check {
            margin-left: auto;
            font-size: 0.75rem;
            opacity: 0;
            color: #2A5A4E;
        }

        .cat-option.selected .cat-check {
            opacity: 1;
        }

        /* CJK and non-Latin font overrides */
        .lang-zh .reel-item {
            font-family: 'Noto Serif SC', 'DM Serif Display', serif;
        }
        .lang-ja .reel-item {
            font-family: 'Noto Serif JP', 'DM Serif Display', serif;
        }
        .lang-ko .reel-item {
            font-family: 'Noto Serif KR', 'DM Serif Display', serif;
        }
        .lang-ar .reel-item,
        .lang-ur .reel-item {
            font-family: 'Noto Naskh Arabic', 'DM Serif Display', serif;
            direction: rtl;
        }
        .lang-th .reel-item {
            font-family: 'Noto Serif Thai', 'DM Serif Display', serif;
        }

        @media (max-width: 1024px) and (orientation: portrait) {
            .dropdown-row { align-self: center; transform: none; margin-top: 20px; }
        }

        @media (max-width: 768px) {
            .dropdown-row { align-self: center; transform: none; margin-top: 20px; gap: 0.35rem; }
            .lang-trigger { padding: 0.45rem 0.9rem; font-size: 0.95rem; gap: 4px; }
            .diff-trigger { padding: 0.45rem 0.9rem; font-size: 0.95rem; gap: 4px; }
            .cat-trigger { padding: 0.45rem 0.9rem; font-size: 0.95rem; gap: 4px; }
        }

        @media (max-width: 480px) {
            .dropdown-row { align-self: center; transform: none; margin-top: 20px; gap: 0.25rem; }
            .lang-trigger, .diff-trigger, .cat-trigger {
                padding: 0.35rem 0.55rem; font-size: 0.8rem; gap: 3px;
                white-space: nowrap; overflow: hidden;
            }
            .lang-trigger .lang-flag { font-size: 0.95rem; }
            .diff-trigger .diff-icon { font-size: 0.85rem; }
            .cat-trigger .cat-icon { font-size: 0.85rem; }
            .lang-trigger .lang-chevron, .diff-trigger .diff-chevron, .cat-trigger .cat-chevron { font-size: 0.45rem; }
        }

        /* --- Tab Bar --- */
        .tab-bar {
            position: fixed;
            top: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            padding: 5px;
            background: rgba(26, 60, 52, 0.08);
            border-radius: 50px;
            z-index: 15;
            max-width: calc(100vw - 1.5rem);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .tab-bar::-webkit-scrollbar {
            display: none;
        }

        .tab-btn {
            position: relative;
            padding: 0.6rem 1.8rem;
            font-family: 'Inter', sans-serif;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1A3C34;
            background: transparent;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
            white-space: nowrap;
        }

        .tab-btn:hover {
            background: rgba(26, 60, 52, 0.06);
        }

        .tab-btn.active {
            background: #F9F5EB;
            box-shadow: 0 2px 6px rgba(26, 60, 52, 0.14);
            color: #1A3C34;
        }

        .tab-new-badge {
            position: absolute;
            top: -8px;
            right: -6px;
            padding: 2px 8px;
            font-family: 'Baloo 2', cursive;
            font-size: 0.65rem;
            font-weight: 700;
            color: #1A3C34;
            background: #e4a959;
            border-radius: 10px;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 6px rgba(26, 60, 52, 0.25);
            pointer-events: none;
        }

        /* --- Framework Buttons --- */
        .framework-buttons {
            display: none;
            flex-direction: column;
            gap: 0.6rem;
            width: 100%;
            max-width: 340px;
            margin-top: 15px;
        }

        .framework-card {
            border: 2px solid rgba(26, 60, 52, 0.25);
            border-radius: 16px;
            overflow: hidden;
            transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        .framework-card.highlighted {
            border-color: rgba(26, 60, 52, 0.6);
            box-shadow: 0 4px 20px rgba(26, 60, 52, 0.25);
        }

        @keyframes fwPopIn {
            0%   { transform: scale(0.92); opacity: 0.5; }
            50%  { transform: scale(1.04); }
            100% { transform: scale(1); opacity: 1; }
        }

        .framework-card.pop-in {
            animation: fwPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        .framework-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 100%;
            padding: 0.65rem 1.2rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: #1A3C34;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .fw-label-img {
            height: 2.2rem;
            width: auto;
        }


        .framework-toggle:hover {
            background: rgba(26, 60, 52, 0.04);
        }

        .framework-toggle .fw-chevron {
            position: absolute;
            right: 1rem;
            font-size: 0.85rem;
            transition: transform 0.3s ease;
        }

        .framework-card.expanded .framework-toggle .fw-chevron {
            transform: rotate(180deg);
        }

        .framework-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.35s ease;
            padding: 0 1.2rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.82rem;
            line-height: 1.6;
            color: rgba(26, 60, 52, 0.8);
        }

        .framework-card.expanded .framework-content {
            max-height: 300px;
            padding: 0 1.2rem 0.8rem;
        }

        .fw-heading {
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: #1A3C34;
            text-align: center;
            padding-bottom: 0.2rem;
        }


        /* --- Example Button & Popup --- */
        .example-btn {
            display: none;
            width: auto;
            padding: 0.5rem 1.4rem;
            margin: 0.5rem auto 0;
            background: #1A3C34;
            color: #F9F5EB;
            border: none;
            border-radius: 999px;
            font-family: 'Baloo 2', cursive;
            font-size: 0.85rem;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .example-btn.visible {
            display: block;
            animation: exampleBtnIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        .example-btn:hover { opacity: 0.85; }

        @keyframes exampleBtnIn {
            0%   { opacity: 0; transform: scale(0.6); }
            100% { opacity: 1; transform: scale(1); }
        }

        .example-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(26,60,52,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .example-overlay.open {
            display: flex;
        }

        .example-popup {
            position: relative;
            background: #F9F5EB;
            border-radius: 1.2rem;
            max-width: 560px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            padding: 2rem 2rem 1.5rem;
            animation: fwPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            box-shadow: 0 12px 40px rgba(0,0,0,0.25);
        }

        .example-close {
            position: absolute;
            top: 0.7rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: #f9f5eb;
            cursor: pointer;
            line-height: 1;
            z-index: 1;
        }
        .example-close:hover { opacity: 0.6; }

        .example-question {
            font-family: 'Baloo 2', cursive;
            font-size: 1.15rem;
            font-weight: 700;
            color: #f9f5eb;
            background: #135248;
            margin: -2rem -2rem 1rem;
            padding: 1rem 2rem;
            padding-right: 2.5rem;
            border-radius: 1.2rem 1.2rem 0 0;
        }

        .example-body {
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
            line-height: 1.7;
            color: rgba(26,60,52,0.85);
        }

        .example-section {
            margin-bottom: 0.8rem;
        }

        .example-section-label {
            font-weight: 700;
            color: #e4a959;
            display: block;
            margin-bottom: 0.15rem;
        }

        @media (max-width: 480px) {
            .example-popup {
                padding: 1.4rem 1.2rem 1rem;
            }
            .example-question {
                font-size: 1rem;
                margin: -1.4rem -1.2rem 1rem;
                padding: 0.8rem 1.2rem;
                padding-right: 2.2rem;
            }
            .example-body { font-size: 0.82rem; }
        }

        /* --- Topics Mode Spacing --- */
        .subtitle-img-topics {
            margin-top: -0.5rem;
        }

        /* --- Interview Mode Visibility --- */
        .title-img-interview               { display: none; }
        .mode-interview .title-img-topics  { display: none; }
        .mode-interview .title-img-interview { display: block; }
        .mode-interview .subtitle-img-topics    { display: none; }
        .mode-interview .subtitle-img-vocabulary { display: none; }
        .mode-interview .lang-dropdown     { display: none; }
        .mode-interview .diff-dropdown     { display: none; }
        .mode-interview .framework-buttons { display: flex; }

        /* --- Vocabulary Mode Visibility --- */
        .title-img-vocabulary              { display: none; }
        .subtitle-img-vocabulary           { display: none; margin-top: 0.25rem; }
        .vocab-definition                  { display: none; }
        .mode-vocabulary .title-img-topics   { display: none; }
        .mode-vocabulary .title-img-interview { display: none; }
        .mode-vocabulary .title-img-vocabulary { display: block; }
        .mode-vocabulary .subtitle-img-topics  { display: none; }
        .mode-vocabulary .subtitle-img-vocabulary { display: block; }
        .mode-vocabulary .lang-dropdown      { display: none; }
        .mode-vocabulary .cat-dropdown       { display: none; }
        .mode-vocabulary .framework-buttons  { display: none; }
        .vocab-lang-dropdown                 { display: none; }
        .mode-vocabulary .vocab-lang-dropdown { display: inline-flex; }

        /* --- Deep Research Mode Visibility --- */
        .title-img-research                  { display: none; margin-bottom: 0; }
        .subtitle-img-research                { display: none; margin-top: -0.5rem; }
        .mode-research .title-img-topics     { display: none; }
        .mode-research .title-img-interview  { display: none; }
        .mode-research .title-img-vocabulary { display: none; }
        .mode-research .title-img-research   { display: block; }
        .mode-research .subtitle-img-topics     { display: none; }
        .mode-research .subtitle-img-vocabulary { display: none; }
        .mode-research .subtitle-img-research   { display: block; }
        .mode-research .lang-dropdown         { display: none; }
        .mode-research .diff-dropdown         { display: none; }
        .mode-research .framework-buttons     { display: none; }

        /* --- Vocabulary Definition Card --- */
        .vocab-definition {
            width: 100%;
            max-width: 400px;
            background: transparent;
            border: 1.5px solid rgba(26, 60, 52, 0.25);
            border-radius: 16px;
            padding: 1.4rem 1.6rem;
            margin-top: 1rem;
            box-shadow: none;
        }
        .vocab-definition.visible {
            display: block;
            animation: fwPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        .vocab-word-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.15rem;
        }
        .vocab-word {
            font-family: 'DM Serif Display', serif;
            font-size: 1.8rem;
            color: #1A3C34;
        }
        .vocab-speak-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border: 1.5px solid rgba(26, 60, 52, 0.25);
            border-radius: 50%;
            background: transparent;
            color: #1A3C34;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease;
            flex-shrink: 0;
        }
        .vocab-speak-btn:hover {
            background: rgba(26, 60, 52, 0.08);
            border-color: rgba(26, 60, 52, 0.5);
        }
        .vocab-speak-btn:active {
            transform: scale(0.9);
        }
        .vocab-pos {
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-style: italic;
            color: rgba(26, 60, 52, 0.5);
            margin-bottom: 0.6rem;
        }
        .vocab-def {
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            line-height: 1.5;
            color: #1A3C34;
            margin-bottom: 1rem;
        }
        .vocab-example-label {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #2A5A4E;
            margin-bottom: 0.3rem;
        }
        .vocab-example {
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
            font-style: italic;
            line-height: 1.6;
            color: rgba(26, 60, 52, 0.75);
            margin-bottom: 1rem;
        }
        .vocab-angle-label {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #e4a959;
            margin-bottom: 0.3rem;
        }
        .vocab-angle {
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
            line-height: 1.6;
            color: rgba(26, 60, 52, 0.8);
        }

        @media (max-width: 480px) {
            .vocab-definition { padding: 1rem 1.2rem; }
            .vocab-word { font-size: 1.4rem; }
            .vocab-def { font-size: 0.9rem; }
            .vocab-angle { font-size: 0.82rem; }
        }

        /* --- Tab Bar Responsive --- */
        @media (max-width: 768px) {
            .tab-btn { padding: 0.5rem 1.2rem; font-size: 0.92rem; }
            .framework-buttons { max-width: 340px; }
        }
        @media (max-width: 480px) {
            .tab-btn { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
            .framework-buttons { max-width: 280px; }
            .framework-toggle { padding: 0.55rem 1rem; font-size: 0.85rem; }
            .framework-content { font-size: 0.75rem; }
        }

.sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

/* 2026-11-15 P0：题库仅保留英文，语言下拉下线（数据文件已删） */
.lang-dropdown { display: none !important; }

