2833 lines
58 KiB
CSS
2833 lines
58 KiB
CSS
/* ==========================================================================
|
|
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: 100%;
|
|
margin: 0;
|
|
padding: 0 16px 16px 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:fullscreen,
|
|
:-webkit-full-screen,
|
|
:fullscreen body,
|
|
:-webkit-full-screen body {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
:fullscreen .app-container,
|
|
:-webkit-full-screen .app-container,
|
|
.fullscreen-mode .app-container {
|
|
width: 100vw;
|
|
max-width: 100vw;
|
|
height: 100vh;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 8px 16px 12px 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:fullscreen .top-bar,
|
|
:-webkit-full-screen .top-bar,
|
|
.fullscreen-mode .top-bar {
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
:fullscreen .gameplay-grid,
|
|
:-webkit-full-screen .gameplay-grid,
|
|
.fullscreen-mode .gameplay-grid {
|
|
height: calc(100vh - 80px);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
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-shield-logo-box {
|
|
width: 38px;
|
|
height: 38px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.brand-shield-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.7));
|
|
display: block;
|
|
}
|
|
|
|
.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, Timer & Audio Controls */
|
|
.hud-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.timer-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 rgba(56, 189, 248, 0.35);
|
|
box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.timer-icon {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.timer-label {
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.timer-val {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.15rem;
|
|
font-weight: 800;
|
|
color: #38bdf8;
|
|
min-width: 48px;
|
|
text-align: center;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.timer-display.timer-warning {
|
|
border-color: #f59e0b;
|
|
box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
|
|
}
|
|
|
|
.timer-display.timer-warning .timer-val {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.timer-display.timer-danger {
|
|
border-color: #ef4444;
|
|
background: rgba(239, 68, 68, 0.18);
|
|
box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
|
|
animation: timerPulse 1s ease-in-out infinite;
|
|
}
|
|
|
|
.timer-display.timer-danger .timer-val {
|
|
color: #ef4444;
|
|
text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
|
|
}
|
|
|
|
@keyframes timerPulse {
|
|
0%, 100% { transform: scale(1); }
|
|
50% { transform: scale(1.05); }
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.btn-icon-hud.fullscreen-active {
|
|
background: rgba(14, 165, 233, 0.25);
|
|
border-color: var(--safety-cyan);
|
|
color: var(--safety-cyan);
|
|
box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
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: 100%;
|
|
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);
|
|
}
|
|
|
|
.home-particles-canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
}
|
|
|
|
.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: 295px 1fr 370px;
|
|
gap: 14px;
|
|
width: 100%;
|
|
flex: 1;
|
|
}
|
|
|
|
.card-panel {
|
|
background: rgba(10, 17, 28, 0.92);
|
|
border: 1px solid rgba(250, 204, 21, 0.28);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(250, 204, 21, 0.08);
|
|
}
|
|
|
|
/* High-Tech Industrial Golden Corner Brackets */
|
|
.sidebar-hazard-panel::before,
|
|
.sidebar-hazard-panel::after,
|
|
.sidebar-locker-panel::before,
|
|
.sidebar-locker-panel::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
pointer-events: none;
|
|
border-color: var(--safety-yellow);
|
|
border-style: solid;
|
|
z-index: 5;
|
|
}
|
|
|
|
.sidebar-hazard-panel::before,
|
|
.sidebar-locker-panel::before {
|
|
top: -1px;
|
|
left: -1px;
|
|
border-width: 3px 0 0 3px;
|
|
border-top-left-radius: var(--radius-lg);
|
|
filter: drop-shadow(0 0 6px var(--glow-yellow));
|
|
}
|
|
|
|
.sidebar-hazard-panel::after,
|
|
.sidebar-locker-panel::after {
|
|
bottom: -1px;
|
|
right: -1px;
|
|
border-width: 0 3px 3px 0;
|
|
border-bottom-right-radius: var(--radius-lg);
|
|
filter: drop-shadow(0 0 6px var(--glow-yellow));
|
|
}
|
|
|
|
/* ==========================================================================
|
|
LEFT COLUMN: HAZARD ASSESSMENT & WORKER PROTECTION STATUS
|
|
========================================================================== */
|
|
|
|
.sidebar-hazard-panel {
|
|
gap: 12px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.panel-header {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.scenario-badge {
|
|
display: inline-block;
|
|
font-family: var(--font-display);
|
|
font-size: 0.72rem;
|
|
font-weight: 900;
|
|
color: #000;
|
|
background: var(--safety-yellow);
|
|
padding: 3px 12px;
|
|
border-radius: var(--radius-full);
|
|
margin-bottom: 8px;
|
|
letter-spacing: 0.8px;
|
|
text-transform: uppercase;
|
|
box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4);
|
|
}
|
|
|
|
.scenario-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
line-height: 1.2;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.situation-desc {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.card-subtitle-small {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-family: var(--font-display);
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.5px;
|
|
color: var(--safety-yellow);
|
|
margin-bottom: 8px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Identify Hazards Card */
|
|
.hazard-identification-card {
|
|
background: #0d1624;
|
|
border: 1px solid rgba(250, 204, 21, 0.2);
|
|
padding: 10px 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;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hazard-list-item::before {
|
|
content: "⚠️";
|
|
font-size: 0.75rem;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
/* Worker Protection Status Card (With Blue Neon Silhouette) */
|
|
.worker-protection-card {
|
|
background: #0d1624;
|
|
border: 1px solid rgba(56, 189, 248, 0.25);
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.protection-status-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.body-silhouette-box {
|
|
width: 66px;
|
|
height: 154px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(9, 16, 26, 0.85);
|
|
border: 1px solid rgba(56, 189, 248, 0.35);
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
overflow: hidden;
|
|
box-shadow: 0 0 14px rgba(56, 189, 248, 0.18), inset 0 0 8px rgba(56, 189, 248, 0.06);
|
|
}
|
|
|
|
.hologram-silhouette-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
|
|
animation: hologramGlowPulse 3s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes hologramGlowPulse {
|
|
0% { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)); opacity: 0.92; }
|
|
100% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 20px rgba(14, 165, 233, 0.55)); opacity: 1; }
|
|
}
|
|
|
|
.protection-rows {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.status-row-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: #121e30;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--panel-border);
|
|
font-size: 0.75rem;
|
|
transition: var(--transition-fast);
|
|
}
|
|
|
|
.status-row-item .row-icon {
|
|
font-size: 0.85rem;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.status-row-item .row-label {
|
|
flex: 1;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 0.74rem;
|
|
}
|
|
|
|
.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;
|
|
box-shadow: 0 0 8px var(--glow-green);
|
|
}
|
|
|
|
/* Tip Card */
|
|
.tip-card {
|
|
background: #0d1624;
|
|
border: 1px solid var(--panel-border);
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.tip-title {
|
|
font-family: var(--font-display);
|
|
font-size: 0.74rem;
|
|
font-weight: 800;
|
|
color: var(--safety-yellow);
|
|
margin-bottom: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.tip-text {
|
|
font-size: 0.74rem;
|
|
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 56%;
|
|
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 55%;
|
|
}
|
|
|
|
.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;
|
|
margin: 0 auto;
|
|
transform: scale(1.45);
|
|
transform-origin: center 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 ALERT OVERLAY & CYBER HUD MODAL (EXACT MATCH TO REFERENCE UI)
|
|
========================================================================== */
|
|
|
|
.consequence-freeze-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 35;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(18, 4, 4, 0.82);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
animation: popOverlay 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
border: none;
|
|
}
|
|
|
|
.consequence-freeze-overlay.active {
|
|
display: flex;
|
|
}
|
|
|
|
.cyber-consequence-modal {
|
|
position: relative;
|
|
width: 95%;
|
|
max-width: 630px;
|
|
max-height: 92vh;
|
|
background-color: #0e0505;
|
|
background-image:
|
|
radial-gradient(ellipse at 50% 15%, rgba(239, 68, 68, 0.16) 0%, transparent 60%),
|
|
radial-gradient(circle, rgba(239, 68, 68, 0.12) 1.2px, transparent 1.2px);
|
|
background-size: 100% 100%, 14px 14px;
|
|
background-position: center center, 0 0;
|
|
border: 2px solid #ef4444;
|
|
border-radius: 26px;
|
|
padding: 42px 30px 26px 30px;
|
|
text-align: center;
|
|
box-shadow:
|
|
0 0 35px rgba(239, 68, 68, 0.5),
|
|
inset 0 0 25px rgba(239, 68, 68, 0.12),
|
|
0 25px 60px rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Side Hazard Flange Vents */
|
|
.hazard-flange .hazard-vent-bar {
|
|
width: 4px;
|
|
height: 18px;
|
|
background: #ef4444;
|
|
box-shadow: 0 0 6px #ef4444;
|
|
border-radius: 1px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.flange-left.hazard-flange .hazard-vent-bar {
|
|
transform: skewY(-35deg);
|
|
}
|
|
|
|
.flange-right.hazard-flange .hazard-vent-bar {
|
|
transform: skewY(35deg);
|
|
}
|
|
|
|
/* Red Corner Accent Notches */
|
|
.red-notch-tl {
|
|
top: 8px;
|
|
left: 8px;
|
|
border-top: 3px solid #ff2244;
|
|
border-left: 3px solid #ff2244;
|
|
border-top-left-radius: 18px;
|
|
}
|
|
|
|
.red-notch-tr {
|
|
top: 8px;
|
|
right: 8px;
|
|
border-top: 3px solid #ff2244;
|
|
border-right: 3px solid #ff2244;
|
|
border-top-right-radius: 18px;
|
|
}
|
|
|
|
.red-notch-bl {
|
|
bottom: 8px;
|
|
left: 8px;
|
|
border-bottom: 3px solid #ff2244;
|
|
border-left: 3px solid #ff2244;
|
|
border-bottom-left-radius: 18px;
|
|
}
|
|
|
|
.red-notch-br {
|
|
bottom: 8px;
|
|
right: 8px;
|
|
border-bottom: 3px solid #ff2244;
|
|
border-right: 3px solid #ff2244;
|
|
border-bottom-right-radius: 18px;
|
|
}
|
|
|
|
/* Top Triangle Hazard Badge */
|
|
.hud-hazard-badge-wrapper {
|
|
position: absolute;
|
|
top: -36px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 72px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 5;
|
|
}
|
|
|
|
.hazard-triangle-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
filter: drop-shadow(0 0 12px rgba(255, 34, 68, 0.85)) drop-shadow(0 0 24px rgba(239, 68, 68, 0.5));
|
|
}
|
|
|
|
/* Modal Inner Body */
|
|
.cyber-consequence-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
/* Stop Flasher Pill */
|
|
.cyber-hazard-flasher {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: linear-gradient(90deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.95) 50%, rgba(239, 68, 68, 0.25) 100%);
|
|
border: 1.5px solid #ef4444;
|
|
border-radius: 20px;
|
|
padding: 5px 22px;
|
|
margin-top: 10px;
|
|
margin-bottom: 8px;
|
|
box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
|
|
animation: flashRedPulse 1.2s infinite alternate;
|
|
}
|
|
|
|
@keyframes flashRedPulse {
|
|
0% { transform: scale(0.98); opacity: 0.9; }
|
|
100% { transform: scale(1.02); opacity: 1; filter: brightness(1.2); }
|
|
}
|
|
|
|
.flasher-icon {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.flasher-text {
|
|
font-family: var(--font-display);
|
|
font-size: 0.85rem;
|
|
font-weight: 900;
|
|
color: #ffffff;
|
|
letter-spacing: 1px;
|
|
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.cyber-consequence-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.85rem;
|
|
font-weight: 900;
|
|
letter-spacing: 2px;
|
|
margin-top: 4px;
|
|
margin-bottom: 6px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cyber-consequence-title .title-red {
|
|
color: #ef4444;
|
|
text-shadow: 0 0 16px rgba(239, 68, 68, 0.85);
|
|
}
|
|
|
|
.cyber-consequence-title .title-white {
|
|
color: #ffffff;
|
|
text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.cyber-consequence-desc {
|
|
font-size: 0.84rem;
|
|
color: #fca5a5;
|
|
line-height: 1.4;
|
|
max-width: 520px;
|
|
margin: 0 auto 16px auto;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Missing Issues Box */
|
|
.cyber-missing-box {
|
|
width: 100%;
|
|
background: rgba(0, 0, 0, 0.58);
|
|
border: 1.5px solid rgba(239, 68, 68, 0.45);
|
|
border-radius: 14px;
|
|
padding: 12px 14px;
|
|
box-shadow: inset 0 0 16px rgba(239, 68, 68, 0.1);
|
|
margin-bottom: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.cyber-missing-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid rgba(239, 68, 68, 0.25);
|
|
font-family: var(--font-display);
|
|
font-size: 0.82rem;
|
|
font-weight: 800;
|
|
color: #facc15;
|
|
letter-spacing: 0.8px;
|
|
text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
|
|
}
|
|
|
|
.cyber-hazard-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
.cyber-hazard-list::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.cyber-hazard-list::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.cyber-hazard-list::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(180deg, #ef4444 0%, #f59e0b 100%);
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
|
|
}
|
|
|
|
/* Cyber Hazard Card */
|
|
.cyber-hazard-card {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
background: rgba(22, 9, 9, 0.9);
|
|
border: 1px solid rgba(239, 68, 68, 0.45);
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.cyber-hazard-card:hover {
|
|
border-color: #ef4444;
|
|
box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
|
|
background: rgba(30, 12, 12, 0.95);
|
|
}
|
|
|
|
.cyber-hazard-card.distractor-card {
|
|
background: rgba(26, 16, 8, 0.9);
|
|
border-color: rgba(245, 158, 11, 0.5);
|
|
}
|
|
|
|
.hazard-card-icon-box {
|
|
width: 48px;
|
|
height: 48px;
|
|
min-width: 48px;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
border: 1px solid rgba(239, 68, 68, 0.35);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hazard-card-ppe-img {
|
|
width: 82%;
|
|
height: 82%;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
|
|
}
|
|
|
|
.hazard-card-fallback-icon {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.hazard-card-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.hazard-card-top-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.hazard-card-name {
|
|
font-family: var(--font-display);
|
|
font-size: 0.86rem;
|
|
font-weight: 800;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.hazard-card-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
padding: 2px 9px;
|
|
border-radius: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hazard-card-badge.missing-badge {
|
|
background: rgba(239, 68, 68, 0.25);
|
|
border: 1px solid #ef4444;
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.hazard-card-badge.distractor-badge {
|
|
background: rgba(245, 158, 11, 0.25);
|
|
border: 1px solid #f59e0b;
|
|
color: #fde047;
|
|
}
|
|
|
|
.badge-exclamation {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 13px;
|
|
height: 13px;
|
|
border-radius: 50%;
|
|
background: #ef4444;
|
|
color: #000;
|
|
font-size: 0.62rem;
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
}
|
|
|
|
.distractor-badge .badge-exclamation {
|
|
background: #f59e0b;
|
|
}
|
|
|
|
.hazard-card-desc {
|
|
font-size: 0.74rem;
|
|
color: #fca5a5;
|
|
line-height: 1.35;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Fix All Worker PPE Button */
|
|
.btn-cyber-fix {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
|
|
color: #ffffff;
|
|
border: 1.5px solid #ff4466;
|
|
border-radius: 14px;
|
|
padding: 13px 36px;
|
|
font-family: var(--font-display);
|
|
font-size: 1.08rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1.5px;
|
|
cursor: pointer;
|
|
box-shadow:
|
|
0 0 25px rgba(239, 68, 68, 0.65),
|
|
0 4px 14px rgba(0, 0, 0, 0.5);
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
user-select: none;
|
|
}
|
|
|
|
.btn-cyber-fix:hover {
|
|
transform: translateY(-2px);
|
|
filter: brightness(1.15);
|
|
box-shadow:
|
|
0 0 35px rgba(239, 68, 68, 0.9),
|
|
0 6px 18px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.btn-cyber-fix:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-fix-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
SUCCESS OVERLAY & CYBER HUD MODAL (EXACT MATCH TO REFERENCE UI)
|
|
========================================================================== */
|
|
|
|
.success-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 35;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(4, 12, 9, 0.76);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
animation: popOverlay 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
border: none;
|
|
}
|
|
|
|
.success-overlay.active {
|
|
display: flex;
|
|
}
|
|
|
|
.cyber-success-modal {
|
|
position: relative;
|
|
width: 95%;
|
|
max-width: 560px;
|
|
background-color: #06130e;
|
|
background-image:
|
|
radial-gradient(ellipse at 50% 15%, rgba(0, 255, 136, 0.12) 0%, transparent 60%),
|
|
radial-gradient(circle, rgba(0, 255, 136, 0.15) 1.2px, transparent 1.2px);
|
|
background-size: 100% 100%, 14px 14px;
|
|
background-position: center center, 0 0;
|
|
border: 2px solid #00e699;
|
|
border-radius: 26px;
|
|
padding: 44px 34px 30px 34px;
|
|
text-align: center;
|
|
box-shadow:
|
|
0 0 28px rgba(0, 230, 153, 0.45),
|
|
inset 0 0 24px rgba(0, 230, 153, 0.1),
|
|
0 24px 60px rgba(0, 0, 0, 0.85);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Side Flange Decorative Vents */
|
|
.cyber-flange {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
}
|
|
|
|
.flange-left {
|
|
left: 10px;
|
|
}
|
|
|
|
.flange-right {
|
|
right: 10px;
|
|
}
|
|
|
|
.vent-bar {
|
|
width: 4px;
|
|
height: 18px;
|
|
background: #00e699;
|
|
box-shadow: 0 0 6px #00e699;
|
|
border-radius: 1px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.flange-left .vent-bar {
|
|
transform: skewY(-35deg);
|
|
}
|
|
|
|
.flange-right .vent-bar {
|
|
transform: skewY(35deg);
|
|
}
|
|
|
|
/* Corner Notches */
|
|
.cyber-corner-notch {
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-color: #00ff88;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.notch-tl {
|
|
top: 8px;
|
|
left: 8px;
|
|
border-top: 3px solid #00ff88;
|
|
border-left: 3px solid #00ff88;
|
|
border-top-left-radius: 18px;
|
|
}
|
|
|
|
.notch-tr {
|
|
top: 8px;
|
|
right: 8px;
|
|
border-top: 3px solid #00ff88;
|
|
border-right: 3px solid #00ff88;
|
|
border-top-right-radius: 18px;
|
|
}
|
|
|
|
.notch-bl {
|
|
bottom: 8px;
|
|
left: 8px;
|
|
border-bottom: 3px solid #00ff88;
|
|
border-left: 3px solid #00ff88;
|
|
border-bottom-left-radius: 18px;
|
|
}
|
|
|
|
.notch-br {
|
|
bottom: 8px;
|
|
right: 8px;
|
|
border-bottom: 3px solid #00ff88;
|
|
border-right: 3px solid #00ff88;
|
|
border-bottom-right-radius: 18px;
|
|
}
|
|
|
|
/* Top Circular HUD Checkmark Badge */
|
|
.hud-check-badge-wrapper {
|
|
position: absolute;
|
|
top: -44px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 88px;
|
|
height: 88px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 5;
|
|
}
|
|
|
|
.hud-radar-ring {
|
|
position: absolute;
|
|
width: 120px;
|
|
height: 120px;
|
|
pointer-events: none;
|
|
animation: radarSpin 20s linear infinite;
|
|
}
|
|
|
|
.radar-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@keyframes radarSpin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.hud-check-circle {
|
|
width: 74px;
|
|
height: 74px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle at 35% 35%, #00e676 0%, #008744 65%, #004d26 100%);
|
|
border: 2.5px solid #00ff88;
|
|
box-shadow:
|
|
0 0 22px rgba(0, 255, 136, 0.9),
|
|
0 0 45px rgba(0, 230, 118, 0.5),
|
|
inset 0 0 12px rgba(255, 255, 255, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hud-check-svg {
|
|
width: 36px;
|
|
height: 36px;
|
|
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
|
|
}
|
|
|
|
/* Modal Inner Content */
|
|
.cyber-success-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
.cyber-success-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.85rem;
|
|
font-weight: 900;
|
|
letter-spacing: 2px;
|
|
margin-top: 14px;
|
|
margin-bottom: 3px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cyber-success-title .title-green {
|
|
color: #00e699;
|
|
text-shadow: 0 0 16px rgba(0, 230, 153, 0.65);
|
|
}
|
|
|
|
.cyber-success-title .title-white {
|
|
color: #ffffff;
|
|
text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.cyber-title-dash {
|
|
width: 32px;
|
|
height: 2.5px;
|
|
background: #00e699;
|
|
box-shadow: 0 0 8px #00e699;
|
|
border-radius: 2px;
|
|
margin: 4px auto 14px auto;
|
|
}
|
|
|
|
.cyber-success-desc {
|
|
font-size: 0.88rem;
|
|
color: #cbd5e1;
|
|
line-height: 1.45;
|
|
max-width: 440px;
|
|
margin: 0 auto 18px auto;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Safety Points Pill */
|
|
.cyber-points-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
background: rgba(18, 12, 3, 0.92);
|
|
border: 1.5px solid #f59e0b;
|
|
border-radius: 30px;
|
|
padding: 8px 24px;
|
|
box-shadow:
|
|
0 0 18px rgba(245, 158, 11, 0.45),
|
|
inset 0 0 10px rgba(245, 158, 11, 0.15);
|
|
margin-bottom: 22px;
|
|
}
|
|
|
|
.points-star {
|
|
color: #fbbf24;
|
|
font-size: 1.15rem;
|
|
text-shadow: 0 0 10px #f59e0b;
|
|
}
|
|
|
|
.points-value {
|
|
font-family: var(--font-display);
|
|
font-size: 1.18rem;
|
|
font-weight: 800;
|
|
color: #fbbf24;
|
|
letter-spacing: 1px;
|
|
text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
|
|
}
|
|
|
|
/* Next Scenario Button */
|
|
.btn-cyber-next {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(180deg, #00e699 0%, #00b377 100%);
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 13px 36px;
|
|
font-family: var(--font-display);
|
|
font-size: 1.05rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1.5px;
|
|
cursor: pointer;
|
|
box-shadow:
|
|
0 0 22px rgba(0, 230, 153, 0.6),
|
|
0 4px 14px rgba(0, 0, 0, 0.4);
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
user-select: none;
|
|
}
|
|
|
|
.btn-cyber-next:hover {
|
|
transform: translateY(-2px);
|
|
filter: brightness(1.15);
|
|
box-shadow:
|
|
0 0 30px rgba(0, 230, 153, 0.85),
|
|
0 6px 18px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.btn-cyber-next:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
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.15rem;
|
|
}
|
|
|
|
.locker-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.22rem;
|
|
font-weight: 800;
|
|
color: var(--safety-yellow);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.locker-subtitle {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.locker-instruction {
|
|
font-size: 0.74rem;
|
|
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 - 255px);
|
|
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: #0d1624;
|
|
border: 1px solid #1a293d;
|
|
border-radius: 8px;
|
|
padding: 8px 4px 6px 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
position: relative;
|
|
aspect-ratio: 1 / 1.15;
|
|
width: 100%;
|
|
outline: none;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
|
user-select: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ppe-item-card:hover {
|
|
background: #122035;
|
|
border-color: rgba(56, 189, 248, 0.75);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.28), inset 0 0 10px rgba(56, 189, 248, 0.08);
|
|
}
|
|
|
|
.ppe-item-card.equipped {
|
|
background: linear-gradient(180deg, rgba(14, 165, 233, 0.18) 0%, rgba(13, 22, 36, 0.95) 100%);
|
|
border-color: var(--safety-cyan);
|
|
box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 0 12px rgba(14, 165, 233, 0.15);
|
|
}
|
|
|
|
.ppe-item-card.equipped:hover {
|
|
border-color: #7dd3fc;
|
|
box-shadow: 0 0 20px rgba(56, 189, 248, 0.55), inset 0 0 14px rgba(14, 165, 233, 0.22);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.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.74rem;
|
|
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: 6px;
|
|
}
|
|
|
|
.btn-check-ppe {
|
|
display: none;
|
|
}
|
|
|
|
.btn-start-task {
|
|
background: var(--safety-yellow);
|
|
color: #000;
|
|
font-family: var(--font-display);
|
|
font-size: 1.15rem;
|
|
font-weight: 900;
|
|
letter-spacing: 0.8px;
|
|
padding: 13px 20px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
box-shadow: 0 4px 18px var(--glow-yellow);
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.btn-start-task:hover {
|
|
background: #fde047;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 26px var(--glow-yellow);
|
|
}
|
|
|
|
.btn-play-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
SCREEN 3: SUMMARY / COMPLETION VIEW (EXACT MATCH TO REFERENCE UI)
|
|
========================================================================== */
|
|
|
|
#screen-summary {
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24px 16px;
|
|
min-height: calc(100vh - 70px);
|
|
}
|
|
|
|
#screen-summary.active {
|
|
display: flex;
|
|
}
|
|
|
|
.cyber-summary-container {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 960px;
|
|
background-color: #0a111a;
|
|
background-image:
|
|
radial-gradient(ellipse at 50% 10%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
|
|
radial-gradient(circle, rgba(245, 158, 11, 0.12) 1.2px, transparent 1.2px);
|
|
background-size: 100% 100%, 16px 16px;
|
|
background-position: center center, 0 0;
|
|
border: 2px solid #f59e0b;
|
|
border-radius: 28px;
|
|
padding: 36px 36px 30px 36px;
|
|
box-shadow:
|
|
0 0 35px rgba(245, 158, 11, 0.45),
|
|
inset 0 0 25px rgba(245, 158, 11, 0.1),
|
|
0 25px 60px rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
text-align: center;
|
|
animation: popOverlay 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
/* Summary Flange Gold Vents */
|
|
.summary-flange .gold-vent-bar {
|
|
width: 4px;
|
|
height: 22px;
|
|
background: #f59e0b;
|
|
box-shadow: 0 0 6px #f59e0b;
|
|
border-radius: 1px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.flange-left.summary-flange .gold-vent-bar {
|
|
transform: skewY(-35deg);
|
|
}
|
|
|
|
.flange-right.summary-flange .gold-vent-bar {
|
|
transform: skewY(35deg);
|
|
}
|
|
|
|
/* Gold Corner Accents */
|
|
.gold-notch-tl {
|
|
top: 8px;
|
|
left: 8px;
|
|
border-top: 3.5px solid #fbbf24;
|
|
border-left: 3.5px solid #fbbf24;
|
|
border-top-left-radius: 20px;
|
|
}
|
|
|
|
.gold-notch-tr {
|
|
top: 8px;
|
|
right: 8px;
|
|
border-top: 3.5px solid #fbbf24;
|
|
border-right: 3.5px solid #fbbf24;
|
|
border-top-right-radius: 20px;
|
|
}
|
|
|
|
.gold-notch-bl {
|
|
bottom: 8px;
|
|
left: 8px;
|
|
border-bottom: 3.5px solid #fbbf24;
|
|
border-left: 3.5px solid #fbbf24;
|
|
border-bottom-left-radius: 20px;
|
|
}
|
|
|
|
.gold-notch-br {
|
|
bottom: 8px;
|
|
right: 8px;
|
|
border-bottom: 3.5px solid #fbbf24;
|
|
border-right: 3.5px solid #fbbf24;
|
|
border-bottom-right-radius: 20px;
|
|
}
|
|
|
|
/* Trophy Header */
|
|
.summary-trophy-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.trophy-artwork-box {
|
|
width: 140px;
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.trophy-laurel-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.7));
|
|
}
|
|
|
|
.summary-champion-title {
|
|
font-family: var(--font-display);
|
|
font-size: 2.1rem;
|
|
font-weight: 900;
|
|
letter-spacing: 2px;
|
|
margin: 0;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.summary-champion-title .title-white {
|
|
color: #ffffff;
|
|
text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.summary-champion-title .title-gold {
|
|
color: #fbbf24;
|
|
text-shadow: 0 0 18px rgba(245, 158, 11, 0.75);
|
|
}
|
|
|
|
.summary-champion-subtitle {
|
|
font-family: var(--font-display);
|
|
font-size: 1.02rem;
|
|
font-weight: 700;
|
|
color: #fde047;
|
|
letter-spacing: 1px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 3 Highlight Metric Cards */
|
|
.summary-metrics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.summary-stat-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px 18px;
|
|
border-radius: 14px;
|
|
text-align: left;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.summary-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.summary-stat-card.stat-green {
|
|
background: rgba(6, 22, 16, 0.9);
|
|
border: 1.5px solid #10b981;
|
|
box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), inset 0 0 12px rgba(16, 185, 129, 0.08);
|
|
}
|
|
|
|
.summary-stat-card.stat-cyan {
|
|
background: rgba(8, 22, 34, 0.9);
|
|
border: 1.5px solid #0ea5e9;
|
|
box-shadow: 0 0 16px rgba(14, 165, 233, 0.25), inset 0 0 12px rgba(14, 165, 233, 0.08);
|
|
}
|
|
|
|
.summary-stat-card.stat-gold {
|
|
background: rgba(26, 18, 6, 0.9);
|
|
border: 1.5px solid #f59e0b;
|
|
box-shadow: 0 0 16px rgba(245, 158, 11, 0.25), inset 0 0 12px rgba(245, 158, 11, 0.08);
|
|
}
|
|
|
|
.stat-icon-badge {
|
|
width: 44px;
|
|
height: 44px;
|
|
min-width: 44px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6px;
|
|
}
|
|
|
|
.icon-shield-green {
|
|
background: rgba(16, 185, 129, 0.18);
|
|
border: 1px solid rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.icon-clipboard-cyan {
|
|
background: rgba(14, 165, 233, 0.18);
|
|
border: 1px solid rgba(14, 165, 233, 0.4);
|
|
}
|
|
|
|
.icon-star-gold {
|
|
background: rgba(245, 158, 11, 0.18);
|
|
border: 1px solid rgba(245, 158, 11, 0.4);
|
|
}
|
|
|
|
.stat-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.stat-text-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-family: var(--font-display);
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.8px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.stat-green .stat-label { color: #6ee7b7; }
|
|
.stat-cyan .stat-label { color: #7dd3fc; }
|
|
.stat-gold .stat-label { color: #fcd34d; }
|
|
|
|
.stat-val {
|
|
font-family: var(--font-display);
|
|
font-size: 1.6rem;
|
|
font-weight: 900;
|
|
color: #ffffff;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.stat-stars-text {
|
|
color: #fbbf24;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.stat-sub {
|
|
font-size: 0.72rem;
|
|
color: var(--text-dim);
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.stat-green .stat-sub { color: #a7f3d0; }
|
|
.stat-cyan .stat-sub { color: #bae6fd; }
|
|
.stat-gold .stat-sub { color: #fef08a; }
|
|
|
|
/* Core Safety Workflow Dock */
|
|
.summary-workflow-dock {
|
|
background: rgba(0, 0, 0, 0.45);
|
|
border: 1.5px solid rgba(245, 158, 11, 0.35);
|
|
border-radius: 14px;
|
|
padding: 10px 16px 12px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.workflow-dock-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.dock-title-line {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.4) 100%);
|
|
}
|
|
|
|
.dock-title-line:last-child {
|
|
background: linear-gradient(90deg, rgba(245, 158, 11, 0.4) 0%, transparent 100%);
|
|
}
|
|
|
|
.dock-title-text {
|
|
font-family: var(--font-display);
|
|
font-size: 0.74rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1.5px;
|
|
color: #facc15;
|
|
text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
|
|
}
|
|
|
|
.workflow-steps-chain {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.workflow-step-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: #111a28;
|
|
border: 1px solid rgba(56, 189, 248, 0.25);
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
font-family: var(--font-display);
|
|
font-size: 0.76rem;
|
|
font-weight: 800;
|
|
color: #e2e8f0;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.step-dot {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.workflow-step-arrow {
|
|
color: #f59e0b;
|
|
font-weight: 900;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Scenarios Review Summary Box */
|
|
.summary-scenarios-review {
|
|
background: rgba(0, 0, 0, 0.55);
|
|
border: 1.5px solid rgba(245, 158, 11, 0.3);
|
|
border-radius: 14px;
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
.scenarios-review-heading {
|
|
font-family: var(--font-display);
|
|
font-size: 0.88rem;
|
|
font-weight: 800;
|
|
color: #ffffff;
|
|
margin-bottom: 8px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.summary-review-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.summary-review-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.review-icon-box {
|
|
width: 36px;
|
|
height: 36px;
|
|
min-width: 36px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.review-text-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.review-scenario-name {
|
|
font-family: var(--font-display);
|
|
font-size: 0.82rem;
|
|
font-weight: 800;
|
|
color: #facc15;
|
|
display: block;
|
|
}
|
|
|
|
.review-scenario-desc {
|
|
font-size: 0.73rem;
|
|
color: #cbd5e1;
|
|
line-height: 1.35;
|
|
margin: 2px 0 0 0;
|
|
}
|
|
|
|
.review-passed-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: rgba(16, 185, 129, 0.18);
|
|
border: 1.5px solid #10b981;
|
|
color: #10b981;
|
|
font-family: var(--font-display);
|
|
font-size: 0.78rem;
|
|
font-weight: 900;
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.passed-check {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Summary Bottom Action Buttons */
|
|
.summary-action-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.btn-summary-replay {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
|
|
color: #000000;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 13px 32px;
|
|
font-family: var(--font-display);
|
|
font-size: 1.05rem;
|
|
font-weight: 900;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
box-shadow:
|
|
0 0 22px rgba(245, 158, 11, 0.6),
|
|
0 4px 12px rgba(0, 0, 0, 0.4);
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
user-select: none;
|
|
}
|
|
|
|
.btn-summary-replay:hover {
|
|
transform: translateY(-2px);
|
|
filter: brightness(1.12);
|
|
box-shadow:
|
|
0 0 30px rgba(245, 158, 11, 0.85),
|
|
0 6px 16px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.btn-summary-cert {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: #0d1624;
|
|
color: #ffffff;
|
|
border: 1.5px solid rgba(245, 158, 11, 0.5);
|
|
border-radius: 12px;
|
|
padding: 13px 32px;
|
|
font-family: var(--font-display);
|
|
font-size: 1.05rem;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
user-select: none;
|
|
}
|
|
|
|
.btn-summary-cert:hover {
|
|
border-color: #fbbf24;
|
|
color: #fbbf24;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 6px 16px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.summary-btn-icon {
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
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;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
CERTIFICATE VIEWER MODAL & PRINT STYLING (EXACT MATCH TO REFERENCE)
|
|
========================================================================== */
|
|
|
|
.certificate-modal-card {
|
|
background: #0d1522;
|
|
border: 2px solid #f59e0b;
|
|
border-radius: 20px;
|
|
width: 95%;
|
|
max-width: 680px;
|
|
max-height: 92vh;
|
|
padding: 20px 24px;
|
|
box-shadow: 0 0 40px rgba(245, 158, 11, 0.4), 0 20px 60px rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
animation: popOverlay 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
.cert-modal-header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cert-modal-header-title h3 {
|
|
font-family: var(--font-display);
|
|
font-size: 1.25rem;
|
|
color: #fbbf24;
|
|
margin: 0;
|
|
}
|
|
|
|
.cert-header-icon {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.certificate-preview-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
max-height: calc(92vh - 160px);
|
|
padding: 4px;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.certificate-visual-frame {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 580px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.certificate-base-img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.certificate-modal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
padding-top: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cert-tip-hint {
|
|
font-size: 0.76rem;
|
|
color: var(--text-muted);
|
|
flex: 1;
|
|
}
|
|
|
|
.cert-print-btn {
|
|
padding: 10px 24px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
FULL PRINTABLE CERTIFICATE (PRINT & PDF OUTPUT)
|
|
========================================================================== */
|
|
|
|
.printable-certificate {
|
|
display: none;
|
|
}
|
|
|
|
@media print {
|
|
@page {
|
|
size: A4 portrait;
|
|
margin: 0;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
background: #000 !important;
|
|
height: 100% !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
body * {
|
|
visibility: hidden !important;
|
|
}
|
|
|
|
#printable-certificate, #printable-certificate * {
|
|
visibility: visible !important;
|
|
}
|
|
|
|
#printable-certificate {
|
|
display: flex !important;
|
|
position: fixed !important;
|
|
left: 0 !important;
|
|
top: 0 !important;
|
|
width: 100vw !important;
|
|
height: 100vh !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
background: #000 !important;
|
|
z-index: 999999 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.print-cert-wrapper {
|
|
position: relative !important;
|
|
width: 100vw !important;
|
|
height: 100vh !important;
|
|
max-height: 100vh !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
.print-cert-bg {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
object-fit: contain !important;
|
|
-webkit-print-color-adjust: exact !important;
|
|
print-color-adjust: exact !important;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
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;
|
|
}
|
|
.avatar-wrapper {
|
|
width: 270px;
|
|
height: 410px;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
CENTRAL SCREEN START COUNTDOWN OVERLAY (3, 2, 1, START!)
|
|
========================================================================== */
|
|
|
|
.countdown-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(4, 9, 18, 0.78);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
z-index: 99999;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.countdown-overlay.active {
|
|
display: flex;
|
|
animation: countdownFadeIn 0.25s ease forwards;
|
|
}
|
|
|
|
@keyframes countdownFadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.countdown-hud-card {
|
|
position: relative;
|
|
width: 320px;
|
|
height: 320px;
|
|
background: radial-gradient(circle at center, rgba(14, 25, 42, 0.96) 0%, rgba(6, 12, 22, 0.98) 100%);
|
|
border: 2px solid rgba(56, 189, 248, 0.55);
|
|
border-radius: 28px;
|
|
box-shadow:
|
|
0 0 35px rgba(56, 189, 248, 0.35),
|
|
inset 0 0 25px rgba(56, 189, 248, 0.12),
|
|
0 25px 60px rgba(0, 0, 0, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.countdown-radar-ring {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 240px;
|
|
height: 240px;
|
|
transform: translate(-50%, -50%);
|
|
border: 1.5px dashed rgba(56, 189, 248, 0.4);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
animation: radarRotate 8s linear infinite;
|
|
}
|
|
|
|
@keyframes radarRotate {
|
|
from { transform: translate(-50%, -50%) rotate(0deg); }
|
|
to { transform: translate(-50%, -50%) rotate(360deg); }
|
|
}
|
|
|
|
.countdown-corner {
|
|
position: absolute;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-color: #38bdf8;
|
|
border-style: solid;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.countdown-corner.c-tl {
|
|
top: 10px;
|
|
left: 10px;
|
|
border-width: 3px 0 0 3px;
|
|
border-top-left-radius: 8px;
|
|
}
|
|
|
|
.countdown-corner.c-tr {
|
|
top: 10px;
|
|
right: 10px;
|
|
border-width: 3px 3px 0 0;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
.countdown-corner.c-bl {
|
|
bottom: 10px;
|
|
left: 10px;
|
|
border-width: 0 0 3px 3px;
|
|
border-bottom-left-radius: 8px;
|
|
}
|
|
|
|
.countdown-corner.c-br {
|
|
bottom: 10px;
|
|
right: 10px;
|
|
border-width: 0 3px 3px 0;
|
|
border-bottom-right-radius: 8px;
|
|
}
|
|
|
|
.countdown-sub-header {
|
|
font-family: var(--font-display);
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
letter-spacing: 2px;
|
|
color: #38bdf8;
|
|
text-transform: uppercase;
|
|
z-index: 2;
|
|
}
|
|
|
|
.countdown-number-box {
|
|
width: 170px;
|
|
height: 170px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
.countdown-digit {
|
|
font-family: var(--font-display);
|
|
font-size: 6.5rem;
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
color: var(--safety-yellow);
|
|
text-shadow:
|
|
0 0 20px rgba(250, 204, 21, 0.8),
|
|
0 0 45px rgba(250, 204, 21, 0.4);
|
|
transform: scale(1);
|
|
transition: all 0.15s ease-out;
|
|
}
|
|
|
|
.countdown-digit.pop {
|
|
animation: countdownDigitPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
.countdown-digit.go-text {
|
|
font-size: 4.6rem;
|
|
color: #10b981;
|
|
text-shadow:
|
|
0 0 25px rgba(16, 185, 129, 0.9),
|
|
0 0 50px rgba(16, 185, 129, 0.5);
|
|
}
|
|
|
|
@keyframes countdownDigitPop {
|
|
0% {
|
|
transform: scale(0.4);
|
|
opacity: 0;
|
|
}
|
|
50% {
|
|
transform: scale(1.15);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.countdown-sub-tip {
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
letter-spacing: 1.5px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
z-index: 2;
|
|
}
|