feat: Add audio assets, UI escape room polish, requirements, and INSTALL.md

This commit is contained in:
Maxi
2026-10-29 08:51:59 +01:00
parent c07c0e10b9
commit 3d30d0812a
17 changed files with 1367 additions and 180 deletions
+453
View File
@@ -2233,3 +2233,456 @@ body {
}
}
/* ========================================================
SCREEN SHAKE & OBSTACLES ANIMATION
======================================================== */
@keyframes screenShake {
0% { transform: translate(0, 0) rotate(0deg); }
15% { transform: translate(-7px, 5px) rotate(-1.5deg); }
30% { transform: translate(6px, -6px) rotate(1.5deg); }
45% { transform: translate(-5px, -4px) rotate(-1deg); }
60% { transform: translate(4px, 4px) rotate(1deg); }
75% { transform: translate(-2px, 2px) rotate(-0.5deg); }
100% { transform: translate(0, 0) rotate(0deg); }
}
.screen-shake {
animation: screenShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
/* ========================================================
ENHANCED CAULDRON: INGREDIENT DOSAGE & STIR METER (/brew)
======================================================== */
.dose-grid {
display: flex;
gap: 0.75rem;
width: 100%;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 0.5rem;
}
.dose-card {
background: rgba(25, 20, 35, 0.95);
border: 2px solid rgba(229, 185, 72, 0.4);
border-radius: 14px;
padding: 0.75rem 0.6rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
min-width: 95px;
flex: 1;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
transition: border-color 0.2s, transform 0.15s;
user-select: none;
-webkit-user-select: none;
}
.dose-card:hover {
border-color: var(--gold);
}
.dose-controls {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 0.2rem;
}
.dose-btn {
background: rgba(229, 185, 72, 0.18);
border: 1px solid var(--gold);
color: var(--gold);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 1.15rem;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
touch-action: manipulation;
transition: all 0.15s;
}
.dose-btn:active {
background: var(--gold);
color: #120d08;
transform: scale(0.9);
}
.dose-val {
font-size: 1.35rem;
font-weight: bold;
color: #ffffff;
min-width: 22px;
text-align: center;
text-shadow: 0 0 6px var(--gold);
}
/* Two-Way Stirring & Gauge */
.stir-gauge-wrapper {
width: 100%;
max-width: 360px;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.65rem;
background: rgba(20, 16, 28, 0.92);
border: 2px solid var(--gold);
border-radius: 14px;
padding: 1rem 1.2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.stir-track {
width: 100%;
height: 24px;
background: rgba(10, 8, 16, 0.95);
border: 2px solid #555;
border-radius: 12px;
position: relative;
overflow: hidden;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}
.stir-target-zone {
position: absolute;
left: 40%;
width: 35%;
top: 0;
bottom: 0;
background: rgba(46, 204, 113, 0.35);
border-left: 2px dashed #2ecc71;
border-right: 2px dashed #2ecc71;
z-index: 1;
}
.stir-indicator-bar {
height: 100%;
width: 10%;
background: linear-gradient(90deg, #3498db 0%, #2ecc71 50%, #e74c3c 100%);
border-radius: 10px;
transition: width 0.08s ease-out;
position: relative;
z-index: 2;
}
.stir-buttons-row {
display: flex;
gap: 0.75rem;
width: 100%;
max-width: 360px;
justify-content: center;
}
.stir-action-btn {
flex: 1;
padding: 0.85rem 0.6rem;
font-size: 1.05rem;
font-weight: bold;
font-family: inherit;
border-radius: 12px;
border: 2px solid rgba(229, 185, 72, 0.5);
background: linear-gradient(135deg, rgba(38, 28, 54, 0.95), rgba(18, 14, 26, 0.95));
color: var(--text-light);
cursor: pointer;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
transition: all 0.15s;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
}
.stir-action-btn:active {
transform: scale(0.95);
background: var(--gold);
color: #120d08;
}
.stir-action-btn.active-target {
border-color: #2ecc71;
box-shadow: 0 0 16px rgba(46, 204, 113, 0.6);
color: #ffd700;
animation: targetPulse 1.2s infinite alternate;
}
@keyframes targetPulse {
0% { transform: scale(1); }
100% { transform: scale(1.03); }
}
/* ========================================================
SNAPE REPRIMAND MODAL (SARCASTIC QUOTES ON ERROR)
======================================================== */
.snape-reprimand-modal {
position: fixed;
inset: 0;
background: rgba(6, 4, 10, 0.94);
backdrop-filter: blur(8px);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
opacity: 0;
pointer-events: none;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.snape-reprimand-modal.show {
opacity: 1;
pointer-events: auto;
visibility: visible;
}
.snape-card {
background: linear-gradient(135deg, #1d1526, #0e0a14);
border: 3px solid #8e44ad;
box-shadow: 0 0 45px rgba(142, 68, 173, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.85);
border-radius: 18px;
max-width: 480px;
width: 100%;
padding: 1.8rem 1.4rem;
text-align: center;
transform: scale(0.9);
transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.snape-reprimand-modal.show .snape-card {
transform: scale(1);
}
.snape-avatar {
font-size: 3.8rem;
filter: drop-shadow(0 0 16px rgba(142, 68, 173, 0.9));
margin-bottom: 0.4rem;
}
.snape-quote-box {
background: rgba(0, 0, 0, 0.55);
border-left: 3px solid #8e44ad;
padding: 0.9rem 1.1rem;
margin: 1.1rem 0;
text-align: left;
font-family: 'Caveat', cursive;
font-size: 1.45rem;
color: #e8d8be;
line-height: 1.5;
border-radius: 0 10px 10px 0;
}
/* =========================================
HOGWARTS ENVELOPE & WAX SEAL INTRO (Bootle Escape)
========================================= */
.escape-letter-intro {
max-width: 600px;
margin: 0 auto 1.5rem;
}
.antique-envelope-scene {
position: relative;
width: min(460px, 92vw);
height: min(265px, 58vw);
margin: 20px auto 25px;
perspective: 1200px;
perspective-origin: center top;
transition: margin-top 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.antique-envelope-scene.envelope-opened {
margin-top: 155px;
margin-bottom: 25px;
}
.envelope-base {
position: relative;
width: 100%;
height: 100%;
border-radius: 6px;
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.envelope-interior {
position: absolute;
inset: 0;
border-radius: 6px;
background-color: #2b1d12;
background-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%);
border: 2px solid #7a5c36;
z-index: 1;
}
.letter-sheet {
position: absolute;
top: 15px;
left: 4%;
width: 92%;
height: 390px;
max-height: 72vh;
background-color: #fcf8ee;
background-image: radial-gradient(ellipse at 50% 25%, rgba(255, 255, 255, 0.6) 0%, rgba(210, 180, 130, 0.25) 100%);
border-radius: 4px;
border: 1.5px solid #8e6c43;
padding: 16px 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
z-index: 2;
visibility: hidden;
opacity: 0;
transform: translateY(50px) scale(0.92);
pointer-events: none;
transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s, opacity 0.6s ease 0.35s, visibility 0.6s ease 0.35s;
overflow-y: auto;
text-align: center;
outline: 1px dashed rgba(130, 95, 55, 0.45);
outline-offset: -5px;
}
.envelope-back-body {
position: absolute;
inset: 0;
border-radius: 6px;
background-color: #ebd8ae;
background-image: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.22) 0%, rgba(130, 95, 45, 0.22) 100%);
border: 1.5px solid #8e6c43;
z-index: 3;
overflow: hidden;
}
.envelope-closing-flap.envelope-v-flap {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #dfcd9f;
background-image: radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.35) 0%, rgba(125, 90, 40, 0.28) 100%);
clip-path: polygon(0 0, 100% 0, 50% 56%);
transform-origin: top center;
transform-style: preserve-3d;
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 6;
border-top: 2px solid #7c5830;
filter: drop-shadow(0 7px 14px rgba(35, 18, 5, 0.65));
}
.envelope-opened .envelope-closing-flap.envelope-v-flap {
transform: rotateX(180deg);
z-index: 1;
}
.v-flap-sketch-line {
position: absolute;
inset: 4px;
clip-path: polygon(2% 2%, 98% 2%, 50% 53.5%);
border-top: 1.5px dashed rgba(110, 75, 35, 0.45);
pointer-events: none;
}
.sketched-wax-seal {
position: absolute;
top: 56%;
left: 50%;
transform: translate(-50%, -50%) rotate(-3deg);
width: 72px;
height: 72px;
border-radius: 50%;
cursor: pointer;
z-index: 7;
transition: transform 0.3s ease, opacity 0.4s ease;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75);
}
.sketched-wax-seal:hover {
transform: translate(-50%, -50%) rotate(0deg) scale(1.08);
}
.seal-crest-img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
border: 3px solid #4a0d0d;
}
.envelope-opened .sketched-wax-seal {
opacity: 0;
pointer-events: none;
transform: translate(-50%, -50%) scale(0.3);
}
.envelope-opened .letter-sheet {
visibility: visible;
opacity: 1;
pointer-events: auto;
transform: translateY(-140px) scale(1.02);
z-index: 25;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(201, 168, 106, 0.4);
}
.letter-crest-box {
width: 46px;
height: 46px;
margin: 0 auto 4px;
border-radius: 50%;
overflow: hidden;
border: 1px solid rgba(139, 105, 60, 0.3);
}
.letter-crest-sketch {
width: 100%;
height: 100%;
object-fit: cover;
filter: sepia(0.65) contrast(1.15) brightness(0.92);
}
.letter-school-name {
font-family: 'MedievalSharp', Georgia, serif;
font-size: 1.05rem;
color: #2c1a0c;
text-transform: uppercase;
margin-bottom: 2px;
}
.letter-headmaster {
font-family: 'Caveat', cursive;
font-size: 0.92rem;
color: #4a331c;
margin-bottom: 6px;
}
.letter-ornament-line {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
color: #8c6838;
margin: 4px auto 8px;
max-width: 240px;
}
.ornament-rule {
flex: 1;
height: 1px;
background: linear-gradient(to right, transparent, #8c6838, transparent);
}
.letter-body-handwritten {
font-family: 'Marck Script', 'Caveat', cursive;
color: #0f3d24;
text-align: left;
line-height: 1.48;
}
.letter-salutation {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 6px;
}
.letter-paragraph {
font-size: 1.05rem;
margin-bottom: 8px;
text-indent: 1em;
}
.letter-signature-block {
margin-top: 8px;
text-align: right;
font-family: 'Marck Script', 'Caveat', cursive;
color: #0f3d24;
}
.letter-signature-ink {
font-size: 1.45rem;
font-weight: 700;
}
.letter-sign-title {
font-size: 0.85rem;
color: #4a6352;
}