dok/public/css/events.css
2026-04-06 13:32:28 +01:00

280 lines
5.4 KiB
CSS

/* ================================
Events Grid
================================ */
.events-grid {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: nowrap;
padding: 10px 4px;
}
.event-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
flex: 1;
min-width: 0;
}
.event-card-img-wrap {
width: 100%;
aspect-ratio: 1 / 1;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 6px;
box-sizing: border-box;
}
.event-card-img-wrap img {
width: 100%;
height: 100%;
object-fit: contain;
image-rendering: pixelated;
}
.event-card-label {
font-size: 14px;
color: #000000;
text-align: center;
line-height: 1.3;
word-break: break-word;
}
/* ================================
Detail-Popup (Overlay)
================================ */
#event-detail-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
z-index: 9999;
align-items: center;
justify-content: center;
}
#event-detail-overlay.active {
display: flex;
}
#event-detail-popup {
background: #1e1a14 !important;
border: 1px solid rgba(255, 200, 80, 0.3) !important;
border-radius: 6px !important;
padding: 12px !important;
width: 210px !important;
min-width: unset !important;
max-width: unset !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
position: relative !important;
transform: none !important;
animation: eventDetailIn 0.18s ease forwards !important;
}
@keyframes eventDetailIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
#event-detail-popup .edp-close {
position: absolute;
top: 6px;
right: 8px;
background: none;
border: none;
color: #888;
font-size: 11px;
cursor: pointer;
line-height: 1;
transition: color 0.1s;
}
#event-detail-popup .edp-close:hover { color: #fff; }
#event-detail-popup .edp-img {
display: block;
margin: 0 auto 8px;
width: 44px;
height: 44px;
object-fit: contain;
image-rendering: pixelated;
}
#event-detail-popup .edp-title {
text-align: center;
font-size: 11px;
font-weight: bold;
color: #f5c842;
margin-bottom: 6px;
}
#event-detail-popup .edp-body {
font-size: 10px;
color: #cccccc;
line-height: 1.6;
text-align: center;
}
/* ================================
Booster UI
================================ */
.booster-ui {
flex-direction: column;
gap: 16px;
padding: 10px 0;
width: 100%;
}
.booster-back-btn {
align-self: flex-start;
background: none;
border: 1px solid rgba(255, 200, 80, 0.3);
color: #c8960c;
font-size: 12px;
padding: 4px 12px;
border-radius: 4px;
cursor: pointer;
font-family: "Cinzel", serif;
transition: background 0.15s, color 0.15s;
}
.booster-back-btn:hover {
background: rgba(200, 150, 12, 0.15);
color: #f0d060;
}
.booster-stage {
display: flex;
align-items: center;
gap: 24px;
width: 100%;
}
/* ── Stapel links ── */
.booster-left {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.booster-stapel-img {
width: 110px;
height: auto;
cursor: pointer;
image-rendering: pixelated;
filter: drop-shadow(0 4px 12px rgba(200, 150, 12, 0.4));
transition: transform 0.15s ease, filter 0.15s ease;
}
.booster-stapel-img:hover:not(.used) {
transform: scale(1.06) translateY(-3px);
filter: drop-shadow(0 6px 18px rgba(240, 200, 60, 0.65));
}
.booster-stapel-img.used {
cursor: default;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.booster-stapel-hint {
font-size: 11px;
color: #a08040;
font-family: "Cinzel", serif;
letter-spacing: 1px;
text-align: center;
}
/* ── Karten-Slots rechts ── */
.booster-slots {
display: flex;
gap: 10px;
flex: 1;
justify-content: center;
}
.booster-slot {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex: 1;
min-width: 0;
}
.booster-slot-inner {
width: 100%;
aspect-ratio: 2 / 3;
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
overflow: hidden;
background: #0d0a06;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
/* Dreh-Animation */
.booster-slot.spinning .booster-slot-inner {
border-color: rgba(200, 150, 12, 0.5);
box-shadow: 0 0 12px rgba(200, 150, 12, 0.25);
}
.booster-slot.spinning .booster-slot-img {
animation: slotFlicker 0.08s steps(1) infinite;
}
@keyframes slotFlicker {
0% { opacity: 1; }
50% { opacity: 0.75; }
100% { opacity: 1; }
}
/* Enthüllt */
.booster-slot.revealed .booster-slot-inner {
border-color: #c8960c;
box-shadow:
0 0 16px rgba(200, 150, 12, 0.45),
inset 0 0 8px rgba(200, 150, 12, 0.1);
animation: revealPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes revealPop {
0% { transform: scale(0.85); opacity: 0.5; }
60% { transform: scale(1.06); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}
.booster-slot-img {
width: 100%;
height: 100%;
object-fit: cover;
image-rendering: pixelated;
display: block;
}
.booster-slot-name {
font-size: 10px;
color: #c8960c;
text-align: center;
font-family: "Cinzel", serif;
letter-spacing: 0.5px;
min-height: 14px;
word-break: break-word;
}