/* ========================================================================== PPE SAFETY CHALLENGE - MODERN INDUSTRIAL SAFETY STYLESHEET "Choose Right. Work Safe." Matches the official industrial UI layout and exact 3x3 locker grid ========================================================================== */ :root { /* Core Color Palette */ --bg-dark: #070d18; --bg-panel: #0d1524; --bg-card: #131d2e; --bg-card-hover: #1b283d; --bg-stage: #0a111e; --panel-border: #1b283d; --panel-border-light: #253752; --safety-yellow: #facc15; --safety-gold: #eab308; --safety-amber: #f59e0b; --safety-orange: #fb923c; --safety-red: #ef4444; --safety-green: #10b981; --safety-blue: #0ea5e9; --safety-cyan: #38bdf8; --text-main: #f8fafc; --text-muted: #94a3b8; --text-dim: #64748b; --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(56, 189, 248, 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: 14px; --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: 1680px; margin: 0 auto; padding: 0 16px 16px 16px; } /* ========================================================================== HEADER / TOP BAR ========================================================================== */ .top-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; margin: 10px 0 12px 0; background: linear-gradient(90deg, #0c1422 0%, #111b2b 100%); border: 1px solid var(--panel-border); border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); } .brand-badge { display: flex; align-items: center; gap: 12px; } .safety-helmet-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; } .helmet-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.4)); } .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.7rem; font-weight: 700; letter-spacing: 1.5px; color: var(--safety-yellow); } /* Scenario Stepper HUD */ .scenario-stepper { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.4); padding: 5px 14px; border-radius: var(--radius-full); border: 1px solid var(--panel-border); } .step-pill { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; color: var(--text-dim); background: transparent; transition: var(--transition-normal); } .step-pill .step-num { width: 18px; height: 18px; border-radius: 50%; background: var(--panel-border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; } .step-pill.active { background: rgba(250, 204, 21, 0.18); color: var(--safety-yellow); border: 1px solid rgba(250, 204, 21, 0.6); } .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-dots { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 2px; } /* 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.45); padding: 5px 14px; border-radius: var(--radius-md); border: 1px solid var(--panel-border); } .score-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); } .score-val { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 800; color: var(--safety-yellow); min-width: 30px; text-align: right; } .score-star-icon { color: var(--safety-yellow); font-size: 1rem; } .score-stars-sub { color: var(--text-dim); font-size: 0.95rem; } .btn-icon-hud { width: 36px; height: 36px; border-radius: var(--radius-md); background: #141f2f; border: 1px solid var(--panel-border); color: var(--text-main); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast); } .btn-icon-hud:hover { background: #1c2b42; border-color: var(--safety-cyan); transform: translateY(-1px); } /* ========================================================================== MAIN VIEWPORT & SCREEN 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 WITH DEDICATED HQ HOME SCREEN GRAPHIC ========================================================================== */ #screen-start { position: relative; width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; padding: 4px 0; } .home-screen-backdrop { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; aspect-ratio: 1024 / 458; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--panel-border-light); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7); background: #070d18; display: flex; align-items: center; justify-content: center; } .home-bg-image { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; user-select: none; pointer-events: none; image-rendering: -webkit-optimize-contrast; image-rendering: high-quality; transform: translateZ(0); } .btn-start-hero-overlay { position: absolute; top: 78.5%; left: 50.8%; transform: translate(-50%, -50%); width: 24.8%; height: 9.8%; min-width: 180px; min-height: 40px; background: transparent; border: none; cursor: pointer; border-radius: 14px; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); z-index: 10; display: flex; align-items: center; justify-content: center; text-decoration: none; outline: none; } .btn-hero-hover-text { opacity: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: #000; letter-spacing: 1px; transition: opacity 0.2s ease; user-select: none; } .btn-start-hero-overlay:hover { background: rgba(250, 204, 21, 0.12); box-shadow: 0 0 40px rgba(250, 204, 21, 0.55); transform: translate(-50%, -50%) scale(1.015); } .btn-start-hero-overlay:active { transform: translate(-50%, -50%) scale(0.985); } /* Common Button Styles */ .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-large { padding: 14px 32px; font-size: 1.1rem; } /* ========================================================================== SCREEN 2: GAMEPLAY 3-COLUMN GRID ========================================================================== */ .gameplay-grid { display: grid; grid-template-columns: 290px 1fr 360px; gap: 14px; width: 100%; flex: 1; } .card-panel { background: var(--bg-panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; } /* ========================================================================== LEFT COLUMN: HAZARD ASSESSMENT & WORKER PROTECTION STATUS ========================================================================== */ .sidebar-hazard-panel { gap: 12px; overflow-y: auto; } .panel-header { margin-bottom: 4px; } .scenario-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--safety-cyan); background: rgba(56, 189, 248, 0.12); padding: 2px 8px; border-radius: var(--radius-sm); margin-bottom: 6px; } .scenario-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 4px; } .situation-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; } .card-subtitle-small { font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; } /* Identify Hazards Card */ .hazard-identification-card { background: #111a28; 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.78rem; color: #fca5a5; line-height: 1.3; } .hazard-list-item::before { content: "⚠️"; font-size: 0.75rem; margin-top: 1px; } /* Worker Protection Status Card (With Blue Neon Silhouette) */ .worker-protection-card { background: #111a28; border: 1px solid var(--panel-border-light); padding: 12px; border-radius: var(--radius-md); } .protection-status-content { display: flex; align-items: center; gap: 14px; } .body-silhouette-box { width: 56px; height: 130px; display: flex; align-items: center; justify-content: center; background: rgba(56, 189, 248, 0.05); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: var(--radius-sm); padding: 4px; } .wireframe-body-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)); } .protection-rows { flex: 1; display: flex; flex-direction: column; gap: 5px; } .status-row-item { display: flex; align-items: center; justify-content: space-between; background: #162235; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border); font-size: 0.74rem; transition: var(--transition-fast); } .status-row-item .row-icon { font-size: 0.85rem; margin-right: 4px; } .status-row-item .row-label { flex: 1; color: #fff; font-weight: 500; } .status-row-item .row-badge { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; } .status-row-item .row-badge.status-q { background: #0284c7; color: #fff; } .status-row-item .row-badge.status-check { background: var(--safety-green); color: #fff; } /* Tip Card */ .tip-card { background: #131d2e; border: 1px solid var(--panel-border); padding: 10px 12px; border-radius: var(--radius-md); margin-top: auto; } .tip-title { font-size: 0.72rem; font-weight: 800; color: var(--safety-yellow); margin-bottom: 3px; } .tip-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; } /* ========================================================================== CENTER COLUMN: INTERACTIVE WORKPLACE STAGE & 3D WORKER AVATAR ========================================================================== */ .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: 480px; 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; } .scene-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background: #090e18; overflow: hidden; } .env-svg-stage { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; } .scene-img-backdrop { position: relative; width: 100%; height: 100%; } .env-stage-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; filter: contrast(1.03) brightness(0.98); image-rendering: -webkit-optimize-contrast; image-rendering: high-quality; transform: translateZ(0); backface-visibility: hidden; transition: object-position 0.3s ease; } .stage-chemical .env-stage-photo { object-position: center 48%; } .stage-grinding .env-stage-photo { object-position: center 58%; } .env-stage-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.35) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 35%, rgba(0, 0, 0, 0.35) 100%); pointer-events: none; } .avatar-wrapper { position: relative; z-index: 10; width: 290px; height: 440px; display: flex; align-items: center; justify-content: center; } .worker-svg { width: 100%; height: 100%; overflow: visible; animation: characterAuraPulse 3s ease-in-out infinite; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .worker-svg image { transition: opacity 0.2s ease-in-out; } @keyframes characterAuraPulse { 0% { filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.2)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6)); } 50% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 22px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 34px rgba(56, 189, 248, 0.25)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65)); } 100% { filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.2)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6)); } } /* Specific Equipped PPE Item Electric Cyan/Blue Glow Pop */ .gear-pop-glow { animation: ppeGearPopGlow 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes ppeGearPopGlow { 0% { filter: drop-shadow(0 0 16px #38bdf8) drop-shadow(0 0 32px #0284c7); opacity: 0.2; transform: scale(1.04); transform-origin: center center; } 40% { filter: drop-shadow(0 0 20px #38bdf8) drop-shadow(0 0 36px #38bdf8); opacity: 1; transform: scale(1.02); } 100% { filter: url(#gearShadow); opacity: 1; transform: scale(1); } } .avatar-step-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .avatar-step-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55)); transition: opacity 0.15s ease; user-select: none; pointer-events: none; } .avatar-floor-shadow { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 150px; height: 18px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 75%); border-radius: 50%; pointer-events: none; } /* Consequence Alert Overlay & Safe Success Overlay */ .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: 20px; 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: 22px; width: 95%; max-width: 620px; 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.82rem; font-weight: 800; color: #fff; background: var(--safety-red); padding: 5px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; 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.3rem; color: #fff; margin-bottom: 4px; } .consequence-desc { font-size: 0.82rem; color: #fca5a5; line-height: 1.35; margin-bottom: 12px; } .missing-items-box { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(239, 68, 68, 0.35); padding: 10px 12px; border-radius: var(--radius-md); margin-bottom: 14px; text-align: left; } .missing-box-header { margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(239, 68, 68, 0.2); } .missing-items-box .box-label { font-size: 0.7rem; font-weight: 800; color: var(--safety-yellow); letter-spacing: 1px; } .missing-hazard-cards { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; padding-right: 4px; } .hazard-card-item { display: flex; align-items: flex-start; gap: 8px; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.35); border-left: 4px solid var(--safety-red); padding: 6px 8px; border-radius: var(--radius-sm); } .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.1rem; 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: 6px; } .hazard-card-item .card-item-name { font-size: 0.8rem; 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; } .hazard-card-item .card-hazard-text { font-size: 0.72rem; color: #fca5a5; line-height: 1.25; } .btn-warning { background: var(--safety-orange); color: #000; font-weight: 800; padding: 10px 20px; } .btn-warning:hover { background: #f97316; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4); } /* 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: 24px; max-width: 460px; text-align: center; box-shadow: 0 0 40px var(--glow-green); } .success-badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; } .badge-icon { font-size: 1.5rem; } .badge-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--safety-green); } .success-desc { font-size: 0.88rem; color: #a7f3d0; line-height: 1.4; margin-bottom: 16px; } .points-awarded-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(250, 204, 21, 0.2); border: 1px solid var(--safety-yellow); color: var(--safety-yellow); padding: 6px 16px; border-radius: var(--radius-full); font-family: var(--font-mono); font-weight: 800; font-size: 0.95rem; margin-bottom: 18px; } .btn-success { background: var(--safety-green); color: #fff; font-size: 0.95rem; padding: 10px 22px; } .btn-success:hover { background: #059669; box-shadow: 0 4px 16px var(--glow-green); } /* ========================================================================== RIGHT COLUMN: 3x3 PPE SAFETY LOCKER & ACTION BUTTONS ========================================================================== */ .sidebar-locker-panel { gap: 12px; display: flex; flex-direction: column; } .panel-header-locker { display: flex; flex-direction: column; gap: 2px; } .locker-title-row { display: flex; align-items: center; gap: 8px; } .locker-icon { font-size: 1.1rem; } .locker-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; } .locker-subtitle { font-size: 0.78rem; color: var(--text-muted); } .locker-instruction { font-size: 0.72rem; color: var(--safety-cyan); } /* 3-Column Grid Layout for 10 Locker Items */ .ppe-locker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-bottom: auto; max-height: calc(100vh - 265px); overflow-y: auto; padding-right: 2px; } .ppe-locker-grid::-webkit-scrollbar { width: 5px; } .ppe-locker-grid::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); border-radius: 4px; } .ppe-locker-grid::-webkit-scrollbar-thumb { background: #1e3556; border-radius: 4px; } .ppe-locker-grid::-webkit-scrollbar-thumb:hover { background: var(--safety-cyan); } .ppe-item-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; background: #09121f; border: 1.5px solid #162740; border-radius: var(--radius-md); padding: 6px 3px 5px 3px; cursor: pointer; transition: var(--transition-normal); position: relative; aspect-ratio: 1 / 1.15; width: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); } .ppe-item-card:hover { background: #111e33; border-color: var(--safety-cyan); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25); } .ppe-item-card.equipped { background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.08) 100%); border-color: var(--safety-cyan); box-shadow: 0 0 14px rgba(56, 189, 248, 0.35); } /* Radio Indicator Top-Right */ .item-toggle-indicator { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #1e3556; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); } .ppe-item-card.equipped .item-toggle-indicator { background: var(--safety-cyan); border-color: var(--safety-cyan); } .radio-check-mark { font-size: 0.65rem; font-weight: 900; color: #000; line-height: 1; } .item-icon-box { width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 2px 0; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); } .ppe-svg-icon { width: 80%; height: 80%; max-width: 68px; max-height: 68px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); } .ppe-img-icon { width: 85%; height: 85%; max-width: 74px; max-height: 74px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55)); } .ppe-item-card:hover .item-icon-box { transform: scale(1.08); } .item-name { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: #fff; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); } /* Bottom Actions Dock */ .locker-actions-dock { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; } .btn-check-ppe { background: #1a2536; border: 1px solid var(--panel-border-light); color: #cbd5e1; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; padding: 8px 16px; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition-fast); } .btn-check-ppe:hover { background: #24344c; color: #fff; border-color: var(--safety-cyan); } .btn-check-icon { font-weight: 900; color: var(--safety-cyan); } .btn-start-task { background: var(--safety-yellow); color: #000; font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; letter-spacing: 0.5px; padding: 12px 18px; border-radius: var(--radius-md); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 16px var(--glow-yellow); transition: var(--transition-normal); } .btn-start-task:hover { background: #fde047; transform: translateY(-2px); box-shadow: 0 6px 24px var(--glow-yellow); } .btn-play-icon { font-size: 0.95rem; } /* ========================================================================== SCREEN 3: SUMMARY / COMPLETION VIEW ========================================================================== */ .summary-card { max-width: 900px; margin: 20px auto; background: linear-gradient(180deg, #131d2e 0%, #0d1524 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: 22px; } .summary-header { text-align: center; } .victory-trophy { font-size: 3rem; margin-bottom: 6px; } .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: 14px; } .metric-box { background: rgba(0, 0, 0, 0.35); 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-sub { font-size: 0.74rem; color: var(--text-dim); } .takeaway-banner { background: #090f19; border: 2px solid var(--safety-yellow); border-radius: var(--radius-md); padding: 14px 18px; 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: 10px; } .mantra-chain { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; } .mantra-step { background: #162235; padding: 5px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; 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: 14px; } .scenarios-review-box h4 { font-size: 0.9rem; color: #fff; margin-bottom: 10px; } .review-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--panel-border); } .review-row:last-child { border-bottom: none; } .rev-icon { font-size: 1.3rem; } .rev-info { flex: 1; } .rev-info strong { font-size: 0.82rem; color: #fff; display: block; } .rev-info p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; } .rev-status { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--safety-green); background: rgba(16, 185, 129, 0.15); padding: 3px 8px; border-radius: var(--radius-sm); } .summary-actions { display: flex; justify-content: center; gap: 14px; } /* ========================================================================== 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: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 16px; } .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.74rem; 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 LAYOUT BREAKPOINTS ========================================================================== */ @media (max-width: 1180px) { .gameplay-grid { grid-template-columns: 260px 1fr 320px; } } @media (max-width: 960px) { .gameplay-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; } .sidebar-hazard-panel, .sidebar-locker-panel { max-height: 400px; } .scene-environment-container { min-height: 380px; } }