  :root{ --bg:#050508; --pc: #00ff9d; --pur:#bc13fe; --blu:#05d9e8; --red:#ff2a6d; --grn:#00ff9d; --ac:var(--pur); --yel:#ffc800; }
  * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  body{ font-family:'Montserrat',sans-serif; background:var(--bg); color:#fff; margin:0; padding:20px; padding-bottom:120px; display:flex; justify-content:center; overflow-x:hidden; }
  .app-wrap { width:100%; max-width:600px; }

  .head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding-bottom: 15px; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  margin-bottom: 20px; 
  height: 60px; 
}

.head-l { 
  display: flex; 
  align-items: center; 
  gap: 5px;
}

.head-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box { 
  display: flex; 
  align-items: center; 
  gap: 1px;
}

.logo-txt { 
  font-family: 'Rajdhani', sans-serif; 
  font-weight: 800; 
  font-size: 16px; 
  color: #ccc; 
  letter-spacing: 2px; 
  line-height: 1; 
  position: relative;
  top: -2px;
}
  .ico { width:36px; height:36px; border:1px solid #444; border-radius:50%; display:flex; justify-content:center; align-items:center; color:#fff; background:transparent; cursor:pointer; transition:0.2s; }
  .ico:hover { border-color:#fff; } 
  .btn-back {
  font-size: 36px;
  color: #666;
  text-decoration: none;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 30px;
  margin-right: 5px;
  position: relative;
  top: -5px;
  line-height: 0;
  padding-bottom: 4px;
}
.btn-back:hover { color: #fff; }
  .hero-box { text-align:center; margin-bottom:30px; animation:fade 1s; }
  .hero-title { font-family:'Rajdhani'; font-weight:800; font-size:42px; line-height:1; text-transform:uppercase; letter-spacing:2px; color:#fff; text-shadow:0 0 10px var(--ac); }
  .hero-sub { font-size:10px; color:var(--ac); letter-spacing:4px; font-weight:bold; margin-top:5px; opacity:0.8; }

  .menu-grid { display:grid; grid-template-columns:1fr; gap:15px; }
  .mode-card { background:linear-gradient(145deg, #121218, #0a0a0e); border:1px solid #333; border-left:4px solid #555; padding:20px; border-radius:12px; cursor:pointer; transition:0.3s; position:relative; overflow:hidden; }
  .mode-card:hover { transform:translateX(5px); border-color:#fff; }
.mode-card h3 {
  font-family: 'Rajdhani';
  font-size: 24px;
  margin: 0;
  line-height: 1.1;
  color: #fff;
  
  flex: 1; 
  min-width: 0; 
  word-wrap: break-word;
}
  .mode-card p { font-size:11px; color:#888; margin:0; line-height:1.4; }
.mode-icon {
  font-size: 32px;
  opacity: 0.8;
  
  flex-shrink: 0; 
  width: 40px; 
  text-align: right;
  
  margin-left: 10px;
}
  .m-sim { border-left-color:var(--pur); } .m-rw { border-left-color:var(--red); } .m-dt { border-left-color:var(--blu); }

  .section { display:none; animation:up 0.5s; }
  
  .slots { display:flex; gap:5px; margin-bottom:20px; height:100px; perspective:1000px; }
  .reel { flex:1; background:#111; border:1px solid #333; border-radius:8px; overflow:hidden; position:relative; box-shadow:inset 0 0 20px #000; }
 .reel-content { 
  position: absolute; 
  top: 0; 
  width: 100%; 
  text-align: center; 
}
  .r-item { height:100px; display:flex; flex-direction:column; justify-content:center; align-items:center; border-bottom:1px dashed #222; }
  .r-icon { font-size:28px; margin-bottom:5px; filter:drop-shadow(0 0 5px var(--ac)); }
  .r-text { font-size:9px; font-weight:bold; text-transform:uppercase; color:#ccc; font-family:'Rajdhani'; }
 .reel.spinning .reel-content { 
  animation: blurSpin 0.2s infinite linear; 
}
#aud-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--ac);
  text-transform: uppercase;
}

#chaos-btn {
  display: none;
  margin-top: 20px;
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 20px;
  border-radius: 30px;
  font-family: 'Rajdhani';
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  animation: pulseRed 3s infinite;
}
#chaos-btn:hover {
  background: var(--red);
  color: #000;
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 42, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0); }
}
  .toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  
  .sw { position:relative; display:inline-block; width:34px; height:18px; }
  .sw input { opacity:0; width:0; height:0; }
  .sl { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#333; transition:.4s; border-radius:20px; border:1px solid #555; }
  .sl:before { position:absolute; content:""; height:12px; width:12px; left:2px; bottom:2px; background:#888; transition:.4s; border-radius:50%; }
  input:checked + .sl { background:var(--ac); border-color:var(--ac); }
  input:checked + .sl:before { transform:translateX(16px); background:#000; }

  input[type=range] { width:100%; -webkit-appearance:none; background:transparent; margin:10px 0; touch-action: pan-y; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; height:18px; width:18px; border-radius:50%; background:var(--ac); margin-top:-7px; cursor:pointer; box-shadow:0 0 10px var(--ac); }
  input[type=range]::-webkit-slider-runnable-track { width:100%; height:4px; background:#333; border-radius:2px;}

  .file-upload { display:none; }
  .btn-file { background:#222; border:1px dashed #555; color:#888; font-size:10px; padding:8px; border-radius:6px; width:100%; cursor:pointer; display:inline-block; margin-top:5px; }
  .btn-file:hover { color:#fff; border-color:#fff; }
  .btn-main { width:100%; padding:18px; background:var(--ac); color:#000; font-family:'Rajdhani'; font-weight:800; font-size:18px; border:none; border-radius:8px; cursor:pointer; letter-spacing:1px; transition:0.2s; margin-top:10px; }

  .story-card { display:none; background:linear-gradient(135deg, #15151a, #050508); border-left:4px solid var(--ac); padding:20px; border-radius:8px; margin-bottom:20px; animation:up 0.5s; }
  .story-meta { font-size:10px; text-transform:uppercase; color:var(--ac); font-weight:bold; margin-bottom:10px; opacity:0.8; letter-spacing:2px; }
  
  .story-phase { background: rgba(255, 255, 255, 0.03); border-left: 3px solid #444; padding: 15px; margin-bottom: 15px; border-radius: 0 8px 8px 0; transition: 0.3s; position: relative; text-align:left; font-size:14px; line-height:1.6; color:#ddd; }
  .phase-intro { border-color: var(--blu); }
  .phase-intro::before { content: "1. IMERZE"; font-size: 9px; color: var(--blu); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; }
  .phase-comp { border-color: var(--red); background: rgba(255, 42, 109, 0.05); }
  .phase-comp::before { content: "2. KOMPLIKACE"; font-size: 9px; color: var(--red); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; }
  .phase-sol { border-color: var(--grn); background: rgba(0, 255, 157, 0.05); }
  .phase-sol::before { content: "3. ŘEŠENÍ & OUTRO"; font-size: 9px; color: var(--grn); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; }

  #session { display:none; position:fixed; inset:0; background:#000; z-index:2000; flex-direction:column; align-items:center; justify-content:center; }
  .hypno { width:200px; height:200px; border-radius:50%; border:2px solid var(--ac); position:relative; display:flex; align-items:center; justify-content:center; animation:breathe 6s infinite ease-in-out; }
  .timer { font-family:'Rajdhani'; font-size:40px; font-weight:800; color:#fff; z-index:2; text-shadow:0 0 20px var(--ac); }
  .sub-timer { 
  font-size: 10px; 
  color: #888; 
  margin-top: 5px; 
  letter-spacing: 2px; 
  text-transform: uppercase;
  
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  word-wrap: break-word;
}
.stop-btn { margin-top:50px; background:transparent; border:1px solid #444; color:#666; padding:10px 30px; border-radius:20px; cursor:pointer; font-size:10px; font-weight:bold; transition:0.3s; }
  .stop-btn:hover { border-color:var(--red); color:var(--red); }
  #caption { margin-top:30px; min-height:60px; color:#fff; text-align:center; max-width:80%; font-size:16px; font-weight:bold; transition:opacity 0.5s; font-family:'Rajdhani'; display:flex; align-items:center; justify-content:center; }

  #pettlep-check { display:none; flex-direction:column; align-items:center; width:90%; max-width:300px; text-align:left; margin-top:20px; animation:fade 1s; }
  .pt-row { display:flex; align-items:center; gap:15px; margin-bottom:10px; width:100%; cursor:pointer; padding:12px; border:1px solid #333; border-radius:8px; transition:0.2s; background:rgba(255,255,255,0.05); }
  .pt-row.checked { border-color:var(--grn); background:rgba(0,255,157,0.1); } .pt-row.fail { border-color:var(--red); }
  .pt-icon { font-size:20px; width:30px; text-align:center; }
  .pt-label { font-size:11px; color:#ccc; font-weight:bold; }
  .pt-actions { margin-left:auto; display:flex; gap:5px; }
  .pt-btn { width:24px; height:24px; border-radius:50%; border:1px solid #444; background:#000; color:#666; display:flex; justify-content:center; align-items:center; font-size:10px; }
  .pt-btn.y { border-color:var(--grn); color:var(--grn); } .pt-btn.n { border-color:var(--red); color:var(--red); }
  .pt-tip { display:none; font-size:11px; color:var(--yel); margin-top:5px; font-style:italic; padding:5px; border-left:2px solid var(--yel); }
  
  input[type=text] { width:100%; background:#000; border:1px solid #444; color:#fff; padding:12px; border-radius:6px; margin-bottom:15px; font-family:'Montserrat'; }

  @keyframes fade { from{opacity:0}to{opacity:1} } @keyframes up { from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1} }
  @keyframes blurSpin { 0%{transform:translateY(0);filter:blur(2px)} 100%{transform:translateY(-50%);filter:blur(2px)} }
  @keyframes breathe { 0%,100%{transform:scale(0.9);opacity:0.8;box-shadow:0 0 20px var(--ac)} 50%{transform:scale(1.1);opacity:1;box-shadow:0 0 50px var(--ac)} }
#finish-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.5s;
}

.finish-card {
  width: 85%; max-width: 350px;
  background: linear-gradient(145deg, #1a0a2e, #000);
  border: 2px solid var(--pur);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(188, 19, 254, 0.3);
  position: relative;
  overflow: hidden;
  isolation: isolate; 
}

.finish-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(188, 19, 254, 0.03) 10px, rgba(188, 19, 254, 0.03) 20px);
  pointer-events: none; 
  z-index: 0;
}

.finish-card > * {
  position: relative;
  z-index: 5;
}

.finish-icon { font-size: 60px; margin-bottom: 15px; filter: drop-shadow(0 0 15px var(--pur)); }
.finish-title { font-family: 'Rajdhani'; font-weight: 800; font-size: 28px; color: #fff; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 2px; }
.finish-sub { color: var(--pur); font-size: 10px; text-transform: uppercase; letter-spacing: 3px; font-weight: bold; margin-bottom: 25px; }

.xp-badge {
  display: inline-block;
  background: rgba(188, 19, 254, 0.1);
  border: 1px solid var(--pur);
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  font-family: 'Rajdhani';
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.phase-rw-intro { border-color: var(--blu); }
.phase-rw-intro::before { 
  content: "1. EXPOZICE (PŮVODNÍ ZÁZNAM)"; 
  font-size: 9px; color: var(--blu); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; 
}

.phase-rw-analysis { border-color: var(--red); background: rgba(255, 42, 109, 0.05); }
.phase-rw-analysis::before { 
  content: "2. ANALÝZA KONTROLY"; 
  font-size: 9px; color: var(--red); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; 
}

.phase-rw-sol { border-color: var(--grn); background: rgba(0, 255, 157, 0.05); }
.phase-rw-sol::before { 
  content: "3. NOVÝ SCÉNÁŘ (PŘEPIS)"; 
  font-size: 9px; color: var(--grn); font-weight: bold; display: block; margin-bottom: 5px; letter-spacing: 2px; 
}
.m-pain { border-left-color: var(--red); }

@keyframes painPulse {
  0% { box-shadow: 0 0 10px var(--red); }
  50% { box-shadow: 0 0 40px var(--red); }
  100% { box-shadow: 0 0 10px var(--red); }
}

.pain-critical {
  animation: painPulse 0.5s infinite;
}

input[type=range][orient=vertical] {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 40px;
    height: 300px;
    padding: 0 5px;
}

#share-overlay {
  display: none;
  position: fixed; inset: 0;
  background: #000;
  z-index: 11000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rank-card {
  width: 100%; max-width: 320px;
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, #0a0a12, #000);
  border: 4px solid var(--cur-color, var(--blu));
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  box-shadow: 0 0 60px var(--cur-color, var(--blu));
  overflow: hidden;
  text-align: center;
}

.rank-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.rank-scan {
  position: absolute; top: 0; left: 0; width: 100%; height: 5px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
  animation: scanDown 3s infinite linear;
  opacity: 0.3;
}

.rc-header { font-family: 'Rajdhani'; font-weight: 800; letter-spacing: 4px; font-size: 16px; color: #fff; opacity: 0.8; margin-bottom: 20px; }
.rc-streak-val { font-family: 'Rajdhani'; font-weight: 800; font-size: 120px; line-height: 1; color: #fff; text-shadow: 4px 4px 0px var(--cur-color); margin: 10px 0; }
.rc-label { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: #888; font-weight: bold; }

.rc-boss-box { 
  margin: 20px 0; padding: 20px; 
  border: 1px dashed var(--cur-color); 
  background: rgba(255,255,255,0.05); 
  border-radius: 12px; width: 100%;
}
.rc-rank { font-family: 'Rajdhani'; font-size: 28px; font-weight: 800; color: var(--cur-color); text-transform: uppercase; margin-bottom: 5px; }
.rc-sub { font-size: 10px; color: #ccc; }

.rc-footer { font-size: 10px; color: #666; letter-spacing: 2px; margin-top: auto; }

@keyframes scanDown { 0% { top: -10%; } 100% { top: 110%; } }
#boss-alert {
  display: none;
  position: absolute; inset: 0;
  background: rgba(255, 0, 0, 0.8);
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: flashAlert 0.5s infinite alternate;
}

.boss-title {
  font-family: 'Rajdhani'; font-weight: 800; font-size: 32px; color: #fff;
  text-transform: uppercase; letter-spacing: 4px;
  text-shadow: 2px 2px 0px #000;
}

.boss-sub {
  font-family: 'Montserrat'; font-size: 10px; color: #fff; background: #000;
  padding: 2px 8px; margin-top: 5px; font-weight: bold;
}

.boss-shifter { transition: transform 0.1s; }

@keyframes flashAlert {
  0% { background: rgba(255, 0, 0, 0.7); }
  100% { background: rgba(255, 0, 0, 0.9); }
}
.df-step { display:none; width:100%; flex-direction:column; align-items:center; text-align:center; animation:fi 0.5s; }
.df-step.active { display:flex; }

.dump-area { width:100%; height:120px; background:rgba(255,255,255,0.05); border:1px solid #444; color:#fff; padding:15px; font-family:'Montserrat'; font-size:16px; margin:20px 0; resize:none; border-radius:10px; transition:0.5s; }
.crumple { animation: crumpleAnim 0.8s forwards; }
@keyframes crumpleAnim { 
  0% { transform:scale(1); opacity:1; } 
  50% { transform:scale(0.1) rotate(20deg); opacity:0.5; }
  100% { transform:scale(0) rotate(720deg); opacity:0; }
}

.scan-body { width:120px; height:200px; position:relative; margin:20px; opacity:0.8; border:2px solid #333; border-radius:40px; }
.scan-line { width:140%; height:2px; background:var(--blu); box-shadow:0 0 10px var(--blu); position:absolute; left:-20%; animation: scanning 3s infinite linear; }
@keyframes scanning { 0%{top:95%} 50%{top:5%} 100%{top:95%} }
.scan-txt { font-size:24px; font-weight:bold; color:var(--blu); margin-top:10px; min-height:40px; font-family:'Rajdhani'; letter-spacing:1px; }

.sleep-circle { width:200px; height:200px; border-radius:50%; border:2px solid rgba(255,255,255,0.1); display:flex; justify-content:center; align-items:center; position:relative; margin:40px 0; transition: opacity 1s; }
.sleep-inner { width:20px; height:20px; background:var(--blu); border-radius:50%; box-shadow:0 0 30px var(--blu); }
.sleep-txt { position:absolute; font-family:'Rajdhani'; font-size:16px; font-weight:bold; letter-spacing:4px; text-transform:uppercase; color:#555; }


.b-in { animation: box-in 4s ease-in-out forwards; }
@keyframes box-in { 
  from { transform: scale(1); opacity: 0.2; box-shadow: 0 0 20px var(--blu); } 
  to   { transform: scale(6); opacity: 0.8; box-shadow: 0 0 50px var(--blu); } 
}

.b-hold-high { animation: box-hold-high 4s linear forwards; }
@keyframes box-hold-high { 
  0%   { transform: scale(6); opacity: 0.8; box-shadow: 0 0 50px var(--blu); } 
  100% { transform: scale(6); opacity: 0.8; box-shadow: 0 0 50px var(--blu); } 
}

.b-out { animation: box-out 4s ease-in-out forwards; }
@keyframes box-out { 
  from { transform: scale(6); opacity: 0.8; box-shadow: 0 0 50px var(--blu); } 
  to   { transform: scale(1); opacity: 0.2; box-shadow: 0 0 20px var(--blu); } 
}

.b-hold-low { animation: box-hold-low 4s linear forwards; }
@keyframes box-hold-low { 
  0%   { transform: scale(1); opacity: 0.2; box-shadow: 0 0 20px var(--blu); } 
  100% { transform: scale(1); opacity: 0.2; box-shadow: 0 0 20px var(--blu); } 
}



body.sleep-active { background:#000 !important; transition: background 2s; }
body.sleep-active .head, body.sleep-active .nav-grid { opacity:0; pointer-events:none; transition: opacity 1s; }
body.sleep-active .btn-main { border-color:#333; color:#555; background:transparent; }
.sleep-card {
  background: linear-gradient(135deg, rgba(5, 217, 232, 0.08), rgba(0,0,0,0));
  border-left: 3px solid var(--blu);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  text-align: left;
  margin-bottom: 30px;
  width: 100%;
  max-width: 320px;
  border-top: 1px solid rgba(5, 217, 232, 0.1);
}

.sc-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-family: 'Montserrat';
  font-size: 13px;
  color: #ccc;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 8px;
}
.sc-row:last-child { margin-bottom: 0; border-bottom: none; }

.sc-icon {
  color: var(--blu);
  font-size: 16px;
  width: 20px;
  text-align: center;
  filter: drop-shadow(0 0 5px var(--blu));
}

.sc-num {
  font-family: 'Rajdhani';
  font-weight: bold;
  color: #555;
  font-size: 10px;
  margin-right: 5px;
}
.dock {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; 
  gap: 6px;
  background: rgba(10, 10, 15, 0.95);
  padding: 10px 12px; 
  border-radius: 50px; 
  border: 1px solid #333;
  backdrop-filter: blur(10px); 
  z-index: 9000; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: max-content;
  max-width: 95%;
}

.dock-item {
  width: 38px; 
  height: 38px; 
  border-radius: 50%;
  display: flex; 
  justify-content: center; 
  align-items: center;
  text-decoration: none; 
  font-size: 16px; 
    background: #1a1a1a; 
  border: 1px solid rgba(255,255,255,0.1); 
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
    color: var(--ac); 
}


.dock-item svg {
  stroke: var(--ac);
  transition: 0.3s;
  filter: drop-shadow(0 0 3px var(--ac));
}


.dock-item:hover, .dock-item.active {
 
  background: var(--ac); 
  filter: none;
  box-shadow: 0 0 15px var(--ac); 
  border-color: var(--ac);
  
  transform: translateY(-5px) scale(1.1);
}


.dock-item:hover svg, .dock-item.active svg {
  stroke: #000000;
}

body { padding-bottom: 100px; }
.menu-header {
  font-family: 'Rajdhani';
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid #444;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.menu-header:first-child { margin-top: 0; }

.mode-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
  gap: 25px; 
}

.mc-desc {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  margin-top: 5px;
  margin-bottom: 10px;
  font-family: 'Montserrat';
}

.mc-tag {
  align-self: flex-start;
  font-size: 9px;
  font-weight: bold;
  background: rgba(255,255,255,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  font-family: 'Rajdhani';
  letter-spacing: 1px;
}


.menu-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 15px; 
}

.mode-card {
  display: flex;
  flex-direction: column;
  
  background: linear-gradient(145deg, #121218, #0a0a0e);
  border: 1px solid #333;
  border-left: 4px solid #555; 
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  min-height: 140px;
  position: relative;
}
#menu {
  display: block;
}

.armory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.arm-card {
  background: #0f1014;
  border: 1px solid #222;
  border-left: 4px solid var(--ac);
  border-radius: 6px;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 90px;
}

.arm-card:active { transform: scale(0.98); }
.arm-card:hover { background: #15161a; box-shadow: 0 0 15px rgba(0,0,0,0.3); border-color: #444; }

.arm-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arm-icon {
  width: 40px; 
  height: 40px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.arm-icon svg {
  stroke: var(--ac) !important;
  stroke-width: 2;
  
  filter: drop-shadow(0 0 6px var(--ac));
  
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.arm-card:hover .arm-icon svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--ac));
  stroke-width: 2.2;
}

.arm-title { 
  font-family: 'Rajdhani', sans-serif; 
  font-weight: 800; 
  font-size: 15px; 
  color: #fff; 
  text-transform: uppercase; 
  line-height: 1;
}

.arm-desc { 
  font-size: 9px; 
  color: #777; 
  line-height: 1.3;
  margin-top: 2px;
}

.arm-wide { grid-column: span 2; background: linear-gradient(90deg, #0f1014 0%, #15161a 100%); }
.arm-wide .arm-head { margin-bottom: 2px; }
.arm-wide .arm-desc { max-width: 90%; color: #aaa; }

.arm-go {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 10px;
  color: var(--ac);
  opacity: 0.5;
  font-family: 'Rajdhani';
  font-weight: bold;
}
.mode-card:hover {
  transform: translateX(5px);
  border-color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
}

.mc-head h3 {
  font-family: 'Rajdhani';
  font-size: 24px;
  margin: 0;
  line-height: 1.1;
  color: #fff;
  padding-right: 15px;
  word-break: break-word;
}

.mode-icon {
  font-size: 32px;
  opacity: 0.8;
  flex-shrink: 0;
  width: 40px;
  text-align: right;
}

.mode-card p.mc-desc {
  font-size: 11px;
  color: #888;
  margin: 0;
  line-height: 1.5;
  font-family: 'Montserrat';
  flex-grow: 1;
  margin-bottom: 15px;
}

.mc-tag {
  align-self: flex-start;
  margin-top: auto;
  
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  
}

.m-sim { border-left-color: var(--pur); } .m-sim .mode-icon { text-shadow: 0 0 15px var(--pur); }
.m-rw  { border-left-color: var(--red); } .m-rw .mode-icon  { text-shadow: 0 0 15px var(--red); }
.m-dt  { border-left-color: var(--blu); } .m-dt .mode-icon  { text-shadow: 0 0 15px var(--blu); }
.m-def { border-left-color: var(--blu); } .m-def .mode-icon { text-shadow: 0 0 15px var(--blu); }
.m-pain{ border-left-color: var(--red); } .m-pain .mode-icon{ text-shadow: 0 0 15px var(--red); }
.m-rfl { border-left-color: var(--yel); } .m-rfl .mode-icon { text-shadow: 0 0 15px var(--yel); }
.brief-box {
  background: rgba(255, 255, 255, 0.03);
  border-left-width: 4px;
  border-left-style: solid;
  
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.brief-tit {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.brief-txt {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #ccc;
  line-height: 1.6;
}

.brief-txt strong {
  color: #fff;
}
.mode-card.bounty-active {
  border-color: var(--red) !important;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.4);
  animation: pulseCard 2s infinite;
}

.mode-card.bounty-active .mc-tag {
  background: var(--red);
  color: #000;
  content: "CÍL ZAMĚŘEN";
}

@keyframes pulseCard { 0%{transform:scale(1)} 50%{transform:scale(1.02)} 100%{transform:scale(1)} }
.target-alert {
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px;
  font-family: 'Rajdhani'; 
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  animation: pulseAlert 2s infinite;
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
}

@keyframes pulseAlert {
  0% { box-shadow: 0 0 10px rgba(255, 42, 109, 0.2); opacity: 0.8; }
  50% { box-shadow: 0 0 25px rgba(255, 42, 109, 0.5); opacity: 1; }
  100% { box-shadow: 0 0 10px rgba(255, 42, 109, 0.2); opacity: 0.8; }
}

.b-hold-empty {
  transform: scale(1) !important;
  background: var(--blu);
  box-shadow: 0 0 15px var(--blu);
}

.q-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid #444;
  color: #666;
  font-size: 11px;
  font-weight: bold;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
}
.q-icon:hover { border-color: var(--ac); color: #fff; background: rgba(255,255,255,0.1); }

.aud-hint {
  display: none;
  font-size: 10px;
  color: #888;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border-left: 2px solid var(--ac);
  line-height: 1.4;
  animation: fade 0.3s;
}
.aud-hint strong { color: #fff; }
.finish-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.finish-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px var(--pur)); 
  animation: brainBreath 4s ease-in-out infinite;
}

@keyframes brainBreath {
  0%, 100% { 
    transform: scale(1); 
    filter: drop-shadow(0 0 10px var(--pur)); 
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.1); 
    filter: drop-shadow(0 0 25px var(--pur)); 
    opacity: 1;
  }
}

.brain-spark {
  stroke: var(--pur);
  stroke-width: 3px;
  opacity: 0.8;
}
.btn-icon-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-icon-flex svg {
  flex-shrink: 0;
  display: block;
}
.manual-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-left: 3px solid var(--yel);
  
  padding: 12px 20px;
  margin-top: 10px;
  margin-bottom: 25px;
  
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  border-radius: 0 4px 4px 0;
  
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  font-size: 11px;
  font-weight: 700;
}

.ms-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid var(--yel);
  color: var(--yel);
  border-radius: 50%;
  font-size: 12px;
  margin-right: 12px;
  box-shadow: 0 0 5px rgba(255, 200, 0, 0.2);
  animation: pulseYel 3s infinite;
}

.ms-arrow {
  font-size: 18px;
  color: var(--yel);
  opacity: 0.5;
  transition: 0.3s;
}

.manual-strip:hover {
  background: rgba(255, 200, 0, 0.1);
  border-color: var(--yel);
  padding-left: 25px;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.1);
}

.manual-strip:hover .ms-icon {
  background: var(--yel);
  color: #000;
  box-shadow: 0 0 10px var(--yel);
}

.manual-strip:hover .ms-arrow {
  opacity: 1;
  transform: translateX(5px);
}

@keyframes pulseYel {
  0% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 200, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); }
}
.intro-terminal {
  position: relative;
  background: #08080a;
  border: 1px solid #333;
  border-top: 2px solid var(--blu);
  border-radius: 4px;
  padding: 0;
  margin-bottom: 15px;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.intro-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.intro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 15px;
  border-bottom: 1px solid #222;
  position: relative;
  z-index: 1;
}

.sys-stat {
  font-family: 'Rajdhani', sans-serif;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--blu);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.sys-dot { width: 6px; height: 6px; background: var(--blu); border-radius: 50%; box-shadow: 0 0 5px var(--blu); }

.intro-close {
  background: none;
  border: none;
  font-family: 'Rajdhani', monospace;
  font-weight: bold;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  transition: 0.2s;
}
.intro-close:hover { color: var(--red); text-shadow: 0 0 5px var(--red); }

.intro-body {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.intro-tit {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.intro-txt {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #aaa;
  max-width: 95%;
}
.intro-txt strong { color: #fff; font-weight: 600; }
.btn-cancel-target {
  margin-top: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed #444;     
  color: #666;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cancel-target:hover {
  border-color: var(--red);     
  border-style: solid;          
  color: #fff;
  background: rgba(255, 42, 109, 0.1); 
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.15); 
  transform: translateY(-2px);
}

.btn-cancel-target:active {
  transform: scale(0.98);
}

#df-timeout button:hover { border-color: var(--blu) !important; color: var(--blu) !important; }