mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 19:28:03 +00:00
520 lines
9.7 KiB
CSS
520 lines
9.7 KiB
CSS
/**
|
|
* RFID Minigame CSS
|
|
* RFID Flipper-inspired RFID reader/cloner interface (Pixel Art Style)
|
|
*/
|
|
|
|
/* Container */
|
|
.rfid-minigame-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.rfid-minigame-game-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* RFID Flipper Device */
|
|
.flipper-zero-frame {
|
|
width: 400px;
|
|
height: 550px;
|
|
background: #FF8200;
|
|
clip-path: polygon(
|
|
0px calc(100% - 10px),
|
|
2px calc(100% - 10px),
|
|
2px calc(100% - 6px),
|
|
4px calc(100% - 6px),
|
|
4px calc(100% - 4px),
|
|
6px calc(100% - 4px),
|
|
6px calc(100% - 2px),
|
|
10px calc(100% - 2px),
|
|
10px 100%,
|
|
calc(100% - 10px) 100%,
|
|
calc(100% - 10px) calc(100% - 2px),
|
|
calc(100% - 6px) calc(100% - 2px),
|
|
calc(100% - 6px) calc(100% - 4px),
|
|
calc(100% - 4px) calc(100% - 4px),
|
|
calc(100% - 4px) calc(100% - 6px),
|
|
calc(100% - 2px) calc(100% - 6px),
|
|
calc(100% - 2px) calc(100% - 10px),
|
|
100% calc(100% - 10px),
|
|
100% 10px,
|
|
calc(100% - 2px) 10px,
|
|
calc(100% - 2px) 6px,
|
|
calc(100% - 4px) 6px,
|
|
calc(100% - 4px) 4px,
|
|
calc(100% - 6px) 4px,
|
|
calc(100% - 6px) 2px,
|
|
calc(100% - 10px) 2px,
|
|
calc(100% - 10px) 0px,
|
|
10px 0px,
|
|
10px 2px,
|
|
6px 2px,
|
|
6px 4px,
|
|
4px 4px,
|
|
4px 6px,
|
|
2px 6px,
|
|
2px 10px,
|
|
0px 10px
|
|
);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Header */
|
|
.flipper-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.flipper-logo {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: white;
|
|
letter-spacing: 2px;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.flipper-battery {
|
|
font-size: 16px;
|
|
color: white;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Screen */
|
|
.flipper-screen {
|
|
flex: 1;
|
|
background: #333;
|
|
border: 2px solid rgba(0, 0, 0, 0.8);
|
|
padding: 15px;
|
|
color: white;
|
|
font-size: 16px;
|
|
overflow-y: auto;
|
|
overflow-y: hidden;
|
|
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Breadcrumb */
|
|
.flipper-breadcrumb {
|
|
font-size: 14px;
|
|
color: #FFA500;
|
|
margin-bottom: 15px;
|
|
font-weight: bold;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Menu */
|
|
.flipper-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.flipper-menu-item {
|
|
padding: 8px 10px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
user-select: none;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.flipper-menu-item:hover {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* Info Text */
|
|
.flipper-info {
|
|
color: white;
|
|
margin: 10px 0;
|
|
text-align: center;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.flipper-info-dim {
|
|
color: #888;
|
|
margin: 10px 0;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Card List */
|
|
.flipper-card-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-top: 15px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Card Name */
|
|
.flipper-card-name {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #FFA500;
|
|
margin: 10px 0;
|
|
text-align: center;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
/* Card Data */
|
|
.flipper-card-data {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 2px solid rgba(0, 0, 0, 0.5);
|
|
padding: 15px;
|
|
margin: 15px 0;
|
|
font-size: 15px;
|
|
line-height: 1.8;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.flipper-card-data div {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
/* Buttons */
|
|
.flipper-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: auto;
|
|
padding-top: 15px;
|
|
}
|
|
|
|
.flipper-button {
|
|
flex: 1;
|
|
padding: 12px;
|
|
background: #FF8200;
|
|
color: white;
|
|
border: 2px solid rgba(0, 0, 0, 0.3);
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.flipper-button:hover {
|
|
background: #FFA500;
|
|
transform: translateY(-2px);
|
|
border-color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.flipper-button-secondary {
|
|
background: #555;
|
|
}
|
|
|
|
.flipper-button-secondary:hover {
|
|
background: #777;
|
|
}
|
|
|
|
.flipper-button-back {
|
|
margin-top: auto;
|
|
padding: 10px;
|
|
color: #FFA500;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
user-select: none;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.flipper-button-back:hover {
|
|
color: white;
|
|
}
|
|
|
|
/* NFC Waves */
|
|
.rfid-nfc-waves-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.rfid-nfc-icon {
|
|
font-size: 48px;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
transform: scale(1.1);
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
.rfid-nfc-waves {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.rfid-nfc-wave {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid #FF8200;
|
|
border-radius: 50%;
|
|
animation: wave 1.5s infinite;
|
|
}
|
|
|
|
@keyframes wave {
|
|
0% {
|
|
width: 20px;
|
|
height: 20px;
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
width: 100px;
|
|
height: 100px;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Progress Bar */
|
|
.rfid-progress-container {
|
|
width: 100%;
|
|
height: 20px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 2px solid rgba(0, 0, 0, 0.5);
|
|
overflow: hidden;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.rfid-progress-bar {
|
|
height: 100%;
|
|
background: #FF8200;
|
|
transition: width 0.1s linear, background-color 0.3s;
|
|
}
|
|
|
|
/* Emulation */
|
|
.rfid-emulate-icon {
|
|
font-size: 64px;
|
|
text-align: center;
|
|
margin: 20px 0;
|
|
animation: pulse 1.5s infinite;
|
|
}
|
|
|
|
.flipper-emulating {
|
|
color: #00FF00;
|
|
text-align: center;
|
|
margin: 15px 0;
|
|
font-weight: bold;
|
|
animation: blink 1s infinite;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 50%, 100% {
|
|
opacity: 1;
|
|
}
|
|
25%, 75% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
/* Success/Error Messages */
|
|
.flipper-success,
|
|
.flipper-error {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.flipper-success-icon,
|
|
.flipper-error-icon {
|
|
font-size: 72px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.flipper-success-icon {
|
|
color: #00FF00;
|
|
}
|
|
|
|
.flipper-error-icon {
|
|
color: #FF0000;
|
|
}
|
|
|
|
.flipper-success-message,
|
|
.flipper-error-message {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.flipper-success-message {
|
|
color: #00FF00;
|
|
}
|
|
|
|
.flipper-error-message {
|
|
color: #FF0000;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
.flipper-screen::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.flipper-screen::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-left: 2px solid rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.flipper-screen::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border: 2px solid #333;
|
|
}
|
|
|
|
.flipper-screen::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.flipper-card-list::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.flipper-card-list::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-left: 2px solid rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.flipper-card-list::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border: 2px solid #333;
|
|
}
|
|
|
|
.flipper-card-list::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* Protocol-Specific Displays */
|
|
.flipper-protocol-header {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 2px solid rgba(255, 255, 255, 0.15);
|
|
padding: 12px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.protocol-header-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.protocol-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.protocol-name {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: white;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.protocol-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
color: #AAA;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.security-badge {
|
|
padding: 3px 8px;
|
|
border: 2px solid rgba(0, 0, 0, 0.3);
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
.security-badge.security-low {
|
|
background: #FF6B6B;
|
|
color: white;
|
|
}
|
|
|
|
.security-badge.security-medium {
|
|
background: #4ECDC4;
|
|
color: white;
|
|
}
|
|
|
|
.security-badge.security-high {
|
|
background: #95E1D3;
|
|
color: #333;
|
|
}
|
|
|
|
.flipper-menu-item-dim {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.flipper-menu-item-dim:hover {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Attack Progress */
|
|
#attack-status {
|
|
font-size: 14px;
|
|
margin-top: 10px;
|
|
color: #FFA500;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
#attack-percentage {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: white;
|
|
font-family: 'VT323', monospace;
|
|
}
|
|
|
|
#attack-progress-bar {
|
|
transition: width 0.5s ease, background-color 0.3s;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 500px) {
|
|
.flipper-zero-frame {
|
|
width: 90%;
|
|
height: 80vh;
|
|
min-height: 500px;
|
|
}
|
|
}
|