Files
fuesse-sexy/public/css/style.css
Guido ecdbd2ee0d Treffer-Toleranz, 2 Ranglisten, Anti-Cheat, CLI-Modi & Icons
- Treffer-Toleranz: Ziel wird geometrisch + bevorzugt getroffen, auch wenn verdeckt
- Zwei Ranglisten: Hall of Fame (Allzeit-Top-5) + Heute (Top-10)
- Anti-Cheat: server-autoritative Sessions (start/hit), Score = Server-Zahl,
  Mindestabstand gegen Auto-Klicker, Deckelung nach Spielzeit; Score ohne Session -> 400
- CLI (server/admin.js): list / delete <name> / clear-today / clear-all
- Zwei Betriebsmodi per CLI (live, ohne Neustart): public (/ = Spiel) und
  private (/ gesperrt, Spiel unter geheimem /pfad) + "not allowed to play"-Seite
- Board-Icons von Emojis auf echte SVG-Icons, Board heisst "Hall of Fame"

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-05 11:23:30 +02:00

149 lines
7.6 KiB
CSS

/* fuesse.sexy — "Wanted!" · Dark Mode, vollflaechig, kein Scrollen */
:root {
--pink: #ff4d8d;
--pink-soft: #ff86b3;
--ink: #ececf5;
--muted: #a49fc0;
--bg: #0e0e18;
--panel: #1b1b2c;
--card: #262640;
--border: #3a3a58;
--ok: #34d399;
--miss: #f87171;
--gold: #ffcf3f;
}
* { box-sizing: border-box; }
html, body {
margin: 0; height: 100%; overflow: hidden;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
color: var(--ink); background: var(--bg);
-webkit-user-select: none; user-select: none;
}
#app, #home, #game { height: 100%; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
.big-btn {
border: none; background: var(--pink); color: #fff; font-weight: 800;
font-size: 20px; padding: 14px 30px; border-radius: 999px;
box-shadow: 0 8px 22px rgba(255, 77, 141, 0.45);
}
.big-btn:hover { background: var(--pink-soft); }
.big-btn:active { transform: translateY(1px); }
.big-btn.small { font-size: 16px; padding: 10px 18px; }
.link-btn { background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 14px; }
.link-btn:hover { color: var(--pink-soft); }
/* ===== Startseite ===== */
#home { display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.home-inner { width: 100%; max-width: 560px; margin: auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.blocked-card { width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px 24px; text-align: center; }
.blocked-emoji { font-size: 52px; }
.blocked-card h2 { margin: 10px 0 8px; color: var(--pink-soft); }
.blocked-card p { margin: 0; color: var(--muted); }
.boards { width: 100%; display: flex; gap: 12px; align-items: flex-start; }
.boards .board { flex: 1; min-width: 0; }
@media (max-width: 440px) { .boards { flex-direction: column; } }
.brand { font-size: 42px; font-weight: 900; letter-spacing: -1px; color: var(--pink); margin: 6px 0 0; }
.brand-dot { color: var(--pink-soft); }
.tagline { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.4; }
.board { width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.board.tight { padding: 10px 14px; }
.board h2 { margin: 2px 0 10px; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--pink-soft); }
.leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.leaderboard li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--card); font-size: 15px; min-width: 0; }
.leaderboard li.top3 { background: #2f2a1a; }
.leaderboard li.top3 .lb-rank { color: var(--gold); }
.lb-rank { width: 26px; font-weight: 800; color: var(--muted); text-align: right; }
.lb-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 800; color: var(--pink-soft); }
.lb-empty { justify-content: center; color: var(--muted); font-size: 14px; }
/* ===== Spiel ===== */
#game { display: flex; flex-direction: column; }
#hud {
display: flex; align-items: center; gap: 14px; padding: 10px 14px;
background: var(--panel); border-bottom: 1px solid var(--border); z-index: 5;
}
/* Fahndungsplakat */
.wanted-poster {
flex: 0 0 auto; width: 150px; text-align: center;
background: #efe2c4; color: #3a2c17; border-radius: 10px; padding: 8px 8px 6px;
border: 3px solid #b79a63; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
transform: rotate(-2deg);
}
.wanted-title { font-weight: 900; letter-spacing: 3px; font-size: 20px; font-family: "Georgia", "Times New Roman", serif; }
.wanted-foot { background: #fbf4e2; border: 2px solid #c9b483; border-radius: 8px; margin: 4px 0; height: 92px; display: grid; place-items: center; }
.wanted-foot img { width: 78px; height: 78px; }
.wanted-reward { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
#hud-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.score-box { font-size: 20px; font-weight: 800; color: var(--ink); }
.score-box #score { color: var(--pink-soft); }
.score-box.bump { animation: bump 0.28s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: var(--ok); } 100% { transform: scale(1); } }
#timer-wrap { width: 100%; height: 9px; background: #12121e; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
#timer-bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), #7be0b0); border-radius: 999px; transition: width 0.1s linear; }
#timer-bar.low { background: linear-gradient(90deg, var(--miss), #ffb0b0); }
/* Spielfeld */
#field {
position: relative; flex: 1; overflow: hidden;
background: radial-gradient(circle at 50% 40%, #1a1a2e, #0e0e18);
touch-action: none;
}
.item {
position: absolute; top: 0; left: 0; will-change: transform;
cursor: pointer; -webkit-user-drag: none; user-select: none;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.item.shake { animation: shake 0.3s ease; }
@keyframes shake { 0%,100% { } 25% { filter: drop-shadow(0 0 6px var(--miss)); } 50% { } 75% { filter: drop-shadow(0 0 6px var(--miss)); } }
#field.flash-ok { animation: flashOk 0.25s ease; }
#field.flash-miss { animation: flashMiss 0.25s ease; }
@keyframes flashOk { 0% { box-shadow: inset 0 0 0 rgba(52,211,153,0); } 40% { box-shadow: inset 0 0 120px rgba(52,211,153,0.35); } 100% { box-shadow: inset 0 0 0 rgba(52,211,153,0); } }
@keyframes flashMiss { 0% { box-shadow: inset 0 0 0 rgba(248,113,113,0); } 40% { box-shadow: inset 0 0 120px rgba(248,113,113,0.4); } 100% { box-shadow: inset 0 0 0 rgba(248,113,113,0); } }
#feedback {
position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(10px);
background: rgba(0,0,0,0.85); color: #fff; padding: 8px 18px; border-radius: 999px;
font-weight: 700; border: 1px solid var(--miss); opacity: 0; pointer-events: none;
transition: opacity 0.15s, transform 0.15s;
}
#feedback.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ===== Game Over ===== */
#gameover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.7); z-index: 10; padding: 16px; overflow-y: auto; }
.go-card {
width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--border);
border-radius: 22px; padding: 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
display: flex; flex-direction: column; gap: 14px; animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.go-emoji { font-size: 44px; }
.go-card h2 { margin: 0; color: var(--pink-soft); }
.go-score { margin: 0; font-size: 22px; font-weight: 800; }
.go-score span { color: var(--gold); }
#name-ask { display: flex; flex-direction: column; gap: 8px; }
#name-ask label { font-size: 14px; color: var(--muted); }
.name-row { display: flex; gap: 8px; }
#name-input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-size: 16px; }
#name-input:focus { outline: 2px solid var(--pink); }
.go-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
/* ===== Mobile ===== */
@media (max-width: 560px) {
.brand { font-size: 34px; }
.wanted-poster { width: 120px; }
.wanted-title { font-size: 17px; }
.wanted-foot { height: 68px; } .wanted-foot img { width: 58px; height: 58px; }
.score-box { font-size: 18px; }
}