Feature: Integrate all four Hogwarts mini-games (Duel, Potion Brewing, Cryptex Lock, Cornish Pixies)

This commit is contained in:
Maxi
2026-09-22 19:43:12 +02:00
parent 0e20549a44
commit 2ce944d1cd
13 changed files with 1662 additions and 13 deletions
+492
View File
@@ -1190,3 +1190,495 @@ body {
}
}
/* ========================================================
MINI-GAME: DIE ZAUBERTRANK-BRAUKÜCHE (/brew)
======================================================== */
.brew-container {
max-width: 650px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.25rem;
}
.recipe-book {
background: linear-gradient(135deg, #2b1f14, #19120b);
border: 2px solid var(--gold);
border-radius: 12px;
padding: 1rem 1.25rem;
width: 100%;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
text-align: center;
}
.recipe-step-badge {
display: inline-block;
background: rgba(212, 175, 55, 0.2);
border: 1px solid var(--gold);
color: var(--gold);
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: bold;
margin-bottom: 0.5rem;
}
.cauldron-wrapper {
position: relative;
width: 280px;
height: 280px;
display: flex;
justify-content: center;
align-items: center;
margin: 0.5rem 0;
touch-action: none;
}
.cauldron-pot {
width: 250px;
height: 230px;
background: radial-gradient(circle at 35% 30%, #4a4a55 0%, #202025 50%, #0d0d12 100%);
border-radius: 50% 50% 45% 45% / 30% 30% 60% 60%;
border: 6px solid #1a1a20;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), inset 0 -10px 20px rgba(0, 0, 0, 0.8);
position: relative;
display: flex;
justify-content: center;
align-items: flex-start;
padding-top: 25px;
}
.cauldron-pot::before {
content: '';
position: absolute;
top: 5px;
width: 210px;
height: 48px;
border-radius: 50%;
background: #111116;
border: 4px solid #2d2d38;
}
.cauldron-pot::after {
content: '';
position: absolute;
bottom: -16px;
width: 120px;
height: 18px;
background: #000;
border-radius: 50%;
filter: blur(8px);
}
.potion-surface {
position: absolute;
top: 12px;
width: 190px;
height: 36px;
border-radius: 50%;
background: radial-gradient(ellipse at center, #2ecc71 0%, #16a085 60%, #0e5042 100%);
box-shadow: 0 0 20px #2ecc71;
overflow: hidden;
transition: background 1s ease, box-shadow 1s ease;
}
.potion-surface.state-stir {
background: radial-gradient(ellipse at center, #9b59b6 0%, #8e44ad 60%, #4a235a 100%);
box-shadow: 0 0 25px #9b59b6;
}
.potion-surface.state-heat {
background: radial-gradient(ellipse at center, #e67e22 0%, #d35400 60%, #78281f 100%);
box-shadow: 0 0 25px #e67e22;
}
.potion-surface.state-gold {
background: radial-gradient(ellipse at center, #fff6a5 0%, #f1c40f 50%, #b7950b 100%);
box-shadow: 0 0 35px #f1c40f, 0 0 60px rgba(241, 196, 15, 0.6);
animation: goldShimmer 1.5s infinite alternate;
}
@keyframes goldShimmer {
0% { filter: brightness(1) drop-shadow(0 0 10px #f1c40f); }
100% { filter: brightness(1.3) drop-shadow(0 0 30px #fff); }
}
.cauldron-fire {
position: absolute;
bottom: 5px;
font-size: 2.2rem;
animation: flameFlicker 0.8s infinite alternate;
pointer-events: none;
}
/* Stir Interactive Ring */
.stir-circle {
position: absolute;
width: 180px;
height: 180px;
border-radius: 50%;
border: 3px dashed var(--gold);
display: none;
align-items: center;
justify-content: center;
pointer-events: auto;
cursor: grab;
animation: rotateDashed 6s linear infinite;
}
.stir-circle.active {
display: flex;
}
.stir-arrow-hint {
font-size: 1.8rem;
position: absolute;
top: 5px;
right: 35px;
}
@keyframes rotateDashed {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Ingredient Shelf */
.ingredients-shelf {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
width: 100%;
}
.ingredient-btn {
background: rgba(30, 24, 40, 0.85);
border: 2px solid #5a422d;
border-radius: 12px;
padding: 0.6rem 0.8rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
color: var(--text-light);
cursor: pointer;
transition: all 0.2s;
user-select: none;
min-width: 90px;
}
.ingredient-btn:hover, .ingredient-btn:active {
border-color: var(--gold);
transform: translateY(-3px) scale(1.03);
box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}
.ingredient-btn.done {
opacity: 0.5;
border-color: #27ae60;
pointer-events: none;
}
.ing-icon {
font-size: 1.8rem;
}
.ing-name {
font-size: 0.85rem;
font-weight: bold;
}
.ing-count {
font-size: 0.75rem;
color: var(--gold);
background: rgba(0, 0, 0, 0.4);
padding: 0.1rem 0.5rem;
border-radius: 10px;
}
/* Heat Bellows Bar */
.heat-control-panel {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
gap: 0.75rem;
}
.heat-control-panel.active {
display: flex;
}
.temp-bar-container {
width: 100%;
max-width: 320px;
height: 24px;
background: #111;
border: 2px solid #555;
border-radius: 12px;
position: relative;
overflow: hidden;
}
.temp-ideal-zone {
position: absolute;
left: 60%;
width: 25%;
height: 100%;
background: rgba(46, 204, 113, 0.4);
border-left: 2px dashed #2ecc71;
border-right: 2px dashed #2ecc71;
}
.temp-indicator {
height: 100%;
width: 10%;
background: linear-gradient(90deg, #3498db, #f39c12, #e74c3c);
border-radius: 10px;
transition: width 0.15s ease-out;
}
.bellows-btn {
background: linear-gradient(180deg, #c0392b, #962d22);
border: 2px solid #e74c3c;
border-radius: 12px;
color: #fff;
padding: 0.75rem 1.5rem;
font-size: 1.1rem;
font-family: inherit;
font-weight: bold;
cursor: pointer;
box-shadow: 0 6px 18px rgba(231, 76, 60, 0.4);
display: inline-flex;
align-items: center;
gap: 0.5rem;
user-select: none;
touch-action: manipulation;
}
.bellows-btn:active {
transform: scale(0.95);
background: #e74c3c;
}
/* ========================================================
MINI-GAME: DAS RUNEN-DREHSCHLOSS / CRYPTEX (/cryptex)
======================================================== */
.cryptex-container {
max-width: 600px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.25rem;
}
.cryptex-box {
background: linear-gradient(180deg, #3a2b1d 0%, #1f160e 50%, #120d08 100%);
border: 4px solid var(--gold);
border-radius: 16px;
padding: 1.25rem 1rem;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), inset 0 0 25px rgba(212, 175, 55, 0.15);
width: 100%;
position: relative;
}
.cryptex-frame-line {
position: absolute;
top: 50%;
left: 4%;
right: 4%;
height: 4px;
background: rgba(212, 175, 55, 0.85);
box-shadow: 0 0 10px var(--gold);
transform: translateY(-50%);
pointer-events: none;
z-index: 10;
}
.cryptex-rings-row {
display: flex;
justify-content: space-around;
gap: 0.5rem;
position: relative;
z-index: 5;
}
.cryptex-dial {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
flex: 1;
}
.dial-step-btn {
background: rgba(212, 175, 55, 0.15);
border: 1px solid var(--gold);
color: var(--gold);
border-radius: 8px;
width: 44px;
height: 38px;
font-size: 1.2rem;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
touch-action: manipulation;
transition: all 0.15s;
}
.dial-step-btn:active {
background: var(--gold);
color: #120d08;
transform: scale(0.92);
}
.dial-cylinder {
width: 100%;
max-width: 90px;
height: 90px;
background: linear-gradient(180deg, #1b1712 0%, #4a3822 50%, #15110c 100%);
border: 3px solid #8c6e3b;
border-radius: 12px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-shadow: inset 0 8px 12px rgba(0,0,0,0.8), inset 0 -8px 12px rgba(0,0,0,0.8);
position: relative;
user-select: none;
}
.dial-symbol {
font-size: 2.4rem;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
transition: transform 0.2s ease;
}
.dial-label {
font-size: 0.72rem;
color: var(--gold-light);
margin-top: -2px;
font-weight: bold;
}
/* ========================================================
MINI-GAME: WICHTEL-PANIK / CORNISH PIXIES (/pixies)
======================================================== */
.pixies-container {
max-width: 580px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.pixies-hud {
display: flex;
justify-content: space-between;
width: 100%;
background: rgba(20, 15, 30, 0.85);
border: 2px solid var(--gold);
border-radius: 12px;
padding: 0.6rem 1rem;
font-size: 1.1rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.pixies-arena {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.75rem;
width: 100%;
aspect-ratio: 1 / 1;
background: linear-gradient(135deg, #1f1728, #100b17);
border: 3px solid #4a3461;
border-radius: 16px;
padding: 0.75rem;
box-shadow: inset 0 0 25px rgba(0,0,0,0.8);
touch-action: manipulation;
}
.pixie-hole {
background: radial-gradient(circle, #2b1f3d 0%, #150f20 80%);
border: 2px solid #3c2a50;
border-radius: 12px;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
box-shadow: inset 0 6px 10px rgba(0,0,0,0.7);
}
.hole-decor {
font-size: 1.5rem;
opacity: 0.25;
position: absolute;
bottom: 6px;
pointer-events: none;
}
.pixie-target {
font-size: 3.2rem;
position: absolute;
transform: translateY(120%);
transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
pointer-events: auto;
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
animation: pixieFloat 0.8s infinite alternate ease-in-out;
}
.pixie-target.active {
transform: translateY(0);
}
.pixie-target.frozen {
filter: drop-shadow(0 0 12px #3498db) hue-rotate(180deg) brightness(1.2);
animation: none;
transform: translateY(0) scale(1.08);
}
.pixie-target.neville {
font-size: 3.4rem;
animation: shakeNeville 0.4s infinite alternate;
}
@keyframes pixieFloat {
0% { transform: translateY(-4px) rotate(-3deg); }
100% { transform: translateY(4px) rotate(3deg); }
}
@keyframes shakeNeville {
0% { transform: translateY(0) rotate(-5deg); }
100% { transform: translateY(0) rotate(5deg); }
}
@media (max-width: 480px) {
.cauldron-wrapper {
width: 240px;
height: 240px;
}
.cauldron-pot {
width: 215px;
height: 200px;
}
.dial-cylinder {
height: 75px;
}
.dial-symbol {
font-size: 2rem;
}
.pixie-target {
font-size: 2.6rem;
}
}