196 lines
4.7 KiB
CSS
196 lines
4.7 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: 1.6fr 1fr;
|
|
}
|
|
|
|
.panel {
|
|
border: 1px solid var(--border);
|
|
background: var(--card);
|
|
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.panel-main { padding: 1.2rem; }
|
|
.panel-side { padding: 1rem; }
|
|
|
|
.game-head,
|
|
.stats-header,
|
|
.modal-head,
|
|
.level-line,
|
|
.perk-actions,
|
|
.modal-actions {
|
|
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; }
|
|
h1, h2 { margin: 0; }
|
|
|
|
.btn {
|
|
border: none;
|
|
padding: 0.58rem 1.1rem;
|
|
font-weight: 700;
|
|
color: #052218;
|
|
background: var(--accent);
|
|
cursor: pointer;
|
|
transition: transform 170ms ease, filter 170ms ease;
|
|
}
|
|
|
|
.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); }
|
|
.btn-ghost:hover { filter: brightness(1.12); }
|
|
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
|
|
|
|
.stats-grid,
|
|
.stats-grid-large,
|
|
.perks,
|
|
.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 {
|
|
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; }
|
|
|
|
.text-shell {
|
|
margin-top: 1rem;
|
|
min-height: 170px;
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
border: 1px solid rgba(145, 175, 218, 0.25);
|
|
background: rgba(4, 8, 15, 0.72);
|
|
padding: 0.95rem;
|
|
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; }
|
|
|
|
.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;
|
|
}
|
|
|
|
.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; }
|
|
|
|
.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; }
|
|
|
|
.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;
|
|
}
|
|
|
|
[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; }
|
|
}
|