- Rendering von SVG-viewBox auf sauberes DOM-Modell (div#world > img) umgestellt:
behebt den Pinch-Fokus-Bug ("zoomt in die Ecke") auf Touch
- Szene fuellt jetzt bildschirmfuellend (Cover) mit eigener Cover-Klemmung statt
Letterbox-Balken (v.a. mobil im Hochformat)
- Tippen ueber Pointer-Events statt click (funktioniert auf Touch, wo panzoom das
synthetische click unterdrueckt); Mehrfinger/Pinch zaehlt nie als Tipp
- touch-action:none aufs Bild -> fluessiges Pinch-Zoom
- Objekte aufrecht (leichte Neigung) statt zufaellig gekippt + dezenter Tiefen-Verlauf
-> wirkt wie eine Szene statt "Haufen"
- Favicon: Fuss-Emoji
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
280 lines
6.1 KiB
CSS
280 lines
6.1 KiB
CSS
/* fuesse.sexy — verspielter, klarer Look im Dark Mode. Vollflaechig, kein Scrollen. */
|
|
|
|
:root {
|
|
--pink: #ff4d8d;
|
|
--pink-soft: #ff86b3;
|
|
--ink: #ececf5;
|
|
--muted: #a49fc0;
|
|
--bg: #0e0e18; /* Seite / Letterbox */
|
|
--panel: #1b1b2c; /* Leiste, Buttons */
|
|
--card: #262640; /* Legenden-Karten */
|
|
--border: #34345020;
|
|
--border-solid: #3a3a58;
|
|
--ok: #34d399;
|
|
--miss: #f87171;
|
|
}
|
|
|
|
* { 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;
|
|
}
|
|
|
|
#game {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
/* ---- Gesucht-Leiste ---- */
|
|
#legend {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 8px 14px;
|
|
background: var(--panel);
|
|
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
|
|
border-bottom: 1px solid var(--border-solid);
|
|
z-index: 5;
|
|
}
|
|
|
|
.legend-label { display: flex; flex-direction: column; line-height: 1.1; }
|
|
.brand {
|
|
font-weight: 800;
|
|
font-size: 20px;
|
|
color: var(--pink);
|
|
letter-spacing: -0.5px;
|
|
}
|
|
.brand-dot { color: var(--pink-soft); }
|
|
.legend-sub { font-size: 12px; color: var(--muted); }
|
|
|
|
#legend-items {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.legend-item {
|
|
flex: 0 0 auto;
|
|
width: 58px;
|
|
height: 58px;
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
border: 3px solid var(--border-solid);
|
|
display: grid;
|
|
place-items: center;
|
|
position: relative;
|
|
transition: transform 0.15s ease, opacity 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
.legend-thumb { width: 44px; height: 44px; display: grid; place-items: center; }
|
|
.legend-thumb img { max-width: 100%; max-height: 100%; }
|
|
.legend-emoji { font-size: 34px; line-height: 1; }
|
|
|
|
.legend-item.found {
|
|
border-color: var(--ok);
|
|
opacity: 0.5;
|
|
}
|
|
.legend-item.found::after {
|
|
content: "✓";
|
|
position: absolute;
|
|
right: -6px;
|
|
top: -8px;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: var(--ok);
|
|
color: #0e0e18;
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
display: grid;
|
|
place-items: center;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.legend-counter {
|
|
flex: 0 0 auto;
|
|
font-weight: 800;
|
|
font-size: 18px;
|
|
color: var(--pink-soft);
|
|
background: var(--card);
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
/* ---- Buehne / Karte ---- */
|
|
#stage {
|
|
position: relative;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
background: var(--bg);
|
|
touch-action: none; /* eigene Pinch/Pan-Gesten */
|
|
}
|
|
|
|
#stage {
|
|
cursor: grab;
|
|
-webkit-touch-callout: none; /* kein Langdruck-Menü auf iOS */
|
|
}
|
|
#stage:active { cursor: grabbing; }
|
|
|
|
#world {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transform-origin: 0 0;
|
|
will-change: transform;
|
|
}
|
|
#scene-img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
-webkit-user-drag: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.category-name {
|
|
position: absolute;
|
|
left: 12px;
|
|
bottom: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
background: rgba(0, 0, 0, 0.45);
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ---- Zoom-Steuerung ---- */
|
|
#controls {
|
|
position: absolute;
|
|
right: 14px;
|
|
bottom: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
z-index: 4;
|
|
}
|
|
#controls button {
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-solid);
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
#controls button:hover { color: var(--pink-soft); border-color: var(--pink); }
|
|
#controls button:active { transform: translateY(1px); }
|
|
|
|
/* ---- Ping-Feedback (Treffer/Daneben) ---- */
|
|
.ping {
|
|
position: absolute;
|
|
width: 46px;
|
|
height: 46px;
|
|
margin: -23px 0 0 -23px; /* auf (left/top) zentrieren */
|
|
border-radius: 50%;
|
|
border: 6px solid var(--ok);
|
|
pointer-events: none;
|
|
animation: ping 0.6s ease-out forwards;
|
|
}
|
|
.ping-ok { border-color: var(--ok); }
|
|
.ping-miss { border-color: var(--miss); }
|
|
@keyframes ping {
|
|
0% { transform: scale(0.3); opacity: 0.95; }
|
|
100% { transform: scale(2.3); opacity: 0; }
|
|
}
|
|
|
|
/* ---- Toast ---- */
|
|
#toast {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 78px;
|
|
transform: translateX(-50%) translateY(10px);
|
|
background: rgba(0, 0, 0, 0.85);
|
|
color: #fff;
|
|
padding: 8px 16px;
|
|
border-radius: 999px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border-solid);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
}
|
|
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
|
|
/* ---- Lade-Spinner ---- */
|
|
#loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(14, 14, 24, 0.8);
|
|
z-index: 6;
|
|
}
|
|
.spinner {
|
|
width: 46px;
|
|
height: 46px;
|
|
border: 5px solid var(--border-solid);
|
|
border-top-color: var(--pink);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* ---- Gewinn-Overlay ---- */
|
|
#win-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 10;
|
|
}
|
|
.win-card {
|
|
background: var(--panel);
|
|
padding: 32px 40px;
|
|
border-radius: 24px;
|
|
text-align: center;
|
|
border: 1px solid var(--border-solid);
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
|
|
animation: pop 0.3s ease;
|
|
}
|
|
.win-emoji { font-size: 52px; }
|
|
.win-card h2 { margin: 10px 0 20px; color: var(--pink-soft); }
|
|
#next-scene {
|
|
border: none;
|
|
background: var(--pink);
|
|
color: #fff;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
padding: 12px 28px;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
box-shadow: 0 6px 18px rgba(255, 77, 141, 0.45);
|
|
}
|
|
#next-scene:hover { background: var(--pink-soft); }
|
|
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
/* Mobile */
|
|
@media (max-width: 560px) {
|
|
.brand { font-size: 16px; }
|
|
.legend-item { width: 50px; height: 50px; }
|
|
.legend-thumb { width: 38px; height: 38px; }
|
|
}
|