453 lines
12 KiB
CSS
453 lines
12 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
|
|
|
|
@font-face {
|
|
font-family: "CozetteCrossedSevenVector";
|
|
src: url("fonts/CozetteCrossedSevenVector.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
:root {
|
|
--bg: #04070d;
|
|
--card: rgba(8, 12, 22, 0.9);
|
|
--border: rgba(111, 151, 172, 0.28);
|
|
--accent: #8af6c9;
|
|
--accent-2: #f5cc80;
|
|
--text: #edf6ff;
|
|
--muted: #89a1b5;
|
|
--bad: #f18f8f;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
font-family: "Fira Code", monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
text-transform: lowercase;
|
|
}
|
|
|
|
.layout,
|
|
.stats-layout {
|
|
width: min(1140px, 94vw);
|
|
margin: 2rem auto;
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.layout {
|
|
grid-template-columns: 1fr;
|
|
background: radial-gradient(circle at center, rgba(12, 40, 34, 0.62) 0%, rgba(3, 7, 13, 0.85) 56%, rgba(2, 5, 10, 0.96) 100%);
|
|
}
|
|
|
|
.panel {
|
|
border: 1px solid var(--border);
|
|
background: var(--card);
|
|
}
|
|
|
|
.levelup-grid {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(rgba(130, 255, 213, 0.07) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(130, 255, 213, 0.07) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
mask-image: radial-gradient(circle at center, black 18%, transparent 82%);
|
|
opacity: 0;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-grid {
|
|
animation: levelup-grid 2200ms linear forwards;
|
|
}
|
|
|
|
.panel-main { padding: 1.2rem; }
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.head-actions { display: flex; gap: 0.5rem; }
|
|
.label { margin: 0; color: var(--accent-2); letter-spacing: 0.14em; }
|
|
|
|
.levelup-shockwave {
|
|
position: absolute;
|
|
width: 20vmin;
|
|
height: 20vmin;
|
|
border-radius: 50%;
|
|
border: 3px solid rgba(245, 204, 128, 0.8);
|
|
box-shadow: 0 0 24px rgba(245, 204, 128, 0.45);
|
|
opacity: 0;
|
|
}
|
|
|
|
.btn {
|
|
border: none;
|
|
font-weight: 700;
|
|
color: #052218;
|
|
background: var(--accent);
|
|
transition: transform 170ms ease, filter 170ms ease;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-shockwave {
|
|
animation: levelup-shockwave 2200ms cubic-bezier(0.16, 0.9, 0.2, 1) forwards;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-particles span {
|
|
animation: levelup-particle 1200ms ease-out forwards;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-particles span:nth-child(odd) { animation-delay: 90ms; }
|
|
.levelup-overlay.active .levelup-particles span:nth-child(even) { animation-delay: 160ms; }
|
|
|
|
.levelup-overlay[data-tier="3"] .levelup-ring,
|
|
.levelup-overlay[data-tier="4"] .levelup-ring {
|
|
border-width: 5px;
|
|
}
|
|
|
|
.levelup-overlay[data-tier="3"] #levelUpText,
|
|
.levelup-overlay[data-tier="4"] #levelUpText {
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.levelup-overlay[data-tier="4"] #levelUpText {
|
|
text-shadow: 0 0 14px rgba(255, 248, 219, 0.96), 0 0 46px rgba(138, 246, 201, 0.68), 0 0 90px rgba(245, 204, 128, 0.3);
|
|
}
|
|
|
|
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
|
|
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(194, 228, 210, 0.2); }
|
|
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
|
|
|
|
.stats-grid,
|
|
.stats-grid-large,
|
|
.history-list,
|
|
.settings-grid {
|
|
display: grid;
|
|
gap: 0.55rem;
|
|
}
|
|
|
|
.stats-grid { margin-top: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.stats-grid-large { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
|
|
.stat-card,
|
|
.perk,
|
|
.history-item,
|
|
.incentive-item {
|
|
border: 1px solid rgba(130, 160, 188, 0.24);
|
|
background: rgba(8, 14, 24, 0.66);
|
|
padding: 0.7rem;
|
|
}
|
|
|
|
.stat-card p,
|
|
.setting-note,
|
|
.perk p,
|
|
.perk-cost,
|
|
.input-wrap span { margin: 0; color: var(--muted); }
|
|
|
|
.stat-card strong { display: inline-block; margin-top: 0.2rem; font-size: 1.3rem; }
|
|
|
|
.code-editor {
|
|
margin-top: 1rem;
|
|
min-height: 260px;
|
|
max-height: 520px;
|
|
border: 1px solid rgba(145, 175, 218, 0.25);
|
|
background: rgba(4, 8, 15, 0.72);
|
|
overflow: auto;
|
|
}
|
|
|
|
.code-pre {
|
|
margin: 0;
|
|
min-height: 140px;
|
|
background: transparent !important;
|
|
padding: 0.95rem;
|
|
}
|
|
|
|
#codeSnippet {
|
|
display: block;
|
|
white-space: pre-wrap;
|
|
text-transform: none;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.word { padding-right: 0.45rem; transition: color 100ms ease; }
|
|
.word.current { color: #d6ff84; }
|
|
.word.correct { color: #a8f7bf; }
|
|
.word.incorrect { color: var(--bad); text-decoration: underline; text-decoration-thickness: 2px; }
|
|
.char-current {
|
|
color: #ffffff;
|
|
font-weight: 800;
|
|
background: rgba(138, 246, 201, 0.22);
|
|
outline: 1px solid rgba(138, 246, 201, 0.75);
|
|
box-shadow: 0 0 0 2px rgba(138, 246, 201, 0.22), 0 0 12px rgba(138, 246, 201, 0.45);
|
|
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
|
|
}
|
|
.char-ok { color: #d6ff84; }
|
|
.char-bad {
|
|
color: #ff4d4d;
|
|
background: rgba(255, 66, 66, 0.28);
|
|
outline: 1px solid rgba(255, 99, 99, 0.92);
|
|
box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 2px;
|
|
text-decoration-color: rgba(255, 138, 138, 0.95);
|
|
}
|
|
|
|
.input-wrap { margin-top: 0.95rem; display: block; }
|
|
#typeInput,
|
|
.settings-grid input,
|
|
.settings-grid select {
|
|
width: 100%;
|
|
border: 1px solid rgba(145, 205, 218, 0.32);
|
|
background: rgba(6, 14, 18, 0.86);
|
|
color: var(--text);
|
|
padding: 0.6rem;
|
|
outline: none;
|
|
}
|
|
|
|
#typeInput:focus,
|
|
.settings-grid input:focus,
|
|
.settings-grid select:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(159, 255, 169, 0.18);
|
|
}
|
|
|
|
.results {
|
|
margin-top: 1rem;
|
|
border: 1px solid rgba(158, 228, 164, 0.32);
|
|
background: rgba(8, 16, 18, 0.62);
|
|
padding: 0.9rem;
|
|
}
|
|
|
|
.xp-dock {
|
|
margin-top: 1rem;
|
|
border: 1px solid rgba(138, 246, 201, 0.35);
|
|
background: rgba(7, 14, 20, 0.92);
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.mt-1 { margin-top: 1rem; }
|
|
.xp-bar { margin-top: 0.5rem; height: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
|
|
#xpFill { height: 100%; width: 0; background: #87f5b0; transition: width 320ms ease; }
|
|
.xp-gain { color: #baf1ff; margin-bottom: 0; }
|
|
|
|
.xp-bar.level-ping {
|
|
animation: xp-bar-ping 420ms ease-out;
|
|
}
|
|
|
|
#xpFill.level-ping {
|
|
animation: xp-fill-ping 420ms ease-out;
|
|
}
|
|
|
|
.perk-buy { border: none; padding: 0.28rem 0.74rem; cursor: pointer; background: #b6f8ba; color: #193027; }
|
|
.perk-buy:disabled { cursor: not-allowed; opacity: 0.44; }
|
|
.status { margin-top: 0.44rem; display: inline-block; padding: 0.18rem 0.54rem; }
|
|
.status.locked { background: rgba(255, 255, 255, 0.12); color: #c0ccc6; }
|
|
.status.unlocked { background: rgba(167, 255, 141, 0.18); color: #b9ffad; }
|
|
.status.active { background: rgba(255, 231, 118, 0.2); color: #ffe58f; }
|
|
|
|
.tab-switch { display: flex; gap: 0.5rem; margin-bottom: 0; }
|
|
.head-tabs { justify-content: flex-end; }
|
|
.tab-btn {
|
|
border: 1px solid rgba(145, 205, 218, 0.32);
|
|
background: rgba(8, 14, 24, 0.66);
|
|
color: var(--text);
|
|
padding: 0.5rem 0.65rem;
|
|
cursor: pointer;
|
|
}
|
|
.tab-btn.active { border-color: var(--accent); color: #c9ffe8; background: rgba(13, 31, 26, 0.85); }
|
|
.side-tab-panel { margin-top: 0.9rem; }
|
|
.side-tab-panel.profile,
|
|
.side-tab-panel .perks {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 20;
|
|
padding: 1rem;
|
|
background: rgba(2, 4, 10, 0.72);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.modal-card {
|
|
width: min(520px, 100%);
|
|
border: 1px solid rgba(145, 175, 218, 0.25);
|
|
background: rgba(7, 11, 20, 0.98);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.levelup-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 60;
|
|
display: grid;
|
|
place-items: center;
|
|
pointer-events: none;
|
|
background: radial-gradient(circle at center, rgba(21, 52, 46, 0.4) 0%, rgba(3, 7, 13, 0.78) 58%, rgba(2, 5, 10, 0.92) 100%);
|
|
opacity: 0;
|
|
}
|
|
|
|
.levelup-overlay.active {
|
|
animation: levelup-fade 1900ms ease forwards;
|
|
}
|
|
|
|
.levelup-glow {
|
|
position: absolute;
|
|
width: 42vmin;
|
|
height: 42vmin;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(138, 246, 201, 0.88) 0%, rgba(138, 246, 201, 0.28) 38%, rgba(138, 246, 201, 0.04) 70%, transparent 100%);
|
|
filter: blur(3px);
|
|
transform: scale(0.58);
|
|
}
|
|
|
|
.levelup-ring {
|
|
position: absolute;
|
|
width: 56vmin;
|
|
height: 56vmin;
|
|
border-radius: 50%;
|
|
border: 4px solid rgba(245, 204, 128, 0.8);
|
|
box-shadow: 0 0 36px rgba(245, 204, 128, 0.5), inset 0 0 24px rgba(245, 204, 128, 0.35);
|
|
transform: scale(0.6) rotate(0deg);
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-glow {
|
|
animation: levelup-glow 1900ms ease forwards;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-ring {
|
|
animation: levelup-ring 1900ms cubic-bezier(0.2, 0.84, 0.2, 1) forwards;
|
|
}
|
|
|
|
.levelup-core {
|
|
position: relative;
|
|
text-align: center;
|
|
transform: translateY(12px) scale(0.9);
|
|
opacity: 0;
|
|
}
|
|
|
|
.levelup-overlay.active .levelup-core {
|
|
animation: levelup-text 1900ms ease forwards;
|
|
}
|
|
|
|
.levelup-kicker {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
letter-spacing: 0.24em;
|
|
color: #b8ffe2;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#levelUpText {
|
|
margin: 0.28rem 0 0;
|
|
font-size: clamp(2.6rem, 9vw, 7rem);
|
|
letter-spacing: 0.1em;
|
|
color: #fff8db;
|
|
text-transform: uppercase;
|
|
text-shadow: 0 0 12px rgba(255, 248, 219, 0.9), 0 0 34px rgba(138, 246, 201, 0.56);
|
|
}
|
|
|
|
.levelup-particles {
|
|
position: absolute;
|
|
width: 80vmin;
|
|
height: 80vmin;
|
|
}
|
|
|
|
.levelup-particles span {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 4px;
|
|
height: 18vmin;
|
|
transform-origin: center 0;
|
|
background: linear-gradient(to bottom, rgba(245, 204, 128, 0.95), rgba(138, 246, 201, 0.58), transparent);
|
|
opacity: 0;
|
|
}
|
|
|
|
.levelup-particles span:nth-child(1) { transform: rotate(12deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(2) { transform: rotate(56deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(3) { transform: rotate(102deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(4) { transform: rotate(145deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(5) { transform: rotate(196deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(6) { transform: rotate(242deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(7) { transform: rotate(286deg) translate(-50%, -96%); }
|
|
.levelup-particles span:nth-child(8) { transform: rotate(332deg) translate(-50%, -96%); }
|
|
|
|
@keyframes levelup-fade {
|
|
0% { opacity: 0; }
|
|
6% { opacity: 1; }
|
|
90% { opacity: 1; }
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@keyframes levelup-grid {
|
|
0% { opacity: 0; transform: perspective(800px) rotateX(78deg) translateY(28%); }
|
|
16% { opacity: 0.44; }
|
|
72% { opacity: 0.22; }
|
|
100% { opacity: 0; transform: perspective(800px) rotateX(78deg) translateY(12%); }
|
|
}
|
|
|
|
@keyframes levelup-glow {
|
|
0% { transform: scale(0.42); opacity: 0; }
|
|
18% { transform: scale(1); opacity: 1; }
|
|
78% { transform: scale(1.28); opacity: 0.86; }
|
|
100% { transform: scale(1.36); opacity: 0; }
|
|
}
|
|
|
|
@keyframes levelup-shockwave {
|
|
0% { transform: scale(0.18); opacity: 0; }
|
|
16% { transform: scale(1); opacity: 1; }
|
|
84% { transform: scale(2.5); opacity: 0.18; }
|
|
100% { transform: scale(2.8); opacity: 0; }
|
|
}
|
|
|
|
@keyframes levelup-ring {
|
|
0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
|
|
15% { transform: scale(0.92) rotate(86deg); opacity: 1; }
|
|
82% { transform: scale(1.14) rotate(224deg); opacity: 0.88; }
|
|
100% { transform: scale(1.22) rotate(280deg); opacity: 0; }
|
|
}
|
|
|
|
@keyframes levelup-particle {
|
|
0% { opacity: 0; filter: blur(1px); }
|
|
16% { opacity: 1; filter: blur(0); }
|
|
100% { opacity: 0; transform: translate(-50%, -160%) scaleY(0.32); }
|
|
}
|
|
|
|
@keyframes levelup-text {
|
|
0% { transform: translateY(28px) scale(0.78); opacity: 0; letter-spacing: 0.24em; }
|
|
20% { transform: translateY(0) scale(1.08); opacity: 1; letter-spacing: 0.08em; }
|
|
72% { transform: translateY(0) scale(1); opacity: 1; }
|
|
100% { transform: translateY(-10px) scale(0.94); opacity: 0; }
|
|
}
|
|
|
|
@keyframes xp-bar-ping {
|
|
0% { box-shadow: 0 0 0 rgba(138, 246, 201, 0); transform: scaleY(1); }
|
|
38% { box-shadow: 0 0 0 2px rgba(138, 246, 201, 0.55), 0 0 20px rgba(138, 246, 201, 0.45); transform: scaleY(1.06); }
|
|
100% { box-shadow: 0 0 0 rgba(138, 246, 201, 0); transform: scaleY(1); }
|
|
}
|
|
|
|
@keyframes xp-fill-ping {
|
|
0% { filter: brightness(1) saturate(1); }
|
|
42% { filter: brightness(1.7) saturate(1.28); }
|
|
100% { filter: brightness(1) saturate(1); }
|
|
}
|
|
|
|
[hidden] { display: none !important; }
|
|
.history-list { margin: 0; padding: 0; list-style: none; }
|
|
|
|
@media (max-width: 980px) {
|
|
.layout { grid-template-columns: 1fr; }
|
|
.stats-grid,
|
|
.stats-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
|
|
} |