@charset "utf-8";
/* CSS Document */
:root {
  --bg-primary: #0a0a0f; --bg-secondary: #111118; --bg-tertiary: #1a1a2e;
  --key-bg: #2d2d3f; --key-text: #e0e0e0; --key-secondary: #888; --key-border: #444;
  --key-active-bg: #2ecc71; --key-active-border: #a8e06c; --key-pressed-bg: #3498db; --key-pressed-border: #5dade2;
  --key-history-bg: #2b5797; --key-history-border: #1e3f6f; --key-history-text: #e0e0e0;
  --dashboard-bg: #0d1b2a; --dashboard-text: #e0e0e0; --dashboard-accent: #e94560;
  --led-on: #e94560; --led-off: #333; --header-bg: #111118; --btn-bg: #0f3460; --btn-text: #e0e0e0;
  --select-bg: #1a1a2e; --select-text: #e0e0e0; --text-primary: #e0e0e0; --text-secondary: #aaa;
  --shadow-color: rgba(0,0,0,0.5); --key-depth: 4px; --key-depth-active: 1px; --key-shadow: rgba(0,0,0,0.35);
  --key-inner-light: rgba(255,255,255,0.08); --key-inner-dark: rgba(0,0,0,0.15);
  --key-font: 'Segoe UI', sans-serif; --key-texture: none; --blend-mode: normal;
  --container-width: 1600px; --info-bg: #0a0a1a; --info-border: #1a1a3e; --info-hover: #12122a;
  --info-title: #e94560; --info-text: #b0b0d0; --info-list: #9090b0;
  --mouse-accent: #00d4ff; --mouse-accent2: #ff006e; --mouse-accent3: #8338ec;
  --tab-active-glow: 0 0 12px var(--dashboard-accent), 0 0 24px rgba(233,69,96,0.3);
}

[data-theme="light"] {
  --bg-primary: #f0f2f5; --bg-secondary: #ffffff; --bg-tertiary: #e8eaed;
  --key-bg: #ffffff; --key-text: #333333; --key-secondary: #888; --key-border: #cccccc;
  --key-active-bg: #2ecc71; --key-active-border: #a8e06c; --key-pressed-bg: #3498db; --key-pressed-border: #5dade2;
  --key-history-bg: #b3d9ff; --key-history-border: #89b8e6; --key-history-text: #1a3a5c;
  --dashboard-bg: #ffffff; --dashboard-text: #333333; --dashboard-accent: #e94560;
  --led-on: #e94560; --led-off: #cccccc; --header-bg: #ffffff; --btn-bg: #e8eaed; --btn-text: #333333;
  --select-bg: #ffffff; --select-text: #333333; --text-primary: #333333; --text-secondary: #666;
  --shadow-color: rgba(0,0,0,0.15); --key-shadow: rgba(0,0,0,0.18);
  --key-inner-light: rgba(255,255,255,0.9); --key-inner-dark: rgba(0,0,0,0.05);
  --info-bg: #f8f9fa; --info-border: #dee2e6; --info-hover: #e9ecef; --info-title: #d63384; --info-text: #495057; --info-list: #6c757d;
}
[data-theme="dark"] {
  --bg-primary: #0d0d0d; --bg-secondary: #1a1a1a; --bg-tertiary: #2a2a2a;
  --key-bg: #2a2a2a; --key-text: #e0e0e0; --key-secondary: #888; --key-border: #444;
  --key-active-bg: #2ecc71; --key-active-border: #a8e06c; --key-pressed-bg: #3498db; --key-pressed-border: #5dade2;
  --key-history-bg: #2b5797; --key-history-border: #1e3f6f; --key-history-text: #e0e0e0;
  --dashboard-bg: #111111; --dashboard-text: #e0e0e0; --dashboard-accent: #e94560;
  --led-on: #e94560; --led-off: #333; --header-bg: #1a1a1a; --btn-bg: #2a2a2a; --btn-text: #e0e0e0;
  --select-bg: #1a1a1a; --select-text: #e0e0e0; --text-primary: #e0e0e0; --text-secondary: #aaa;
  --shadow-color: rgba(0,0,0,0.6); --key-shadow: rgba(0,0,0,0.4);
  --info-bg: #0a0a0a; --info-border: #222; --info-hover: #151515; --info-title: #ff6b6b; --info-text: #bbb; --info-list: #999;
}
[data-theme="ocean"] {
  --bg-primary: #0a1628; --bg-secondary: #0d2137; --bg-tertiary: #14455f;
  --key-bg: #1a5276; --key-text: #d4e6f1; --key-secondary: #7fb3cc; --key-border: #2471a3;
  --key-active-bg: #1abc9c; --key-active-border: #48c9b0; --key-pressed-bg: #3498db; --key-pressed-border: #5dade2;
  --key-history-bg: #1d6a7a; --key-history-border: #14505e; --key-history-text: #d4e6f1;
  --dashboard-bg: #071e30; --dashboard-text: #d4e6f1; --dashboard-accent: #1abc9c;
  --led-on: #1abc9c; --led-off: #1a3a4a; --header-bg: #0d2137; --btn-bg: #14455f; --btn-text: #d4e6f1;
  --select-bg: #0d2137; --select-text: #d4e6f1; --text-primary: #d4e6f1; --text-secondary: #7fb3cc;
  --shadow-color: rgba(0,0,0,0.5); --key-shadow: rgba(0,0,0,0.3);
  --info-bg: #051020; --info-border: #0f3050; --info-hover: #0a2040; --info-title: #48c9b0; --info-text: #a0d0e0; --info-list: #6090b0;
}
[data-theme="sunset"] {
  --bg-primary: #2d1b36; --bg-secondary: #3d2247; --bg-tertiary: #4e2c5a;
  --key-bg: #5a3470; --key-text: #f0d9e8; --key-secondary: #c9a0c4; --key-border: #7d4d94;
  --key-active-bg: #e94560; --key-active-border: #ff6b81; --key-pressed-bg: #f39c12; --key-pressed-border: #f7b731;
  --key-history-bg: #d48a8a; --key-history-border: #b56b6b; --key-history-text: #f0d9e8;
  --dashboard-bg: #1f1228; --dashboard-text: #f0d9e8; --dashboard-accent: #e94560;
  --led-on: #e94560; --led-off: #3d2247; --header-bg: #3d2247; --btn-bg: #4e2c5a; --btn-text: #f0d9e8;
  --select-bg: #3d2247; --select-text: #f0d9e8; --text-primary: #f0d9e8; --text-secondary: #c9a0c4;
  --shadow-color: rgba(0,0,0,0.5); --key-shadow: rgba(0,0,0,0.25);
  --info-bg: #1a0a1e; --info-border: #4a2a4a; --info-hover: #3a1a3a; --info-title: #ff6b81; --info-text: #e0b0d0; --info-list: #c090b0;
}
[data-theme="retro"] {
  --bg-primary: #1c1c1c; --bg-secondary: #2b2b2b; --bg-tertiary: #383838;
  --key-bg: #383838; --key-text: #c8c8c8; --key-secondary: #888; --key-border: #555;
  --key-active-bg: #ffcc00; --key-active-border: #ffe066; --key-pressed-bg: #ff6600; --key-pressed-border: #ff8833;
  --key-history-bg: #a88830; --key-history-border: #8a6e20; --key-history-text: #1c1c1c;
  --dashboard-bg: #141414; --dashboard-text: #c8c8c8; --dashboard-accent: #ffcc00;
  --led-on: #ffcc00; --led-off: #333; --header-bg: #2b2b2b; --btn-bg: #383838; --btn-text: #c8c8c8;
  --select-bg: #2b2b2b; --select-text: #c8c8c8; --text-primary: #c8c8c8; --text-secondary: #888;
  --shadow-color: rgba(0,0,0,0.6); --key-shadow: rgba(0,0,0,0.4);
  --info-bg: #0f0f0f; --info-border: #333; --info-hover: #1a1a1a; --info-title: #ffe066; --info-text: #c0c0c0; --info-list: #999;
}
[data-theme="custom"] {
  --bg-primary: var(--custom-bg, #1a1a2e); --bg-secondary: var(--custom-bg2, #16213e); --bg-tertiary: var(--custom-bg3, #0f3460);
  --key-bg: var(--custom-key, #2d2d3f); --key-text: var(--custom-text, #e0e0e0); --key-secondary: var(--custom-secondary, #888); --key-border: var(--custom-border, #444);
  --key-active-bg: var(--custom-active, #2ecc71); --key-active-border: var(--custom-active-border, #a8e06c); --key-pressed-bg: var(--custom-pressed, #3498db); --key-pressed-border: var(--custom-pressed-border, #5dade2);
  --key-history-bg: var(--custom-history-bg, #2b5797); --key-history-border: var(--custom-history-border, #1e3f6f); --key-history-text: var(--custom-text, #e0e0e0);
  --dashboard-bg: var(--custom-dash, #0d1b2a); --dashboard-text: var(--custom-text, #e0e0e0); --dashboard-accent: var(--custom-accent, #e94560);
  --led-on: var(--custom-led, #e94560); --led-off: var(--custom-led-off, #333);
  --header-bg: var(--custom-bg2, #16213e); --btn-bg: var(--custom-bg3, #0f3460); --btn-text: var(--custom-text, #e0e0e0);
  --select-bg: var(--custom-bg, #1a1a2e); --select-text: var(--custom-text, #e0e0e0);
  --text-primary: var(--custom-text, #e0e0e0); --text-secondary: var(--custom-secondary, #aaa); --shadow-color: var(--custom-shadow, rgba(0,0,0,0.4));
  --key-font: var(--custom-font, 'Segoe UI', sans-serif);
  --info-bg: var(--custom-bg3, #0f3460); --info-border: var(--custom-border, #444); --info-hover: var(--custom-bg, #1a1a2e); --info-title: var(--custom-accent, #e94560); --info-text: var(--custom-text, #e0e0e0); --info-list: var(--custom-secondary, #aaa);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--key-font); background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; transition: background 0.3s, color 0.3s; display: flex; flex-direction: column; }

.dashboard { background: var(--dashboard-bg); margin: 15px auto; padding: 18px 30px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; box-shadow: 0 4px 20px var(--shadow-color); border: 1px solid var(--key-border); width: 100%; max-width: var(--container-width); flex-shrink: 0; position: relative; z-index: 10; }
.dash-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); transition: background 0.2s; }
.dash-item:hover { background: rgba(255,255,255,0.06); }
.dash-item .dash-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; text-align: center; line-height: 1.3; }
.dash-item .dash-value { font-size: 1.35rem; font-weight: 700; color: var(--dashboard-accent); font-family: 'Courier New', monospace; text-align: center; line-height: 1.2; word-break: break-all; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-divider { width: 1px; height: 40px; background: var(--key-border); flex-shrink: 0; }


.header { background: var(--header-bg); padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; box-shadow: 0 4px 20px var(--shadow-color); border-bottom: 2px solid var(--bg-tertiary); flex-shrink: 0; z-index: 100; }
.header h1 { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--dashboard-accent), #e94560); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 1px; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.controls label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.controls select, .controls button { padding: 8px 14px; border: 1px solid var(--key-border); border-radius: 8px; background: var(--select-bg); color: var(--select-text); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.controls select:hover, .controls button:hover { border-color: var(--dashboard-accent); box-shadow: 0 0 8px var(--focus-ring); }
.controls button.active { background: var(--dashboard-accent); color: white; border-color: var(--dashboard-accent); }

.custom-theme-panel { display: none; position: absolute; top: 70px; right: 20px; background: var(--bg-secondary); border: 1px solid var(--key-border); border-radius: 12px; padding: 20px; z-index: 1000; box-shadow: 0 8px 32px var(--shadow-color); min-width: 300px; }
.custom-theme-panel.show { display: block; }
.custom-theme-panel h3 { margin-bottom: 12px; font-size: 1rem; color: var(--text-primary); border-bottom: 1px solid var(--key-border); padding-bottom: 8px; }
.custom-theme-panel .section-title { margin: 15px 0 8px 0; font-size: 0.85rem; color: var(--dashboard-accent); font-weight: 700; text-transform: uppercase; }
.custom-theme-panel .color-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.custom-theme-panel .color-row label { font-size: 0.8rem; color: var(--text-secondary); min-width: 100px; }
.custom-theme-panel input[type="color"] { width: 40px; height: 30px; border: none; border-radius: 6px; cursor: pointer; background: transparent; }
.custom-theme-panel input[type="file"] { font-size: 0.8rem; width: 160px; }
.custom-theme-panel input[type="text"] { flex: 1; padding: 6px; border: 1px solid var(--key-border); border-radius: 4px; background: var(--bg-primary); color: var(--text-primary); }
.custom-theme-panel .apply-btn { width: 100%; padding: 8px; margin-top: 15px; background: var(--dashboard-accent); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.cookie-banner { position: fixed; bottom: -400px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px; background: var(--bg-secondary); border: 2px solid var(--key-border); border-radius: 16px; padding: 24px; z-index: 10000; box-shadow: 0 -8px 32px var(--shadow-color); transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); display: flex; flex-direction: column; gap: 16px; }
.cookie-banner.show { bottom: 20px; }
.cookie-banner h3 { color: var(--info-title); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.cookie-banner p { color: var(--info-text); font-size: 0.85rem; line-height: 1.6; }
.cookie-banner .cookie-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cookie-banner .cookie-links button { padding: 10px 20px; border: 1px solid var(--key-border); border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.cookie-banner .cookie-accept { background: var(--dashboard-accent); color: white; border-color: var(--dashboard-accent); }
.cookie-banner .cookie-accept:hover { opacity: 0.85; }
.cookie-banner .cookie-settings { background: transparent; color: var(--text-secondary); border-color: var(--key-border); font-size: 0.8rem; }
.cookie-banner .cookie-settings:hover { color: var(--text-primary); }
.privacy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 20000; }
.privacy-modal.show { display: flex; align-items: center; justify-content: center; }
.privacy-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.privacy-content { position: relative; background: var(--bg-secondary); border: 1px solid var(--key-border); border-radius: 16px; padding: 30px; max-width: 800px; width: 90%; max-height: 85vh; overflow-y: auto; z-index: 1; box-shadow: 0 16px 48px var(--shadow-color); }
.privacy-content h2 { color: var(--info-title); font-size: 1.4rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); }
.privacy-content h3 { color: var(--dashboard-accent); font-size: 1.1rem; margin: 20px 0 8px 0; }
.privacy-content p, .privacy-content li { color: var(--info-text); font-size: 0.88rem; line-height: 1.65; margin-bottom: 8px; }
.privacy-content ul { padding-left: 20px; margin-bottom: 12px; }
.privacy-content .close-privacy { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; padding: 5px; }
.privacy-content .close-privacy:hover { color: var(--dashboard-accent); }

.tab-bar { max-width: var(--container-width); margin: 15px auto; padding: 0 20px; display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; }
.tab-btn { padding: 10px 20px; border: 1px solid var(--key-border); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; font-family: inherit; position: relative; overflow: visible; }
.tab-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.tab-btn.active { color: var(--dashboard-accent); background: var(--bg-primary); border-color: var(--dashboard-accent); border-bottom: 1px solid var(--bg-primary); box-shadow: var(--tab-active-glow); }
.tab-btn.active::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--dashboard-accent); border-radius: 0 0 3px 3px; box-shadow: 0 0 8px var(--dashboard-accent); }
.tab-panel { display: none; width: 100%; max-width: var(--container-width); margin: 0 auto 30px; padding: 0 20px; flex: 1; }
.tab-panel.active { display: block; }
.info-section { width: 100%; max-width: var(--container-width); margin: 30px auto; padding: 0 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; width: 100%; max-width: var(--container-width); margin: 0 auto; }
.info-card { background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 14px; padding: 24px; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.15); width: 100%; contain: layout style paint; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); background: var(--info-hover); }
.info-card h2 { color: var(--info-title); font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); display: flex; align-items: center; gap: 10px; }
.info-card h2 .icon { font-size: 1.4rem; }
.info-card h3 { color: var(--dashboard-accent); font-size: 1rem; margin: 14px 0 8px 0; }
.info-card p, .info-card li { color: var(--info-text); font-size: 0.9rem; line-height: 1.6; }
.info-card p { margin-bottom: 10px; }
.grid-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grid-list li { padding: 14px 16px; background: var(--info-hover); border-left: 3px solid var(--dashboard-accent); border-radius: 0 10px 10px 0; color: var(--info-text); font-size: 0.88rem; line-height: 1.55; transition: background 0.2s; contain: layout style; }
.grid-list li:hover { background: var(--bg-primary); }
.grid-list li strong { color: var(--info-title); font-weight: 700; display: block; margin-bottom: 4px; font-size: 0.92rem; }
.steps-list, .test-list, .reason-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.steps-list li, .test-list li, .reason-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--info-hover); border-radius: 10px; color: var(--info-text); font-size: 0.88rem; line-height: 1.55; contain: layout style; }
.steps-list li .step-num, .test-list li .step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; background: var(--dashboard-accent); color: white; border-radius: 50%; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.steps-list li strong, .test-list li strong, .reason-list li strong { color: var(--text-primary); }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } .grid-list { grid-template-columns: 1fr; } }
.wpm-container { width: 100%; max-width: var(--container-width); margin: 15px auto; padding: 0 20px; }
.wpm-card { background: var(--dashboard-bg); border: 1px solid var(--key-border); border-radius: 14px; padding: 30px; box-shadow: 0 4px 20px var(--shadow-color); }
.wpm-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.wpm-stat { text-align: center; padding: 12px 20px; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--key-border); min-width: 120px; }
.wpm-stat .stat-value { font-size: 2rem; font-weight: 700; color: var(--dashboard-accent); font-family: 'Courier New', monospace; }
.wpm-stat .stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.wpm-text-display { background: var(--bg-secondary); border: 1px solid var(--key-border); border-radius: 10px; padding: 20px; font-size: 1.2rem; line-height: 2; min-height: 120px; margin-bottom: 20px; font-family: 'Courier New', monospace; position: relative; overflow-y: auto; max-height: 200px; scroll-behavior: smooth; }
.wpm-text-display .char { transition: color 0.1s; }
.wpm-text-display .char.correct { color: var(--key-active-bg); }
.wpm-text-display .char.incorrect { color: var(--dashboard-accent); text-decoration: underline; }
.wpm-text-display .char.current { background: var(--dashboard-accent); color: white; border-radius: 2px; padding: 0 1px; }
.wpm-text-display .char.pending { color: var(--text-secondary); }
.wpm-input-area { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.wpm-input-area input, .wpm-input-area textarea { flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--key-border); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); font-size: 1rem; font-family: 'Courier New', monospace; outline: none; resize: vertical; }
.wpm-input-area input:focus, .wpm-input-area textarea:focus { border-color: var(--dashboard-accent); box-shadow: 0 0 8px var(--dashboard-accent); }
.wpm-btn { padding: 12px 24px; border: 1px solid var(--key-border); border-radius: 8px; background: var(--dashboard-accent); color: white; font-weight: 600; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; font-family: inherit; }
.wpm-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.wpm-btn.secondary { background: var(--btn-bg); color: var(--btn-text); }
.wpm-result { text-align: center; padding: 20px; background: var(--info-bg); border-radius: 10px; border: 1px solid var(--info-border); }
.wpm-result .final-wpm { font-size: 3rem; font-weight: 700; color: var(--dashboard-accent); }
.wpm-result .final-details { color: var(--info-text); font-size: 0.9rem; margin-top: 8px; }
.wpm-history { margin-top: 20px; }
.wpm-history h3 { color: var(--dashboard-accent); font-size: 1.1rem; margin-bottom: 12px; }
.wpm-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.wpm-history-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--key-border); border-radius: 8px; font-size: 0.85rem; }
.wpm-history-item .history-wpm { font-weight: 700; color: var(--dashboard-accent); font-size: 1.1rem; min-width: 60px; }
.wpm-history-item .history-details { flex: 1; color: var(--info-text); }
.wpm-history-item .history-date { color: var(--text-secondary); font-size: 0.75rem; }
.wpm-history-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; margin-top: 12px; padding: 10px; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--key-border); }
.wpm-history-bar { flex: 1; background: var(--dashboard-accent); border-radius: 4px 4px 0 0; min-width: 20px; transition: height 0.3s; position: relative; }
.wpm-history-bar:hover::after { content: attr(data-wpm); position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: var(--bg-primary); color: var(--text-primary); padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; white-space: nowrap; }
.ghosting-container { margin-top: 20px; }
.ghosting-container h3 { color: var(--dashboard-accent); font-size: 1.1rem; margin-bottom: 12px; }
.ghosting-test-area { background: var(--bg-secondary); border: 2px dashed var(--key-border); border-radius: 12px; padding: 20px; margin-bottom: 15px; text-align: center; }
.ghosting-test-area p { color: var(--info-text); margin-bottom: 10px; }
.ghosting-keys-display { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 15px 0; }
.ghosting-key { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--key-border); background: var(--bg-primary); color: var(--text-secondary); transition: all 0.2s; }
.ghosting-key.registered { background: var(--key-active-bg); color: white; border-color: var(--key-active-border); }
.ghosting-key.missed { background: var(--dashboard-accent); color: white; border-color: var(--dashboard-accent); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.ghosting-log { max-height: 200px; overflow-y: auto; background: var(--bg-primary); border: 1px solid var(--key-border); border-radius: 8px; padding: 10px; }
.ghosting-log-entry { padding: 6px 10px; border-bottom: 1px solid var(--key-border); font-size: 0.85rem; display: flex; justify-content: space-between; }
.ghosting-log-entry .status-registered { color: var(--key-active-bg); }
.ghosting-log-entry .status-missed { color: var(--dashboard-accent); }
.search-filter { margin: 15px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.search-filter input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--key-border); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); font-size: 0.9rem; }
.search-filter input:focus { border-color: var(--dashboard-accent); outline: none; }
.search-filter button { padding: 10px 20px; border: 1px solid var(--key-border); border-radius: 8px; background: var(--dashboard-accent); color: white; cursor: pointer; font-size: 0.9rem; }
.search-results-count { font-size: 0.85rem; color: var(--text-secondary); margin-top: 8px; }
.code-section { width: 100%; max-width: var(--container-width); margin: 30px auto; padding: 0 20px; }
.code-card { background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 14px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); width: 100%; }
.code-card h2 { color: var(--info-title); font-size: 1.3rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); display: flex; align-items: center; gap: 10px; }
.code-card h3 { color: var(--dashboard-accent); font-size: 1rem; margin: 14px 0 8px 0; }
.code-card p { color: var(--info-text); font-size: 0.9rem; line-height: 1.65; margin-bottom: 12px; }
.code-table-wrap { overflow-x: auto; margin: 15px 0; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.code-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.82rem; }
.code-table th { background: var(--bg-tertiary); color: var(--text-primary); padding: 10px 12px; text-align: center; font-weight: 600; border-bottom: 1px solid var(--info-border); }
.code-table td { padding: 7px 12px; text-align: center; border-bottom: 1px solid var(--info-border); color: var(--info-text); transition: background 0.15s; }
.code-table tr:hover td { background: var(--info-hover); }
.code-table .symbol-cell { font-size: 1.3rem; font-weight: 700; color: var(--dashboard-accent); }
.code-table .code-cell { font-family: 'Courier New', monospace; color: var(--text-primary); font-weight: 600; }
.code-table .name-cell { text-align: left; padding-left: 16px; }
.copy-btn { background: var(--btn-bg); border: 1px solid var(--key-border); border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 0.8rem; color: var(--text-primary); transition: all 0.2s; }
.copy-btn:hover { background: var(--dashboard-accent); color: white; }
@media (max-width: 768px) { .code-table { font-size: 0.72rem; } .code-table th, .code-table td { padding: 6px 8px; } }
.ad-container { width: 100%; max-width: 728px; height: 90px; min-height: 1px; margin: 15px auto; background: var(--info-bg); border: 2px dashed var(--info-border); display: flex; align-items: center; justify-content: center; color: var(--info-list); font-size: 0.9rem; border-radius: 8px; box-shadow: 0 2px 8px var(--shadow-color); contain: layout style; position: relative; overflow: hidden; }
.footer { background: var(--bg-secondary); padding: 25px; text-align: center; border-top: 1px solid var(--key-border); margin-top: 40px; color: var(--text-secondary); font-size: 0.85rem; flex-shrink: 0; width: 100%; }
.footer a { color: var(--dashboard-accent); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer a:hover { color: var(--text-primary); text-decoration: underline; }
.keyboard-wrapper { display: flex; flex-direction: row; justify-content: center; padding: 20px; gap: 8px; width: 100%; max-width: var(--container-width); margin: 0 auto; overflow: hidden; }
.keyboard-main { display: flex; flex-direction: column; gap: 5px; background: var(--bg-secondary); padding: 18px; border-radius: 16px; box-shadow: 0 8px 32px var(--shadow-color); border: 1px solid var(--key-border); flex: 1; min-width: 0; order: 1; }
.keyboard-right-panel { display: flex; flex-direction: column; gap: 15px; background: var(--bg-secondary); padding: 18px; border-radius: 16px; box-shadow: 0 8px 32px var(--shadow-color); border: 1px solid var(--key-border); width: 290px; flex-shrink: 0; order: 2; }
@media (max-width: 1299px) { .keyboard-wrapper { flex-direction: column; align-items: center; } .keyboard-main, .keyboard-right-panel { width: 100%; max-width: var(--container-width); } .keyboard-right-panel { order: 2; margin-left: 0; } .keyboard-main { order: 1; } }
.numpad-leds { padding: 15px 0 14px 0; display: flex; gap: 12px; justify-content: center; border-bottom: 1px solid var(--key-border); margin-bottom: 4px; }
.led-indicator { display: flex; align-items: center; gap: 5px; font-size: 0.65rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.led-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--led-off); transition: all 0.2s; box-shadow: 0 0 2px rgba(0,0,0,0.3); }
.led-dot.active { background: var(--led-on); box-shadow: 0 0 8px var(--led-on), 0 0 16px var(--led-on); }
.keyboard-row { display: flex; gap: 5px; justify-content: left; padding-left: 50px; }
.keyboard-numpad { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 46px); gap: 5px; width: 100%; padding-top: 75px; }
.multimedia-row { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--key-border); }
.media-icon { width: 16px; height: 16px; fill: currentColor; margin-bottom: 1px; }
.key { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--key-bg); background-image: linear-gradient(180deg, var(--key-inner-light) 0%, transparent 45%, var(--key-inner-dark) 100%), var(--key-texture); background-blend-mode: var(--blend-mode); font-family: var(--key-font); color: var(--key-text); border: 1px solid var(--key-border); border-top: 1px solid rgba(255,255,255,0.12); border-left: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(0,0,0,0.3); border-right: 1px solid rgba(0,0,0,0.2); border-radius: 8px; cursor: pointer; user-select: none; transition: background 0.1s, border-color 0.1s, box-shadow 0.1s; box-shadow: 0 var(--key-depth) 0 var(--key-shadow), 0 var(--key-depth) 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06); min-width: 46px; min-height: 46px; font-size: 0.82rem; font-weight: 600; text-align: center; padding: 4px 2px; text-shadow: 0 1px 1px rgba(0,0,0,0.25); transform-origin: top center; will-change: transform, box-shadow, background; backface-visibility: hidden; touch-action: manipulation; }
.key::after { content: ''; position: absolute; top: 1px; left: 1px; right: 1px; bottom: 1px; border-radius: 6px; mix-blend-mode: overlay; opacity: 0.4; pointer-events: none; transition: opacity 0.1s; }
.key:hover { background: var(--key-bg); background-image: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 45%, rgba(0,0,0,0.08) 100%); background-blend-mode: normal; box-shadow: 0 var(--key-depth) 0 var(--key-shadow), 0 var(--key-depth) 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1); transform: translateY(0); }
.key:hover::after { opacity: 0.6; }
.key:focus-visible { outline: 3px solid var(--dashboard-accent); outline-offset: 2px; }
.key .sec-label { font-size: 0.55rem; color: var(--key-secondary); margin-top: 1px; line-height: 1; display: block; }
.key.key-history { background: var(--key-history-bg) !important; background-image: none !important; background-blend-mode: normal !important; border-color: var(--key-history-border) !important; color: var(--key-history-text) !important; text-shadow: none !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.15) !important; transform: none !important; opacity: 0.85 !important; }
.key.key-history::after { opacity: 0 !important; }
.key.key-history:hover { opacity: 0.95 !important; background: var(--key-history-bg) !important; }
.key.key-history.active, .key.key-history.pressed { opacity: 1 !important; transform: translateY(2px) !important; box-shadow: 0 var(--key-depth-active) 0 var(--key-shadow), 0 var(--key-depth-active) 5px rgba(0,0,0,0.25), inset 0 1px 3px rgba(0,0,0,0.15) !important; }
.key.key-history.active { background: var(--key-active-bg) !important; border-color: var(--key-active-border) !important; }
.key.key-history.pressed { background: var(--key-pressed-bg) !important; border-color: var(--key-pressed-border) !important; }
@keyframes heldPulse { 0%, 100% { box-shadow: 0 var(--key-depth-active) 0 var(--key-shadow), 0 0 10px var(--dashboard-accent), 0 0 20px var(--dashboard-accent); transform: translateY(2px); } 50% { box-shadow: 0 var(--key-depth-active) 0 var(--key-shadow), 0 0 18px var(--dashboard-accent), 0 0 36px var(--dashboard-accent); transform: translateY(1px); } }
@keyframes heldVibrate { 0%, 100% { transform: translateY(2px) translateX(0); } 25% { transform: translateY(2px) translateX(-0.5px); } 75% { transform: translateY(2px) translateX(0.5px); } }
.key.held { animation: heldPulse 1.2s infinite ease-in-out, heldVibrate 0.12s infinite linear; background: var(--key-pressed-bg) !important; border-color: var(--dashboard-accent) !important; }
.key.wide-1-25 { width: 62px; } .key.wide-1-5 { width: 74px; } .key.wide-1-75 { width: 86px; }
.key.wide-2 { width: 98px; } .key.wide-2-25 { width: 110px; } .key.wide-2-5 { width: 122px; } .key.wide-2-75 { width: 134px; }
.key.wide-6-25 { width: 260px; } .key.wide-6-5 { width: 266px; } .key.space-bar { width: 285px; }
.key.tab-key { width: 124px; } .key.caps-key { width: 96px; }
.key.shift-left { width: 138px; } .key.shift-right { width: 134px; } .key.enter-key { width: 125px; }
.key.backspace-key { width: 85px; } .key.ctrl-key { width: 62px; }
.key.win-key { width: 56px; } .key.alt-key { width: 56px; } .key.fn-key { width: 56px; }
.key.menu-key { width: 56px; } .key.nav-key { width: 46px; } .key.fn-row { width: 46px; }
.key.numpad-key { width: 100%; height: 100%; border-radius: 8px; }
.numpad-tall { grid-row: span 2; } .numpad-wide { grid-column: span 2; }
.key.media-key { width: 44px; height: 38px; border-radius: 8px; font-size: 0.72rem; flex-direction: column; justify-content: center; }
.key .main-label { line-height: 1.2; font-size: 0.82rem; }
.fullscreen-mode .header { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,10,15,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--key-border); }
.fullscreen-mode .dashboard { display: flex; width: 100%; max-width: 100%; margin: 10px auto; padding: 12px 20px; border-radius: 10px; position: fixed; top: 65px; left: 50%; transform: translateX(-50%); z-index: 999; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.fullscreen-mode .ad-container { display: flex; position: fixed; top: 145px; left: 50%; transform: translateX(-50%); z-index: 998; width: 100%; max-width: 728px; }
.fullscreen-mode .keyboard-main, .fullscreen-mode .keyboard-right-panel { padding: 25px; }
.fullscreen-mode .key { min-width: 52px; min-height: 52px; font-size: 0.8rem; }
.fullscreen-mode .keys-history-panel { padding: 10px 10px 10px 10px; width: 100%; max-width: 100%; height: 100px; margin: 200px 0 50px 0;}
.fullscreen-mode .keyboard-wrapper { display: flex; width: 100%; max-width: var(--container-width); margin: 0 auto 30px; padding: 0 20px; flex: 1; }
.fullscreen-mode .tab-bar { max-width: var(--container-width); margin: 15px auto; padding: 0 20px; display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; }
.fullscreen-mode .wpm-container { width: 100%; max-width: var(--container-width); margin: 200px auto; padding: 0 20px; }
.fullscreen-mode .code-section { width: 100%; max-width: var(--container-width); margin: 200px auto; padding: 0 20px; }
.fullscreen-mode .mouse-tester-layout { width: 100%; max-width: var(--container-width); margin: 200px auto; display: flex; flex-direction: column; gap: 20px; align-items: center; }
@media (max-width: 768px) {
  .header { padding: 10px 15px; } .header h1 { font-size: 1.1rem; }
  .dashboard { padding: 10px 15px; flex-direction: column; }
  .dash-divider { width: 80%; height: 1px; }
  .key { min-width: 36px; min-height: 36px; font-size: 0.72rem; } .key .sec-label { font-size: 0.5rem; }
  .keyboard-main { padding: 10px; gap: 3px; } .keyboard-row { gap: 3px; }
  .keyboard-right-panel { padding: 10px; } .keyboard-numpad { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 46px); }
}
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--key-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dashboard-accent); }
@keyframes keyPress { 0% { transform: translateY(0); } 50% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.key.pressing { animation: keyPress 0.1s ease; }
@keyframes ledBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.led-dot.active { animation: ledBlink 1.5s infinite; }
.keys-history-panel {
  width: 97%; max-width: var(--container-width); margin: 15px auto 0; padding: 0 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0,212,255,0.3); border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; position: relative; z-index: 5;
  background-clip: padding-box;
  border: 2px solid transparent;
  animation: rgbBorder 6s linear infinite;
}
@keyframes rgbBorder {
  0%   { border-color: #ff0000; box-shadow: 0 0 20px rgba(255,0,0,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  16%  { border-color: #ff8800; box-shadow: 0 0 20px rgba(255,136,0,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  33%  { border-color: #ffff00; box-shadow: 0 0 20px rgba(255,255,0,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  50%  { border-color: #00ff00; box-shadow: 0 0 20px rgba(0,255,0,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  66%  { border-color: #0088ff; box-shadow: 0 0 20px rgba(0,136,255,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  83%  { border-color: #8800ff; box-shadow: 0 0 20px rgba(136,0,255,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
  100% { border-color: #ff0000; box-shadow: 0 0 20px rgba(255,0,0,0.4), inset 0 0 30px rgba(0,0,0,0.4); }
}
.keys-history-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mouse-accent), var(--mouse-accent2), var(--mouse-accent3), transparent);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.keys-history-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); }
.kh-title { font-size: 0.95rem; font-weight: 700; color: var(--dashboard-accent); letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.kh-count { font-size: 0.75rem; color: var(--text-secondary); font-family: monospace; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 10px; }
.kh-clear { background: rgba(233,69,96,0.2); border: 1px solid rgba(233,69,96,0.4); color: #ff6b81; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; transition: all 0.2s; }
.kh-clear:hover { background: rgba(233,69,96,0.4); color: white; }
.keys-history-viewport {
  display: flex; gap: 6px; padding: 12px; overflow-x: auto; min-height: 60px;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.keys-history-viewport::-webkit-scrollbar { height: 6px; }
.keys-history-viewport::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.keys-history-viewport::-webkit-scrollbar-thumb { background: var(--mouse-accent); border-radius: 3px; }
.kh-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: rgba(45,45,63,0.8); border: 1px solid rgba(136,136,150,0.3);
  border-radius: 8px; font-family: 'Courier New', monospace; font-size: 0.8rem;
  color: var(--text-primary); white-space: nowrap; flex-shrink: 0;
  animation: chipIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.2s; cursor: default;
}
.kh-chip:hover { background: rgba(60,60,80,0.9); border-color: var(--mouse-accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,212,255,0.3); }
.kh-chip .kh-key { font-weight: 700; color: var(--mouse-accent); font-size: 0.9rem; }
.kh-chip .kh-code { color: var(--text-secondary); font-size: 0.7rem; opacity: 0.7; }
.kh-placeholder { color: var(--text-secondary); font-style: italic; font-size: 0.85rem; padding: 10px; width: 100%; text-align: center; }
@keyframes chipIn { from { opacity: 0; transform: scale(0.8) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@media (max-width: 768px) { .keys-history-panel { margin: 10px 10px 0; } .kh-title { font-size: 0.85rem; } }

/* ===== MOUSE TESTER ===== */
.mouse-tester-layout { width: 100%; max-width: var(--container-width); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.mouse-top-row { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.mouse-stats-dashboard {
  flex: 1; min-width: 320px; max-width: 480px; background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mouse-stats-dashboard h3 { color: var(--info-title); font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); display: flex; align-items: center; gap: 8px; }
.mouse-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mouse-stat-row:last-child { border-bottom: none; }
.mouse-stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.mouse-stat-value { font-size: 1rem; font-weight: 700; color: var(--dashboard-accent); font-family: 'Courier New', monospace; }
.mouse-stat-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mouse-stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--mouse-accent), var(--mouse-accent2)); border-radius: 2px; transition: width 0.5s ease; }
.mouse-stats-dashboard .rgb-section { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--info-border); }
.mouse-stats-dashboard .rgb-section h4 { color: var(--info-title); font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rgb-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.rgb-swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.rgb-swatch:hover { transform: scale(1.15); }
.rgb-swatch.active { border-color: white; box-shadow: 0 0 12px currentColor; }
.rgb-swatch-1 { background: linear-gradient(135deg, #00d4ff, #ff006e, #8338ec); }
.rgb-swatch-2 { background: linear-gradient(135deg, #00ff87, #60efff, #ff6b6b); }
.rgb-swatch-3 { background: linear-gradient(135deg, #ffd700, #ff6600, #ff006e); }
.rgb-swatch-4 { background: linear-gradient(135deg, #bf40ff, #00d4ff, #ff006e); }
.rgb-swatch-5 { background: linear-gradient(135deg, #00ff87, #ffd700, #ff6b6b); }
.rgb-swatch-6 { background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff); }
.mouse-stats-dashboard .reset-row { margin-top: 14px; }
.mouse-stats-dashboard .reset-row .wpm-btn { width: 100%; font-size: 0.82rem; }

.drag-test-container, .slider-drag-container {
  flex: 1; min-width: 320px; max-width: 480px; background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); display: flex; flex-direction: column; gap: 12px;
}
.drag-test-container h3, .slider-drag-container h3 { color: var(--info-title); font-size: 1.1rem; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); display: flex; align-items: center; gap: 8px; }
.drag-test-container p, .slider-drag-container p { color: var(--info-text); font-size: 0.82rem; line-height: 1.5; }
.drag-test-area, .slider-track-area { position: relative; width: 100%; height: 200px; background: var(--bg-secondary); border: 2px dashed var(--key-border); border-radius: 12px; overflow: hidden; margin-bottom: 0; }
.slider-track-area { height: 60px; display: flex; align-items: center; padding: 0 5px; }
.slider-track-bar { position: absolute; top: 50%; left: 10px; right: 10px; height: 8px; background: linear-gradient(90deg, var(--mouse-accent), var(--mouse-accent3)); border-radius: 4px; transform: translateY(-50%); opacity: 0.3; }
.drag-target, .slider-thumb { position: absolute; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: grab; user-select: none; box-shadow: 0 4px 16px rgba(0,212,255,0.3); transition: transform 0.1s; z-index: 2; }
.drag-target { width: 60px; height: 60px; background: linear-gradient(135deg, var(--mouse-accent), var(--mouse-accent3)); }
.slider-thumb { width: 40px; height: 40px; background: linear-gradient(135deg, var(--mouse-accent), var(--mouse-accent3)); border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; }
.slider-thumb:active { transform: translate(-50%, -50%) scale(1.1); }
.drag-target:active, .slider-thumb:active { cursor: grabbing; }
.drag-target::after, .slider-thumb::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%); border-radius: inherit; pointer-events: none; }
.drag-stats, .slider-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.drag-stat, .slider-stat { flex: 1; min-width: 80px; text-align: center; padding: 8px; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--key-border); }
.drag-stat-value, .slider-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--dashboard-accent); font-family: 'Courier New', monospace; }
.drag-stat-label, .slider-stat-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; }
.cursor-location-display { display: flex; gap: 18px; padding: 10px 14px; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--key-border); margin-bottom: 4px; font-size: 0.85rem; color: var(--text-secondary); align-items: center; }
.cursor-location-display span { font-weight: 600; color: var(--dashboard-accent); font-family: monospace; }

.click-test-section { background: var(--bg-secondary); border-radius: 12px; padding: 16px; border: 1px solid var(--key-border); }
.click-test-section h4 { color: var(--info-title); font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.click-test-area { width: 100%; height: 180px; background: var(--bg-primary); border: 2px dashed var(--key-border); border-radius: 10px; position: relative; overflow: hidden; margin-bottom: 12px; cursor: crosshair; user-select: none; }
.click-target { position: absolute; width: 50px; height: 50px; background: radial-gradient(circle at 30% 30%, #ff6b6b, #e94560); border-radius: 50%; box-shadow: 0 0 15px rgba(233,69,96,0.5); cursor: pointer; transition: transform 0.1s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; user-select: none; }
.click-target:active { transform: scale(0.9); }
.click-target::after { content: ''; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; pointer-events: none; }
.click-test-stats { display: flex; gap: 10px; margin-bottom: 10px; }
.click-stat { flex: 1; text-align: center; padding: 6px; background: var(--info-bg); border-radius: 6px; border: 1px solid var(--info-border); }
.click-stat-val { font-size: 1rem; font-weight: 700; color: var(--dashboard-accent); font-family: monospace; }
.click-stat-lbl { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; }
.click-test-controls { display: flex; gap: 8px; }
.click-test-controls button { flex: 1; font-size: 0.75rem; padding: 8px; }

.mouse-bottom-row { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.mouse-stage { flex: 2; min-width: 400px; height: 520px; background: radial-gradient(ellipse at 50% 80%, #1e2740 0%, #151d30 40%, #0d1525 70%, #080e1a 100%); border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative; }
.mouse-stage::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, rgba(131,56,236,0.08) 30%, transparent 70%); border-radius: 50%; animation: volumetricGlow 4s ease-in-out infinite alternate; pointer-events: none; z-index: 1; }
.mouse-stage::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%); pointer-events: none; z-index: 1; }
@keyframes volumetricGlow { 0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.floor-reflection { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 500px; height: 80px; background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.15) 0%, rgba(131,56,236,0.08) 40%, transparent 70%); border-radius: 50%; z-index: 1; animation: floorReflection 3s ease-in-out infinite alternate; pointer-events: none; }
@keyframes floorReflection { 0% { opacity: 0.6; transform: translateX(-50%) scaleX(1) scaleY(1); } 100% { opacity: 1; transform: translateX(-50%) scaleX(1.1) scaleY(1.2); } }
.floor-rgb-reflection { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 400px; height: 60px; background: linear-gradient(90deg, rgba(0,212,255,0.18), rgba(255,0,110,0.12), rgba(131,56,236,0.18), rgba(0,212,255,0.18)); background-size: 300% 100%; border-radius: 50%; animation: rgbFloorFlow 4s linear infinite; pointer-events: none; z-index: 1; filter: blur(8px); }
@keyframes rgbFloorFlow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.mouse-wrapper { position: relative; z-index: 10; transform-style: preserve-3d; perspective: 1000px; animation: mouseFloat 6s ease-in-out infinite; cursor: none; }
@keyframes mouseFloat { 0%, 100% { transform: translateY(0px) rotateX(0deg); } 25% { transform: translateY(-5px) rotateX(0.5deg); } 50% { transform: translateY(-8px) rotateX(0deg); } 75% { transform: translateY(-3px) rotateX(-0.5deg); } }
.mouse-body { position: relative; width: 280px; height: 440px; transform-style: preserve-3d; }
.mouse-base { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 420px; background: linear-gradient(180deg, #1e2235 0%, #1a1e30 15%, #161a2a 30%, #121625 50%, #0e1220 70%, #0a0e1a 85%, #060a16 100%); border-radius: 120px 120px 100px 100px / 160px 160px 140px 140px; box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 15px 40px rgba(0,0,0,0.3), 0 5px 20px rgba(0,0,0,0.25), inset 0 -8px 20px rgba(0,0,0,0.4), inset 0 8px 20px rgba(255,255,255,0.04), inset 0 -2px 8px rgba(255,255,255,0.05), inset 15px 0 30px rgba(255,255,255,0.02), inset -15px 0 30px rgba(255,255,255,0.02), inset 0 -30px 60px rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); overflow: hidden; }
.mouse-base::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.05) 0%, transparent 50%), radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 40%), radial-gradient(ellipse at 50% 80%, rgba(0,0,0,0.08) 0%, transparent 60%); pointer-events: none; }
.mouse-base::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,0.003) 1px, rgba(255,255,255,0.003) 2px), repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,0.003) 1px, rgba(255,255,255,0.003) 2px); pointer-events: none; }
.glossy-stripe { position: absolute; background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, transparent 100%); border-radius: 50%; pointer-events: none; }
.click-panel { position: absolute; top: 0; width: 50%; height: 62%; z-index: 2; cursor: pointer; transition: all 0.1s ease; border-radius: 120px 120px 0 0 / 160px 160px 0 0; }
.click-panel-left { left: 0; background: linear-gradient(135deg, rgba(35,35,55,0.9) 0%, rgba(25,25,48,0.95) 40%, rgba(20,20,42,0.9) 100%); border-right: 1px solid rgba(255,255,255,0.05); border-radius: 120px 0 0 0 / 160px 0 0 0; box-shadow: inset -5px 0 15px rgba(0,0,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.2), inset 5px 0 20px rgba(255,255,255,0.02); }
.click-panel-right { right: 0; background: linear-gradient(225deg, rgba(35,35,55,0.9) 0%, rgba(25,25,48,0.95) 40%, rgba(20,20,42,0.9) 100%); border-left: 1px solid rgba(255,255,255,0.05); border-radius: 0 120px 0 0 / 0 160px 0 0; box-shadow: inset 5px 0 15px rgba(0,0,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.2), inset -5px 0 20px rgba(255,255,255,0.02); }
.click-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%); border-radius: inherit; pointer-events: none; }
.click-panel-left:hover { background: linear-gradient(135deg, rgba(45,45,70,0.95) 0%, rgba(35,35,60,0.95) 40%, rgba(30,30,55,0.9) 100%); box-shadow: inset -5px 0 15px rgba(0,0,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.2), inset 5px 0 20px rgba(0,212,255,0.1); }
.click-panel-right:hover { background: linear-gradient(225deg, rgba(45,45,70,0.95) 0%, rgba(35,35,60,0.95) 40%, rgba(30,30,55,0.9) 100%); box-shadow: inset 5px 0 15px rgba(0,0,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.2), inset -5px 0 20px rgba(0,212,255,0.1); }
.click-panel:active { transform: translateY(2px); }
.click-panel-left:active { box-shadow: inset -3px 3px 10px rgba(0,0,0,0.4), inset 0 -3px 10px rgba(0,0,0,0.3), inset 3px 0 15px rgba(0,212,255,0.15); }
.click-panel-right:active { box-shadow: inset 3px 3px 10px rgba(0,0,0,0.4), inset 0 -3px 10px rgba(0,0,0,0.3), inset -3px 0 15px rgba(0,212,255,0.15); }
.click-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.7rem; color: rgba(255,255,255,0.15); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; pointer-events: none; user-select: none; }
.scroll-wheel-assembly { position: absolute; top: 55px; left: 50%; transform: translateX(-50%); width: 44px; height: 70px; z-index: 5; cursor: pointer; }
.scroll-wheel { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 58px; background: linear-gradient(180deg, #2e2e42 0%, #222238 20%, #1e1e30 50%, #181828 80%, #141424 100%); border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 3px rgba(255,255,255,0.06), inset 0 -1px 3px rgba(0,0,0,0.3); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.scroll-wheel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(180deg, transparent 0px, transparent 3px, rgba(255,255,255,0.07) 3px, rgba(255,255,255,0.07) 4px, transparent 4px, transparent 7px); border-radius: inherit; }
.scroll-wheel::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%); border-radius: inherit; }
.scroll-wheel-rgb { position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 23px; background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(255,0,110,0.2), rgba(131,56,236,0.3), rgba(0,212,255,0.2)); background-size: 200% 100%; animation: rgbGlow 3s linear infinite; opacity: 0.8; filter: blur(4px); pointer-events: none; }
@keyframes rgbGlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.scroll-wheel-click { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 30px; border-radius: 10px; background: rgba(255,255,255,0.03); pointer-events: none; }
.scroll-wheel-label { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.55rem; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; pointer-events: none; }
.dpi-row-container { position: absolute; top: 125px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dpi-button { width: 24px; height: 30px; background: linear-gradient(180deg, #222238 0%, #181828 50%, #141424 100%); border-radius: 6px; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.06), inset 0 -1px 2px rgba(0,0,0,0.3); cursor: pointer; z-index: 5; transition: all 0.1s ease; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.dpi-button::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%); border-radius: 6px 6px 0 0; pointer-events: none; }
.dpi-button:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 3px rgba(0,0,0,0.3); }
.dpi-button:hover { background: linear-gradient(180deg, #2a2a3d 0%, #1f1f2f 50%, #181828 100%); }
.side-button { position: absolute; width: 32px; height: 48px; background: linear-gradient(90deg, rgba(30,30,50,0.95) 0%, rgba(25,25,45,0.9) 50%, rgba(22,22,40,0.85) 100%); border-radius: 8px 0 0 8px; border: 1px solid rgba(255,255,255,0.05); border-right: none; cursor: pointer; z-index: 4; transition: all 0.1s ease; box-shadow: -2px 0 6px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.03), inset 0 -2px 4px rgba(0,0,0,0.2); }
.side-button::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 100%); border-radius: 0 0 0 8px; pointer-events: none; }
.side-button:active { transform: translateX(-2px); background: linear-gradient(90deg, rgba(40,40,60,0.95) 0%, rgba(35,35,55,0.9) 50%, rgba(30,30,50,0.85) 100%); box-shadow: -1px 0 4px rgba(0,0,0,0.3), inset 0 1px 3px rgba(0,0,0,0.3); }
.side-button-left-1 { top: 140px; left: -8px; }
.side-button-left-2 { top: 195px; left: -8px; }
.side-button-right-1 { top: 140px; right: -8px; background: linear-gradient(270deg, rgba(30,30,50,0.95) 0%, rgba(25,25,45,0.9) 50%, rgba(22,22,40,0.85) 100%); border-radius: 0 8px 8px 0; border-left: none; border-right: 1px solid rgba(255,255,255,0.05); }
.side-button-right-1::before { background: linear-gradient(270deg, transparent 0%, rgba(255,255,255,0.03) 100%); border-radius: 8px 0 0 0; }
.side-button-right-2 { top: 195px; right: -8px; background: linear-gradient(270deg, rgba(30,30,50,0.95) 0%, rgba(25,25,45,0.9) 50%, rgba(22,22,40,0.85) 100%); border-radius: 0 8px 8px 0; border-left: none; border-right: 1px solid rgba(255,255,255,0.05); }
.side-button-right-2::before { background: linear-gradient(270deg, transparent 0%, rgba(255,255,255,0.03) 100%); border-radius: 8px 0 0 0; }
.side-button-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); font-size: 0.45rem; color: rgba(255,255,255,0.12); text-transform: uppercase; letter-spacing: 1px; pointer-events: none; user-select: none; white-space: nowrap; }
.side-grip-left, .side-grip-right { position: absolute; top: 200px; width: 18px; height: 140px; z-index: 3; pointer-events: none; }
.side-grip-left { left: -2px; background: repeating-linear-gradient(180deg, transparent 0px, transparent 4px, rgba(255,255,255,0.015) 4px, rgba(255,255,255,0.015) 5px, transparent 5px, transparent 9px); border-radius: 8px 0 0 8px; box-shadow: inset 2px 0 8px rgba(0,0,0,0.3); }
.side-grip-right { right: -2px; background: repeating-linear-gradient(180deg, transparent 0px, transparent 4px, rgba(255,255,255,0.015) 4px, rgba(255,255,255,0.015) 5px, transparent 5px, transparent 9px); border-radius: 0 8px 8px 0; box-shadow: inset -2px 0 8px rgba(0,0,0,0.3); }
.rgb-perimeter { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 230px; height: 12px; background: linear-gradient(90deg, rgba(0,212,255,0.5), rgba(255,0,110,0.4), rgba(131,56,236,0.5), rgba(0,212,255,0.3), rgba(255,0,110,0.4), rgba(131,56,236,0.5)); background-size: 300% 100%; animation: rgbPerimeterFlow 4s linear infinite; border-radius: 0 0 80px 80px / 0 0 60px 60px; filter: blur(2px); z-index: 6; pointer-events: none; }
@keyframes rgbPerimeterFlow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.rgb-perimeter-glow { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 260px; height: 30px; background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(255,0,110,0.2), rgba(131,56,236,0.3), rgba(0,212,255,0.2)); background-size: 300% 100%; animation: rgbPerimeterGlow 4s linear infinite; border-radius: 50%; filter: blur(8px); z-index: 5; pointer-events: none; }
@keyframes rgbPerimeterGlow { 0% { background-position: 0% 50%; opacity: 0.7; } 100% { background-position: 300% 50%; opacity: 1; } }
.rgb-flow-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,212,255,0.04) 50%, rgba(131,56,236,0.04) 60%, rgba(255,0,110,0.04) 70%, transparent 80%, transparent 100%); background-size: 100% 200%; animation: rgbFlowOnMouse 6s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes rgbFlowOnMouse { 0% { background-position: 0% 0%; } 50% { background-position: 0% 100%; } 100% { background-position: 0% 0%; } }
.front-rgb-stripe { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: linear-gradient(90deg, transparent, rgba(0,212,255,0.8), rgba(255,0,110,0.6), rgba(131,56,236,0.8), transparent); background-size: 200% 100%; animation: frontStripeFlow 3s linear infinite; border-radius: 2px; z-index: 7; pointer-events: none; box-shadow: 0 0 8px rgba(0,212,255,0.4), 0 0 16px rgba(131,56,236,0.2); }
@keyframes frontStripeFlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.edge-highlight-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 180px; height: 40px; background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.07) 0%, transparent 70%); pointer-events: none; z-index: 2; }
.edge-highlight-side { position: absolute; top: 100px; width: 1px; height: 200px; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%); pointer-events: none; z-index: 2; }
.edge-highlight-side.left { left: 30px; } .edge-highlight-side.right { right: 30px; }
.breathing-glow { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 300px; height: 60px; background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.18) 0%, rgba(131,56,236,0.1) 30%, rgba(255,0,110,0.06) 50%, transparent 70%); border-radius: 50%; animation: breathingGlow 4s ease-in-out infinite; pointer-events: none; z-index: 4; }
@keyframes breathingGlow { 0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(1); } 50% { opacity: 1; transform: translateX(-50%) scaleX(1.15); } }
.mouse-logo { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: rgba(255,255,255,0.06); font-weight: 700; text-transform: uppercase; letter-spacing: 6px; pointer-events: none; z-index: 3; text-shadow: 0 0 10px rgba(0,212,255,0.1); }
.click-ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,0.4) 0%, transparent 70%); pointer-events: none; animation: rippleExpand 0.6s ease-out forwards; z-index: 10; }
@keyframes rippleExpand { 0% { width: 0; height: 0; opacity: 1; } 100% { width: 100px; height: 100px; opacity: 0; margin-left: -50px; margin-top: -50px; } }

.click-panel.highlight-green { background: var(--key-active-bg) !important; border-color: var(--key-active-border) !important; box-shadow: 0 0 18px var(--key-active-bg), 0 0 36px var(--key-active-bg), inset 0 1px 3px rgba(255,255,255,0.2) !important; transform: translateY(2px) !important; transition: all 0.08s ease; }
.click-panel-left.highlight-green { background: linear-gradient(135deg, rgba(46,204,113,0.85) 0%, rgba(39,174,96,0.9) 40%, rgba(30,150,80,0.85) 100%) !important; }
.click-panel-right.highlight-green { background: linear-gradient(225deg, rgba(46,204,113,0.85) 0%, rgba(39,174,96,0.9) 40%, rgba(30,150,80,0.85) 100%) !important; }
.scroll-wheel-assembly.highlight-green .scroll-wheel { background: linear-gradient(180deg, #2ecc71 0%, #27ae60 30%, #1e8449 60%, #196f3d 80%, #145a32 100%) !important; box-shadow: 0 0 14px var(--key-active-bg), 0 0 28px var(--key-active-bg), inset 0 1px 3px rgba(255,255,255,0.2) !important; transition: all 0.08s ease; }
.scroll-wheel-assembly.highlight-green { transform: translateX(-50%) translateY(2px) !important; transition: all 0.08s ease; }
.dpi-button.highlight-green { background: linear-gradient(180deg, #2ecc71 0%, #27ae60 50%, #1e8449 100%) !important; box-shadow: 0 0 12px var(--key-active-bg), 0 0 24px var(--key-active-bg), inset 0 1px 3px rgba(255,255,255,0.15) !important; transform: translateY(1px) !important; transition: all 0.08s ease; color: white; }
.side-button.highlight-green { background: linear-gradient(90deg, rgba(46,204,113,0.9) 0%, rgba(39,174,96,0.85) 50%, rgba(30,150,80,0.8) 100%) !important; box-shadow: 0 0 10px var(--key-active-bg), inset 0 1px 3px rgba(255,255,255,0.15) !important; transition: all 0.08s ease; }
.side-button-right-1.highlight-green, .side-button-right-2.highlight-green { background: linear-gradient(270deg, rgba(46,204,113,0.9) 0%, rgba(39,174,96,0.85) 50%, rgba(30,150,80,0.8) 100%) !important; }

.mouse-info-section { width: 100%; max-width: var(--container-width); margin: 30px auto; padding: 0 20px; }
.mouse-info-card { background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); width: 100%; }
.mouse-info-card h2 { color: var(--info-title); font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--info-border); }
.mouse-info-card p { color: var(--info-text); font-size: 0.92rem; line-height: 1.75; margin-bottom: 14px; }
.mouse-info-card h3 { color: var(--dashboard-accent); font-size: 1.05rem; margin: 20px 0 10px 0; }
.mouse-info-card ul { list-style: none; padding: 0; margin: 0; }
.mouse-info-card ul li { padding: 8px 0 8px 20px; color: var(--info-text); font-size: 0.88rem; line-height: 1.6; border-left: 2px solid var(--dashboard-accent); margin-bottom: 4px; }
.specs-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 15px 0; }
.specs-table th { background: var(--bg-tertiary); color: var(--text-primary); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.85rem; border-bottom: 2px solid var(--info-border); }
.specs-table td { padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--info-text); font-size: 0.82rem; }
.specs-table tr:hover td { background: var(--info-hover); }
@media (max-width: 1024px) { .mouse-top-row, .mouse-bottom-row { flex-direction: column; } .mouse-stage { min-width: 100%; } }
@media (max-width: 768px) { .mouse-stage { width: 100%; height: 420px; } .mouse-body { transform: scale(0.75); } .mouse-stats-dashboard, .drag-test-container, .slider-drag-container { max-width: 100%; } }

/* Ad slot (auto-hides when empty) */
.ad-slot{max-width:728px;margin:1.5rem auto;text-align:center;transition:max-height .5s var(--ease),opacity .4s,margin .5s;max-height:160px;overflow:hidden}
.ad-slot.ad-hidden{max-height:0;opacity:0;margin:0}
.ad-label{display:block;font-family:var(--mono);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text2);opacity:.6;margin-bottom:.4rem}
.ad-box{min-height:90px;border:1.5px dashed var(--border2);border-radius:12px;display:grid;place-items:center;color:var(--text2);font-size:.85rem;background:var(--surface)}

