/* RID3 — Windows 98 style */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  background:#008080;
  color:#000;
  font-family:Tahoma,"MS Sans Serif","Microsoft Sans Serif",Arial,sans-serif;
  font-size:13px;
  padding:34px 12px 44px;
}
a{color:#0000ee}
a:visited{color:#551a8b}

/* ---- таймер сверху ---- */
#shutdown-bar{
  position:fixed;top:0;left:0;right:0;height:30px;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 6px;
  background:linear-gradient(90deg,#000080,#1084d0);
  color:#fff;font-weight:bold;
  border-bottom:2px solid #000;
}
#shutdown-bar .ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#timer{
  font-family:"Courier New",monospace;font-size:20px;letter-spacing:2px;
  color:#39ff14;background:#000;padding:0 8px;line-height:22px;
  border:2px solid;border-color:#808080 #fff #fff #808080;
  text-shadow:0 0 4px #39ff14;
}
#timer.low{color:#ff2a2a;text-shadow:0 0 4px #ff2a2a;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:.25}}

/* ---- окна ---- */
.win{
  max-width:460px;margin:22px auto 0;background:#c0c0c0;
  border:2px solid;border-color:#fff #000 #000 #fff;
  box-shadow:inset -1px -1px #808080,inset 1px 1px #dfdfdf;
  padding:3px;
}
.win.wide{max-width:640px}
.titlebar{
  display:flex;align-items:center;gap:6px;
  background:linear-gradient(90deg,#000080,#1084d0);
  color:#fff;font-weight:bold;padding:2px 3px;
}
.titlebar img{width:16px;height:16px;image-rendering:pixelated}
.titlebar .name{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tb-btn{
  width:16px;height:14px;background:#c0c0c0;color:#000;font-size:10px;line-height:11px;text-align:center;
  border:1px solid;border-color:#fff #000 #000 #fff;box-shadow:inset -1px -1px #808080;
}
.win-body{padding:14px 12px}
.center{text-align:center}
.row{display:flex;gap:12px;align-items:flex-start}
.row .ico{width:32px;height:32px;flex:none;image-rendering:pixelated}
h1,h2{font-family:"Times New Roman",serif;margin:0 0 8px}
h1{font-size:22px}
h2{font-size:17px}
hr{border:0;border-top:1px solid #808080;border-bottom:1px solid #fff;margin:12px 0}
.sunken{
  background:#fff;padding:6px 8px;
  border:2px solid;border-color:#808080 #fff #fff #808080;
  box-shadow:inset 1px 1px #000;
}
.btn{
  display:inline-block;min-width:80px;padding:5px 14px;background:#c0c0c0;color:#000;
  font:inherit;text-align:center;text-decoration:none;cursor:pointer;
  border:2px solid;border-color:#fff #000 #000 #fff;box-shadow:inset -1px -1px #808080,inset 1px 1px #dfdfdf;
}
.btn:active{border-color:#000 #fff #fff #000;box-shadow:inset 1px 1px #808080;padding:6px 13px 4px 15px}
.btn:focus{outline:1px dotted #000;outline-offset:-5px}

/* прогресс-бар 98 */
.progress{height:18px;background:#fff;border:2px solid;border-color:#808080 #fff #fff #808080;padding:2px;margin:10px 0 6px;overflow:hidden}
.progress i{
  display:block;height:100%;width:40%;
  background:repeating-linear-gradient(90deg,#000080 0 8px,transparent 8px 10px);
  animation:slide 2.2s linear infinite;
}
@keyframes slide{0%{margin-left:-40%}100%{margin-left:100%}}

/* иконка рабочего стола */
.desk{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;padding:6px}
.desk a{width:96px;text-align:center;color:#fff;text-decoration:none;font-size:12px}
.desk a:hover span{background:#000080;outline:1px dotted #ff0}
.desk .fold{
  width:40px;height:32px;margin:0 auto 4px;position:relative;background:#ffd84a;
  border:1px solid #806000;box-shadow:inset 2px 2px #fff3a0,inset -2px -2px #c9a000;
}
.desk .fold:before{content:"";position:absolute;left:-1px;top:-6px;width:16px;height:6px;background:#ffd84a;border:1px solid #806000;border-bottom:0}
.desk span{padding:1px 3px}

.pixel-logo{width:48px;height:48px;image-rendering:pixelated;border:2px solid;border-color:#808080 #fff #fff #808080;background:#fff}
.marq{background:#000;color:#ff0;font-family:"Courier New",monospace;padding:2px 0;border:2px solid;border-color:#808080 #fff #fff #808080}

/* ---- панель задач / футер ---- */
#taskbar{
  position:fixed;left:0;right:0;bottom:0;height:36px;z-index:50;
  display:flex;align-items:center;gap:6px;padding:3px 4px;
  background:#c0c0c0;border-top:2px solid #fff;box-shadow:0 -1px #dfdfdf;
}
#taskbar .start{
  display:flex;align-items:center;gap:5px;font-weight:bold;padding:2px 8px;height:28px;
  color:#000;text-decoration:none;
  border:2px solid;border-color:#fff #000 #000 #fff;box-shadow:inset -1px -1px #808080;
}
#taskbar .start b{display:inline-block;width:14px;height:14px;background:linear-gradient(135deg,#f00 0 50%,#0a0 50% 100%);border:1px solid #000}
#taskbar .panel{
  flex:1;height:28px;line-height:24px;padding:0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  border:1px solid;border-color:#808080 #fff #fff #808080;
}
#taskbar .clock{width:72px;text-align:center;flex:none;flex:none}
#ip{font-family:"Courier New",monospace;font-weight:bold}
@media(max-width:560px){#taskbar .start span{display:none}#shutdown-bar .ttl{display:none}#shutdown-bar{justify-content:center}}

/* ---- экран после закрытия ---- */
#closed{
  position:fixed;inset:0;z-index:100;display:none;flex-direction:column;align-items:center;justify-content:center;
  background:#000;color:#ffa500;text-align:center;font-family:"Courier New",monospace;padding:20px;
}
#closed.on{display:flex}
#closed h2{font-family:"Courier New",monospace;font-size:24px;color:#ffa500;margin-bottom:16px}
#closed p{color:#ffa500;margin:4px 0}
#closed .btn{margin-top:26px}
