/* ========================================================================== PPE SAFETY CHALLENGE - MODERN INDUSTRIAL SAFETY STYLESHEET "Choose Right. Work Safe." ========================================================================== */ :root { /* Color Palette */ --bg-dark: #0f141c; --bg-card: #171f2c; --bg-card-hover: #1e2838; --bg-stage: #141b24; --panel-border: #26354a; --safety-yellow: #facc15; --safety-amber: #f59e0b; --safety-orange: #fb923c; --safety-red: #ef4444; --safety-green: #10b981; --safety-blue: #0ea5e9; --safety-cyan: #06b6d4; --text-main: #f3f4f6; --text-muted: #9ca3af; --text-dim: #6b7280; --glow-yellow: rgba(250, 204, 21, 0.35); --glow-green: rgba(16, 185, 129, 0.4); --glow-red: rgba(239, 68, 68, 0.45); --glow-blue: rgba(14, 165, 233, 0.35); --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-display: 'Chakra Petch', 'Inter', sans-serif; --font-mono: 'JetBrains Mono', monospace; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 9999px; --transition-fast: 0.15s ease; --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1); } /* Reset & Box Sizing */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-main); line-height: 1.5; overflow-x: hidden; user-select: none; -webkit-font-smoothing: antialiased; } /* App Container */ .app-container { display: flex; flex-direction: column; min-height: 100vh; width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px 16px 16px; } /* ========================================================================== HEADER / TOP BAR ========================================================================== */ .top-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; margin: 12px 0; background: linear-gradient(90deg, #131a24 0%, #172233 100%); border: 1px solid var(--panel-border); border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); } .brand-badge { display: flex; align-items: center; gap: 12px; } .safety-cross-icon { width: 36px; height: 36px; background: var(--safety-yellow); color: #000; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); box-shadow: 0 0 12px var(--glow-yellow); } .brand-text { display: flex; flex-direction: column; } .game-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; color: #fff; } .game-tagline { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; color: var(--safety-yellow); } /* Scenario Stepper HUD */ .scenario-stepper { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.3); padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--panel-border); } .step-pill { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; color: var(--text-dim); background: transparent; transition: var(--transition-normal); } .step-pill .step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--panel-border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; } .step-pill.active { background: rgba(250, 204, 21, 0.15); color: var(--safety-yellow); border: 1px solid var(--safety-yellow); } .step-pill.active .step-num { background: var(--safety-yellow); color: #000; font-weight: 800; } .step-pill.completed { color: var(--safety-green); } .step-pill.completed .step-num { background: var(--safety-green); color: #fff; } .step-connector { width: 24px; height: 2px; background: var(--panel-border); } /* HUD Right: Score & Audio Controls */ .hud-right { display: flex; align-items: center; gap: 12px; } .score-display { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.4); padding: 6px 14px; border-radius: var(--radius-md); border: 1px solid var(--panel-border); } .score-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); } .score-val { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--safety-yellow); min-width: 40px; text-align: right; } .score-stars { color: var(--safety-yellow); font-size: 1rem; letter-spacing: 2px; } .btn-icon { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--panel-border); color: var(--text-main); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast); } .btn-icon:hover { background: var(--bg-card-hover); border-color: var(--safety-yellow); transform: translateY(-1px); } /* ========================================================================== SCREEN VIEWS MANAGEMENT ========================================================================== */ .main-viewport { flex: 1; display: flex; position: relative; } .screen-view { display: none; width: 100%; animation: fadeIn 0.3s ease forwards; } .screen-view.active { display: flex; flex-direction: column; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: scale(1); } } /* ========================================================================== SCREEN 1: START / HERO VIEW ========================================================================== */ .intro-card { max-width: 820px; margin: 30px auto; background: linear-gradient(180deg, #16202e 0%, #101722 100%); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; align-items: center; } .hero-graphic { margin-bottom: 20px; position: relative; } .safety-shield-animated { width: 100px; height: 100px; position: relative; } .shield-svg { width: 100%; height: 100%; } .shield-outline { fill: #1e293b; stroke: var(--safety-yellow); stroke-width: 4; } .shield-plus { stroke: var(--safety-yellow); stroke-width: 8; stroke-linecap: round; } .pulse-ring { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border-radius: 50%; border: 2px solid var(--safety-yellow); opacity: 0; animation: pulseAnim 2s infinite ease-out; } @keyframes pulseAnim { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } } .hero-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: 2px; color: #fff; margin-bottom: 4px; } .hero-subtitle { font-size: 1.1rem; font-weight: 700; color: var(--safety-yellow); letter-spacing: 3px; margin-bottom: 24px; text-transform: uppercase; } .mission-briefing { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 30px; text-align: center; max-width: 700px; } .mission-briefing h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; } .mission-briefing p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; } .learning-flow-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; background: #111827; padding: 12px 18px; border-radius: var(--radius-md); border: 1px solid #374151; } .flow-item { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--safety-yellow); } .flow-arrow { color: var(--text-dim); font-size: 0.85rem; } .start-controls { display: flex; flex-direction: column; align-items: center; gap: 16px; } .controls-hint { font-size: 0.8rem; color: var(--text-dim); } /* ========================================================================== BUTTONS & COMMON UI ========================================================================== */ .btn { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; padding: 10px 22px; border-radius: var(--radius-md); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition-normal); text-decoration: none; } .btn-primary { background: var(--safety-yellow); color: #000; } .btn-primary:hover { background: #fde047; transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow-yellow); } .btn-secondary { background: var(--bg-card); border: 1px solid var(--panel-border); color: var(--text-main); } .btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--safety-yellow); } .btn-action { background: linear-gradient(135deg, var(--safety-amber) 0%, var(--safety-yellow) 100%); color: #000; font-size: 1rem; font-weight: 800; padding: 14px 20px; } .btn-action:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow-yellow); } .btn-success { background: var(--safety-green); color: #fff; font-size: 1rem; padding: 12px 24px; } .btn-success:hover { background: #059669; box-shadow: 0 6px 20px var(--glow-green); } .btn-warning { background: var(--safety-orange); color: #000; font-weight: 800; padding: 12px 24px; } .btn-warning:hover { background: #f97316; box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); } .btn-ghost { background: transparent; border: 1px dashed var(--panel-border); color: var(--text-muted); } .btn-ghost:hover { border-color: var(--text-main); color: var(--text-main); } .btn-large { padding: 14px 32px; font-size: 1.1rem; } .btn-small { padding: 6px 12px; font-size: 0.8rem; } .btn-full { width: 100%; } .glow-ready { animation: readyPulse 2s infinite ease-in-out; } @keyframes readyPulse { 0%, 100% { box-shadow: 0 0 10px rgba(250, 204, 21, 0.3); } 50% { box-shadow: 0 0 25px rgba(250, 204, 21, 0.7); } } /* Card Panels */ .card-panel { background: var(--bg-card); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; } .panel-header { margin-bottom: 14px; } .card-subtitle { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; } /* ========================================================================== SCREEN 2: GAMEPLAY 3-COLUMN GRID ========================================================================== */ .gameplay-grid { display: grid; grid-template-columns: 300px 1fr 390px; gap: 16px; width: 100%; flex: 1; } /* Column 1: Hazard Panel */ .sidebar-hazard-panel { gap: 12px; overflow-y: auto; } .scenario-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--safety-cyan); background: rgba(6, 182, 212, 0.12); padding: 3px 8px; border-radius: var(--radius-sm); margin-bottom: 4px; } .scenario-title { font-family: var(--font-display); font-size: 1.15rem; color: #fff; line-height: 1.25; } .situation-card { background: rgba(0, 0, 0, 0.25); padding: 12px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.05); } .situation-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; } .hazard-identification-card { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); padding: 12px; border-radius: var(--radius-md); } .hazard-list { list-style: none; display: flex; flex-direction: column; gap: 6px; } .hazard-list-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: #fca5a5; line-height: 1.3; } .hazard-list-item::before { content: "⚠️"; font-size: 0.75rem; margin-top: 1px; } .equipped-status-card { background: rgba(0, 0, 0, 0.25); padding: 12px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.05); } .coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .coverage-item { display: flex; align-items: center; justify-content: space-between; background: #121924; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border); font-size: 0.75rem; } .coverage-item .cov-label { color: var(--text-muted); font-weight: 500; } .coverage-item .cov-status.missing { color: var(--safety-red); font-weight: 700; } .coverage-item .cov-status.protected { color: var(--safety-green); font-weight: 700; } .action-dock { margin-top: auto; display: flex; flex-direction: column; gap: 8px; } /* Column 2: Center Stage Panel */ .center-stage-panel { padding: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--bg-stage); } .scene-environment-container { flex: 1; position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .stage-fx-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 15; } /* Backdrop Layer */ .scene-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background: radial-gradient(circle at 50% 30%, #1a2538 0%, #0d121a 80%); } .industrial-wall { position: absolute; top: 0; left: 0; right: 0; height: 65%; background: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 40px 40px; } .workbench { position: absolute; bottom: 0; left: 0; right: 0; height: 35%; background: linear-gradient(180deg, #1b2430 0%, #10161f 100%); border-top: 3px solid #2d3c52; } .warning-tape { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: repeating-linear-gradient( 45deg, var(--safety-yellow), var(--safety-yellow) 15px, #000 15px, #000 30px ); opacity: 0.7; } .workpiece-element, .equipment-element { position: absolute; pointer-events: none; } /* Scenario 1 Grinding Props */ .stage-grinding .workpiece-element { right: 18%; bottom: 80px; width: 160px; height: 80px; background: linear-gradient(135deg, #475569 0%, #334155 100%); border: 2px solid #64748b; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.6); } .stage-grinding .equipment-element { right: 22%; bottom: 120px; width: 120px; height: 45px; background: #dc2626; border-radius: 6px; box-shadow: 0 6px 15px rgba(0,0,0,0.5); border: 2px solid #991b1b; transform: rotate(-15deg); } .stage-grinding .equipment-element::after { content: ""; position: absolute; left: -20px; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: #94a3b8; border: 3px solid #475569; } /* Scenario 2 Chemical Props */ .stage-chemical .workpiece-element { right: 15%; bottom: 60px; width: 220px; height: 140px; background: rgba(14, 165, 233, 0.05); border: 2px solid rgba(14, 165, 233, 0.3); border-radius: 8px; } .stage-chemical .equipment-element { right: 20%; bottom: 80px; width: 50px; height: 75px; background: rgba(16, 185, 129, 0.25); border: 2px solid #10b981; border-radius: 4px; } /* Worker Avatar Area */ .avatar-wrapper { position: relative; z-index: 10; width: 280px; height: 420px; display: flex; align-items: center; justify-content: center; } .worker-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); transition: transform 0.3s ease; } /* Overlays: Consequence Freeze & Success */ .consequence-freeze-overlay, .success-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); animation: popOverlay 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .consequence-freeze-overlay.active, .success-overlay.active { display: flex; } @keyframes popOverlay { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .consequence-freeze-overlay { background: rgba(18, 4, 4, 0.88); border: 3px solid var(--safety-red); } .freeze-banner { background: #180c0c; border: 2px solid var(--safety-red); border-radius: var(--radius-lg); padding: 24px; width: 95%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; text-align: center; box-shadow: 0 0 50px var(--glow-red); overflow-y: auto; } .hazard-flasher { display: inline-block; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 800; color: #fff; background: var(--safety-red); padding: 5px 14px; border-radius: var(--radius-sm); margin-bottom: 10px; animation: flashRed 0.8s infinite alternate; letter-spacing: 0.5px; } @keyframes flashRed { from { opacity: 0.85; transform: scale(0.98); } to { opacity: 1; filter: brightness(1.25); transform: scale(1.02); } } .consequence-title { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 6px; } .consequence-desc { font-size: 0.85rem; color: #fca5a5; line-height: 1.35; margin-bottom: 14px; } .missing-items-box { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(239, 68, 68, 0.35); padding: 12px; border-radius: var(--radius-md); margin-bottom: 16px; text-align: left; } .missing-box-header { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(239, 68, 68, 0.2); } .missing-items-box .box-label { font-size: 0.72rem; font-weight: 800; color: var(--safety-yellow); letter-spacing: 1px; } .missing-hazard-cards { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 4px; } /* Custom Scrollbar for Missing Cards */ .missing-hazard-cards::-webkit-scrollbar { width: 6px; } .missing-hazard-cards::-webkit-scrollbar-thumb { background: rgba(239, 68, 68, 0.4); border-radius: 4px; } .hazard-card-item { display: flex; align-items: flex-start; gap: 10px; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.35); border-left: 4px solid var(--safety-red); padding: 8px 10px; border-radius: var(--radius-sm); transition: var(--transition-fast); } .hazard-card-item:hover { background: rgba(239, 68, 68, 0.16); border-color: var(--safety-red); } .hazard-card-item.distractor-card { border-left-color: var(--safety-amber); background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.4); } .hazard-card-item .card-icon { font-size: 1.25rem; line-height: 1; padding-top: 2px; } .hazard-card-item .card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; } .hazard-card-item .card-header-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .hazard-card-item .card-item-name { font-size: 0.82rem; font-weight: 700; color: #fff; } .hazard-card-item .card-slot-badge { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: var(--safety-red); background: rgba(239, 68, 68, 0.2); padding: 1px 6px; border-radius: 4px; text-transform: uppercase; } .hazard-card-item.distractor-card .card-slot-badge { color: var(--safety-amber); background: rgba(245, 158, 11, 0.2); } .hazard-card-item .card-hazard-text { font-size: 0.74rem; color: #fca5a5; line-height: 1.3; } .hazard-card-item.distractor-card .card-hazard-text { color: #fef08a; } /* Flashing Alert for Coverage Grid on Failure */ .coverage-item.alert-missing { border-color: var(--safety-red); background: rgba(239, 68, 68, 0.15); animation: borderAlert 0.8s infinite alternate; } @keyframes borderAlert { from { box-shadow: 0 0 2px var(--safety-red); } to { box-shadow: 0 0 8px var(--safety-red); } } /* Success Overlay */ .success-overlay { background: rgba(5, 25, 15, 0.85); border: 3px solid var(--safety-green); } .success-banner { background: #091a13; border: 2px solid var(--safety-green); border-radius: var(--radius-lg); padding: 28px; max-width: 480px; text-align: center; box-shadow: 0 0 40px var(--glow-green); } .success-badge { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; } .badge-icon { font-size: 1.6rem; } .badge-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--safety-green); } .success-desc { font-size: 0.95rem; color: #a7f3d0; line-height: 1.4; margin-bottom: 18px; } .points-awarded-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(250, 204, 21, 0.2); border: 1px solid var(--safety-yellow); color: var(--safety-yellow); padding: 8px 18px; border-radius: var(--radius-full); font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; margin-bottom: 20px; animation: starBounce 0.5s ease; } @keyframes starBounce { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } } /* Stage Footer Bar */ .stage-footer-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #0d131c; border-top: 1px solid var(--panel-border); } .status-indicator-light { display: flex; align-items: center; gap: 8px; } .light-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--safety-amber); box-shadow: 0 0 8px var(--safety-amber); } .status-indicator-light.running .light-dot { background: var(--safety-green); box-shadow: 0 0 10px var(--safety-green); } .status-indicator-light.danger .light-dot { background: var(--safety-red); box-shadow: 0 0 10px var(--safety-red); } .light-text { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--text-muted); } .audio-feedback-caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); } /* Column 3: PPE Selection Locker */ .sidebar-locker-panel { gap: 12px; overflow-y: auto; } .locker-title { font-family: var(--font-display); font-size: 1.05rem; color: #fff; } .locker-subtitle { font-size: 0.78rem; color: var(--text-muted); } .ppe-locker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .ppe-item-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, #151e2b 0%, #0f1622 100%); border: 1.5px solid var(--panel-border); border-radius: var(--radius-md); padding: 14px 8px 10px 8px; cursor: pointer; transition: var(--transition-normal); position: relative; min-height: 106px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); } .ppe-item-card:hover { background: linear-gradient(180deg, #1c293a 0%, #14202e 100%); border-color: var(--safety-yellow); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(250, 204, 21, 0.2); } .ppe-item-card.equipped { background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%); border-color: var(--safety-green); box-shadow: 0 0 16px rgba(16, 185, 129, 0.28); } .item-key-badge { position: absolute; top: 5px; left: 6px; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 800; color: var(--text-dim); background: rgba(0, 0, 0, 0.45); padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.08); } .item-toggle-indicator { position: absolute; top: 5px; right: 6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--panel-border); background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: transparent; transition: var(--transition-fast); } .ppe-item-card.equipped .item-toggle-indicator { background: var(--safety-green); color: #fff; border-color: var(--safety-green); box-shadow: 0 0 8px var(--safety-green); } .item-icon-box { width: auto; height: auto; background: transparent; font-size: 2.35rem; line-height: 1; margin-top: 4px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); } .ppe-item-card:hover .item-icon-box { transform: scale(1.18); } .item-name { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: #fff; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); } .locker-guide-card { background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.2); padding: 12px; border-radius: var(--radius-md); margin-top: auto; } .guide-title { font-size: 0.75rem; font-weight: 700; color: var(--safety-cyan); margin-bottom: 4px; } .guide-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; } /* ========================================================================== SCREEN 3: SUMMARY / COMPLETION VIEW ========================================================================== */ .summary-card { max-width: 900px; margin: 20px auto; background: linear-gradient(180deg, #16202e 0%, #101722 100%); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 24px; } .summary-header { text-align: center; } .victory-trophy { font-size: 3rem; margin-bottom: 8px; } .summary-title { font-family: var(--font-display); font-size: 1.8rem; color: #fff; } .summary-subtitle { font-size: 0.95rem; font-weight: 700; color: var(--safety-yellow); letter-spacing: 2px; } .metrics-dashboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .metric-box { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; } .metric-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); } .metric-val { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 800; color: var(--safety-yellow); } .metric-val.star-gold { letter-spacing: 4px; } .metric-sub { font-size: 0.75rem; color: var(--text-dim); } .takeaway-banner { background: #0d141e; border: 2px solid var(--safety-yellow); border-radius: var(--radius-md); padding: 16px 20px; text-align: center; } .takeaway-heading { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; color: var(--safety-yellow); margin-bottom: 12px; } .mantra-chain { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; } .mantra-step { background: #192333; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.8rem; color: #fff; border: 1px solid var(--panel-border); } .mantra-arrow { color: var(--safety-yellow); font-weight: 900; } .scenarios-review-box { background: rgba(0, 0, 0, 0.25); border-radius: var(--radius-md); padding: 16px; } .scenarios-review-box h4 { font-size: 0.9rem; color: #fff; margin-bottom: 12px; } .review-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--panel-border); } .review-row:last-child { border-bottom: none; } .rev-icon { font-size: 1.4rem; } .rev-info { flex: 1; } .rev-info strong { font-size: 0.85rem; color: #fff; display: block; } .rev-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; } .rev-status { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--safety-green); background: rgba(16, 185, 129, 0.15); padding: 4px 8px; border-radius: var(--radius-sm); } .summary-actions { display: flex; justify-content: center; gap: 16px; } /* ========================================================================== AUDIO SETTINGS MODAL ========================================================================== */ .modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; } .modal-backdrop.active { display: flex; } .modal-card { background: var(--bg-card); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); width: 90%; max-width: 440px; padding: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 18px; } .modal-header { display: flex; align-items: center; justify-content: space-between; } .modal-header h3 { font-size: 1.1rem; color: #fff; } .btn-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; } .btn-close:hover { color: #fff; } .audio-control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .audio-control-row label { font-size: 0.85rem; color: var(--text-main); } .audio-control-row input[type="range"] { width: 140px; accent-color: var(--safety-yellow); } .audio-control-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--safety-yellow); cursor: pointer; } .audio-info-note { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: var(--radius-sm); } .modal-footer { display: flex; justify-content: flex-end; } /* ========================================================================== PRINTABLE CERTIFICATE ========================================================================== */ .printable-certificate { display: none; } @media print { body * { visibility: hidden; } .printable-certificate, .printable-certificate * { visibility: visible; } .printable-certificate { display: block !important; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; color: #000; padding: 40px; } .cert-border { border: 10px double #1e293b; padding: 40px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; } .cert-logo { font-size: 1.4rem; font-weight: 800; color: #b45309; margin-bottom: 20px; } .cert-header h1 { font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 10px; } .cert-name { font-size: 1.8rem; color: #1e3a8a; text-decoration: underline; margin: 15px 0; } .cert-desc { font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.5; } .cert-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 50px; } .sig-line { width: 200px; border-bottom: 2px solid #000; margin-bottom: 6px; height: 30px; } .cert-seal { border: 3px solid #b45309; padding: 10px 20px; border-radius: 50px; font-weight: 800; color: #b45309; } } /* ========================================================================== RESPONSIVE ADJUSTMENTS ========================================================================== */ @media (max-width: 1100px) { .gameplay-grid { grid-template-columns: 280px 1fr 280px; } } @media (max-width: 900px) { .gameplay-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; } .sidebar-hazard-panel, .sidebar-locker-panel { max-height: 380px; } .scene-environment-container { min-height: 380px; } }