:root {
--bg: #fefef9;
--panel: #ffffff;
--muted: #6b7280;
--text: #1a1a1a;
--accent: #16a34a;
--accent-weak: #15803d;
--danger: #dc2626;
--primary: #ffe00f;
--primary-weak: #e3c600;
--primary-text: #000000;
--btn: #f5f5f0;
--btn-hover: #ebebdf;
--border: #e5e5e0;
--shadow: 0 6px 0 #e5e5d0;
--shadow-hover: 0 8px 0 #d4d4c0;
--radius: 16px;
--card-size: 140px;
--cloud: #ffffff;
}
.theme-blue {
--bg: #f8fafc;
--panel: #ffffff;
--muted: #64748b;
--text: #0f172a;
--accent: #16a34a;
--accent-weak: #15803d;
--danger: #dc2626;
--primary: #3bbceb;
--primary-weak: #299ec4;
--primary-text: #ffffff;
--btn: #f1f5f9;
--btn-hover: #e2e8f0;
--border: #e2e8f0;
--shadow: 0 6px 0 #c8dae8;
--shadow-hover: 0 8px 0 #a8c4d8;
--radius: 16px;
--cloud: #dbeafe;
}
.theme-dark {
--bg: #0f172a;
--panel: #1e293b;
--muted: #94a3b8;
--text: #f1f5f9;
--primary: #38bdf8;
--primary-weak: #0ea5e9;
--btn: #334155;
--btn-hover: #475569;
--border: rgba(255, 255, 255, 0.1);
--shadow: 0 6px 0 #0f1520;
--shadow-hover: 0 8px 0 #070b12;
--cloud: #1e293b;
}
.theme-orange {
--bg: #fff7ed;
--panel: #ffffff;
--muted: #9a3412;
--text: #431407;
--accent: #65a30d;
--accent-weak: #4d7c0f;
--danger: #ef4444;
--primary: #f97316;
--primary-weak: #ea580c;
--btn: #ffedd5;
--btn-hover: #fed7aa;
--border: #fdba74;
--shadow: 0 6px 0 #fdc89a;
--shadow-hover: 0 8px 0 #f9a86a;
--radius: 20px;
--cloud: #ffd8b0;
}
.theme-casual {
--bg: #fff0f5;
--panel: #ffffff;
--muted: #64748b;
--text: #334155;
--accent: #22c55e;
--accent-weak: #16a34a;
--danger: #ef4444;
--primary: #8b5cf6;
--primary-weak: #7c3aed;
--btn: #ffffff;
--btn-hover: #f8fafc;
--border: #cbd5e1;
--shadow: 0 6px 0 #cbd5e1;
--shadow-hover: 0 8px 0 #94a3b8;
--radius: 24px;
--cloud: #ede9fe;
}
.theme-dark header {
background: rgba(15, 23, 42, 0.7);
border-bottom-color: rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.theme-orange header {
background: rgba(255, 247, 237, 0.75);
border-bottom-color: rgba(253, 186, 116, 0.4);
box-shadow: 0 4px 30px rgba(249, 115, 22, 0.08);
}
.theme-blue header {
background: rgba(248, 250, 252, 0.75);
border-bottom-color: rgba(59, 188, 235, 0.2);
box-shadow: 0 4px 30px rgba(59, 188, 235, 0.08);
}
.theme-casual header {
background: rgba(255, 240, 245, 0.75);
border-bottom-color: rgba(203, 213, 225, 0.4);
box-shadow: 0 4px 30px rgba(139, 92, 246, 0.08);
}
* {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html {
scrollbar-gutter: stable;
}
body {
margin: 0;
font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
transition: background .3s;
min-height: 100vh;
overflow-x: hidden;
}
#gradientBg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(ellipse at 20% 15%, rgba(255, 224, 15, 0.13) 0%, transparent 50%),
radial-gradient(ellipse at 80% 85%, rgba(22, 163, 74, 0.08) 0%, transparent 50%);
}
.theme-blue #gradientBg {
background:
radial-gradient(ellipse at 20% 15%, rgba(59, 188, 235, 0.12) 0%, transparent 50%),
radial-gradient(ellipse at 80% 85%, rgba(22, 163, 74, 0.07) 0%, transparent 50%);
}
.theme-dark #gradientBg {
background:
radial-gradient(ellipse at 20% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
radial-gradient(ellipse at 80% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}
.theme-orange #gradientBg {
background:
radial-gradient(ellipse at 20% 15%, rgba(249, 115, 22, 0.10) 0%, transparent 50%),
radial-gradient(ellipse at 80% 85%, rgba(101, 163, 13, 0.07) 0%, transparent 50%);
}
.theme-casual #gradientBg {
background:
radial-gradient(ellipse at 20% 15%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
radial-gradient(ellipse at 80% 85%, rgba(34, 197, 94, 0.07) 0%, transparent 50%);
}
#floatingBg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
opacity: 0.2;
}
#particlesBg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
width: 100%;
height: 100%;
opacity: 0.5;
}
#cloudsBgBottom, #cloudsBgTop {
position: fixed;
left: 0;
right: 0;
z-index: 0;
pointer-events: none;
height: 400px;
overflow: visible;
}
#cloudsBgBottom { bottom: 0; }
#cloudsBgTop { top: 0; }
.clouds-layer {
position: absolute;
bottom: 0;
left: -10%;
width: 120%;
height: 100%;
animation: cloudsSway 8s ease-in-out infinite alternate;
}
.clouds-layer.clouds-back {
opacity: 0.45;
animation-duration: 14s;
animation-direction: alternate-reverse;
bottom: 100px;
left: -12%;
width: 124%;
}
.clouds-layer.clouds-mid {
opacity: 0.7;
animation-duration: 10s;
bottom: 60px;
left: -11%;
width: 122%;
}
.clouds-layer svg {
width: 100%;
height: 100%;
}
.clouds-layer svg path { fill: var(--cloud, #ffffff); }
@keyframes cloudsSway {
0% { transform: translateX(-1%); }
100% { transform: translateX(1%); }
}
.floating-circles {
margin: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.floating-circles li {
position: absolute;
display: block;
list-style: none;
width: 20px;
height: 20px;
background: rgba(255, 224, 15, 0.25);
animation: floatingAnimate 25s linear infinite;
bottom: -150px;
}
.floating-circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: -5s; }
.floating-circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: -3s; animation-duration: 12s; }
.floating-circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: -15s; }
.floating-circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: -8s; animation-duration: 18s; }
.floating-circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: -20s; }
.floating-circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: -10s; }
.floating-circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: -2s; }
.floating-circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: -25s; animation-duration: 45s; }
.floating-circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: -18s; animation-duration: 35s; }
.floating-circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: -6s; animation-duration: 11s; }
.theme-blue .floating-circles li { background: rgba(59, 188, 235, 0.25); }
.theme-dark .floating-circles li { background: rgba(59, 130, 246, 0.15); }
.theme-orange .floating-circles li { background: rgba(249, 115, 22, 0.25); }
.theme-casual .floating-circles li { background: rgba(139, 92, 246, 0.25); }
@keyframes floatingAnimate {
0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}
.theme-dark .dict-card {
box-shadow:
var(--shadow),
3px 3px 0 -1px #253245,
3px 3px 0 0px rgba(255,255,255,0.08),
6px 6px 0 -1px #1e293b,
6px 6px 0 0px rgba(255,255,255,0.05);
}
.theme-dark .dict-card:hover {
box-shadow:
var(--shadow-hover),
3px 3px 0 -1px #253245,
3px 3px 0 0px rgba(255,255,255,0.08),
6px 6px 0 -1px #1e293b,
6px 6px 0 0px rgba(255,255,255,0.05);
}
.app-layout {
display: flex;
flex-direction: column;
position: relative;
min-height: 100vh;
width: 100%;
}
.main-content {
flex-grow: 1;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.container {
width: 100%;
max-width: 1000px;
padding-bottom: 10px;
transition: max-width 0.3s ease;
}
@media (min-width: 1200px) {
.container {
max-width: 90%;
}
.mode-selector {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
}
.app-footer {
text-align: center;
padding: 20px;
font-size: 13px;
color: var(--text);
opacity: 0.5;
width: 100%;
margin-top: auto;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
width: 100%;
flex-wrap: wrap;
gap: 15px;
position: sticky;
top: 0;
z-index: 100;
padding: 12px 20px;
margin-left: -20px;
margin-right: -20px;
width: calc(100% + 40px);
background: rgba(248, 250, 252, 0.75);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border-bottom: 1px solid rgba(226, 232, 240, 0.5);
border-radius: 0 0 20px 20px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
h1 {
font-size: clamp(22px, 3vw, 32px);
margin: 0;
font-weight: 800;
letter-spacing: -0.5px;
}
.app-beta-badge {
position: relative;
display: inline-block;
margin-left: 8px;
padding: 2px 8px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
background: var(--primary, #ffe00f);
color: #000;
border-radius: 6px;
vertical-align: middle;
line-height: 1.4;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
cursor: help;
outline: none;
}
.theme-blue .app-beta-badge,
.theme-dark .app-beta-badge,
.theme-orange .app-beta-badge,
.theme-casual .app-beta-badge {
color: #fff;
}
.app-beta-tooltip {
position: absolute;
top: calc(100% + 10px);
left: 50%;
transform: translateX(-50%) translateY(-4px);
background: var(--panel-solid, #fff);
color: var(--text, #1f2937);
padding: 10px 14px;
border-radius: 10px;
border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
font-size: 13px;
font-weight: 500;
letter-spacing: normal;
line-height: 1.5;
width: max-content;
max-width: 280px;
white-space: normal;
text-align: center;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
z-index: 1000;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.app-beta-tooltip::before {
content: '';
position: absolute;
top: -6px;
left: 50%;
transform: translateX(-50%) rotate(45deg);
width: 10px;
height: 10px;
background: var(--panel-solid, #fff);
border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
border-left: 1px solid var(--border, rgba(0, 0, 0, 0.1));
}
.app-beta-badge:hover .app-beta-tooltip,
.app-beta-badge:focus-visible .app-beta-tooltip,
.app-beta-badge:focus-within .app-beta-tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
@media (max-width: 600px) {
.app-beta-tooltip {
max-width: 220px;
font-size: 12px;
}
.app-beta-badge {
display: none;
}
}
h1 a {
text-decoration: none;
color: inherit;
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 20px;
width: 100%;
margin-bottom: 20px;
}
.btn {
border: 2px solid var(--border);
background: var(--btn);
color: var(--text);
padding: 12px 18px;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
transition: transform 0.1s, box-shadow 0.1s, background .2s, color .2s, border-color .2s;
font-size: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
white-space: nowrap;
user-select: none;
margin-bottom: 0;
transform: translateY(0);
box-shadow: none;
}
.btn:active {
transform: translateY(2px);
opacity: 0.9;
}
.dict-card {
border-width: 2px;
}
.btn:hover {
background: var(--btn-hover);
transform: translateY(-1px);
}
.btn.primary {
background: var(--primary);
color: var(--primary-text, #fff);
border: 2px solid var(--primary-weak);
box-shadow: none;
}
.btn.success {
background: var(--primary);
color: var(--primary-text, #fff);
border: 2px solid var(--primary-weak);
box-shadow: none;
}
.btn.danger {
background: var(--danger);
color: #fff;
border: 2px solid #b91c1c;
box-shadow: none;
}
.btn.ghost {
background: transparent;
border: none;
padding: 8px;
box-shadow: none;
}
.btn.ghost.active {
background: rgba(99, 102, 241, 0.18);
border: 1px solid rgba(99, 102, 241, 0.45);
color: var(--text);
}
.btn.small {
padding: 6px 12px;
font-size: 12px;
border-radius: 6px;
}
.mode-bar {
display: flex;
justify-content: center;
margin-bottom: 20px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 4px;
gap: 0;
box-shadow: var(--shadow);
}
.quick-toggle-btn,
.quick-toggle-btn-learning {
background: transparent;
border: none;
border-radius: 10px;
color: var(--muted);
transition: background 0.06s, color 0.06s;
font-weight: 600;
font-size: 14px;
padding: 10px 16px;
flex: 1;
min-width: 0;
white-space: nowrap;
box-shadow: none;
margin-bottom: 0;
}
.quick-toggle-btn:hover,
.quick-toggle-btn-learning:hover {
background: var(--btn-hover);
color: var(--text);
}
.quick-toggle-btn.active,
.quick-toggle-btn-learning.active {
background: var(--primary);
color: var(--primary-text, #fff);
filter: grayscale(0%);
opacity: 1;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.settings-gear-container {
position: relative;
z-index: 50;
}
.settings-gear-btn {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
background: var(--btn);
border: 1px solid var(--border);
border-radius: 10px;
cursor: pointer;
font-size: 20px;
transition: all 0.2s;
color: var(--muted);
line-height: 1;
}
.settings-gear-btn:hover {
color: var(--text);
border-color: var(--primary);
}
.settings-gear-btn.active {
background: var(--primary);
color: var(--primary-text, #fff);
border-color: var(--primary);
}
#userAuthBtn, #userRegisterBtn {
width: auto;
padding: 0 14px;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
gap: 6px;
}
.auth-btn-icon {
flex-shrink: 0;
}
#userAuthBtn.logged-in {
background: #d32f2f;
color: #fff;
border-color: #d32f2f;
}
#userAuthBtn.logged-in:hover {
background: #b71c1c;
border-color: #b71c1c;
}
#teacherAdminBtn, #userCabinetBtn {
width: auto;
padding: 0 14px;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
text-decoration: none;
}
.cabinet-tabs {
display: flex;
gap: 0;
border-bottom: 2px solid var(--border);
margin-bottom: 16px;
}
.cabinet-tab {
flex: 1;
padding: 10px 12px;
background: none;
border: none;
border-bottom: 3px solid transparent;
cursor: pointer;
font-size: 14px;
font-weight: 600;
color: var(--text-secondary, #888);
transition: all 0.2s;
}
.cabinet-tab:hover { color: var(--text); }
.cabinet-tab.active {
color: var(--primary-weak);
border-bottom-color: var(--primary);
}
.cabinet-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.cabinet-card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
text-align: center;
}
.cabinet-card .card-value {
font-size: 24px;
font-weight: 700;
color: var(--primary-weak);
}
.cabinet-card .card-label {
font-size: 12px;
color: var(--text-secondary, #888);
margin-top: 4px;
}
.cabinet-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.cabinet-table th, .cabinet-table td {
padding: 8px 10px;
text-align: left;
border-bottom: 1px solid var(--border);
}
.cabinet-table th {
font-weight: 600;
color: var(--text-secondary, #888);
font-size: 11px;
text-transform: uppercase;
}
.cabinet-empty {
text-align: center;
color: var(--text-secondary, #888);
padding: 32px 16px;
font-size: 14px;
}
.hw-status {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
}
.hw-status.assigned { background: #e3f2fd; color: #1565c0; }
.hw-status.in_progress { background: #fff3e0; color: #e65100; }
.hw-status.completed { background: #e8f5e9; color: #2e7d32; }
.hw-status.overdue { background: #ffebee; color: #c62828; }
.hw-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hw-actions .btn { font-size: 13px; }
.profile-section {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.profile-section-title {
font-size: 15px;
font-weight: 700;
color: var(--text);
margin-bottom: 12px;
}
.profile-avatar-row {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 12px;
}
.profile-avatar-current {
flex-shrink: 0;
}
.profile-avatar-current svg { width: 64px; height: 64px; }
.profile-avatar-right {
flex: 1;
display: flex;
flex-direction: column;
gap: 10px;
}
.profile-change-avatar-btn {
padding: 6px 16px;
background: none;
border: 1px solid var(--border);
border-radius: var(--radius, 8px);
color: var(--text);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
align-self: flex-start;
}
.profile-change-avatar-btn:hover { border-color: var(--primary); color: var(--primary); }
.profile-avatar-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 8px;
margin-bottom: 8px;
}
.profile-avatar-option {
width: 48px;
height: 48px;
border-radius: 50%;
border: 2px solid var(--border);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.15s, border-color 0.15s;
background: var(--btn, #f5f5f5);
margin: 0 auto;
}
.profile-avatar-option svg { width: 36px; height: 36px; }
.profile-avatar-option:hover { transform: scale(1.12); border-color: var(--primary); }
.profile-avatar-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak, rgba(79,140,255,0.25)); transform: scale(1.1); }
.profile-color-grid {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.profile-color-option {
width: 28px;
height: 28px;
border-radius: 50%;
border: 3px solid transparent;
cursor: pointer;
transition: transform 0.15s, border-color 0.15s;
}
.profile-color-option:hover { transform: scale(1.15); }
.profile-color-option.selected { border-color: var(--text); transform: scale(1.15); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
.profile-input {
display: block;
width: 100%;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--btn, #f5f5f5);
color: var(--text);
font-size: 14px;
margin-bottom: 10px;
box-sizing: border-box;
}
.profile-input:focus { outline: none; border-color: var(--primary); }
.profile-save-btn {
padding: 8px 24px;
background: var(--primary);
color: #fff;
border: none;
border-radius: var(--radius);
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s;
}
.profile-save-btn:hover { opacity: 0.85; }
.profile-msg {
text-align: center;
font-size: 13px;
margin-top: 10px;
padding: 6px 12px;
border-radius: var(--radius);
}
.profile-msg.success { color: #2e7d32; background: #e8f5e9; }
.profile-msg.error { color: #c62828; background: #ffebee; }
.profile-email-display {
padding: 10px 14px;
background: var(--btn, #f5f5f5);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-secondary, #888);
font-size: 14px;
user-select: all;
}
.profile-reset-btn {
padding: 6px 18px;
background: none;
color: var(--text-secondary, #888);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
}
.profile-reset-btn:hover { color: var(--primary); border-color: var(--primary); }
.profile-delete-section { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--border); text-align: center; }
.profile-delete-btn { padding: 8px 24px; background: #dc2626; color: #fff; border: none; border-radius: var(--radius, 8px); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.profile-delete-btn:hover { opacity: 0.85; }
.profile-delete-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.profile-delete-dialog { background: var(--panel, #fff); border-radius: var(--radius, 12px); padding: 28px 24px; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.profile-delete-dialog-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #dc2626; }
.profile-delete-dialog-text { font-size: 14px; color: var(--text-secondary, #666); margin-bottom: 20px; line-height: 1.5; }
.profile-delete-confirm-btn { padding: 10px 24px; background: #dc2626; color: #fff; border: none; border-radius: var(--radius, 8px); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.profile-delete-confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.profile-delete-cancel-btn { padding: 10px 24px; background: none; color: var(--text, #333); border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px); font-size: 14px; cursor: pointer; transition: all 0.15s; }
.profile-delete-cancel-btn:hover { border-color: var(--primary); }
.purchases-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.purchases-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.purchases-table th, .purchases-table td { padding: 10px 12px; border-bottom: 1px solid var(--border, #eee); text-align: left; }
.purchases-table th { font-weight: 600; color: var(--text-secondary, #888); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.purchases-table tr:hover { background: var(--bg, rgba(0,0,0,0.02)); }
.purchases-amount { font-weight: 600; }
.purchases-stripe-id { font-family: monospace; font-size: 11px; color: var(--text-secondary, #888); }
@media (max-width: 600px) {
.purchases-table { font-size: 12px; }
.purchases-table th, .purchases-table td { padding: 8px 6px; }
}
.cabinet-teacher-info {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 16px;
margin-bottom: 16px;
font-size: 13px;
display: flex;
align-items: center;
gap: 8px;
}
.settings-gear-dropdown {
position: absolute;
top: calc(100% + 6px);
right: 0;
width: 600px;
max-width: calc(100vw - 20px);
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
display: none;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
animation: slideDown 0.2s ease;
}
@media (max-width: 1024px) {
.settings-gear-dropdown {
position: fixed;
top: 70px;
left: 10px;
right: 10px;
width: auto;
max-height: calc(100vh - 90px);
overflow-y: auto;
z-index: 60;
}
}
.settings-gear-dropdown.open {
display: block;
}
.settings-gear-dropdown .settings {
display: flex;
flex-wrap: wrap;
gap: 16px 40px;
justify-content: flex-start;
}
.header-right-group {
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.settings {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
gap: 20px;
justify-items: start;
}
.setting-item {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
min-width: 0;
max-width: 100%;
}
#settingsModal .auth-modal {
max-height: 90vh;
overflow-y: auto;
}
#settingsModalContent .settings {
text-align: left;
}
#settingsModalContent .mode-selector {
margin: 0;
}
@media (max-width: 600px) {
#settingsModal .auth-modal {
max-height: 100dvh;
max-width: 100vw;
border-radius: 0;
margin: 0;
}
#settingsModalContent .settings {
grid-template-columns: 1fr;
}
}
.setting-label {
font-size: 11px;
font-weight: 800;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.5px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.setting-label .lbl-icon {
flex-shrink: 0;
color: var(--accent, #38bdf8);
}
.settings .mode-selector .mode-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.settings .mode-selector .mode-btn .btn-icon {
flex-shrink: 0;
opacity: 0.85;
}
.mode-selector {
display: flex;
gap: 4px;
background: var(--btn);
padding: 4px;
border-radius: 10px;
}
.settings .mode-selector {
max-width: 100%;
border: 1px solid var(--border);
flex-wrap: wrap;
}
.settings .mode-selector .mode-btn {
padding: 8px 14px;
min-width: 42px;
text-align: center;
overflow: visible !important;
flex: 0 0 auto;
white-space: nowrap;
}
.mode-btn {
flex: 1 1 0;
border: none;
background: transparent;
color: var(--text);
padding: 8px 6px;
border-radius: 8px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
transition: all 0.2s;
min-width: fit-content;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.mode-btn svg {
flex-shrink: 0;
}
.mode-btn.active {
background: var(--primary);
color: var(--primary-text, #fff);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
font-weight: 700;
}
.group-title {
width: 100%;
font-size: 20px;
font-weight: 800;
color: var(--primary-weak);
margin: 15px 0 10px 0;
padding-bottom: 5px;
border-bottom: 2px solid var(--border);
text-transform: uppercase;
}
.group-title:first-child {
margin-top: 0;
}
#fileGrid {
min-height: 180vh;
display: flex;
flex-direction: column;
}
.dict-grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--card-size), 1fr));
gap: 16px;
width: 100%;
margin-bottom: 10px;
padding-bottom: 10px;
}
.dict-card {
background: var(--panel);
border: 2px solid transparent;
border-radius: 14px;
overflow: hidden;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
box-shadow:
var(--shadow),
3px 3px 0 -1px var(--panel),
3px 3px 0 0px var(--border),
6px 6px 0 -1px var(--panel),
6px 6px 0 0px var(--border);
text-align: center;
height: 100%;
}
@media (hover: hover) and (pointer: fine) {
.dict-card:hover {
box-shadow:
var(--shadow-hover),
3px 3px 0 -1px var(--panel),
3px 3px 0 0px var(--border),
6px 6px 0 -1px var(--panel),
6px 6px 0 0px var(--border);
}
}
.dict-card-wrapper {
position: relative;
height: 100%;
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@media (hover: hover) and (pointer: fine) {
.dict-card-wrapper:hover {
transform: translateY(-5px);
}
}
.fake-player-bar {
position: absolute;
top: 6px;
left: 6px;
right: 6px;
z-index: 12;
display: flex;
align-items: center;
gap: 6px;
background: rgba(255,255,255,0.88);
backdrop-filter: blur(6px);
border: 1px solid rgba(0,0,0,0.08);
border-radius: 12px;
padding: 5px 10px 5px 5px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
white-space: nowrap;
pointer-events: none;
font-size: 12px;
font-weight: 600;
color: #1a1a1a;
opacity: 0;
transform: scale(0.85);
transform-origin: center center;
transition: opacity 1s ease, transform 1s ease;
}
.fake-player-bar.visible {
opacity: 1;
transform: scale(1);
}
.fake-player-bar.hiding {
opacity: 0;
transform: scale(0.85);
}
.fake-player-bar.fake-player-success {
background: rgba(34,197,94,0.85);
border-color: rgba(34,197,94,0.4);
color: #fff;
}
.theme-dark .fake-player-bar {
background: rgba(30,41,59,0.88);
border-color: rgba(255,255,255,0.1);
color: #e2e8f0;
}
.fake-player-avatars {
display: flex;
flex-shrink: 0;
}
.fake-player-av {
width: 26px;
height: 26px;
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--panel);
margin-left: -8px;
flex-shrink: 0;
}
.fake-player-av:first-child {
margin-left: 0;
}
.fake-player-text {
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
min-width: 0;
}
@media (max-width: 480px) {
.fake-player-bar { font-size: 11px; padding: 4px 8px 4px 4px; }
.fake-player-av { width: 22px; height: 22px; }
}
.dict-card.folder {
background: var(--btn);
border: 1px dashed var(--border);
box-shadow: var(--shadow);
}
.dict-img-wrap {
position: relative;
width: 100%;
aspect-ratio: 1/1;
overflow: hidden;
border-bottom: 1px solid var(--border);
}
.dict-index {
position: absolute;
background: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 11px;
font-weight: 800;
padding: 3px 8px;
border-radius: 8px;
z-index: 15;
pointer-events: none;
}
.dict-index--tl { top: 8px; left: 8px; }
.dict-index--tr { top: 8px; right: 8px; }
.dict-index--bl { bottom: 8px; left: 8px; }
.dict-index--br { bottom: 8px; right: 8px; }
.dict-index--name {
position: static;
display: inline-block;
margin-right: 4px;
vertical-align: middle;
font-size: 10px;
padding: 2px 6px;
}
}
.dict-card.selected {
border-color: var(--accent);
box-shadow:
0 6px 0 var(--accent),
3px 3px 0 -1px var(--panel),
3px 3px 0 0px var(--accent),
6px 6px 0 -1px var(--panel),
6px 6px 0 0px var(--accent);
}
.dict-card[draggable="true"] {
cursor: grab;
}
.dict-card[draggable="true"]:active {
cursor: grabbing;
opacity: 0.6;
transform: scale(0.95);
}
.dict-card.drag-target {
border-left: 4px solid var(--primary) !important;
transform: translateX(6px);
box-shadow: -6px 0 12px -2px rgba(37, 99, 235, 0.2);
}
.dict-card.selected::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
aspect-ratio: 1/1;
background: rgba(22, 197, 94, 0.85);
z-index: 10;
pointer-events: none;
animation: fadeInOverlay 0.2s ease-out;
}
.dict-card.selected::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
aspect-ratio: 1/1;
z-index: 11;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolyline points='20,55 40,75 80,25' fill='none' stroke='white' stroke-width='12' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") no-repeat center center;
background-size: 70%;
filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
animation: scaleCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dict-card.announced {
cursor: default;
}
.dict-card.locked {
filter: grayscale(0.45);
}
.dict-card.locked .dict-cover {
filter: grayscale(0.6) brightness(0.92);
}
.dict-card.locked:hover {
filter: grayscale(0.15);
}
.dict-lock-overlay {
position: absolute;
top: 8px;
right: 8px;
width: 28px;
height: 28px;
border-radius: 50%;
background: rgba(30, 30, 30, 0.78);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
pointer-events: none;
}
.lesson-card, .exercise-card {
position: relative;
}
.lesson-card.locked, .exercise-card.locked {
filter: grayscale(0.45);
cursor: pointer;
opacity: 0.85;
}
.lesson-card.locked:hover, .exercise-card.locked:hover {
filter: grayscale(0.15);
opacity: 1;
}
.lesson-lock-overlay, .exercise-lock-overlay {
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
width: 28px;
height: 28px;
border-radius: 50%;
background: rgba(30, 30, 30, 0.78);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
pointer-events: none;
}
@keyframes monetShine {
0% { transform: translateX(-100%) skewX(-20deg); }
23% { transform: translateX(200%) skewX(-20deg); }
100% { transform: translateX(200%) skewX(-20deg); }
}
@keyframes shineFlow {
0% {
transform: translateX(-100%) skewX(-20deg);
}
100% {
transform: translateX(200%) skewX(-20deg);
}
}
.card-glare {
position: absolute;
top: 0;
left: 0;
width: 60%;
height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
transform: translateX(-150%) skewX(-20deg);
pointer-events: none;
z-index: 5;
}
.dict-card:hover .card-glare {
animation: shineFlow 0.7s;
}
@keyframes fadeInOverlay {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scaleCheck {
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.dict-cover {
width: 100%;
width: 100%;
height: 100%;
object-fit: cover;
background: #e2e8f0;
display: block;
font-size: 32px;
color: var(--muted);
}
.dict-card.folder .dict-cover {
background: transparent;
border: none;
font-size: 42px;
aspect-ratio: auto;
height: 80px;
}
.dict-info {
padding: 10px;
width: 100%;
display: flex;
flex-direction: column;
gap: 4px;
flex-grow: 1;
}
.dict-name {
font-size: 13px;
font-weight: 700;
line-height: 1.35;
color: var(--text);
overflow-wrap: break-word;
word-break: normal;
hyphens: auto;
}
.dict-count {
font-size: 11px;
color: var(--muted);
margin-top: auto;
background: var(--btn);
border-radius: 4px;
padding: 2px 6px;
align-self: center;
}
.breadcrumbs {
background: var(--btn);
padding: 8px 16px;
border-radius: 8px;
font-size: 13px;
color: var(--muted);
margin-bottom: 16px;
display: inline-flex;
align-items: center;
gap: 5px;
font-weight: 600;
}
.custom-select-container {
position: relative;
width: 160px;
user-select: none;
z-index: 50;
}
#customLangSelect {
margin-left: 0;
}
.select-btn {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
background: var(--btn);
border: 1px solid var(--border);
border-radius: 10px;
cursor: pointer;
color: var(--text);
font-weight: bold;
font-size: 14px;
}
.select-dropdown {
position: absolute;
top: 100%;
right: 0;
width: 100%;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
margin-top: 4px;
display: none;
box-shadow: var(--shadow);
overflow: hidden;
}
.select-dropdown.open {
display: block;
animation: fadeIn 0.15s ease-out;
}
.select-option {
padding: 10px 12px;
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: background 0.2s;
color: var(--text);
}
.select-option:hover {
background: var(--btn-hover);
}
.select-option img,
.select-btn img {
width: 20px;
height: 15px;
object-fit: cover;
border-radius: 2px;
}
.lang-select-hidden {
display: none !important;
}
#adminDropZone {
position: sticky;
top: 0;
z-index: 900;
background: var(--panel);
padding: 10px;
border-bottom: 2px solid var(--primary);
box-shadow: var(--shadow);
display: none;
overflow-x: auto;
white-space: nowrap;
margin-bottom: 20px;
border-radius: 0 0 16px 16px;
min-height: 90px;
align-items: center;
}
#adminDropZone[style*="display: block"] {
display: flex !important;
gap: 10px;
}
.folder-target {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
border: 2px dashed var(--border);
border-radius: 12px;
cursor: pointer;
transition: all 0.2s;
color: var(--muted);
font-weight: 700;
font-size: 12px;
flex-shrink: 0;
}
.folder-target.hovered {
background: var(--btn-hover);
border-color: var(--primary);
color: var(--primary-weak);
transform: scale(1.1);
}
.folder-target span {
font-size: 20px;
margin-bottom: 2px;
}
#gameArea {
display: none;
width: 100%;
max-width: 600px;
margin: 0 auto;
content-visibility: auto;
flex-direction: column;
}
.game-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-bottom: 10px;
padding: 10px 16px;
position: sticky;
top: 0;
z-index: 50;
background: rgba(248, 250, 252, 0.8);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid rgba(226, 232, 240, 0.5);
border-radius: 14px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
transition: background 0.3s, box-shadow 0.3s;
}
.theme-dark .game-toolbar {
background: rgba(15, 23, 42, 0.75);
border-color: rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.theme-orange .game-toolbar {
background: rgba(255, 247, 237, 0.8);
border-color: rgba(253, 186, 116, 0.4);
}
.theme-blue .game-toolbar {
background: rgba(248, 250, 252, 0.8);
border-color: rgba(59, 188, 235, 0.2);
}
.theme-casual .game-toolbar {
background: rgba(255, 240, 245, 0.8);
border-color: rgba(203, 213, 225, 0.4);
}
.quiz-lang-select {
position: relative;
user-select: none;
z-index: 60;
}
.quiz-lang-btn {
display: flex;
align-items: center;
gap: 4px;
padding: 5px 8px;
border-radius: 8px;
cursor: pointer;
background: var(--btn);
border: 1px solid var(--border);
transition: background 0.2s, box-shadow 0.2s;
}
.quiz-lang-btn:hover {
background: var(--btn-hover);
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quiz-lang-btn img {
width: 20px;
height: 15px;
object-fit: cover;
border-radius: 2px;
}
.quiz-lang-arrow {
font-size: 10px;
color: var(--muted);
transition: transform 0.2s;
}
.quiz-lang-select.open .quiz-lang-arrow {
transform: rotate(180deg);
}
.quiz-lang-dropdown {
position: absolute;
top: calc(100% + 4px);
right: 0;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
display: none;
overflow: hidden;
min-width: 100px;
}
.quiz-lang-select.open .quiz-lang-dropdown {
display: block;
animation: fadeIn 0.15s ease-out;
}
.quiz-lang-option {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
cursor: pointer;
color: var(--text);
font-size: 13px;
font-weight: 600;
transition: background 0.15s;
}
.quiz-lang-option:hover {
background: var(--btn-hover);
}
.quiz-lang-option.active {
background: var(--accent);
color: #fff;
}
.quiz-lang-option img {
width: 20px;
height: 15px;
object-fit: cover;
border-radius: 2px;
}
.errors-list {
display: flex;
flex-direction: column;
gap: 10px;
text-align: left;
max-height: 50vh;
overflow-y: auto;
padding-right: 4px;
}
.errors-empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 0;
}
.error-card {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 14px;
transition: transform 0.15s;
}
.error-card:hover {
transform: translateY(-1px);
}
.error-card-question {
font-weight: 700;
font-size: 15px;
color: var(--text);
margin-bottom: 8px;
}
.error-card-answers {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.error-card-wrong,
.error-card-right {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
}
.error-card-wrong {
background: rgba(239, 68, 68, 0.1);
color: #dc2626;
text-decoration: line-through;
}
.error-card-right {
background: rgba(34, 197, 94, 0.1);
color: #16a34a;
}
.history-cards {
display: flex;
flex-direction: column;
gap: 10px;
text-align: left;
max-height: 50vh;
overflow-y: auto;
padding-right: 4px;
}
.history-empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 0;
}
.history-card {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 14px;
transition: transform 0.15s;
}
.history-card:hover {
transform: translateY(-1px);
}
.history-card-date {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: var(--muted);
font-weight: 500;
margin-bottom: 6px;
}
.history-card-row {
display: flex;
align-items: center;
gap: 10px;
}
.history-card-dicts {
font-size: 13px;
color: var(--text);
font-weight: 600;
line-height: 1.4;
flex: 1;
min-width: 0;
}
.history-card-score {
font-size: 14px;
font-weight: 800;
color: var(--primary-weak);
flex-shrink: 0;
}
.history-card-folder {
display: inline-block;
background: rgba(139, 92, 246, 0.1);
color: #7c3aed;
font-size: 11px;
font-weight: 700;
padding: 1px 6px;
border-radius: 5px;
vertical-align: baseline;
}
.history-play-btn {
width: 32px;
height: 32px;
flex-shrink: 0;
border: none;
border-radius: 10px;
background: linear-gradient(135deg, var(--accent), var(--accent-weak));
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.15s, box-shadow 0.2s;
box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}
.history-play-btn:hover {
transform: scale(1.1);
box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}
.history-clear-btn {
border: 1px solid rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.08);
color: #dc2626;
font-size: 13px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
padding: 8px 20px;
border-radius: 10px;
transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.history-clear-btn:hover {
background: rgba(239, 68, 68, 0.15);
border-color: rgba(239, 68, 68, 0.5);
transform: translateY(-1px);
}
.quiz-exit-btn {
display: inline-flex;
align-items: center;
gap: 5px;
}
.quiz-exit-btn svg {
flex-shrink: 0;
}
.dict-label-game {
text-align: center;
font-size: 12px;
color: var(--muted);
margin-bottom: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.dict-label-result {
font-size: 16px;
color: var(--text);
margin-bottom: 20px;
font-weight: 600;
padding: 0 20px;
line-height: 1.4;
}
.qcard {
text-align: center;
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
background: var(--panel);
border-radius: var(--radius);
padding: 20px;
border: 1px solid var(--border);
box-shadow: var(--shadow);
touch-action: none;
user-select: none;
transform-origin: 50% 100%;
z-index: 10;
transition: transform 0.1s;
}
.anim-reset {
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
transform: translate(0, 0) rotate(0) !important;
}
.anim-fly-left {
transition: transform 0.4s ease-in !important;
transform: translate(-150vw, 0) rotate(-30deg) !important;
opacity: 0.5;
}
.anim-fly-right {
transition: transform 0.4s ease-in !important;
transform: translate(150vw, 0) rotate(30deg) !important;
opacity: 0.5;
}
.czWord-wrap {
display: flex;
align-items: center;
gap: 12px;
margin: 15px 0;
flex-wrap: wrap;
justify-content: center;
}
.czWord {
font-size: clamp(28px, 6vw, 48px);
font-weight: 900;
margin: 0;
color: var(--primary);
line-height: 1.2;
}
.word-image-container {
margin: 10px 0;
display: flex;
justify-content: center;
width: 100%;
min-height: 50px;
position: relative;
pointer-events: none;
}
.word-image {
max-width: 100%;
max-height: 250px;
border-radius: 12px;
object-fit: contain;
}
.word-image-container.placeholder {
min-height: 180px;
background: rgba(0, 0, 0, 0.03);
border-radius: 12px;
border: 2px dashed var(--border);
align-items: center;
justify-content: center;
}
#overlayTimer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 80px;
font-weight: 900;
color: rgba(255, 255, 255, 0.95);
text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
pointer-events: none;
z-index: 20;
display: none;
font-family: monospace;
}
.word-image-container.placeholder #overlayTimer {
color: var(--muted);
text-shadow: none;
opacity: 0.3;
}
.options {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
width: 100%;
padding-bottom: 8px;
}
.options:empty {
display: none;
}
@media (max-width: 500px) {
.options {
grid-template-columns: 1fr;
}
.options:has(.opt:nth-child(5)) {
grid-template-columns: repeat(2, 1fr);
gap: 6px;
}
.options:has(.opt:nth-child(5)) .opt {
min-height: 40px;
font-size: 14px;
border-radius: 10px;
}
.options:has(.opt:nth-child(5)) .opt-text {
padding: 6px 8px;
}
.options:has(.opt:nth-child(5)) .opt-audio {
width: 36px;
font-size: 14px;
}
.quiz-active .options:not(:empty) {
min-height: 232px;
}
.quiz-active .options:has(.opt:nth-child(5)):not(:empty) {
min-height: 122px;
}
}
.opt {
padding: 0;
border: 1px solid var(--border);
background: var(--panel);
color: var(--text);
border-radius: 12px;
cursor: pointer;
text-align: left;
font-size: 16px;
font-weight: 500;
box-shadow: var(--shadow);
transition: transform 0.1s;
display: flex;
align-items: stretch;
justify-content: space-between;
overflow: hidden;
min-height: 54px;
}
.opt:active {
transform: scale(0.98);
}
.opt.correct {
background: var(--accent) !important;
color: #fff !important;
border-color: var(--accent);
}
.opt.wrong {
background: var(--danger) !important;
color: #fff !important;
border-color: var(--danger);
}
.opt-text {
flex-grow: 1;
padding: 12px 16px;
display: flex;
align-items: center;
}
.opt-audio {
width: 60px;
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: rgba(0, 0, 0, 0.02);
border-left: 1px solid transparent;
transition: background 0.2s;
}
.opt-audio:hover {
background: rgba(0, 0, 0, 0.08);
}
.opt-audio:active {
background: rgba(0, 0, 0, 0.15);
}
.opt.correct .opt-audio,
.opt.wrong .opt-audio {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.spelling-area {
display: none;
flex-direction: column;
align-items: center;
gap: 20px;
width: 100%;
margin-top: 10px;
}
.slots-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
min-height: 50px;
margin-bottom: 10px;
}
.slot {
width: 40px;
height: 50px;
border-bottom: 3px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: bold;
color: var(--text);
cursor: pointer;
user-select: none;
background: var(--panel, #fff);
border-radius: 4px 4px 0 0;
}
.slot.filled {
border-bottom-color: var(--primary);
}
.slot.error {
border-bottom-color: var(--danger);
color: var(--danger);
animation: shake 0.4s;
}
.slot.correct {
border-bottom-color: var(--accent);
color: var(--accent);
}
.slot.skipped {
border-bottom-color: var(--muted);
color: var(--muted);
}
.slot.fixed-char {
border-bottom: none;
width: auto;
min-width: 10px;
background: transparent;
font-size: 24px;
color: var(--muted);
}
.letters-pool {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.letter-btn {
min-width: 48px;
height: 52px;
padding: 0 10px;
border: 1px solid var(--border);
background: var(--panel);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: bold;
cursor: pointer;
box-shadow: var(--shadow);
color: var(--text);
}
.letter-btn.used {
opacity: 0.1;
pointer-events: none;
}
@keyframes shake {
0% {
transform: translateX(0)
}
25% {
transform: translateX(5px)
}
50% {
transform: translateX(-5px)
}
75% {
transform: translateX(5px)
}
100% {
transform: translateX(0)
}
}
.scoreboard {
display: flex;
align-items: center;
justify-content: center;
gap: 0;
margin: 0 0 8px 0;
align-self: center;
}
.scoreboard > div {
text-align: center;
}
.score-sep {
font-size: 18px;
font-weight: 700;
color: var(--muted);
padding: 0 4px;
}
.score-val {
font-size: 20px;
font-weight: 900;
}
.score-val.ok {
color: var(--accent);
}
.score-val.err {
color: var(--danger);
}
.progress-container {
display: none;
}
.progress-bar {
height: 100%;
background: var(--primary);
transition: width 0.3s;
}
#results {
display: none;
text-align: center;
padding: 30px 0;
content-visibility: auto;
}
body:has(.modal-backdrop[style*="flex"]),
body:has(.modal-backdrop[style*="block"]) {
overflow: hidden;
}
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 200;
display: none;
align-items: center;
justify-content: center;
padding: 16px;
backdrop-filter: blur(4px);
}
.modal {
background: var(--panel);
width: 100%;
max-width: 600px;
border-radius: 20px;
overflow: hidden;
max-height: 85vh;
display: flex;
flex-direction: column;
border: 1px solid var(--border);
box-shadow: var(--shadow-hover);
}
.modal header {
padding: 16px 20px;
background: var(--btn);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
font-weight: bold;
}
.modal .content {
padding: 20px;
overflow-y: auto;
}
.cabinet-modal .cabinet-header {
justify-content: center;
position: relative;
margin-left: 0;
margin-right: 0;
width: 100%;
background: var(--btn);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border-radius: 0;
box-shadow: none;
}
.cabinet-header-name {
display: flex;
align-items: center;
gap: 8px;
font-size: 18px;
font-weight: 700;
}
.cabinet-close-btn {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
border: none;
background: var(--btn-hover);
color: var(--muted);
border-radius: 10px;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cabinet-close-btn:hover {
background: var(--border);
color: var(--text);
transform: translateY(-50%) scale(1.1);
}
.cabinet-modal {
max-width: 1060px;
height: 80vh;
max-height: 80vh;
}
.cabinet-modal .content {
flex: 1;
overflow-y: auto;
min-height: 0;
scrollbar-color: var(--border) transparent;
}
.cabinet-modal .content::-webkit-scrollbar { width: 6px; }
.cabinet-modal .content::-webkit-scrollbar-track { background: transparent; }
.cabinet-modal .content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
@media (max-width: 600px) {
.cabinet-modal {
max-width: 100%;
width: 100%;
height: 100vh;
height: 100dvh;
max-height: 100vh;
max-height: 100dvh;
border-radius: 0;
}
.modal-backdrop:has(.cabinet-modal) {
padding: 0;
}
.cabinet-modal header {
padding: 12px 16px;
font-size: 16px;
}
.cabinet-modal .content {
padding: 12px;
}
.cabinet-tabs {
flex-wrap: wrap;
gap: 0;
}
.cabinet-tab {
flex: 0 0 auto;
padding: 8px 10px;
font-size: 13px;
}
.cabinet-tab {
white-space: nowrap;
font-size: 13px;
padding: 8px 10px;
}
.profile-avatar-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.res-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.res-table th {
text-align: left;
padding: 8px;
border-bottom: 2px solid var(--border);
color: var(--muted);
}
.res-table td {
padding: 8px;
border-bottom: 1px solid var(--border);
color: var(--text);
}
.speak-btn {
background: var(--btn);
border: 1px solid var(--border);
color: var(--text);
width: 44px;
height: 44px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.speak-btn svg { width: 22px; height: 22px; }
#timerDisplay {
font-family: monospace;
font-size: 14px;
font-weight: bold;
color: var(--muted);
border: 1px solid var(--border);
padding: 3px 8px;
border-radius: 6px;
margin-left: 10px;
background: var(--panel);
display: none;
min-width: 52px;
text-align: center;
line-height: 1.3;
}
#timerDisplay.danger {
color: var(--danger);
border-color: var(--danger);
}
.auth-modal {
max-width: 420px;
border-radius: 24px;
overflow: visible;
position: relative;
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.1);
}
.auth-modal-body {
padding: 40px 32px 32px;
text-align: center;
}
.auth-modal-icon {
width: 64px;
height: 64px;
margin: 0 auto 16px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 20px;
background: linear-gradient(135deg, var(--primary), var(--primary-weak));
color: #fff;
box-shadow: 0 8px 24px rgba(59, 188, 235, 0.3);
}
.auth-modal-title {
margin: 0 0 24px;
font-size: 22px;
font-weight: 700;
color: var(--text);
letter-spacing: -0.3px;
}
.auth-close-btn {
position: absolute;
top: 14px;
right: 14px;
width: 32px;
height: 32px;
border: none;
background: var(--btn);
color: var(--muted);
border-radius: 10px;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, color 0.2s, transform 0.15s;
z-index: 1;
}
.auth-close-btn:hover {
background: var(--btn-hover);
color: var(--text);
transform: scale(1.1);
}
.auth-form {
display: flex;
flex-direction: column;
gap: 16px;
text-align: left;
}
.auth-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.auth-label {
font-size: 12px;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.5px;
padding-left: 4px;
}
.auth-input-wrap {
position: relative;
display: flex;
align-items: center;
}
.auth-input-icon {
position: absolute;
left: 14px;
color: var(--muted);
pointer-events: none;
transition: color 0.2s;
flex-shrink: 0;
}
.auth-input {
width: 100%;
padding: 14px 16px 14px 44px;
border: 2px solid var(--border);
border-radius: 14px;
background: var(--bg);
color: var(--text);
font-size: 15px;
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(59, 188, 235, 0.12);
background: var(--panel);
}
.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
color: var(--primary-weak);
}
.auth-submit-btn {
width: 100%;
padding: 15px;
border: none;
border-radius: 14px;
background: linear-gradient(135deg, var(--primary), var(--primary-weak));
color: var(--primary-text, #fff);
font-size: 15px;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
box-shadow: 0 4px 16px rgba(59, 188, 235, 0.3);
margin-top: 4px;
}
.auth-submit-btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 24px rgba(59, 188, 235, 0.4);
}
.auth-submit-btn:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(59, 188, 235, 0.3);
}
.auth-links {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 4px;
}
.auth-link {
color: var(--muted);
text-decoration: none;
font-size: 13px;
transition: color 0.2s;
}
.auth-link:hover {
color: var(--text);
}
.auth-link-accent {
color: var(--primary-weak);
font-weight: 600;
}
.auth-link-accent:hover {
color: var(--primary-weak);
}
.auth-divider {
width: 40px;
height: 1px;
background: var(--border);
}
.theme-dark .auth-modal-icon {
box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.theme-dark .auth-submit-btn {
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}
.theme-dark .auth-submit-btn:hover {
box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}
.theme-orange .auth-modal-icon {
box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}
.theme-orange .auth-submit-btn {
box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
.theme-orange .auth-input:focus {
box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.theme-casual .auth-modal-icon {
box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.theme-casual .auth-submit-btn {
box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.theme-casual .auth-input:focus {
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
@media (max-width: 480px) {
.auth-modal-body {
padding: 32px 20px 24px;
}
.auth-modal-icon {
width: 56px;
height: 56px;
border-radius: 16px;
}
.auth-modal-icon svg {
width: 28px;
height: 28px;
}
.auth-modal-title {
font-size: 20px;
}
}
.contact-captcha {
display: flex;
align-items: center;
gap: 10px;
padding: 15px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
user-select: none;
cursor: pointer;
}
.contact-captcha input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: var(--primary);
}
#listView {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
display: none;
width: 100%;
margin-bottom: 10px;
}
.word-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
transition: background 0.2s;
}
.word-row:last-child {
border-bottom: none;
}
.word-row:hover {
background: var(--btn-hover);
}
.word-row .cz {
font-weight: 800;
color: var(--primary-weak);
font-size: 18px;
line-height: 1.2;
}
.word-row .tr {
font-size: 15px;
color: var(--text);
text-align: right;
margin-left: auto;
margin-right: 15px;
font-weight: 500;
}
.word-row .list-play {
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--btn);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
font-size: 16px;
}
.word-row .list-play:active {
transform: scale(0.95);
}
@media (min-width: 601px) and (max-width: 1024px) {
header {
flex-wrap: nowrap;
}
header > div:first-child {
min-width: 0;
}
header > div:first-child > div {
min-width: 0;
}
header > div:first-child img {
flex-shrink: 0;
}
h1 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#appSlogan {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: clamp(11px, 1.5vw, 13px) !important;
}
.app-beta-badge {
display: none;
}
#userAuthBtn .auth-btn-text, #userRegisterBtn .auth-btn-text {
display: none;
}
#userAuthBtn, #userRegisterBtn {
padding: 0 13px;
}
.header-right-group {
flex-shrink: 0;
}
}
@media (max-width: 600px) {
.main-content {
padding: 10px;
}
.mode-bar {
flex-wrap: wrap;
border-radius: 14px;
gap: 2px;
}
.mode-bar .quick-toggle-btn {
flex: 0 0 auto;
font-size: 12px;
padding: 8px 12px;
}
.card {
padding: 12px;
}
:root {
--card-size: 90px;
}
.dict-grid-container {
gap: 8px;
}
.dict-name {
font-size: 11px;
line-height: 1.3;
}
.dict-card.selected::after {
background-size: 60%;
}
.dict-card:hover {
transform: none;
}
.word-image {
max-height: 160px;
}
.word-image-container {
margin: 5px 0;
}
.word-image-container.placeholder {
min-height: 140px;
}
.game-toolbar {
padding: 8px 10px;
border-radius: 12px;
}
.qcard {
margin-bottom: 10px;
padding: 15px;
}
.czWord-wrap {
margin: 10px 0;
}
.options {
gap: 8px;
}
.opt {
padding: 0;
}
.word-row {
padding: 10px;
}
.word-row .cz {
font-size: 16px;
}
.word-row .tr {
font-size: 14px;
}
header {
gap: 8px;
margin-bottom: 16px;
flex-wrap: nowrap;
padding: 8px 10px;
margin-left: -10px;
margin-right: -10px;
width: calc(100% + 20px);
border-radius: 0 0 14px 14px;
}
header > div:first-child {
gap: 8px !important;
min-width: 0;
}
header > div:first-child img {
height: 38px !important;
flex-shrink: 0;
}
h1 {
font-size: 16px !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#appSlogan {
display: none !important;
}
.header-right-group {
gap: 6px;
flex-shrink: 0;
}
.settings-gear-btn {
width: 36px;
height: 36px;
font-size: 17px;
}
#userAuthBtn, #userRegisterBtn {
padding: 0 10px;
font-size: 11px;
height: 36px;
}
#userAuthBtn .auth-btn-text, #userRegisterBtn .auth-btn-text {
display: none;
}
#teacherAdminBtn {
padding: 0 10px;
font-size: 11px;
height: 36px;
}
.custom-select-container {
width: auto;
min-width: 60px;
}
.select-btn .lang-name {
display: none;
}
.select-btn {
padding: 0 10px !important;
height: 42px !important;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.select-dropdown {
width: auto;
min-width: 150px;
right: 0;
}
.settings-gear-dropdown {
position: fixed;
top: 70px;
left: 10px;
right: 10px;
width: auto;
max-height: calc(100vh - 90px);
overflow-y: auto;
z-index: 60;
}
.settings-gear-dropdown .settings {
grid-template-columns: 1fr;
}
}
#matchUpArea {
display: none;
flex-direction: column;
gap: 15px;
padding-bottom: 20px;
width: 100%;
max-width: 600px;
margin: 0 auto;
}
.matchup-columns {
display: flex;
flex-direction: row;
gap: 15px;
justify-content: space-between;
width: 100%;
}
.matchup-col {
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
}
.matchup-btn {
background: var(--panel);
border: 2px solid var(--border);
border-radius: 12px;
padding: 15px;
font-size: 16px;
font-weight: 500;
color: var(--text);
cursor: pointer;
text-align: center;
transition: all 0.2s ease;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
word-break: break-word;
user-select: none;
}
.matchup-btn.selected {
border-color: var(--primary, #8b5cf6);
background: var(--panel, #fff);
border-width: 2px;
transform: scale(0.98);
}
.matchup-btn.correct-match {
border-color: var(--accent, #22c55e);
background: var(--panel, #fff);
color: var(--accent, #22c55e);
}
.matchup-btn.wrong-match {
border-color: var(--danger, #ef4444);
background: var(--panel, #fff);
color: var(--danger, #ef4444);
animation: shake 0.4s;
}
.matchup-btn.hidden {
opacity: 0.5;
pointer-events: none;
border-color: var(--accent, #22c55e);
background: rgba(34, 197, 94, 0.08);
color: var(--accent, #22c55e);
text-decoration: line-through;
}
.sentence-word-btn {
background: var(--panel);
border: 2px solid var(--border);
border-radius: 12px;
padding: 10px 15px;
font-size: 16px;
font-weight: 500;
color: var(--text);
cursor: pointer;
text-align: center;
transition: all 0.2s ease;
user-select: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sentence-word-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-color: var(--primary-weak);
}
.sentence-word-btn:active {
transform: scale(0.95);
}
.sentence-word-btn.constructed {
background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
border-color: var(--primary);
color: var(--primary-weak);
}
.sentence-word-btn.constructed.correct {
background: var(--panel, #fff);
border-color: var(--accent, #22c55e);
color: var(--accent, #22c55e);
}
.sentence-word-btn.constructed.wrong {
background: var(--panel, #fff);
border-color: var(--danger);
color: var(--danger);
}
.sentence-word-correct {
padding: 10px;
font-size: 16px;
font-weight: bold;
color: var(--accent, #22c55e);
border-bottom: 2px solid var(--accent, #22c55e);
}
.sentence-slot {
height: 44px;
min-width: 70px;
border: 2px solid var(--border);
border-radius: 8px;
background: var(--panel, #fff);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
#sentenceConstructedArea.correct {
border-color: var(--accent, #22c55e);
background: var(--panel, #fff);
font-size: 20px;
font-weight: bold;
color: var(--accent, #22c55e);
}
#sentenceConstructedArea.wrong {
border-color: var(--danger);
background: rgba(var(--danger-rgb, 248, 113, 113), 0.1);
animation: shake 0.4s;
}
.quiz-active {
overflow: hidden;
}
.quiz-active.quiz-list-mode {
overflow: auto;
}
.quiz-active .container > header,
.quiz-active .app-footer {
display: none;
}
.quiz-active .main-content {
padding-top: 10px;
padding-bottom: 0;
overflow: hidden;
}
.quiz-active.quiz-list-mode .main-content {
overflow: visible;
}
.quiz-active .qcard {
padding: 14px;
margin-bottom: 10px;
}
.quiz-active .word-image-container {
margin: 6px 0;
}
.quiz-active .word-image {
max-height: min(200px, 24dvh);
}
.quiz-active .word-image-container.placeholder {
min-height: 120px;
}
.quiz-active .word-image-container.img-loading {
visibility: hidden;
min-height: min(200px, 24dvh);
}
.quiz-active .options:not(:empty) {
min-height: 122px;
}
.quiz-active .czWord-wrap {
margin: 8px 0;
}
.quiz-active .game-toolbar {
margin-bottom: 8px;
padding: 8px 16px;
}
.quiz-active .dict-label-game {
margin-bottom: 8px;
}
.quiz-active .scoreboard {
margin: 0 0 6px 0;
}
.quiz-active .score-val {
font-size: 18px;
}
.quiz-active .score-sep {
font-size: 16px;
}
@media (min-width: 1024px) and (min-height: 701px) {
.quiz-active .qcard {
padding: 18px;
}
.quiz-active .word-image {
max-height: min(360px, 46dvh);
}
.quiz-active .word-image-container.img-loading {
min-height: min(360px, 46dvh);
}
.quiz-active .czWord {
font-size: clamp(28px, 6vw, 52px);
}
.quiz-active #gameArea:has(#spellingArea[style*="flex"]) .word-image,
.quiz-active #gameArea:has(#sentenceBuilderArea[style*="flex"]) .word-image {
max-height: min(200px, 24dvh);
}
.quiz-active #gameArea:has(#spellingArea[style*="flex"]) .czWord,
.quiz-active #gameArea:has(#sentenceBuilderArea[style*="flex"]) .czWord {
font-size: clamp(28px, 6vw, 48px);
}
}
@media (max-height: 700px) {
.quiz-active .main-content {
padding-top: 6px;
}
.quiz-active .qcard {
padding: 10px;
margin-bottom: 6px;
}
.quiz-active .word-image {
max-height: min(130px, 18dvh);
}
.quiz-active .word-image-container {
margin: 2px 0;
}
.quiz-active .word-image-container.placeholder {
min-height: 80px;
}
.quiz-active .word-image-container.img-loading {
min-height: min(130px, 18dvh);
}
.quiz-active .czWord-wrap {
margin: 4px 0;
}
.quiz-active .game-toolbar {
margin-bottom: 4px;
padding: 6px 12px;
}
.quiz-active .dict-label-game {
margin-bottom: 4px;
}
.quiz-active .options {
gap: 6px;
}
.quiz-active .opt {
min-height: 42px;
}
.quiz-active .spelling-area {
gap: 8px;
margin-top: 2px;
}
.quiz-active .slots-container {
gap: 4px;
margin-bottom: 4px;
min-height: 36px;
}
.quiz-active .slot {
height: 40px;
font-size: 22px;
}
.quiz-active .letter-btn {
min-width: 38px;
height: 42px;
font-size: 19px;
}
.quiz-active .letters-pool {
gap: 4px;
}
.quiz-active .matchup-btn {
padding: 8px;
min-height: 40px;
font-size: 14px;
}
.quiz-active #matchUpArea {
gap: 8px;
}
.quiz-active .matchup-columns {
gap: 8px;
}
.quiz-active .matchup-col {
gap: 5px;
}
.quiz-active .scoreboard {
margin: 0 0 3px 0;
}
.quiz-active .score-val {
font-size: 16px;
}
.quiz-active .score-sep {
font-size: 14px;
}
}
@media (orientation: portrait) and (max-width: 1024px) {
.quiz-active .word-image {
max-height: 42dvh;
}
.quiz-active .word-image-container.img-loading {
min-height: 42dvh;
}
.quiz-active #gameArea:has(#spellingArea[style*="flex"]) .word-image,
.quiz-active #gameArea:has(#sentenceBuilderArea[style*="flex"]) .word-image {
max-height: min(200px, 24dvh);
}
.quiz-active #gameArea:has(#spellingArea[style*="flex"]) .word-image-container.img-loading,
.quiz-active #gameArea:has(#sentenceBuilderArea[style*="flex"]) .word-image-container.img-loading {
min-height: min(200px, 24dvh);
}
}
.sentence-mode #sentenceConstructedArea {
min-height: 40px;
padding: 6px;
margin-bottom: 8px;
gap: 6px;
}
.sentence-mode #sentenceAvailableArea {
margin-bottom: 8px;
gap: 6px;
}
.sentence-mode .sentence-word-btn {
padding: 7px 12px;
font-size: 15px;
}
.sentence-mode #skipSentenceBtn {
margin-top: 4px;
}
.cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 9999;
background: var(--panel);
border-top: 1px solid var(--border);
box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
animation: cookieSlideUp 0.4s ease-out;
}
.cookie-banner-text {
color: var(--text);
font-size: 14px;
line-height: 1.4;
flex: 0 1 auto;
}
.cookie-banner-text span {
opacity: 0.7;
font-size: 18px;
margin-right: 6px;
vertical-align: middle;
}
.cookie-banner-buttons {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.cookie-btn {
padding: 8px 18px;
border-radius: var(--radius, 8px);
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: none;
transition: opacity 0.2s, transform 0.1s;
white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn-accept {
background: var(--accent);
color: #1a1a1a;
font-weight: 700;
}
.theme-dark .cookie-btn-accept,
.theme-blue .cookie-btn-accept,
.theme-casual .cookie-btn-accept {
color: #fff;
}
.cookie-btn-reject {
background: transparent;
color: var(--text);
border: 1px solid var(--border);
}
@keyframes cookieSlideUp {
from { transform: translateY(100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
.cookie-banner {
flex-direction: column;
text-align: center;
padding: 14px 16px;
gap: 12px;
}
.cookie-banner-buttons { width: 100%; }
.cookie-btn { flex: 1; }
}
.msg-badge {
position: absolute;
top: -6px;
right: -6px;
background: #ef4444;
color: #fff;
font-size: 11px;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
line-height: 1;
pointer-events: none;
}
.updates-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
background: color-mix(in srgb, var(--primary, #6366f1) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--primary, #6366f1) 28%, transparent);
color: var(--text);
font-size: 12px;
text-decoration: none;
transition: background 0.15s, border-color 0.15s;
}
.updates-chip span {
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
}
.updates-chip:hover {
background: color-mix(in srgb, var(--primary, #6366f1) 20%, transparent);
border-color: color-mix(in srgb, var(--primary, #6366f1) 55%, transparent);
}
.updates-chip.locked {
background: rgba(148, 163, 184, 0.1);
border-color: rgba(148, 163, 184, 0.3);
color: var(--muted, #94a3b8);
opacity: 0.85;
}
.updates-chip.locked:hover {
background: rgba(148, 163, 184, 0.18);
border-color: rgba(148, 163, 184, 0.5);
}
.updates-close-btn:hover {
background: rgba(127, 127, 127, 0.12);
}
.updates-section-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted, #94a3b8);
margin: 12px 0 8px;
}
.updates-dict-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 12px;
margin-bottom: 6px;
}
.updates-dict-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
text-decoration: none;
color: var(--text);
border-radius: 12px;
padding: 8px;
border: 1px solid var(--border, rgba(0,0,0,0.08));
background: var(--panel, #fff);
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
cursor: pointer;
}
.updates-dict-card:hover {
transform: translateY(-2px);
border-color: color-mix(in srgb, var(--primary, #6366f1) 55%, transparent);
box-shadow: 0 6px 18px color-mix(in srgb, var(--primary, #6366f1) 25%, transparent);
}
.updates-dict-cover-wrap {
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 10px;
overflow: hidden;
background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(244,114,182,0.12));
display: flex;
align-items: center;
justify-content: center;
}
.updates-dict-cover-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.updates-dict-cover-wrap.no-img::after {
content: "";
width: 32px;
height: 32px;
background: rgba(0,0,0,0.12);
border-radius: 50%;
}
.updates-dict-name {
font-size: 12px;
font-weight: 600;
margin-top: 8px;
line-height: 1.25;
word-break: break-word;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.updates-dict-card.locked .updates-dict-cover-wrap img {
filter: grayscale(0.7) brightness(0.85);
opacity: 0.7;
}
.updates-dict-card.locked .updates-dict-name {
color: var(--muted, #94a3b8);
}
.updates-mode-popover {
position: fixed;
z-index: 10001;
min-width: 160px;
max-width: 220px;
background: var(--panel-solid, var(--panel, #fff));
border: 1px solid var(--border, rgba(0,0,0,0.12));
border-radius: 12px;
box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.08);
padding: 6px;
display: flex;
flex-direction: column;
gap: 4px;
}
.updates-mode-popover-btn {
appearance: none;
-webkit-appearance: none;
border: none;
background: transparent;
color: var(--text);
cursor: pointer;
text-align: left;
padding: 8px 12px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
font-family: inherit;
transition: none;
}
.updates-mode-popover-btn:hover {
background: var(--primary);
color: var(--primary-text, #fff);
}
.updates-dict-lock {
position: absolute;
top: 6px;
right: 6px;
background: rgba(255, 255, 255, 0.9);
color: #475569;
border-radius: 50%;
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.updates-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 4px;
}
.tab-msg-badge {
background: #ef4444;
color: #fff;
font-size: 10px;
font-weight: 700;
min-width: 16px;
height: 16px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 4px;
line-height: 1;
margin-left: 4px;
vertical-align: middle;
}
.msg-thread {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 12px 4px;
scroll-behavior: smooth;
}
.msg-bubble {
max-width: 80%;
padding: 10px 14px;
border-radius: 16px;
font-size: 14px;
line-height: 1.45;
word-wrap: break-word;
overflow-wrap: break-word;
}
.msg-bubble.sent {
align-self: flex-end;
background: var(--accent, #6366f1);
color: #fff;
border-bottom-right-radius: 4px;
}
.msg-bubble.received {
align-self: flex-start;
background: var(--btn, #f1f5f9);
color: var(--text, #1e293b);
border-bottom-left-radius: 4px;
}
.msg-bubble.received p { margin: 0 0 4px; }
.msg-bubble.received p:last-child { margin: 0; }
.msg-time {
font-size: 11px;
color: var(--text-secondary, #94a3b8);
margin-top: 2px;
}
.msg-time.sent { text-align: right; }
.msg-time.received { text-align: left; }
.msg-status-read { color: #22c55e; }
.msg-status-sent { color: var(--text-secondary, #94a3b8); }
.msg-date-sep {
text-align: center;
font-size: 12px;
color: var(--text-secondary, #94a3b8);
margin: 8px 0;
font-weight: 600;
}
.msg-input-area {
display: flex;
gap: 8px;
align-items: center;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border, #e2e8f0);
}
.msg-input-area textarea {
flex: 1;
resize: none;
border: 1px solid var(--border, #e2e8f0);
border-radius: 12px;
padding: 10px 14px;
font-size: 14px;
font-family: inherit;
background: var(--panel, #fff);
color: var(--text, #1e293b);
max-height: 120px;
outline: none;
transition: border-color .2s;
box-sizing: border-box;
}
.msg-input-area textarea:focus { border-color: var(--accent, #6366f1); }
.msg-send-btn {
background: var(--accent, #6366f1);
color: #fff;
border: none;
border-radius: 12px;
padding: 10px 18px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: opacity .2s;
}
.msg-send-btn:hover { opacity: .85; }
.msg-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.msg-emoji-btn {
background: none;
border: 1px solid var(--border, #e2e8f0);
border-radius: 12px;
padding: 10px 12px;
font-size: 18px;
cursor: pointer;
line-height: 1;
transition: background .2s;
}
.msg-emoji-btn:hover { background: var(--card-bg, #f1f5f9); }
.msg-emoji-picker {
position: absolute;
bottom: 100%;
left: 0;
background: var(--bg, #fff);
border: 1px solid var(--border, #e2e8f0);
border-radius: 12px;
padding: 8px;
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
box-shadow: 0 4px 16px rgba(0,0,0,.12);
z-index: 100;
width: 360px;
max-height: 300px;
overflow-y: auto;
overflow-x: hidden;
}
.msg-emoji-picker span {
font-size: 22px;
cursor: pointer;
padding: 4px;
border-radius: 6px;
text-align: center;
transition: background .15s;
}
.msg-emoji-picker span:hover { background: var(--card-bg, #f1f5f9); }
.msg-empty {
text-align: center;
padding: 40px 20px;
color: var(--text-secondary, #94a3b8);
font-size: 14px;
}
.msg-load-more {
text-align: center;
margin-bottom: 8px;
}
.msg-load-more button {
background: none;
border: 1px solid var(--border, #e2e8f0);
border-radius: 8px;
padding: 6px 16px;
font-size: 12px;
color: var(--text-secondary, #94a3b8);
cursor: pointer;
}
.msg-load-more button:hover { background: var(--card-bg, #f1f5f9); }
#sortingArea {
flex-direction: column;
align-items: center;
gap: 28px;
width: 100%;
padding: 20px 0;
}
.sorting-card-area {
display: flex;
justify-content: center;
width: 100%;
perspective: 800px;
}
.sorting-card {
background: var(--panel);
border: 2px solid var(--border);
border-radius: 20px;
padding: 32px 48px;
text-align: center;
min-width: 220px;
max-width: 360px;
transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.sorting-card:hover {
box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.sorting-root {
font-size: 36px;
font-weight: 700;
color: var(--accent);
margin-bottom: 8px;
letter-spacing: 0.5px;
line-height: 1.2;
}
.sorting-tts-btn {
margin-top: 10px;
background: none;
border: 1.5px solid var(--border);
border-radius: 50%;
width: 38px;
height: 38px;
font-size: 18px;
cursor: pointer;
transition: all 0.18s ease;
color: var(--text-secondary, #64748b);
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.sorting-tts-btn:hover {
border-color: var(--accent);
color: var(--accent);
background: rgba(var(--accent-rgb, 50,130,246), 0.08);
transform: scale(1.1);
}
.sorting-tts-btn:active {
transform: scale(0.95);
}
.sorting-tts-btn svg { width: 20px; height: 20px; }
.sorting-baskets {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
width: 100%;
max-width: 640px;
padding: 0 12px;
}
.sorting-basket {
flex: 1;
min-width: 130px;
max-width: 210px;
padding: 18px 18px 16px;
border-radius: 16px;
background: linear-gradient(180deg, var(--panel-solid, #fff) 0%, color-mix(in srgb, var(--accent, #22c55e) 4%, var(--panel-solid, #fff)) 100%);
border: 2px solid var(--border);
text-align: center;
cursor: pointer;
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
user-select: none;
position: relative;
overflow: hidden;
box-shadow: 0 4px 14px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.sorting-basket::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, var(--accent, #22c55e), transparent);
opacity: 0.5;
transition: opacity 0.18s ease;
}
.sorting-basket:hover {
transform: translateY(-3px);
border-color: var(--accent, #22c55e);
box-shadow: 0 10px 24px color-mix(in srgb, var(--accent, #22c55e) 22%, transparent), inset 0 1px 0 rgba(255,255,255,0.6);
}
.sorting-basket:hover::before {
opacity: 1;
}
.sorting-basket:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.sorting-basket-icon {
width: 26px;
height: 26px;
color: var(--accent, #22c55e);
opacity: 0.85;
margin-bottom: 2px;
transition: transform 0.18s ease, opacity 0.18s ease;
}
.sorting-basket:hover .sorting-basket-icon {
transform: scale(1.08);
opacity: 1;
}
.sorting-basket-label {
font-weight: 700;
font-size: 15px;
color: var(--text);
line-height: 1.25;
}
.sorting-basket-count {
font-size: 13px;
font-weight: 600;
color: var(--accent, #22c55e);
background: color-mix(in srgb, var(--accent, #22c55e) 12%, transparent);
padding: 2px 10px;
border-radius: 999px;
min-width: 28px;
margin-top: 2px;
}
.sorting-basket.correct {
border-color: #22c55e;
background: rgba(34, 197, 94, 0.1);
box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
animation: sortCorrectPulse 0.5s ease;
}
.sorting-basket.correct .sorting-basket-label {
color: #16a34a;
}
.sorting-basket.wrong {
border-color: #ef4444;
background: rgba(239, 68, 68, 0.08);
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
animation: sortShake 0.4s ease;
}
.sorting-basket.wrong .sorting-basket-label {
color: #ef4444;
}
.sorting-card-correct {
border-color: #22c55e !important;
background: linear-gradient(rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.12)), var(--panel) !important;
}
.sorting-card-wrong {
animation: sortShake 0.4s ease;
border-color: #ef4444 !important;
}
.sorting-merge {
display: inline-block;
font-size: 34px;
font-weight: 700;
color: #22c55e;
animation: sortMergeIn 0.5s ease-out;
}
@keyframes sortCorrectPulse {
0% { transform: scale(1) translateY(-3px); }
40% { transform: scale(1.06) translateY(-3px); }
100% { transform: scale(1) translateY(-3px); }
}
@keyframes sortShake {
0%, 100% { transform: translateX(0); }
15% { transform: translateX(-8px); }
30% { transform: translateX(8px); }
45% { transform: translateX(-5px); }
60% { transform: translateX(5px); }
75% { transform: translateX(-2px); }
90% { transform: translateX(2px); }
}
@keyframes sortMergeIn {
0% { opacity: 0; transform: scale(0.7); }
60% { opacity: 1; transform: scale(1.08); }
100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
.sorting-card {
padding: 24px 28px;
min-width: 180px;
}
.sorting-root {
font-size: 28px;
}
.sorting-basket {
min-width: 90px;
padding: 14px 10px 12px;
border-radius: 14px;
}
.sorting-basket-icon {
width: 22px;
height: 22px;
}
.sorting-basket-label {
font-size: 13px;
}
.sorting-basket-count {
font-size: 12px;
padding: 1px 8px;
}
.sorting-baskets {
gap: 10px;
}
}
.lb-exercise {
position: relative;
margin: 20px 0;
padding: 20px;
border-radius: 16px;
background: var(--card-bg, #fff);
border: 1px solid var(--border);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lb-progress-badge {
display: block;
text-align: right;
padding: 4px 10px;
border-radius: 12px;
background: rgba(0,0,0,0.06);
color: var(--text-muted);
font-size: 12px;
font-weight: 600;
transition: all 0.3s ease;
margin-bottom: 8px;
width: fit-content;
margin-left: auto;
}
.lb-progress-badge.lb-badge-done {
background: rgba(34,197,94,0.15);
color: #16a34a;
font-size: 13px;
}
.lb-exercise-complete {
border-color: #22c55e !important;
animation: lb-complete-pulse 0.6s ease;
box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}
@keyframes lb-complete-pulse {
0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.15); }
100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
}
.lb-exercise-instr {
font-size: 15px;
font-weight: 600;
color: var(--text);
margin-bottom: 16px;
}
.lesson-table th,
.lesson-table td {
padding: 10px 16px;
border-bottom: 1px solid var(--border);
text-align: left;
white-space: normal;
}
.lesson-table thead th {
background: var(--panel);
font-weight: 600;
font-size: 14px;
}
.lesson-table tbody tr:last-child td { border-bottom: none; }
.lesson-table tbody tr:hover { background: rgba(0,0,0,0.02); }
@media (max-width: 600px) {
.lesson-table th,
.lesson-table td { padding: 8px 10px; font-size: 13px; }
}
.lb-czword-table {
width: 100%;
border-collapse: collapse;
margin: 12px 0;
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}
.lb-czword-row td {
padding: 10px 16px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
width: 50%;
}
.lb-czword-row:last-child td {
border-bottom: none;
}
.lb-czword-row:nth-child(even) td {
background: rgba(0,0,0,0.015);
}
.lb-czword-img-cell {
width: 48px !important;
padding-right: 0 !important;
}
.lb-czword-img {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 8px;
}
.lb-czword-cz {
font-size: 15px;
font-weight: 700;
color: var(--accent, #6366f1);
cursor: pointer;
}
.lb-czword-cz:hover { opacity: 0.8; }
.lb-czword-trs-cell {
font-size: 15px;
color: var(--text);
}
.lb-match-grid {
display: flex;
gap: 20px;
justify-content: center;
}
.lb-match-col {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 120px;
}
.lb-match-item {
padding: 12px 18px;
border-radius: 10px;
border: 2px solid var(--border);
background: var(--card-bg, #fff);
text-align: center;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
user-select: none;
}
.lb-match-item:hover { border-color: var(--accent); }
.lb-match-item.lb-selected {
border-color: var(--accent, #6366f1);
background: rgba(99,102,241,0.08);
}
.lb-match-item.lb-matched {
border-color: #22c55e;
background: rgba(34,197,94,0.1);
opacity: 0.6;
pointer-events: none;
}
.lb-match-item.lb-wrong {
border-color: #ef4444;
background: rgba(239,68,68,0.08);
animation: lb-shake 0.4s;
}
.lb-fill-sentence {
font-size: 17px;
line-height: 2;
margin-bottom: 12px;
}
.lb-fill-input {
display: inline-block;
width: 120px;
padding: 6px 12px;
border: 2px solid var(--border);
border-radius: 8px;
font-size: 16px;
text-align: center;
background: var(--card-bg, #fff);
color: var(--text);
font-family: Inter, sans-serif;
transition: border-color 0.3s;
}
.lb-fill-input:focus {
outline: none;
border-color: var(--accent);
}
.lb-fill-input.lb-correct {
border-color: #22c55e;
background: rgba(34,197,94,0.08);
}
.lb-fill-input.lb-incorrect {
border-color: #ef4444;
background: rgba(239,68,68,0.06);
}
.lb-fill-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.lb-hint {
font-size: 13px;
color: var(--text-muted);
font-style: italic;
flex-basis: 100%;
order: -1;
}
.lb-btn {
padding: 10px 20px;
border: none;
border-radius: 10px;
background: var(--accent, #6366f1);
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
font-family: Inter, sans-serif;
transition: opacity 0.2s;
}
.lb-btn:hover { opacity: 0.85; }
.lb-btn-ghost {
background: transparent;
color: var(--accent, #6366f1);
border: 1px solid var(--accent, #6366f1);
}
.lb-btn-skip {
background: transparent;
color: var(--text-muted, #999);
border: 1px solid var(--border, #ddd);
font-weight: 500;
}
.lb-btn-skip:hover { opacity: 0.7; }
.lb-skip-wrap {
margin-top: 10px;
text-align: center;
}
.lb-exercise.lb-skipped {
opacity: 0.7;
}
.lb-wo-translation {
font-size: 15px;
color: var(--text-muted);
margin-bottom: 12px;
font-style: italic;
}
.lb-wo-answer {
min-height: 48px;
padding: 8px 12px;
border: 2px dashed var(--border);
border-radius: 12px;
margin-bottom: 12px;
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
transition: all 0.3s;
}
.lb-wo-answer.lb-correct {
border-color: #22c55e;
background: rgba(34,197,94,0.06);
}
.lb-wo-answer.lb-incorrect {
border-color: #ef4444;
background: rgba(239,68,68,0.04);
}
.lb-wo-words {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 14px;
}
.lb-wo-word {
padding: 8px 16px;
border-radius: 10px;
background: var(--card-bg, #fff);
border: 2px solid var(--border);
font-size: 15px;
cursor: pointer;
user-select: none;
transition: all 0.2s;
}
.lb-wo-word:hover { border-color: var(--accent); }
.lb-wo-word.lb-used {
opacity: 0.3;
pointer-events: none;
}
.lb-wo-placed {
padding: 6px 14px;
border-radius: 8px;
background: rgba(99,102,241,0.1);
border: 1px solid var(--accent, #6366f1);
font-size: 14px;
cursor: pointer;
}
.lb-wo-placed:hover {
background: rgba(239,68,68,0.1);
border-color: #ef4444;
}
.lb-mc-options {
display: flex;
flex-direction: column;
gap: 8px;
}
.lb-mc-option {
padding: 14px 20px;
border: 2px solid var(--border);
border-radius: 12px;
background: var(--card-bg, #fff);
font-size: 15px;
text-align: left;
cursor: pointer;
transition: all 0.2s;
font-family: Inter, sans-serif;
color: var(--text);
}
.lb-mc-option:hover { border-color: var(--accent); }
.lb-mc-option.lb-correct {
border-color: #22c55e;
background: rgba(34,197,94,0.1);
}
.lb-mc-option.lb-incorrect {
border-color: #ef4444;
background: rgba(239,68,68,0.08);
}
.lb-listen-row {
display: flex;
gap: 12px;
align-items: center;
}
.lb-listen-btn {
width: 56px;
height: 56px;
border-radius: 50%;
border: 2px solid var(--accent, #6366f1);
background: rgba(99,102,241,0.08);
font-size: 24px;
cursor: pointer;
flex-shrink: 0;
transition: all 0.2s;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--accent, #6366f1);
}
.lb-listen-btn svg { width: 28px; height: 28px; }
.lb-listen-btn.lb-revealed svg { display: none; }
.lb-listen-btn:hover { background: rgba(99,102,241,0.15); }
.lb-listen-btn.lb-revealed {
width: auto;
height: auto;
border-radius: 10px;
padding: 10px 18px;
font-size: 16px;
font-weight: 700;
color: var(--accent, #6366f1);
}
.lb-image-block { text-align: center; margin: 16px 0; }
.lb-image-img { max-width: 100%; border-radius: 8px; }
.lb-image-img, .lb-ic-card img, .dict-cover, .word-image {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
pointer-events: none;
}
.lb-image-caption { margin-top: 6px; font-size: 14px; color: var(--text-muted, #888); font-style: italic; }
.lb-timer { text-align: center; margin: 20px 0; padding: 20px 16px; border-radius: 16px; background: var(--panel, #fff); border: 1px solid var(--border, #e5e5e5); }
.lb-timer-label { font-size: 15px; font-weight: 600; color: var(--text-muted, #888); margin-bottom: 14px; letter-spacing: 0.02em; }
.lb-timer-display { display: inline-flex; align-items: center; gap: 4px; }
.lb-timer-seg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lb-timer-digit { background: var(--primary, #ffe00f); border-radius: 10px; min-width: 64px; padding: 10px 8px; box-shadow: 0 4px 0 var(--border, #e5e5e5); }
.lb-timer-num { font-size: 36px; font-weight: 800; line-height: 1; color: var(--primary-text, #000000); font-variant-numeric: tabular-nums; letter-spacing: -1px; display: block; }
.lb-timer-unit-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted, #888); }
.lb-timer-sep-col { font-size: 32px; font-weight: 800; color: var(--primary, #ffe00f); line-height: 1; padding-bottom: 18px; align-self: center; }
.theme-blue .lb-timer-digit { background: #3bbceb; box-shadow: 0 4px 0 #1a8ab5; }
.theme-blue .lb-timer-num { color: #fff; }
.theme-blue .lb-timer-sep-col { color: #3bbceb; }
.theme-dark .lb-timer { background: var(--panel, #1e293b); border-color: var(--border, #334155); }
.theme-dark .lb-timer-digit { background: #3b82f6; box-shadow: 0 4px 0 #1d4ed8; }
.theme-dark .lb-timer-num { color: #fff; }
.theme-dark .lb-timer-sep-col { color: #3b82f6; }
.theme-orange .lb-timer-digit { background: #f97316; box-shadow: 0 4px 0 #c2550d; }
.theme-orange .lb-timer-num { color: #fff; }
.theme-orange .lb-timer-sep-col { color: #f97316; }
.theme-casual .lb-timer-digit { background: #8b5cf6; box-shadow: 0 4px 0 #6d28d9; }
.theme-casual .lb-timer-num { color: #fff; }
.theme-casual .lb-timer-sep-col { color: #8b5cf6; }
@media (max-width: 480px) {
.lb-timer-digit { min-width: 50px; padding: 8px 6px; }
.lb-timer-num { font-size: 28px; }
.lb-timer-sep-col { font-size: 24px; }
}
.lb-ic-word {
cursor: pointer;
}
.lb-ic-word:hover { opacity: 0.8; }
.lb-ic-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.lb-ic-card-wrap {
display: flex;
flex-direction: column;
align-items: center;
min-width: 0;
}
.lb-ic-card {
border-radius: 12px;
overflow: hidden;
border: 3px solid var(--border);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
background: var(--card-bg, #f8f8f8);
flex: 1;
width: 100%;
}
.lb-ic-card img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.lb-ic-number {
margin-top: 6px;
font-size: 14px;
font-weight: 700;
color: var(--text-muted);
background: var(--card-bg, #f0f0f0);
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.lb-ic-number.lb-num-correct {
background: #22c55e;
color: #fff;
}
.lb-ic-number.lb-num-incorrect {
background: #ef4444;
color: #fff;
}
.lb-ic-card:hover { border-color: var(--accent); }
.lb-ic-card.lb-correct {
border-color: #22c55e;
box-shadow: 0 0 12px rgba(34,197,94,0.3);
}
.lb-ic-card.lb-incorrect {
border-color: #ef4444;
opacity: 0.5;
}
.lb-page-nav {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
margin-top: 24px;
padding: 20px 0;
border-top: 1px solid var(--border);
}
.lb-page-indicator {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.lb-page-dots {
display: flex;
gap: 6px;
}
.lb-page-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--border, #d1d5db);
transition: background 0.3s;
}
.lb-page-dot.active {
background: var(--accent, #6366f1);
}
.lb-page-text {
font-size: 13px;
color: var(--text-muted);
font-weight: 500;
}
.lb-page-buttons {
display: flex;
gap: 12px;
}
.lb-page-prev,
.lb-page-next {
min-width: 100px;
}
@keyframes lb-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-6px); }
75% { transform: translateX(6px); }
}
.theme-dark .lb-exercise {
background: #1e2130;
border-color: #333;
}
.theme-dark .lb-czword-table {
background: #1e2130;
border-color: #333;
}
.theme-dark .lb-czword-row td {
border-color: #333;
}
.theme-dark .lb-match-item,
.theme-dark .lb-wo-word,
.theme-dark .lb-mc-option {
background: #1e2130;
border-color: #444;
color: #e0e0e0;
}
.theme-dark .lb-fill-input {
background: #1a1d27;
border-color: #444;
color: #e0e0e0;
}
.theme-dark .lb-ic-card {
border-color: #444;
}
.theme-dark .lb-progress-badge {
background: rgba(255,255,255,0.08);
color: #9ca3af;
}
.theme-dark .lb-progress-badge.lb-badge-done {
background: rgba(34,197,94,0.2);
color: #4ade80;
}
.theme-dark .lb-exercise-complete {
border-color: #22c55e !important;
box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}
@media (max-width: 600px) {
.lb-progress-badge {
top: 8px;
right: 8px;
font-size: 11px;
padding: 3px 8px;
}
.lb-exercise-instr {
padding-right: 0;
}
.lb-match-grid {
gap: 8px;
}
.lb-match-col {
min-width: 0;
gap: 6px;
}
.lb-match-item {
padding: 8px 10px;
font-size: 13px;
}
.lb-listen-row {
flex-wrap: wrap;
}
.lb-ic-grid {
grid-template-columns: repeat(2, 1fr);
}
}
.modal-backdrop:has(.monetization-popup) {
display: block;
overflow-y: auto;
padding: 24px 16px;
}
.modal-backdrop:has(.monetization-popup)[style*="display: block"] {
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: safe center;
overflow-y: auto;
}
.monetization-popup {
max-width: 900px;
width: 95vw;
max-height: none;
overflow: hidden;
padding: 0 0 24px;
margin: 0;
flex-shrink: 0;
position: relative;
}
.monetization-popup[data-pattern]::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
border-radius: inherit;
opacity: var(--monet-pattern-opacity, 0.1);
color: var(--monet-pattern-color, #000);
}
.monetization-popup[data-pattern] > .monetization-popup-content {
position: relative;
z-index: 1;
}
.monetization-popup[data-pattern] > .auth-close-btn {
position: absolute;
z-index: 2;
}
.monetization-popup-content {
padding: 36px 24px 40px;
font-size: 14px;
line-height: 1.6;
text-align: center;
}
.monetization-popup canvas.monet-flow-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
.monetization-popup[data-pattern="sunburst"]::before {
inset: -50%;
background: repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 10deg, transparent 10deg 20deg);
animation: kvzk-mp-sunburst-rotate 40s linear infinite;
transform-origin: center center;
}
@keyframes kvzk-mp-sunburst-rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.monetization-popup[data-pattern="aurora"]::before {
background: linear-gradient(135deg, #ff00cc 0%, #9333ea 20%, #3b82f6 40%, #06b6d4 60%, #10b981 80%, #fbbf24 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 18s ease infinite;
}
.monetization-popup[data-pattern="pulse"]::before {
background: radial-gradient(circle at 50% 50%, currentColor 0%, transparent 60%);
background-size: 100% 100%;
background-repeat: no-repeat;
animation: kvzk-mp-pulse 4s ease-in-out infinite;
transform-origin: center center;
}
@keyframes kvzk-mp-pulse {
0%, 100% { transform: scale(0.95); }
50% { transform: scale(1.2); }
}
.monetization-popup[data-pattern="mist"]::before {
background:
radial-gradient(ellipse 55% 40% at 20% 30%, currentColor 0%, transparent 65%),
radial-gradient(ellipse 50% 35% at 80% 60%, currentColor 0%, transparent 60%),
radial-gradient(ellipse 60% 45% at 50% 90%, currentColor 0%, transparent 65%);
background-size: 180% 180%, 200% 200%, 190% 190%;
background-repeat: no-repeat;
animation: kvzk-mp-mist 22s ease-in-out infinite;
}
@keyframes kvzk-mp-mist {
0%, 100% {
background-position: 0% 0%, 100% 100%, 50% 50%;
}
33% {
background-position: 100% 30%, 0% 70%, 30% 20%;
}
66% {
background-position: 50% 100%, 50% 0%, 80% 60%;
}
}
.monetization-popup[data-pattern="candy"]::before {
background: linear-gradient(135deg, #ff00ff 0%, #ff6ec7 20%, #a855f7 40%, #7c3aed 60%, #06b6d4 80%, #00d4ff 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 15s ease infinite;
}
.monetization-popup[data-pattern="sunset"]::before {
background: linear-gradient(135deg, #ff6b6b 0%, #feca57 20%, #ff9ff3 40%, #ee5a6f 60%, #f368e0 80%, #ff9966 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 20s ease infinite;
}
.monetization-popup[data-pattern="ocean"]::before {
background: linear-gradient(135deg, #0077be 0%, #00a8cc 20%, #00c9ff 40%, #4facfe 60%, #0077ff 80%, #003d82 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 20s ease infinite;
}
.monetization-popup[data-pattern="forest"]::before {
background: linear-gradient(135deg, #134e5e 0%, #0ea271 25%, #11998e 50%, #38ef7d 75%, #0ea271 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 22s ease infinite;
}
.monetization-popup[data-pattern="midnight"]::before {
background: linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #6a11cb 75%, #2575fc 100%);
background-size: 400% 400%;
animation: kvzk-mp-gradient-shift 25s ease infinite;
}
.monetization-popup[data-pattern="ripple"]::before {
background:
radial-gradient(circle at 50% 50%,
transparent 0%, transparent 9%,
currentColor 9%, currentColor 10.5%,
transparent 10.5%, transparent 22%,
currentColor 22%, currentColor 23.5%,
transparent 23.5%, transparent 35%,
currentColor 35%, currentColor 36.5%,
transparent 36.5%, transparent 48%,
currentColor 48%, currentColor 49.5%,
transparent 49.5%);
background-size: 100% 100%;
background-repeat: no-repeat;
animation: kvzk-mp-ripple 5s linear infinite;
transform-origin: center center;
}
@keyframes kvzk-mp-ripple {
from { transform: scale(0.4); }
to { transform: scale(1.8); }
}
@keyframes kvzk-mp-gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.monetization-popup-content .lb-timer {
padding: 12px 10px;
margin: 10px 0;
}
.monetization-popup-content .lb-timer-digit {
min-width: 48px;
padding: 6px 4px;
}
.monetization-popup-content .lb-timer-num {
font-size: 26px;
}
.monetization-popup-content .lb-timer-sep-col {
font-size: 22px;
padding-bottom: 14px;
}
.monetization-popup-content .lb-timer-unit-lbl {
font-size: 10px;
}
.monetization-popup-content .lb-timer-label {
font-size: 13px;
margin-bottom: 8px;
}
.monetization-popup-content .monetization-action-btn {
padding: 10px 24px;
font-size: 14px;
}
.monetization-popup-content .lb-phone-btn,
.monetization-popup-content .lb-email-btn {
padding: 10px 20px;
font-size: 14px;
}
.monetization-popup-content .lesson-table {
font-size: 13px;
}
.monetization-popup-content .lb-image-block {
margin: 10px 0;
position: relative;
overflow: hidden;
}
.monetization-popup-content .lb-image-block::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 60%;
height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
transform: translateX(-150%) skewX(-20deg);
pointer-events: none;
z-index: 5;
animation: monetShine 6.5s ease-in-out infinite;
}
.monetization-popup-content .lesson-text {
text-align: center;
}
.monetization-popup[data-pattern] .monetization-popup-content > *:not(.lb-exercise):not(.lb-timer):not(.lb-pricing-grid):not(.trial-lesson-form) {
background: var(--panel, #fff);
padding: 16px 22px;
border-radius: 14px;
margin: 14px auto;
max-width: 640px;
box-shadow: 0 2px 6px rgba(0,0,0,0.06);
border: 1px solid var(--border, #e5e7eb);
position: relative;
z-index: 1;
}
.monetization-popup[data-pattern] .monetization-popup-content > .lb-image-block:not(.lb-exercise):not(.lb-timer):not(.lb-pricing-grid):not(.trial-lesson-form) {
padding: 12px;
}
.monetization-action-btn {
display: inline-block;
padding: 14px 36px;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 700;
color: #fff;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.monetization-action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.monetization-action-btn:active {
transform: translateY(0);
}
.lb-pricing-grid {
display: grid;
gap: 16px;
margin: 20px 0;
}
.lb-pricing-grid-1 { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
.lb-pricing-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lb-pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lb-pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
.lb-pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
.lb-pricing-grid-6 { grid-template-columns: repeat(3, 1fr); }
.lb-pricing-card {
position: relative;
border-radius: 16px;
padding: 28px 20px;
text-align: center;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
transition: transform 0.2s;
}
.lb-pricing-card:hover { transform: translateY(-4px); }
.lb-pricing-badge {
position: absolute;
top: -10px;
right: 12px;
background: #e91e63;
color: #fff;
font-size: 12px;
font-weight: 700;
padding: 4px 14px;
border-radius: 20px;
white-space: nowrap;
}
.lb-pricing-title {
font-size: 16px;
color: #555;
margin-bottom: 16px;
font-style: italic;
}
.lb-pricing-price {
font-size: 36px;
font-weight: 800;
color: #1a1a1a;
margin-bottom: 4px;
line-height: 1.1;
}
.lb-pricing-old-price {
font-size: 16px;
font-weight: 400;
color: #999;
text-decoration: line-through;
margin-bottom: 4px;
}
.lb-pricing-subtitle {
font-size: 14px;
color: #666;
margin-bottom: 16px;
}
.lb-pricing-btn {
display: inline-block;
padding: 12px 32px;
border: none;
border-radius: 12px;
font-size: 15px;
font-weight: 700;
color: #fff;
background: linear-gradient(135deg, #22c55e, #16a34a);
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
white-space: nowrap;
}
.lb-pricing-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}
.lb-pricing-btn:active { transform: translateY(0); }
.lb-pricing-extra {
font-size: 13px;
color: #666;
margin-top: 12px;
font-style: italic;
}
.lb-pricing-color-green  { background: #dcfce7; color: #166534; }
.lb-pricing-color-blue   { background: #dbeafe; color: #1e3a5f; }
.lb-pricing-color-purple { background: #ede9fe; color: #4c1d95; }
.lb-pricing-color-pink   { background: #fce7f3; color: #831843; }
.lb-pricing-color-red    { background: #fee2e2; color: #991b1b; }
.lb-pricing-color-orange { background: #fff7ed; color: #9a3412; }
.lb-pricing-color-yellow { background: #fefce8; color: #854d0e; }
.lb-pricing-color-teal   { background: #ccfbf1; color: #115e59; }
.lb-pricing-color-slate  { background: #f1f5f9; color: #334155; }
.lb-pricing-color-white  { background: #ffffff; color: #1a1a1a; }
.lb-pricing-card[class*="lb-pricing-color-"] .lb-pricing-price { color: inherit; }
.lb-pricing-card[class*="lb-pricing-color-"] .lb-pricing-old-price { opacity: 0.6; color: inherit; }
.lb-pricing-card[class*="lb-pricing-color-"] .lb-pricing-title { color: inherit; opacity: 0.8; }
.lb-pricing-card[class*="lb-pricing-color-"] .lb-pricing-subtitle { color: inherit; opacity: 0.7; }
.lb-pricing-card[class*="lb-pricing-color-"] .lb-pricing-extra { color: inherit; opacity: 0.7; }
.theme-dark .lb-pricing-color-green  { background: #166534; color: #dcfce7; }
.theme-dark .lb-pricing-color-blue   { background: #1e3a5f; color: #dbeafe; }
.theme-dark .lb-pricing-color-purple { background: #4c1d95; color: #ede9fe; }
.theme-dark .lb-pricing-color-pink   { background: #831843; color: #fce7f3; }
.theme-dark .lb-pricing-color-red    { background: #991b1b; color: #fee2e2; }
.theme-dark .lb-pricing-color-orange { background: #9a3412; color: #fff7ed; }
.theme-dark .lb-pricing-color-yellow { background: #854d0e; color: #fefce8; }
.theme-dark .lb-pricing-color-teal   { background: #115e59; color: #ccfbf1; }
.theme-dark .lb-pricing-color-slate  { background: #334155; color: #f1f5f9; }
.theme-dark .lb-pricing-color-white  { background: #1e293b; color: #f1f5f9; }
@media (max-width: 768px) {
.lb-pricing-grid-3,
.lb-pricing-grid-5,
.lb-pricing-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
.lb-pricing-grid-2,
.lb-pricing-grid-3,
.lb-pricing-grid-4,
.lb-pricing-grid-5,
.lb-pricing-grid-6 { grid-template-columns: 1fr; }
.lb-pricing-card { padding: 20px 16px; }
.lb-pricing-price { font-size: 28px; }
}
.announcement-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 20px;
margin-top: 16px;
border-radius: 12px;
background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
color: #fff;
font-size: 14px;
line-height: 1.4;
position: relative;
}
.theme-blue .announcement-bar {
background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
}
.announcement-bar-text {
flex: 1;
font-weight: 500;
}
.announcement-bar-btn {
flex-shrink: 0;
padding: 6px 16px;
border-radius: 8px;
border: 1.5px solid rgba(255,255,255,0.5);
background: rgba(255,255,255,0.15);
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: background 0.15s;
}
.announcement-bar-btn:hover {
background: rgba(255,255,255,0.3);
}
.announcement-bar-close {
flex-shrink: 0;
width: 24px;
height: 24px;
border: none;
background: rgba(255,255,255,0.15);
color: rgba(255,255,255,0.7);
border-radius: 50%;
font-size: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
padding: 0;
line-height: 1;
}
.announcement-bar-close:hover {
background: rgba(255,255,255,0.3);
color: #fff;
}
.theme-dark .announcement-bar {
background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
.theme-orange .announcement-bar {
background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.theme-casual .announcement-bar {
background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}
@media (max-width: 600px) {
.announcement-bar {
flex-direction: column;
text-align: center;
padding: 10px 32px 10px 16px;
gap: 8px;
}
.announcement-bar-btn {
width: 100%;
}
.announcement-bar-close {
position: absolute;
top: 6px;
right: 6px;
}
}
.full-access-btn {
width: auto !important;
height: 42px !important;
padding: 0 16px !important;
font-size: 14px !important;
font-weight: 700;
background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
color: #fff !important;
border: none !important;
border-radius: 10px;
white-space: nowrap;
}
.full-access-btn:hover {
color: #fff !important;
opacity: 0.9;
}
@media (max-width: 600px) {
.modal-backdrop:has(.monetization-popup)[style*="display: block"] {
padding: 0;
height: 100dvh;
}
.monetization-popup {
border-radius: 0;
}
.trial-lesson-form .trial-name-row {
flex-direction: column;
}
.monetization-popup-content {
padding: 16px 12px;
font-size: 13px;
}
.monetization-popup-content .lb-image-block {
margin: 10px -12px;
}
.monetization-popup-content .lb-image-img {
border-radius: 0;
max-width: 100%;
width: 100%;
}
.monetization-popup-content .lb-timer {
padding: 10px 8px;
}
.monetization-popup-content .lb-timer-digit {
min-width: 40px;
padding: 5px 3px;
}
.monetization-popup-content .lb-timer-num {
font-size: 22px;
}
.monetization-popup-content .lb-timer-sep-col {
font-size: 18px;
padding-bottom: 12px;
}
.monetization-popup-content .monetization-action-btn {
padding: 10px 18px;
font-size: 13px;
}
.monetization-popup-content .lb-phone-btn,
.monetization-popup-content .lb-email-btn {
padding: 9px 16px;
font-size: 13px;
}
.monetization-popup-content .lesson-table td,
.monetization-popup-content .lesson-table th {
padding: 6px 8px;
font-size: 12px;
}
.full-access-btn {
padding: 8px 10px !important;
}
.full-access-btn-text {
display: none;
}
}
.site-menu-container {
position: relative;
}
.site-menu-dropdown {
display: none;
position: absolute;
right: 0;
top: calc(100% + 8px);
background: var(--panel, #fff);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 8px 28px rgba(0,0,0,0.13);
min-width: 210px;
z-index: 1000;
overflow: hidden;
padding: 6px 0;
}
.site-menu-dropdown.open {
display: block;
}
.site-menu-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 13px 20px;
border: none;
background: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
text-align: left;
color: var(--text);
border-left: 3px solid transparent;
transition: background 0.15s, border-color 0.15s;
font-family: inherit;
}
.site-menu-item:hover {
background: var(--accent-glow, rgba(0,0,0,0.04));
border-left-color: var(--primary);
}
.site-menu-separator {
height: 1px;
background: var(--border);
margin: 4px 0;
}
.site-menu-logout {
color: #d32f2f;
}
.site-menu-logout:hover {
background: rgba(211,47,47,0.08);
border-left-color: #d32f2f;
}
.theme-dark .site-menu-dropdown {
box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}