@font-face {
  font-family: 'RetroComp';
  src: url('assets/fonts/retrocomputerrusbydaymarius.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#000;overflow:hidden}
#crt{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at center, rgba(0,20,0,0.05), #000 60%);
  color:#00ff66;
  font-family: 'RetroComp', monospace, monospace;
}
#overlay-canvas-wrap{ position:absolute; inset:0; pointer-events:none; z-index:1; }
#overlay{ width:100%; height:100%; display:block; }
#content{ position:relative; z-index:2; width:100%; height:100%; padding:48px 64px; overflow:hidden; }
#ascii-logo{ color:#00ff66; white-space:pre; text-align:left; font-size:18px; line-height:18px; margin-bottom:18px; }
#copyright{ color:#6bff8a; margin-bottom:18px; font-size:14px; }
#terminal{ color:#bfffbf; font-size:18px; line-height:1.35; white-space:pre-wrap; outline:none; max-height:100%; overflow:auto; }
.input-cursor{ display:inline-block; width:12px; height:20px; background:#00ff66; vertical-align:baseline; animation:blink 1s steps(1) infinite; margin-left:6px; }
@keyframes blink{ 0%,49%{opacity:1}50%,100%{opacity:0}}

/* scanline overlay to give stronger effect */
.scanlines {
  position:absolute; inset:0; z-index:3; pointer-events:none;
  background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.25) 0 2px, rgba(0,0,0,0) 2px 4px);
  mix-blend-mode:multiply; opacity:0.7;
}

/* degauss flicker */
.degauss{ animation:degauss 1s ease-in-out; }
@keyframes degauss{
  0%{ filter: hue-rotate(0deg) contrast(1.1) saturate(1.2) }
  40%{ filter: hue-rotate(30deg) contrast(1.6) saturate(1.9) }
  80%{ filter: hue-rotate(-15deg) contrast(0.8) saturate(0.7) }
  100%{ filter: hue-rotate(0deg) contrast(1.05) saturate(1.1) }
}

/* image reveal wrapper */
.img-wrap{ 
  width:70%; 
  margin:18px auto; 
  background:transparent !important; /* ✅ убрали черный фон */
  overflow:hidden; 
}
.progress-img{ 
  width:400px !important; 
  height:400px !important; 
  object-fit:contain; /* ✅ сохраняем пропорции */
  background:transparent !important; 
  image-rendering:pixelated; 
  display:block; 
  margin-left:0; /* ✅ как текст слева */
  clip-path: inset(0 0 100% 0); 
  filter: grayscale(100%) brightness(0.7) sepia(0.2) hue-rotate(80deg) saturate(4); 
}

/* ✅ Сделать весь текст зелёным */
body, #crt, #content, #terminal, #ascii-logo, #copyright {
  color: #00ff66 !important;
}

/* ✅ Картинки в меню PD_MED */
#PD_MED img {
  width: 400px !important;
  height: 400px !important;
  object-fit: contain;
  background: transparent !important;
  display: block;
  margin-bottom: 0px;
  margin-left: 0; /* ✅ слева как текст */
}

/* ✅ Вывод сверху вниз */
#PD_MED {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

  #start-screen {
    position: fixed;
    inset: 0;
    background: black;
    color: #0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 2rem;
    cursor: pointer;
    z-index: 9999;
  }

/* Choice UI styles */
.choice-title{ color:#bfffbf; font-weight:600; margin-bottom:8px; }
.choice-list{ display:flex; flex-direction:column; gap:6px; margin-top:6px }
.choice-item{ padding:6px 8px; border-radius:4px; background: rgba(0,255,120,0.02); border:1px solid rgba(0,255,120,0.03); }
.choice-item:hover{ background: rgba(0,255,120,0.04); }
.choice-mark{ color:#6bff8a; font-weight:700; width:36px; display:inline-block }
.choice-label{ color:#cfffce }

/* dialog / message box */
.dialog-box{ background: rgba(0,0,0,0.4); border:1px solid rgba(0,255,120,0.15); padding:10px; border-radius:6px; margin:8px 0 }
.dialog-box .dlg-title{ font-weight:700; margin-bottom:6px }

/* Styled inline input fields */
.admin-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 255, 102, 0.3);
  color: #00ff66;
  font-family: 'RetroComp', monospace;
  font-size: inherit;
  outline: none;
  padding: 0 4px;
  margin-left: 4px;
  caret-color: #00ff66;
  min-width: 200px;
  max-width: 400px;
  transition: border-bottom 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus {
  border-bottom: 1px solid rgba(0, 255, 102, 0.8);
  box-shadow: 0 1px 0 rgba(0, 255, 102, 0.3);
}

.admin-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-bottom: 1px solid rgba(0, 255, 102, 0.1);
}

.line-input {
  display: flex;
  align-items: baseline;
  margin: 8px 0;
}

.line-input .prompt {
  color: #6bff8a;
  font-weight: 600;
  margin-right: 4px;
  flex-shrink: 0;
}

/* small visual niceties */
.term-line{ margin:8px 0 }

/* highlight canvas during drag */
.canvas.dragover{ outline:2px dashed rgba(0,255,120,0.3); box-shadow:0 0 20px rgba(0,255,120,0.02) inset }
