Files
helldivers/public/styles.css
T

1913 lines
49 KiB
CSS
Raw Normal View History

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
--bg: #0a0a10;
--bg-surface: #0f0f1e;
--bg-surface2: #141428;
--bg-glass: rgba(15, 15, 30, 0.85);
--accent: #ffe710;
--accent-dim: rgba(255, 231, 16, 0.12);
--accent-glow: rgba(255, 231, 16, 0.4);
--brand: #41639c;
--brand-dim: rgba(65, 99, 156, 0.12);
--brand-light: #5a82c0;
--danger: #ff525d;
--danger-dim: rgba(255, 82, 93, 0.15);
--success: #4dff91;
--success-dim: rgba(77, 255, 145, 0.12);
--text: #dde0f0;
--text-muted: #4a5070;
--text-dim: #7a86a8;
--border: rgba(65, 99, 156, 0.22);
--border-accent: rgba(255, 231, 16, 0.28);
--gradient-accent: linear-gradient(135deg, #ffe710 0%, #ffb800 100%);
--gradient-bg: linear-gradient(160deg, #0a0a10 0%, #0c0c1c 100%);
--shadow-card: 0 4px 28px rgba(0, 0, 0, 0.55);
--shadow-accent: 0 0 20px rgba(255, 231, 16, 0.35);
--shadow-glow: 0 0 40px rgba(255, 231, 16, 0.15);
--font-heading: 'Rajdhani', 'Exo 2', sans-serif;
--font-mono: 'Share Tech Mono', 'Courier New', monospace;
--font-body: 'Exo 2', system-ui, sans-serif;
--radius: 4px;
--radius-lg: 8px;
--transition: 0.15s ease;
--trans-med: 0.25s ease;
}
/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
height: 100%;
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.5;
overflow-x: hidden;
}
/* ── Military grid overlay ─────────────────────────────────────────────────── */
body::before {
content: '';
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(65, 99, 156, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(65, 99, 156, 0.05) 1px, transparent 1px);
background-size: 48px 48px;
pointer-events: none;
z-index: 0;
}
/* Scanlines */
body::after {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 3px,
rgba(0, 0, 0, 0.05) 3px,
rgba(0, 0, 0, 0.05) 4px
);
pointer-events: none;
z-index: 0;
}
/* ── Layout helpers ────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 0.85rem; }
.accent { color: var(--accent); }
.view {
position: relative;
z-index: 1;
min-height: calc(100vh - 56px);
padding: 28px 24px 64px;
max-width: 1140px;
margin: 0 auto;
}
.view-centered {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 20px;
position: relative;
z-index: 1;
}
/* View fade transition */
.view-fade-in {
animation: viewFadeIn 0.18s ease forwards;
}
@keyframes viewFadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Navigation ────────────────────────────────────────────────────────────── */
#main-nav {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 16px;
padding: 0 20px;
height: 56px;
background: rgba(10, 10, 16, 0.94);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(12px);
}
.nav-brand {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-heading);
font-size: 1.05rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.06em;
white-space: nowrap;
text-shadow: 0 0 12px var(--accent-glow);
}
.nav-logo { font-size: 1.3rem; }
.nav-links {
display: flex;
gap: 2px;
flex: 1;
justify-content: center;
}
.nav-btn {
background: transparent;
border: none;
color: var(--text-muted);
font-family: var(--font-heading);
font-size: 0.88rem;
font-weight: 600;
letter-spacing: 0.06em;
padding: 6px 14px;
border-radius: var(--radius);
cursor: pointer;
transition: color var(--transition), background var(--transition);
white-space: nowrap;
}
.nav-btn:hover { color: var(--text); background: var(--brand-dim); }
.nav-btn.active { color: var(--accent); background: var(--accent-dim); }
.nav-user {
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
white-space: nowrap;
}
.nav-username {
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--brand-light);
}
/* Hamburger (mobile only) */
#nav-hamburger {
display: none;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 1.2rem;
width: 36px;
height: 36px;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all var(--transition);
line-height: 1;
}
#nav-hamburger:hover { background: var(--brand-dim); border-color: var(--brand); }
/* Mobile drawer */
#nav-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 150;
backdrop-filter: blur(2px);
}
#nav-overlay.open { display: block; }
#nav-drawer {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 260px;
background: var(--bg-surface);
border-right: 1px solid var(--border);
z-index: 160;
transform: translateX(-100%);
transition: transform 0.25s ease;
display: flex;
flex-direction: column;
padding: 20px 0;
}
#nav-drawer.open { transform: translateX(0); }
.drawer-header {
padding: 0 20px 20px;
border-bottom: 1px solid var(--border);
margin-bottom: 8px;
font-family: var(--font-heading);
font-size: 1rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.08em;
}
.drawer-btn {
background: transparent;
border: none;
color: var(--text-dim);
font-family: var(--font-heading);
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.05em;
padding: 13px 20px;
text-align: left;
cursor: pointer;
transition: all var(--transition);
width: 100%;
border-left: 3px solid transparent;
}
.drawer-btn:hover { color: var(--text); background: var(--brand-dim); border-left-color: var(--brand); }
.drawer-btn.active { color: var(--accent); background: var(--accent-dim); border-left-color: var(--accent); }
.drawer-footer {
margin-top: auto;
padding: 16px 20px 0;
border-top: 1px solid var(--border);
}
/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 22px;
box-shadow: var(--shadow-card);
backdrop-filter: blur(8px);
transition: border-color var(--trans-med), box-shadow var(--trans-med);
}
.card:hover { border-color: rgba(65, 99, 156, 0.4); }
.card-accent {
border-color: var(--border-accent);
box-shadow: var(--shadow-card), 0 0 20px rgba(255, 231, 16, 0.06);
}
.card-hero {
background: linear-gradient(135deg, rgba(65, 99, 156, 0.15) 0%, rgba(255, 231, 16, 0.04) 100%);
border-color: rgba(65, 99, 156, 0.35);
padding: 28px;
}
.card-title {
font-family: var(--font-heading);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
color: var(--brand-light);
margin-bottom: 18px;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 8px;
}
.card-title::before {
content: '';
display: inline-block;
width: 3px;
height: 12px;
background: var(--brand);
border-radius: 2px;
}
/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
display: inline-flex;
align-items: center;
padding: 2px 10px;
border-radius: 20px;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
}
.badge-admin { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,231,16,0.25); }
.badge-user { background: var(--brand-dim); color: var(--brand-light); border: 1px solid rgba(65,99,156,0.3); }
.badge-warning { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(255,82,93,0.3); }
.badge-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(77,255,145,0.25); }
.badge-rank { background: rgba(255,231,16,0.08); color: var(--accent); border: 1px solid rgba(255,231,16,0.2); font-family: var(--font-heading); }
/* ELO rank badges */
.rank-private { --rank-color: #7a86a8; }
.rank-sergeant { --rank-color: #5a82c0; }
.rank-lieutenant { --rank-color: #4dff91; }
.rank-captain { --rank-color: #ffb800; }
.rank-general { --rank-color: #ffe710; }
.rank-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 20px;
font-family: var(--font-heading);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.1em;
color: var(--rank-color, var(--text-dim));
background: rgba(255,255,255,0.04);
border: 1px solid color-mix(in srgb, var(--rank-color, #7a86a8) 30%, transparent);
}
/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 22px;
border: 1px solid transparent;
border-radius: var(--radius);
font-family: var(--font-heading);
font-size: 0.9rem;
font-weight: 700;
letter-spacing: 0.08em;
cursor: pointer;
transition: all var(--transition);
text-transform: uppercase;
white-space: nowrap;
position: relative;
overflow: hidden;
}
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.btn-accent {
background: var(--gradient-accent);
color: #000;
border-color: transparent;
}
.btn-accent:hover {
box-shadow: var(--shadow-accent);
filter: brightness(1.08);
}
.btn-muted {
background: transparent;
color: var(--text-muted);
border-color: var(--border);
}
.btn-muted:hover { color: var(--text); border-color: var(--text-muted); background: rgba(255,255,255,0.03); }
.btn-danger {
background: var(--danger-dim);
color: var(--danger);
border-color: rgba(255,82,93,0.35);
}
.btn-danger:hover { background: rgba(255,82,93,0.22); border-color: var(--danger); }
.btn-ghost {
background: transparent;
color: var(--brand-light);
border-color: transparent;
}
.btn-ghost:hover { background: var(--brand-dim); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; min-width: 36px; }
/* Loading state */
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading::after {
content: '';
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid currentColor;
border-top-color: transparent;
border-radius: 50%;
animation: spin 0.6s linear infinite;
margin-left: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Progress bar ──────────────────────────────────────────────────────────── */
.progress-bar {
height: 4px;
background: var(--bg-surface2);
border-radius: 2px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--gradient-accent);
border-radius: 2px;
transition: width 0.3s ease;
}
.progress-fill-brand {
background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
}
/* ── Skeleton loader ───────────────────────────────────────────────────────── */
.skeleton {
background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface2) 50%, var(--bg-surface) 75%);
background-size: 200% 100%;
animation: shimmer 1.4s infinite;
border-radius: var(--radius);
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 16px; }
.skeleton-card { height: 120px; }
/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 300;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
backdrop-filter: blur(4px);
animation: fadeOverlay 0.15s ease;
}
@keyframes fadeOverlay {
from { opacity: 0; }
to { opacity: 1; }
}
.modal {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 28px;
width: 100%;
max-width: 440px;
box-shadow: var(--shadow-card);
animation: modalSlide 0.18s ease;
position: relative;
}
.modal-wide { max-width: 600px; }
@keyframes modalSlide {
from { opacity: 0; transform: translateY(-12px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.modal-title {
font-family: var(--font-heading);
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.08em;
color: var(--accent);
text-transform: uppercase;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 1.2rem;
cursor: pointer;
padding: 4px;
border-radius: var(--radius);
transition: color var(--transition);
line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-actions {
display: flex;
gap: 10px;
margin-top: 24px;
justify-content: flex-end;
}
/* ── Tooltip ───────────────────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
background: var(--bg-surface2);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 4px 10px;
font-size: 0.75rem;
white-space: nowrap;
color: var(--text);
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease;
z-index: 50;
}
[data-tooltip]:hover::after { opacity: 1; }
/* ── Form elements ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
label {
display: block;
font-size: 0.73rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 6px;
}
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
width: 100%;
background: var(--bg-surface2);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-family: var(--font-body);
font-size: 1rem;
padding: 10px 14px;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
select option { background: var(--bg-surface2); }
.error { color: var(--danger); font-size: 0.85rem; margin-bottom: 10px; }
/* ── Login ─────────────────────────────────────────────────────────────────── */
.login-box {
width: 100%;
max-width: 400px;
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 40px 36px;
box-shadow: var(--shadow-card);
backdrop-filter: blur(16px);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
font-size: 3.2rem;
line-height: 1;
display: block;
margin-bottom: 10px;
filter: drop-shadow(0 0 16px var(--accent-glow));
}
.login-header h1 {
font-family: var(--font-heading);
font-size: 1.9rem;
font-weight: 700;
letter-spacing: 0.16em;
color: var(--accent);
text-shadow: 0 0 24px rgba(255,231,16,0.25);
}
.login-sub {
font-size: 0.68rem;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-top: 6px;
}
/* ── Page headers ──────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title {
font-family: var(--font-heading);
font-size: 1.65rem;
font-weight: 700;
letter-spacing: 0.12em;
color: var(--accent);
text-transform: uppercase;
text-shadow: 0 0 20px rgba(255,231,16,0.15);
}
.page-sub {
font-size: 0.85rem;
color: var(--text-muted);
margin-top: 5px;
}
/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.dashboard-hero {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}
.hero-identity { display: flex; align-items: center; gap: 16px; }
.hero-rank-icon {
font-size: 2.8rem;
filter: drop-shadow(0 0 10px var(--accent-glow));
line-height: 1;
}
.hero-name {
font-family: var(--font-heading);
font-size: 1.6rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.06em;
line-height: 1.1;
}
.hero-rank-name {
font-size: 0.78rem;
letter-spacing: 0.12em;
color: var(--text-dim);
text-transform: uppercase;
margin-top: 4px;
}
.hero-elo {
font-family: var(--font-mono);
font-size: 1rem;
color: var(--text-dim);
}
.hero-elo span {
font-size: 1.4rem;
color: var(--accent);
}
.hero-stats {
display: flex;
gap: 24px;
}
.hero-stat-item { text-align: center; }
.hero-stat-val {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
}
.hero-stat-label {
font-size: 0.65rem;
letter-spacing: 0.1em;
color: var(--text-muted);
text-transform: uppercase;
margin-top: 2px;
}
.stat-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.stat-item {
text-align: center;
padding: 12px 8px;
background: var(--bg-surface2);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.stat-value {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
}
.stat-value.accent { color: var(--accent); }
.stat-label { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; margin-top: 3px; }
.stat-trend {
font-size: 0.72rem;
margin-left: 4px;
}
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
/* Daily challenge */
.daily-stratagem { display: flex; flex-direction: column; gap: 8px; }
.daily-name {
font-family: var(--font-heading);
font-size: 1.2rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.03em;
}
.daily-category { font-size: 0.78rem; color: var(--text-dim); }
.daily-best { font-size: 0.82rem; color: var(--text-muted); }
.daily-sequence-preview {
display: flex;
gap: 5px;
flex-wrap: wrap;
margin: 4px 0;
}
.daily-arrow {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 0.9rem;
color: var(--text-dim);
background: var(--bg-surface2);
}
/* Online list */
.online-list { display: flex; flex-direction: column; gap: 8px; }
.online-user {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
background: var(--bg-surface2);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.online-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 6px var(--success);
flex-shrink: 0;
}
/* Data table */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
}
.data-table th {
text-align: left;
font-size: 0.68rem;
letter-spacing: 0.1em;
color: var(--text-muted);
padding: 6px 8px;
border-bottom: 1px solid var(--border);
text-transform: uppercase;
}
.data-table td {
padding: 9px 8px;
border-bottom: 1px solid rgba(65, 99, 156, 0.08);
font-family: var(--font-mono);
font-size: 0.84rem;
}
.data-table tbody tr:hover td { background: rgba(65, 99, 156, 0.06); }
.data-table tr.row-me td { color: var(--accent); }
.data-table .rank {
font-size: 0.95rem;
color: var(--accent);
font-weight: 700;
text-align: center;
width: 40px;
}
/* ── Practice mode ─────────────────────────────────────────────────────────── */
.practice-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 12px;
}
/* Mode selector */
.mode-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 24px;
}
.mode-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 18px 14px;
text-align: center;
cursor: pointer;
transition: all var(--trans-med);
display: flex;
flex-direction: column;
gap: 8px;
}
.mode-card:hover { border-color: var(--brand); background: var(--brand-dim); }
.mode-card.active { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 14px rgba(255,231,16,0.1); }
.mode-icon { font-size: 1.8rem; line-height: 1; }
.mode-name {
font-family: var(--font-heading);
font-size: 0.88rem;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--text);
text-transform: uppercase;
}
.mode-desc { font-size: 0.73rem; color: var(--text-muted); line-height: 1.4; }
/* Category filters */
.category-row {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin-bottom: 20px;
}
.cat-btn {
background: var(--bg-surface);
border: 1px solid var(--border);
color: var(--text-muted);
border-radius: 20px;
padding: 5px 14px;
font-family: var(--font-body);
font-size: 0.78rem;
cursor: pointer;
transition: all var(--transition);
}
.cat-btn.active { background: var(--brand-dim); border-color: var(--brand); color: var(--text); }
.cat-btn:hover { border-color: var(--text-muted); color: var(--text); }
/* Idle / Settings row */
.practice-setup {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
padding: 32px 20px;
}
.practice-start-row {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.idle-hint { color: var(--text-muted); font-size: 0.88rem; }
/* Active practice */
.practice-active {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.stratagem-display {
width: 100%;
max-width: 620px;
text-align: center;
}
.stratagem-category {
font-size: 0.72rem;
letter-spacing: 0.14em;
color: var(--brand-light);
text-transform: uppercase;
margin-bottom: 8px;
}
.stratagem-name {
font-family: var(--font-heading);
font-size: 2rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.04em;
margin-bottom: 20px;
text-shadow: 0 0 24px rgba(255,231,16,0.18);
min-height: 2.4em;
}
.practice-hint {
font-size: 0.72rem;
color: var(--text-muted);
margin-top: 14px;
letter-spacing: 0.08em;
}
/* ── Arrow key indicators ──────────────────────────────────────────────────── */
.arrow-sequence {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
align-items: center;
min-height: 58px;
}
.arrow-key {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border: 2px solid var(--border);
border-radius: 6px;
font-family: var(--font-mono);
font-size: 1.3rem;
color: var(--text-muted);
background: var(--bg-surface2);
transition: all 0.1s ease;
user-select: none;
}
.arrow-key.active {
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 14px rgba(255,231,16,0.4);
animation: pulse-key 0.9s ease infinite;
}
@keyframes pulse-key {
0%, 100% { box-shadow: 0 0 14px rgba(255,231,16,0.4); }
50% { box-shadow: 0 0 22px rgba(255,231,16,0.6); }
}
.arrow-key.completed {
border-color: var(--success);
color: var(--success);
background: var(--success-dim);
}
.arrow-key.flash-correct {
border-color: var(--success);
background: var(--success-dim);
color: var(--success);
animation: pop 0.22s ease;
}
.arrow-key.flash-wrong {
border-color: var(--danger);
background: var(--danger-dim);
color: var(--danger);
animation: shake 0.35s ease;
}
@keyframes pop {
0% { transform: scale(1.3); }
100% { transform: scale(1); }
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-5px); }
40% { transform: translateX(5px); }
60% { transform: translateX(-4px); }
80% { transform: translateX(4px); }
}
/* ── Practice HUD ──────────────────────────────────────────────────────────── */
.practice-hud {
display: flex;
gap: 28px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.hud-item { text-align: center; min-width: 72px; }
.hud-label { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.hud-value { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; color: var(--text); }
.hud-value.accent { color: var(--accent); }
/* SVG Timer ring */
.timer-ring-wrap {
position: relative;
width: 80px;
height: 80px;
flex-shrink: 0;
}
.timer-ring-svg {
transform: rotate(-90deg);
width: 80px;
height: 80px;
}
.timer-ring-bg { fill: none; stroke: var(--bg-surface2); stroke-width: 5; }
.timer-ring-fill { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s ease; }
.timer-ring-fill.danger { stroke: var(--danger); }
.timer-ring-val {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: 1.4rem;
font-weight: 700;
color: var(--text);
transition: color var(--transition);
}
.timer-ring-val.danger { color: var(--danger); animation: pulse 0.8s infinite; }
/* Classic timer fallback */
.timer {
font-family: var(--font-mono);
font-size: 2.5rem;
font-weight: 700;
color: var(--text);
transition: color var(--transition);
min-width: 60px;
text-align: center;
}
.timer.timer-danger { color: var(--danger); animation: pulse 0.8s infinite; }
.timer.flash-wrong { animation: shake 0.4s ease; }
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.flash-wrong-seq { animation: shake 0.35s ease; }
/* Lives (Endless mode) */
.lives-display { display: flex; gap: 6px; align-items: center; font-size: 1.4rem; }
.life-icon.lost { opacity: 0.2; filter: grayscale(1); }
/* Streak fire effect */
.streak-fire .hud-value {
color: var(--accent);
text-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(255,150,0,0.4);
animation: fireGlow 1s ease infinite alternate;
}
@keyframes fireGlow {
from { text-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(255,150,0,0.3); }
to { text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255,150,0,0.5); }
}
/* Multiplier badge */
.combo-badge {
display: inline-flex;
align-items: center;
background: var(--accent-dim);
border: 1px solid var(--border-accent);
color: var(--accent);
font-family: var(--font-mono);
font-size: 0.8rem;
font-weight: 700;
padding: 2px 8px;
border-radius: 20px;
}
/* Practice mode-specific HUD additions */
.drill-progress { width: 100%; max-width: 500px; }
.drill-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 6px; text-transform: uppercase; display: flex; justify-content: space-between; }
/* Vignette danger (≤5s) */
.danger-vignette {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 5;
box-shadow: inset 0 0 80px rgba(255, 82, 93, 0.25);
animation: vignetteFlash 0.8s ease infinite;
}
@keyframes vignetteFlash {
0%, 100% { opacity: 0.8; }
50% { opacity: 0.3; }
}
/* ── D-Pad ─────────────────────────────────────────────────────────────────── */
.dpad {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}
.dpad-row {
display: flex;
gap: 3px;
align-items: center;
}
.dpad-btn {
width: 58px;
height: 58px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 1.3rem;
cursor: pointer;
transition: all var(--transition);
font-family: var(--font-mono);
display: flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
}
.dpad-btn:hover { background: var(--brand-dim); border-color: var(--brand); }
.dpad-btn:active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); transform: scale(0.9); }
.dpad-center {
width: 58px;
height: 58px;
background: var(--bg-surface2);
border-radius: var(--radius);
}
/* ── Lobby ─────────────────────────────────────────────────────────────────── */
.lobby-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
max-width: 900px;
}
.player-list { display: flex; flex-direction: column; gap: 10px; }
.lobby-player {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
background: var(--bg-surface2);
border-radius: var(--radius);
border: 1px solid var(--border);
transition: border-color var(--transition);
}
.lobby-player:hover { border-color: rgba(65, 99, 156, 0.5); }
.player-name { flex: 1; font-family: var(--font-mono); font-size: 0.9rem; }
.player-elo {
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--text-dim);
}
.challenge-list { display: flex; flex-direction: column; gap: 10px; }
.challenge-item {
display: flex;
align-items: center;
gap: 10px;
padding: 14px;
background: var(--accent-dim);
border: 1px solid var(--border-accent);
border-radius: var(--radius-lg);
flex-wrap: wrap;
animation: challengePulse 2s ease infinite;
}
@keyframes challengePulse {
0%, 100% { border-color: var(--border-accent); }
50% { border-color: var(--accent); box-shadow: 0 0 12px rgba(255,231,16,0.15); }
}
.challenge-badge {
position: fixed;
top: 64px;
right: 16px;
background: var(--gradient-accent);
color: #000;
font-family: var(--font-heading);
font-size: 0.78rem;
font-weight: 700;
padding: 6px 14px;
border-radius: 20px;
cursor: pointer;
z-index: 200;
box-shadow: var(--shadow-accent);
animation: pulse 1.5s infinite;
}
/* Lobby empty state */
.lobby-empty {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 32px 20px;
text-align: center;
color: var(--text-muted);
}
.lobby-empty-icon { font-size: 2.5rem; opacity: 0.4; }
/* ── Match ─────────────────────────────────────────────────────────────────── */
.match-header {
position: relative;
z-index: 1;
text-align: center;
padding: 24px 20px 12px;
}
.match-status-text {
font-family: var(--font-heading);
font-size: 1.8rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.match-category {
font-size: 0.78rem;
color: var(--text-muted);
letter-spacing: 0.1em;
margin-top: 4px;
}
.match-scoreboard {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
padding: 16px;
max-width: 520px;
margin: 0 auto 20px;
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
backdrop-filter: blur(8px);
}
.match-player { text-align: center; }
.match-player-name { font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-muted); }
.match-wins {
font-family: var(--font-mono);
font-size: 3rem;
font-weight: 700;
color: var(--text);
line-height: 1.1;
}
.match-player.me .match-wins { color: var(--accent); }
.match-vs { font-family: var(--font-heading); font-size: 1rem; color: var(--text-muted); padding: 0 8px; }
.match-round-area {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
max-width: 720px;
margin: 0 auto;
padding: 0 20px;
}
.match-sequences {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
width: 100%;
}
.match-seq-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.match-seq-label {
font-size: 0.68rem;
letter-spacing: 0.15em;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
}
.match-actions {
position: relative;
z-index: 1;
display: flex;
gap: 12px;
align-items: center;
justify-content: center;
padding: 16px;
}
/* ── Post-match result ─────────────────────────────────────────────────────── */
.result-winner { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.result-winner.win { color: var(--accent); text-shadow: var(--shadow-accent); }
.result-winner.loss { color: var(--text-muted); }
.elo-delta-row {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
font-family: var(--font-mono);
padding: 12px;
background: var(--bg-surface2);
border-radius: var(--radius);
margin: 8px 0;
}
.elo-delta-old { color: var(--text-muted); }
.elo-delta-arrow { color: var(--text-dim); }
.elo-delta-new { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.elo-delta-val.positive { color: var(--success); }
.elo-delta-val.negative { color: var(--danger); }
.round-history { display: flex; flex-direction: column; gap: 5px; max-height: 180px; overflow-y: auto; margin: 8px 0; }
.round-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 10px;
background: var(--bg-surface2);
border-radius: var(--radius);
font-size: 0.82rem;
font-family: var(--font-mono);
}
.round-row.won { border-left: 3px solid var(--success); }
.round-row.lost { border-left: 3px solid var(--danger); }
/* ── Leaderboard ───────────────────────────────────────────────────────────── */
.leaderboard-tabs {
display: flex;
gap: 4px;
margin-bottom: 20px;
}
.tab-btn {
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
font-family: var(--font-heading);
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.06em;
padding: 6px 16px;
cursor: pointer;
transition: all var(--transition);
text-transform: uppercase;
}
.tab-btn:hover { color: var(--text); border-color: var(--brand); }
.tab-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
/* ── History view ──────────────────────────────────────────────────────────── */
.history-chart {
width: 100%;
height: 160px;
background: var(--bg-surface2);
border-radius: var(--radius);
border: 1px solid var(--border);
padding: 12px;
overflow: hidden;
}
.history-chart svg { width: 100%; height: 100%; }
.history-filters {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 16px;
align-items: center;
}
.history-filters select {
width: auto;
min-width: 120px;
}
.pagination {
display: flex;
gap: 6px;
align-items: center;
justify-content: center;
margin-top: 16px;
flex-wrap: wrap;
}
.page-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--text-muted);
border-radius: var(--radius);
padding: 4px 12px;
font-family: var(--font-mono);
font-size: 0.82rem;
cursor: pointer;
transition: all var(--transition);
}
.page-btn:hover { border-color: var(--brand); color: var(--text); }
.page-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.page-info { color: var(--text-muted); font-size: 0.82rem; }
/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-layout {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 16px;
max-width: 860px;
}
.admin-user-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--bg-surface2);
border-radius: var(--radius);
border: 1px solid var(--border);
flex-wrap: wrap;
transition: border-color var(--transition);
}
.admin-user-row:hover { border-color: rgba(65, 99, 156, 0.4); }
.user-name { flex: 1; font-family: var(--font-mono); font-size: 0.88rem; }
.pw-display {
margin-top: 12px;
padding: 10px 14px;
background: var(--bg-surface2);
border: 1px solid var(--accent);
border-radius: var(--radius);
font-family: var(--font-mono);
color: var(--accent);
font-size: 0.88rem;
word-break: break-all;
}
/* ── Settings modal content ────────────────────────────────────────────────── */
.settings-section { margin-bottom: 22px; }
.settings-label {
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 10px;
display: block;
}
.settings-options {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.settings-option {
flex: 1;
min-width: 70px;
background: var(--bg-surface2);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
font-family: var(--font-heading);
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.06em;
padding: 8px 12px;
text-align: center;
cursor: pointer;
transition: all var(--transition);
text-transform: uppercase;
}
.settings-option:hover { border-color: var(--brand); color: var(--text); }
.settings-option.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
/* ── Toast notifications ───────────────────────────────────────────────────── */
#toast-container {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 8px;
z-index: 500;
pointer-events: none;
}
.toast {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 10px 16px;
font-size: 0.88rem;
opacity: 0;
transform: translateX(20px);
transition: all 0.22s ease;
max-width: 300px;
pointer-events: auto;
box-shadow: var(--shadow-card);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.toast-success { border-color: rgba(77,255,145,0.3); }
.toast.toast-danger { border-color: rgba(255,82,93,0.3); }
/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
height: 1px;
background: var(--border);
margin: 16px 0;
}
/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.mode-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.nav-links { display: none; }
#nav-hamburger { display: flex; }
.view { padding: 20px 14px 48px; }
.dashboard-grid { grid-template-columns: 1fr; }
.dashboard-hero { flex-direction: column; gap: 16px; }
.hero-stats { justify-content: center; }
.lobby-layout { grid-template-columns: 1fr; }
.admin-layout { grid-template-columns: 1fr; }
.match-sequences { grid-template-columns: 1fr; gap: 12px; }
.mode-grid { grid-template-columns: repeat(2, 1fr); }
.stratagem-name { font-size: 1.5rem; }
.arrow-key { width: 42px; height: 42px; font-size: 1.1rem; }
.match-scoreboard { gap: 16px; padding: 12px; }
.match-wins { font-size: 2.2rem; }
.match-status-text { font-size: 1.4rem; }
.practice-hud { gap: 16px; }
.timer { font-size: 2rem; }
.leaderboard-tabs { flex-wrap: wrap; }
}
@media (max-width: 480px) {
.mode-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-card { padding: 14px 10px; }
.mode-icon { font-size: 1.4rem; }
.hero-stats { gap: 16px; }
.practice-hud { gap: 10px; }
.arrow-key { width: 38px; height: 38px; font-size: 1rem; }
.dpad-btn { width: 52px; height: 52px; }
.dpad-center { width: 52px; height: 52px; }
.page-title { font-size: 1.3rem; }
.match-wins { font-size: 1.8rem; }
.match-status-text { font-size: 1.2rem; }
.stratagem-icon-lg { width: 88px; height: 88px; }
}
/* ── Stratagem icons ─────────────────────────────────────────────────────── */
.stratagem-icon-wrap {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 14px;
height: 130px;
}
.stratagem-icon-lg {
width: 110px;
height: 110px;
object-fit: contain;
filter: invert(1) sepia(1) saturate(4) hue-rotate(0deg) brightness(1.25) drop-shadow(0 0 8px rgba(255,210,0,0.4));
opacity: 1;
transition: transform 0.25s ease, filter 0.2s;
position: relative;
}
.stratagem-icon-lg.icon-complete {
transform: scale(1.14);
filter: invert(1) sepia(1) saturate(6) hue-rotate(0deg) brightness(1.5) drop-shadow(0 0 14px rgba(255,210,0,0.7));
}
.stratagem-icon-lg.icon-wrong {
animation: iconShake 0.35s ease;
}
.stratagem-icon-fallback {
font-size: 3.5rem;
opacity: 0.3;
}
.stratagem-icon-md {
width: 52px;
height: 52px;
object-fit: contain;
filter: invert(1) sepia(1) saturate(4) hue-rotate(0deg) brightness(1.25) drop-shadow(0 0 5px rgba(255,210,0,0.3));
opacity: 1;
}
.stratagem-icon-sm {
width: 22px;
height: 22px;
object-fit: contain;
filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg) brightness(1.2);
opacity: 0.9;
vertical-align: middle;
margin-right: 5px;
}
/* Icon shake animation */
@keyframes iconShake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-5px) rotate(-3deg); }
40% { transform: translateX(5px) rotate(3deg); }
60% { transform: translateX(-4px) rotate(-2deg); }
80% { transform: translateX(4px) rotate(2deg); }
}
/* ── Stratagem queue (upcoming stratagems) ───────────────────────────────── */
.stratagem-queue {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 16px;
margin: 4px 0 12px;
min-height: 72px;
}
.queue-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
opacity: 0.40;
transition: opacity 0.2s;
width: 72px;
}
.queue-item:first-child { opacity: 0.75; }
.queue-item:nth-child(2) { opacity: 0.55; }
.queue-icon {
width: 44px;
height: 44px;
object-fit: contain;
filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg) brightness(1.15);
}
.queue-icon-fallback {
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
background: var(--bg-surface2);
border-radius: 8px;
}
.queue-label {
font-size: 0.62rem;
color: var(--text-muted);
max-width: 72px;
text-align: center;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 1.3;
word-break: break-word;
}
/* ── Score popup ─────────────────────────────────────────────────────────── */
.score-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: var(--font-heading);
font-size: 2.2rem;
font-weight: 700;
color: var(--accent);
text-shadow: 0 0 20px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.8);
pointer-events: none;
z-index: 900;
opacity: 0;
letter-spacing: 0.05em;
}
.score-popup.show {
animation: scoreFloat 0.9s ease-out forwards;
}
@keyframes scoreFloat {
0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
30% { opacity: 1; transform: translate(-50%, -70%) scale(1.1); }
100% { opacity: 0; transform: translate(-50%, -120%) scale(0.9); }
}
/* ── Session summary modal ───────────────────────────────────────────────── */
.summary-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 16px;
}
.summary-stat {
background: var(--bg-surface2);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px 8px;
text-align: center;
}
.summary-stat-val {
font-family: var(--font-heading);
font-size: 1.5rem;
font-weight: 700;
color: var(--accent);
}
.summary-stat-label {
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 2px;
}
.summary-top-item {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 0;
border-bottom: 1px solid var(--border-dim);
}
.summary-top-item:last-child { border-bottom: none; }
.summary-top-rank {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
width: 20px;
flex-shrink: 0;
}
.summary-top-name {
flex: 1;
font-size: 0.9rem;
}
.summary-top-time {
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--accent);
}
/* ── Arrow transition polish ─────────────────────────────────────────────── */
.arrow-key {
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.arrow-key.active {
transform: scale(1.12);
}
/* ── pw-display ──────────────────────────────────────────────────────────── */
.pw-display {
margin-top: 10px;
padding: 10px 12px;
background: var(--bg-surface2);
border: 1px solid var(--border);
border-radius: var(--radius-md);
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--accent);
word-break: break-all;
}
/* ── Admin layout ────────────────────────────────────────────────────────── */
.admin-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.admin-user-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
border-bottom: 1px solid var(--border-dim);
}
.admin-user-row:last-child { border-bottom: none; }
@media (max-width: 768px) {
.summary-grid { grid-template-columns: repeat(2, 1fr); }
.admin-layout { grid-template-columns: 1fr; }
.stratagem-icon-lg { width: 88px; height: 88px; }
.stratagem-queue { gap: 8px; }
}