1431 lines
29 KiB
CSS
1431 lines
29 KiB
CSS
/* ==========================================================================
|
|
PIXEL SLIDE — DESIGN SYSTEM & STYLESHEET
|
|
Aesthetics: Deep Cyber Slate, Electric Cyan / Purple / Emerald, Glassmorphism
|
|
========================================================================== */
|
|
|
|
:root {
|
|
/* Color Palette */
|
|
--bg-main: #070a12;
|
|
--bg-surface: #0f1523;
|
|
--bg-surface-elevated: #161e33;
|
|
--bg-glass: rgba(18, 26, 44, 0.65);
|
|
--bg-glass-strong: rgba(15, 22, 38, 0.85);
|
|
--bg-glass-subtle: rgba(255, 255, 255, 0.04);
|
|
|
|
--border-subtle: rgba(255, 255, 255, 0.08);
|
|
--border-glow: rgba(0, 229, 255, 0.25);
|
|
--border-focus: #00e5ff;
|
|
|
|
--accent-cyan: #00e5ff;
|
|
--accent-purple: #9d4edd;
|
|
--accent-blue: #3a86ff;
|
|
--accent-emerald: #10b981;
|
|
--accent-amber: #f59e0b;
|
|
--accent-rose: #f43f5e;
|
|
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
|
|
--gradient-primary: linear-gradient(135deg, #00e5ff 0%, #7928ca 50%, #ff0080 100%);
|
|
--gradient-accent: linear-gradient(135deg, #00e5ff 0%, #3a86ff 100%);
|
|
--gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
|
|
--gradient-glow: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
|
|
|
|
/* Typography */
|
|
--font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
--font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
|
|
/* Shadows & Elevations */
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
|
|
--shadow-neon-cyan: 0 0 20px rgba(0, 229, 255, 0.35);
|
|
--shadow-neon-purple: 0 0 20px rgba(157, 78, 221, 0.35);
|
|
|
|
/* Dimensions & Radius */
|
|
--radius-sm: 8px;
|
|
--radius-md: 14px;
|
|
--radius-lg: 20px;
|
|
--radius-xl: 28px;
|
|
--radius-pill: 9999px;
|
|
|
|
--transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Base & Reset
|
|
========================================================================== */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
background-color: var(--bg-main);
|
|
color: var(--text-primary);
|
|
font-family: var(--font-body);
|
|
line-height: 1.5;
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
button, input {
|
|
font-family: inherit;
|
|
color: inherit;
|
|
border: none;
|
|
background: none;
|
|
outline: none;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Ambient Background Lighting & Grid
|
|
========================================================================== */
|
|
.ambient-bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.glow-orb {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(90px);
|
|
opacity: 0.4;
|
|
animation: floatOrb 18s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.orb-1 {
|
|
width: 500px;
|
|
height: 500px;
|
|
background: #00e5ff;
|
|
top: -150px;
|
|
left: 15%;
|
|
}
|
|
|
|
.orb-2 {
|
|
width: 600px;
|
|
height: 600px;
|
|
background: #7928ca;
|
|
bottom: -200px;
|
|
right: 10%;
|
|
animation-duration: 24s;
|
|
animation-delay: -6s;
|
|
}
|
|
|
|
.orb-3 {
|
|
width: 400px;
|
|
height: 400px;
|
|
background: #3a86ff;
|
|
top: 40%;
|
|
left: 60%;
|
|
opacity: 0.25;
|
|
animation-duration: 20s;
|
|
animation-delay: -12s;
|
|
}
|
|
|
|
@keyframes floatOrb {
|
|
0% { transform: translate(0, 0) scale(1); }
|
|
50% { transform: translate(40px, 30px) scale(1.1); }
|
|
100% { transform: translate(-30px, 60px) scale(0.95); }
|
|
}
|
|
|
|
.grid-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
|
|
linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
|
|
-webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Root Layout & Navigation
|
|
========================================================================== */
|
|
#app-root {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 28px;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.logo-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.logo-group:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: var(--gradient-accent);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #050811;
|
|
box-shadow: var(--shadow-neon-cyan);
|
|
}
|
|
|
|
.logo-text {
|
|
font-family: var(--font-heading);
|
|
font-weight: 800;
|
|
font-size: 1.35rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.logo-highlight {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--bg-glass-subtle);
|
|
border: 1px solid var(--border-subtle);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.1rem;
|
|
color: var(--text-primary);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: var(--border-glow);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.glass-pill-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--bg-glass-subtle);
|
|
border: 1px solid var(--border-subtle);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.glass-pill-btn:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-color: var(--border-glow);
|
|
box-shadow: var(--shadow-neon-cyan);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Screen Management
|
|
========================================================================== */
|
|
.screen {
|
|
display: none;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 24px 20px 48px;
|
|
animation: fadeInScreen 0.3s ease-out forwards;
|
|
}
|
|
|
|
.screen.active {
|
|
display: flex;
|
|
}
|
|
|
|
@keyframes fadeInScreen {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.screen-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.back-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.back-btn:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--accent-cyan);
|
|
transform: translateX(-2px);
|
|
}
|
|
|
|
.screen-title-group h2 {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.screen-title-group p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
HOME SCREEN
|
|
========================================================================== */
|
|
.hero-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin: 20px auto 0;
|
|
max-width: 800px;
|
|
}
|
|
|
|
.badge-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 14px;
|
|
border-radius: var(--radius-pill);
|
|
background: rgba(0, 229, 255, 0.1);
|
|
border: 1px solid rgba(0, 229, 255, 0.3);
|
|
color: var(--accent-cyan);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.badge-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent-cyan);
|
|
box-shadow: 0 0 8px var(--accent-cyan);
|
|
animation: pulseDot 2s infinite;
|
|
}
|
|
|
|
@keyframes pulseDot {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.4; transform: scale(0.8); }
|
|
}
|
|
|
|
.hero-title {
|
|
font-family: var(--font-heading);
|
|
font-size: clamp(2.4rem, 6vw, 3.8rem);
|
|
font-weight: 800;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.5px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.gradient-text {
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
display: inline-block;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: clamp(1rem, 2vw, 1.15rem);
|
|
max-width: 580px;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
/* Upload Container */
|
|
.upload-container {
|
|
width: 100%;
|
|
max-width: 680px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.upload-dropzone {
|
|
border: 2px dashed rgba(0, 229, 255, 0.35);
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: var(--radius-lg);
|
|
padding: 40px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.upload-dropzone:hover, .upload-dropzone.drag-over {
|
|
border-color: var(--accent-cyan);
|
|
background: rgba(0, 229, 255, 0.05);
|
|
box-shadow: var(--shadow-neon-cyan);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.dropzone-icon {
|
|
width: 54px;
|
|
height: 54px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 229, 255, 0.12);
|
|
color: var(--accent-cyan);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform var(--transition-bounce);
|
|
}
|
|
|
|
.dropzone-icon svg {
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
|
|
.upload-dropzone:hover .dropzone-icon {
|
|
transform: scale(1.15) rotate(-5deg);
|
|
}
|
|
|
|
.dropzone-text {
|
|
font-size: 1.1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.dropzone-text strong {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.dropzone-hint {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.preset-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 1.5px;
|
|
}
|
|
|
|
.preset-divider::before,
|
|
.preset-divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.preset-divider span {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
/* Preset Gallery */
|
|
.preset-gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 14px;
|
|
width: 100%;
|
|
}
|
|
|
|
.preset-thumb-card {
|
|
position: relative;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
border: 2px solid var(--border-subtle);
|
|
background: var(--bg-surface);
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.preset-thumb-card img,
|
|
.preset-thumb-card canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
transition: transform var(--transition-normal);
|
|
}
|
|
|
|
.preset-thumb-card:hover {
|
|
border-color: var(--accent-cyan);
|
|
box-shadow: var(--shadow-neon-cyan);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.preset-thumb-card:hover img,
|
|
.preset-thumb-card:hover canvas {
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.preset-badge {
|
|
position: absolute;
|
|
bottom: 0;
|
|
inset-inline: 0;
|
|
padding: 6px 8px;
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
color: var(--text-primary);
|
|
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
LEVEL SELECT SCREEN
|
|
========================================================================== */
|
|
.level-selection-layout {
|
|
display: grid;
|
|
grid-template-columns: 340px 1fr;
|
|
gap: 32px;
|
|
align-items: start;
|
|
}
|
|
|
|
.image-preview-card {
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.preview-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.text-link-btn {
|
|
color: var(--accent-cyan);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.text-link-btn:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.preview-canvas-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
#preview-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.preview-grid-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
/* Level Cards Grid */
|
|
.level-cards-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.level-card {
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(14px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.level-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
background: var(--card-color, var(--accent-cyan));
|
|
opacity: 0.7;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.level-card:hover {
|
|
border-color: var(--card-color, var(--accent-cyan));
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-glow, rgba(0, 229, 255, 0.2));
|
|
}
|
|
|
|
.level-card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.level-card-top {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.level-title-block h3 {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.level-grid-dim {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.level-badge-tag {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-pill);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--card-color, var(--accent-cyan));
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.level-card-desc {
|
|
font-size: 0.88rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.level-card-stats {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--border-subtle);
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.level-btn-action {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.level-card:hover .level-btn-action {
|
|
background: var(--card-color, var(--accent-cyan));
|
|
color: #050811;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
GAMEPLAY SCREEN & HUD
|
|
========================================================================== */
|
|
#screen-game {
|
|
align-items: center;
|
|
padding-top: 12px;
|
|
max-width: 720px;
|
|
}
|
|
|
|
.game-hud {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 10px 16px;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.hud-left, .hud-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.hud-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.hud-btn:hover {
|
|
border-color: var(--accent-cyan);
|
|
background: rgba(0, 229, 255, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.hud-btn.icon-only {
|
|
padding: 8px 10px;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.hud-btn.active {
|
|
background: rgba(0, 229, 255, 0.2);
|
|
border-color: var(--accent-cyan);
|
|
box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
|
|
}
|
|
|
|
.level-badge {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
padding: 5px 10px;
|
|
border-radius: var(--radius-pill);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--accent-cyan);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hud-center {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.stat-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.65rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.stat-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.timer-box .stat-value {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.moves-box .stat-value {
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
/* Main Puzzle Frame */
|
|
.puzzle-viewport-container {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.puzzle-board-frame {
|
|
position: relative;
|
|
width: min(92vw, 540px);
|
|
height: min(92vw, 540px);
|
|
background: #090e1a;
|
|
border-radius: var(--radius-lg);
|
|
border: 3px solid rgba(255, 255, 255, 0.12);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.15);
|
|
overflow: hidden;
|
|
user-select: none;
|
|
touch-action: none;
|
|
}
|
|
|
|
#pixi-canvas-mount {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#pixi-canvas-mount canvas {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
display: block;
|
|
}
|
|
|
|
/* Ghost Overlay (Hint) */
|
|
.ghost-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-position: center;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
z-index: 10;
|
|
}
|
|
|
|
.ghost-overlay.visible {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
/* Shuffling overlay */
|
|
.shuffle-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(7, 10, 18, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
z-index: 20;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
.shuffle-overlay.active {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.shuffle-spinner {
|
|
width: 44px;
|
|
height: 44px;
|
|
border: 3px solid rgba(0, 229, 255, 0.2);
|
|
border-top-color: var(--accent-cyan);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.game-footer-info {
|
|
margin-top: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tip-text {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
kbd {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-subtle);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
LEADERBOARD SCREEN
|
|
========================================================================== */
|
|
.leaderboard-container {
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.leaderboard-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
padding-bottom: 14px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--bg-glass-subtle);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--text-primary);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--accent-cyan);
|
|
color: #050811;
|
|
border-color: var(--accent-cyan);
|
|
font-weight: 700;
|
|
box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
|
|
}
|
|
|
|
.leaderboard-table-wrapper {
|
|
overflow-x: auto;
|
|
min-height: 280px;
|
|
}
|
|
|
|
.leaderboard-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
}
|
|
|
|
.leaderboard-table th {
|
|
padding: 12px 14px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.leaderboard-table td {
|
|
padding: 14px;
|
|
font-size: 0.9rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.leaderboard-table tr:hover td {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.rank-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.rank-1 { background: #ffd700; color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
|
|
.rank-2 { background: #c0c0c0; color: #000; }
|
|
.rank-3 { background: #cd7f32; color: #000; }
|
|
.rank-other { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
|
|
|
|
.leaderboard-empty {
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px 16px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.leaderboard-empty.visible {
|
|
display: flex;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 12px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.empty-sub {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.leaderboard-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 20px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.danger-link-btn {
|
|
color: var(--accent-rose);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-sm);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.danger-link-btn:hover {
|
|
background: rgba(244, 63, 94, 0.1);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
MODALS & OVERLAYS
|
|
========================================================================== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(5, 8, 15, 0.75);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
z-index: 100;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
opacity: 0;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
.modal-overlay.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal-card {
|
|
width: 100%;
|
|
max-width: 440px;
|
|
background: var(--bg-glass-strong);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-xl);
|
|
padding: 32px 28px;
|
|
text-align: center;
|
|
box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 229, 255, 0.15);
|
|
transform: scale(0.95);
|
|
transition: transform 0.25s var(--transition-bounce);
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.modal-overlay.active .modal-card {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.modal-icon-badge {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 229, 255, 0.12);
|
|
border: 1px solid rgba(0, 229, 255, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
color: var(--accent-cyan);
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
.modal-card h2 {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.7rem;
|
|
font-weight: 800;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.modal-card p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.92rem;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.modal-stats-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.modal-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.m-label {
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.m-val {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.modal-actions-stacked {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 12px 20px;
|
|
border-radius: var(--radius-md);
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
transition: all var(--transition-fast);
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-cyan);
|
|
color: #050811;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #22eeff;
|
|
box-shadow: var(--shadow-neon-cyan);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-glow {
|
|
box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-surface-elevated);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--accent-cyan);
|
|
background: rgba(0, 229, 255, 0.05);
|
|
}
|
|
|
|
.btn-danger-outline {
|
|
background: transparent;
|
|
border: 1px solid rgba(244, 63, 94, 0.3);
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.btn-danger-outline:hover {
|
|
background: rgba(244, 63, 94, 0.15);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
VICTORY MODAL & CONFETTI
|
|
========================================================================== */
|
|
.confetti-canvas {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
}
|
|
|
|
.victory-card {
|
|
max-width: 480px;
|
|
}
|
|
|
|
.crown-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 8px;
|
|
animation: bounceCrown 1.5s infinite;
|
|
}
|
|
|
|
@keyframes bounceCrown {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-8px) rotate(5deg); }
|
|
}
|
|
|
|
.victory-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.v-stat-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.v-stat-card.highlight {
|
|
border-color: var(--accent-cyan);
|
|
background: rgba(0, 229, 255, 0.06);
|
|
}
|
|
|
|
.v-label {
|
|
font-size: 0.68rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.v-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.v-stat-card.highlight .v-value {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.victory-form {
|
|
margin-bottom: 24px;
|
|
text-align: left;
|
|
}
|
|
|
|
.victory-form label {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.input-with-btn {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-with-btn input {
|
|
flex: 1;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 14px;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition-fast);
|
|
}
|
|
|
|
.input-with-btn input:focus {
|
|
border-color: var(--accent-cyan);
|
|
box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
|
|
}
|
|
|
|
.input-with-btn .btn {
|
|
width: auto;
|
|
padding: 10px 18px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.save-feedback {
|
|
font-size: 0.82rem;
|
|
margin-top: 6px;
|
|
min-height: 18px;
|
|
}
|
|
|
|
.save-feedback.success {
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.save-feedback.error {
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.victory-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.victory-actions button:last-child {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Responsive Adaptations
|
|
========================================================================== */
|
|
@media (max-width: 860px) {
|
|
.level-selection-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.image-preview-card {
|
|
max-width: 380px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.preset-gallery {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 580px) {
|
|
.app-header {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2.1rem;
|
|
}
|
|
|
|
.game-hud {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.hud-btn span:not(.btn-icon) {
|
|
display: none;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.victory-actions {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.victory-actions button:last-child {
|
|
grid-column: span 1;
|
|
}
|
|
}
|