1424 lines
28 KiB
CSS
Executable File
1424 lines
28 KiB
CSS
Executable File
:root {
|
|
--bg-dark: #0b0b16;
|
|
--bg-card: rgba(20, 22, 40, 0.9);
|
|
--bg-card-hover: rgba(28, 31, 56, 0.95);
|
|
--gold: #c9a86a;
|
|
--gold-bright: #ffd700;
|
|
--gold-soft: #e6c98f;
|
|
--text-main: #f5f5f7;
|
|
--text-muted: #b8b8cc;
|
|
--parchment: #f6eedb;
|
|
--wax-red: #8b0000;
|
|
--success: #2ecc71;
|
|
--danger: #e74c3c;
|
|
--warning: #f39c12;
|
|
--border-gold: rgba(201, 168, 106, 0.35);
|
|
--header-height: 56px;
|
|
}
|
|
|
|
* {
|
|
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 15% 15%, rgba(201, 168, 106, 0.08) 0%, transparent 45%),
|
|
radial-gradient(circle at 85% 85%, rgba(116, 0, 1, 0.08) 0%, transparent 50%);
|
|
color: var(--text-main);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Georgia", "Times New Roman", serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-x: hidden;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* =========================================
|
|
HEADER & NAVIGATION (Mobile-First)
|
|
========================================= */
|
|
.site-header {
|
|
background: rgba(11, 11, 22, 0.85);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--border-gold);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 200;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-inner {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 0 16px;
|
|
height: var(--header-height);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.brand-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-decoration: none;
|
|
color: var(--gold);
|
|
font-weight: bold;
|
|
font-size: 1.15rem;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.brand-sparkle {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.lang-switch-group {
|
|
display: inline-flex;
|
|
background: rgba(20, 22, 40, 0.85);
|
|
border: 1px solid var(--border-gold);
|
|
border-radius: 20px;
|
|
padding: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.lang-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
padding: 4px 9px;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
min-height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.lang-btn:hover {
|
|
color: var(--gold);
|
|
}
|
|
|
|
.lang-btn.active {
|
|
background: var(--gold);
|
|
color: #0b0b16;
|
|
box-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
|
|
}
|
|
|
|
.audio-btn {
|
|
background: rgba(201, 168, 106, 0.15);
|
|
border: 1px solid var(--gold);
|
|
color: var(--gold-soft);
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
min-height: 36px;
|
|
}
|
|
|
|
.audio-btn:hover {
|
|
background: var(--gold);
|
|
color: #000;
|
|
}
|
|
|
|
.menu-toggle-btn {
|
|
display: none;
|
|
background: transparent;
|
|
border: 1px solid var(--border-gold);
|
|
color: var(--gold);
|
|
font-size: 1.3rem;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 18px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--gold-bright);
|
|
background: rgba(201, 168, 106, 0.1);
|
|
}
|
|
|
|
/* =========================================
|
|
CONTAINER & LAYOUT
|
|
========================================= */
|
|
.container {
|
|
flex: 1;
|
|
max-width: 760px;
|
|
width: 100%;
|
|
margin: 20px auto;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.admin-wrapper {
|
|
max-width: 900px;
|
|
width: 100%;
|
|
margin: 20px auto;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.quiz-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.quiz-header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.glow-title {
|
|
color: var(--gold);
|
|
font-size: clamp(1.35rem, 5vw, 2.1rem);
|
|
letter-spacing: 0.5px;
|
|
text-shadow: 0 0 14px rgba(201, 168, 106, 0.4);
|
|
margin-bottom: 6px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-muted);
|
|
font-size: clamp(0.85rem, 3vw, 1rem);
|
|
font-style: italic;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* =========================================
|
|
CARD COMPONENT
|
|
========================================= */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-gold);
|
|
border-radius: 14px;
|
|
padding: clamp(16px, 4vw, 28px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* =========================================
|
|
ENVELOPE INTRO ANIMATION
|
|
========================================= */
|
|
.intro-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.intro-envelope {
|
|
position: relative;
|
|
width: min(220px, 70vw);
|
|
height: min(140px, 45vw);
|
|
margin: 15px auto 25px;
|
|
perspective: 800px;
|
|
}
|
|
|
|
.envelope-body {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #e8dbc3;
|
|
border-radius: 6px;
|
|
border: 2px solid var(--gold);
|
|
position: relative;
|
|
box-shadow: 0 8px 20px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.envelope-flap {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #d8c9ad;
|
|
clip-path: polygon(0 0, 50% 55%, 100% 0);
|
|
transform-origin: top;
|
|
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
|
|
z-index: 3;
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
}
|
|
|
|
.wax-seal {
|
|
position: absolute;
|
|
top: 45%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 42px;
|
|
height: 42px;
|
|
background: radial-gradient(circle, #a81c1c 40%, #680d0d 100%);
|
|
border-radius: 50%;
|
|
border: 2px solid #500606;
|
|
color: #ffd700;
|
|
font-weight: bold;
|
|
font-size: 1.3rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 4;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
|
|
transition: opacity 0.4s ease;
|
|
}
|
|
|
|
.letter-preview {
|
|
position: absolute;
|
|
bottom: 4px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 90%;
|
|
height: 80%;
|
|
background: #fffdfa;
|
|
border: 1px solid #d4c5a9;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
z-index: 2;
|
|
transition: transform 0.7s ease 0.2s;
|
|
}
|
|
|
|
.letter-text {
|
|
font-size: 0.65rem;
|
|
color: #443;
|
|
text-align: center;
|
|
font-style: italic;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Open state */
|
|
.envelope-opened .envelope-flap {
|
|
transform: rotateX(180deg);
|
|
z-index: 1;
|
|
}
|
|
|
|
.envelope-opened .wax-seal {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.envelope-opened .letter-preview {
|
|
transform: translate(-50%, -30px);
|
|
}
|
|
|
|
.intro-text {
|
|
font-size: clamp(0.95rem, 3.5vw, 1.15rem);
|
|
line-height: 1.6;
|
|
margin-bottom: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.difficulty-selection {
|
|
margin: 18px 0 22px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.difficulty-label {
|
|
font-size: 0.95rem;
|
|
color: var(--gold-soft);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.difficulty-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.diff-chip {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid var(--border-gold);
|
|
color: var(--text-muted);
|
|
border-radius: 20px;
|
|
padding: 8px 16px;
|
|
font-size: 0.88rem;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.diff-chip:hover {
|
|
border-color: var(--gold);
|
|
color: var(--text-main);
|
|
transform: translateY(-1px);
|
|
background: rgba(201, 168, 106, 0.12);
|
|
}
|
|
|
|
.diff-chip.active {
|
|
background: rgba(201, 168, 106, 0.25);
|
|
border-color: var(--gold);
|
|
color: var(--gold-bright);
|
|
box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* =========================================
|
|
BUTTONS
|
|
========================================= */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 22px;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
font-weight: bold;
|
|
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(--gold) 0%, #b8860b 100%);
|
|
color: #0c0d14;
|
|
box-shadow: 0 4px 15px rgba(201, 168, 106, 0.3);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, #ffd700 0%, var(--gold) 100%);
|
|
box-shadow: 0 6px 20px rgba(201, 168, 106, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--gold-soft);
|
|
border: 1px solid var(--gold);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: rgba(201, 168, 106, 0.2);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: rgba(231, 76, 60, 0.2);
|
|
color: #ff7675;
|
|
border: 1px solid var(--danger);
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-success {
|
|
background: rgba(46, 204, 113, 0.2);
|
|
color: #55efc4;
|
|
border: 1px solid var(--success);
|
|
}
|
|
|
|
.btn-success:hover:not(:disabled) {
|
|
background: var(--success);
|
|
color: #000;
|
|
}
|
|
|
|
.btn-large {
|
|
font-size: 1.05rem;
|
|
padding: 14px 28px;
|
|
min-height: 50px;
|
|
}
|
|
|
|
.btn-sm {
|
|
font-size: 0.85rem;
|
|
padding: 8px 14px;
|
|
min-height: 38px;
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin-top: 18px;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
/* =========================================
|
|
STATUS & PROGRESS
|
|
========================================= */
|
|
.status-panel {
|
|
margin-bottom: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.progress-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
font-size: clamp(0.8rem, 3vw, 0.95rem);
|
|
}
|
|
|
|
.points-badge {
|
|
color: var(--gold-bright);
|
|
font-weight: bold;
|
|
text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
|
|
}
|
|
|
|
.progress-container {
|
|
width: 100%;
|
|
height: 10px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid var(--border-gold);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: linear-gradient(90deg, var(--gold) 0%, #ffd700 100%);
|
|
box-shadow: 0 0 8px rgba(255, 215, 0, 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: 14px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.meta-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.badge {
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
background: rgba(201, 168, 106, 0.15);
|
|
border: 1px solid var(--gold);
|
|
color: var(--gold-soft);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-diff {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.badge-diff-easy {
|
|
background: rgba(46, 204, 113, 0.15);
|
|
border-color: #2ecc71;
|
|
color: #2ecc71;
|
|
}
|
|
|
|
.badge-diff-medium {
|
|
background: rgba(243, 156, 18, 0.15);
|
|
border-color: #f39c12;
|
|
color: #f39c12;
|
|
}
|
|
|
|
.badge-diff-hard {
|
|
background: rgba(231, 76, 60, 0.15);
|
|
border-color: #e74c3c;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.badge-warning {
|
|
background: rgba(243, 156, 18, 0.2);
|
|
border-color: var(--warning);
|
|
color: #f39c12;
|
|
}
|
|
|
|
.badge-success {
|
|
background: rgba(46, 204, 113, 0.2);
|
|
border-color: var(--success);
|
|
color: #2ecc71;
|
|
}
|
|
|
|
.badge-danger {
|
|
background: rgba(231, 76, 60, 0.2);
|
|
border-color: var(--danger);
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.badge-muted {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.attempt-badge {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.timer-badge {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
background: rgba(243, 156, 18, 0.15);
|
|
border: 1px solid #f39c12;
|
|
color: #ffd700;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.question-text {
|
|
font-size: clamp(1.15rem, 4.5vw, 1.45rem);
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
margin: 15px 0 20px;
|
|
color: var(--text-main);
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Freitext Input */
|
|
.answer-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-answer {
|
|
width: 100%;
|
|
max-width: 450px;
|
|
padding: 14px;
|
|
font-size: 16px; /* Prevents iOS auto-zoom */
|
|
text-align: center;
|
|
border-radius: 8px;
|
|
border: 2px solid var(--border-gold);
|
|
background: rgba(0, 0, 0, 0.35);
|
|
color: var(--text-main);
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
min-height: 48px;
|
|
}
|
|
|
|
.input-answer:focus {
|
|
border-color: var(--gold);
|
|
box-shadow: 0 0 12px rgba(201, 168, 106, 0.4);
|
|
}
|
|
|
|
/* Multiple Choice Grid */
|
|
.choice-group {
|
|
width: 100%;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.choice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.choice-btn {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 2px solid var(--border-gold);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
color: var(--text-main);
|
|
font-size: clamp(0.9rem, 3.5vw, 1.05rem);
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: all 0.2s ease;
|
|
min-height: 52px;
|
|
width: 100%;
|
|
word-break: break-word;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.choice-btn:hover:not(:disabled) {
|
|
background: rgba(201, 168, 106, 0.2);
|
|
border-color: var(--gold);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.choice-btn:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.choice-letter {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: rgba(201, 168, 106, 0.2);
|
|
border: 1px solid var(--gold);
|
|
border-radius: 50%;
|
|
color: var(--gold-bright);
|
|
font-weight: bold;
|
|
font-size: 0.85rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.choice-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.choice-selected {
|
|
border-color: var(--gold-bright);
|
|
background: rgba(201, 168, 106, 0.3);
|
|
}
|
|
|
|
.choice-correct {
|
|
background: rgba(46, 204, 113, 0.25) !important;
|
|
border-color: #2ecc71 !important;
|
|
color: #55efc4 !important;
|
|
box-shadow: 0 0 12px rgba(46, 204, 113, 0.6) !important;
|
|
}
|
|
|
|
.choice-wrong {
|
|
background: rgba(231, 76, 60, 0.25) !important;
|
|
border-color: #e74c3c !important;
|
|
color: #ff7675 !important;
|
|
box-shadow: 0 0 12px rgba(231, 76, 60, 0.5) !important;
|
|
}
|
|
|
|
.hint-box {
|
|
margin-top: 15px;
|
|
padding: 12px 14px;
|
|
border-radius: 8px;
|
|
background: rgba(201, 168, 106, 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: 15px;
|
|
font-size: clamp(0.95rem, 3.5vw, 1.1rem);
|
|
text-align: center;
|
|
min-height: 28px;
|
|
font-weight: bold;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.feedback-correct {
|
|
color: var(--success);
|
|
text-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
|
|
}
|
|
|
|
.feedback-wrong {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.feedback-revealed {
|
|
color: var(--warning);
|
|
font-size: 0.9rem;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* =========================================
|
|
ANIMATIONS
|
|
========================================= */
|
|
.sparkle-effect {
|
|
animation: sparkle-glow 0.8s ease forwards;
|
|
}
|
|
|
|
@keyframes sparkle-glow {
|
|
0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
|
|
50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 215, 0, 0.4); border-color: #ffd700; }
|
|
100% { box-shadow: 0 8px 25px 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 PAGE
|
|
========================================= */
|
|
.finale-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.finale-header {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.sparkle-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.score-banner {
|
|
background: rgba(201, 168, 106, 0.1);
|
|
border: 1px dashed var(--gold);
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.score-highlight {
|
|
font-size: clamp(1rem, 4vw, 1.25rem);
|
|
}
|
|
|
|
.gold-text {
|
|
color: var(--gold-bright);
|
|
font-weight: bold;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.reward-box {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 10px;
|
|
padding: 18px 14px;
|
|
margin-bottom: 20px;
|
|
border-left: 4px solid var(--gold);
|
|
text-align: left;
|
|
}
|
|
|
|
.reward-box h2 {
|
|
color: var(--gold-soft);
|
|
font-size: clamp(1.1rem, 4vw, 1.35rem);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.reward-description {
|
|
font-size: clamp(0.95rem, 3.5vw, 1.05rem);
|
|
line-height: 1.6;
|
|
margin-bottom: 12px;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.love-note {
|
|
font-style: italic;
|
|
color: var(--gold);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.time-highlight {
|
|
margin-top: 8px;
|
|
font-size: clamp(0.9rem, 3.2vw, 1.05rem);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Tiered evaluation styling */
|
|
.tier-box {
|
|
position: relative;
|
|
border-radius: 14px;
|
|
padding: 24px 18px;
|
|
margin: 20px 0;
|
|
border: 2px solid var(--border-gold);
|
|
background: radial-gradient(circle at top, rgba(201, 168, 106, 0.12) 0%, rgba(15, 17, 30, 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: 50%;
|
|
font-size: 2rem;
|
|
font-weight: 900;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
|
|
border: 3px solid;
|
|
}
|
|
|
|
.tier-outstanding {
|
|
background: radial-gradient(circle, #ffd700, #b8860b);
|
|
color: #0b0b16;
|
|
border-color: #fff275;
|
|
box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
|
|
}
|
|
|
|
.tier-exceeds {
|
|
background: radial-gradient(circle, #2ecc71, #27ae60);
|
|
color: #0b0b16;
|
|
border-color: #a8f5cc;
|
|
box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
|
|
}
|
|
|
|
.tier-acceptable {
|
|
background: radial-gradient(circle, #3498db, #2980b9);
|
|
color: #ffffff;
|
|
border-color: #a0d3f8;
|
|
box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
|
|
}
|
|
|
|
.tier-poor {
|
|
background: radial-gradient(circle, #e67e22, #d35400);
|
|
color: #ffffff;
|
|
border-color: #f7b278;
|
|
box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
|
|
}
|
|
|
|
.tier-troll {
|
|
background: radial-gradient(circle, #7f8c8d, #34495e);
|
|
color: #ff7675;
|
|
border-color: #e74c3c;
|
|
box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
|
|
}
|
|
|
|
.tier-subtitle {
|
|
font-style: italic;
|
|
color: var(--gold-soft);
|
|
margin-bottom: 12px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Leaderboard entry card & form on finale */
|
|
.leaderboard-entry-card {
|
|
background: rgba(14, 16, 32, 0.85);
|
|
border: 1px dashed var(--gold);
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.input-with-btn {
|
|
display: flex;
|
|
gap: 10px;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-with-btn .input-text {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Leaderboard tables & filters */
|
|
.diff-filter-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.diff-filter-tabs .tab-btn {
|
|
border-radius: 20px;
|
|
padding: 8px 16px;
|
|
font-size: 0.88rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid var(--border-gold);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.diff-filter-tabs .tab-btn.active {
|
|
background: rgba(201, 168, 106, 0.25);
|
|
border-color: var(--gold);
|
|
color: var(--gold-bright);
|
|
box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
|
|
}
|
|
|
|
.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(201, 168, 106, 0.12);
|
|
color: var(--gold-soft);
|
|
padding: 10px 12px;
|
|
border-bottom: 2px solid var(--border-gold);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lb-table td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid rgba(201, 168, 106, 0.15);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.lb-table tr:hover td {
|
|
background: rgba(201, 168, 106, 0.05);
|
|
}
|
|
|
|
.lb-rank {
|
|
font-weight: bold;
|
|
color: var(--gold);
|
|
}
|
|
|
|
.lb-rank-1 { color: #ffd700; font-size: 1.1rem; }
|
|
.lb-rank-2 { color: #c0c0c0; font-size: 1.05rem; }
|
|
.lb-rank-3 { color: #cd7f32; font-size: 1.05rem; }
|
|
|
|
/* =========================================
|
|
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.9rem;
|
|
font-weight: bold;
|
|
color: var(--gold-soft);
|
|
}
|
|
|
|
.input-text, .textarea, select.input-text {
|
|
padding: 12px 14px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-gold);
|
|
background: rgba(0, 0, 0, 0.4);
|
|
color: var(--text-main);
|
|
font-size: 16px; /* Prevents auto zoom */
|
|
font-family: inherit;
|
|
outline: none;
|
|
width: 100%;
|
|
min-height: 46px;
|
|
}
|
|
|
|
.input-text:focus, .textarea:focus {
|
|
border-color: var(--gold);
|
|
box-shadow: 0 0 8px rgba(201, 168, 106, 0.3);
|
|
}
|
|
|
|
.input-text-sm {
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-gold);
|
|
background: rgba(0,0,0,0.3);
|
|
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(41, 128, 185, 0.15);
|
|
border-left: 4px solid #3498db;
|
|
padding: 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.alert-danger {
|
|
background: rgba(231, 76, 60, 0.2);
|
|
border: 1px solid var(--danger);
|
|
color: #ff7675;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
margin-bottom: 16px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* =========================================
|
|
ADMIN COCKPIT (Mobile Responsive)
|
|
========================================= */
|
|
.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;
|
|
}
|
|
|
|
/* Horizontal Scrollable Tabs on Mobile */
|
|
.tabs-nav {
|
|
display: flex;
|
|
gap: 6px;
|
|
border-bottom: 1px solid var(--border-gold);
|
|
margin-bottom: 20px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none; /* Firefox */
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.tabs-nav::-webkit-scrollbar {
|
|
display: none; /* Chrome/Safari */
|
|
}
|
|
|
|
.tab-btn {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: none;
|
|
color: var(--text-muted);
|
|
padding: 10px 14px;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
font-family: inherit;
|
|
font-weight: bold;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
min-height: 42px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--bg-card);
|
|
color: var(--gold);
|
|
border: 1px solid var(--border-gold);
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.question-admin-card {
|
|
margin-bottom: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.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(--gold-bright);
|
|
font-weight: bold;
|
|
background: rgba(255, 215, 0, 0.1);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.test-matcher-box {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.test-input-group {
|
|
display: flex;
|
|
gap: 6px;
|
|
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 rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 30px 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* =========================================
|
|
FOOTER
|
|
========================================= */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 16px;
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.footer-links {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.footer-link {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 0.8rem;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: var(--gold-bright);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.footer-sep {
|
|
color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.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(--gold-soft);
|
|
margin-top: 22px;
|
|
margin-bottom: 8px;
|
|
font-size: 1.15rem;
|
|
border-bottom: 1px solid rgba(201, 168, 106, 0.2);
|
|
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(--gold-bright);
|
|
font-size: 0.88em;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* =========================================
|
|
MOBILE RESPONSIVENESS (max-width: 640px)
|
|
========================================= */
|
|
@media (max-width: 640px) {
|
|
.container {
|
|
margin: 10px auto 25px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.admin-wrapper {
|
|
margin: 10px auto 25px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.card {
|
|
padding: 16px 12px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
/* Mobile Hamburger Menu */
|
|
.menu-toggle-btn {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
position: absolute;
|
|
top: var(--header-height);
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(11, 11, 22, 0.98);
|
|
border-bottom: 2px solid var(--gold);
|
|
flex-direction: column;
|
|
padding: 14px 16px;
|
|
gap: 8px;
|
|
box-shadow: 0 15px 30px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
.nav-links.nav-open {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-link {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
font-size: 1rem;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(201, 168, 106, 0.2);
|
|
}
|
|
|
|
.audio-label {
|
|
display: none; /* Show only 🔇/🔊 on small phones */
|
|
}
|
|
|
|
.audio-btn {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
/* Quiz Question layout */
|
|
.choice-grid {
|
|
grid-template-columns: 1fr; /* Single column on mobile */
|
|
gap: 10px;
|
|
}
|
|
|
|
.choice-btn {
|
|
min-height: 48px;
|
|
padding: 10px 12px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.btn-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-group .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.test-input-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.test-input-group .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.q-actions .btn {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.admin-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
text-align: center;
|
|
}
|
|
|
|
.admin-top-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.lang-btn {
|
|
padding: 4px 6px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.diff-chip {
|
|
padding: 6px 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|