@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', 'Orbitron', monospace, sans-serif;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cyberpunk-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

.cyber-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 255, 255, 0) 50%,
    rgba(0, 255, 255, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scanlines 8s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.cyber-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(0, 255, 255, 0.1);
  pointer-events: none;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: #0ff;
}

.cyber-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #0ff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: #f0f;
  animation-delay: 0.2s;
}

.loader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #ff0;
  animation-delay: 0.4s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-content p {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

.cyber-game-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(10, 10, 10, 0.95);
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.cyber-game-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: -1;
  opacity: 0;
  display: none;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cyber-header {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.9) 0%, rgba(0, 10, 20, 0.95) 100%);
  border-bottom: 2px solid #0ff;
  flex-shrink: 0;
  overflow: hidden;
}

.header-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #0ff;
  z-index: 10;
}

.header-corner.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  box-shadow: -5px -5px 15px rgba(0, 255, 255, 0.5);
}

.header-corner.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  box-shadow: 5px -5px 15px rgba(0, 255, 255, 0.5);
}

.cyber-header-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  position: relative;
  z-index: 5;
}

.cyber-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0ff, transparent);
  animation: scanlineTop 2s linear infinite;
}

@keyframes scanlineTop {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.header-left {
  position: relative;
  margin-right: 20px;
}

.cyber-avatar {
  width: 50px;
  height: 50px;
  border-radius: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  border: 2px solid #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.avatar-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  border: 2px solid #f0f;
  animation: avatarPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes avatarPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.header-center {
  flex: 1;
  text-align: center;
}

.cyber-title {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
  letter-spacing: 4px;
  margin-bottom: 2px;
}

.cyber-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: #0ff;
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  gap: 10px;
}

.cyber-btn {
  width: 45px;
  height: 45px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #0ff;
  color: #0ff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cyber-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  transform: scale(1.1);
}

.cyber-btn .btn-icon {
  filter: drop-shadow(0 0 5px #0ff);
}

.cyber-chat-container {
  flex: 1;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #0ff transparent;
}

.cyber-chat-container::-webkit-scrollbar {
  width: 8px;
}

.cyber-chat-container::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
}

.cyber-chat-container::-webkit-scrollbar-thumb {
  background: #0ff;
  box-shadow: 0 0 10px #0ff;
}

.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.start-overlay.ready {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-content {
  text-align: center;
  max-width: 600px;
  padding: 20px;
}

.cyber-logo {
  margin-bottom: 30px;
}

.cyber-logo h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #0ff;
  text-shadow: 
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 30px rgba(0, 255, 255, 0.8);
  letter-spacing: 2px;
  margin-bottom: 15px;
  animation: glitchText 3s infinite;
  line-height: 1.2;
}

@keyframes glitchText {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 2px); }
  94% { transform: translate(2px, -2px); }
  96% { transform: translate(-2px, -2px); }
  98% { transform: translate(2px, 2px); }
}

.cyber-logo-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ff, transparent);
  margin: 10px auto;
  box-shadow: 0 0 10px #0ff;
}

.logo-subtitle {
  font-size: 13px;
  color: #0ff;
  letter-spacing: 3px;
  opacity: 0.8;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.start-overlay p {
  margin: 30px 0;
  color: #0ff;
  font-size: 16px;
  opacity: 0.7;
}

.start-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.cyber-start-btn,
.start-btn {
  position: relative;
  padding: 18px 40px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #0ff;
  color: #0ff;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Rajdhani', monospace;
  letter-spacing: 3px;
  cursor: pointer;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 220px;
}

.cyber-start-btn:hover,
.start-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  transform: scale(1.05);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: glitch 5s infinite;
  z-index: 1;
}

@keyframes glitch {
  0%, 90%, 100% { opacity: 0; }
  92% { opacity: 1; transform: translate(-3px, 3px); color: #f0f; }
  94% { opacity: 1; transform: translate(3px, -3px); color: #ff0; }
  96% { opacity: 0; }
}

.save-info {
  margin-top: 8px;
  font-size: 14px;
  color: #9af6ff;
  opacity: 0.9;
  letter-spacing: 1px;
}

.message {
  max-width: 70%;
  margin: 15px 0;
  padding: 15px 20px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
  border: 1px solid;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.message.visible {
  opacity: 1;
  transform: translateY(0);
}

.message.left {
  align-self: flex-start;
  background: rgba(255, 204, 0, 0.1);
  color: #fc0;
  border-color: #fc0;
  clip-path: polygon(3% 0%, 100% 0%, 100% 85%, 97% 100%, 0% 100%, 0% 15%);
  box-shadow: 
    0 0 15px rgba(255, 204, 0, 0.3),
    inset 0 0 15px rgba(255, 204, 0, 0.1);
}

.message.right {
  align-self: flex-end;
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
  border-color: #0ff;
  clip-path: polygon(0% 0%, 97% 0%, 100% 15%, 100% 100%, 3% 100%, 0% 85%);
  box-shadow: 
    0 0 15px rgba(0, 255, 255, 0.3),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.message img {
  max-width: 100%;
  width: 250px;
  border: 2px solid #0ff;
  cursor: pointer;
  display: block;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.message img:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  transform: scale(1.02);
}

.choice-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 15px;
  flex-wrap: wrap;
}

.choice-btn {
  padding: 15px 30px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #0ff;
  color: #0ff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.choice-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.choice-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  transform: scale(1.05);
}

.choice-btn:hover::before {
  width: 100%;
  height: 100%;
}

.restart-btn {
  display: block;
  margin: 20px auto;
  padding: 15px 35px;
  background: rgba(255, 0, 255, 0.1);
  border: 2px solid #f0f;
  color: #f0f;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  letter-spacing: 2px;
  cursor: pointer;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.restart-btn:hover {
  background: rgba(255, 0, 255, 0.3);
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid #0ff;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
  z-index: 1001;
  overflow: hidden;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
}

.modal img {
  max-width: 100%;
  max-height: 80vh;
  border: 2px solid #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(255, 0, 255, 0.3);
  border: 2px solid #f0f;
  color: #f0f;
  font-size: 24px;
  cursor: pointer;
  clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.modal-close:hover {
  background: rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 30px rgba(255, 0, 255, 1);
  transform: scale(1.1);
}

.gallery-modal-content {
  max-width: 95%;
  max-height: 95%;
  background: rgba(10, 10, 10, 0.98);
}

.gallery-header {
  padding: 25px;
  text-align: center;
  background: rgba(0, 20, 40, 0.9);
  border-bottom: 2px solid #0ff;
}

.gallery-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  color: #0ff;
  letter-spacing: 4px;
  text-shadow: 0 0 20px #0ff;
}

.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0ff transparent;
}

.gallery-content::-webkit-scrollbar {
  width: 10px;
}

.gallery-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
}

.gallery-content::-webkit-scrollbar-thumb {
  background: #0ff;
  box-shadow: 0 0 10px #0ff;
}

.gallery-content img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 2px solid #0ff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.gallery-content img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 255, 1);
}

audio {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

.age-warning{
  color:#e8fdff !important;
  font-family:'Rajdhani',sans-serif;
  font-weight:600;
  font-size: clamp(16px, 2vmin, 22px);
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0,255,255,0.35);
  margin: 8px 14px;
  display:inline-block;
}

.start-content .game-logo h2,
.start-content .cyber-logo h2 {
  color: #0ff !important;
  text-shadow: 0 0 14px rgba(0,255,255,0.65), 0 0 36px rgba(0,255,255,0.32);
  letter-spacing: 2px;
  font-weight: 800;
}

/* === LOCK SCREEN === */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.lock-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.lock-screen.unlocking {
  opacity: 0;
  pointer-events: none;
}

.lock-content {
  text-align: center;
  color: #0ff;
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* ============================================ */
/* BREACH PROTOCOL LOCK SCREEN - CYBERPUNK STYLE */
/* ============================================ */

.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: 'Orbitron', monospace;
}

.lock-content {
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 10, 20, 0.98) 100%);
  border: 2px solid #0ff;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

.breach-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #0ff;
  margin-bottom: 20px;
}

.breach-title {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 900;
  color: #0ff;
  text-shadow: 0 0 20px #0ff;
  letter-spacing: 4px;
}

.breach-timer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.breach-timer-label {
  font-size: clamp(10px, 1.5vw, 14px);
  color: #0ff;
  opacity: 0.7;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.breach-timer {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #ffff00;
  text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00;
  font-family: 'Orbitron', monospace;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.breach-main {
  display: flex;
  gap: 30px;
  flex: 1;
  overflow: hidden;
}

.breach-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.breach-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.matrix-label {
  font-size: clamp(16px, 2vw, 20px);
  color: #ffff00;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.breach-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1.5vw, 15px);
  background: rgba(0, 0, 0, 0.8);
  padding: clamp(15px, 3vw, 25px);
  border: 2px solid #0ff;
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.2);
  flex: 1;
  max-height: 550px;
}

.matrix-cell {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(0, 100, 150, 0.3) 0%, rgba(0, 50, 100, 0.4) 100%);
  border: 2px solid rgba(0, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  color: #0ff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px #0ff;
  user-select: none;
}

.matrix-cell:hover {
  background: linear-gradient(135deg, rgba(0, 150, 200, 0.5) 0%, rgba(0, 100, 150, 0.6) 100%);
  border-color: #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  transform: scale(1.05);
}

.matrix-cell.active {
  background: linear-gradient(135deg, #0ff 0%, #00ccff 100%);
  color: #000;
  border-color: #ffff00;
  box-shadow: 0 0 30px #0ff, inset 0 0 20px rgba(255, 255, 255, 0.5);
  animation: cellPulse 0.5s ease;
}

.matrix-cell.selected {
  background: linear-gradient(135deg, #ffff00 0%, #ffcc00 100%);
  color: #000;
  border-color: #0ff;
  box-shadow: 0 0 25px #ffff00;
}

.matrix-cell.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.matrix-cell.highlight-row,
.matrix-cell.highlight-col {
  border-color: rgba(255, 255, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
}

@keyframes cellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.breach-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 20px 30px;
  background: rgba(255, 255, 0, 0.15);
  border: 2px solid rgba(255, 255, 0, 0.6);
  border-radius: 10px;
  font-size: clamp(14px, 2.2vw, 18px);
  color: #ffff00;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.help-icon {
  font-size: clamp(24px, 3vw, 30px);
  flex-shrink: 0;
}

.sequence-label,
.buffer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1.8vw, 18px);
  color: #0ff;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.label-icon {
  font-size: clamp(16px, 2vw, 22px);
}

.breach-sequence-container,
.breach-buffer-container {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border: 2px solid #0ff;
  border-radius: 5px;
}

.breach-target {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.target-code {
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3) 0%, rgba(200, 0, 200, 0.4) 100%);
  border: 2px solid #f0f;
  color: #f0f;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px #f0f;
  border-radius: 3px;
}

.breach-buffer {
  display: flex;
  gap: 10px;
  min-height: 60px;
  flex-wrap: wrap;
  align-items: center;
}

.buffer-code {
  padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(0, 200, 200, 0.4) 100%);
  border: 2px solid #0ff;
  color: #0ff;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px #0ff;
  border-radius: 3px;
  animation: bufferAppear 0.3s ease;
}

.buffer-code.correct {
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  border-color: #00ff00;
  color: #000;
  box-shadow: 0 0 20px #00ff00;
}

@keyframes bufferAppear {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.breach-status {
  margin-top: auto;
  padding: 15px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #0ff;
  border-radius: 5px;
  text-align: center;
  font-size: clamp(14px, 2vw, 18px);
  color: #0ff;
  font-weight: 700;
  letter-spacing: 2px;
}

.breach-status.success {
  background: rgba(0, 255, 0, 0.2);
  border-color: #0f0;
  color: #0f0;
  animation: statusSuccess 0.5s ease;
}

.breach-status.failed {
  background: rgba(255, 0, 0, 0.2);
  border-color: #f00;
  color: #f00;
  animation: statusFailed 0.5s ease;
}

@keyframes statusSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes statusFailed {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}


/* ============================================ */
/* МОБИЛЬНАЯ ВЕРСИЯ - ТОЛЬКО ДЛЯ ТЕЛЕФОНОВ */
/* ============================================ */
@media (pointer: coarse) and (max-width: 768px), 
       (max-width: 768px) {
  
  /* Полностью скрыть декоративный фон на телефонах */
  .cyberpunk-background,
  .cyber-grid,
  .cyber-scanlines,
  .cyber-vignette,
  #matrix-canvas {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* HTML и Body на весь экран - КРИТИЧЕСКИ ВАЖНО */
  html {
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    position: fixed !important;
    overscroll-behavior: none !important;
  }
  
  body {
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overscroll-behavior: none !important;
  }

  /* Игра растягивается на 100% ВЕСЬ ЭКРАН телефона - АГРЕССИВНО */
  .cyber-game-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Убрать декоративную рамку на телефонах */
  .cyber-game-wrapper::before {
    display: none !important;
  }

  /* Скрыть угловые декорации на телефонах */
  .header-corner {
    display: none !important;
  }

  /* Адаптация хедера для телефона */
  .cyber-header {
    height: 70px;
    width: 100%;
  }

  .cyber-header-content {
    padding: 0 15px;
    width: 100%;
  }

  .cyber-avatar {
    width: 45px;
    height: 45px;
  }

  .header-left {
    margin-right: 15px;
  }

  .cyber-title {
    font-size: clamp(16px, 4vw, 20px);
    letter-spacing: 2px;
  }

  .cyber-subtitle {
    font-size: 10px;
  }

  .cyber-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .header-controls {
    gap: 8px;
  }

  /* Чат на весь доступный экран */
  .cyber-chat-container {
    padding: 15px;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Адаптация сообщений */
  .message {
    max-width: 85%;
    font-size: 14px;
    padding: 12px 16px;
  }

  /* Адаптация кнопок выбора */
  .choice-container {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .choice-btn {
    min-width: auto;
    width: 100%;
    padding: 14px 25px;
    font-size: 15px;
  }

  /* Адаптация стартового экрана */
  .start-overlay {
    width: 100%;
    height: 100%;
  }

  .start-content {
    max-width: 90%;
    padding: 15px;
    width: 100%;
  }

  .cyber-logo h2 {
    font-size: clamp(22px, 6vw, 32px);
    letter-spacing: 1px;
  }

  .logo-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .start-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .cyber-start-btn,
  .start-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    min-width: auto;
  }

  /* Адаптация галереи */
  .gallery-content {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 20px;
  }

  .gallery-content img {
    height: 120px;
  }

  .gallery-header h3 {
    font-size: 22px;
    letter-spacing: 3px;
  }

  /* Адаптация модального окна */
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 20px;
  }

  /* СУПЕР КОМПАКТНАЯ ВЕРСИЯ - Экран блокировки для телефонов */
  .lock-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .lock-content {
    padding: 2px !important; /* МИНИМУМ */
    height: 100% !important; /* НА ВЕСЬ ЭКРАН */
    max-width: 100vw !important;
    min-height: 100vh !important; /* ЗАПОЛНЯЕМ ВЕСЬ ЭКРАН */
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* РАСТЯГИВАЕМ МЕЖДУ */
  }
  
  .breach-header {
    flex-direction: row !important; /* В РЯД */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2px !important; /* МИНИМУМ */
    margin-bottom: 2px !important; /* МИНИМУМ */
    padding: 2px 3px !important; /* МИНИМУМ */
    flex-shrink: 0 !important;
  }
  
  .breach-title {
    font-size: clamp(8px, 2.2vw, 10px) !important; /* ЕЩЕ МЕНЬШЕ! */
    padding: 1px 2px !important; /* МИНИМУМ */
  }
  
  .breach-timer-container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 3px !important;
  }
  
  .breach-timer-label {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* СУПЕР МЕЛКИЙ */
    white-space: nowrap !important;
  }
  
  .breach-timer {
    font-size: clamp(11px, 2.8vw, 14px) !important; /* КОМПАКТНЫЙ */
    padding: 1px 3px !important;
  }
  
  .breach-main {
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important; /* РАСТЯГИВАЕМ */
    display: flex !important;
  }
  
  .breach-left {
    flex: 1 !important; /* РАСТЯГИВАЕМ МАТРИЦУ */
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .breach-right {
    flex: none !important;
    width: 100% !important;
  }
  
  .matrix-label {
    font-size: clamp(7px, 1.8vw, 9px) !important; /* МЕНЬШЕ */
    margin-bottom: 1px !important; /* МИНИМУМ */
    padding: 1px !important;
    flex-shrink: 0 !important;
  }
  
  .breach-matrix {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(5, 1fr) !important;
    gap: 1px !important; /* КНОПКИ БЛИЖЕ! */
    padding: 3px !important;
    flex: 1 !important; /* РАСТЯГИВАЕМ НА ДОСТУПНОЕ МЕСТО */
    width: 100% !important;
    max-height: 55vh !important; /* ЕЩЁ БОЛЬШЕ! */
  }
  
  .matrix-cell {
    aspect-ratio: 1 !important;
    font-size: clamp(9px, 2.5vw, 13px) !important; /* БОЛЬШЕ ШРИФТ */
    min-height: 35px !important; /* УВЕЛИЧИЛ ЕЩЁ */
    max-height: 60px !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .breach-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }
  
  .breach-sequence-container,
  .breach-buffer-container {
    padding: 3px !important;
    margin-bottom: 2px !important;
  }
  
  .sequence-label,
  .buffer-label {
    font-size: clamp(7px, 1.8vw, 9px) !important;
    margin-bottom: 1px !important;
    gap: 2px !important;
    padding: 1px !important;
  }
  
  .label-icon {
    font-size: clamp(9px, 2.2vw, 11px) !important;
  }
  
  .breach-target,
  .breach-buffer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
  }
  
  .target-code,
  .buffer-code {
    font-size: clamp(8px, 2vw, 10px) !important; /* ЧУТЬ БОЛЬШЕ */
    padding: 3px 5px !important;
    min-width: 28px !important;
    line-height: 1.3 !important;
  }
  
  .breach-status {
    font-size: clamp(7px, 1.8vw, 9px) !important;
    padding: 3px !important;
  }
  
  .breach-help {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding: 3px 5px !important;
    font-size: clamp(7px, 1.6vw, 9px) !important;
    gap: 3px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  
  .help-icon {
    font-size: clamp(9px, 2.2vw, 11px) !important;
  }
}

/* Адаптация для низких экранов */
@media (max-height: 600px) and (max-width: 768px) {
  .cyber-header {
    height: 50px !important; /* Было 60px */
  }

  .cyber-avatar {
    width: 35px !important;
    height: 35px !important;
  }

  .cyber-title {
    font-size: clamp(12px, 3vw, 16px) !important;
  }

  .cyber-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .cyber-logo h2 {
    font-size: clamp(18px, 4vw, 24px) !important;
  }

  .cyber-chat-container {
    padding: 8px !important;
  }
  
  /* СУПЕР КОМПАКТНАЯ ВЕРСИЯ - Для низких экранов */
  .lock-content {
    padding: 1px !important; /* МИНИМУМ */
    min-height: 100vh !important; /* ПОЛНЫЙ ЭКРАН */
  }
  
  .breach-header {
    margin-bottom: 1px !important; /* МИНИМУМ */
    gap: 1px !important; /* МИНИМУМ */
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .breach-title {
    font-size: clamp(7px, 2.2vw, 10px) !important; /* ЕЩЕ МЕНЬШЕ */
    padding: 1px !important;
  }
  
  .breach-timer {
    font-size: clamp(9px, 2.5vw, 12px) !important; /* КОМПАКТНЫЙ */
  }
  
  .breach-timer-label {
    font-size: clamp(5px, 1.4vw, 6px) !important; /* СУПЕР МЕЛКИЙ */
  }

  .breach-matrix {
    max-height: 40vh !important; /* УВЕЛИЧИЛ */
    gap: 1px !important; /* КНОПКИ БЛИЖЕ! */
    padding: 2px !important; /* МИНИМУМ */
  }
  
  .matrix-cell {
    font-size: clamp(7px, 2vw, 10px) !important; /* ЧУТЬ БОЛЬШЕ */
    min-height: 28px !important; /* УВЕЛИЧИЛ */
    max-height: 42px !important; /* УВЕЛИЧИЛ */
    padding: 2px !important;
  }
  
  .matrix-label {
    font-size: clamp(6px, 1.8vw, 8px) !important; /* МЕНЬШЕ */
    margin-bottom: 1px !important; /* МИНИМУМ */
  }
  
  .breach-sequence-container,
  .breach-buffer-container {
    padding: 2px !important; /* МИНИМУМ */
    margin-bottom: 2px !important; /* МИНИМУМ */
  }
  
  .sequence-label,
  .buffer-label {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* МЕНЬШЕ */
    margin-bottom: 1px !important; /* МИНИМУМ */
  }
  
  .target-code,
  .buffer-code {
    font-size: clamp(7px, 1.7vw, 9px) !important; /* ЧУТЬ БОЛЬШЕ */
    padding: 2px 4px !important;
    min-width: 24px !important;
  }
  
  .breach-status {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* МЕНЬШЕ */
    padding: 2px !important; /* МИНИМУМ */
  }
  
  .breach-help {
    margin-top: 2px !important; /* МИНИМУМ */
    margin-bottom: 2px !important; /* МИНИМУМ */
    padding: 2px 4px !important; /* МИНИМУМ */
    font-size: clamp(6px, 1.4vw, 7px) !important; /* МЕНЬШЕ */
    gap: 2px !important; /* МИНИМУМ */
  }
  
  .help-icon {
    font-size: clamp(7px, 2vw, 9px) !important; /* МЕНЬШЕ */
  }
}

/* Поддержка альбомной ориентации на телефонах */
@media (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
  .cyber-game-wrapper,
  #game-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    margin: 0 !important;
  }

  .cyber-header {
    height: 55px !important;
  }

  .cyber-title {
    font-size: clamp(14px, 3vw, 18px) !important;
  }

  .cyber-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .cyber-btn {
    width: 35px !important;
    height: 35px !important;
  }

  .cyber-chat-container {
    padding: 10px 15px !important;
  }

  .message {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .choice-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  .cyber-logo h2 {
    font-size: clamp(18px, 4vw, 24px) !important;
  }

  .logo-subtitle {
    font-size: 10px !important;
  }
  
  /* BREACH PROTOCOL В АЛЬБОМНОЙ ОРИЕНТАЦИИ */
  .lock-screen {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  /* СУПЕР КОМПАКТНАЯ ВЕРСИЯ - Альбомная ориентация на телефонах */
  .lock-content {
    padding: 2px !important; /* МИНИМУМ */
    min-height: 100vh !important; /* ПОЛНЫЙ ЭКРАН */
    display: flex !important;
    flex-direction: column !important;
  }
  
  .breach-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2px !important; /* МИНИМУМ */
    padding: 2px !important; /* МИНИМУМ */
    flex-shrink: 0 !important;
  }
  
  .breach-title {
    font-size: clamp(7px, 2vw, 10px) !important; /* ЕЩЕ МЕНЬШЕ */
    padding: 1px !important;
  }
  
  .breach-timer-container {
    flex-direction: row !important;
    gap: 2px !important; /* МИНИМУМ */
  }
  
  .breach-timer-label {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* СУПЕР МЕЛКИЙ */
  }
  
  .breach-timer {
    font-size: clamp(10px, 2.5vw, 13px) !important; /* КОМПАКТНЫЙ */
  }
  
  /* МАТРИЦА И ПОСЛЕДОВАТЕЛЬНОСТИ В РЯД для альбомной ориентации */
  .breach-main {
    flex-direction: row !important; /* В РЯД */
    gap: 3px !important; /* МИНИМУМ */
    flex: 1 !important;
    min-height: 0 !important;
  }
  
  .breach-left {
    flex: 1.5 !important; /* Матрица чуть шире */
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  
  .breach-right {
    flex: 1 !important; /* Последовательности */
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important; /* МИНИМУМ */
    min-height: 0 !important;
  }
  
  .matrix-label {
    font-size: clamp(6px, 1.6vw, 8px) !important; /* МЕНЬШЕ */
    margin-bottom: 1px !important; /* МИНИМУМ */
  }
  
  .breach-matrix {
    max-height: 100% !important;
    padding: 2px !important; /* МИНИМУМ */
    gap: 1px !important; /* КНОПКИ ЕЩЕ БЛИЖЕ! */
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(5, 1fr) !important;
  }
  
  .matrix-cell {
    font-size: clamp(7px, 1.8vw, 10px) !important; /* ЧУТЬ БОЛЬШЕ */
    min-height: 26px !important; /* УВЕЛИЧИЛ */
    max-height: 38px !important; /* УВЕЛИЧИЛ */
    padding: 2px !important;
  }
  
  .breach-sequence-container,
  .breach-buffer-container {
    padding: 2px !important; /* МИНИМУМ */
    margin-bottom: 2px !important; /* МИНИМУМ */
  }
  
  .sequence-label,
  .buffer-label {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* МЕНЬШЕ */
    margin-bottom: 1px !important; /* МИНИМУМ */
  }
  
  .label-icon {
    font-size: clamp(7px, 1.8vw, 9px) !important; /* МЕНЬШЕ */
  }
  
  .breach-target,
  .breach-buffer {
    gap: 2px !important; /* МИНИМУМ */
  }
  
  .target-code,
  .buffer-code {
    font-size: clamp(7px, 1.7vw, 9px) !important; /* ЧУТЬ БОЛЬШЕ */
    padding: 2px 4px !important;
    min-width: 24px !important;
  }
  
  .breach-status {
    font-size: clamp(6px, 1.5vw, 7px) !important; /* МЕНЬШЕ */
    padding: 2px !important; /* МИНИМУМ */
  }
  
  .breach-help {
    margin-top: 2px !important; /* МИНИМУМ */
    margin-bottom: 2px !important; /* МИНИМУМ */
    padding: 2px 3px !important; /* МИНИМУМ */
    font-size: clamp(6px, 1.4vw, 7px) !important; /* МЕНЬШЕ */
    gap: 2px !important; /* МИНИМУМ */
  }
  
  .help-icon {
    font-size: clamp(7px, 2vw, 9px) !important; /* МЕНЬШЕ */
  }
}

/* Поддержка широких альбомных экранов (планшеты) */
@media (orientation: landscape) and (min-width: 600px) and (max-width: 1200px) {
  .lock-screen {
    overflow-y: auto !important;
  }
  
  .lock-content {
    padding: 12px !important;
  }
  
  .breach-main {
    flex-direction: row !important; /* Матрица слева, инфо справа */
    gap: 15px !important;
  }
  
  .breach-left {
    flex: 1.5 !important;
  }
  
  .breach-right {
    flex: 1 !important;
  }
  
  .breach-matrix {
    max-height: 70vh !important;
    gap: 8px !important;
  }
  
  .matrix-cell {
    font-size: clamp(16px, 2.5vw, 22px) !important;
  }
  
  .target-code,
  .buffer-code {
    font-size: clamp(14px, 2vw, 18px) !important;
  }
}