ProductionGame/frontend/css/style.css

944 lines
19 KiB
CSS

:root {
--bg-main: #07090b;
--bg-card: #101418;
--bg-card-sub: #171d23;
--bg-header: #0b0e12;
--border-color: #242d36;
--border-accent: #384654;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-muted: #484f58;
--brand-gold: #eab308;
--neon-green: #22c55e;
--neon-cyan: #06b6d4;
--neon-purple: #a855f7;
--neon-red: #ef4444;
--font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
user-select: none;
}
html, body {
width: 100%;
min-height: 100%;
background-color: var(--bg-main);
color: var(--text-primary);
font-family: var(--font-ui);
display: flex;
justify-content: center;
overflow-x: clip;
}
/* App Main Container: Clean, native-feeling layout on both mobile & desktop */
#app-container {
width: 100%;
max-width: 640px; /* Comfortable max width on larger screens without feeling like a claustrophobic fake phone */
min-height: 100vh;
background: var(--bg-main);
display: flex;
flex-direction: column;
position: relative;
padding-bottom: 84px; /* Space for sticky bottom tab bar */
}
@media (min-width: 680px) {
#app-container {
border-left: 1px solid var(--border-color);
border-right: 1px solid var(--border-color);
}
}
/* Sticky Top Navigation & HUD Header (Cash, Bonds, Heat, Stash) */
#sticky-header {
position: sticky;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(11, 14, 18, 0.98);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-color);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
/* Status / Top Brand Bar */
#system-bar {
padding: 6px 14px;
display: flex;
justify-content: space-between;
align-items: center;
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
border-bottom: 1px solid rgba(36, 45, 54, 0.5);
}
.status-left, .status-right {
display: flex;
align-items: center;
gap: 8px;
}
.brand-tag {
font-weight: 800;
letter-spacing: 1px;
color: var(--brand-gold);
display: inline-flex;
align-items: center;
gap: 4px;
}
.secure-indicator {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--neon-green);
font-weight: bold;
}
.secure-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--neon-green);
box-shadow: 0 0 6px var(--neon-green);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.9); }
}
/* Hero Financial HUD */
#hud-summary {
padding: 10px 14px;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.hud-title {
font-family: var(--font-mono);
font-size: 0.68rem;
text-transform: uppercase;
color: var(--text-secondary);
letter-spacing: 0.8px;
}
.hud-cash-val {
font-family: var(--font-mono);
font-size: 1.55rem;
font-weight: 800;
color: var(--brand-gold);
text-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
line-height: 1.1;
}
.hud-rate-val {
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--neon-green);
margin-top: 2px;
}
.hud-bonds {
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.bonds-val {
font-family: var(--font-mono);
font-size: 1.05rem;
font-weight: bold;
color: var(--neon-cyan);
display: flex;
align-items: center;
gap: 4px;
}
/* Police Heat Bar */
#heat-container {
background: #090c0f;
padding: 4px 14px 6px;
display: flex;
flex-direction: column;
gap: 3px;
}
.heat-label-row {
display: flex;
justify-content: space-between;
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--text-secondary);
}
.heat-bar-track {
width: 100%;
height: 5px;
background: #1c232b;
border-radius: 3px;
overflow: hidden;
}
#heat-bar-fill {
width: 0%;
height: 100%;
background: linear-gradient(90deg, #22c55e 0%, #eab308 60%, #ef4444 100%);
transition: width 0.3s ease;
}
/* Quick Stash Overview Strip */
#quick-stash-strip {
background: #080b0e;
border-top: 1px solid rgba(36, 45, 54, 0.4);
padding: 6px 14px;
display: flex;
align-items: center;
gap: 8px;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
#quick-stash-strip::-webkit-scrollbar {
display: none;
}
.stash-strip-title {
font-family: var(--font-mono);
font-size: 0.62rem;
color: var(--text-secondary);
white-space: nowrap;
letter-spacing: 0.5px;
font-weight: 700;
}
.stash-strip-items {
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.stash-chip {
display: inline-flex;
align-items: center;
gap: 4px;
background: #111720;
border: 1px solid #232e3a;
border-radius: 6px;
padding: 2px 7px;
font-family: var(--font-mono);
font-size: 0.68rem;
color: var(--text-primary);
}
.stash-chip-dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.stash-chip-val {
font-weight: 700;
}
/* Buy Multiplier Selector Bar */
#buy-multiplier-bar {
background: #090c0f;
border-top: 1px solid rgba(36, 45, 54, 0.5);
padding: 6px 14px;
display: flex;
justify-content: space-between;
align-items: center;
}
.buy-multi-label {
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--text-secondary);
font-weight: 700;
letter-spacing: 0.5px;
}
.buy-multi-group {
display: flex;
gap: 4px;
}
.btn-multi-pill {
background: #141b22;
color: var(--text-secondary);
border: 1px solid #283442;
border-radius: 6px;
padding: 4px 10px;
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: 700;
cursor: pointer;
transition: all 0.15s;
}
.btn-multi-pill:hover {
color: var(--text-primary);
border-color: var(--border-accent);
}
.btn-multi-pill.active {
background: #252814;
border-color: var(--brand-gold);
color: var(--brand-gold);
box-shadow: 0 0 8px rgba(234, 179, 8, 0.25);
}
/* Nav Badge for unclaimed Trophies */
.nav-badge {
position: absolute;
top: 4px;
right: 22%;
background: var(--neon-red);
color: #fff;
font-size: 0.6rem;
font-weight: 800;
padding: 1px 5px;
border-radius: 10px;
min-width: 16px;
text-align: center;
box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
animation: pulse 1.8s infinite;
}
/* Milestone Indicator */
.milestone-badge {
display: inline-flex;
align-items: center;
gap: 3px;
font-family: var(--font-mono);
font-size: 0.65rem;
background: #121d26;
border: 1px solid #233546;
border-radius: 4px;
padding: 1px 6px;
color: var(--neon-cyan);
}
/* Trophy Cabinet & Achievements */
.trophy-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 8px;
position: relative;
overflow: hidden;
}
.trophy-card.completed {
border-color: #22c55e;
background: #0d1a14;
}
.trophy-card.claimable {
border-color: var(--brand-gold);
box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
animation: glow-gold 2s infinite alternate;
}
@keyframes glow-gold {
from { box-shadow: 0 0 6px rgba(234, 179, 8, 0.2); }
to { box-shadow: 0 0 16px rgba(234, 179, 8, 0.5); }
}
.trophy-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.trophy-stars {
color: var(--brand-gold);
font-size: 0.85rem;
letter-spacing: 2px;
}
.trophy-progress-track {
width: 100%;
height: 6px;
background: #161e27;
border-radius: 3px;
overflow: hidden;
}
.trophy-progress-fill {
height: 100%;
background: linear-gradient(90deg, #06b6d4, #22c55e);
transition: width 0.3s ease;
}
.btn-claim-reward {
background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
color: #000;
font-weight: 800;
font-family: var(--font-mono);
border: none;
border-radius: 8px;
padding: 8px 12px;
cursor: pointer;
text-align: center;
box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
transition: transform 0.1s, filter 0.15s;
}
.btn-claim-reward:active {
transform: scale(0.96);
}
/* Swiss Offshore Perk Shop */
.perk-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 10px;
}
.perk-card {
background: #0d1217;
border: 1px solid #1f2a36;
border-radius: 10px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.perk-card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.perk-lvl-badge {
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: bold;
color: var(--neon-cyan);
background: #101c26;
padding: 2px 8px;
border-radius: 4px;
border: 1px solid #1a3246;
}
.btn-perk-buy {
background: #122332;
border: 1px solid #234562;
color: var(--neon-cyan);
padding: 8px;
border-radius: 6px;
font-family: var(--font-mono);
font-weight: 700;
font-size: 0.75rem;
cursor: pointer;
transition: background 0.15s;
}
.btn-perk-buy:hover:not(:disabled) {
background: #18334a;
}
.btn-perk-buy:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* Clever Helpers Styling */
.helper-grid {
display: flex;
flex-direction: column;
gap: 12px;
}
.helper-card {
background: #0d131a;
border: 1px solid #1f2e3d;
border-radius: 12px;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
position: relative;
overflow: hidden;
}
.helper-card.unlocked {
border-color: #2563eb;
box-shadow: 0 0 16px rgba(37, 99, 235, 0.12);
}
.helper-card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.helper-status-badge {
font-family: var(--font-mono);
font-size: 0.68rem;
font-weight: 700;
padding: 3px 8px;
border-radius: 4px;
}
.helper-status-badge.active {
background: #064e3b;
color: #34d399;
border: 1px solid #059669;
}
.helper-status-badge.locked {
background: #1f2937;
color: #9ca3af;
border: 1px solid #374151;
}
/* ROI Advisor Dashboard */
.roi-dashboard {
background: #090e14;
border: 1px solid #1c2b38;
border-radius: 10px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.roi-target-highlight {
background: #111e2e;
border: 1px solid #38bdf8;
border-radius: 8px;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.roi-rank-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 8px;
border-bottom: 1px solid #16202a;
font-family: var(--font-mono);
font-size: 0.72rem;
}
.roi-rank-item:last-child {
border-bottom: none;
}
/* Portfolio Allocation Buttons (10%, 25%, 50%, 100%) */
.alloc-btn-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
margin-top: 6px;
}
.btn-alloc {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
border: 1px solid #334155;
color: #e2e8f0;
font-family: var(--font-mono);
font-size: 0.72rem;
font-weight: 700;
padding: 8px 4px;
border-radius: 6px;
cursor: pointer;
text-align: center;
transition: all 0.15s;
}
.btn-alloc:hover:not(:disabled) {
border-color: #38bdf8;
color: #38bdf8;
background: #1e3a5f;
}
.btn-alloc:active:not(:disabled) {
transform: scale(0.95);
}
.btn-alloc:disabled {
opacity: 0.35;
cursor: not-allowed;
}
/* Main Viewport Content */
#main-viewport {
flex: 1;
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
/* Bottom Tab Navigation Bar - Fixed at bottom of screen */
#bottom-nav {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 640px;
height: 68px;
background: rgba(11, 14, 18, 0.97);
backdrop-filter: blur(12px);
border-top: 1px solid var(--border-color);
display: flex;
justify-content: space-around;
align-items: center;
z-index: 50;
padding-bottom: env(safe-area-inset-bottom, 4px);
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}
.nav-tab {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
color: var(--text-secondary);
background: none;
border: none;
cursor: pointer;
font-size: 0.72rem;
font-family: var(--font-mono);
padding: 8px 0;
transition: color 0.15s, transform 0.1s;
}
.nav-tab:active {
transform: scale(0.92);
}
.nav-tab.active {
color: var(--brand-gold);
}
.nav-tab.active iconify-icon {
filter: drop-shadow(0 0 6px var(--brand-gold));
}
.nav-tab iconify-icon {
font-size: 1.5rem;
}
/* Card Components */
.card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 12px 14px;
position: relative;
overflow: hidden;
transition: border-color 0.2s, background-color 0.2s;
}
.card:hover {
border-color: var(--border-accent);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.card-title-group {
display: flex;
align-items: center;
gap: 10px;
}
.drug-icon-box {
width: 38px;
height: 38px;
border-radius: 8px;
background: var(--bg-card-sub);
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border-color);
flex-shrink: 0;
}
.drug-icon-box iconify-icon {
font-size: 1.55rem;
}
.card-title {
font-size: 0.98rem;
font-weight: 700;
letter-spacing: 0.3px;
}
.card-stats-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
background: var(--bg-card-sub);
border-radius: 8px;
padding: 8px 10px;
margin-bottom: 10px;
font-family: var(--font-mono);
font-size: 0.78rem;
}
.stat-item {
display: flex;
flex-direction: column;
}
.stat-label {
font-size: 0.65rem;
color: var(--text-secondary);
text-transform: uppercase;
}
.stat-value {
font-weight: 700;
color: var(--text-primary);
}
/* Touch-Optimized Action Buttons */
.btn-grid-actions {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 6px;
margin-bottom: 8px;
}
.btn-grid-auto {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.btn-tactical {
background: #181f26;
color: var(--text-primary);
border: 1px solid #2d3844;
border-radius: 8px;
padding: 9px 4px;
font-family: var(--font-mono);
font-size: 0.74rem;
font-weight: 600;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
transition: background 0.12s, border-color 0.12s, transform 0.05s;
text-align: center;
min-height: 48px; /* High tactile accessibility for thumbs */
}
.btn-tactical:active:not(:disabled) {
transform: scale(0.95);
background: #25313d;
}
.btn-tactical:disabled {
opacity: 0.4;
cursor: not-allowed;
filter: grayscale(0.7);
}
.btn-subtext {
font-size: 0.62rem;
color: var(--text-secondary);
}
.btn-primary-action {
background: #172c1f;
border-color: #2b5637;
color: #4ade80;
}
.btn-primary-action:hover:not(:disabled) {
background: #203f2c;
}
.btn-sell-action {
background: #2b2310;
border-color: #5c4b1a;
color: #facc15;
}
/* Locked Card State */
.card.locked {
background: #0d1014;
border-style: dashed;
}
.unlock-overlay-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 16px 0;
}
.btn-unlock {
background: #201a08;
border: 1px solid var(--brand-gold);
color: var(--brand-gold);
padding: 11px 20px;
border-radius: 8px;
font-family: var(--font-mono);
font-size: 0.86rem;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
box-shadow: 0 0 14px rgba(234, 179, 8, 0.15);
}
/* Modal Windows (Auth & Raids) */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.88);
backdrop-filter: blur(6px);
display: none;
align-items: center;
justify-content: center;
z-index: 100;
padding: 20px;
}
.modal-overlay.active {
display: flex;
}
.modal-content {
background: #10151c;
border: 2px solid var(--border-accent);
border-radius: 16px;
width: 100%;
max-width: 400px;
padding: 22px;
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 0 35px rgba(0,0,0,0.9);
}
.modal-header {
display: flex;
align-items: center;
gap: 10px;
}
.modal-title {
font-family: var(--font-mono);
font-size: 1.1rem;
font-weight: bold;
color: var(--text-primary);
}
.input-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.input-label {
font-size: 0.7rem;
color: var(--text-secondary);
font-family: var(--font-mono);
text-transform: uppercase;
}
.input-field {
background: #090c0f;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 10px 12px;
color: #fff;
font-family: var(--font-mono);
font-size: 0.9rem;
outline: none;
}
.input-field:focus {
border-color: var(--brand-gold);
}
/* Honeypot field: invisible to human users, accessible to bots */
.hp-trap {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
position: absolute !important;
left: -9999px !important;
}
/* Toast Messages */
#toast-container {
position: fixed;
top: 76px;
left: 50%;
transform: translateX(-50%);
width: 90%;
max-width: 580px;
z-index: 80;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast {
background: rgba(16, 21, 28, 0.96);
border: 1px solid var(--border-accent);
border-left: 4px solid var(--neon-green);
border-radius: 8px;
padding: 9px 12px;
font-size: 0.8rem;
font-family: var(--font-mono);
color: var(--text-primary);
box-shadow: 0 4px 16px rgba(0,0,0,0.6);
animation: slideDown 0.25s ease;
}
.toast.danger {
border-left-color: var(--neon-red);
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}