c02414ea40
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Reviewed-on: #7
367 lines
7.3 KiB
CSS
367 lines
7.3 KiB
CSS
:host {
|
|
--nc-neon: #ff45c8;
|
|
--nc-bg: #06060d;
|
|
--nc-surface: rgba(20, 17, 42, 0.6);
|
|
--nc-text: #fff;
|
|
--nc-text-muted: rgba(255, 255, 255, 0.65);
|
|
--nc-text-dim: rgba(255, 255, 255, 0.45);
|
|
--nc-border: rgba(255, 255, 255, 0.08);
|
|
--nc-border-strong: rgba(255, 255, 255, 0.15);
|
|
--nc-success: #5ee5a1;
|
|
--nc-danger: #ff7a7a;
|
|
--nc-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--nc-mono: "JetBrains Mono", "Fira Code", monospace;
|
|
|
|
display: block;
|
|
min-height: 100vh;
|
|
background: var(--nc-bg);
|
|
font-family: var(--nc-sans);
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
:host-context(html:not([data-theme='dark'])) {
|
|
--nc-neon: #c026d3;
|
|
--nc-bg: #f5f0fc;
|
|
--nc-surface: rgba(255, 255, 255, 0.88);
|
|
--nc-text: #0f0022;
|
|
--nc-text-muted: rgba(15, 0, 34, 0.65);
|
|
--nc-text-dim: rgba(15, 0, 34, 0.4);
|
|
--nc-border: rgba(15, 0, 34, 0.1);
|
|
--nc-border-strong: rgba(15, 0, 34, 0.2);
|
|
--nc-success: #16a34a;
|
|
--nc-danger: #dc2626;
|
|
}
|
|
|
|
.games-shell {
|
|
padding-top: 72px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.page {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
padding: 32px 20px 64px;
|
|
}
|
|
|
|
/* ── Breadcrumb ─────────────────────────── */
|
|
.crumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 28px;
|
|
font-size: 11px;
|
|
color: var(--nc-text-dim);
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.crumb-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--nc-text-dim);
|
|
text-decoration: none;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.crumb-link:hover { color: var(--nc-neon); }
|
|
|
|
.crumb-sep { opacity: 0.4; }
|
|
|
|
.crumb-current {
|
|
color: var(--nc-text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ── Header ─────────────────────────────── */
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 28px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.page-title {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
/* ── Tabs ───────────────────────────────── */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--nc-surface);
|
|
border: 1px solid var(--nc-border);
|
|
padding: 3px;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--nc-text-muted);
|
|
font-family: var(--nc-sans);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
padding: 6px 16px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.tab-btn:hover { color: var(--nc-text); }
|
|
|
|
.tab-btn.active {
|
|
background: var(--nc-neon);
|
|
color: #1a0014;
|
|
}
|
|
|
|
:host-context(html:not([data-theme='dark'])) .tab-btn.active { color: #fff; }
|
|
|
|
.tab-badge {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
color: inherit;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
padding: 1px 5px;
|
|
border-radius: 8px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* ── State messages ─────────────────────── */
|
|
.state-msg {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--nc-text-dim);
|
|
font-size: 13px;
|
|
padding: 32px 0;
|
|
}
|
|
|
|
.pulse {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--nc-neon);
|
|
animation: pulse-ring 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse-ring {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.4; transform: scale(0.6); }
|
|
}
|
|
|
|
/* ── Empty state ────────────────────────── */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 64px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border: 1px solid var(--nc-border);
|
|
background: var(--nc-surface);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--nc-text-dim);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-title {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
.empty-sub {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--nc-text-dim);
|
|
}
|
|
|
|
.btn-primary {
|
|
margin-top: 12px;
|
|
background: var(--nc-neon);
|
|
color: #1a0014;
|
|
border: none;
|
|
padding: 9px 22px;
|
|
font-family: var(--nc-sans);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
transition: filter 0.15s;
|
|
}
|
|
|
|
:host-context(html:not([data-theme='dark'])) .btn-primary { color: #fff; }
|
|
|
|
.btn-primary:hover { filter: brightness(1.1); }
|
|
|
|
/* ── Game list ──────────────────────────── */
|
|
.game-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
border: 1px solid var(--nc-border);
|
|
background: var(--nc-surface);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.game-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid var(--nc-border);
|
|
transition: background 0.12s;
|
|
}
|
|
|
|
.game-row:last-child { border-bottom: none; }
|
|
|
|
.game-row:hover { background: rgba(255, 255, 255, 0.03); }
|
|
|
|
:host-context(html:not([data-theme='dark'])) .game-row:hover {
|
|
background: rgba(192, 38, 211, 0.04);
|
|
}
|
|
|
|
.game-row-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.game-players {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.player { color: var(--nc-text); }
|
|
|
|
.vs-sep {
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--nc-text-dim);
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.game-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
color: var(--nc-text-dim);
|
|
font-family: var(--nc-mono);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.active-dot {
|
|
background: var(--nc-success);
|
|
box-shadow: 0 0 6px var(--nc-success);
|
|
}
|
|
|
|
.finished-dot {
|
|
background: var(--nc-text-dim);
|
|
}
|
|
|
|
.status-text { color: var(--nc-text-muted); }
|
|
|
|
.meta-sep { opacity: 0.4; }
|
|
|
|
.meta-item { color: var(--nc-text-dim); }
|
|
|
|
.game-id-label {
|
|
font-size: 10px;
|
|
color: var(--nc-text-dim);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ── Row actions ────────────────────────── */
|
|
.game-row-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-resume,
|
|
.btn-view {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
border: none;
|
|
font-family: var(--nc-sans);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
transition: filter 0.15s;
|
|
}
|
|
|
|
.btn-resume {
|
|
background: var(--nc-neon);
|
|
color: #1a0014;
|
|
}
|
|
|
|
:host-context(html:not([data-theme='dark'])) .btn-resume { color: #fff; }
|
|
|
|
.btn-resume:hover { filter: brightness(1.1); }
|
|
|
|
.btn-view {
|
|
background: transparent;
|
|
color: var(--nc-text-muted);
|
|
border: 1px solid var(--nc-border-strong);
|
|
}
|
|
|
|
.btn-view:hover {
|
|
color: var(--nc-neon);
|
|
border-color: var(--nc-neon);
|
|
}
|
|
|
|
.btn-remove {
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: var(--nc-text-dim);
|
|
width: 28px;
|
|
height: 28px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.btn-remove:hover {
|
|
color: var(--nc-danger);
|
|
border-color: var(--nc-border);
|
|
}
|