시나리오 내용 반영
This commit is contained in:
1 parent
d9287de729
commit
350bb92bf9
270 files changed
+198867
No files matched your search
@@ -0,0 +1,597 @@
|
||||
/* ============================================================
|
||||
DRONE FORMATION FLIGHT SIMULATOR - TACTICAL HUD STYLESHEET
|
||||
============================================================ */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');
|
||||
|
||||
:root {
|
||||
--bg-dark: #070a0f;
|
||||
--panel-bg: rgba(12, 18, 28, 0.72);
|
||||
--panel-border: rgba(0, 240, 255, 0.28);
|
||||
--panel-border-glow: rgba(0, 240, 255, 0.45);
|
||||
|
||||
--color-cyan: #00f0ff;
|
||||
--color-pink: #ff0055;
|
||||
--color-green: #00ff88;
|
||||
--color-amber: #ffb700;
|
||||
--color-text-main: #d8e5f2;
|
||||
--color-text-dim: #7a8fa6;
|
||||
|
||||
--font-head: 'Orbitron', sans-serif;
|
||||
--font-ui: 'Rajdhani', sans-serif;
|
||||
--font-mono: 'Share Tech Mono', monospace;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-dark);
|
||||
color: var(--color-text-main);
|
||||
font-family: var(--font-ui);
|
||||
overflow: hidden;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#canvas-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Vignette & scanline overlay */
|
||||
.hud-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
background: radial-gradient(circle at center, transparent 60%, rgba(3, 7, 12, 0.75) 100%);
|
||||
box-shadow: inset 0 0 100px rgba(0, 240, 255, 0.05);
|
||||
}
|
||||
|
||||
.hud-overlay::before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
|
||||
background-size: 100% 4px;
|
||||
opacity: 0.2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ================= HUD TOP HEADER ================= */
|
||||
.top-nav {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
z-index: 10;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
background: var(--panel-bg);
|
||||
border: 1px solid var(--panel-border);
|
||||
backdrop-filter: blur(14px);
|
||||
padding: 8px 18px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.1);
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: var(--color-cyan);
|
||||
box-shadow: 0 0 12px var(--color-cyan);
|
||||
border-radius: 2px;
|
||||
animation: pulseGlow 2s infinite alternate;
|
||||
}
|
||||
|
||||
.brand-title h1 {
|
||||
font-family: var(--font-head);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 2px;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.brand-title span {
|
||||
color: var(--color-cyan);
|
||||
font-size: 0.8rem;
|
||||
font-family: var(--font-mono);
|
||||
border-left: 1px solid var(--color-text-dim);
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.top-status-bar {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
background: var(--panel-bg);
|
||||
border: 1px solid var(--panel-border);
|
||||
backdrop-filter: blur(14px);
|
||||
padding: 6px 14px;
|
||||
border-radius: 4px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-green);
|
||||
box-shadow: 0 0 8px var(--color-green);
|
||||
}
|
||||
|
||||
.status-dot.warning {
|
||||
background: var(--color-amber);
|
||||
box-shadow: 0 0 8px var(--color-amber);
|
||||
}
|
||||
|
||||
/* ================= MAIN SIDE PANELS ================= */
|
||||
.side-panel {
|
||||
position: absolute;
|
||||
top: 72px;
|
||||
bottom: 86px;
|
||||
width: 320px;
|
||||
background: var(--panel-bg);
|
||||
border: 1px solid var(--panel-border);
|
||||
backdrop-filter: blur(16px);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-cyan) transparent;
|
||||
}
|
||||
|
||||
.side-panel::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
.side-panel::-webkit-scrollbar-thumb {
|
||||
background: var(--color-cyan);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.left-panel {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.right-panel {
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid rgba(0, 240, 255, 0.2);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.88rem;
|
||||
letter-spacing: 1.5px;
|
||||
color: var(--color-cyan);
|
||||
text-transform: uppercase;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* Drone Telemetry Cards */
|
||||
.drone-card {
|
||||
background: rgba(18, 25, 38, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 6px;
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.drone-card.leader {
|
||||
border-left: 4px solid var(--color-cyan);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.drone-name {
|
||||
font-family: var(--font-head);
|
||||
font-weight: 700;
|
||||
font-size: 0.82rem;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.callsign-tag {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.7rem;
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.telemetry-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.tele-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: rgba(7, 12, 18, 0.5);
|
||||
padding: 4px 6px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.tele-label {
|
||||
font-size: 0.65rem;
|
||||
color: var(--color-text-dim);
|
||||
font-family: var(--font-mono);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tele-val {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
|
||||
.progress-bar-bg {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
height: 100%;
|
||||
width: 90%;
|
||||
background: var(--color-green);
|
||||
border-radius: 3px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
/* Formation Distance Gauge */
|
||||
.formation-gauge-card {
|
||||
background: rgba(18, 25, 38, 0.7);
|
||||
border: 1px solid rgba(0, 240, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.gauge-title {
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 1px;
|
||||
color: var(--color-text-dim);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.gauge-distance {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.6rem;
|
||||
font-weight: 900;
|
||||
color: var(--color-cyan);
|
||||
text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
|
||||
}
|
||||
|
||||
.formation-status-text {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-green);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* ================= RIGHT PANEL CONTROLS ================= */
|
||||
.radar-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(7, 11, 18, 0.6);
|
||||
border: 1px solid rgba(0, 240, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#tactical-radar {
|
||||
display: block;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.control-label {
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 1px;
|
||||
color: var(--color-text-dim);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.formation-buttons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.btn-formation {
|
||||
background: rgba(18, 25, 38, 0.8);
|
||||
border: 1px solid rgba(0, 240, 255, 0.2);
|
||||
color: var(--color-text-main);
|
||||
padding: 7px 4px;
|
||||
border-radius: 4px;
|
||||
font-family: var(--font-ui);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-formation:hover {
|
||||
background: rgba(0, 240, 255, 0.15);
|
||||
border-color: var(--color-cyan);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-formation.active {
|
||||
background: var(--color-cyan);
|
||||
border-color: var(--color-cyan);
|
||||
color: #050b14;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
.slider-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.slider-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
-webkit-appearance: none;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 3px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-cyan);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 8px var(--color-cyan);
|
||||
}
|
||||
|
||||
.toggle-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: rgba(18, 25, 38, 0.6);
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 44px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.switch input { opacity: 0; width: 0; height: 0; }
|
||||
|
||||
.slider-toggle {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
transition: .3s;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.slider-toggle:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
left: 3px;
|
||||
bottom: 3px;
|
||||
background-color: white;
|
||||
transition: .3s;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
input:checked + .slider-toggle {
|
||||
background-color: var(--color-cyan);
|
||||
}
|
||||
|
||||
input:checked + .slider-toggle:before {
|
||||
transform: translateX(22px);
|
||||
background-color: #070a0f;
|
||||
}
|
||||
|
||||
/* ================= BOTTOM FLIGHT CONTROL BAR ================= */
|
||||
.bottom-bar {
|
||||
position: absolute;
|
||||
bottom: 16px;
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
background: var(--panel-bg);
|
||||
border: 1px solid var(--panel-border);
|
||||
backdrop-filter: blur(16px);
|
||||
border-radius: 8px;
|
||||
padding: 10px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
z-index: 10;
|
||||
box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
.flight-instruct {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.instruct-pill {
|
||||
background: rgba(0, 240, 255, 0.1);
|
||||
border: 1px solid rgba(0, 240, 255, 0.3);
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
color: var(--color-cyan);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cam-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-cam {
|
||||
background: rgba(18, 25, 38, 0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
color: var(--color-text-main);
|
||||
padding: 6px 12px;
|
||||
border-radius: 4px;
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-cam:hover {
|
||||
border-color: var(--color-cyan);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-cam.active {
|
||||
background: var(--color-cyan);
|
||||
border-color: var(--color-cyan);
|
||||
color: #050b14;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-action {
|
||||
background: rgba(255, 0, 85, 0.15);
|
||||
border: 1px solid rgba(255, 0, 85, 0.4);
|
||||
color: #ff5588;
|
||||
padding: 6px 14px;
|
||||
border-radius: 4px;
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-action:hover {
|
||||
background: rgba(255, 0, 85, 0.3);
|
||||
color: #fff;
|
||||
box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
|
||||
}
|
||||
|
||||
/* Mouse targeting 3D reticle indicator */
|
||||
.target-crosshair {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: 1px dashed var(--color-cyan);
|
||||
border-radius: 50%;
|
||||
z-index: 5;
|
||||
opacity: 0.8;
|
||||
transition: width 0.15s, height 0.15s;
|
||||
}
|
||||
|
||||
.target-crosshair::before, .target-crosshair::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background: var(--color-cyan);
|
||||
}
|
||||
.target-crosshair::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
|
||||
.target-crosshair::after { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
|
||||
|
||||
@keyframes pulseGlow {
|
||||
from { box-shadow: 0 0 6px var(--color-cyan); }
|
||||
to { box-shadow: 0 0 18px var(--color-cyan); }
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.side-panel { width: 260px; }
|
||||
.flight-instruct { display: none; }
|
||||
}
|
||||
Reference in new issue
Block a user