
/* =========================================================
   TYPEPRO — TOUCH TYPING PRACTICE
   STYLE.CSS — VERSION 8.0

   Features:
   - Compact Desktop Interface
   - 5 Themes
   - Timed Practice
   - Free Typing
   - Virtual Keyboard
   - Live Finger Guide
   - Games Page
   - Responsive Layout
========================================================= */


/* =========================================================
   01. FONT
========================================================= */

@font-face {
    font-family: "Preeti";
    src: url("./assets/fonts/Preeti.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   02. ROOT VARIABLES — CARBON THEME
========================================================= */

:root {
    color-scheme: dark;

    --bg: #101522;
    --bg-secondary: #151c2b;
    --surface: #1b2435;
    --surface-light: #222e42;
    --surface-hover: #29364d;

    --border: #2c3a50;
    --border-light: #394a63;

    --text: #e8edf7;
    --text-secondary: #9aa9bf;
    --text-muted: #6f8098;

    --primary: #5b9cff;
    --primary-hover: #78adff;
    --primary-soft: rgba(91, 156, 255, 0.13);

    --success: #38d9a9;
    --danger: #ff6b81;
    --warning: #ffc857;

    --key-bg: #222d40;
    --key-border: #3b4b64;
    --key-text: #e5ecf7;

    --paragraph-bg: #151e2e;

    --shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    --radius-sm: 7px;
    --radius-md: 11px;
    --radius-lg: 15px;

    --transition: 0.2s ease;

    --finger-left-pinky: #f05454;
    --finger-left-ring: #f6b93b;
    --finger-left-middle: #78e08f;
    --finger-left-index: #4bcffa;

    --finger-right-index: #54a0ff;
    --finger-right-middle: #82ccdd;
    --finger-right-ring: #feca57;
    --finger-right-pinky: #f78fb3;

    --finger-thumb: #a29bfe;
}


/* =========================================================
   03. THEME SYSTEM
========================================================= */

/* NORD */

body[data-theme="nord"] {
    --bg: #242933;
    --bg-secondary: #2e3440;
    --surface: #343d4c;
    --surface-light: #3b4658;
    --surface-hover: #46536a;

    --border: #4c596e;
    --border-light: #61718a;

    --text: #eceff4;
    --text-secondary: #c0cad8;
    --text-muted: #91a0b5;

    --primary: #88c0d0;
    --primary-hover: #a3d5e2;
    --primary-soft: rgba(136, 192, 208, 0.13);

    --success: #a3be8c;
    --danger: #bf616a;
    --warning: #ebcb8b;

    --key-bg: #3b4658;
    --key-border: #58677e;

    --paragraph-bg: #2e3746;
}


/* MATRIX */

body[data-theme="matrix"] {
    --bg: #050d08;
    --bg-secondary: #08140c;
    --surface: #0d1d12;
    --surface-light: #12271a;
    --surface-hover: #193522;

    --border: #1c472a;
    --border-light: #28663b;

    --text: #c8ffd5;
    --text-secondary: #81c994;
    --text-muted: #4e9363;

    --primary: #35e66b;
    --primary-hover: #69ff91;
    --primary-soft: rgba(53, 230, 107, 0.12);

    --success: #35e66b;
    --danger: #ff5964;
    --warning: #d7e66b;

    --key-bg: #102419;
    --key-border: #28663b;

    --paragraph-bg: #09170e;
}


/* CYBERPUNK */

body[data-theme="cyberpunk"] {
    --bg: #10091c;
    --bg-secondary: #190e29;
    --surface: #211335;
    --surface-light: #2c1944;
    --surface-hover: #392054;

    --border: #4a2d68;
    --border-light: #68408d;

    --text: #f6eaff;
    --text-secondary: #c4a9e4;
    --text-muted: #987bb7;

    --primary: #f45bff;
    --primary-hover: #ff8aff;
    --primary-soft: rgba(244, 91, 255, 0.13);

    --success: #57f5c2;
    --danger: #ff5c91;
    --warning: #ffe66d;

    --key-bg: #28183c;
    --key-border: #65428a;

    --paragraph-bg: #190f29;
}


/* AURORA */

body[data-theme="aurora"] {
    --bg: #0b1720;
    --bg-secondary: #10232b;
    --surface: #15313a;
    --surface-light: #1c4149;
    --surface-hover: #26545b;

    --border: #315d61;
    --border-light: #44777a;

    --text: #e4fff7;
    --text-secondary: #a8d8cc;
    --text-muted: #78aaa2;

    --primary: #49e2c2;
    --primary-hover: #78f3d8;
    --primary-soft: rgba(73, 226, 194, 0.12);

    --success: #72e6a5;
    --danger: #ff788b;
    --warning: #f5d77e;

    --key-bg: #1b3b43;
    --key-border: #3a6970;

    --paragraph-bg: #112a33;
}


/* =========================================================
   04. GLOBAL RESET
========================================================= */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        "Noto Sans Devanagari",
        "Mangal",
        "Nirmala UI",
        sans-serif;

    font-size: 13px;
    line-height: 1.45;

    transition:
        background var(--transition),
        color var(--transition);
}

button,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}


/* =========================================================
   05. MAIN APP CONTAINER
========================================================= */

.app-container {
    width: min(100% - 34px, 1450px);
    margin: 0 auto;
    padding: 15px 0 12px;
}


/* =========================================================
   06. HEADER
========================================================= */

.top-header {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 9px 15px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    position: relative;
    z-index: 20;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.brand-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    font-size: 21px;

    color: var(--primary);
    background: var(--primary-soft);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.brand-text h1 {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand-text h1 span {
    color: var(--primary);
}

.brand-text p {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}


/* HEADER CONTROLS */

.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    flex-wrap: wrap;
}


/* =========================================================
   07. DROPDOWNS
========================================================= */

.control-dropdown {
    position: relative;
}

.control-btn {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 0 10px;

    color: var(--text-secondary);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    transition: var(--transition);
}

.control-btn:hover,
.control-btn.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
}

.control-btn small {
    font-size: 10px;
    color: var(--text-muted);
}


.dropdown-menu {
    display: none;

    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    width: 205px;
    max-height: 330px;
    overflow-y: auto;

    padding: 7px;

    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);

    z-index: 100;
}

.dropdown-menu.show,
.dropdown-menu.active {
    display: block;
}

.dropdown-heading {
    padding: 7px 9px 9px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dropdown-option {
    width: 100%;
    min-height: 35px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 7px 9px;

    color: var(--text-secondary);
    background: transparent;

    border: none;
    border-radius: 6px;

    text-align: left;
    font-size: 11px;

    transition: var(--transition);
}

.dropdown-option:hover,
.dropdown-option.selected {
    color: var(--primary);
    background: var(--primary-soft);
}

.option-check {
    margin-left: auto;
    color: var(--success);
    opacity: 0;
}

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

.dropdown-option > span:nth-child(2) {
    flex: 1;
}

.dropdown-option strong {
    display: block;
    font-size: 11px;
}

.dropdown-option small {
    display: block;
    margin-top: 1px;

    color: var(--text-muted);
    font-size: 9px;
}

.theme-preview {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.carbon-preview {
    background: #101522;
}

.nord-preview {
    background: #88c0d0;
}

.matrix-preview {
    background: #35e66b;
}

.cyberpunk-preview {
    background: #f45bff;
}

.aurora-preview {
    background: #49e2c2;
}

.sound-option-icon {
    width: 20px;
    text-align: center;
}


/* =========================================================
   08. STATISTICS
========================================================= */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;

    margin: 12px 0;
}

.stat-card {
    min-height: 65px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 15px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.stat-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: var(--primary-soft);
    border-radius: 9px;

    font-size: 17px;
}

.stat-card p {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.stat-card h2 {
    margin-top: 1px;

    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}


/* =========================================================
   09. PAGE VISIBILITY
========================================================= */

.page-section {
    display: block;
}

.page-section.hidden {
    display: none !important;
}


/* =========================================================
   10. PRACTICE SECTION
========================================================= */

.practice-section,
.keyboard-section,
.games-section {
    padding: 14px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.section-heading,
.games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;
}

.section-heading h2,
.games-header h2 {
    color: var(--text);

    font-size: 16px;
    font-weight: 750;
}

.section-heading p,
.games-header p {
    margin-top: 2px;

    color: var(--text-muted);
    font-size: 10px;
}

.level-badge,
.keyboard-status,
.coming-soon-badge {
    padding: 5px 9px;

    color: var(--primary);
    background: var(--primary-soft);

    border: 1px solid var(--border);
    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;

    white-space: nowrap;
}


/* =========================================================
   11. PRACTICE MODE TABS
========================================================= */

.practice-mode-tabs {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 10px;
}

.mode-tab {
    min-height: 31px;

    padding: 6px 13px;

    color: var(--text-secondary);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 11px;
    font-weight: 650;

    transition: var(--transition);
}

.mode-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.mode-tab.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
}


/* =========================================================
   12. PRACTICE SETTINGS
========================================================= */

.practice-settings {
    min-height: 43px;

    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;

    padding: 9px 10px;
    margin-bottom: 9px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.practice-settings.hidden {
    display: none !important;
}

.setting-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.setting-label {
    display: block;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.65px;
}

.duration-options,
.free-category-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.duration-btn,
.category-btn {
    min-height: 27px;

    padding: 4px 10px;

    color: var(--text-secondary);
    background: var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 10px;
    font-weight: 650;

    transition: var(--transition);
}

.duration-btn:hover,
.category-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.duration-btn.active,
.category-btn.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
}

.practice-select {
    min-width: 125px;
    min-height: 29px;

    padding: 4px 9px;

    color: var(--text);
    background: var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 10px;
    outline: none;
}

.practice-select:focus {
    border-color: var(--primary);
}

.practice-select option {
    color: var(--text);
    background: var(--surface);
}


/* FREE TYPING SETTINGS */

.free-extra-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.free-extra-setting.hidden {
    display: none !important;
}

.custom-text-input {
    width: 260px;
    min-height: 34px;
    max-height: 75px;

    resize: vertical;

    padding: 7px 9px;

    color: var(--text);
    background: var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 10px;
}

.custom-text-input::placeholder {
    color: var(--text-muted);
}

.custom-text-input:focus {
    outline: none;
    border-color: var(--primary);
}

.small-action-btn {
    min-height: 29px;

    padding: 5px 10px;

    color: var(--primary);
    background: var(--primary-soft);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
}

.small-action-btn:hover {
    border-color: var(--primary);
}


/* =========================================================
   13. PRACTICE ACTIONS
========================================================= */

.practice-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 9px;
}

.start-practice-btn,
.secondary-action-btn,
.restart-btn {
    min-height: 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 13px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 750;

    transition: var(--transition);
}

.start-practice-btn {
    color: #fff;
    background: var(--primary);

    border: 1px solid var(--primary);
}

.start-practice-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.secondary-action-btn,
.restart-btn {
    color: var(--text-secondary);
    background: var(--surface);

    border: 1px solid var(--border);
}

.secondary-action-btn:hover,
.restart-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* =========================================================
   14. PARAGRAPH DISPLAY
========================================================= */

.paragraph-box {
    padding: 12px 14px;

    background: var(--paragraph-bg);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.paragraph-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;
}

.paragraph-topline span {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.65px;
}

.paragraph-display {
    min-height: 54px;
    max-height: 100px;

    overflow-y: auto;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.1px;

    word-break: normal;
    overflow-wrap: break-word;
}

.paragraph-display span {
    position: relative;
    border-radius: 2px;
}

.paragraph-display span.correct {
    color: var(--success);
}

.paragraph-display span.incorrect {
    color: var(--danger);
    background: rgba(255, 107, 129, 0.12);
}

.paragraph-display span.current {
    color: var(--primary);
    background: var(--primary-soft);

    border-bottom: 2px solid var(--primary);
}

.progress-area {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 10px;
}

.progress-area > span {
    min-width: 90px;

    color: var(--text-muted);
    font-size: 9px;
    font-weight: 650;
}

.progress-track {
    height: 5px;
    flex: 1;

    overflow: hidden;

    background: var(--surface-light);
    border-radius: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;

    background: var(--primary);
    border-radius: inherit;

    transition: width 0.15s ease;
}


/* =========================================================
   15. TYPING INPUT
========================================================= */

#typingInput {
    width: 100%;
    height: 47px;
    min-height: 47px;
    max-height: 70px;

    display: block;

    resize: none;

    margin-top: 9px;
    padding: 10px 12px;

    color: var(--text);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 12px;
    line-height: 1.5;

    outline: none;

    transition: border-color var(--transition);
}

#typingInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

#typingInput:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#typingInput::placeholder {
    color: var(--text-muted);
}


/* PRACTICE FOOTER */

.practice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 8px;
}

.typing-hint {
    color: var(--text-muted);
    font-size: 9px;
}

.restart-btn {
    min-height: 27px;
    padding: 4px 10px;
}


/* =========================================================
   16. KEYBOARD SECTION
========================================================= */

.keyboard-section {
    margin-top: 12px;
}

.keyboard-section .section-heading {
    margin-bottom: 10px;
}

.typing-guide-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.8fr);
    align-items: center;
    gap: 14px;
}


/* =========================================================
   17. VIRTUAL KEYBOARD
========================================================= */

.keyboard {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 10px;

    background: var(--paragraph-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.key-row {
    width: 100%;

    display: flex;
    justify-content: center;
    gap: 4px;
}

.key {
    min-width: 0;
    height: 35px;
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 3px;

    color: var(--key-text);
    background: var(--key-bg);

    border: 1px solid var(--key-border);
    border-top: 2px solid var(--finger-color, var(--key-border));
    border-radius: 5px;

    font-size: 10px;
    font-weight: 650;

    user-select: none;

    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.key:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.key.active,
.key.pressed,
.key.highlight {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);

    box-shadow: 0 0 12px var(--primary-soft);

    transform: translateY(1px);
}

.key.correct {
    border-color: var(--success);
}

.key.incorrect {
    background: var(--danger);
    border-color: var(--danger);
}


/* KEY WIDTHS */

.key.w-1 {
    flex: 1;
}

.key.w-1-5 {
    flex: 1.5;
}

.key.w-1-75 {
    flex: 1.75;
}

.key.w-2 {
    flex: 2;
}

.key.w-2-25 {
    flex: 2.25;
}


/* DUAL CHARACTERS */

.key.dual {
    flex-direction: column;
    justify-content: space-between;

    line-height: 1;
}

.top-char {
    align-self: flex-end;
    margin-right: 3px;

    color: var(--text-muted);
    font-size: 8px;
}

.bottom-char {
    align-self: center;

    font-size: 11px;
}


/* FINGER COLORS */

.finger-left-pinky {
    --finger-color: var(--finger-left-pinky);
}

.finger-left-ring {
    --finger-color: var(--finger-left-ring);
}

.finger-left-middle {
    --finger-color: var(--finger-left-middle);
}

.finger-left-index {
    --finger-color: var(--finger-left-index);
}

.finger-right-index {
    --finger-color: var(--finger-right-index);
}

.finger-right-middle {
    --finger-color: var(--finger-right-middle);
}

.finger-right-ring {
    --finger-color: var(--finger-right-ring);
}

.finger-right-pinky {
    --finger-color: var(--finger-right-pinky);
}

.finger-thumb {
    --finger-color: var(--finger-thumb);
}

.neutral-key {
    --finger-color: var(--key-border);
}

.space-key {
    flex: 5;
    height: 34px;

    color: var(--text-secondary);
    letter-spacing: 2px;
    font-size: 9px;
}

.modifier-key {
    flex: 0.8;
    height: 34px;

    color: var(--text-muted);
    font-size: 8px;
}


/* =========================================================
   18. HANDS GUIDE
========================================================= */

.hands-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hand-card {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 9px 6px 7px;

    background: var(--paragraph-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.hand-title {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;

    margin-bottom: 2px;
}

.hand-title span {
    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hand-title small {
    color: var(--text-muted);
    font-size: 8px;
}

.hand-svg {
    width: 100%;
    max-width: 150px;
    height: 130px;

    overflow: visible;
}

.hand-palm {
    transition: fill 0.15s ease;
}

.finger-group {
    cursor: pointer;
    transition:
        filter 0.15s ease,
        opacity 0.15s ease;
}

.finger-group.active,
.finger-group.highlight,
.finger-group.current {
    filter:
        brightness(1.25)
        drop-shadow(0 0 6px var(--primary));

    opacity: 1;
}

.finger-group:not(.active):not(.highlight):not(.current) {
    opacity: 0.9;
}

.nail {
    pointer-events: none;
}

.hand-status {
    min-height: 18px;

    color: var(--success);
    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   19. ACTIVE FINGER INFORMATION
========================================================= */

.active-finger-info {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;
    margin-top: 9px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.active-indicator {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    background: var(--success);
    border-radius: 50%;

    box-shadow: 0 0 9px var(--success);
}

.active-finger-info > div:last-child {
    min-width: 0;
}

.active-finger-info span {
    color: var(--text-muted);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.active-finger-info h3 {
    margin-top: 1px;

    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}

.active-finger-info p {
    margin-top: 1px;

    color: var(--text-secondary);
    font-size: 9px;
}


/* =========================================================
   20. FINGER LEGEND
========================================================= */

.finger-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 12px;

    margin-top: 10px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--text-muted);
    font-size: 8px;
    white-space: nowrap;
}

.legend-color {
    width: 8px;
    height: 8px;

    display: inline-block;
    flex-shrink: 0;

    background: var(--finger-color);
    border-radius: 50%;
}


/* =========================================================
   21. GAMES PAGE
========================================================= */

.games-section {
    min-height: 300px;
}

.games-header {
    margin-bottom: 15px;
}

.games-placeholder {
    min-height: 270px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    text-align: center;

    background: var(--paragraph-bg);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
}

.games-placeholder-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 18px;

    font-size: 30px;
}

.games-placeholder h2 {
    color: var(--text);
    font-size: 19px;
}

.games-placeholder p {
    max-width: 400px;

    margin-top: 7px;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.7;
}

.games-status {
    margin-top: 15px;
    padding: 6px 11px;

    color: var(--primary);
    background: var(--primary-soft);

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   22. BOTTOM NAVIGATION
========================================================= */

.bottom-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: fit-content;

    margin: 12px auto 0;
    padding: 5px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.nav-btn {
    min-width: 105px;
    min-height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    position: relative;

    padding: 6px 12px;

    color: var(--text-secondary);
    background: transparent;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-btn.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--border);
}

.nav-icon {
    font-size: 14px;
}

.nav-coming-soon {
    position: absolute;
    top: -5px;
    right: -5px;

    padding: 2px 5px;

    color: var(--warning);
    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 7px;
}


/* =========================================================
   23. FOOTER
========================================================= */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 3px 3px;

    color: var(--text-muted);
    font-size: 9px;
}


/* =========================================================
   24. SCROLLBARS
========================================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* =========================================================
   25. RESPONSIVE — SMALL DESKTOP
========================================================= */

@media (max-width: 1100px) {

    .app-container {
        width: calc(100% - 24px);
    }

    .top-header {
        flex-wrap: wrap;
    }

    .header-controls {
        flex: 1;
    }

    .typing-guide-wrapper {
        grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
        gap: 9px;
    }

    .hand-svg {
        height: 115px;
    }

    .key {
        height: 32px;
        font-size: 9px;
    }

    .space-key,
    .modifier-key {
        height: 31px;
    }
}


/* =========================================================
   26. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 800px) {

    .app-container {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .top-header {
        align-items: flex-start;
    }

    .header-controls {
        justify-content: flex-start;
    }

    .typing-guide-wrapper {
        grid-template-columns: 1fr;
    }

    .hands-container {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .hand-svg {
        max-width: 175px;
        height: 135px;
    }

    .keyboard {
        padding: 8px;
    }

    .key {
        height: 34px;
    }

    .practice-settings {
        align-items: flex-start;
    }

}


/* =========================================================
   27. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 12px;
    }

    .app-container {
        width: calc(100% - 14px);
        padding-top: 7px;
    }

    .top-header {
        padding: 10px;
        gap: 10px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .header-controls {
        width: 100%;
        gap: 5px;
    }

    .control-btn {
        min-height: 31px;
        padding: 0 7px;
        font-size: 10px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .stat-card {
        min-height: 57px;
        padding: 8px;
        gap: 8px;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .stat-card h2 {
        font-size: 18px;
    }

    .practice-section,
    .keyboard-section,
    .games-section {
        padding: 10px;
    }

    .section-heading h2 {
        font-size: 14px;
    }

    .practice-mode-tabs {
        width: 100%;
    }

    .mode-tab {
        flex: 1;
        padding: 6px;
        font-size: 10px;
    }

    .practice-settings {
        gap: 10px;
    }

    .setting-group {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .duration-options,
    .free-category-options {
        width: 100%;
    }

    .duration-btn,
    .category-btn {
        flex: 1;
    }

    .free-extra-setting {
        width: 100%;
    }

    .custom-text-input {
        width: 100%;
    }

    .practice-actions {
        gap: 5px;
    }

    .start-practice-btn,
    .secondary-action-btn {
        flex: 1;
        padding: 6px 7px;
        font-size: 9px;
    }

    .paragraph-box {
        padding: 10px;
    }

    .paragraph-display {
        font-size: 12px;
    }

    .typing-guide-wrapper {
        gap: 10px;
    }

    .keyboard {
        padding: 5px;
        gap: 4px;
    }

    .key-row {
        gap: 2px;
    }

    .key {
        height: 29px;
        padding: 2px;
        font-size: 8px;
    }

    .key.w-1-5 {
        flex: 1.4;
    }

    .key.w-1-75 {
        flex: 1.6;
    }

    .key.w-2 {
        flex: 1.8;
    }

    .key.w-2-25 {
        flex: 2;
    }

    .top-char {
        font-size: 6px;
    }

    .bottom-char {
        font-size: 9px;
    }

    .space-key,
    .modifier-key {
        height: 27px;
        font-size: 7px;
    }

    .hand-svg {
        height: 105px;
    }

    .hand-title span {
        font-size: 8px;
    }

    .finger-legend {
        gap: 6px 9px;
    }

    .legend-item {
        font-size: 7px;
    }

    .app-footer {
        flex-direction: column;
        text-align: center;
        gap: 3px;
    }

}


/* =========================================================
   28. RESPONSIVE — VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .brand-text p {
        font-size: 7px;
    }

    .control-btn {
        font-size: 9px;
    }

    .control-btn span {
        font-size: 9px;
    }

    .stat-card {
        gap: 6px;
    }

    .stat-card h2 {
        font-size: 16px;
    }

    .duration-btn,
    .category-btn {
        padding: 4px 5px;
        font-size: 9px;
    }

    .key {
        height: 25px;
        font-size: 7px;
    }

    .space-key,
    .modifier-key {
        height: 24px;
    }

    .hand-svg {
        height: 90px;
    }

    .nav-btn {
        min-width: 90px;
    }

}


/* =========================================================
   29. SHORT SCREEN — COMPACT DESKTOP
========================================================= */

@media (min-width: 801px) and (max-height: 850px) {

    .app-container {
        padding-top: 9px;
    }

    .top-header {
        min-height: 55px;
        padding: 7px 12px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .stats-section {
        margin: 9px 0;
        gap: 8px;
    }

    .stat-card {
        min-height: 56px;
        padding: 7px 12px;
    }

    .stat-icon {
        width: 31px;
        height: 31px;
    }

    .practice-section,
    .keyboard-section {
        padding: 11px;
    }

    .section-heading {
        margin-bottom: 7px;
    }

    .practice-mode-tabs {
        margin-bottom: 7px;
    }

    .practice-settings {
        min-height: 38px;
        padding: 6px 9px;
        margin-bottom: 7px;
    }

    .practice-actions {
        margin-bottom: 7px;
    }

    .paragraph-box {
        padding: 9px 12px;
    }

    .paragraph-display {
        min-height: 45px;
        max-height: 75px;
    }

    #typingInput {
        height: 40px;
        min-height: 40px;
        margin-top: 7px;
    }

    .keyboard-section {
        margin-top: 9px;
    }

    .keyboard {
        padding: 7px;
        gap: 4px;
    }

    .key {
        height: 29px;
    }

    .space-key,
    .modifier-key {
        height: 28px;
    }

    .hand-card {
        padding: 6px 5px;
    }

    .hand-svg {
        height: 105px;
    }

    .active-finger-info {
        padding: 6px 9px;
        margin-top: 7px;
    }

    .finger-legend {
        margin-top: 7px;
        gap: 5px 10px;
    }

    .bottom-navigation {
        margin-top: 8px;
    }

    .app-footer {
        padding-top: 8px;
    }

}


/* =========================================================
   30. ACCESSIBILITY — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   TYPEPRO — COMPACT INTERFACE OVERRIDE
   VERSION 9.0
   Add this code at the END of style.css
========================================================= */

/* GLOBAL */
body {
    font-size: 12px;
    line-height: 1.35;
}

.app-container {
    width: min(100% - 24px, 1250px);
    padding: 8px 0 6px;
}

/* HEADER */
.top-header {
    min-height: 48px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 10px;
}

.brand {
    gap: 7px;
}

.brand-icon {
    width: 31px;
    height: 31px;
    font-size: 17px;
    border-radius: 7px;
}

.brand-text h1 {
    font-size: 17px;
}

.brand-text p {
    margin-top: 1px;
    font-size: 7px;
}

.header-controls {
    gap: 5px;
}

.control-btn {
    min-height: 29px;
    padding: 0 8px;
    font-size: 10px;
}

/* STATISTICS */
.stats-section {
    gap: 7px;
    margin: 7px 0;
}

.stat-card {
    min-height: 48px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 8px;
}

.stat-icon {
    width: 27px;
    height: 27px;
    font-size: 13px;
    border-radius: 6px;
}

.stat-card p {
    font-size: 8px;
}

.stat-card h2 {
    font-size: 17px;
}

/* MAIN SECTIONS */
.practice-section,
.keyboard-section,
.games-section {
    padding: 9px;
    border-radius: 10px;
}

.section-heading,
.games-header {
    margin-bottom: 6px;
}

.section-heading h2,
.games-header h2 {
    font-size: 14px;
}

.section-heading p,
.games-header p {
    font-size: 9px;
}

/* MODE TABS */
.practice-mode-tabs {
    gap: 5px;
    margin-bottom: 6px;
}

.mode-tab {
    min-height: 27px;
    padding: 4px 10px;
    font-size: 10px;
}

/* SETTINGS */
.practice-settings {
    min-height: 34px;
    padding: 5px 8px;
    margin-bottom: 6px;
    gap: 8px;
    border-radius: 8px;
}

.setting-group {
    gap: 6px;
}

.setting-label {
    font-size: 8px;
}

.duration-options,
.free-category-options {
    gap: 4px;
}

.duration-btn,
.category-btn {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 9px;
}

.practice-select {
    min-height: 25px;
    min-width: 110px;
    padding: 3px 7px;
    font-size: 9px;
}

.custom-text-input {
    width: 220px;
    min-height: 29px;
    padding: 5px 7px;
    font-size: 9px;
}

.small-action-btn {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 9px;
}

/* ACTION BUTTONS */
.practice-actions {
    gap: 5px;
    margin-bottom: 6px;
}

.start-practice-btn,
.secondary-action-btn,
.restart-btn {
    min-height: 27px;
    padding: 4px 10px;
    font-size: 9px;
}

/* PARAGRAPH */
.paragraph-box {
    padding: 8px 10px;
    border-radius: 8px;
}

.paragraph-topline {
    margin-bottom: 5px;
}

.paragraph-topline span {
    font-size: 8px;
}

.paragraph-display {
    min-height: 38px;
    max-height: 65px;
    font-size: 12px;
    line-height: 1.6;
}

.progress-area {
    gap: 7px;
    margin-top: 6px;
}

.progress-area > span {
    min-width: 75px;
    font-size: 8px;
}

.progress-track {
    height: 4px;
}

/* TYPING INPUT */
#typingInput {
    height: 35px;
    min-height: 35px;
    max-height: 55px;
    margin-top: 6px;
    padding: 7px 9px;
    font-size: 11px;
}

.practice-footer {
    margin-top: 5px;
}

.typing-hint {
    font-size: 8px;
}

/* KEYBOARD SECTION */
.keyboard-section {
    margin-top: 8px;
}

.keyboard-section .section-heading {
    margin-bottom: 6px;
}

.typing-guide-wrapper {
    grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.7fr);
    gap: 9px;
}

/* VIRTUAL KEYBOARD */
.keyboard {
    padding: 6px;
    gap: 3px;
    border-radius: 8px;
}

.key-row {
    gap: 3px;
}

.key {
    height: 25px;
    padding: 2px;
    font-size: 8px;
    border-radius: 4px;
}

.key.w-1-5 {
    flex: 1.5;
}

.key.w-1-75 {
    flex: 1.75;
}

.key.w-2 {
    flex: 2;
}

.key.w-2-25 {
    flex: 2.25;
}

.top-char {
    font-size: 6px;
}

.bottom-char {
    font-size: 9px;
}

.space-key,
.modifier-key {
    height: 24px;
    font-size: 7px;
}

/* HAND GUIDE */
.hands-container {
    gap: 6px;
}

.hand-card {
    padding: 5px 4px;
    border-radius: 8px;
}

.hand-title {
    margin-bottom: 0;
}

.hand-title span {
    font-size: 8px;
}

.hand-title small {
    font-size: 7px;
}

.hand-svg {
    max-width: 115px;
    height: 85px;
}

.hand-status {
    min-height: 14px;
    font-size: 8px;
}

/* ACTIVE FINGER */
.active-finger-info {
    gap: 7px;
    padding: 6px 8px;
    margin-top: 6px;
}

.active-indicator {
    width: 7px;
    height: 7px;
}

.active-finger-info span {
    font-size: 7px;
}

.active-finger-info h3 {
    font-size: 10px;
}

.active-finger-info p {
    font-size: 8px;
}

/* FINGER LEGEND */
.finger-legend {
    gap: 5px 9px;
    margin-top: 6px;
}

.legend-item {
    font-size: 7px;
}

.legend-color {
    width: 7px;
    height: 7px;
}

/* NAVIGATION */
.bottom-navigation {
    gap: 5px;
    margin-top: 8px;
    padding: 4px;
}

.nav-btn {
    min-width: 90px;
    min-height: 30px;
    padding: 4px 9px;
    font-size: 9px;
}

.nav-icon {
    font-size: 12px;
}

/* FOOTER */
.app-footer {
    padding: 7px 2px 2px;
    font-size: 8px;
}

/* GAMES */
.games-section {
    min-height: 230px;
}

.games-placeholder {
    min-height: 190px;
    padding: 20px 15px;
}

.games-placeholder-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 9px;
    font-size: 23px;
}

.games-placeholder h2 {
    font-size: 16px;
}

.games-placeholder p {
    font-size: 10px;
}

/* DESKTOP — SHORT SCREEN */
@media (min-width: 801px) and (max-height: 850px) {
    .app-container {
        padding-top: 5px;
    }

    .stats-section {
        margin: 5px 0;
    }

    .practice-section,
    .keyboard-section {
        padding: 7px;
    }

    .paragraph-display {
        min-height: 32px;
        max-height: 52px;
    }

    .key {
        height: 23px;
    }

    .space-key,
    .modifier-key {
        height: 22px;
    }

    .hand-svg {
        height: 75px;
    }

    .active-finger-info {
        padding: 5px 7px;
        margin-top: 4px;
    }

    .finger-legend {
        margin-top: 4px;
    }
}

/* TABLET */
@media (max-width: 800px) {
    .typing-guide-wrapper {
        grid-template-columns: 1fr;
    }

    .hand-svg {
        max-width: 135px;
        height: 100px;
    }

    .keyboard {
        padding: 5px;
    }

    .key {
        height: 27px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .app-container {
        width: calc(100% - 12px);
        padding-top: 5px;
    }

    .top-header {
        padding: 7px;
    }

    .stats-section {
        gap: 5px;
        margin: 6px 0;
    }

    .stat-card {
        min-height: 44px;
        padding: 5px 7px;
    }

    .practice-section,
    .keyboard-section,
    .games-section {
        padding: 8px;
    }

    .paragraph-display {
        min-height: 35px;
        max-height: 65px;
        font-size: 11px;
    }

    .key {
        height: 25px;
        font-size: 7px;
    }

    .space-key,
    .modifier-key {
        height: 23px;
    }

    .hand-svg {
        height: 90px;
    }

    .nav-btn {
        min-width: 85px;
        min-height: 29px;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 380px) {
    .key {
        height: 22px;
        font-size: 6px;
    }

    .space-key,
    .modifier-key {
        height: 21px;
    }

    .hand-svg {
        height: 75px;
    }
}

/* =====================================================
   TYPEPRO — EXTRA COMPACT MODE
   VERSION 10.0
===================================================== */

body {
    font-size: 10px;
    line-height: 1.25;
}

.app-container {
    width: min(100% - 16px, 1100px);
    padding: 4px 0;
}

/* HEADER */
.top-header {
    min-height: 38px;
    padding: 4px 8px;
    gap: 5px;
    border-radius: 7px;
}

.brand {
    gap: 5px;
}

.brand-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
    border-radius: 5px;
}

.brand-text h1 {
    font-size: 14px;
}

.brand-text p {
    font-size: 6px;
    margin-top: 0;
}

.header-controls {
    gap: 4px;
}

.control-btn {
    min-height: 24px;
    padding: 0 6px;
    font-size: 8px;
}

/* STATISTICS */
.stats-section {
    gap: 5px;
    margin: 5px 0;
}

.stat-card {
    min-height: 36px;
    padding: 4px 7px;
    gap: 6px;
    border-radius: 6px;
}

.stat-icon {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.stat-card p {
    font-size: 7px;
}

.stat-card h2 {
    font-size: 14px;
}

/* SECTIONS */
.practice-section,
.keyboard-section,
.games-section {
    padding: 6px;
    border-radius: 7px;
}

.section-heading,
.games-header {
    margin-bottom: 4px;
}

.section-heading h2,
.games-header h2 {
    font-size: 12px;
}

.section-heading p,
.games-header p {
    font-size: 8px;
}

/* MODE TABS */
.practice-mode-tabs {
    gap: 4px;
    margin-bottom: 4px;
}

.mode-tab {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 8px;
}

/* SETTINGS */
.practice-settings {
    min-height: 27px;
    padding: 4px 6px;
    margin-bottom: 4px;
    gap: 6px;
}

.setting-group {
    gap: 4px;
}

.setting-label {
    font-size: 7px;
}

.duration-options,
.free-category-options {
    gap: 3px;
}

.duration-btn,
.category-btn {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 8px;
}

.practice-select {
    min-height: 22px;
    min-width: 95px;
    padding: 2px 5px;
    font-size: 8px;
}

.custom-text-input {
    width: 180px;
    min-height: 25px;
    padding: 4px 6px;
    font-size: 8px;
}

.small-action-btn {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 8px;
}

/* ACTIONS */
.practice-actions {
    gap: 4px;
    margin-bottom: 4px;
}

.start-practice-btn,
.secondary-action-btn,
.restart-btn {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 8px;
}

/* PARAGRAPH */
.paragraph-box {
    padding: 6px 8px;
    border-radius: 6px;
}

.paragraph-topline {
    margin-bottom: 3px;
}

.paragraph-topline span {
    font-size: 7px;
}

.paragraph-display {
    min-height: 28px;
    max-height: 48px;
    font-size: 10px;
    line-height: 1.45;
}

.progress-area {
    gap: 5px;
    margin-top: 4px;
}

.progress-area > span {
    min-width: 65px;
    font-size: 7px;
}

.progress-track {
    height: 3px;
}

/* INPUT */
#typingInput {
    height: 29px;
    min-height: 29px;
    max-height: 45px;
    margin-top: 4px;
    padding: 5px 7px;
    font-size: 10px;
}

.practice-footer {
    margin-top: 3px;
}

.typing-hint {
    font-size: 7px;
}

/* KEYBOARD */
.keyboard-section {
    margin-top: 5px;
}

.keyboard-section .section-heading {
    margin-bottom: 4px;
}

.typing-guide-wrapper {
    grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.65fr);
    gap: 6px;
}

.keyboard {
    padding: 4px;
    gap: 2px;
    border-radius: 6px;
}

.key-row {
    gap: 2px;
}

.key {
    height: 20px;
    padding: 1px;
    font-size: 7px;
    border-radius: 3px;
}

.top-char {
    font-size: 5px;
}

.bottom-char {
    font-size: 8px;
}

.space-key,
.modifier-key {
    height: 19px;
    font-size: 6px;
}

/* HAND GUIDE */
.hands-container {
    gap: 4px;
}

.hand-card {
    padding: 3px;
    border-radius: 6px;
}

.hand-title {
    margin-bottom: 0;
}

.hand-title span {
    font-size: 7px;
}

.hand-title small {
    font-size: 6px;
}

.hand-svg {
    max-width: 95px;
    height: 65px;
}

.hand-status {
    min-height: 11px;
    font-size: 7px;
}

/* FINGER INFO */
.active-finger-info {
    gap: 5px;
    padding: 4px 6px;
    margin-top: 4px;
}

.active-indicator {
    width: 6px;
    height: 6px;
}

.active-finger-info span {
    font-size: 6px;
}

.active-finger-info h3 {
    font-size: 8px;
}

.active-finger-info p {
    font-size: 7px;
}

/* LEGEND */
.finger-legend {
    gap: 4px 7px;
    margin-top: 4px;
}

.legend-item {
    font-size: 6px;
}

.legend-color {
    width: 6px;
    height: 6px;
}

/* NAVIGATION */
.bottom-navigation {
    gap: 4px;
    margin-top: 5px;
    padding: 3px;
}

.nav-btn {
    min-width: 75px;
    min-height: 25px;
    padding: 3px 6px;
    font-size: 8px;
}

.nav-icon {
    font-size: 10px;
}

/* FOOTER */
.app-footer {
    padding: 4px 2px 1px;
    font-size: 7px;
}

/* SHORT DESKTOP SCREEN */
@media (min-width: 801px) and (max-height: 850px) {
    .app-container {
        padding-top: 2px;
    }

    .stats-section {
        margin: 3px 0;
    }

    .practice-section,
    .keyboard-section {
        padding: 5px;
    }

    .paragraph-display {
        min-height: 23px;
        max-height: 38px;
    }

    .key {
        height: 18px;
    }

    .space-key,
    .modifier-key {
        height: 17px;
    }

    .hand-svg {
        height: 55px;
    }

    .active-finger-info {
        padding: 3px 5px;
        margin-top: 3px;
    }

    .finger-legend {
        margin-top: 3px;
    }
}

/* TABLET */
@media (max-width: 800px) {
    .typing-guide-wrapper {
        grid-template-columns: 1fr;
    }

    .hand-svg {
        max-width: 110px;
        height: 75px;
    }

    .key {
        height: 22px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .app-container {
        width: calc(100% - 8px);
        padding-top: 3px;
    }

    .top-header {
        padding: 5px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .stat-card {
        min-height: 33px;
        padding: 3px 5px;
    }

    .practice-section,
    .keyboard-section {
        padding: 5px;
    }

    .paragraph-display {
        font-size: 9px;
        min-height: 25px;
        max-height: 45px;
    }

    .key {
        height: 20px;
        font-size: 6px;
    }

    .space-key,
    .modifier-key {
        height: 18px;
    }

    .hand-svg {
        height: 65px;
    }
}

/* FIX — TYPING INPUT VISIBILITY AND ACCESSIBILITY */

#typingInput {
    display: block !important;
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    resize: none;
    pointer-events: auto !important;
    user-select: text !important;
    opacity: 1;
}

#typingInput:disabled {
    cursor: not-allowed;
}

#typingInput:not(:disabled) {
    cursor: text;
}

/* =========================================================
   TYPEPRO — SLIGHTLY LARGER INTERFACE
   VERSION 12.0
========================================================= */

.app-container {
    max-width: 1240px;
    padding: 16px;
}

/* Header */
.top-header {
    padding: 13px 16px;
}

.brand-icon {
    font-size: 25px;
}

.brand-text h1 {
    font-size: 22px;
}

.brand-text p {
    font-size: 9px;
}

.control-btn {
    padding: 9px 12px;
    font-size: 12px;
}

/* Statistics */
.stats-section {
    gap: 12px;
    margin: 14px 0;
}

.stat-card {
    padding: 12px 14px;
}

.stat-card p {
    font-size: 10px;
}

.stat-card h2 {
    font-size: 21px;
}

/* Section headings */
.section-heading h2 {
    font-size: 18px;
}

.section-heading p {
    font-size: 11px;
}

/* Practice controls */
.mode-tab {
    padding: 10px 15px;
    font-size: 12px;
}

.setting-label {
    font-size: 10px;
}

.duration-btn,
.category-btn {
    padding: 9px 13px;
    font-size: 11px;
}

.practice-select {
    min-height: 36px;
    font-size: 12px;
}

.practice-actions button {
    min-height: 36px;
    padding: 9px 14px;
    font-size: 12px;
}

/* Paragraph */
.paragraph-box {
    padding: 14px 16px;
}

.paragraph-display {
    font-size: 15px;
    line-height: 1.8;
    min-height: 75px;
}

/* Typing input */
#typingInput {
    min-height: 42px;
    font-size: 14px;
    padding: 11px 13px;
}

/* Keyboard */
.keyboard {
    gap: 6px;
}

.key-row {
    gap: 5px;
}

.key {
    min-height: 35px;
    font-size: 12px;
}

.key.dual {
    font-size: 11px;
}

/* Hands guide */
.hand-card {
    padding: 12px;
}

.hand-svg {
    max-height: 175px;
}

.hand-title {
    font-size: 11px;
}

.hand-status {
    font-size: 11px;
}

/* Active finger */
.active-finger-info {
    padding: 12px 14px;
}

.active-finger-info h3 {
    font-size: 14px;
}

.active-finger-info p {
    font-size: 11px;
}

/* Finger legend */
.finger-legend {
    gap: 10px 14px;
}

.legend-item {
    font-size: 10px;
}

/* Navigation and footer */
.bottom-navigation {
    padding: 9px;
}

.nav-btn {
    font-size: 12px;
}

.app-footer {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .stats-section {
        gap: 8px;
    }

    .paragraph-display {
        font-size: 13px;
    }

    .key {
        min-height: 29px;
        font-size: 9px;
    }
}

/* END EXTRA COMPACT MODE */

/* END COMPACT OVERRIDE */

/* =========================================================
   END OF TYPEPRO STYLE.CSS VERSION 8.0
========================================================= */
