1466 lines
30 KiB
CSS
Executable File
1466 lines
30 KiB
CSS
Executable File
:root {
|
|
--bg-dark: #070b14;
|
|
--bg-surface: #0f172a;
|
|
--bg-card: rgba(15, 23, 42, 0.78);
|
|
--bg-card-hover: rgba(30, 41, 59, 0.88);
|
|
--accent-primary: #38bdf8;
|
|
--accent-indigo: #6366f1;
|
|
--accent-violet: #8b5cf6;
|
|
--gold: #f59e0b;
|
|
--gold-bright: #fbbf24;
|
|
--gold-soft: #fcd34d;
|
|
--text-main: #f8fafc;
|
|
--text-muted: #94a3b8;
|
|
--success: #10b981;
|
|
--danger: #ef4444;
|
|
--warning: #f59e0b;
|
|
--border-subtle: rgba(148, 163, 184, 0.16);
|
|
--border-active: rgba(56, 189, 248, 0.55);
|
|
--border-gold: rgba(245, 158, 11, 0.35);
|
|
--header-height: 62px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-dark);
|
|
background-image:
|
|
radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.10) 0%, transparent 42%),
|
|
radial-gradient(circle at 88% 15%, rgba(99, 102, 241, 0.11) 0%, transparent 45%),
|
|
radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
|
|
background-attachment: fixed;
|
|
color: var(--text-main);
|
|
font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-x: hidden;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* =========================================
|
|
HEADER & NAVIGATION
|
|
========================================= */
|
|
.site-header {
|
|
background: rgba(7, 11, 20, 0.82);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 200;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-inner {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 0 18px;
|
|
height: var(--header-height);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.brand-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-decoration: none;
|
|
color: var(--text-main);
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.brand-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 9px;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-indigo));
|
|
color: #fff;
|
|
font-size: 1.05rem;
|
|
box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
|
|
}
|
|
|
|
.brand-accent {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.lang-switch-group {
|
|
display: inline-flex;
|
|
background: rgba(15, 23, 42, 0.9);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: 10px;
|
|
padding: 3px;
|
|
}
|
|
|
|
.lang-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
padding: 5px 10px;
|
|
border-radius: 7px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.lang-btn:hover {
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.lang-btn.active {
|
|
background: rgba(56, 189, 248, 0.18);
|
|
color: var(--accent-primary);
|
|
border: 1px solid rgba(56, 189, 248, 0.35);
|
|
}
|
|
|
|
.menu-toggle-btn {
|
|
display: none;
|
|
background: rgba(30, 41, 59, 0.6);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-main);
|
|
font-size: 1.25rem;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 9px;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 0.88rem;
|
|
font-weight: 600;
|
|
padding: 8px 13px;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text-main);
|
|
background: rgba(148, 163, 184, 0.1);
|
|
}
|
|
|
|
/* =========================================
|
|
CONTAINER & HERO HEADER
|
|
========================================= */
|
|
.container {
|
|
flex: 1;
|
|
max-width: 780px;
|
|
width: 100%;
|
|
margin: 28px auto;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.admin-wrapper {
|
|
max-width: 940px;
|
|
width: 100%;
|
|
margin: 24px auto;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.quiz-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.quiz-header {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(56, 189, 248, 0.1);
|
|
border: 1px solid rgba(56, 189, 248, 0.28);
|
|
color: var(--accent-primary);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.3px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.glow-title {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
color: var(--text-main);
|
|
font-size: clamp(1.65rem, 5vw, 2.35rem);
|
|
font-weight: 700;
|
|
letter-spacing: -0.6px;
|
|
margin-bottom: 8px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-muted);
|
|
font-size: clamp(0.9rem, 3vw, 1.02rem);
|
|
max-width: 580px;
|
|
margin: 0 auto 12px;
|
|
}
|
|
|
|
/* =========================================
|
|
CARD & DIRECT-START DASHBOARD
|
|
========================================= */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: 18px;
|
|
padding: clamp(18px, 4vw, 30px);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(18px);
|
|
-webkit-backdrop-filter: blur(18px);
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.start-dashboard-card {
|
|
padding: clamp(20px, 4.5vw, 32px);
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.config-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.config-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.config-step {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 6px;
|
|
background: rgba(99, 102, 241, 0.2);
|
|
border: 1px solid rgba(99, 102, 241, 0.4);
|
|
color: #a5b4fc;
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.difficulty-label {
|
|
font-size: 0.92rem;
|
|
color: var(--text-main);
|
|
font-weight: 700;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.difficulty-chips {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.diff-chip {
|
|
background: rgba(30, 41, 59, 0.55);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-muted);
|
|
border-radius: 12px;
|
|
padding: 11px 12px;
|
|
font-size: 0.88rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
transition: all 0.18s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.diff-chip:hover {
|
|
border-color: rgba(148, 163, 184, 0.4);
|
|
color: var(--text-main);
|
|
background: rgba(30, 41, 59, 0.85);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.diff-chip.active {
|
|
background: rgba(56, 189, 248, 0.15);
|
|
border-color: var(--accent-primary);
|
|
color: #fff;
|
|
box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Category Selector Chips */
|
|
.category-chips {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.cat-chip {
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-muted);
|
|
border-radius: 12px;
|
|
padding: 11px 12px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.18s ease;
|
|
font-family: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.cat-chip:hover {
|
|
border-color: rgba(148, 163, 184, 0.4);
|
|
color: var(--text-main);
|
|
background: rgba(30, 41, 59, 0.85);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.cat-chip.active {
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.18));
|
|
border-color: var(--accent-primary);
|
|
color: #fff;
|
|
box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dashboard-footer {
|
|
margin-top: 26px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-subtle);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.dashboard-rules {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
font-size: 0.82rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* =========================================
|
|
BUTTONS
|
|
========================================= */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 22px;
|
|
border-radius: 12px;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
font-family: inherit;
|
|
min-height: 46px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-indigo) 100%);
|
|
color: #fff;
|
|
box-shadow: 0 6px 20px rgba(56, 189, 248, 0.28);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
box-shadow: 0 8px 26px rgba(56, 189, 248, 0.45);
|
|
transform: translateY(-2px);
|
|
filter: brightness(1.06);
|
|
}
|
|
|
|
.btn-launch-quiz {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
font-size: 1.06rem;
|
|
padding: 15px 28px;
|
|
border-radius: 14px;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(30, 41, 59, 0.75);
|
|
color: var(--text-main);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: rgba(51, 65, 85, 0.85);
|
|
border-color: rgba(148, 163, 184, 0.4);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #fca5a5;
|
|
border: 1px solid rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-success {
|
|
background: rgba(16, 185, 129, 0.18);
|
|
color: #6ee7b7;
|
|
border: 1px solid rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.btn-success:hover:not(:disabled) {
|
|
background: var(--success);
|
|
color: #06281e;
|
|
}
|
|
|
|
.btn-large {
|
|
font-size: 1.05rem;
|
|
padding: 14px 28px;
|
|
min-height: 52px;
|
|
}
|
|
|
|
.btn-sm {
|
|
font-size: 0.84rem;
|
|
padding: 8px 14px;
|
|
min-height: 36px;
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin-top: 18px;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
/* =========================================
|
|
HUD STATUS, STREAK & PROGRESS BAR
|
|
========================================= */
|
|
.status-panel {
|
|
margin-bottom: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.progress-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hud-pill {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 0.88rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
background: rgba(15, 23, 42, 0.8);
|
|
border: 1px solid var(--border-subtle);
|
|
padding: 5px 12px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.hud-center-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.streak-badge {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
padding: 5px 12px;
|
|
border-radius: 10px;
|
|
background: rgba(30, 41, 59, 0.75);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-muted);
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.streak-badge.streak-hot {
|
|
background: rgba(245, 158, 11, 0.16);
|
|
border-color: rgba(245, 158, 11, 0.5);
|
|
color: var(--gold-bright);
|
|
box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
|
|
}
|
|
|
|
.streak-pop {
|
|
animation: streakPopAnim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
}
|
|
|
|
@keyframes streakPopAnim {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(1.22); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
.timer-badge {
|
|
font-family: 'Space Grotesk', ui-monospace, monospace;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
padding: 5px 12px;
|
|
border-radius: 10px;
|
|
background: rgba(15, 23, 42, 0.8);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.points-badge {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
padding: 5px 13px;
|
|
border-radius: 10px;
|
|
background: rgba(56, 189, 248, 0.14);
|
|
border: 1px solid rgba(56, 189, 248, 0.35);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.progress-container {
|
|
width: 100%;
|
|
height: 8px;
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-indigo) 100%);
|
|
box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
|
|
transition: width 0.35s ease;
|
|
}
|
|
|
|
/* =========================================
|
|
QUESTION CARD & ANSWERS
|
|
========================================= */
|
|
.question-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.question-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 18px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.meta-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.badge {
|
|
padding: 5px 11px;
|
|
border-radius: 8px;
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
background: rgba(99, 102, 241, 0.15);
|
|
border: 1px solid rgba(99, 102, 241, 0.35);
|
|
color: #c7d2fe;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-diff {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.badge-diff-easy {
|
|
background: rgba(16, 185, 129, 0.14);
|
|
border-color: rgba(16, 185, 129, 0.4);
|
|
color: #34d399;
|
|
}
|
|
|
|
.badge-diff-medium {
|
|
background: rgba(245, 158, 11, 0.14);
|
|
border-color: rgba(245, 158, 11, 0.4);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.badge-diff-hard {
|
|
background: rgba(239, 68, 68, 0.14);
|
|
border-color: rgba(239, 68, 68, 0.4);
|
|
color: #f87171;
|
|
}
|
|
|
|
.badge-warning {
|
|
background: rgba(245, 158, 11, 0.2);
|
|
border-color: var(--warning);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.badge-success {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
border-color: var(--success);
|
|
color: #34d399;
|
|
}
|
|
|
|
.badge-danger {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: var(--danger);
|
|
color: #f87171;
|
|
}
|
|
|
|
.badge-muted {
|
|
background: rgba(148, 163, 184, 0.12);
|
|
border-color: rgba(148, 163, 184, 0.25);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.attempt-badge {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.question-text {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: clamp(1.2rem, 4.2vw, 1.5rem);
|
|
line-height: 1.42;
|
|
text-align: center;
|
|
margin: 14px 0 24px;
|
|
color: var(--text-main);
|
|
font-weight: 700;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Free-Text Input */
|
|
.answer-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-answer {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
padding: 14px 18px;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
border-radius: 12px;
|
|
border: 1.5px solid var(--border-subtle);
|
|
background: rgba(7, 11, 20, 0.65);
|
|
color: var(--text-main);
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
min-height: 50px;
|
|
}
|
|
|
|
.input-answer:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
|
|
}
|
|
|
|
/* Multiple Choice Grid */
|
|
.choice-group {
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.choice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.choice-btn {
|
|
background: rgba(30, 41, 59, 0.55);
|
|
border: 1.5px solid var(--border-subtle);
|
|
border-radius: 13px;
|
|
padding: 13px 15px;
|
|
color: var(--text-main);
|
|
font-size: clamp(0.92rem, 3.2vw, 1.0rem);
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
transition: all 0.18s ease;
|
|
min-height: 56px;
|
|
width: 100%;
|
|
word-break: break-word;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.choice-btn:hover:not(:disabled) {
|
|
background: rgba(56, 189, 248, 0.12);
|
|
border-color: var(--accent-primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.choice-btn:active:not(:disabled) {
|
|
transform: scale(0.99);
|
|
}
|
|
|
|
.choice-letter {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: rgba(56, 189, 248, 0.14);
|
|
border: 1px solid rgba(56, 189, 248, 0.35);
|
|
border-radius: 8px;
|
|
color: var(--accent-primary);
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.choice-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.choice-selected {
|
|
border-color: var(--accent-primary);
|
|
background: rgba(56, 189, 248, 0.22);
|
|
}
|
|
|
|
.choice-correct {
|
|
background: rgba(16, 185, 129, 0.22) !important;
|
|
border-color: #10b981 !important;
|
|
color: #6ee7b7 !important;
|
|
box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
|
|
}
|
|
|
|
.choice-wrong {
|
|
background: rgba(239, 68, 68, 0.22) !important;
|
|
border-color: #ef4444 !important;
|
|
color: #fca5a5 !important;
|
|
box-shadow: 0 0 16px rgba(239, 68, 68, 0.3) !important;
|
|
}
|
|
|
|
.hint-box {
|
|
margin-top: 16px;
|
|
padding: 13px 16px;
|
|
border-radius: 12px;
|
|
background: rgba(245, 158, 11, 0.1);
|
|
border-left: 4px solid var(--gold);
|
|
font-size: 0.9rem;
|
|
color: var(--gold-soft);
|
|
text-align: left;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.feedback-box {
|
|
margin-top: 16px;
|
|
font-size: clamp(0.95rem, 3.5vw, 1.08rem);
|
|
text-align: center;
|
|
min-height: 28px;
|
|
font-weight: 700;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.feedback-correct {
|
|
color: #34d399;
|
|
}
|
|
|
|
.feedback-wrong {
|
|
color: #f87171;
|
|
}
|
|
|
|
.feedback-revealed {
|
|
color: var(--gold-bright);
|
|
font-size: 0.92rem;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* =========================================
|
|
ANIMATIONS
|
|
========================================= */
|
|
.sparkle-effect {
|
|
animation: sparkle-glow 0.7s ease forwards;
|
|
}
|
|
|
|
@keyframes sparkle-glow {
|
|
0% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
|
|
50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.45); border-color: #10b981; }
|
|
100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
|
|
}
|
|
|
|
.shake-effect {
|
|
animation: shake 0.4s ease;
|
|
}
|
|
|
|
@keyframes shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
20%, 60% { transform: translateX(-6px); }
|
|
40%, 80% { transform: translateX(6px); }
|
|
}
|
|
|
|
/* =========================================
|
|
FINALE & LEADERBOARD
|
|
========================================= */
|
|
.finale-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.finale-header {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.sparkle-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.score-banner {
|
|
background: rgba(30, 41, 59, 0.6);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: 14px;
|
|
padding: 18px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.score-highlight {
|
|
font-size: clamp(1.05rem, 4vw, 1.28rem);
|
|
}
|
|
|
|
.gold-text {
|
|
color: var(--accent-primary);
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.reward-box {
|
|
background: rgba(15, 23, 42, 0.7);
|
|
border-radius: 14px;
|
|
padding: 20px 18px;
|
|
margin-bottom: 20px;
|
|
border-left: 4px solid var(--accent-primary);
|
|
text-align: left;
|
|
}
|
|
|
|
.reward-box h2 {
|
|
color: var(--text-main);
|
|
font-size: clamp(1.15rem, 4vw, 1.4rem);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.reward-description {
|
|
font-size: clamp(0.94rem, 3.3vw, 1.02rem);
|
|
line-height: 1.6;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.time-highlight {
|
|
margin-top: 8px;
|
|
font-size: 0.95rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tier-box {
|
|
position: relative;
|
|
border-radius: 16px;
|
|
padding: 24px 20px;
|
|
margin: 20px 0;
|
|
border: 1px solid var(--border-subtle);
|
|
background: radial-gradient(circle at top, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
|
|
text-align: center;
|
|
}
|
|
|
|
.tier-badge-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.tier-grade-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 16px;
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
|
|
border: 2px solid;
|
|
}
|
|
|
|
.tier-outstanding {
|
|
background: linear-gradient(135deg, #fbbf24, #d97706);
|
|
color: #090d16;
|
|
border-color: #fde68a;
|
|
}
|
|
|
|
.tier-exceeds {
|
|
background: linear-gradient(135deg, #34d399, #059669);
|
|
color: #090d16;
|
|
border-color: #a7f3d0;
|
|
}
|
|
|
|
.tier-acceptable {
|
|
background: linear-gradient(135deg, #38bdf8, #2563eb);
|
|
color: #ffffff;
|
|
border-color: #bae6fd;
|
|
}
|
|
|
|
.tier-poor {
|
|
background: linear-gradient(135deg, #fb923c, #ea580c);
|
|
color: #ffffff;
|
|
border-color: #fed7aa;
|
|
}
|
|
|
|
.tier-troll {
|
|
background: linear-gradient(135deg, #64748b, #334155);
|
|
color: #fca5a5;
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
.tier-subtitle {
|
|
color: var(--accent-primary);
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.leaderboard-entry-card {
|
|
background: rgba(15, 23, 42, 0.7);
|
|
border: 1px solid var(--border-subtle);
|
|
padding: 22px;
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.input-with-btn {
|
|
display: flex;
|
|
gap: 10px;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-with-btn .input-text {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.btn-dice {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-main);
|
|
padding: 0 14px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-family: inherit;
|
|
font-weight: 700;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
min-height: 46px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-dice:hover {
|
|
background: rgba(56, 189, 248, 0.15);
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.diff-filter-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.diff-filter-tabs .tab-btn {
|
|
border-radius: 10px;
|
|
padding: 8px 16px;
|
|
font-size: 0.86rem;
|
|
background: rgba(30, 41, 59, 0.6);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.diff-filter-tabs .tab-btn.active {
|
|
background: rgba(56, 189, 248, 0.16);
|
|
border-color: var(--accent-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.table-responsive {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.lb-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.lb-table th {
|
|
background: rgba(30, 41, 59, 0.7);
|
|
color: var(--text-muted);
|
|
font-weight: 700;
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lb-table td {
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.lb-table tr:hover td {
|
|
background: rgba(56, 189, 248, 0.05);
|
|
}
|
|
|
|
/* =========================================
|
|
FORMS & INPUTS
|
|
========================================= */
|
|
.magic-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.88rem;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.input-text, .textarea, select.input-text {
|
|
padding: 12px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-subtle);
|
|
background: rgba(7, 11, 20, 0.65);
|
|
color: var(--text-main);
|
|
font-size: 16px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
width: 100%;
|
|
min-height: 46px;
|
|
}
|
|
|
|
.input-text:focus, .textarea:focus, select.input-text:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
|
|
}
|
|
|
|
.input-text-sm {
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-subtle);
|
|
background: rgba(7, 11, 20, 0.55);
|
|
color: var(--text-main);
|
|
font-size: 15px;
|
|
min-height: 38px;
|
|
width: 100%;
|
|
}
|
|
|
|
.field-help {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.info-alert {
|
|
background: rgba(56, 189, 248, 0.1);
|
|
border-left: 4px solid var(--accent-primary);
|
|
padding: 14px;
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
font-size: 0.88rem;
|
|
line-height: 1.5;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.alert-danger {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
border: 1px solid var(--danger);
|
|
color: #fca5a5;
|
|
padding: 12px;
|
|
border-radius: 10px;
|
|
margin-bottom: 16px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* =========================================
|
|
ADMIN COCKPIT
|
|
========================================= */
|
|
.admin-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-top-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tabs-nav {
|
|
display: flex;
|
|
gap: 6px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
margin-bottom: 20px;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.tabs-nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid transparent;
|
|
color: var(--text-muted);
|
|
padding: 10px 14px;
|
|
border-radius: 10px 10px 0 0;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
font-family: inherit;
|
|
font-weight: 700;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
min-height: 42px;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--bg-card);
|
|
color: var(--accent-primary);
|
|
border-color: var(--border-subtle);
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.question-admin-card {
|
|
margin-bottom: 14px;
|
|
padding: 18px;
|
|
}
|
|
|
|
.q-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 10px;
|
|
font-size: 0.8rem;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.highlight-answer {
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
background: rgba(56, 189, 248, 0.1);
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.test-matcher-box {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
background: rgba(7, 11, 20, 0.45);
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.test-input-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.test-result-feedback {
|
|
margin-top: 8px;
|
|
font-size: 0.85rem;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.q-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.inline-edit-form {
|
|
margin-top: 14px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 30px 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* =========================================
|
|
FOOTER & LEGAL
|
|
========================================= */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 20px 16px;
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
border-top: 1px solid var(--border-subtle);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.footer-links {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.footer-link {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid var(--border-subtle);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: var(--text-main);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.footer-sep {
|
|
display: none;
|
|
}
|
|
|
|
.legal-card {
|
|
text-align: left;
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.legal-content {
|
|
margin-top: 20px;
|
|
line-height: 1.65;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.legal-content h3 {
|
|
color: var(--accent-primary);
|
|
margin-top: 22px;
|
|
margin-bottom: 8px;
|
|
font-size: 1.15rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.legal-content p, .legal-content ul {
|
|
margin-bottom: 14px;
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.legal-content ul {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.legal-content code {
|
|
background: rgba(0, 0, 0, 0.35);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
color: var(--accent-primary);
|
|
font-size: 0.88em;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* =========================================
|
|
MOBILE RESPONSIVENESS
|
|
========================================= */
|
|
@media (max-width: 680px) {
|
|
.container {
|
|
margin: 14px auto 25px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.card {
|
|
padding: 18px 14px;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.menu-toggle-btn {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
position: absolute;
|
|
top: var(--header-height);
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(7, 11, 20, 0.98);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
flex-direction: column;
|
|
padding: 14px 16px;
|
|
gap: 8px;
|
|
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
|
|
}
|
|
|
|
.nav-links.nav-open {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-link {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
font-size: 0.96rem;
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.difficulty-chips {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.category-chips {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.choice-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-group .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.input-with-btn {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.test-input-group {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.category-chips {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|