470 lines
11 KiB
CSS
470 lines
11 KiB
CSS
:root {
|
|
--bg: #050816;
|
|
--bg-elevated: #091022;
|
|
--surface: rgba(8, 14, 28, 0.84);
|
|
--surface-strong: rgba(11, 20, 40, 0.96);
|
|
--surface-soft: rgba(7, 12, 22, 0.92);
|
|
--border: rgba(72, 231, 255, 0.18);
|
|
--border-strong: rgba(72, 231, 255, 0.42);
|
|
--text: #ecfdff;
|
|
--muted: #9bb6c8;
|
|
--accent: #48e7ff;
|
|
--accent-strong: #00ffc6;
|
|
--accent-secondary: #ff4fd8;
|
|
--accent-dark: #03131c;
|
|
--radius-sm: 10px;
|
|
--radius-md: 16px;
|
|
--radius-lg: 24px;
|
|
--shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(circle at 18% 18%, rgba(72, 231, 255, 0.18), transparent 24%),
|
|
radial-gradient(circle at 82% 14%, rgba(255, 79, 216, 0.16), transparent 24%),
|
|
radial-gradient(circle at 50% 100%, rgba(0, 255, 198, 0.12), transparent 28%),
|
|
linear-gradient(180deg, #08101f 0%, #040814 54%, #02050d 100%);
|
|
color: var(--text);
|
|
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background:
|
|
linear-gradient(rgba(72, 231, 255, 0.06) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(72, 231, 255, 0.06) 1px, transparent 1px);
|
|
background-size: 42px 42px;
|
|
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
|
|
opacity: 0.28;
|
|
}
|
|
|
|
canvas {
|
|
image-rendering: pixelated;
|
|
image-rendering: crisp-edges;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.surface-panel {
|
|
position: relative;
|
|
background: linear-gradient(180deg, rgba(11, 20, 40, 0.88), rgba(6, 12, 24, 0.9));
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow:
|
|
var(--shadow),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.04),
|
|
0 0 0 1px rgba(72, 231, 255, 0.04),
|
|
0 0 28px rgba(72, 231, 255, 0.08);
|
|
backdrop-filter: blur(16px);
|
|
}
|
|
|
|
.surface-panel::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
background: linear-gradient(135deg, rgba(72, 231, 255, 0.08), transparent 35%, rgba(255, 79, 216, 0.08));
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.surface-panel > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.app-topbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.eyebrow,
|
|
.section-label,
|
|
.brand-subtitle {
|
|
margin: 0;
|
|
color: var(--accent);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.24em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.app-title,
|
|
.display-title,
|
|
.brand-title {
|
|
font-size: clamp(1.8rem, 3.5vw, 2.5rem);
|
|
font-weight: 800;
|
|
letter-spacing: -0.04em;
|
|
text-shadow: 0 0 18px rgba(72, 231, 255, 0.16);
|
|
}
|
|
|
|
.topbar-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.board-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.board-frame {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: min(100%, 356px);
|
|
border-radius: calc(var(--radius-lg) - 4px);
|
|
border: 1px solid rgba(72, 231, 255, 0.28);
|
|
background: linear-gradient(180deg, rgba(5, 10, 20, 0.98) 0%, rgba(2, 5, 12, 1) 100%);
|
|
padding: 1rem;
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.03),
|
|
inset 0 0 28px rgba(72, 231, 255, 0.08),
|
|
0 0 34px rgba(72, 231, 255, 0.16),
|
|
0 0 60px rgba(255, 79, 216, 0.08);
|
|
}
|
|
|
|
.board-frame::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -20%;
|
|
background:
|
|
radial-gradient(circle at 20% 20%, rgba(72, 231, 255, 0.24), transparent 26%),
|
|
radial-gradient(circle at 80% 10%, rgba(255, 79, 216, 0.22), transparent 24%),
|
|
radial-gradient(circle at 50% 100%, rgba(0, 255, 198, 0.12), transparent 32%);
|
|
filter: blur(26px);
|
|
opacity: 0.95;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#tetris-board {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
background: #040914;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(72, 231, 255, 0.16);
|
|
box-shadow:
|
|
inset 0 0 30px rgba(72, 231, 255, 0.08),
|
|
inset 0 0 80px rgba(255, 79, 216, 0.04),
|
|
0 0 16px rgba(72, 231, 255, 0.08);
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 0.85rem;
|
|
}
|
|
|
|
.stat-card,
|
|
.mini-panel,
|
|
.metric-card,
|
|
.surface-subpanel {
|
|
background: linear-gradient(180deg, rgba(72, 231, 255, 0.08), rgba(255, 79, 216, 0.05));
|
|
border: 1px solid rgba(72, 231, 255, 0.16);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.95rem;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(72, 231, 255, 0.06);
|
|
}
|
|
|
|
.stat-label,
|
|
.mini-label,
|
|
.status-line,
|
|
.metric-label,
|
|
.small-link,
|
|
.text-secondary,
|
|
.detail-list {
|
|
color: var(--muted) !important;
|
|
}
|
|
|
|
.stat-label,
|
|
.mini-label,
|
|
.status-line,
|
|
.metric-label {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.stat-value,
|
|
.metric-value,
|
|
.score-rank-pill {
|
|
display: block;
|
|
margin-top: 0.45rem;
|
|
font-size: clamp(1.35rem, 2vw, 1.8rem);
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
color: var(--text);
|
|
text-shadow: 0 0 14px rgba(72, 231, 255, 0.18);
|
|
}
|
|
|
|
.mini-panel canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
margin-top: 0.75rem;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(72, 231, 255, 0.16);
|
|
background: #040914;
|
|
box-shadow: inset 0 0 24px rgba(72, 231, 255, 0.05);
|
|
}
|
|
|
|
.panel-title,
|
|
.h5,
|
|
.h2 {
|
|
color: var(--text);
|
|
}
|
|
|
|
.stack-gap > * + * {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.stack-gap-sm > * + * {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.form-control-dark {
|
|
background: rgba(7, 16, 30, 0.92);
|
|
color: var(--text);
|
|
border: 1px solid rgba(72, 231, 255, 0.2);
|
|
border-radius: 12px;
|
|
min-height: 46px;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.form-control-dark::placeholder {
|
|
color: #6e90a7;
|
|
}
|
|
|
|
.form-control-dark:focus {
|
|
background: rgba(9, 20, 38, 0.98);
|
|
color: var(--text);
|
|
border-color: rgba(72, 231, 255, 0.52);
|
|
box-shadow: 0 0 0 0.2rem rgba(72, 231, 255, 0.12);
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 12px;
|
|
font-weight: 700;
|
|
min-height: 46px;
|
|
padding-inline: 1rem;
|
|
transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
|
|
}
|
|
|
|
.btn:hover,
|
|
.btn:focus-visible,
|
|
.control-btn:hover,
|
|
.control-btn:focus-visible,
|
|
.leaderboard-item:hover,
|
|
.small-link:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-light {
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
color: var(--accent-dark);
|
|
border: 0;
|
|
box-shadow: 0 0 18px rgba(72, 231, 255, 0.28);
|
|
}
|
|
|
|
.btn-light:hover,
|
|
.btn-light:focus-visible {
|
|
background: linear-gradient(135deg, #6cf0ff, #34ffd0);
|
|
color: var(--accent-dark);
|
|
box-shadow: 0 0 24px rgba(72, 231, 255, 0.36);
|
|
}
|
|
|
|
.btn-outline-light {
|
|
color: var(--text);
|
|
border-color: rgba(255, 79, 216, 0.35);
|
|
background: rgba(255, 79, 216, 0.08);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.05);
|
|
}
|
|
|
|
.btn-outline-light:hover,
|
|
.btn-outline-light:focus-visible {
|
|
color: var(--text);
|
|
border-color: rgba(255, 79, 216, 0.52);
|
|
background: rgba(255, 79, 216, 0.16);
|
|
box-shadow: 0 0 22px rgba(255, 79, 216, 0.2);
|
|
}
|
|
|
|
.mobile-controls {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.control-btn {
|
|
border: 1px solid rgba(72, 231, 255, 0.2);
|
|
background: linear-gradient(180deg, rgba(10, 20, 36, 0.95), rgba(6, 12, 22, 0.98));
|
|
color: var(--text);
|
|
border-radius: 14px;
|
|
min-height: 52px;
|
|
font-weight: 800;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 18px rgba(72, 231, 255, 0.08);
|
|
transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.control-btn:hover,
|
|
.control-btn:focus-visible {
|
|
background: linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(8, 16, 28, 0.98));
|
|
border-color: rgba(72, 231, 255, 0.44);
|
|
box-shadow: 0 0 22px rgba(72, 231, 255, 0.16);
|
|
}
|
|
|
|
.control-btn.wide {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.leaderboard-list {
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.leaderboard-item {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.8rem 0.9rem;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(72, 231, 255, 0.14);
|
|
background: linear-gradient(180deg, rgba(11, 19, 34, 0.9), rgba(8, 14, 26, 0.92));
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.leaderboard-item:hover,
|
|
.leaderboard-item.is-active {
|
|
border-color: rgba(72, 231, 255, 0.36);
|
|
box-shadow: 0 0 22px rgba(72, 231, 255, 0.12), inset 0 0 0 1px rgba(255, 79, 216, 0.12);
|
|
}
|
|
|
|
.leaderboard-rank {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.leaderboard-player {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.leaderboard-meta {
|
|
color: var(--muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.status-line {
|
|
min-height: 1.2rem;
|
|
}
|
|
|
|
.app-header {
|
|
background: rgba(4, 8, 18, 0.78);
|
|
backdrop-filter: blur(12px);
|
|
border-color: rgba(72, 231, 255, 0.14) !important;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(72, 231, 255, 0.28);
|
|
background: linear-gradient(135deg, rgba(72, 231, 255, 0.18), rgba(255, 79, 216, 0.14));
|
|
color: var(--text);
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
box-shadow: 0 0 18px rgba(72, 231, 255, 0.14);
|
|
}
|
|
|
|
.score-rank-pill {
|
|
padding: 0.85rem 1rem;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(72, 231, 255, 0.24);
|
|
background: linear-gradient(135deg, rgba(72, 231, 255, 0.12), rgba(255, 79, 216, 0.12));
|
|
box-shadow: 0 0 20px rgba(72, 231, 255, 0.1);
|
|
}
|
|
|
|
.metric-value {
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.detail-list {
|
|
padding-left: 1.1rem;
|
|
}
|
|
|
|
.detail-list li + li {
|
|
margin-top: 0.65rem;
|
|
}
|
|
|
|
.small-link {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.compact-list .leaderboard-item {
|
|
padding-block: 0.72rem;
|
|
}
|
|
|
|
.alert.surface-panel {
|
|
color: var(--text);
|
|
}
|
|
|
|
@media (max-width: 991.98px) {
|
|
.app-topbar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.topbar-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.topbar-actions .btn {
|
|
flex: 1 1 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 575.98px) {
|
|
.board-frame {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.mobile-controls {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.control-btn.wide {
|
|
grid-column: span 1;
|
|
}
|
|
}
|